public
Last active

Ad-hoc wifi

  • Download Gist
wifuck.md
Markdown

On my computer:

~ % ifconfig
docker0   Link encap:Ethernet  HWaddr 1a:53:fc:1b:12:b5  
          inet adr:172.17.42.1  Bcast:0.0.0.0  Masque:255.255.0.0
          adr inet6: fe80::1853:fcff:fe1b:12b5/64 Scope:Lien
          UP BROADCAST RUNNING MULTICAST  MTU:1500  Metric:1
          Packets reçus:0 erreurs:0 :0 overruns:0 frame:0
          TX packets:93 errors:0 dropped:0 overruns:0 carrier:0
          collisions:0 lg file transmission:0 
          Octets reçus:0 (0.0 B) Octets transmis:12197 (12.1 KB)

eth0      Link encap:Ethernet  HWaddr c8:60:00:d5:23:af  
          inet adr:192.168.1.11  Bcast:192.168.1.255  Masque:255.255.255.0
          adr inet6: fe80::ca60:ff:fed5:23af/64 Scope:Lien
          UP BROADCAST RUNNING MULTICAST  MTU:1500  Metric:1
          Packets reçus:3563 erreurs:0 :0 overruns:0 frame:0
          TX packets:2963 errors:0 dropped:0 overruns:0 carrier:0
          collisions:0 lg file transmission:1000 
          Octets reçus:2603546 (2.6 MB) Octets transmis:497559 (497.5 KB)

lo        Link encap:Boucle locale  
          inet adr:127.0.0.1  Masque:255.0.0.0
          adr inet6: ::1/128 Scope:Hôte
          UP LOOPBACK RUNNING  MTU:65536  Metric:1
          Packets reçus:1206 erreurs:0 :0 overruns:0 frame:0
          TX packets:1206 errors:0 dropped:0 overruns:0 carrier:0
          collisions:0 lg file transmission:0 
          Octets reçus:99842 (99.8 KB) Octets transmis:99842 (99.8 KB)

lxcbr0    Link encap:Ethernet  HWaddr 9e:4a:cc:fe:29:1d  
          inet adr:10.0.3.1  Bcast:10.0.3.255  Masque:255.255.255.0
          adr inet6: fe80::9c4a:ccff:fefe:291d/64 Scope:Lien
          UP BROADCAST RUNNING MULTICAST  MTU:1500  Metric:1
          Packets reçus:0 erreurs:0 :0 overruns:0 frame:0
          TX packets:126 errors:0 dropped:0 overruns:0 carrier:0
          collisions:0 lg file transmission:0 
          Octets reçus:0 (0.0 B) Octets transmis:16869 (16.8 KB)

wlan0     Link encap:Ethernet  HWaddr 9c:b7:0d:41:2a:f2  
          inet adr:192.168.0.1  Bcast:192.168.0.255  Masque:255.255.255.0
          adr inet6: fe80::9eb7:dff:fe41:2af2/64 Scope:Lien
          UP BROADCAST RUNNING MULTICAST  MTU:1500  Metric:1
          Packets reçus:0 erreurs:0 :0 overruns:0 frame:0
          TX packets:141 errors:0 dropped:0 overruns:0 carrier:0
          collisions:0 lg file transmission:1000 
          Octets reçus:0 (0.0 B) Octets transmis:19801 (19.8 KB)

~ % iwconfig 
eth0      no wireless extensions.

lo        no wireless extensions.

lxcbr0    no wireless extensions.

wlan0     IEEE 802.11bgn  ESSID:"mobilesIllegitimes"  
          Mode:Ad-Hoc  Frequency:2.412 GHz  Cell: 42:B1:44:EB:D2:C1   
          Tx-Power=16 dBm   
          Retry  long limit:7   RTS thr:off   Fragment thr:off
          Power Management:off

docker0   no wireless extensions.

~ % more /etc/network/interfaces
auto lo
iface lo inet loopback
iface eth0 inet dhcp
allow-hotplug wlan0
auto wlan0
iface wlan0 inet static
    address 192.168.0.1
    netmask 255.255.255.0
    wireless-channel 1
    wireless-essid mobilesIllegitimes
    wireless-mode ad-hoc
    wireless-key 967136deac

