Monday, December 10th, 2007 at
12:41 pm
Are you new here? Subscribe to my RSS feed. Thanks for visiting!
If you don’t want your mounted drives to show up on your Ubuntu GNOME desktop, all you need to do is mount them somewhere other than /media/. Here is an example:
mount /dev/sdb1 /mnt/usbdrive
Cheers!
Popularity: 4% [?]
Friday, December 7th, 2007 at
3:39 pm
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..
Popularity: 2% [?]
Wednesday, November 7th, 2007 at
9:03 am
Here’s a quick tip on how to delete files that are a certain amount of days old. In my example, I use 365 days.
find / -type f -mtime +365|xargs rm -f
You could easily replace 365 with any amount of days to achieve a different goal.
Popularity: 2% [?]
Thursday, November 1st, 2007 at
7:06 am
Heres a quick tip on removing blank lines and comments from a file using sed.
sed ‘/ *#/d; /^ *$/d’ file_with_blank_lines_and_comments.txt > new_file_without_blank_lines_and_comments.txt
Cheers!
Popularity: 4% [?]
Monday, October 29th, 2007 at
5:26 am
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.
- 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.)
- Locate the following line that starts with:
SYSLOGD=”"
- Modify this line to read:
SYSLOGD=”-m 0″
- Restart syslog:
/etc/init.d/sysklogd restart
Cheers!
Popularity: 3% [?]
Saturday, October 27th, 2007 at
6:30 am

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:
- Reboot your computer
- Hit “Esc” when prompted in order to enter the GRUB menu.
- Select the proper kernel and hit the letter “e” to edit.

- Arrow down to the Kernel line, and hit the letter “e” again.

- You should see the last few words in the line. Remove the words “quiet splash” and hit enter.

- Hit the letter “b” to boot the kernel without the Ubuntu splash screen. Below is what it will look like.

Get rid of the Ubuntu Splash screen permanently:
- 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
- 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
- Save the file and exit.
Cheers!
Popularity: 18% [?]
Friday, October 26th, 2007 at
10:35 am
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!
Popularity: 4% [?]
Wednesday, October 24th, 2007 at
7:05 am
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.
Popularity: 5% [?]