Difference between revisions of "TEO Network information"

From Asibot & HOAP3 & TEO Wiki
Jump to navigation Jump to search
Line 135: Line 135:
 
== Setting up Wifi connection: Netgear A6100 WiFi USB Mini Adapter ==
 
== Setting up Wifi connection: Netgear A6100 WiFi USB Mini Adapter ==
 
First, we have to install required drivers that have not been merged with the linux kernel and do not come with most linux distros(yet).  
 
First, we have to install required drivers that have not been merged with the linux kernel and do not come with most linux distros(yet).  
Make sure you have the required build packages:
+
Make sure you have the required build packages: (you can make sure what version of your S.O you have using: uname-r)
  sudo apt-get install linux-headers-generic build-essential git
+
  sudo apt-get reinstall linux-headers-2.6.32-5-686 build-essential  
Download the updated source code
+
Download the source code and decompress:
  git clone https://github.com/scrivy/rtl8812AU_8821AU_linux.git
+
  http://www.edimax.com/images/Image/Driver_Utility/Wireless/NIC/EW-7822UAC/EW-7822UAC_linux_v4.2.2_7502.20130517.tar.gz
 
Compile the kernel module
 
Compile the kernel module
 
  cd rtl8812AU_8821AU_linux
 
  cd rtl8812AU_8821AU_linux

Revision as of 13:14, 23 September 2016

TEONET (router)

wifi-ssid: TEONET
wifi-password: teochallenge
note: wifi disabled in lab.

External IP: 163.117.150.74
Internal IP: 2.2.2.1
user: admin
pass: admin

teo-main

Memory 3.9 GiB, Processor Intel® Core™2 Duo CPU E8400 @ 3.00GHz x 2, Graphics NVIDIA GeForce 9500 GT/PCIe/SSE2 (G96 rev a1), Disk 487.9 GiB. Origin old miguelgfierro. Ubuntu 14.10 64-bit. jgvictores.

Intended for teo-main @ GitHub, automatically runs "yarp server" on port 10000.

eth0  00:24:8c:26:ff:85  2.2.2.50
user: teo
pass: teo

The execution of "yarp server" is activated in "~/.profile" through the lines:

yarp conf 2.2.2.50 10000
gnome-terminal -e "yarp server --write" &

manipulation (robot front right PC)

Memory 3.1 GiB, Processor Intel® Core™2 Duo CPU E7500 @ 2.93GHz x 2, Disk 106 GiB. Debian GNU/Linux 6.0.10 (squeeze). jgvictores.

Intended for teo-body @ GitHub, automatically runs "yarprun --server /manipulation".

teo right side
wlan1  5c:d9:98:9a:94:5c  2.2.2.51
eth0  00:18:7d:0b:2d:9d  2.2.2.61
user: teo
pass: teo
su: manipulation

The execution of "yarprun --server /manipulation" is implemented as service using "daemontools" (Help on daemontools). "daemontools" is activated in "/etc/rc.local" through the line (before exit):

/bin/csh -cf '/usr/bin/svscanboot &'

"yarprun --server /manipulation" is activated in "/etc/service/yarprun/run" through the lines:

#!/bin/bash
export PATH=/usr/local/bin:/usr/bin:/bin
export YARP_CONF=/home/teo/.config/yarp
yarprun --server /manipulation

Additionally, in .profile, at the end, we have:

export YARP_DATA_DIRS=$HOME/repos/teo-body/build/share/teo-body
export PATH=$PATH:$HOME/repos/teo-body/build/bin

Now add the following line to /etc/rc.local (lines before the exit):

insmod /home/teo/repos/LoliRepo/jr3/jr3pci-linux-0.5/jr3pci-driver.ko
mknod /dev/jr3 c 39 0

If green LEDs are off after switching on the PC and "jr3pci_driver" does not appear after doing lsmod, try in the jr3 directory (see README):

sudo make
sudo insmod jr3pci-driver.ko
sudo make node

locomotion (robot front left PC)

Memory 3.1 GiB, Processor Intel® Core™2 Duo CPU E7500 @ 2.93GHz x 2, Disk 106 GiB. Debian GNU/Linux 6.0.10 (squeeze). jgvictores.

