Linux System Administration

Working with the terminal using a command interface is very fast and effective way of doing stuff. But have you tried working with the terminal, listening to a music via headphones and having a terminal warning or tab-completion beep / bell turned ON at the same time? Well it can be very annoying. Listening to the PC Speaker beeps via headphones is very close to a feeling of hitting your head with a hammer. Even without headphones this beeping bell sound is very annoying.

Here are some hints on how to disable terminal beep / bell :

First try to disable a terminal tab-completion bell by editing /etc/inputrc and add / replace line:

set bell-style none

You can also use the visible directive but make sure that audible is commented !

#set bell-style visible
#set bell-style audible

This may not be all. If you are a vim / vi user the PC speaker beep will still annoy you. To turn it of temporarily type a following vim command while in vim:

:set visualbell

To tunr it off completely edit or create a .vimrc file in your home directory ( ~/ ) and add a following line:

set visualbell

If none of the above helps simply get rid of the PC Speaker beeps by removing a pcspkr module from your system. This should silence it completely:

# rmmod pcspkr

If you do not want to hear that annoying beep / bell of your PC Speaker again even after system reboot do the following:

# vi /etc/modprobe.d/blacklist

and add the following line into the list:

blacklist pcspkr

If your apache is chowing a indexes when browsing /var/www directory tree it might be considered as a security weakness. Unless you need your users to browse entire directory tree you may need to change a default apache setting in /etc/apache2/sites-available/yousite :

FROM:

Options Indexes FollowSymLinks MultiViews ExecCGI
AllowOverride None
Order allow,deny
allow from all

TO:

Options -Indexes FollowSymLinks MultiViews ExecCGI
AllowOverride None
Order allow,deny
allow from all

Install prerequisites

jdownloader is a great tool to download file from share websites like rapidshare.com and many more. Here are simple steps on how to install jdownloader on Ubuntu or Debian Linux distributions:
First install all prerequisites:

apt-get install openjdk-6-jre sun-java6-jre default-jre \
zenity default-jre-headles sun-java6-bin \
openjdk-6-jre-headless

for jdownloader to work correctly you must have java installed otherwise you get a following error message:

Exception in thread "main" java.lang.NoClassDefFoundError:
jd.update.Main   at java.lang.Class.initializeClass
(libgcj.so.90)Caused by: java.lang.ClassNotFoundException:
com.sun.java.swing.plaf.windows.WindowsLookAndFeel
 not found in gnu.gcj.runtime.SystemClassLoader
{urls=[file:jdupdate.jar], parent=gnu.gcj.runtime.
ExtensionClassLoader{urls=[], parent=null}}   
at java.net.URLClassLoader.findClass(libgcj.so.90)
gnu.gcj.runtime.SystemClassLoader.findClass(libgcj.so.90)
java.lang.ClassLoader.loadClass(libgcj.so.90) at java.lang.
ClassLoader.loadClass(libgcj.so.90)  at java.lang.
Class.forName(libgcj.so.90)at java.lang.Class.
initializeClass(libgcj.so.90)

Install Linux jdownloader

Next download jdownloader package from https://launchpad.net/~jd-team/+archive/jdownloader and install jdownloader all.deb package:

dpkg -i jdownloader_0.1-0jd1~lucid1_all.deb

During the installation you should not see any errors such us:

dpkg: dependency problems prevent configuration of jdownloader

Run Linux jdownloader

If you get dependencies errors install all depended packages. Once ready start jdownloader:

$ jdownloader

Wait for an update and you are done !

Page 64 of 72



Go to top