LinuxQuestions.org
Welcome to the most active Linux Forum on the web.
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 03-10-2007, 01:45 AM   #1
yoshikareem
LQ Newbie
 
Registered: Mar 2007
Distribution: Slackware
Posts: 8

Rep: Reputation: 0
adduser and startx problem


I just got an old Toshiba laptop, and wanted to check out Linux, so I installed Slackware 11 on it.

Once I boot it I log in as root. I heard that its a good idea to create another user first, before doing anything. So I do adduser and get this:

Code:
Creating new account...

useradd: unable to lock password file
- Error running useradd command -- account not created!
So I just skip that and try to load the GUI.

I type in startx and get this:

Code:
modprobe: Note: /etc/modules.conf is more recent than /lib/modules/2.4.33.3/modules.dep
modprobe: Note: /etc/modules.conf is more recent than /lib/modules/2.4.33.3/modules.dep
What can I do?

Thanks
 
Old 03-10-2007, 08:30 AM   #2
XGizzmo
Member
 
Registered: Mar 2007
Distribution: Slackware
Posts: 264

Rep: Reputation: 68
If you are running a 2.6 kernel you need to install the kernel modules. The installer will only install the 2.4 kernel modules for you. The modules are on the cd/dvd in extra or testing depending on the exact kernel version you used. install them as root with installpkg. Did you do a full install of slack or did you try and trim it down?
 
Old 03-10-2007, 12:52 PM   #3
yoshikareem
LQ Newbie
 
Registered: Mar 2007
Distribution: Slackware
Posts: 8

Original Poster
Rep: Reputation: 0
I installed the 2.4.33.3 kernel, and yes, I did do a full install.
 
Old 03-11-2007, 01:37 PM   #4
props666999
Member
 
Registered: Oct 2003
Location: Greece
Posts: 260

Rep: Reputation: 30
Hi yoshikareem


Code:
modprobe: Note: /etc/modules.conf is more recent than /lib/modules/2.4.33.3/modules.dep
modprobe: Note: /etc/modules.conf is more recent than /lib/modules/2.4.33.3/modules.dep

did you compile your own kernel after completing the full install?
By default(Slackware 11) headers ,source and modules are 2.4.33





Code:
Creating new account...

useradd: unable to lock password file
- Error running useradd command -- account not created!
reboot the computer and try to add a user again
 
Old 03-11-2007, 02:06 PM   #5
yoshikareem
LQ Newbie
 
Registered: Mar 2007
Distribution: Slackware
Posts: 8

Original Poster
Rep: Reputation: 0
Quote:
did you compile your own kernel after completing the full install?
After the install I just selected the kernel used during installation.


Quote:
reboot the computer and try to add a user again
I tried rebooting and it still does the same thing.
 
Old 03-11-2007, 02:26 PM   #6
props666999
Member
 
Registered: Oct 2003
Location: Greece
Posts: 260

Rep: Reputation: 30
try adduser instead of useradd

have you got some spare space in your partition?

try df -h

Last edited by props666999; 03-11-2007 at 02:33 PM.
 
Old 03-11-2007, 03:10 PM   #7
yoshikareem
LQ Newbie
 
Registered: Mar 2007
Distribution: Slackware
Posts: 8

Original Poster
Rep: Reputation: 0
I have been doing adduser the whole time.

I checked to see if I had spare space, and I have none. I think I made the swap partition way too big, so I'm going to try and fix that.

EDIT:
Before I had the swap partition taking up the rest of the hard drive. I just switched it to be double my RAM (128 MB, my RAM is 64 MB). I did df -h, and it still says 0 available space.

Last edited by yoshikareem; 03-11-2007 at 03:22 PM.
 
Old 03-11-2007, 03:19 PM   #8
props666999
Member
 
Registered: Oct 2003
Location: Greece
Posts: 260

Rep: Reputation: 30
you have left no free space to the adduser command to append the
users file.

the swap partition should be double your memory. The full Slackware install is about 3GB,do a full install since the other install options are hard to manage. You can remove the extra staff by using the pkgtool command(as root) and selecting remove to trash the extras.



regards
 
Old 03-11-2007, 05:06 PM   #9
yoshikareem
LQ Newbie
 
Registered: Mar 2007
Distribution: Slackware
Posts: 8

Original Poster
Rep: Reputation: 0
It works nows! Thank You very much.

I made it where the swap partition started on the 1st cylinder, and then the main partition started after that and used the rest of the hard drive.

Thanks
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

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
(nvidia) First startx = blank screen, second startx = works ?!? BuckRogers01 Linux - Hardware 2 04-07-2006 06:26 PM
startx problem Sushy Slackware 6 11-03-2005 12:54 PM
Bug / Xwindows / startx : xinit works but startx crash www.rzr.free.fr Linux - Software 4 10-17-2004 09:06 AM
Easy problem??? Can't find adduser or useradd in fresh install of Fedora jdruin Linux - Newbie 3 02-21-2004 11:57 PM
adduser script problem svs Programming 1 07-31-2001 03:22 PM


All times are GMT -5. The time now is 11:40 PM.

Main Menu
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
identi.ca: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration