Raspberry Pi Access Point Setup

Starting the research

Tutorial: http://lcdev.dk/2012/11/18/raspberry-pi-tutorial-connect-to-wifi-or-create-an-encrypted-dhcp-enabled-ad-hoc-network-as-fallback/

Origin reference to tutorial: http://raspberrypi.stackexchange.com/questions/1074/how-can-i-setup-a-wireless-access-point-or-and-ad-hoc-network

Raspberry Pi Setup

Getting an error after installation:

Refer: link

$ lxsession-edit

Opens Desktop Session Settings dialog box and uncheck LXPolKit. Click OK. then reboot

The following may or may not be of any use, wait until your next re-installation.

Wi-fi Dongle Kept Disconnected, actually this is not true, it automatically kept re-connecting

The Wireless Dongle Kept Disconnecting

Refer: link

Started after installing ice weasel but it might be something else instead, here's what a recommended solution would be in order to turn off power saving.

This gets it back:

$ sudo /etc/init.d/dbus restart

This might be a permanent fix:

Refer: link

pi@raspberrypi:~$ cat /etc/network/interfaces
+ expand sourceview plain
auto lo

iface lo inet loopback
iface eth0 inet dhcp

allow-hotplug wlan0
iface wlan0 inet manual
wpa-roam /etc/wpa_supplicant/wpa_supplicant.conf

Ended up adding scan_ssid=1, and that might have fixed it

pi@raspberrypi:~$ sudo cat /etc/wpa_supplicant/wpa_supplicant.conf
+ expand sourceview plain
ctrl_interface=DIR=/var/run/wpa_supplicant GROUP=netdev
update_config=1
network={
ssid="enter-ssid-here"
scan_ssid=1
psk="enter-key-here"
proto=RSN
key_mgmt=WPA-PSK
pairwise=CCMP
auth_alg=OPEN
}

Create and edit a new file in /etc/modprobe.d/8192cu.conf
sudo nano /etc/modprobe.d/8192cu.conf

and paste the following in
# Disable power saving
options 8192cu rtw_power_mgnt=0 rtw_enusbss=1 rtw_ips_mode=1

Then reboot with sudo reboot

Installing Ice Weasel

$ sudo apt-get update
$ sudo apt-get install iceweasel

Making Sure Timezone is Set Properly

Before going into startx, you can re-run the configuration:

$ dpkg-reconfigure tzdata