29 lines
384 B
Bash
Executable File
29 lines
384 B
Bash
Executable File
#!/bin/bash
|
|
source /etc/profile
|
|
|
|
signal_x_ready="$1"
|
|
|
|
/etc/rc.d/init.d/xfs start
|
|
|
|
X -bpp 32 :1 &
|
|
x_pid="$!"
|
|
|
|
export DISPLAY=:1
|
|
|
|
while ! xsetroot -solid gray; do
|
|
sleep 1
|
|
done
|
|
|
|
xhost +local:
|
|
|
|
# Fix the sound permissions
|
|
chmod g+rw /dev/dsp
|
|
gpasswd -a georges audio
|
|
|
|
touch "$signal_x_ready" # tell the outer system that our X is ready.
|
|
|
|
su georges -c "startkde"
|
|
|
|
sleep 5
|
|
kill "$x_pid"
|