LinuxQuestions.org
Support LQ: Use code LQ3 and save $3 on Domain Registration
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie
User Name
Password
Linux - Newbie This Linux forum is for members that are new to Linux.
Just starting out and have a question? If it is not in the man pages or the how-to's this is the place!

Notices


Reply
  Search this Thread
Old 02-07-2011, 07:45 PM   #1
Weasel War Dance
Member
 
Registered: Jan 2011
Location: United States
Distribution: Slackware-Current
Posts: 44

Rep: Reputation: 8
Exclamation Huge screw-up involving kde4-config...


Running Slackware 13.1 64-bit with KDE. Made an absurd mistake.
Hey all, I managed to compromise the X server on my system, and I really need a solution, hopefully other than reinstalling everything.
Typing this from a secondary laptop.

I tried renaming the "kde4-config" file under /usr/bin/ as just "kde-config", and now it won't let me boot the GUI at all. Reason for this was to install a bit of software, and a webpage said that that worked as a solution to install the thing.
The error message is:
Code:
Call to lnusertemp failed (temporary directories full?).
Is there a way I can change the file name (not a directory) back to "kde4-config" without a GUI, or did I just trash the system?

EDIT: I tried "startkde", and it gave me:
Code:
$DISPLAY is not set or cannot connect to the X server.

Last edited by Weasel War Dance; 02-07-2011 at 08:00 PM.
 
Old 02-07-2011, 07:49 PM   #2
silvyus_06
Member
 
Registered: Oct 2010
Distribution: Ubuntu 10.04 , Linux Mint Debian Edition , Microsoft Windows 7
Posts: 390

Rep: Reputation: 50
well, does it let you boot at least in to cmd? i knew there was some renaming command from the cmd...

just have to google it. if not, put the HD in another linux comp (or boot from a live cd in that slackware comp) and go to the file you've renamed, and just put kde4-config.. if not.. (sarcasm mode) install gnome(/sarcasm mode)
 
Old 02-07-2011, 07:53 PM   #3
Weasel War Dance
Member
 
Registered: Jan 2011
Location: United States
Distribution: Slackware-Current
Posts: 44

Original Poster
Rep: Reputation: 8
EDIT: Got it. Had to log in as root, then I tried:
Code:
mv -i /usr/bin/kde-config /usr/bin/kde4-config
After that, for safe measure, I used:
Code:
rename /usr/bin/kde-config /usr/bin/kde4-config
I'm not sure which of the two did the trick, but after that I was able to use "startx" to bring up the GUI as normal.

Last edited by Weasel War Dance; 02-07-2011 at 09:10 PM.
 
Old 02-07-2011, 09:07 PM   #4
Novartum
Member
 
Registered: Feb 2011
Location: France
Distribution: Arch Linux
Posts: 32

Rep: Reputation: 4
I assume you use a graphical login (display manager)? Press ctrl-alt-f1 at this screen, which you may have already figured out. Once using cmd (command line - silvyus06 means something like a terminal) go to the appropriate directory and type "mv kde-config kde4-config". Should fix your problem.

Last edited by Novartum; 02-07-2011 at 09:10 PM.
 
1 members found this post helpful.
Old 02-07-2011, 09:13 PM   #5
Weasel War Dance
Member
 
Registered: Jan 2011
Location: United States
Distribution: Slackware-Current
Posts: 44

Original Poster
Rep: Reputation: 8
@Silvyus_06 and Novartum: Thank you for the tips. I figured out something similar to the command Novartum recommended, and got it all back in working order. Lesson learned, not trying that again.
 
Old 02-07-2011, 09:20 PM   #6
Novartum
Member
 
Registered: Feb 2011
Location: France
Distribution: Arch Linux
Posts: 32

Rep: Reputation: 4
For future reference, it is often useful to boot into single user mode to fix problems like this. If you use grub, simply press e (to edit the line) on the appropriate entry when the grub screen comes up; append a "1" to the end of the kernel line (with a space first). Then when you boot (by pressing b) you will reach a terminal log in and then you can edit files, etc. You should be able to do something similar in LILO (which I believe is default for Slackware) to set runlevel to 1. Glad your problem is fixed though!

Last edited by Novartum; 02-07-2011 at 11:20 PM.
 
  


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
Kernel usages screw up grub config FangsOfFreedom Ubuntu 3 08-03-2010 01:39 PM
kde-config ? now its kde4-config Srikanth VM Slackware 2 09-24-2009 12:13 AM
[SOLVED] Huge fonts problem with KDE4 and radeon driver Freex Linux - Desktop 2 04-06-2009 12:33 PM
Xorg Config Help Screen is too Huge! Infohungry Slackware 4 06-06-2007 11:40 PM


All times are GMT -5. The time now is 12:26 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
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration