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

From Wiki for iCub and Friends
Jump to: navigation, search
Line 11: Line 11:
 
     iptables -t nat -A POSTROUTING -o wlan0 -j MASQUERADE
 
     iptables -t nat -A POSTROUTING -o wlan0 -j MASQUERADE
 
     echo 1 > /proc/sys/net/ipv4/ip_forward
 
     echo 1 > /proc/sys/net/ipv4/ip_forward
 
  
 
as icub install ssh key:
 
as icub install ssh key:
Line 18: Line 17:
 
     cp /home/icub/.ssh/id_rsa.pub /exports/code-pc104/pc104/hooks/keys/authorized_keys  
 
     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
 
     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
 
  
 
put these lines in /etc/exports:
 
put these lines in /etc/exports:
Line 29: Line 26:
 
     /exports/code-64 10.0.0.0/255.255.255.0(rw,sync,no_root_squash,no_subtree_check)
 
     /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)
 
     /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
 +
 +
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

Revision as of 18:11, 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

as icub install ssh key:

    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

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