LinuxQuestions.org
Share your knowledge at the LQ Wiki.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Slackware
User Name
Password
Slackware This Forum is for the discussion of Slackware Linux.

Notices


Reply
  Search this Thread
Old 04-09-2005, 10:34 AM   #31
win32sux
LQ Guru
 
Registered: Jul 2003
Location: Los Angeles
Distribution: Ubuntu
Posts: 9,870

Rep: Reputation: 380Reputation: 380Reputation: 380Reputation: 380

Quote:
Originally posted by gbonvehi
I used this formula sometime ago to log into X sucessfuly from rc.local (it's very similar to yours):
Code:
su - gbonvehi -c 'source /etc/profile; source /home/gbonvehi/.bash_profile; startx&'
Without using the && the command don't have tu be successfull, but it's actually the same because if you can't import /etc/profile you won't get the PATH vars to execute X11.
awesome!!! but one question: how'd you get a ~/.bash_profile and what does it look like?? none of the accounts on my slackware box seem to have one...

BTW (everyone), i've just seen the first issues related to the method i'm trying on my previous post: after getting logged-into X, when i open a terminal it's no longer postitioned in my home folder, it's at "/" and i need to "cd" to get myself positioned back into my home folder... also, i noticed someting like a "/dev/console : operation not permitted" or someting error on startup right when the auto-login command in rc.local is run...

i'm thinking the first issue might be fixed by using a ~/.bash_profile as suggested by gbonvehi, though...

as for the second issue, i'm not even sure if it matters... maybe i should just redirect the errors to dev null like "source /etc/profile 2> /dev/null" or something??
 
Old 04-09-2005, 04:54 PM   #32
gbonvehi
Senior Member
 
Registered: Jun 2004
Location: Argentina (SR, LP)
Distribution: Slackware
Posts: 3,145

Rep: Reputation: 53
The second issue (from what i've seen in XDM) can be fixed by chowning /dev/console to the user that's running it.
About bash_profile, it isn't really necesary, i've just a few configs for my user (alias for ls to display with -l by default, a nicer command prompt and a PATH that adds ~/bin in it) but it's not a must.
Try adding something like:
Code:
# This may be not too secure, I really don't know
chown gbonvehi /dev/console
su - gbonvehi -c 'source /etc/profile; source /home/gbonvehi/.bash_profile; cd /home/gbonvehi; startx&'
I noticed that when starting X from command line the default path in a X terminal is the directory where you run startx.
 
Old 04-10-2005, 02:04 AM   #33
benvanderjagt
LQ Newbie
 
Registered: Dec 2004
Location: Winchester, VA
Distribution: Slackware, SuSE, Vector, from scratch
Posts: 9

Rep: Reputation: 0
I'm sorry, but is there any reason you can't just add a 4 to your boot parameters? that's how I usually do it, and I didn't have any trouble with any Slack yet.

in GRUB, just add a space and a 4 to the end of the kernel line, and in LILO, just add append = " 4" (I think)
 
Old 04-10-2005, 08:01 AM   #34
win32sux
LQ Guru
 
Registered: Jul 2003
Location: Los Angeles
Distribution: Ubuntu
Posts: 9,870

Rep: Reputation: 380Reputation: 380Reputation: 380Reputation: 380
Quote:
Originally posted by benvanderjagt
I'm sorry, but is there any reason you can't just add a 4 to your boot parameters? that's how I usually do it, and I didn't have any trouble with any Slack yet.

in GRUB, just add a space and a 4 to the end of the kernel line, and in LILO, just add append = " 4" (I think)
that wouldn't auto-login a user, which is what we are talking about... ;-)
 
  


Reply



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
debian booting to xwindows w/ no mouse illennium Linux - Newbie 5 01-22-2005 03:43 PM
XWindows login problem in RH8 vish Linux - General 0 08-31-2004 05:59 PM
Direct booting of Gnome application Lei Linux - Laptop and Netbook 0 08-06-2004 04:23 AM
Direct login into GUI ninadb Slackware 4 04-27-2004 10:24 AM
Problems with booting/Xwindows wolfzAz Linux - Software 8 06-13-2002 11:33 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Slackware

All times are GMT -5. The time now is 05:20 PM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration