|
Post by mackrackit on Apr 16, 2009 16:20:15 GMT -5
Carl was kind enough to let me try the headless setup. It works with out any problems.
I am using Ubuntu 8.04 and the machine has the latest version of RB installed. There are two files to add to your existing rb101 directory. rb101headless.im vwlinux86
To start from a terminal
cd rb101 ./vwlinux86 rb101headless.im
To start without "X" you will need to modify rc.local , here is what mine looks like
#!/bin/sh -e # # rc.local # # This script is executed at the end of each multiuser runlevel. # Make sure that the script will "exit 0" on success or any other # value on error. # # In order to enable or disable this script just change the execution # bits. # # By default this script does nothing.
cd /home/rb/rb101 ./vwlinux86 rb101headless.im &
exit 0
Now when the machine boots, RB is automatically started. If you are running "X" (gnome or something) RB will be running before the login screen appears.
So now we can run RB on a headless machine.
THANKS CARL!!!
|
|
|
Post by bovnet on May 11, 2012 3:11:23 GMT -5
Where can i get these files ? Exactly what i want to do.
|
|
jerry
Junior Member
Posts: 83
|
Post by jerry on Aug 11, 2013 17:16:52 GMT -5
Carl,
Do not keep this a secret!!! I need headless support!
|
|
neal
Full Member
Posts: 104
|
Post by neal on Aug 11, 2013 21:16:16 GMT -5
On linux you can get headless support using Xvfb (it should be available for any linux version).
Start Xvfb first, set the DISPLAY environment variable and then start run basic as usual - no X display needed
Xvfb :1 DISPLAY=:1 export DISPLAY rbp rb.im
I've been running my run basic websites this way for years.
This is my startup script for runbasic (Debian linux):
#! /bin/sh #
### BEGIN INIT INFO # Provides: runbasic # Required-Start: $local_fs $named $network $time # Required-Stop: $local_fs $named $network # Should-Start: # Should-Stop: # Default-Start: 2 3 4 5 # Default-Stop: 0 1 6 # Short-Description: Start/Stop the Run BASIC Personal server ### END INIT INFO
PATH=/usr/local/sbin:/usr/local/bin:/sbin:/bin:/usr/sbin:/usr/bin XVFB=/usr/bin/Xvfb RBDIR=/home/runbasic/rb101 RBEXE=$RBDIR/rbp RBUID=runbasic NAME=runbasic DESC="Run BASIC Personal Server" export DISPLAY=:1
test -x $XVFB || exit 0 test -x $RBEXE || exit 0
case "$1" in start) echo "Starting $NAME - $DESC" start-stop-daemon --background --start --exec $XVFB -- $DISPLAY ulimit -H -n 10000 start-stop-daemon --background --chuid $RBUID --chdir $RBDIR --start --exec $RBEXE -- rb.im ;; stop) echo "Stopping $NAME - $DESC" start-stop-daemon --stop --user runbasic --exec $RBEXE start-stop-daemon --stop --user root --exec $XVFB ;; restart) $0 stop sleep 5 $0 start ;; *) echo "Usage: $N {start|stop|restart}" >&2 exit 1 ;; esac
exit 0
|
|
jerry
Junior Member
Posts: 83
|
Post by jerry on Jun 29, 2019 16:37:31 GMT -5
Six years in the future.
Neal, if you still frequent this forum... a big "thank you". On Debian, after the install of Xvfb, I found and new script in /usr/bin: xvfb-run. it's just what the doctor ordered.
You gave me the direction. Thank you, again.
|
|