Difference between revisions of "ICub laptop installation instructions for old releases"

From Wiki for iCub and Friends
Jump to: navigation, search
Line 1: Line 1:
 
Place here instructions for installing the pc104 laptop.
 
Place here instructions for installing the pc104 laptop.
  
*LAPTOP CONFIGURATION
+
LAPTOP CONFIGURATION
  
 
enable icub user as sudoers
 
enable icub user as sudoers
  
enable NAT and port forwarding (using wlan0 as external network interface)  
+
*enable NAT and port forwarding (using wlan0 as external network interface)  
  
 
add these line in /etc/rc.local:
 
add these line in /etc/rc.local:
Line 12: Line 12:
 
     echo 1 > /proc/sys/net/ipv4/ip_forward
 
     echo 1 > /proc/sys/net/ipv4/ip_forward
  
as icub install ssh key:
+
*install ssh key
 +
as icub:
  
 
     ssh -keygen - t dsa
 
     ssh -keygen - t dsa
Line 18: Line 19:
 
     cp /home/icub/.ssh/id_rsa.pub /home/icub/ssh
 
     cp /home/icub/.ssh/id_rsa.pub /home/icub/ssh
  
install nfs:
+
*install nfs:
  
 
     apt-get install nfs-kernel-server nfs-common portmap
 
     apt-get install nfs-kernel-server nfs-common portmap
Line 31: Line 32:
 
     chown icub:icub -R /exports/code-pc-104
 
     chown icub:icub -R /exports/code-pc-104
  
 +
*configure bashrc
 
add these lines in /home/icub/.bashrc:
 
add these lines in /home/icub/.bashrc:
  

Revision as of 18:13, 21 September 2010

Place here instructions for installing the pc104 laptop.

LAPTOP CONFIGURATION

enable icub user as sudoers

  • enable NAT and port forwarding (using wlan0 as external network interface)

add these line in /etc/rc.local:

    iptables -t nat -A POSTROUTING -o wlan0 -j MASQUERADE
    echo 1 > /proc/sys/net/ipv4/ip_forward
  • install ssh key

as icub:

    ssh -keygen - t dsa
    cp /home/icub/.ssh/id_rsa.pub /exports/code-pc104/pc104/hooks/keys/authorized_keys 
    cp /home/icub/.ssh/id_rsa.pub /home/icub/ssh
  • install nfs:
    apt-get install nfs-kernel-server nfs-common portmap

put these lines in /etc/exports:

    /exports/code-64 10.0.0.0/255.255.255.0(rw,sync,no_root_squash,no_subtree_check)
    /exports/code-pc104 10.0.0.0/255.255.255.0(rw,sync,no_root_squash,no_subtree_check)

give permission of code-pc104 folder to icub:

   chown icub:icub -R /exports/code-pc-104
  • configure bashrc

add these lines in /home/icub/.bashrc:

   export ICUB_ROOT=/usr/local/src/robot/iCub
   export ICUB_DIR=$ICUB_ROOT/main/build
   export YARP_ROOT=/usr/local/src/robot/yarp2
   export YARP_DIR=$YARP_ROOT
   export ICUB_ROBOTNAME=iCubAberystwyth01
   export PATH=$PATH:$ICUB_DIR/bin:$YARP_DIR/bin