dapurhosting.com Blog for Tech

February 25, 2010

Installing Screen in Centos

Filed under: Server — dh @ 5:18 pm

Screen lets you have multiple virtual window in one physical terminal. Screen lets you detach and reattach to your virtual windows, which is good if you are compiling remotely.

Download the latest Screen RPM

http://www.rpmfind.net/linux/rpm2html/search.php?query=screen

Install Screen dependencies

#yum -y install ncurses-devel texinfo pam-devel libtool

Install Screen

#rpmbuild –rebuild screen-4.0.2-5.src.rpm
#rpm -ivh /usr/src/redhat/RPMS/i386/screen-4.0.2-5.src.rpm

#screen -ls

Create Screen Session

#screen

Create Screen Virtual window

press ctrl+a,c

Change between Screens

press ctrl+a, 0 Session 0
press ctrl+a, 1 Session 1
press ctrl+a, 2 Session 2

To resume a Screen session

#screen -r session name

How To Use Screen

Filed under: Server — dh @ 5:15 pm

Now open a new window with “Ctrl-A” “c”

To get back to top, use “Ctrl-A “n”

Ctrl-A” “p” for the previous window

“Ctrl-A” “d” will drop you into your shell

screen -ls will list active screen

screen -r 99999.xxxx.xxxxx will attach screen

February 15, 2010

Scp has been disabled on the remote server or is missing

Filed under: Server — dh @ 6:54 am

ls -l /usr/bin/scp

If its 0 then make it 755

chmod 755 /usr/bin/scp

February 8, 2010

cPanel Update (upcp) is already running

Filed under: cPanel/WHM — dh @ 6:13 am

when updating cpanel and you see this message that mean cPanel Update (upcp) is already running

cPanel Update (upcp) is already running. Please wait for the previous upcp to complete, or kill off all upcp processes and try again. You may wish to use ‘–force’ at /scripts/upcp line 48.

or

cPanel Update (upcp) is already running. Please wait for the previous upcp to complete, or kill off all upcp processes and try again. You may wish to use ‘–force’

To kill this upcp:
Get the upcp pid

# ps aux | grep upcp

You should see a number which represent the pid for upcp in the front (normally second) column. Assuming it’s 88888, then use the following command to send the kill term signal to close upcp task.

kill -9 88888

Replacing the ‘88888? with the pid for upcp.

Powered by WordPress