How to configure static IP for your home PC and connect remotely

By | 2017-04-13T12:25:39+00:00 April 15th, 2017|Linux, operating systems, tools|

I have a desktop at home which is my lab and many a times I need to connect to it when I am away. Since the public IP address for the router keeps changing dynamically, I needed a way to connect to the machine reliably. There were two options. Get a static IP address from the ISP Go for a Dynamic DNS (DDNS) name Dynamic DNS is a good option where you can bind your local computer's port to a domain name and access from it anywhere. Even there are free DDNS providers like but I found the configuration and hassles of maintaining a DDNS name [...]

Make PuTTY window transparent and prettier

By | 2017-04-13T11:25:42+00:00 April 14th, 2017|Linux, operating systems, tools|

When I am working on Windows PuTTY is my go to tools for SSH. On Linux Mint, I am used to the semi-transparent window of the terminal. But on PuTTY, there is no option for transparency. In this post I will share some information on how to make PuTTY transparent and few extra tips on making it look prettier. PuTTY Tray is the tool which I have been using for quite sometime now. This is an improvised version of PuTTY and has an option to make the window transparent. Like PuTTY, PuTTY Tray is a small portable file (1MB). If you have already saved few [...]

How to reduce the size of a bloated Jupyter Notebook

By | 2017-04-10T19:47:34+00:00 April 13th, 2017|languages, python, tools|

I was recently working on a Python project using Jupyter Notebook. The data that I was dealing with was relatively large and the training iteration was also high. As and when I executed the code in Jupyter Notebook, its size started to increase drastically. This is because the Notebook by default saves the output of the code as well. Finally when I wanted to share the notebook, I realized that the file had grown to 100 MB in size! I had also closed the Notebook abruptly while the Kernel was still executing some code. As a result whenever I tried to open the notebook, the browser would [...]

How to install a Desktop Environment on CentOS Core

By | 2017-04-09T21:17:11+00:00 April 12th, 2017|Linux, operating systems|

Like I mentioned in my previous post, I have a virtual machine running CentOS 7 core. The command line interface is good for most of the things but a GUI Desktop Environment is needed for certain operations. An example would be to use Jupyter Notebooks. This is a quick post explaining how to install a Desktop Environment on CentOS core. First decide which Desktop Environment you would like to use. I have always liked GNOME desktop environment, hence I will install GNOME in this example. Execute the following command to install GNOME Desktop environment. [crayon-5ae28b12dfd98525025374/] This will download files which are approximately 800 MB in [...]

CentOS yum update failing with “Cannot find a baseurl for repo” error

By | 2017-04-09T20:52:59+00:00 April 11th, 2017|Linux, operating systems|

I had recently installed the CentOS core on one of my virtual machines. To test some of the features I had to install few packages using yum groups install command. However on executing the command it failed with the following error. The OS was unable to locate the repository for the package. The host machine had internet connectivity but the guest was still unable to find the repo. Then I realized that I had installed the minimal CentOS core distribution. Which means by default, networking services will not be active on it. Now that I knew the problem, the resolution was very straight forward. Enable [...]

How to remote desktop to Linux Mint

By | 2017-04-09T06:29:59+00:00 April 10th, 2017|Linux, operating systems|

I have a workstation running Linux Mint 18.1 Serena and many a times I will connect to it remotely. I use SSH or PuTTY to connect to it through the command line. But at times I need to work on it through the GUI. In this post I will walk you through the the steps to enable Remote Desktop support for Linux Mint so that we can connect to it from Windows' native Remote Desktop (RDP) protocol. First of all we need to install xrdp which is a remote desktop server and works well with many remote desktop protocols. We just need to execute the [...]

How to get back Menu bar of Sublime Text 3 on Linux

By | 2017-04-09T06:29:53+00:00 April 9th, 2017|Linux, operating systems, tools|

I use Sublime text as my default text editor on Windows. It is very stable,quick and feature rich text editor. Since I am so used to it, I also use it on my Linux Mint installation as well. For a minimalistic view, I always hide the Menu bar using View --> Hide Menu option. To get the Menu bar back, I just press the Alt key on Windows. However on Linux no matter how many times I press Alt key, the Menu bar will not toggle. One of the workaround to this is to open the Command Palette by pressing Ctrl + Shift + P [...]

AutoHotKey | Script fails with variable name contains an illegal character

By | 2017-04-05T17:56:28+00:00 April 5th, 2017|Scripts, tools|

I am a big fan of automating routine tasks. When I work on Windows AutoHotKey scripting language is my go-to tool for automation. With AutoHotKey one can automate just about anything on Windows. While working on one such scripts, I encountered the following problem. [crayon-5ae28b12efe62990085102/] As seen in the above error message, in line 14 I am splitting a variable with text values (delimited by ".") and assigning the output to an array called word_array. Now the script is complaining that the variable name has an illegal character i.e.TheWindowsUser which is the value I had assigned to the variable UserName. For a moment I was puzzled how the variable is [...]

Managing environments with CONDA

By | 2017-03-29T16:23:52+00:00 April 1st, 2017|languages, python|

In my previous post we installed Anaconda and configured it. Anaconda is very useful to work in Python in a various virtual environments which are completely isolated from each other. In this post we will look into some of the commands which are useful for managing those virtual environments. Create a Virtual Environment Executing the following command creates a virtual environment named newenv with Python version 2.7 [crayon-5ae28b12f23f0988993650/] List the environments currently created Any of the following commands will give us the list of environments that are already created. [crayon-5ae28b12f23ff507734221/] [crayon-5ae28b12f2407926614446/] Export active environment to a file Consider this. I have created an environment ,installed [...]

Install and configure Jupyter (IPython) notebook on Ubuntu

By | 2017-03-26T21:56:04+00:00 March 31st, 2017|languages, Linux, operating systems, python|

Jupyter notebooks are the best thing that had happened to Python development in the recent past. These notebooks contain  ready to publish code and documentation. Easy to share, collaborate is one of the key aspects of Jupyter notebooks. The more you use it the more you will like it. In this post I will quickly walk you through the installation and configuration of Jupyter/IPython notebook on Ubuntu. We will do the package installation through Anaconda. [crayon-5ae28b12f340b301839331/] The above command will install Jupyter notebook (note the space between jupyter and notebook). Once the package is successfully installed, just execute the following command to open the Jupyter [...]