Moving window controls to the right in Ubuntu

From Ubuntu 16.04 the developers have made it impossible to override the position of window controls. Many of us are accustomed to the window controls on right side type of interface. But it looks like the Ubuntu developers don't like it that way.



Unfortunately, if you are using Unity, the default window manager you are stuck with the controls on the left side. But if you are using Gnome you are lucky. Here's how to install it on your Ubuntu machine :

Open the terminal or press CTRL + ALT + T.

Then type the following command ad hit enter :

sudo apt install gnome-shell

To Gnome as your window manager logout and then choose Gnome as the window manager.

Here's how to move the window controls to the right side:

Open the terminal and type the following and hit Enter:

gsettings set org.gnome.desktop.wm.preferences button-layout ':minimize,maximize,close'

That's it reboot and you'll have your window controls on the right side again!

How to setup a wifi-hotspot in Ubuntu: The terminal way.

Ubuntu has a "Use as hotspot" mode. But it creates a n ad-hoc network only.Wireless hotspots aren't same as ad hoc networks. Significant difference is there. In short, ad hoc networks aren't supported in most Android, Windows Phone and Blackberry devices (and may be iOS devices too) whereas AP mode Wi-Fi hotspots are.

              It is really simple and easy to setup a hotspot in Ubuntu. We use a tool called ap-hotspot. To install it open a terminal and type the following:

sudo add-apt-repository ppa:nilarimogard/webupd8
sudo apt-get update
sudo apt-get install ap-hotspot

             Next, to start the hotspot type the following in a terminal:
sudo ap-hotspot start

It asks you which adapter's internet you want to share, name of the network, password, etc. in an interactive manner. To stop the hotspot type the following n the terminal :
sudo ap-hotspot stop

To configure it type the following in the terminal :
sudo ap-hotspot configure