Skip to main content

Posts

Showing posts from January, 2014

Linux process management in foreground background

http://stackoverflow.com/questions/9190151/how-to-run-a-shell-script-in-the-backgroung-and-get-no-output http://linuxg.net/how-to-manage-background-and-foreground-processes/ http://unix.stackexchange.com/questions/45025/how-to-suspend-and-bring-a-background-process-to-foreground How to run a job in background ====================== nohup /path/to/your/script.sh > /dev/null 2>&1 & How to view background process ======================   jobs How to move job from foreground to background and vice versa ======================================= fg %jobid bg %jobid How to kill background jobs ======================   kill - 19 % job_id

Linux GUI based browsing using vncserver and vncviewer

Main Source ========== http://rcweb.kaust.edu.sa/KAUST/ResearchComputing/wiki/Workstation#HowtoruntheVNCServerLinuxWorkstation Example: ======== user: alamt serverIP: 10.68.170.137 Step1: Login to server ============== ssh alamt@10.68.170.137 Step2: Start vncServer in login server ======================== vncserver –geometry 1600x1024 Step3: Check the port no for vncServer in login server =================================  ps -ef | grep vnc | grep alamt // It will show a big list with following port info by rfbport  -rfbport 5905 ( so in this example portno for vncserver is 5905)  -Xvnc :5 (so in this example screen ID is 5) Step4: From client , run vncViewer ===================== vncviewer 10.68.170.137:5905 Step5: Kill/Stop vncserver from login server ===========================  vncserver -kill:5