Tag: ubuntu

[HowTo] change from OEM installation to normal user mode?

Last week, I have installed Ubuntu 16.04 on my Laptop alongside Windows 10 and chose OEM install during the installation just to try what it is up-to. Later, I learnt that OEM mode is a System Manufacturer Mode and choosing this would allow one to customise the OS before shipping to the end-users. This is definitely what I intended to do as a direct end-user. I, therefore, wanted to revert it to the normal user mode and this is how I did in just 1 step.

— Double click on “Prepare for shipping to the end user” icon in the Desktop. Upon rebooting, you will be asked for your preference (including name and username) and voila! you can login as a normal from then-on..
ubuntu OEM install

How to fix Wifi connectivity issues with WPA & WPA 2 Enterprise on Ubuntu 13.10

After the upgrade to Ubuntu 13.10, I was able to connect to my home wifi, but not my office one. I realised Ubuntu has issue is with only “WPA & WPA 2 Enterprise” type authentication. On Googling, I came across this stackoverflow post to be closely relevant. However, I fixed the following way. Delete the faulty connection from list in Network Connections.

$ locate MyWifiName /etc/NetworkManager/system-connections/MyWifiName

Open the above file as a root user and remove the below line and retry connecting. It works!


and you’re welcome 🙂

How to do a batch image resize in Linux

Today, I realised my ~/Photos directory has crossed 50GB and I badly had to clear them up. I’m definitely not spending time choosing images to delete this time, but just reduce the size of those high resolution images that are eating away my disk space.

I found a way to reduce the size of the image without reducing the quality much.

you need to install it if you don’t have the tool :

sudo apt-get install imagemagick

The most basic way to use convert is to give a file at a time on the command line:

$ mogrify -verbose -resize 50% <filename>

I had to do this for the whole directory and thus replaced the filename with a *

$ mogrify -verbose -resize 50% *

This is a time consuming operation and thus a due patience is required.

We can also mention the dimension of a picture. Say, I reduced the dimension to 1024×768 with this command:

$ mogrify -resize 1024×768 *.jpg

I also found that we can convert all our PNG images in a folder to the JPEG format

$ mogrify -format jpg *.png

NOTE : mogrify will replace your existing file with the updated content. Make sure you are aware of this.

For further info, $ man mogrify to read the manual or go to http://www.imagemagick.org/www/mogrify.html