DaemonForums  

Go Back   DaemonForums > FreeBSD > FreeBSD General

FreeBSD General Other questions regarding FreeBSD which do not fit in any of the categories below.

Reply
 
Thread Tools Display Modes
  #1   (View Single Post)  
Old 28th February 2009
ccc ccc is offline
Shell Scout
 
Join Date: May 2008
Posts: 97
Thanked 0 Times in 1 Post
Default start and stop KDE from shell

hi

howto start and stop KDE from shell under freeBSD7.1?
Reply With Quote
  #2   (View Single Post)  
Old 28th February 2009
fbsduser fbsduser is offline
Shell Scout
 
Join Date: Aug 2008
Posts: 104
Thanked 4 Times in 4 Posts
Default

If you have a display manager (KDM, GDM, WDM or XDM) you should be able to do that by using the K(G/W/X)DM stop and K(G/W/X)DM start command in the directory containing your runlevels. Or if you don't have any of these installed, startx and killall X should do it for starting/stopping KDE (provided that you have the "exec startkde" line into your ~/.xinitrc file).
Reply With Quote
  #3   (View Single Post)  
Old 28th February 2009
BSDKaffee's Avatar
BSDKaffee BSDKaffee is offline
Real Name: Jason Hale
Coffee Addict
 
Join Date: May 2008
Location: Wintersville, Ohio
Posts: 212
Thanked 36 Times in 34 Posts
Default

Using killall isn't a good idea for KDE. A better to logout of KDE via the commandline is through dcop for KDE 3.x or dbus for KDE 4.x.

For KDE 3.x, I use the command:
$ dcop --all-sessions --user username ksmserver default logout 0 0 0

For KDE 4.x, make sure the environment variable DBUS_SESSION_BUS_ADDRESS is set for the appropriate session. You can usually find this in /usr/home/username/.dbus/session-bus/. Then use the command:
$ qdbus org.kde.ksmserver /KSMServer org.kde.KSMServerInterface.logout 0 0 0
Reply With Quote
  #4   (View Single Post)  
Old 28th February 2009
fbsduser fbsduser is offline
Shell Scout
 
Join Date: Aug 2008
Posts: 104
Thanked 4 Times in 4 Posts
Default

Quote:
Originally Posted by BSDKaffee View Post
Using killall isn't a good idea for KDE. A better to logout of KDE via the commandline is through dcop for KDE 3.x or dbus for KDE 4.x.

For KDE 3.x, I use the command:
$ dcop --all-sessions --user username ksmserver default logout 0 0 0

For KDE 4.x, make sure the environment variable DBUS_SESSION_BUS_ADDRESS is set for the appropriate session. You can usually find this in /usr/home/username/.dbus/session-bus/. Then use the command:
$ qdbus org.kde.ksmserver /KSMServer org.kde.KSMServerInterface.logout 0 0 0
Sory for that, It's been quite a long time since I last used KDE (around 2.x), I have been in gnome since.
Reply With Quote
  #5   (View Single Post)  
Old 14th April 2009
bigearsbilly bigearsbilly is offline
New User
 
Join Date: Mar 2009
Posts: 8
Thanked 0 Times in 0 Posts
Default

if you are going direct to X on bootup
you can put all the startup stuff in

$HOME/.xsession

if you use startx

they go in

~/.xinitrc
Reply With Quote
  #6   (View Single Post)  
Old 14th April 2009
ccc ccc is offline
Shell Scout
 
Join Date: May 2008
Posts: 97
Thanked 0 Times in 1 Post
Default

thx, but I'd like to start and stop kdm from the command line just if I really want and not every time.

startx doesn't help, because I cannot connect using a remote connection tool for example xwin32.

under freeBSD 7.0 it was very easy using:
Code:
# /usr/local/etc/rc.d/kdm start
Reply With Quote
  #7   (View Single Post)  
Old 15th April 2009
phoenix's Avatar
phoenix phoenix is offline
Risen from the ashes
 
Join Date: May 2008
Posts: 699
Thanked 90 Times in 81 Posts
Default

I posted an RC script in your thread on FreeBSD Forums.
__________________
Freddie

Help for FreeBSD: Handbook, FAQ, man pages, mailing lists.
Reply With Quote
  #8   (View Single Post)  
Old 15th April 2009
ccc ccc is offline
Shell Scout
 
Join Date: May 2008
Posts: 97
Thanked 0 Times in 1 Post
Default

thx Phoenix,

sorry I didn't check an other posting.
Reply With Quote
  #9   (View Single Post)  
Old 8th July 2010
Maxwell_fonseca Maxwell_fonseca is offline
New User
 
Join Date: Jul 2010
Posts: 1
Thanked 0 Times in 0 Posts
Default I don't understand..... : (

Friend....

I would like to run a command on my prompt to logoff in KDE. You told about the command DBUS, but i don't understand this command! Could you explain it exactly ?
Thanks...
Reply With Quote
Reply

Thread Tools
Display Modes

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 On
HTML code is Off

Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
bmake: don't know how to make install. Stop J05HYYY NetBSD Package System (pkgsrc) 5 10th October 2009 04:19 PM
shell script-start another process bsdnewbie999 Programming 2 23rd April 2009 07:48 PM
Stop beeping Business_woman FreeBSD General 3 15th January 2009 09:00 PM
Stop Adobe Flash Petition Carpetsmoker Off-Topic 30 25th September 2008 03:43 AM
start stop services ? smooth187 OpenBSD General 4 31st August 2008 01:00 AM


All times are GMT. The time now is 07:16 PM.


Powered by vBulletin® Version 3.8.4
Copyright ©2000 - 2014, Jelsoft Enterprises Ltd.
Content copyright © 2007-2010, the authors
Daemon image copyright ©1988, Marshall Kirk McKusick