~ % netstat -r
Table de routage IP du noyau
Destination     Passerelle      Genmask         Indic   MSS Fenêtre irtt Iface
default         Freebox-Server. 0.0.0.0         UG        0 0          0 eth0
10.0.3.0        *               255.255.255.0   U         0 0          0 lxcbr0
link-local      *               255.255.0.0     U         0 0          0 wlan0
172.17.0.0      *               255.255.0.0     U         0 0          0 docker0
192.168.0.0     *               255.255.255.0   U         0 0          0 wlan0
192.168.1.0     *               255.255.255.0   U         0 0          0 eth0

On the raspberry pi:

~ % ifconfig                 
eth0      Link encap:Ethernet  HWaddr b8:27:eb:ff:88:99  
          inet addr:192.168.1.41  Bcast:192.168.1.255  Mask:255.255.255.0
          UP BROADCAST RUNNING MULTICAST  MTU:1500  Metric:1
          RX packets:951 errors:0 dropped:0 overruns:0 frame:0
          TX packets:266 errors:0 dropped:0 overruns:0 carrier:0
          collisions:0 txqueuelen:1000 
          RX bytes:66321 (64.7 KiB)  TX bytes:43663 (42.6 KiB)

wlan0     Link encap:Ethernet  HWaddr 00:0f:13:51:05:8c  
          inet addr:192.168.0.2  Bcast:192.168.0.255  Mask:255.255.255.0
          UP BROADCAST RUNNING MULTICAST  MTU:1500  Metric:1
          RX packets:0 errors:0 dropped:0 overruns:0 frame:0
          TX packets:42 errors:0 dropped:0 overruns:0 carrier:0
          collisions:0 txqueuelen:1000 
          RX bytes:0 (0.0 B)  TX bytes:2520 (2.4 KiB)

~ % iwconfig
wlan0     IEEE 802.11bgn  ESSID:"mobilesIllegitimes"  
          Mode:Ad-Hoc  Frequency:2.412 GHz  Cell: 42:B1:44:EB:D2:C1   
          Tx-Power=20 dBm   
          Retry  long limit:7   RTS thr:off   Fragment thr:off
          Power Management:on

lo        no wireless extensions.

eth0      no wireless extensions.


~ % more /etc/network/interfaces 
auto lo
iface lo inet loopback
iface eth0 inet dhcp
allow-hotplug wlan0
auto wlan0
iface wlan0 inet static
    address 192.168.0.2
    netmask 255.255.255.0
    wireless-channel 1
    wireless-power off
    wireless-essid mobilesIllegitimes
    wireless-mode ad-hoc
    wireless-key 967136deac

~ % sudo route add -net 192.168.0.0 netmask 255.255.255.0 wlan0

~ % netstat -r
Kernel IP routing table
Destination     Gateway         Genmask         Flags   MSS Window  irtt Iface
default         192.168.1.254   0.0.0.0         UG        0 0          0 eth0
192.168.0.0     *               255.255.255.0   U         0 0          0 wlan0
192.168.1.0     *               255.255.255.0   U         0 0          0 eth0

Node.js

wget http://nodejs.org/dist/v0.10.24/node-v0.10.24-linux-arm-pi.tar.gz
tar xvzf node-v0.10.24-linux-arm-pi.tar.gz
sudo mkdir /opt/node
sudo cp -r node-v0.10.24-linux-arm-pi/* /opt/node

Edit /etc/profile replace export PATH by

NODE_JS_HOME="/opt/node"
PATH="$PATH:$NODE_JS_HOME/bin"
export PATH

Vim, zsh oh-my-zsh

sudo apt-get install vim zsh
curl -L https://github.com/robbyrussell/oh-my-zsh/raw/master/tools/install.sh | sh
chsh -s /bin/zsh

i had to add

# auto start wifi
ifdown wlan0
ifup wlan0

in /etc/rc.local

Hostname in /etc/hostname

on windows7:

  • se connecter au réseau mirroir
  • mdp 967136deac
  • changer l'ip et mettre 192.168.0.5

on windows 7 : install live and loopbe (http://www.nerds.de/en/download.html)

configure live to use the loopbe internal port as input midi port (only telec on)

Please sign in to comment on this gist.

Something went wrong with that request. Please try again.