Slackware This Forum is for the discussion of Slackware Linux.
|
| Notices |
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
Are you new to LinuxQuestions.org? Visit the following links:
Site Howto |
Site FAQ |
Sitemap |
Register Now
If you have any problems with the registration process or your account login, please contact us. If you need to reset your password, click here.
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
 |
GNU/Linux Basic Guide
This 255-page guide will provide you with the keys to understand the philosophy of free software, teach you how to use and handle it, and give you the tools required to move easily in the world of GNU/Linux. Many users and administrators will be taking their first steps with this GNU/Linux Basic guide and it will show you how to approach and solve the problems you encounter.
Click Here to receive this Complete Guide absolutely free. |
|
 |
10-07-2012, 12:14 PM
|
#1
|
|
LQ Newbie
Registered: Oct 2012
Location: SC, USA
Distribution: Slack, Fedora, etc
Posts: 6
Rep: 
|
trying to get an autologin on slack 14 xfce
i am setting up a netbook with slackware for learning reasons. i have chanegd the appearance to my liking and have altered lilo to boot in 5 secs rather than 2 mins, which seemed like an extreme. i have gotten xfce to autoboot, instead of having to issue the 'startx' command. now i am having difficulty getting an autologin.
as i don't use the machine for anything important, and do not care if someone gains access to it, spare the it is not advisable comments please. i did not install KDE or Gnome, so those files that you could edit for autologin are not there. it is straight xfce4. any help would be appreciated.
i have searched to no avail. plenty of info for xfce on other distros and for kde on slack, but no real answers for slack with xfce4.
|
|
|
|
10-07-2012, 02:55 PM
|
#2
|
|
Member
Registered: Feb 2009
Distribution: Slackware, Arch
Posts: 513
Rep: 
|
One way you can do it is to install lxdm from SlackBuilds.org, open /etc/lxdm/lxdm.conf in a text editor, and edit it like this
Code:
## uncomment and set autologin username to enable autologin
autologin=your_username
## default session or desktop used when no systemwide config
session=/usr/bin/startxfce4
You can use a different display manager like Slim if you want, but the config file will probably look slightly different.
|
|
|
|
10-07-2012, 05:20 PM
|
#3
|
|
Member
Registered: Aug 2008
Posts: 111
Rep:
|
dipkentrom,
I'm also new to Slackware with XFCE Desktop, and I would appreciate it if you share what you have done so far to change the Lilo bootup time, and how to get startx running on boot. I've read it somewhere in my searches, but I didn't bookmark it, and now my Senior Moment's are keeping me from finding it again. (If I don't make detailed notes, and documents on what I do, I can't repeat the process. Problem is I have one heck if a time finding those documents.)
Any info you share is greatly appreciated.
THANKS.
Larry
Last edited by lkraemer; 10-07-2012 at 05:21 PM.
|
|
|
|
10-07-2012, 06:22 PM
|
#4
|
|
Member
Registered: May 2007
Posts: 280
Rep:
|
Couldn't you put something like this at the end of rc.local?
su -l $username startx &
The best part of that is you can use runlevel 3 and not have to configure xdm/kdm/lxdm/slim. You'll still get all your ttys too.
The worst part is you might want to prevent the logouts if you want to do it that way.
|
|
|
1 members found this post helpful.
|
10-07-2012, 07:49 PM
|
#5
|
|
Member
Registered: Jun 2012
Location: on the Net
Distribution: Slackware
Posts: 100
Rep: 
|
Quote:
Originally Posted by lkraemer
dipkentrom,
I'm also new to Slackware with XFCE Desktop, and I would appreciate it if you share what you have done so far to change the Lilo bootup time, and how to get startx running on boot. I've read it somewhere in my searches, but I didn't bookmark it, and now my Senior Moment's are keeping me from finding it again. (If I don't make detailed notes, and documents on what I do, I can't repeat the process. Problem is I have one heck if a time finding those documents.)
Any info you share is greatly appreciated.
THANKS.
Larry
|
Welcome to Slackware! Rather than "hijack" this thread you should have started a new thread in the forum.
What you are looking to change is the timeout line in /etc/lilo.conf. Here it is set for 5 seconds. You will need to edit this file as root and then run lilo for the change to take effect.
Code:
# Append any additional kernel parameters:
append=" vt.default_utf8=0"
prompt
timeout = 50
# Normal VGA console
To boot into the graphical environment change this line in /etc/inittab. Replace 3 with 4.
Code:
# Default runlevel. (Do not set to 0 or 6)
id:3:initdefault:
You can edit these files from the command line using nano. The nano menu is at the bottom of the screen and the ^ means to press the Ctrl key and then the letter to preform that action. So, ^o writes out or saves the file and ^x exits the program.
Backing up any configuration file before editing is a good idea.
Code:
cp -a /etc/inittab ~/inittab-$(date +%Y%b%d)
The diff command will confirm that you have no unwanted edits and that you only changed the lines you intended to change.
Code:
diff /etc/inittab ~/inittab-2012OCT07
< id:4:initdefault:
---
> id:3:initdefault:
DNA
AKA mrascii
Last edited by mrascii; 10-07-2012 at 07:53 PM.
Reason: Added clarification
|
|
|
|
10-07-2012, 08:05 PM
|
#6
|
|
Member
Registered: Jun 2012
Location: on the Net
Distribution: Slackware
Posts: 100
Rep: 
|
Quote:
Originally Posted by diptenkrom
i am setting up a netbook with slackware for learning reasons. i have changed the appearance to my liking and have altered lilo to boot in 5 secs rather than 2 mins, which seemed like an extreme. i have gotten xfce to autoboot, instead of having to issue the 'startx' command. now i am having difficulty getting an autologin.
|
Passwords are stored in the /etc/shadow file. You should use vipw -s to edit the file and remove the password string. The password is the encrypted string following your user name and starts with a $. Be sure not to remove the colons that bracket the password. vipw uses vi by default so it's not very intuitive.
Root can assign a new blank password. So, this may be much easier than editing /etc/shadow.
Code:
root@none:~# passwd dna
Changing password for dna
Enter the new password (minimum of 5 characters)
Please use a combination of upper and lower case letters and numbers.
New password:
Bad password: too short.
Warning: weak password (enter it again to use it anyway).
New password:
Re-enter new password:
passwd: password changed.
DNA
AKA mrascii
Last edited by mrascii; 10-07-2012 at 08:16 PM.
|
|
|
|
10-07-2012, 08:16 PM
|
#7
|
|
Senior Member
Registered: Jul 2007
Distribution: Slackware64-14.0
Posts: 2,212
|
Setting a blank password doesn't (or if it does, shouldn't) autologin, and it makes things like ssh potentially dangerous unless you deny that user access (though I believe PermitEmptyPasswords defaults to 'no', which would eliminate the security threat but prevent user login). The best way to do this is through the display manager while maintaining a real password.
|
|
|
|
10-08-2012, 03:53 AM
|
#8
|
|
Member
Registered: Dec 2005
Distribution: Slackware -current, 14.0
Posts: 974
Rep: 
|
I setup autologin in (what-has-become) a few simple steps garnered from posts 2 & 5 in this thread:
http://www.linuxquestions.org/questi...ut-gui-374338/
except that one needs to no longer edit login.defs (as of 12.0, iirc).
cheers,
Last edited by mrclisdue; 10-08-2012 at 03:55 AM.
|
|
|
|
10-08-2012, 05:29 PM
|
#9
|
|
LQ Newbie
Registered: Oct 2012
Location: SC, USA
Distribution: Slack, Fedora, etc
Posts: 6
Original Poster
Rep: 
|
Quote:
Originally Posted by lkraemer
dipkentrom,
I'm also new to Slackware with XFCE Desktop, and I would appreciate it if you share what you have done so far to change the Lilo bootup time, and how to get startx running on boot. I've read it somewhere in my searches, but I didn't bookmark it, and now my Senior Moment's are keeping me from finding it again. (If I don't make detailed notes, and documents on what I do, I can't repeat the process. Problem is I have one heck if a time finding those documents.)
Any info you share is greatly appreciated.
THANKS.
Larry
|
all of what mrascii said is correct. the only thing i would add is to "run" lilo the command is "/sbin/lilo" (as root) this reloads the .conf file to lilo so it will take the settings. it you edit the file and do not do that command, it won't take effect.
as for not being able to find things again or your notes, a suggestion I have is to email yourself links to what might be important. set up another email, or use one that you don't use much to send the links to so they don't get lost in the mess of other emails you might have... that is how I repeat the process myself. most email clients or webmail access sites will allow you to set up various folders so that you can organize the messages. so use that to your advantage, and then you don't have to keep up with actual papers...
Last edited by diptenkrom; 10-08-2012 at 07:24 PM.
Reason: additional info
|
|
|
|
| Thread Tools |
Search this Thread |
|
|
|
Posting Rules
|
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts
HTML code is Off
|
|
|
All times are GMT -5. The time now is 05:25 AM.
|
|
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.
|
Latest Threads
LQ News
|
|