Quickzi: Open any folder from your GNOME Desktop

Jacob from FOSSwire has a nice tip that will allow you to quickly open any folder from your GNOME Desktop.

While on your desktop (either with no windows open or with the desktop focused) type / (forward slash). Now type in a folder path and hit Enter. The directory will be opened in a new Nautilus window. On top of that, it will also autocomplete most paths.

Read the rest of the article..

Quickzi: Stop Syslog from putting –MARK– in the logs

By default, the syslog daemon will place –MARK– messages in your /var/log/messages log file every twenty minutes. This can get annoying and eventually lead to a waste of space. Heres a quick tip on how to stop syslog from putting –MARK– in the messages log.

  1. Edit the syslogd file. (In Ubuntu, this file is located in /etc/default/syslogd – on some other distributions, you’ll want to edit whatever file starts up the syslog daemon.)
  2. Locate the following line that starts with:

    SYSLOGD=”"

  3. Modify this line to read:

    SYSLOGD=”-m 0″

  4. Restart syslog:

    /etc/init.d/sysklogd restart

Cheers!

Quickzi: Get rid of the Ubuntu splash screen during boot

Ubuntu Boot Screen

Have you ever wondered what goes on behind the Ubuntu splash screen during the boot process? You know, the screen that has the orange progress bar and the Ubuntu logo. You may want to see if anything is failing during the boot process, or you may just want to see exactly what takes place behind the scenes. If you’re curious, theres a quick and easy way to get rid of it.

Get rid of the Ubuntu Splash screen temporarily:

  1. Reboot your computer
  2. Hit “Esc” when prompted in order to enter the GRUB menu.
  3. Select the proper kernel and hit the letter “e” to edit.
    Ubuntu Grub Menu
  4. Arrow down to the Kernel line, and hit the letter “e” again.
    Ubuntu Grub Menu
  5. You should see the last few words in the line. Remove the words “quiet splash” and hit enter.
    Ubuntu Grub Menu
  6. Hit the letter “b” to boot the kernel without the Ubuntu splash screen. Below is what it will look like.
    Ubuntu Grub Menu

Get rid of the Ubuntu Splash screen permanently:

  1. From the command line, edit the /boot/grub/menu.lst file. Near the bottom of the file, you will find some lines similar to this:

    title Ubuntu 7.10, kernel 2.6.22-14-generic
    root (hd0,0)
    kernel /boot/vmlinuz-2.6.22-14-generic root=UUID=xxxx ro quiet splash
    initrd /boot/initrd.img-2.6.22-14-generic
    quiet

  2. Change the above to look like this:

    title Ubuntu 7.10, kernel 2.6.22-14-generic
    root (hd0,0)
    kernel /boot/vmlinuz-2.6.22-14-generic root=UUID=xxxx ro
    initrd /boot/initrd.img-2.6.22-14-generic

  3. Save the file and exit.

Cheers!

Quickzi: How to determine file types on Linux

Need to find out what all the file types in a certain directory are? Simple!

Execute the following on the command line:

find /path/here/ -type f -print | xargs file

I typed: find /home/adam/test/ -type f -print | xargs file

The output will look something like this:

/home/adam/test/music.wav: RIFF (little-endian) data, WAVE audio, Microsoft PCM, 16 bit, mono 44100 Hz
/home/adam/test/package.deb: Debian binary package (format 2.0)
/home/adam/test/file.tar.gz: gzip compressed data, from Unix, last modified: Tue Jun 20 12:51:11 2006
/home/adam/test/widget.xml: ASCII text, with CRLF line terminators
/home/adam/test/logfile.txt: empty

Cheers!

Quickzi: How to Jail VSFTPD Users

If you’re worried about FTP users exploring outside of their home directory, you want to set up what is called a chroot jail.

To do this, open the /etc/vsftpd.conf file:

vim /etc/vsftpd.conf

and make the following modifications (line should be uncommented):

chroot_local_user=YES

After you save the file, restart vsftpd:

/etc/init.d/vsftpd restart

Now all users will be jailed to their own home directory when using FTP.
Now, lets say you only want to jail certain users, and allow other users to browse other directories. To do this, you’ll want to again edit the configuration file.

vim /etc/vsftpd.conf

uncomment the following lines:

chroot_list_enable=YES
chroot_list_file=/etc/vsftpd.chroot_list

After you save the file, restart vsftpd:

/etc/init.d/vsftpd restart

Now you will need to create the /etc/vsftpd.chroot_list file and add in users you do NOT want to jail. By default, all users will be jailed. In the /etc/vsftpd.chroot_list file you can specify what users to allow to browse all directories.