Friday, October 31, 2014

Converting a Raspberry Pi into a wireless access point

So I have a Raspberry Pi B+ and an RTL8188CUS based wifi dongle. I mostly used these instructions, but hostapd was not working so I did as this post suggests. I downloaded the custom RealTek hostapd, compiled and run it. Don't forget to update /etc/hostapd/hostapd.conf. This is mine:

# Basic configuration
interface=wlan0
ssid=Mistborn
channel=1
#bridge=br0
# WPA and WPA2 configuration
macaddr_acl=0
auth_algs=1
#ignore_broadcast_ssid=0
wpa=3
wpa_passphrase=wireless1
wpa_key_mgmt=WPA-PSK
wpa_pairwise=TKIP
rsn_pairwise=CCMP
# Hardware configuration
driver=rtl871xdrv
ieee80211n=1
hw_mode=g
device_name=RTL8192CU
manufacturer=Realtek

That's about it.

Wired cannot ping wireless and vice versa

This was driving me crazy. My wired devices on the home network could not ping wireless devices, and wireless devices could not ping wired ones. I was going through the router options over and over. Firewall was disabled and so was user isolation. In the end, I found a "Multi-AP Isolation" in basic wireless settings. I disabled it and voila! Everyone can see everyone now!

Just for the record, the router was a D-Link DSL-2730U ADSL modem/router.

I also found out that I can ssh into my rooter with "root" as both username and password. Maybe I should try messing with it some time. Not today though!

Wednesday, October 29, 2014

Change attachment encoding in mutt

If you want to change the encoding used for an attachment while sending an email with mutt, choose the attachment and then press C-e. It then lets you type the content transfer encoding. You can find the possible values here.