LinuxQuestions.org
Latest LQ Deal: Latest LQ Deals
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 09-21-2015, 06:02 AM   #1
ghartl1
Member
 
Registered: Aug 2006
Posts: 43

Rep: Reputation: 24
autologin xfce


hi

i use 14.1 32bit with stock xfce

can anyone please tell me, what to do to accomplish autologin?

as far as i know, there is xdm installed...andf i am the only user on this box.

any hints would be appreciated..

thanks in advance

greets günter
 
Old 09-21-2015, 06:07 AM   #2
ponce
LQ Guru
 
Registered: Aug 2004
Location: Pisa, Italy
Distribution: Slackware
Posts: 7,097

Rep: Reputation: 4174Reputation: 4174Reputation: 4174Reputation: 4174Reputation: 4174Reputation: 4174Reputation: 4174Reputation: 4174Reputation: 4174Reputation: 4174Reputation: 4174
maybe this can help

http://linux.derkeiler.com/Newsgroup...3-07/0373.html

consider that in Slackware we have /etc/rc.d/rc.local (instead of /etc/init.d/rc.local) and that you can configure the default desktop with xwmconfig.

Last edited by ponce; 09-21-2015 at 06:25 AM.
 
Old 09-21-2015, 06:32 AM   #3
ghartl1
Member
 
Registered: Aug 2006
Posts: 43

Original Poster
Rep: Reputation: 24
sorry, i forgot to mention...

the line in rc.local ( su ...username..) didnt work for me...