Intended for teo-body @ GitHub, automatically runs "yarprun --server /locomotion".

teo left side
wlan1  5c:d9:98:9a:94:5d  2.2.2.52
eth0  00:18:7d:0b:2d:71  2.2.2.62
user: teo
pass: teo
su: locomotion

The execution of "yarprun --server /locomotion" is implemented as service using "daemontools" (Help on daemontools). "daemontools" is activated in "/etc/rc.local" through the line (before exit):

/bin/csh -cf '/usr/bin/svscanboot &'

"yarprun --server /locomotion" is activated in "/etc/service/yarprun/run" through the lines:

File:#!/bin/bash
export PATH=/usr/local/bin:/usr/bin:/bin
export YARP_CONF=/home/teo/.config/yarp
yarprun --server /locomotion


Additionally, in .profile, at the end, we have:

export YARP_DATA_DIRS=$HOME/repos/teo-body/build/share/teo-body:/usr/local/share/iCub/
export PATH=$PATH:$HOME/repos/teo-body/build/bin

In order to allow yarp to read data from the sensors connected via USB port, you need to add the following rule for udev system:

 KERNEL == "ttyUSB0", MODE = "0777"

The advise from debian udev documentation is to define rules in a file named "z21_persistent-local.rules". If there is no such file, it is recommended to create one. Taking this in consideration, the file name and path should look like this: /etc/udev/rules.d/z21_persistent-local.rules

teo-head (robot back left PC)

Memory 3.1 GiB, Processor Intel® Core™ i5-4570S CPU @ 2.90GHz x 4, Disk 52 GiB. Ubuntu 15.04 w/ 3.19.0-18-generic. jgvictores.

Intended for teo-head @ GitHub.

eth1  00:01:2e:51:9c:c1  2.2.2.53
user: teo
pass: teo

The execution of "yarprun --server /head" is implemented as service using "daemontools" (Help on daemontools). "daemontools" is activated in "/etc/rc.local" through the line (before exit):

/bin/csh -cf '/usr/bin/svscanboot &'

"yarprun --server /head" is activated in "/etc/service/yarprun/run" through the lines:

#!/bin/bash
export PATH=/usr/local/bin:/usr/bin:/bin
export YARP_CONF=/home/teo/.config/yarp
yarprun --server /head

teo-benji

Memory 1.9 GiB (DDR II 800), Processor AMD Athlon(tm) 64 Processor 3200+ x 1, Graphics ATI Gallium 0.4 on ATI RV515, Disk 155.3 GiB. Origin old teo-main. Ubuntu 14.10 64-bit. loli.

teo-goku

Memory 1.8 GiB, Processor Intel® Core™ i3 CPU 540 @ 3.07GHz × 4, Graphics Intel® Ironlake Desktop, Disk 243.9 GiB. Does not recognize PCI devices. Ubuntu 14.10 64-bit. jlorente.

teo-heidi

pedro.

Mapping hostnames to IP addreses in your computer

You can edit the /etc/hosts file of your system for mapping some hostnames to IP addreses. Now, you can associate the name of teo pc's with their Ips:

2.2.2.51 manipulation
2.2.2.52 locomotion
2.2.2.53 head

For example, if you want connect by ssh with teo-manipulation PC, you can put “ssh manipulation” instead of “ssh 2.2.2.51”. It's easier to remember!!

Setting up Wifi connection: Netgear A6100 WiFi USB Mini Adapter

First, we have to install required drivers that have not been merged with the linux kernel and do not come with most linux distros(yet). Make sure you have the required build packages: (you can make sure what version of your S.O you have using: uname-r)

sudo apt-get reinstall linux-headers-2.6.32-5-686 build-essential 

Download the source code and decompress:

http://www.edimax.com/images/Image/Driver_Utility/Wireless/NIC/EW-7822UAC/EW-7822UAC_linux_v4.2.2_7502.20130517.tar.gz

Compile the kernel module

cd rtl8812AU_8821AU_linux
make

Install it!

sudo make install
sudo modprobe 8812au

The wireless should now be working

Uncategorized

sudo mount -t nfs 163.117.150.231:/home/rh2 sitio_de_montaje

rsync -avzP teo-body/ teo@2.2.2.51:test/teo-body/