Nov 15, 2014

Tricks After Installing Ubuntu

  • Enable root user:
sudo gedit /usr/share/lightdm/lightdm.conf.d/50-unity-greeter.conf

greeter-show-manual-login=true

sudo passwd
  • Remove guest user:
 sudo gedit /usr/share/lightdm/lightdm.conf.d/50-ubuntu.conf
allow-guest=false
  • Set your environment variables in:
/etc/environment
  •  To make .sh files excutable:
    Open the folder contains the file, from Edit menu  -> preferences : behavior tab : 
    check "run executable text files when they are opened"
  • To create desktop shortcuts:
sudo apt-get install --no-install-recommends gnome-panel
gnome-desktop-item-edit ~/Desktop/ --create-new
  • Create wifi hotspot:
prepare:
the hostapd version in Ubuntu 14.04 is buggy and doesn't work properly. To get AP-Hotspot to work with hostapd in Ubuntu 14.04, you need to downgrade hostapd and use apt to hold the package so it's not upgraded


cd /tmp wget http://archive.ubuntu.com/ubuntu/pool/universe/w/wpa/hostapd_1.0-3ubuntu2.1_amd64.deb sudo dpkg -i hostapd*.deb sudo apt-mark hold hostapd
installing AP-Hotspot:
sudo add-apt-repository ppa:nilarimogard/webupd8
sudo apt-get update
sudo apt-get install ap-hotspot
start  hotspot:
sudo ap-hotspot start
  • Enable hibernate option:
sudo gedit /etc/polkit-1/localauthority/50-local.d/com.ubuntu.enable-hibernate.pkla

Fill it with this:

[Re-enable hibernate by default in upower]
Identity=unix-user:*
Action=org.freedesktop.upower.hibernate
ResultActive=yes

[Re-enable hibernate by default in logind]
Identity=unix-user:*
Action=org.freedesktop.login1.hibernate;org.freedesktop.login1.hibernate-multiple-sessions
ResultActive=yes
then restart
  • Add refresh to right click menu
    sudo add-apt-repository ppa:nae-team/ppa
    sudo apt-get update

    sudo apt-get install nautilus-refresh
    then logout and login again

  • Enable minimize windows from launcher icon
    gsettings set org.compiz.unityshell:/org/compiz/profiles/unity/plugins/unityshell/ launcher-minimize-window true
    

Nov 8, 2014

Make WiFi hotspot on windows 8

I followed the below steps to create WiFi hotspot  on windows 8, and it works fine.
I was using USB modem as internet source, but it is the same for any internet connection.
  1. Connect your computer to the internet
  2. Open network and sharing center
  3. Open your internet connection properties
  4. From sharing tab, check "Allow other network users to connect through this ...", and from connection type list select wifi then press ok , close
  5. Download the virtual router program from http://virtual-router.net/
  6. Extract the zip file and Run the exe file. (it doesn't need setup)
  7. Open windows firewall select "Allow an app or feature through windows firewall" and add the virtual router program to the allowed list

Notes:
  • You may need to do step 4 every time you reconnect the internet, I don't know how to make this option as default.
  • If the devices cannot connect your hotspot, try to restart the virtual router program.