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 run a job in foreground by typing a command on to the terminal as
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]”
When you start a notebook after installing a new environment, sometimes you will not find your environment-kernel in the dropdown from the notebook.
To fix this, install ipykernel on to your desired environment. Here, we install it into
Continue reading “Activating python-kernel for an environment in jupyter-notebook”
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
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
Continue reading “Setting up tmux with z-shell (zsh) as default”
Bare with me as I periodically update this list with useful commands for linux (ubuntu/debian).
Continue reading “Useful commands on Ubuntu (debian)”
- Use the command below after modifying
.gitignore and to remove tracking files already committed before
git rm -r --cached .
- List all the files currently being tracked under the branch master
git ls-tree -r master --name-only
- Print a decorated log of branches on command line
git log --all --decorate --oneline --graph
Continue reading “GIT hacks”
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”