View previous topic :: View next topic |
Author |
Message |
beatlejuice321 n00b
Joined: 08 May 2002 Posts: 21 Location: Central USA
|
Posted: Sat May 18, 2002 10:39 pm Post subject: commands to start KDE? |
|
|
OK, I have Gentoo installed, and I installed my desktop by emerging first "xfree86" and then "KDE".
Problem:
According to the "Desktop" setup screen on Gentoo's website. You use the "kdm" command to start KDE thourh the desktop manager program. How do I bypass this? I just want to start KDE from the command line from whichever log in I am currently using. Could anyone tell me?
Note: also when I use the KDM/XDM command to start KDE, I cannot exit from the login screen back to the command prompt. I have to actually use the "Restart Computer" command. Ctrl-Alt-Backspace, only restarts the KDM manager again.
Can anyone help me? I also noticed that someone said that I had to install the "QT" libraries separetly, but this makes no sense because KDE seems to run fine using KDM command to start it.
Any help anyone could give me would be appreciated.
Thanks,
Bealtjuice |
|
Back to top |
|
|
474 l33t
Joined: 19 Apr 2002 Posts: 714
|
Posted: Sun May 19, 2002 12:10 am Post subject: Starting KDE |
|
|
No sweat, just make sure the startkde command is in your .xinitrc file, and use startx instead:
Code: | cd
echo startkde > .xinitrc |
This is how you would do it for other WMs too, for example Fluxbox would require fluxbox in that file. Portage will already have merged the Qt libraries because KDE is dependent on them. |
|
Back to top |
|
|
FINITE Guru
Joined: 10 May 2002 Posts: 449
|
Posted: Sun May 19, 2002 1:07 am Post subject: |
|
|
Can you have multiple wm's listed in the .xinitrc file? Also I don't think that takes care of the abilitly to exit back to the "runlevel3" bash prompt does it? |
|
Back to top |
|
|
dArkMaGE Apprentice
Joined: 20 Apr 2002 Posts: 152
|
Posted: Sun May 19, 2002 1:34 am Post subject: |
|
|
just place exec startkde into ~/.xinitrc, and then start the X server by running the command startx.
when you logout from your kde session, you will return to the original bash prompt.
oh yeah... i forgot... i think you also have to chmod a+x .xinitrc as well. |
|
Back to top |
|
|
Jeevz Bodhisattva
Joined: 15 Apr 2002 Posts: 195 Location: Boston, MA
|
Posted: Sun May 19, 2002 1:58 pm Post subject: Re: Starting KDE |
|
|
kerframil wrote: |
Code: | cd
echo startkde > .xinitrc |
|
FYI: This will overwite your .xinitrc file. Of course, it doesn't matter if you didn't create one in the first place. |
|
Back to top |
|
|
magoo n00b
Joined: 06 May 2002 Posts: 36 Location: Halifax, Canada
|
Posted: Sun May 19, 2002 3:37 pm Post subject: |
|
|
FINITE wrote: | Can you have multiple wm's listed in the .xinitrc file? |
i list multiple wm's by commenting out all but the one i want to use. just put each wm command on their own line.
dArkMaGE wrote: | i think you also have to chmod a+x .xinitrc as well. |
also the file does not need to be +x anymore _________________ magoo |
|
Back to top |
|
|
tomte Tux's lil' helper
Joined: 08 May 2002 Posts: 122
|
Posted: Sun May 19, 2002 5:57 pm Post subject: Re: commands to start KDE? |
|
|
beatlejuice321 wrote: |
Note: also when I use the KDM/XDM command to start KDE, I cannot exit from the login screen back to the command prompt. I have to actually use the "Restart Computer" command. Ctrl-Alt-Backspace, only restarts the KDM manager again.
|
There are almost no situations where you have to reboot your computer while using linux!
A few of these:
1. X freezes and you don't have another machine to ssh in to kill X
2. you installed a new kernel and want to use it (not true if you have user-space-kernel capabilities.
3. Memory-Usage prevents you from login in from another machine to kill the harmful process(es)
To your problem:
If you can't use
to go to one of the six consoles from kdm/xdm login, your system is fucked up. If you didn't know that this is the way, rtfm next time!
To get back from a console to X: ALT+CTRL+F7
regards,
tom |
|
Back to top |
|
|
kode54 n00b
Joined: 16 May 2002 Posts: 42
|
Posted: Tue May 21, 2002 6:45 am Post subject: |
|
|
Also, you can use the environment variable XSESSION.
Executing startx will, conveniently, start X, with whichever session script you specify. All of the session scripts are contained in /etc/X11/Sessions.
So,
XSESSION=kde-3.0 startx
Will start X with the script /etc/X11/Sessions/kde-3.0
You can also export XSESSION= within your .bash_profile, or set the default XSESSION for your configured DISPLAYMANAGER within /etc/rc.conf. |
|
Back to top |
|
|
beatlejuice321 n00b
Joined: 08 May 2002 Posts: 21 Location: Central USA
|
Posted: Wed May 22, 2002 9:35 pm Post subject: |
|
|
Thanks, for all your suggestions. They did work and I got it working fine.
I appreciate it!
Thanks,
Beatlejuice |
|
Back to top |
|
|
Curious Bodhisattva
Joined: 13 May 2002 Posts: 395 Location: Sydney, Australia
|
Posted: Wed May 22, 2002 10:20 pm Post subject: Re: commands to start KDE? |
|
|
beatlejuice321 wrote: | Note: also when I use the KDM/XDM command to start KDE, I cannot exit from the login screen back to the command prompt. I have to actually use the "Restart Computer" command. Ctrl-Alt-Backspace, only restarts the KDM manager again.
|
Ok, I've heard of a few people who want to do this ( but heavens knows why ). Programs that are started repeatedly like kdm, or the virtual console logins, or modem dialin sessions are started from init, which is controlled by a file called /etc/inittab.
Somewhere in /etc/inittab you should find a line that looks something like this - I am reciting from memory:
Code: |
x:345:respawn:/usr/sbin/kdm
|
This means that in run levels 3, 4 and 5, run a service ( "x" ), with the command line "/usr/sbin/kdm". When it exits "respawn" it. You can comment this line out with a # character, and then force init to reread the file.
The next time you exit KDM, it should stay dead. And of course, this information applies to other DM's as well.
Regards,
Bryn. _________________ Are you down with the Hawk? |
|
Back to top |
|
|
|