How to set up something to run at boot on Linux

1. Set up a script in /etc/init.d/ For example, you want to run tightVNC server on a Raspberry Pi first use a text editor to write a script sudo nano /etc/init.d/tightvncserver Then add the following lines to the file /etc/init.d/tightvncserver #!/bin/sh #/etc/init.d/tightnvcserver VNCUSER='pi' case "$1" in start) echo "Starting tightVNC Server for $VNCUSER" sudo $VNCUSER … Continue reading How to set up something to run at boot on Linux

Processing.js – convert Java into JavaScript

Processing.js Quick Start - Processing Developer Edition Introduction This quick start guide is written from the standpoint of a Processing developer. No HTML or JavaScript knowledge is assumed, and only basic Processing knowledge is necessary. Index For the Impatient Why Processing.js? The Web: from Java to JavaScript Processing.js uses Modern Web Standards Writing a Processing.js … Continue reading Processing.js – convert Java into JavaScript

A more detailed tutorial on how to allow remote access

Setting up remote access to your local network is one of the coolest things you can do with your router, as it allows you to remotely view your screen, access files, control services like BitTorrent remotely, and so on. Basically, anything you can do at home can be made possible by just opening a few … Continue reading A more detailed tutorial on how to allow remote access

How do I make a Python script executable on Linux/Unix?

You need to do two things: the script file’s mode must be executable and the first line must begin with #! followed by the path of the Python interpreter. The first is done by executing “chmod +x scriptfile” or perhaps “chmod 755 scriptfile". $ chmod +x myscript.py The second can be done in a number … Continue reading How do I make a Python script executable on Linux/Unix?

How to install an init.d script in Ubuntu?

Reference link: http://askubuntu.com/questions/335242/how-to-install-an-init-d-script-in-ubuntu For example, to create a new script "vncserver" sudo editor /etc/init.d/vncserver Then enter the shell script (e.g., define start, stop, status, etc. check out one example inside that folder...). Afterwards, make sure that you make the script executable after creation. sudo chmod +x /etc/init.d/vncserver Now insert the service into the start-up system … Continue reading How to install an init.d script in Ubuntu?