LinuxQuestions.org
Go Job Hunting at the LQ Job Marketplace
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 11-30-2011, 05:08 PM   #1
RagingRaven
LQ Newbie
 
Registered: Sep 2011
Posts: 19

Rep: Reputation: Disabled
Mandriva 2011, KDE programs won't start, don't get error.


Hello,

I'm having a problem with my mandriva 2011 installation.
I have it set up to automatically boot in the morning and shutdown at night and I use it as a webserver and minecraft server.
It is set up to automatically start the x environment which I believe is KDE.
However after a few days of not actually using it, I can suddenly no longer start any program in KDE.
Everything I do from the console is running fine, but in KDE programs never show up.
I see the icon of the program I'm trying to start bounce for a bit in the taskbar, but after a min or so it's gone. No errors, nothing.
As far as I know nothing changed from a few days back when it was still working normally.

As I saw that there were some updates I allready did the updates through the console with: urpmi --auto-update and rebooted, but no changes to my problem.

Hopefully somebody can point me in the right direction as I have no idea where to even start looking.
 
Old 11-30-2011, 05:33 PM   #2
klearview
Member
 
Registered: Aug 2006
Location: London
Distribution: Debian, Kubuntu
Posts: 572

Rep: Reputation: 75
Does Krunner still function?

If you press ALT+F2, does anything come up?

If it does, type 'xterm', then in the opened terminal try to run any KDE app and see what errors you get - run 'konsole' in xterm, for example
 
Old 11-30-2011, 06:03 PM   #3
RagingRaven
LQ Newbie
 
Registered: Sep 2011
Posts: 19

Original Poster
Rep: Reputation: Disabled
If I press ALT+F2 a little screen shows where i can type a command, I'm guessing that's Krunner.
However it doesn't recognize xterm as a command and so does nothing when I press enter.
I can however enter konsole in there, but this gives the same outcome as running konsole (or any other application) from the application window.
 
Old 11-30-2011, 06:11 PM   #4
klearview
Member
 
Registered: Aug 2006
Location: London
Distribution: Debian, Kubuntu
Posts: 572

Rep: Reputation: 75
Get xterm installed and try
 
Old 11-30-2011, 06:37 PM   #5
RagingRaven
LQ Newbie
 
Registered: Sep 2011
Posts: 19

Original Poster
Rep: Reputation: Disabled
Will do that tomorrow, it's bedtime over here in the Netherlands
 
Old 12-01-2011, 03:53 AM   #6
RagingRaven
LQ Newbie
 
Registered: Sep 2011
Posts: 19

Original Poster
Rep: Reputation: Disabled
Ok installed xterm.
Shows up in krunner, but doesn't show up when I try to start it. It actually doesn't even show an icon in the taskbar which the other applications do.

Any way to start xterm from a remote console perhaps?
 
Old 12-01-2011, 04:08 AM   #7
klearview
Member
 
Registered: Aug 2006
Location: London
Distribution: Debian, Kubuntu
Posts: 572

Rep: Reputation: 75
Check in your home log .xsession-errors or see if it's named differently in Mandriva (should start with .x or .X)
Are there any errors?

If not, let's see if we can catch an error by trying to run a graphical application from crontab:

Quote:
crontab -e
And as the last line add:

Quote:
45 * * * * DISPLAY=:0 konsole
Only instead of '45' use the next minute.

Save and wait for that minute to come, then check /var/log/syslog for CRON errors.
 
Old 12-01-2011, 04:51 AM   #8
RagingRaven
LQ Newbie
 
Registered: Sep 2011
Posts: 19

Original Poster
Rep: Reputation: Disabled
Ok just took a look at .xsession-errors, it has quite a few lines in there, but I think most aren't actually errors, but I'm not sure what I should be looking for.
I could add the file as an attachment if that's any help.

As for the crontab option, I'll try that when I get home, because I'm at work now and only have a ssh connection to my server, so I wouldn't be able to see if anything starts in the x-environment.
 
Old 12-01-2011, 06:24 AM   #9
RagingRaven
LQ Newbie
 
Registered: Sep 2011
Posts: 19

Original Poster
Rep: Reputation: Disabled
Ok I executed the cronjob.

Nothing showed, and the log shows the following at the time of the cronjob:

crond[1702]: (root) RELOAD (/var/spool/cron/root)
crond[8146]: (root) CMD (DISPLAY=:0 konsole)
crond[8149]: (CRON) EXEC FAILED (/usr/sbin/sendmail): no such file or directory
crond[8146]: u.

(yes i should fix sendmail, but I don't think that's it)

So if I'm analysing it correctly, it executed the display 0 konsole command without errors ?

Last edited by RagingRaven; 12-01-2011 at 11:37 AM.
 
