Note to self: Ubuntu 7.10 on a P200

October 19th, 2007

Well this post is mostly just notes for myself , if someone else benifets from them great.

I have an old Intel P200 mhz , 128mb RAM, and a 6GB HDD I wanted to setup as a Web ( Dillo ) and IRC ( irssi ) station.

Since it was to be lightweight , for personal reasons I decided to use fluxbox ( not fluxbuntu ) so I installed a from a Ubuntu server edition disk and then just installed fluxbox , dillo, and irssi from there. Thats the normal boring stuff, here is the stuff i need to rember.

I wanted this system to boot right into Fluxbox , no login, no anything, just post then Desktop so I did the following:

Installed GCC
sudo apt-get install build-essential

Created a text file called autologin.c with the following:
int main() {
execlp( "login", "login", "-f", "brandon", 0);
}

( Note: Replace “brandon” with your login name ) and staticly compiled it, striped it, then put it in /usr/local/sbin :
gcc -static autologin.c -o autologin
strip autologin
sudo cp autologin /usr/local/sbin/

Now to make it run this when tty1 is created, edit /etc/event.d/tty1 and look for
exec /sbin/getty 38400 tty1

And change it to
exec /sbin/getty -n -l /usr/local/sbin/autologin 38400 tty1

( Now uninstall KDM/GDM if you are not using a server install )
At this point we will be autologed in when the system boots up , but only to a command prompt requiring the command `startx` to be run to get into fluxbox, so here is how to make fluxbox autorun on login

Create a file ( or edit the existing one ) called .bash_profile ( note the . in front ) in your home directory ( e.g. ~/.bash_profile ) and add the following :
if [ -z "$DISPLAY" ] && [ $(tty) == /dev/tty1 ]; then
startx
fi

and also a file ~/.xinitrc with
idesk &
sleep 2
exec startfluxbox

( Note: only use the idesk line if you have idesk installed for icons and such on fluxbox )

Thats it, save all open files and reboot, you should be greeted with a fluxbox desktop for a single user system with low end specs.

Update: Yes I know GDM/KDM/XDM can “autologin” but I wanted to have a few running processes as possible to conserv CPU and RAM on this low end box.

UPDATE: For this post I lost all ( 10 ) comments due to a db corruption, I'll be trying to restore them asap.




  1. bazz posted on November 15th, 2007 at 7:48 pm
    Website: None   Twitter: None

    Hi I was wondering if you might be able to help me out with something. I am trying to do something like what you did, but with multiple sessions (tty7, 8, and 9). I dont know if you are familiar with LTSP/LDM, but I would think the same concepts apply. To give you a better idea what I’m trying to do look here https://lists.ubuntu.com/archives/edubuntu-devel/2007-November/002462.html
    Please email me and let me know if you can. Thanks!

  2. Johnsn posted on January 24th, 2008 at 11:55 am
    Website: http://www.johnsn.info   Twitter: None

    Thx for the hint! I tried the tip first in vmware and it worked, but now I tried to do it with a real machine, but before starting an X-session the system asked for the password (only for the passwd). When I type it in, everthings runs fine. Do you have an idea, where the problem might be, since I don’t want to type in a passwd!

Comments are closed after 30 Days.