EBC Exercise 04 Setup Scripts

This is a guide to the many scripts I've written that make getting the Bone running much easier. Do this after you have updated the OS and used git to get the support materials.

Some of the things listed here have to be done only once, others are done every time you reboot, or more often.

Do when the bone is running a new image
There are a number of files I like to have on the Bone. Rather than remember what they all are, I just put them in a script and run it on the host. Take a look at my installStudent.sh script.

host$ '''cd exerciese/setup host$ nano installStudent.sh

You'll see things like
 * Setting the Bone's date to the host's date
 * Turning off login messages

There is a line that starts with ssh root@$BONE " that runs all the following commands, up to the closing " on the bone. These commands
 * Set up git
 * Copy over .bashrc
 * Set the timezone

and so on.

Edit installStudent.sh to install what you want. Then run it. host$ ./installStudent.sh

Proxy (Not needed at Rose)
IIT Mandi uses a proxy, so the following might be needed

apt-get install dconf-tools for proxy in ftp http https socks do   echo $proxy dconf write /system/proxy/$proxy/host "'10.8.0.1'" dconf write /system/proxy/$proxy/port "'8080'" done

I don't know if this is needed on the Bone, but it's needed on the host to reach the Bone dconf write /system/proxy/ignore-hosts "['localhost', '127.0.0.0/8', '192.168.7.0/8', '::1']" dconf write /system/proxy/mode "'manual'" dconf write /system/proxy/use-same-proxy "false" dconf dump /system/proxy/ export http_proxy=http://10.8.0.1:8080/ export https_proxy=https://10.8.0.1:8080/ From http://jjasonclark.com/how-to-setup-node-behind-web-proxy/ npm config set proxy http://10.8.0.1:8080 npm config set https-proxy http://10.8.0.1:8080 git config --global http.proxy http://10.8.0.1:8080 git config --global https.proxy https://10.8.0.1:8080