Running jobs from terminal in background [foreground and pausing]

This post is concerned with running jobs (one or more programs) in foreground and background using just a terminal. Here, I use firefox as an example to demonstrate the same. <username> on screenshots shown below is scrambled for privacy concerns.

Running programs from terminal

You can always runa  job in foreground by typing a command on to the terminal as

firefox

firefox_1
But once the program starts we lose the bash prompt. Another way to start firefox is to run the program in background. This will return bash prompt as shown below.
Continue reading “Running jobs from terminal in background [foreground and pausing]”

Setting up tmux with z-shell (zsh) as default

tmux , I would say is one of the finest interface to work on a remote server. But it comes with a boring shell. This post will help you configure zsh as the default shell when logging into ​​tmux.

Step 1 : Install zsh

sudo apt-get update
sudo apt-get install zsh
# check `zsh` version.
# It is prefereable to use a version above 5.0
zsh --version

Continue reading “Setting up tmux with z-shell (zsh) as default”

Running Jupyter Notebook on a remote server

With a command-line interface to the server, it is often hard to quickly scan through the contents on a server. This can be circumvented using jupyter-lab (or jupyter notebook) running on the server and accessing it using a client machine. I presume you have already installed jupyter-lab (or jupyter-notebook) on server. Jupyter-lab is a better option as it comes with a file-navigator, spread-sheet viewer (faster than excell, reminds me of sublime text) and an image-viewer. Check out this video for the latest feature updates in jupyter-lab.

Continue reading “Running Jupyter Notebook on a remote server”