Here is the output of uname -a
uname -a
Linux debian 2.6.18-4-686 #1 SMP Mon Mar 26 17:17:36 UTC 2007 i686 GNU/Linux
I wanted to get autostart to work so I could just press the power button and have fluxbox start up, as its a single user PC. For some reason when I turn it on I have to run dhclient in order to connect to the internet. So as root I put dhclient in my .profile file and it worked. But I also wanted a screensaver now I had to log in as a different user but I could not execute dhclient as a different user so the workarround I used was (this will likely piss off programmers because its inefficient [i dont really care cause it works]).
Code is (all this executed as root)
apt-get install mingetty
vi /etc/inittab
go down to where it says something like this
1:2345:respawn:/sbin/getty 38400 tty1
and change it to
1:2345:respawn:/sbin/mingetty --autologin root tty1
2:23:respawn:/sbin/mingetty --autologin username tty2
now add this to /root/.profile
vi /root/.profile
dhclient at the bottom
install xscreensaver using aptitude
and add this to /home/username/.bash_profile
vi /home/username/.bash_profile
startx
now make a new file called apps in .fluxbox and start the screensaver up
vi ./fluxbox/apps
[startup] {xscreensaver &}
Similarly you can probably add a wallpaper to this if you want one.
[startup] {fbsetbg -f /path/to/image.jpeg}

Posted in Uncategorized