place to discuss Linux
Archive for January, 2010
Enable Automatic Login in Ubuntu Server
Jan 20th
Ubuntu makes it easy to enable automatic login if you’re using a login manager such as GDM. But what to do in case you don’t have GDM. Here’s how to enable automatic login.
Note: This was tested on Ubuntu 9.10. Previous versions of Ubuntu require different procedures because of changes to the way Ubuntu boots.
Open /etc/init/tty1.conf as root:
sudo nano /etc/init/tty1.conf
Change the last line of this file to (where USERNAME is the username of the user you want to log in):
exec /bin/login -f USERNAME < /dev/tty1 > /dev/tty1 2>&1
Reboot, and the user you chose should be logged in automatically after boot. If something More >
How to Keep Your Ubuntu System Clean
Jan 20th
If you are an geeky user who keeps installing various software and updates then with the passage of time you will feel that your system is messed up. Ubucleaner is a shell script which lets you clean your Ubuntu system by removing the following:
- apt cache
- Config file for Uninstalled .deb packages
- Unused Kernels
First lets discuss the different items which this script removes.
APT Cache
APT is the package management tool which is used to install/upgrade and remove packages in your Ubuntu system. If you use it often then it’s cache consumes a lot of space. By removing the apt cache you get plenty of free More >
Prevent Accidental Shutdown/Reboot in Ubuntu
Jan 15th
If you are a command line geek then you would have often entered the wrong commands many times, some of which could lead to accidental shutdown/restart. Molly-Guard is a command line script which prevents you from accidentally shutting down or rebooting your Ubuntu system.
It basically overrides the default system binaries of the shutdown, reboot, or halt processes. So once you try to reboot or shutdown your system form the command line it will prompt you to enter the hostname of your computer. Thus in this way you are prevented from accidental shutdown or reboot.
Installing this script is a piece of cake, More >