the box always hangs at the commandprompt in level 3 :-(
 
Old 09-21-2015, 07:57 AM   #4
ponce
LQ Guru
 
Registered: Aug 2004
Location: Pisa, Italy
Distribution: Slackware
Posts: 7,097

Rep: Reputation: 4174Reputation: 4174Reputation: 4174Reputation: 4174Reputation: 4174Reputation: 4174Reputation: 4174Reputation: 4174Reputation: 4174Reputation: 4174Reputation: 4174
my bad, I blindly assumed that would work.

do like this (just tested):

- set runlevel 3 in /etc/inittab

- add this line at the end of the same file
Code:
a1:1235:wait:/sbin/agetty -l /usr/bin/autologin.sh -n 38400 tty1 linux
- create the file /usr/bin/autologin.sh with this content and make it executable
Code:
#!/bin/sh
exec /bin/su - youruser -c startx
then, at the next reboot, you will directly go in youruser desktop.
 
1 members found this post helpful.
Old 09-21-2015, 09:02 AM   #5
ghartl1
Member
 
Registered: Aug 2006
Posts: 43

Original Poster
Rep: Reputation: 24
hmm...no luck alas

i saw a message like this "could not find /usr/bin/windowmaker"
but in xwmconfig i have set xfce ?
btw: windowmaker is deinstalled...


the box starts till the prompt and thats it ...

you sure, there is no typo?

i tried it also without a password for the user..no luck.
 
Old 09-21-2015, 09:16 AM   #6
slacker1337
Member
 
Registered: Jun 2012
Location: Connecticut, USA
Distribution: Slackware
Posts: 148

Rep: Reputation: 40
Try this on:
In /etc/inittab
Code:
c1:12345:respawn:/sbin/agetty -a <username> --noclear 38400 tty1 linux
Then on the last line of your .bash_profile
Code:
/usr/bin/startx
Be aware that using secure shell to connect to this machine will source your .bash_profile and attempt to start X. I haven't found a good way to avoid this so I just use CTRL+C to kill the startx and resume my ssh session.
 
Old 09-21-2015, 09:24 AM   #7
ponce
LQ Guru
 
Registered: Aug 2004
Location: Pisa, Italy
Distribution: Slackware
Posts: 7,097

Rep: Reputation: 4174Reputation: 4174Reputation: 4174Reputation: 4174Reputation: 4174Reputation: 4174Reputation: 4174Reputation: 4174Reputation: 4174Reputation: 4174Reputation: 4174
Quote:
Originally Posted by ghartl1 View Post
hmm...no luck alas

i saw a message like this "could not find /usr/bin/windowmaker"
but in xwmconfig i have set xfce ?
btw: windowmaker is deinstalled...
that most probably happens because you have a previous ~/.xinitrc file (the one parsed by startx).
you have to run xwmconfig as user and choose xfce: that should create an ~/.xinitrc file that will launch xfce instead of windowmaker.

Quote:
the box starts till the prompt and thats it ...

you sure, there is no typo?
yes.
 
Old 09-21-2015, 09:40 AM   #8
bassmadrigal
LQ Guru
 
Registered: Nov 2003
Location: West Jordan, UT, USA
Distribution: Slackware
Posts: 8,792

Rep: Reputation: 6656Reputation: 6656Reputation: 6656Reputation: 6656Reputation: 6656Reputation: 6656Reputation: 6656Reputation: 6656Reputation: 6656Reputation: 6656Reputation: 6656
This is just a shot in the dark, since I don't use XFCE, but since KDE autologin works fine using KDM (I use it on my system), does it still work if you set KDM to boot XFCE? I'm not at home right now, but you should be able to access the settings in the KDE settings app... I think it's under:

System Settings -> Login Screen -> Convenience (tab) -> then enable autologin (might require root password) and select the default user.
 
Old 09-21-2015, 10:21 AM   #9
ghartl1
Member
 
Registered: Aug 2006
Posts: 43

Original Poster
Rep: Reputation: 24
@ponce

that did the trick.

i had to set xwmconfig per user (didnt know that this is also possible...and work without
root credentials)

many thanks
solved

greets gnter
 
Old 09-21-2015, 11:12 AM   #10
stormtracknole
Senior Member
 
Registered: Aug 2005
Distribution: Slackware, RHEL
Posts: 1,259

Rep: Reputation: 231Reputation: 231Reputation: 231
Quote:
Originally Posted by ponce View Post
my bad, I blindly assumed that would work.

do like this (just tested):

- set runlevel 3 in /etc/inittab

- add this line at the end of the same file
Code:
a1:1235:wait:/sbin/agetty -l /usr/bin/autologin.sh -n 38400 tty1 linux
- create the file /usr/bin/autologin.sh with this content and make it executable
Code:
#!/bin/sh
exec /bin/su - youruser -c startx
then, at the next reboot, you will directly go in youruser desktop.
Thanks for sharing this ponce! I have used gdm in the past for autologin, but this is a much cleaner method.
 
Old 09-21-2015, 11:27 AM   #11
ponce
LQ Guru
 
Registered: Aug 2004
Location: Pisa, Italy
Distribution: Slackware
Posts: 7,097

Rep: Reputation: 4174Reputation: 4174Reputation: 4174Reputation: 4174Reputation: 4174Reputation: 4174Reputation: 4174Reputation: 4174Reputation: 4174Reputation: 4174Reputation: 4174
I actually adapted a little hints from this thread, and in particular this post, so you really have to thank the people there!
 
Old 09-21-2015, 11:29 AM   #12
stormtracknole
Senior Member
 
Registered: Aug 2005
Distribution: Slackware, RHEL
Posts: 1,259

Rep: Reputation: 231Reputation: 231Reputation: 231
Quote:
Originally Posted by ponce View Post
I actually adapted a little hints from this thread, and in particular this post, so you really have to thank the people there!
Indeed! Great work by everyone involved!
 
Old 09-21-2015, 12:52 PM   #13
BratPit
Member
 
Registered: Jan 2011
Posts: 250

Rep: Reputation: 100Reputation: 100
I think this line is more simple copy and paste to rc.local :-)

su --login username -c '/bin/bash -l -c startx &> /dev/null' &
 
  


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
LXer: Fedora 22 Linux Xfce Edition with Xfce 4.12 Screenshot Tour LXer Syndicated Linux News 0 06-12-2015 01:51 PM
LXer: Manjaro Linux Xfce 0.9.0 Promises to Bring the Best Xfce 4.12 Experience Possible LXer Syndicated Linux News 0 03-16-2015 11:30 AM
[SOLVED] fedora18 xfce autologin pastor2 Linux - Newbie 2 04-07-2013 04:56 PM
trying to get an autologin on slack 14 xfce diptenkrom Slackware 8 10-08-2012 05:29 PM

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

All times are GMT -5. The time now is 10:49 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