May 19

Linux: Disable usb automounting

Udisks and udev are related. Normally, as you can see from the above examples, when a new USB stick or DVD inserted, it is automatically mounted and the file manager is displayed. Suppose, instead, that you want that USB stick or DVD to be ignored and not mounted. How would you configure your system to do this?

While researching how to disable the automatic mounting of devices for a Linux kiosk project I was working on, I spent a number of hours on the Internet reading purported solutions to the problem. The majority of the solutions (probably 99%) simply did not work because the solution referred to obsolete versions of udev, HAL (Hardware Abstraction Layer), DBus or solutions based on PolicyKit or gsettings.

The simplest method that I have found is to create a low numbered file (I call mine 10-local.rules in /etc/udev/rules.d containing the following rule:

ACTION=="add|change", SUBSYSTEM=="block", KERNEL=="sd*|sr", ENV{UDISKS_PRESENTATION_HIDE}="1"

A twist on the above rule would apply to a kiosk-like LiveCD containing a persistent data partition to restrict mounting to /dev/sda*:

ACTION=="add|change", SUBSYSTEM=="block", KERNEL=="sd[b-e]*|sr", ENV{UDISKS_PRESENTATION_HIDE}="1"

By: Zurlinux
Category: Linux | Comments Off on Linux: Disable usb automounting
May 6

Linux: Getting more workspaces and tweaks in Ubunutu 14.04

The workspace option can be found in Appearance – Behaviour – Enable Workspaces

To get more workspace options install the following:

sudo apt-get install unity-tweak-tool

sudo apt-get install gnome-tweak-tool

Once installed, you can run the tweak application to change the number of workspaces and perform other tweaks.

Category: Linux | Comments Off on Linux: Getting more workspaces and tweaks in Ubunutu 14.04
May 1

Linux: Disable the firewall in CENTOS/Red Hat

First login as the root user.

Next enter the following three commands to disable firewall.
# service iptables save
# service iptables stop
# chkconfig iptables off

If you are using IPv6 firewall, enter:
# service ip6tables save
# service ip6tables stop
# chkconfig ip6tables off

By: Nixcraft

Category: Linux | Comments Off on Linux: Disable the firewall in CENTOS/Red Hat
April 30

Linux: Installing the Adobe Reader Firefox plugin

For Ubuntu 12.10 64-bit I did the following to install the Acrobat Reader plugin in for Firefox. (This assumes I have already manually installed Acrobat reader to /opt/Adobe/Reader9).

sudo apt-get install nspluginwrapper
sudo nspluginwrapper -i /opt/Adobe/Reader9/Browser/intellinux/nppdf.so

Now double check with:

nspluginwrapper -l

the output might look something like:

/usr/lib/mozilla/plugins/npwrapper.nppdf.so
  Original plugin: /opt/Adobe/Reader9/Browser/intellinux/nppdf.so
  Plugin viewer: /usr/lib/nspluginwrapper/i386/linux/npviewer
  Wrapper version string: 1.4.4-1
/usr/lib/firefox/plugins/npwrapper.nppdf.so
  Original plugin: /opt/Adobe/Reader9/Browser/intellinux/nppdf.so
  Plugin viewer: /usr/lib/nspluginwrapper/i386/linux/npviewer
  Wrapper version string: 1.4.4-1

Restart Firefox, and double check the plugins:

Firefox >> File >> Open Location >> "about:plugins"

the output should contain:

Adobe Reader 9.5

  File: npwrapper.nppdf.so
  Version:
  The Adobe Reader plugin is used to enable viewing of PDF and FDF files from within
  the browser.
  ...

Hopefully it should be working now.

By: S. Gebbie

Category: Linux | Comments Off on Linux: Installing the Adobe Reader Firefox plugin