Old 12-01-2011, 01:06 PM   #10
RagingRaven
LQ Newbie
 
Registered: Sep 2011
Posts: 19

Original Poster
Rep: Reputation: Disabled
Something came to mind, which may or may not have anything to do with my problem:

I remember that in previous versions I used to be able to switch between virtual desktops, now I don't seem to have that option in the current version anymore (at least not directly), but isn't it possible that the programs do get started, but that they are being started on another screen which I don't see?
 
Old 12-05-2011, 05:10 PM   #11
RagingRaven
LQ Newbie
 
Registered: Sep 2011
Posts: 19

Original Poster
Rep: Reputation: Disabled
Anybody? or Should I start collecting my files and scripts for a fresh install?
 
Old 12-05-2011, 08:53 PM   #12
frankbell
Guru
 
Registered: Jan 2006
Location: Virginia, USA
Distribution: Slackware, Mageia, Mint
Posts: 7,639

Rep: Reputation: 1448Reputation: 1448Reputation: 1448Reputation: 1448Reputation: 1448Reputation: 1448Reputation: 1448Reputation: 1448Reputation: 1448Reputation: 1448
Before doing that, try one more test: create a new user, log in as the new user, and test KDE functionality under that login.

If the KDE programs work, that would point to something gone screwy in your /home/[username]/ dot-something-or-other configuration files.
 
Old 12-06-2011, 02:36 PM   #13
RagingRaven
LQ Newbie
 
Registered: Sep 2011
Posts: 19

Original Poster
Rep: Reputation: Disabled
You're spot on with your suggestion.
I made a new test user and with that user I can start all KDE applications just fine.
Any way to get the other user working again, or should I delete it and recreate it ?

Thanks for the help btw
 
Old 12-06-2011, 09:32 PM   #14
frankbell
Guru
 
Registered: Jan 2006
Location: Virginia, USA
Distribution: Slackware, Mageia, Mint
Posts: 7,639

Rep: Reputation: 1448Reputation: 1448Reputation: 1448Reputation: 1448Reputation: 1448Reputation: 1448Reputation: 1448Reputation: 1448Reputation: 1448Reputation: 1448
Cool. As my old boss used to say, even a blind pig finds an acorn once in a while.

Regarding your question:

It depends on how valuable the data in that user's home directory is and how valuable that user name and uid are.

There are several alternatives.

If the data is not valuable, blow away the user and its home directory and start over. If there's only a bit of valuable data, back it up to another location, then do the blowing away.

If the data is valuable, you can test to figure out which configuration file is corrupt by renaming one to something like dot-[filename].old, logging in (which will lead to the recreation of the file at default when you log in or when you start the program that file is associated with), and testing, then repeat for each one in turn. That will be time-consuming, but it will enable you to identify the cause precisely.

I would start with the dot-kde (~/.kde) file.

The other brute force method would be to delete all the hidden config files, log in, and let them all get recreated at default and test. If there are any that you have customized (for example, my Fluxbox menus and startup files are heavily customized), you can save them out and bring them back when you are ready. Then, if the malfunction occurs again, you can troubleshoot those files.

Last edited by frankbell; 12-06-2011 at 09:34 PM.
 
Old 12-07-2011, 08:01 AM   #15
RagingRaven
LQ Newbie
 
Registered: Sep 2011
Posts: 19

Original Poster
Rep: Reputation: Disabled
Well the data itself isn't a problem, the uid might be.
I'm guessing things like a cronjob that run with that specific user, use the uid and not the username and will therefor no longer work if I drop the user and make a new user with the same username.
There's also a couple of settings I changed to get audio working through hdmi, which seem to be user specific (new user isn't giving me sound).
But I did those settings some time ago and no longer remember which settings I changed (damn me and my lazy ass not documenting these things).

Now if it's the only way to get kde working normally again I will just dump the user and create a new one, but if there was any way of keeping the current one it will save me a lot of time.

I'll guess I'll start playing around with the dot-files to see if I can get the user working again.
At least I know where to look now.

Thanks again for the info and help and I'll mark this thread as solved for now.
 
  


Reply

Tags
mandriva, program, start


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
Mandriva won't start up KDE 4.2 markw10 Mandriva 3 05-24-2009 02:41 AM
kde programs start error, related to dcopserver baosheng Ubuntu 4 05-11-2007 04:12 AM
knoppix remastering error - kde won't start Cinematography Linux - Distributions 1 09-04-2005 06:50 PM
Programs in FluxBox take ages to start or don't start at all hubabuba Slackware 1 02-20-2005 09:21 AM
KDE won't start. On log in kdeinit error bdika Linux - Software 6 11-10-2003 07:19 PM


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