Difference between revisions of "EBC Exercise 04 Setup Scripts"

From eLinux.org
Jump to: navigation, search
m (Do this once after the Bone boots up: Removed)
m (In summary: Removed)
Line 52: Line 52:
  git config --global https.proxy
  git config --global https.proxy
== In summary ==
Normally the Bone is already set up, so all I do after booting the host is
host$ '''cd BeagleBoard/exercises/setup'''
host$ '''./ipMasquerade.sh eth0'''
host$ '''./firstssh.sh'''
and I'm logged onto the Bone and it has access to the Internet through my host.

Revision as of 12:59, 21 July 2020

thumb‎ Embedded Linux Class by Mark A. Yoder


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 install.sh script.

host$ nano install.sh

You'll see things like

  • Setting the Bone's date to the host's date
  • Copying the exercises to the bone rather than using git clone (much faster on a slow link).

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 install.sh to install what you want.


IIT Mandi uses a proxy, so the following might be needed

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

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', '', '', '::1']"
dconf write /system/proxy/mode  "'manual'"
dconf write /system/proxy/use-same-proxy  "false"
dconf dump /system/proxy/  

export http_proxy=
export https_proxy=

From http://jjasonclark.com/how-to-setup-node-behind-web-proxy/

npm config set proxy
npm config set https-proxy

git config --global http.proxy
git config --global https.proxy

thumb‎ Embedded Linux Class by Mark A. Yoder