LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   SUSE / openSUSE (https://www.linuxquestions.org/questions/suse-opensuse-60/)
-   -   Error: Could not start kstartupconfig. (https://www.linuxquestions.org/questions/suse-opensuse-60/error-could-not-start-kstartupconfig-328302/)

Time2Design 05-29-2005 02:26 PM

Error: Could not start kstartupconfig.
 
I just got SuSE Linux yesterday and have looked through it and things but this morning when I went on it i got the error "Could not start kstartupconfig. Check your installation." I read in another topic the guy just did this
chmod -R hhlost:users /home/hhlost
so i tried the same code except replaced hhlost with my name and it says scott:users is not a valid mode any suggestions?

abisko00 05-30-2005 08:46 AM

I can't help with your problem, but the command you used has the wrong syntax:

'chmod' is for changing the permissions of the file, while 'chown/chgrp' are for changing the ownership. So I would guess it should read: 'chown -R scott:users /home/scott'.

petersk 08-02-2005 07:57 PM

Did this work? I am having the same problem and this fix certainly didn't work for me. (using CHown)
Kurt

DumbTerminal 08-12-2005 08:33 AM

Quote:

Originally posted by petersk
Did this work? I am having the same problem and this fix certainly didn't work for me. (using CHown)
Kurt

My problem was that I changed a username and it didnt create a home folder.
Then I had to create the new directory /home/username
Then chOWN worked for me:
'chown -R username:users /home/username'.

mrshadow76 11-30-2005 08:47 AM

Just this week I experienced this on two computers with SuSE 10.0. They both have 120GB HDD using XFS. In addition to the kstartconfig error, I also had received a "Could not start kdeinit. Check your installation" error. The solution to "fix" the problem was to copy the offending users home directory to a backup one (i.e. user to user2). Then, log in as root, and removed the user through Yast2, deleting the home directory. Then readd the user. Simply just deleting the .kde directory DID NOT solve the problem. It is possibly a masqueraded DCOP problem, or such. Another coworker suspects that it may be XFS, which is possible. Unknown though. If I find out more, I'll be sure to post.

Edited to add:
This was "sudden", and occurred after a "normal" user initiaed reboot. kstartupconfig and kdeinit apparently were returning an errorcode of 127, which is probably a sign problem and is really -1.

mrshadow76 11-30-2005 09:52 AM

Our problem was the PATH variable was not being set correctly, because someone copied a new .bashrc file over the old one, setting PATH, but not doing a PATH=$PATH.

Leatherneck 12-04-2005 12:36 AM

Just wanted to say that first off I am new to the forums, but was very impressed.

I just bought and installed Suse 10.0 as a dual boot on my Inspiron 8200 and experienced the same issue.

The above chown -R command fixed me up perfectly.

Thanks for the help, I am sure I will need much much more. So far my pcmcia card wireless network is not working, but I will try some research befor I start begging for help. Thanks again.

Ellises 01-30-2006 03:22 AM

I get this error too.

I just bought openSuSE 10.1 Alpha 4 from linuxcd.org and I installed it on my computer using optimal settings (no changes), and I go reboot the computer and before loading my user profile I get this error "could not start kstartupconfig" and the same thing when actually trying to go into the user account.

I tried the ways metioned so far in this forum, and none works, the chown command didn't work anyways and I wouldn't see why if it's only effecting the user, after all this message is coming up in the user selection screen.

This is annoying me as well, I tried installing it on another computer to make sure there wasn't something up with my hardware, but same problem. And I'm not about to re-install using GNOME (I don't like GNOME).
Does anyone else know how to fix this?
I'm about to just go back to Debian. LOL.

Ellises 01-30-2006 03:46 AM

For some reason it's working for me now, I'm no longer receiving an error.

And I don't know why this made kde start working either.
But what I did was I loaded an alternative window manager and was playing to see what it could do, and then I remembered that I had an error with kdeinit after the kstartupconfig error sometimes... so I went to shell and for the heck of it, I typed in kdeinit and ran it, it linked some files and then had an error, well I restarted linux after that about to give up and then it loaded, strange. but now it loads my profile automaticly without me even telling it to do that, oh well. lol

hhlost 01-30-2006 08:30 AM

Yes, a mistake...
 
It should be:

chown -R username:group /home/username

username = your login name
group = probably "users"

DumbTerminal 01-30-2006 08:43 AM

Quote:

Originally Posted by hhlost
It should be:

chown -R username:group /home/username

username = your login name
group = probably "users"

:scratch:
I believe that was estalished about 8 months ago ;)

ganeshv 02-21-2006 04:55 PM

X, Path config
 
Hi all,

I had the same problem after I updated Java in my SUSE 10, AMD 64bit system. I got the following errors:"Could not start kstartconfig." and "Could not start kdeinit."
Also, when I tried logging in otherwise (failsafe/ command line), I wasn't able to use the BASH shell. Hence none of the commands like chown, cp, etc would work! This is how I solved the problem

I logged into the shell prompt (using System->Command line) and reset the PATH variable by executing:
export PATH=$PATH:/bin:/usr/bin/

Then I was able to use all the basic commands. So, then I executed:
chown -R username:users /home/username

I logged in as root (su), and deleted the .X0-lock file in /tmp directory. I also updated the PATH for all users in the .bashrc file.

Thats it! It all works fine now.

hope this helps,
Ganesh :Pengy:

samstern 03-19-2006 11:50 PM

Quote:

Originally Posted by mrshadow76
Our problem was the PATH variable was not being set correctly, because someone copied a new .bashrc file over the old one, setting PATH, but not doing a PATH=$PATH.

I just experienced this problem (kde not int he path) during a conversion from a nfs hosted home directory (old system was solaris 8 x86) to local home directory. The old OS had hard coded that system's path into the .profile and did not reference /etc/profile. the user's .profile encluded all the regular targets but not Suse 10's /opt/kde3/bin in the path.


So so far the points to check when trouble shooting this problem are:

1) does the user own thier home directory (and probly the ~/.kde as well) ?
2) Does the path as set by the user's shell include the kde binaries? Check /etc/profile, ~/.bashrc (or .ksrc etc) and ~/.profile.
3) If the above two seem correct, delete the old X lock files that user owns in /tmp.

