Personal tools

Log in

Changes

From IGEP - ISEE Wiki

Jump to: navigation, search

How to get the Ubuntu distribution

270 bytes added, 05:20, 9 September 2010
no edit summary
$ mkimage -A arm -O linux -T script -C none -a 0 -e 0 -n 'Boot setup script' -d boot.source boot.ini
I have only an ethernet cable, so I'm going on. Put these lines in /media/rootfs/etc/rc.local &nbsp;: <br>
<pre>apt-get install -y openssh-server 2&gt;&amp;1 | tee /root/install.log
useradd -G admin,root -m -pigep igep
exit 0
</pre>Plug the ethernet cable, switch on the board and wait some minutes. You can verify sshd status for example with (I've used a mac so nmap may differ):<br>
<pre>sudo nmap -sS -PN -e &lt;interface&gt; -p22 &lt;ip&gt;
</pre>
If you can't connect with because login password is wrong, you can modify your password placing:<br>
<pre>echo "user:password" | chpasswd
</pre>
If you can't connect with because login password is wrong, at the end of /media/rootfs/etc/rc.local or create a key with ssh-keygen and copy the content of your .ssh/id_rsa.pub in authorized_keys &nbsp;:<br>
<pre>* ON&nbsp;THE IGEP *
$ cd /media/rootfs/home/igep
$ cat /wherever/it/is/your's/id_rsa.pub &gt;&gt; authorized_keys
</pre>
Remember to enable PubkeyAuthentication in /media/rootfs/etc/ssh/sshd_config :<br>
<pre>PubkeyAuthentication yes
</pre>
<br>
 
--- That's all folks ---
[[Category:Software_distributions|Ubuntu]]
0
edits