~/.xinitrc

Hossein

New Member


Messages: 16

#1
My destination is adding the following line to ~/.xinitrc
exec /usr/local/kde4/bin/startkde
in order to launch KDE by typing startx from the command line. So I did this :
Code:
# ee /.xinitrc
which had no line and I added that line. but after
Code:
startx
it doesn't run. This is one of the massages:
Code:
exec: /usr/local/kde4/bin/startkde: not found
 

youngunix

Active Member

Thanks: 33
Messages: 203

#2
Did you confirm that startkde exists in that path? You can do the following to locate the correct path (assuming you have done the perquisites in order to run a DE):

# which startkde
or
# whereis startkde
or
# find / -name "startkde"

You can also do (as stated in Chapter 6, section 6.8):

% echo "#!/bin/sh" > ~/.xsession
% echo "exec /usr/local/kde4/bin/startkde" >> ~/.xsession
% chmod +x ~/.xsession
 
OP
OP
H

Hossein

New Member


Messages: 16

#3
Did you confirm that startkde exists in that path? You can do the following to locate the correct path (assuming you have done the perquisites in order to run a DE):

# which startkde
or
# whereis startkde
or
# find / -name "startkde"

You can also do (as stated in Chapter 6, section 6.8):

% echo "#!/bin/sh" > ~/.xsession
% echo "exec /usr/local/kde4/bin/startkde" >> ~/.xsession
% chmod +x ~/.xsession
Code:
# which startkde 
/usr/local/bin/startkde
 

youngunix

Active Member

Thanks: 33
Messages: 203

#5
You know on second thought, do not use the root account to complete the above tasks. Please make sure you create a normal user account and then create ~/.xinitrc or ~/.xsession.
 

Juanitou

Well-Known Member

Thanks: 124
Messages: 453

#7
The ~ sign is a shorthand for your home folder (/usr/home/<user>, check it with pwd(1)), where you have to create the file. The command you used would create it in the root folder (/) and not be used by Xorg. Take a look at hier(7).
 
OP
OP
H

Hossein

New Member


Messages: 16

#8
The ~ sign is a shorthand for your home folder (/usr/home/<user>, check it with pwd(1)), where you have to create the file. The command you used would create it in the root folder (/) and not be used by Xorg. Take a look at hier(7).
Did you mean this was the correct command: ee ~/.xinitrc
which I have tried it , with no difference in the result.
 
Top