This is an old revision of the document!
The idea is to have on a Ubuntu machine 2 X screens. One for the local ubuntu and one for a remote machine, in the example a Raspberry Pi.
user@ubuntumachine> X :1 -query raspberrypi.local
Then because it doesn't work for me (I switched to VNC server):
firstname.lastname@example.org> export DISPLAY=ubuntumachine.local:1 email@example.com> lxsession
If you want to export the variable at startup, add the same line in /etc/profile.
iptables -A INPUT -s XXX.XXX.XXX.XXX -j DROP
To get the list of blocked IP:
iptables -L INPUT -v -n
Just add a script in /etc/init.d
nano myscript chmod +x myscript
And register it:
sudo update-rc.d myscript defaults
Example for the script:
#! /bin/sh case "$1" in start) echo -n "Starting server: " # Run myServer in the backround, with both stdout and stderr saved in /var/log/myServer.log, and use nohup to protect against HUP signals. nohup /usr/local/Arnl/examples/myServer >/var/log/myServer.log 2>&1 & echo "myServer" ;; stop) echo -n "Stopping all myServer processes: " killall myServer echo "myServer" ;; restart) # Re-run this script with stop and start arguments. $0 stop sleep 5 $0 start ;; reload|force-reload) echo "WARNING reload and force-reload not supported by this script esac