Differences between version 5 and previous revision of CyberLeo/Projects/CTAWallboard.
Other diffs: Previous Major Revision, Previous Author
Newer page: | version 5 | Last edited on Wednesday, 7 March 2012 22:30:16 | by CyberLeo | Revert |
Older page: | version 4 | Last edited on Wednesday, 7 March 2012 22:07:54 | by CyberLeo | Revert |
@@ -36,18 +36,19 @@
</code>
/usr/local/etc/wallboard.sh
<code brush="bash">
-#!/bin/sh -ex
+#!/bin/sh -e
export PATH=/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin
-logger -t wallboard
"Spawning wallboard
"
+tty=
"${1:-pts/0}
"
-su -l wallboard -c '. ~/.bash_profile; startx' 2>&1 | logger -t wallboard
-sleep 2
+logger -t wallboard "Spawning wallboard on ${tty}"
+
+
su -l wallboard -c '. ~/.bash_profile; exec
startx' 2>&1 | logger -t wallboard
</code>
/etc/ttys:
<code brush="plain">
ttyv8 "/usr/local/etc/wallboard.sh" xterm on secure
</code>
version 5
FreeBSD ports:
# Base ports-mgmt/portmaster misc-cdn/bash-config misc-cdn/flag net/rsync security/sudo shells/bash-completion sysutils/pv sysutils/screen devel/git # X x11/xauth x11/xbindkeys x11/xhost x11/xinit x11/xrandr x11/xrdb x11/xset x11/nvidia-driver x11/nvidia-settings x11/nvidia-xconfig x11-wm/icewm net/x11vnc misc/unclutter www/firefox
/usr/local/etc/wallboard.sh
#!/bin/sh -e export PATH=/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin tty="${1:-pts/0}" logger -t wallboard "Spawning wallboard on ${tty}" su -l wallboard -c '. ~/.bash_profile; exec startx' 2>&1 | logger -t wallboard
/etc/ttys:
ttyv8 "/usr/local/etc/wallboard.sh" xterm on secure