Quick Link: OzOS, The microbrew of Operating Systems.
Digg This!
Pages: [1]   Go Down
  Print  
Author Topic: How To: Autologin & Autostart e17  (Read 790 times)
 
0 Members and 2 Guests are viewing this topic.
Bro.Tiag
Universal Maven
*****
Online Online

OS Used: OzOs on Debian GNU/Linux
Posts: 171



« on: April 24, 2008, 11:36:03 pm »

If someone is looking to set up their install for an auto login without an X Display Manager here is what I do.

Mind yur Root

Open a console and then create the file autologin.c ;
Quote
nano autologin.c

Add the following for user you want to autologin;
Quote
int main() { execlp( "login", "login", "-f", "name_of_user_to_autologin", 0); }

Complie autologin.c
Quote
gcc -o autologin autologin.c
mind your compiler.

Copy/move to some place useful;
Quote
cp autologin /usr/local/sbin

Edit /etc/inittab
Quote
nano /etc/inittab

search for this:
Quote
1:2345:respawn:/sbin/getty 38400 tty1

Do this to it;
Quote
#1:2345:respawn:/sbin/getty 38400 tty1
1:2345:respawn:/sbin/getty -n -l /usr/local/sbin/autologin 38400 tty1
2:23:respawn:/sbin/getty 38400 tty2
3:23:respawn:/sbin/getty 38400 tty3
4:23:respawn:/sbin/getty 38400 tty4
5:23:respawn:/sbin/getty 38400 tty5

Make it autostart:
Quote
nano ~/.bash_profile

Add thus at the bottom;
Quote
if [ -z "$DISPLAY" ] && [ $(tty) == /dev/tty1 ]; then
       startx
fi

Now add .xsession;
Quote
echo "exec /opt/e17/bin/enlightenment_start" > ~/.xsession

Cheers
Logged
maty1206
Regular Member

Offline Offline

OS Used: Maryan Linux, Debian, Fedora, Cent OS.
Posts: 3


Maryan Linux Lead developer


WWW
« Reply #1 on: August 01, 2008, 03:54:09 am »

Excellent tutorial

Very important.

Thanks!!
Logged

Maty1206
Maryan Linux lead developer
Tags:
Pages: [1]   Go Up
  Print  
 
Jump to:  

Quick Link: OzOS, The microbrew of Operating Systems.
Powered by SMF | SMF © 2006-2008, Simple Machines LLC | Page created in 0.114 seconds with 23 queries.