Research and education quanta of an experimental physicist

RUN ROOT OVER SSH THROUGH PUTTY

Sep 06, 2016 learning ROOT phys-492/592

The best way to learn ROOT for a regular Windows user is probably to install ROOT in Windows, which is available from the ROOT web page for ROOT versions before 6. However, sooner or later, you will be asked to log into a much more powerful server running Linux so that you can use ROOT there to analyze data saved in that machine. In that case, you need to use PuTTY to log into the Linux server from your Windows PC.

» Read full story ...

TERMINAL BASED TEXT EDITORS

Sep 01, 2016 learning text editor phys-492/592

When you log into a Linux machine using PuTTY from a Windows PC, you need a terminal based text editor to create or modify text files. If all you want to do is to read a text file, you need the following commands instead of a text editor:

» Read full story ...

STOP ACCIDENTALLY PRINTING FROM RXVT

Aug 31, 2016 learning terminal

Explicitly set the following X resource of rxvt to something you like instead of the default value: lpr:

» Read full story ...

SEND MULIPLE LINE COMMANDS OVER SSH

Aug 31, 2016 learning SSH

#!/bin/sh
ssh -T usr@host <<'CMDS'
for pid in `ps aux | grep badThings | awk '{print $2}'`
do
  kill -9 $pid
done
CMDS
» Read full story ...

FIX BACKSPACE KEY PROBLEM IN LINUX TERMINALS

Aug 31, 2016 learning terminal

Very often the backspace key in your terminal prints strange characters instead of deleting a letter on the left. The historic reason is explained in this article. Basically, you need to dump the current terminfo to stdout, fix some keys using sed and save the result into a text file:

» Read full story ...
About

Blogs on physics research and educational activities of Jing LIU, an associate professor in physics at the University of South Dakota. He is an experimental physicist developing novel particle detectors for astroparticle physics and civil use.