ccc said:sorry, I mean not startx, this I know.
I'd like to start and stop kde in background.
I mean like:
/usr/local/etc/rc.d/kde start
but cannot find under freeBSD 7.1
gelraen said:RTFM again. More specific - section 5.7.3.1
gilinko said:I think you have things a bit turned about. You can't run KDE in a background process, as it is a way to have a graphical interface instead of a console.
So to verify:
1. Do you want the "console login" view, login and then use startx to enter a graphical enviroment?
or
2. Do you want the KDM/XDM/GDM graphical login window, login and gain access to your specified xorg session(kde, gnome, xfce etc)?
It's either one or the other.
Also you can't start kde without first starting your X server so the command "startx" would then start your x-server and then kde.
# /usr/local/etc/rc.d/kdm start
Updating KDM configuration
Information: reading current kdmrc /usr/local/share/config/kdm/kdmrc (from kde >= 2.2.x)
Information: current kdmrc is from kde >= 3.1 (config version 2.3)
# /usr/local/etc/rc.d/kdm stop
ale said:I'm not a kde user but first, which version are you using?
FreeBSD 7.1-RELEASE Thu Jan 1 14:37:25 UTC 2009 root@logan.cse.buffalo.edu:/usr/obj/usr/src/sys/GENERIC i386
Sorry, I should have been more accurate in my question (even if you wrote on the previous post you are running 7.1).ccc said:Code:FreeBSD 7.1-RELEASE Thu Jan 1 14:37:25 UTC 2009 root@logan.cse.buffalo.edu:/usr/obj/usr/src/sys/GENERIC i386
ccc said:I'd like to start KDM graphical login window.
On freeBSD 7.0, I can simply start using:but on freeBSD 7.1 cannot find /usr/local/etc/rc.d/kdm.Code:# /usr/local/etc/rc.d/kdm start Updating KDM configuration Information: reading current kdmrc /usr/local/share/config/kdm/kdmrc (from kde >= 2.2.x) Information: current kdmrc is from kde >= 3.1 (config version 2.3) # /usr/local/etc/rc.d/kdm stop
ale said:sorry, i should have been more accurate in my question (even if you wrote on the previous post you are running 7.1).
I was asking about kde version.
#!/bin/sh
# PROVIDE: kdm
# REQUIRE: LOGIN cleanvar moused syscons dbus hald
#
# Add the following to /etc/rc.conf to start KDM 4.x at boot time:
#
# kdm4_enable="YES"
#
. /etc/rc.subr
kdm4_enable=${kdm4_enable-no}
export PATH=/bin:/sbin:/usr/bin:/usr/sbin:/usr/local/kde4/bin:/usr/local/bin:/usr/local/sbin
name="kdm"
rcvar=`set_rcvar`
command="/usr/local/kde4/bin/${name}"
procname="/usr/local/kde4/bin/${name}-bin"
pidfile="/var/run/${name}.pid"
start_cmd="kdm_start"
kdm_start()
{
echo "Starting ${name}."
( iter=0
while ! ps -axoargs | grep "^/usr/libexec/getty " | grep -qv grep >/dev/null 2>&1; do
if [ ${iter} -eq 60 ]; then
break
fi
sleep 1
iter=$(expr ${iter} + 1)
done
iter=0
while ! /usr/local/bin/lshal >/dev/null 2>&1 ; do
if [ ${iter} -eq 60 ]; then
break
fi
sleep 1
iter=$(expr ${iter} + 1)
done
${command} ${kdm_flags} ) &
}
load_rc_config ${name}
run_rc_command "$1"
#!/bin/sh
# PROVIDE: kdm
# REQUIRE: LOGIN cleanvar moused syscons dbus hald
#
# Add the following to /etc/rc.conf to start KDM 3.x at boot time:
#
# kdm3_enable="YES"
#
. /etc/rc.subr
kdm3_enable=${kdm3_enable-no}
export PATH=/bin:/sbin:/usr/bin:/usr/sbin:/usr/local/bin:/usr/local/sbin
name="kdm"
rcvar=`set_rcvar`
command="/usr/local/bin/${name}"
procname="/usr/local/bin/${name}-bin"
pidfile="/var/run/${name}.pid"
start_cmd="kdm_start"
kdm_start()
{
echo "Starting ${name}."
( iter=0
while ! ps -axoargs | grep "^/usr/libexec/getty " | grep -qv grep >/dev/null 2>&1; do
if [ ${iter} -eq 60 ]; then
break
fi
sleep 1
iter=$(expr ${iter} + 1)
done
iter=0
while ! /usr/local/bin/lshal >/dev/null 2>&1 ; do
if [ ${iter} -eq 60 ]; then
break
fi
sleep 1
iter=$(expr ${iter} + 1)
done
${command} ${kdm_flags} ) &
}
load_rc_config ${name}
run_rc_command "$1"
phoenix said:Note the name of the variable in the error message. Change the variable name in rc.conf to match.
kdm_enable="YES"