dpet 03-27-2006 07:07 AM

Error: Could not start kstartupconfig
 
:confused: Hi there and thanks for the previouse info on how to solve this problem, but! now heres the problem but first it seamed to have worked but actualy my user name folder and any other user name folders now nolonger exist, was able to log in as root and create a user and log in which had been imposible before but now everything has been set to default and have losed three months of email and bookmarks, funy thing is the hdd is the same size as before this hapend, have made serches for files that are missing and no sign of them, i dont care to much about the files but my email had a lot of precious mail in it, if the drive has not changed size could it be posible that sertain info may still exist but be in disguyes, hiden some how, please help

BDHamp 03-27-2006 02:29 PM

Quote:

Originally Posted by dpet
:confused: Hi there and thanks for the previouse info on how to solve this problem, but! now heres the problem but first it seamed to have worked but actualy my user name folder and any other user name folders now no longer exist

Do you know if you experienced a power outage or some other event that resulted in an improper shutdown that might have taken place during write to the disc?

I ask because all the symptoms mentioned in this thread, with the inclusion of the disappearing directories, happened to me this past weekend, and it turned out it was caused by someone having hit reset during a disc-write operation and this corrupting the file structure in a way fsck couldn't fix upon boot. I didn't so much fix the problem as restart using a backup of my home directory, which I make fairly frequently to avoid these problems.

Try running fsck --check /dev/<device name>, (e.g. /dev/hda6 would be for hard drive a, partition 6, but use whichever ones you have) from a terminal and see what happens.

dpet 03-29-2006 06:23 AM

no I have an ups

ZeromusM 05-09-2006 10:18 AM

As a note to those who use the command line to create users:

When using useradd to create users, use the -m (create home directory) option if you want that user to use the desktop, otherwise you will run into the "Could not start kstartupconfig" error being discussed here.

Another way to fix this problem is to create the home directory manually, chown it as mentioned above, then change the user to point to that home directory:

mkdir /home/foo
chmod user:users /home/foo
usermod -d /home/foo user

To make things easier, the home directory should be the user name, but you can make it anything you want this way.

anatman 05-19-2006 07:50 PM

I have a somewhat similar problem I think. After updating lots of stuff through the auto-update thingie in KDE I come to the command line whenever i start or reboot the computer. Being a complete newbie i tried typing: 'kde' <enter> and got these messages:

Quote:

pdyinfo: unable to open display
pdyinfo: unable to open display
/opt/kde3/bin/starthde.therm:line 122[:-gt:unary operator expected]
(same for line 123,126,127,128, and 129)
xset: unable to open display
xset root: starting up...
kde init: aborting -$display is not set
Warning: connect() failed: no such file or directory
tosmserver:cannot connect to x server
ERROR: Couldn't attach to DCOP server!
startkde: shutting down...
Warning: connect() failed: No such file or directory
Error: Can't contact kdeinit!
Starting artsd
kcminit:cannot connect to X server
startkde: Running shutdown scripts
startkde: done.

and then I'm back on the command line. So I tried these commands:

Quote:

Originally Posted by ganeshv
I logged into the shell prompt (using System->Command line) and reset the PATH variable by executing:
export PATH=$PATH:/bin:/usr/bin/

Then I was able to use all the basic commands. So, then I executed:
chown -R username:users /home/username

I logged in as root (su), and deleted the .X0-lock file in /tmp directory. I also updated the PATH for all users in the .bashrc file.

Thats it! It all works fine now.

hope this helps,
Ganesh :Pengy:
ganeshv@ufl.edu

The first command (export..) worked (at least no error message).

The second command I just don't understand. Is username my username? and users? I tried with my username but got the error message: chown: missing operand after <<users/home/myusername>>

