Useful linux things
Linux dual monitors
Get available displays:
xrandr
In case HDMI1 is the second display:
xrandr --output HDMI1 --auto --right-of LVDS1
Scrape .svn files
find . -name .svn -exec rm -rf '{}' \;
Check before and after with
find . -name .svn -exec ls '{}' \;
Disable ipv6
sysctl -w net.ipv6.conf.lo.disable_ipv6=1 sysctl -w net.ipv6.conf.default.disable_ipv6=1 sysctl -w net.ipv6.conf.all.disable_ipv6=1
or add the last argument of these lines to /etc/sysctl.conf
Command line internet
Wireless
These are contents of /etc/wpa_supplicant.conf. Look at man wpa_supplicant for other authentications
ctrl_interface=/var/run/wpa_supplicant
ctrl_interface_group=root
network={
ssid="SomeWIFI"
scan_ssid=1
key_mgmt=WPA-EAP
eap=TTLS
identity="my.email@example.com"
anonymous_identity="anonymous@example.com"
password="myp455w0rd"
ca_cert="/path/to/certificate.pem"
phase2="auth=PAP"
}
Then run this, assuming wlan0 is your wireless interface
ifconfig wlan0 up
wpa_supplicant -i wlan0 -c /etc/wpa_supplicant.conf
add -B flag to run in background. Then
dhcpcd
Wired
Put this in your wired.conf
ctrl_interface=/var/run/wpa_supplicant
ap_scan=0
network={
key_mgmt=IEEE8021X
eap=TTLS
identity="my.email@example.com"
anonymous_identity="anonymous@example.com"
password="myp455w0rd"
ca_cert="/path/to/certificate.pem"
phase2="auth=PAP"
eapol_flags=0
priority=5
}
Then run
wpa_supplicant -i eth0 -D wired -c /path/to/wired.conf -B
dhcpcd