In /etc/rc.local write:
su - username -c startx
Moderators: littlebat, norman.
Page: 1
| Author | Post |
|---|---|
|
#1 Sat Jun 09, 2007 6:37 am
|
|
|
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?
|
|
#2 Sat Jun 09, 2007 10:24 am
|
|
|
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. » |
|
#3 Sat Jun 09, 2007 12:16 pm
|
|
|
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. |
|
#4 Sat Jun 09, 2007 12:39 pm
|
|
|
Administrator
Registered: Mar 2007
Posts: 551
|
It's good to add the full patch, e. g. /usr/bin/sig
For example: /usr/bin/sig Have a look at the log to find out why it doesn't work. |
|
#5 Mon Jun 09, 2008 6:39 pm
|
|
|
Member
Registered: Jun 2008
Posts: 7
|
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? |
|
#6 Tue Jun 10, 2008 7:11 am
|
|
|
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.
|
|
#7 Sat Dec 20, 2008 2:58 pm
|
|
|
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 |
|
#8 Sun Apr 12, 2009 11:41 pm
|
|
|
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 :/.
|
|
#9 Mon Apr 13, 2009 5:32 am
|
|
|
Administrator
Registered: Oct 2007
Posts: 749
|
thanks for the hint -- I'll make an update package asap
|
|
#10 Mon Apr 13, 2009 8:32 am
|
|
|
Administrator
Registered: Oct 2007
Posts: 749
|
okay, it's done. Just run pacman -Syu to update.
|
|
#11 Mon Apr 13, 2009 12:58 pm
|
|
|
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 ![]() |
|
#12 Fri Aug 28, 2009 6:03 am
|
|
|
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, ....? |
|
#13 Fri Aug 28, 2009 6:25 am
|
|
|
Administrator
Registered: Oct 2007
Posts: 749
|
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
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. » |
|
#14 Fri Aug 28, 2009 11:55 am
|
|
|
Member
Registered: Aug 2009
Posts: 15
|
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 |
|
#15 Fri Aug 28, 2009 2:38 pm
|
|
|
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. » |
|
#16 Fri Aug 28, 2009 6:31 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.
|
|
#17 Fri Aug 28, 2009 6:58 pm
|
|
|
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 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 |
|
#18 Fri Aug 28, 2009 7:10 pm
|
|
|
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. » |
|
#19 Fri Aug 28, 2009 9:11 pm
|
|
|
Member
Registered: Aug 2009
Posts: 15
|
K, I am having a hrad time copying the conf files The above solution did not work though. |
|
#20 Sat Aug 29, 2009 9:08 am
|
|
|
Administrator
Registered: Oct 2007
Posts: 749
|
the configuration of slim should be running now
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 ![]() |
|
#21 Sat Aug 29, 2009 10:08 pm
|
|
|
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
|
|
#22 Sat Aug 29, 2009 11:44 pm
|
|
|
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
Staff List ·
RSS Feed · Contact Admin
DeLi Linux is powered by UseBB 1 Forum Software