Then I just guessed and tried:

Quote:

chown -R myusername: /home/myusername
and that gave me no errormessage, but I still get to the command line, not KDE, after rebooting.

And lastly I couldn't find the -XO-lock file in the tmp directory. I looked in /tmp and no such file was there for me to delete as I could see.


Any ideas on how I can get this to work?

ZeromusM 05-20-2006 11:05 AM

anatman:

It sounds like you might not be starting in the proper runlevel. To get the X server, you need to be at runlevel 5. When you start up to the command line, either log in as root or type in "su" if you're already logged in, enter the root password, then type in "runlevel", which will return your current runlevel (1-5)

1 is single user command line mode, with no other terminals available, 3 is multi-user command line mode, and 5 is full graphical mode. The X server and KDE are only available in 5.

If runlevel returns anything other than 5, type in "init 5" as root

After typing in init 5, you should either get the KDE login screen, or some error messages saying why it isn't coming up.

oh btw, chown = change ownership, with username being the username you want to own that file, in this case yours. users is the group your username most likely belongs to.

anatman 05-20-2006 06:10 PM

Thanks ZeromusM. I ran runlevel as root and it said N 5 so I guess that means I'm level 5? This time I got both the export and the chown command working, and my runlevel is 5, but I still can't start kde. So I want to find the .XO-lock file in the /tmp directory, to delete it. Where can I find this file? Anyone know? In the /tmp directory there were files like:

Quote:

gconfd-myusername
gconfd-root
kde-myusername
kde-anotherusername
kde-root
klik
ksocket-myusername
ksocket-anotherusername
ksocket-root
orbit-myusername
but no .XO file?

ZeromusM 05-20-2006 08:07 PM

Yeah that means you're at runlevel 5. I don't think your problem is what is being talked about here, because when this happens, you will get the graphical login screen, then a popup at login. What you want to do is look for errors in /var/log/Xorg.0.log and dmesg (type "dmesg" to get the output). Also, I assume you typed in "kde" to try to get kde working again - what did the output of that say?

Cut and paste output always helps more than a description of the problem, so the exact wording of any messages you find would be appreciated.

anatman 05-21-2006 09:23 AM

Yes there were some errormessages both in the xorg logfile (no screens found) and kde, and dmesg, but how can I get the output of those files on a floppy so I can copy it on here? I'm using Kubuntu 5.10 live until I get it fixed...

ZeromusM 05-26-2006 10:29 AM

anatman: Please refer to and reply to: Problem starting KDE - xorg no displays found

navyanthgn 11-15-2006 07:15 AM

kstartconfig error
 
Hi Guys

chown -R navi:users /home/navi
this worked for me.

I created the home directory, as it was not created before and then executed this above command.
It worked.

-Navyanth

flipflopnick 02-19-2007 02:54 AM

kstartupconfig error
 
Thanx for the thread. had similar fault, tried everyone suggestions. Realised having /home on FAT32 partition meant problems with write permissions.
So moved /home to a linux file system partition, with symlink to FAT32 partition.
Set FAT32 partition to automount in fstab.
That got rid of one error.

Then logged on as root, created 'users' with their 'home' directories in new /home, on a linux partition.

Moved any data files across to new 'user's' home directories.
got rid of old config files in old FAT32 partition.

Now to get other errors fixed.

edubidu 03-22-2007 06:52 AM

Hi, my problem was: I used SMB login and Kerberos. So, the user I logged had the same name @ local as @ the domain, but the domain user could not write into /home/user/.kde
Normal, cause the domain user is considered as another user than the local user, even if it has the same name....

THE SOLUTION: go into user management (I use Suse10.2 so: yast2), configure Expert Options - Authentication and User Data Sources - Samba

As domain Membership click "yes" to "Create Home Directory on Logon"

That's it.

nj78 03-28-2007 11:23 AM

In response to above, about display not set, I would use startx. That seems to always work past this.

dpeirce 03-15-2008 02:05 PM

Still happening! March 15, 2008, ver 10.3
 
Hi guys. Here it is March 15, 2008, and it bit me too. OpenSUSE 10.3. No /home/dave. The chown fix worked for me too. BUT BUT.....

If somebody from OpenSUSE is looking in, isn't it time this got corrected? It's been going for almost 3 years now.

This is my first time to try OpenSUSE and its installation, anyway, is pretty impressive. The installation went well and offered me more control over partitioning and setup than any others I've experienced. It even let me set screen resolution at my favorite 2048x1536 during the install. But, even though it said it had set up my wireless, it hadn't ^_^. And this "Can't start kstartupconfig" thing.

In faith, Dave
Viva Texas

Linux: Welcome /home.

hitman_vivek 06-19-2008 02:14 PM

Could not start kstartupconfig. Check your installation
 
while creating the user account use the command as follows
" useradd -m <username>"
-m indicates it to create the home directory for the specified user.
After creating the account ,you should be able to login into the newly created account


All times are GMT -5. The time now is 12:54 PM.