LinuxQuestions.org
Download your favorite Linux distribution at LQ ISO.
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 02-13-2005, 09:57 AM   #1
soylentgreen
Member
 
Registered: Sep 2004
Location: old village
Distribution: android, BSD, CentOS, Ubuntu
Posts: 221

Rep: Reputation: 30
broke X and ls


i did a
slapt-get --dist-upgrade

and accidentally filled up my / partition...

so i went through and removed some packages that i didn't use (kde being one ov them, cause i use enlightenment)
and i ended up breaking X.. when i type startx i get no screens found, no keyboard, no mouse.. very strange..
and also, when i type
ls
i get segmentation fault.
while booting i get other segmentation faults during other stuff..

i have a laptop that the cdrom is broken, and no floppy, so i can't just run the install again from cd.
so my question is:
is there a way to run setup and install from command line - like just get the whole install thing going without booting?.. i can get the cd copied to the laptop via network, but i can't -boot- it with anything.. (besides pxeboot, but i've never done that successfully)

so can i run setup from an already installed slackware?

i have a knoppix server, and i can get it to pxeboot, kind ov.. but how would i run setup after that?

thanx a ton

*edit*
if there is any kind ov thing you think i can do to get this segmentation fault issue, that would be cool too, not having to reinstall.. i just got my 2.6.7 kernel working, so it would be nice to not have to reinstall everything.
*/edit*

Last edited by soylentgreen; 02-13-2005 at 10:11 AM.
 
Old 02-13-2005, 10:59 AM   #2
soylentgreen
Member
 
Registered: Sep 2004
Location: old village
Distribution: android, BSD, CentOS, Ubuntu
Posts: 221

Original Poster
Rep: Reputation: 30
would installing/updating the 'coreutils' package help with the ls seg fault?
 
Old 02-13-2005, 11:48 AM   #3
Tuttle
Senior Member
 
Registered: Jul 2003
Location: Wellington, NZ
Distribution: mainly slackware
Posts: 1,289

Rep: Reputation: 52
If you have the room you could copy disk one across, then follow the instructions in the file "UPGRADE.TXT" in the root directory of the cd.
This will start by reinstalling glibc-solibs, pkgtool and sed.
Then it tells you to reinstall all the rest of it - use "upgradepkg --reinstall" option so that you only reinstall existing software packages installed on your system.
Restore any /etc files you may have backed up (lilo.conf, fstab xorg.conf etc..) then re-run lilo.
 
Old 02-13-2005, 11:50 AM   #4
Tuttle
Senior Member
 
Registered: Jul 2003
Location: Wellington, NZ
Distribution: mainly slackware
Posts: 1,289

Rep: Reputation: 52
Quote:
Originally posted by soylentgreen
would installing/updating the 'coreutils' package help with the ls seg fault?
Give it a go, it might help with ls.
 
Old 02-13-2005, 11:51 AM   #5
soylentgreen
Member
 
Registered: Sep 2004
Location: old village
Distribution: android, BSD, CentOS, Ubuntu
Posts: 221

Original Poster
Rep: Reputation: 30
sweet.. i will try that.

thanks - let you know how it goes over.
 
Old 02-13-2005, 08:17 PM   #6
soylentgreen
Member
 
Registered: Sep 2004
Location: old village
Distribution: android, BSD, CentOS, Ubuntu
Posts: 221

Original Poster
Rep: Reputation: 30
rock.

i can do 'ls' now.. apparently, i broke pkgtool and a bunch ov other things too...
so i installed glibc via installpkg.. installed coreutils and got 'ls' back.
all the seg faults on boot are gone.
slapt-get works again after i installed libidn.

so now i need to get X back.
the new 2.6.7 kernel looks like its seeing my ATI radeon mobility.. but i've removed all the X stuff (so i could just start over)

when installing X on a command-line only system what exactly do i need.. just disk 2 and install the whole thing?

thanks for any help.
 
Old 02-13-2005, 08:23 PM   #7
Tuttle
Senior Member
 
Registered: Jul 2003
Location: Wellington, NZ
Distribution: mainly slackware
Posts: 1,289

Rep: Reputation: 52
use pkgtool to browse and see if you have x11/xorg installed already. You should already have x installed, but if not, grag all xorg packages from you local mirror and "upgradepkg --install-new [package.tgz]". Did you backup /etc/X11/xorg.conf ;?
 
Old 02-13-2005, 08:27 PM   #8
soylentgreen
Member
 
Registered: Sep 2004
Location: old village
Distribution: android, BSD, CentOS, Ubuntu
Posts: 221

Original Poster
Rep: Reputation: 30
my xorg.conf was worthless....

i -tried- getting the 3d to work and just failed miserably..
is there a way to generate a new one? i'd kinda like to start that whole thing over...

