martes, 8 de octubre de 2013

free -m, How much memory is actually being used in Linux?

$ free -m; python -c '[ "x" * 1000000000 ]'; free -m
             total       used       free     shared    buffers     cached
Mem:           256        249          6          0          0        235
-/+ buffers/cache:         13        242
Swap:          256         23        232

Killed

             total       used       free     shared    buffers     cached
Mem:           256          9        246          0          0          1
-/+ buffers/cache:          8        247
Swap:          256         28        227



python powered :P

Raspberry and TP-Link TL-WN725N V2 - Personal notes


Getting the driver [1]:


wget https://dl.dropboxusercontent.com/u/80256631/8188eu-20130830.tar.gz

tar -zxvf 8188eu-20130830.tar.gz

sudo install -p -m 644 8188eu.ko /lib/modules/3.6.11+/kernel/drivers/net/wireless

sudo insmod /lib/modules/3.6.11+/kernel/drivers/net/wireless/8188eu.ko

sudo depmod -a


Setting the network [2]:



$ sudo nano /etc/network/interfaces

auto lo

iface lo inet loopback
iface eth0 inet dhcp

auto wlan0
allow-hotplug wlan0
iface wlan0 inet dhcp
wpa-scan-ssid 1
wpa-ap-scan 1
wpa-key-mgmt WPA-PSK
wpa-proto RSN WPA
wpa-pairwise CCMP TKIP
wpa-group CCMP TKIP
wpa-ssid "My Secret SSID"
wpa-psk "My SSID PSK"

iface default inet dhcp



[1] http://www.raspberrypi.org/phpBB3/viewtopic.php?p=419095#p419095


[2] http://learn.adafruit.com/adafruits-raspberry-pi-lesson-3-network-setup/setting-up-wifi-with-occidentalis