You are not logged in.

Announcement

Due to heavy spamming of forums registration is going in stages. If you wish to register as a new user with ArchBang Forums, first register and then send an e-mail to: archbangforums at gmail dot com. It should contain the problem you want to discuss or some other AB related content. You will be promoted from registering member with no posting rights to new member with posting rights after that. If your mail is ignored you haven't fulfilled the requirements.

#1 2012-02-06 09:25:14

yubasin
New member
Registered: 2012-02-04
Posts: 5

how can i log automatically

hi plz i want to know how to log aumaticaly in arch bang
without a prompt (slim)

Offline

#2 2012-02-06 09:51:53

mastis
ArchBanger
From: Finland
Registered: 2011-10-02
Posts: 126

Re: how can i log automatically

sudo nano /etc/slim.conf

uncomment default_user line and modify the line

default_user <your_usename>

uncomment and set autologin to yes

auto_login yes

Save and you are good to go.

Last edited by mastis (2012-02-06 09:56:09)

Offline

#3 2012-02-06 10:09:45

yubasin
New member
Registered: 2012-02-04
Posts: 5

Re: how can i log automatically

thank you very much !!

Offline

#4 2012-02-06 11:41:14

oliver
Administrator
Registered: 2010-11-04
Posts: 1,544

Re: how can i log automatically

You can also get rid of slim altogether and save the resources it uses.

You add the following code to your .bash_profile file and X will be launched when you login via the tty1 (i.e. after the boot messages)

if [[ -z "$DISPLAY" ]] && [[ $(tty) = /dev/tty1 ]]; then
  .  startx > ~/.xerrors.log 2>&1  
  logout
fi

You will be limited to the session that is listed first in your .xinitrc file though


Hasta manana, monsieur
Were the only words that I knew for sure

Offline

#5 2012-02-06 12:38:23

Mr Green
Iso Developer
Registered: 2010-11-07
Posts: 3,893

Offline

#6 2012-02-06 13:31:02

pablokal
Administrator
From: Nijmegen, Holland
Registered: 2010-10-12
Posts: 2,664
Website

Re: how can i log automatically

I use this:

Another way of circumventing display managers and booting straight into a preferred window manager or desktop environment involves editing /etc/inittab, changing:

id:3:initdefault:

[...]

x:5:respawn:/usr/bin/xdm -nodaemon

to:

id:5:initdefault:

[...]

x:5:once:/bin/su - -- PREFERRED_USER -l -c '/usr/bin/startx </dev/null >/dev/null 2>&1'


Getting your questions answered here at ArchBang Forums
Please! Always give hardware info, if there is a chance that 's relevant: #lspci -vnn
Quote: What I have learnt from Linux is to minimize dependencies and functionalities for greater independence.
On Arch(bang) and Openbox: http://stillstup.blogspot.com/

Offline

#7 2012-02-06 17:52:27

handy
ArchBanger
Registered: 2011-11-03
Posts: 437

Re: how can i log automatically

This is a great thread, you can find more than one way to get the job done:

https://bbs.archlinux.org/viewtopic.php?id=57677

Offline

Board footer

Powered by FluxBB