<edit>
under x11.. i have :
x11-d.8.1
x11-devel
x11-docs
x11-fonts
x11-xnest
x11-xprt
x11-svfb

i took out everything gnome and kde.
</edit>

Last edited by soylentgreen; 02-13-2005 at 08:32 PM.
 
Old 02-14-2005, 08:53 AM   #9
soylentgreen
Member
 
Registered: Sep 2004
Location: old village
Distribution: android, BSD, CentOS, Ubuntu
Posts: 221

Original Poster
Rep: Reputation: 30
i recompiled enlightenment, and i got the command for 'startx' back. but im having problems with my xorg.conf.

is there a way i can re-create that? i've got things just about stable.. and i wanted to avoid doing the whole re-install.. i just need to get:

1. X working via a 'good' xorg.conf
2. sound working again... i lost my i810_audio module

and i'm all set.
thanks for the help so far.
 
Old 02-14-2005, 09:31 AM   #10
keefaz
Senior Member
 
Registered: Mar 2004
Distribution: Slackware
Posts: 4,614

Rep: Reputation: 136Reputation: 136
1. The xorgconfig command should generate a new xorg.conf
2. Did you try alsaconf ?
 
Old 02-14-2005, 12:12 PM   #11
Tuttle
Senior Member
 
Registered: Jul 2003
Location: Wellington, NZ
Distribution: mainly slackware
Posts: 1,289

Rep: Reputation: 52
It looks like you already have X installed (if x11-d.8.1 = x11-6.8.1!)
log in as root and type "X -configure"
Then copy the new config to /etc/X11 like this:
Code:
cp ~/xorg.conf-new /etc/X11/xorg.conf
then try to startx. I find the file this creates usually/always works.

edit: sorry keefaz, didn't see your post!

Last edited by Tuttle; 02-14-2005 at 12:15 PM.
 
Old 02-14-2005, 01:03 PM   #12
soylentgreen
Member
 
Registered: Sep 2004
Location: old village
Distribution: android, BSD, CentOS, Ubuntu
Posts: 221

Original Poster
Rep: Reputation: 30
<edit>
after recompiling enlightenment and trying startx - everything looks like its trying to work, just getting an EE parsing the config file
</edit>

Quote:
Originally posted by keefaz
1. The xorgconfig command should generate a new xorg.conf
sweet.. i knew there was a command for that.

for ALSA:.. after i redid my kernel.. i lost the i810 module..
i have the intel i810 / AC 97, and i dont have the modules anymore..

alsaconf can't find the card after building card database...
is there a way i can pull it from the old kernel?

thanks both ov you.. i'll try the X config when i get home from work.

Last edited by soylentgreen; 02-14-2005 at 01:06 PM.
 
Old 02-14-2005, 01:24 PM   #13
Tuttle
Senior Member
 
Registered: Jul 2003
Location: Wellington, NZ
Distribution: mainly slackware
Posts: 1,289

Rep: Reputation: 52
Quote:
Originally posted by soylentgreen
<edit>
for ALSA:.. after i redid my kernel.. i lost the i810 module..
What do you mean by "redid"?
You could always reinstall the kernel packages:
Code:
upgradepkg --reinstall /path-to-packages/kernel*.tgz
Don't forget to run "lilo" as root before you reboot.
 
Old 02-14-2005, 01:26 PM   #14
soylentgreen
Member
 
Registered: Sep 2004
Location: old village
Distribution: android, BSD, CentOS, Ubuntu
Posts: 221

Original Poster
Rep: Reputation: 30
Quote:
Originally posted by Tuttle
What do you mean by "redid"?
You could always reinstall the kernel packages:
Code:
upgradepkg --reinstall /path-to-packages/kernel*.tgz
Don't forget to run "lilo" as root before you reboot.
i installed the kernel package off disk2...

i'll try the upgradepkg --reinstall on the kernel, and see if that fixes it.

thanks again
 
Old 02-14-2005, 01:38 PM   #15
Tuttle
Senior Member
 
Registered: Jul 2003
Location: Wellington, NZ
Distribution: mainly slackware
Posts: 1,289

Rep: Reputation: 52
Quote:
Originally posted by soylentgreen
i installed the kernel package off disk2...
Use the ones in the "cdrom/slackware/a" section on disk 1 just to be safe. (run lilo after)
 
  


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
2.6 broke X xKintaro Slackware 2 09-15-2005 09:59 AM
Ok, so I broke it.. Sanguines Linux - Software 4 08-25-2005 11:46 AM
Uh, it broke itself. Help. PraxisArch Linux - General 1 07-20-2004 01:09 PM
help i broke it!? ocularbob Debian 2 10-02-2003 11:15 AM
I broke it! chingasman Linux - Software 5 03-07-2003 03:17 PM


All times are GMT -5. The time now is 08:12 AM.

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