Hello everyone! This is my first post!
I'm trying to set-up a Thin Client that when booted will automatically log into a server for vnc.
Right now, I have a bash shell script at /etc/rc.d/thinclient
I know that all my lines of code work, because the script runs as expected if executed after having logged in.
Typing all that produces the expected result, filling the screen with wonderful, fullscreen VNC goodness.
However, I want the result without the typing, at startup.
The only clue I have is the output at startup.
Check it out!
Seemingly, the problem is that xorg cannot properly start. But why?
Any help from the friendly FreeBSD community would be much appreciated! Could the problem be not having a $PATH variable?
-Peter
I'm trying to set-up a Thin Client that when booted will automatically log into a server for vnc.
Right now, I have a bash shell script at /etc/rc.d/thinclient
Code:
#!/bin/sh
echo "thinclient script starting..."
SERVER_IP="192.168.1.124"
STARTX_PATH="/usr/local/bin/startx"
VNCVIEWER_PATH="/usr/local/bin/vncviewer"
VNCVIEWER_ARGUMENTS="localhost:1 -geometry 1280x1024 -passwd /etc/thinclient/vncpasswd"
echo "Step 1: Attempting ssh connection as 'ThinAccount' to server at $SERVER_IP"
/usr/bin/ssh -f -i /etc/thinclient/id_rsa -L 5901:localhost:5900 -N ThinAccount@$SERVER_IP
echo "Step 2: *Unimplemented* Server will attempt connection to ThinClient"
echo "Step 3: Calling 'startx' with 'vncviewer'"
$STARTX_PATH $VNCVIEWER_PATH $VNCVIEWER_ARGUMENTS
I know that all my lines of code work, because the script runs as expected if executed after having logged in.
Code:
login: root
password:
FreeBSD-ThinClient# cd /etc/rc.d
FreeBSD-ThinClient# ./thinclient
However, I want the result without the typing, at startup.
The only clue I have is the output at startup.
Check it out!
Code:
/etc/rc: WARNING: Ignoring scratch file /etc/rc.d/thinclient~
thinclient script starting...
Step 1: Attempting ssh connection as 'ThinAccount' to server at 192.168.1.124
Step 2: *Unimplemented* Server will attempt connection to ThinClient
Step 3: Calling 'startx' with 'vncviewer'
xauth: not found
xauth: not found
xauth: not found
xauth: not found
xauth: not found
xinit: not found
xauth: not found
...
login:
Seemingly, the problem is that xorg cannot properly start. But why?
Any help from the friendly FreeBSD community would be much appreciated! Could the problem be not having a $PATH variable?
-Peter