2016年9月30日 星期五

Changing Unity 3D to Unity 2D

Changing default behavior to unity 2D when login needs to follow the steps below


  1. Install the deb package sudo apt-get install unity-2d
  2. rm /usr/share/xsessions/ubuntu.desktop (You can rename it if you want unity 3d)
  3. /bin/sed -i "/Session*/c Session=gnome-fallback-compiz" /var/cache/lightdm/dmrc/*.dmrc (Change the default session to gnome-fallback-compiz)
  4. Restart your machine and the default UI of Ubuntu will become Unity 2D
References
  1. http://askubuntu.com/questions/62833/how-do-i-change-the-default-session-for-when-using-auto-logins
  2. https://wiki.ubuntu.com/LightDM
  3. https://ubuntuforums.org/showthread.php?t=2245261
  4. http://askubuntu.com/questions/456766/how-to-set-default-session-in-ubuntu-14-04-lts
Environment
  • Ubuntu 14.04 

2016年9月16日 星期五

Wordpress Mail Function - Points to Note

When dealing with smtp sending email, we may encounter situations that despite all the settings are correct, email still cannot be sent successfully, this is due to the google account setting, if you also encounter similar issues, go to Goggle > My Account > turn "Allow less secure apps" to "ON".