DeLi Linux

DeLi Linux Forum

DeLi Linux » Installation » Automatic login

Automatic login

Moderators: littlebat, norman.

Page: 1

Author Post
Member
Registered: Jun 2007
Posts: 29
I'm trying to find a way to login automatically with root user and run command "startx" and a program on the machine.Any idea?
Administrator
Registered: Mar 2007
Posts: 551
In /etc/rc.local write:
su - username -c startx

Edit ~/.xinitrc to start programs automatically
« Last edit by haary on Sat Jun 09, 2007 10:26 am. »
Member
Registered: Jun 2007
Posts: 29
How to edit ~/.xinitrc?
I compiled my program and make a link named it "sig".At the last line of ~/.xinitrc, i add this line:
sig=>doesn't work.
exec sig =>doesn't work.
Administrator
Registered: Mar 2007
Posts: 551
It's good to add the full patch, e. g. /usr/bin/sig
For example:
/usr/bin/sig
exec icewm-session


Have a look at the log to find out why it doesn't work.
Member
Registered: Jun 2008
Posts: 7
haary wrote
In /etc/rc.local write:
su - username -c startx


When I login at prompt and then run startx I get menus in swedish just like I want but when I add su - username -c startx in /etc/rc.local then all menus are in english. How do I fix this?
Administrator
Registered: Mar 2007
Posts: 551
You must export the LANG variable, look at /etc/profile for an example. E. g. the .xinitrc of the user would be a good place.
Administrator
Registered: Oct 2007
Posts: 749
Deli 0.8 offers the graphical login manager slim;
see the "packages news" pages of the Deli wiki.

I don't use it but I guess it should do the automatic start of the xserver as well
Member
Registered: Apr 2009
Posts: 11
Unfortunately, automatic login is only possible with slim 1.3.1 and current deli packages contains 1.3.0-1 :/.
Administrator
Registered: Oct 2007
Posts: 749
thanks for the hint -- I'll make an update package asap
Administrator
Registered: Oct 2007
Posts: 749
okay, it's done. Just run pacman -Syu to update.
Member
Registered: Apr 2009
Posts: 11
Ok, so to proceed, you just have to:
1- Install slim
2- Run delisetup and add slim to the services launched at boot
3- Configure /etc/slim.conf (uncomment the corresponding lines)
-> default_user username
-> auto_login yes

Tested and approved by me :)
Member
Registered: Aug 2009
Posts: 15
I have installed slim, and configured as stated above. However after my computer boots up and goes into an automatic x session I get a black background, the cursor is one straight line, and none of the text is visible in the menus.

What do I need to do to fix this?


Also, what kind of packages work on DeLi? DEB, RPM, ....?
Administrator
Registered: Oct 2007
Posts: 749
Quote
I have installed slim, and configured as stated above. However after my computer boots up and goes into an automatic x session I get a black background, the cursor is one straight line, and none of the text is visible in the menus.

What do I need to do to fix this?


hmm, this is a new problem... have you set the start of the icewm session in the slim configuration ? or at the end of the /home/<user>/.xinitrc file ? I would try both -- but not at the same time :P

Quote
Also, what kind of packages work on DeLi? DEB, RPM, ....?

you can use only the precompiled packages from the DeLi repositories as DeLi uses uClibc instaed of glibc. That means, you are limited to the already built packages of DeLi or you must build your own packages from source. This includes often some modification of the sources to get the programs built and/or running on DeLi.
« Last edit by delix on Fri Aug 28, 2009 10:49 am. »
Member
Registered: Aug 2009
Posts: 15
delix wrote
Quote
I have installed slim, and configured as stated above. However after my computer boots up and goes into an automatic x session I get a black background, the cursor is one straight line, and none of the text is visible in the menus.

What do I need to do to fix this?


hmm, this is a new problem... have you set the start of the icewm session in the slim configuration ? or at the end of the /home/<user>/.xinitrc file ? I would try both -- but not at the same time :P



I tried both of those ways. If I have it configured in ~/.xinitrc I will get how I described above. If I configure /etc/slim.conf I get somethign different, dont know how to describe it, but it is not a working desktop, x-cursor, with garbled graphics I guess you can say sittign on a black background, no panels. I also tried to have both configured at same time, and I get the same thing as I just have slim.conf configured.

Don't know if it makes a difference, but running as root or as an unpriviliged user. The system tells me
-bash: /root/.xinitrc: Permission denied
Administrator
Registered: Oct 2007
Posts: 749
Is that right (?) :
-you can start ICEWM with the startx command and get the default GUI screen with the paneel at the bottom
- when you use slim you get the mess you described above and the system gets stalled
- you have no permission the modify the /root/.xinitrc file even as root

that's really strange.....
I would check the /var/log/localmessages, ../messages, /var/log/slim.log and /Xorg.log files for any useful infos and the permissions for the .conf and rc file involved in the start of the server and icewm.
You can also post the slim.conf and .xinitrc files.

in slim.conf I would set the line to
session icewm-session
and remove all other windowmanagers

in .xinitrc the last line should be
exec icewm-session
« Last edit by delix on Fri Aug 28, 2009 3:05 pm. »
Member
Registered: Aug 2009
Posts: 15
the system dont get stalled when I use slim, just the other mess I described above. will go ahead and do the steps you have listed above, I didnt have the slim.conf file having session after the icewm.
Member
Registered: Aug 2009
Posts: 15
everything looks fine on messages except
home kernel: VFS: Mounted root (ext3 filesystem) readonly.


for the slim.log there is a whole bunch of errors, all really the same
Int 10h (0x4F09) failed: 0x4f00 (unkown error
Int 10h (0x4F09) failed: 0x4f00X connection to "0.0 broken (explicit kill or server shutdown). (unkonwn error)


THe first line is repeated several times.


in Xoeg.log it tells me Fatal server error: no screens found.

Which I know I have setup in delisetup


I have doen the steps listed above, I get same reaction, I will be posting my conf files in next post
Administrator
Registered: Oct 2007
Posts: 749
the problem is definitly the usage of icewm instead of icewm-session.

I would try to replace in the login_cmd line the %session expression with icewm-session
if the xinitrc file has the icewm-session command in the last line, I recommend just to remove the %session expression from the line above as the wm in started then already
« Last edit by delix on Sat Aug 29, 2009 9:22 am. »
Member
Registered: Aug 2009
Posts: 15
delix wrote
the problem is definitly the usage of icewm instead of icewm-session.

I would try to replace in the login_cmd line the %session expression with icewm-session


K, I am having a hrad time copying the conf files


The above solution did not work though.
Administrator
Registered: Oct 2007
Posts: 749
the configuration of slim should be running now

Quote
Xoeg.log it tells me Fatal server error: no screens found.

Which I know I have setup in delisetup

:roll:

slim has no influence on the xorg.conf file; if this file is unmodified compared to the previous working settings, a hardware failure or a serious installation error is more likely than a wrong configuration. If possible, run a memory test and/or reinstall the Xorg packages with the pacman option -Uf . If nothing changes, I'm running out of ideas what else can be done . Sorry, but I'm not a Linux wizard just a user ;)
Member
Registered: Aug 2009
Posts: 15
well that did not work, so I am messing around to see if I cant find a work around, currently trying different login-cmd configurations. I will keep ya posted
Member
Registered: Aug 2009
Posts: 15
Ok, I gave up, I think there is something wrong with slim on my computer. So I unistalled it, and just did the commands that are listed above with editing /etc/rc.local file.

It works that way :)

Page: 1

DeLi Linux » Installation » Automatic login

DeLi Linux is powered by UseBB 1 Forum Software