Tips and Tricks

Tip 1

Turn off hibernate and suspend
In the past the two options hibernate and suspend, which can be found in the shutdownmenu, gave many problems. In a simple way these two options can be removed from the shutdownmenu. Follow these steps:

- Open a terminal
- Type in the following command: sudo gedit /usr/share/polkit-1/actions/org.freedesktop.upower.policy

When the file is opened, search for the following 2 rules:
<action id="org.freedesktop.upower.suspend">
<action id="org.freedesktop.upower.hibernate">
The contents of these two rules are: <allow_active>yes</ allow_active>.
These these 2 lines in: <allow_active>no</ allow_active>.

After restarting (or logging of and logging in), the options to hibernate or suspend in the shutdownmenu disappeared.

Tip 2

Increasing the interval for disc checking
Most distros check the discs after 20 to 30 times docking at startup. If this is too much time-consuming with extremely large disks or partitions, or the interval is too low for a server system, then the interval can be changed by the following command:
- Open a terminal window
- Type: sudo tune2fs -c # # # /dev/***
- Press enter
- Repeat this command for all partitions

# # # = Interval (fill in any number above 30)
*** = For which partition the interval should be increased/decreased (eg.: sda1 or sdc1)

Tip 3

Show hidden files in Nautilus

Hidden files and folders are are characterized by a point at the beginning of the file- or foldername. To make those files and folder visible in Nautilus there's a simple trick to do this:
  • To make the hidden files and folders visible, press Ctrl+H
  • To make the hidden files and folders unvisible, press Ctrl+H again

Tip 4

Speed up web browsing
  • Open a terminal
  • Type the following command: sudo gedit /etc/samba/smb.conf
  • Press Enter and if asked for, type the required password and press Enter again
  • When the file is opened, search for a line which starts with: name resolve order
  • In that line, move the word "host" at the end of the line so it reads: ;   name resolve order = lmhosts wins bcast host
  • Save and close the file