Difference between revisions of "Screen on Centos 6"

From vpsget wiki
Jump to: navigation, search
 
(One intermediate revision by the same user not shown)
Line 12: Line 12:
 
When screen is installed, start new screen:
 
When screen is installed, start new screen:
 
  screen
 
  screen
Try to install some hard soft, cpanel for example:
+
Try to install some heavy software, cpanel for example:
 
  cd /home
 
  cd /home
 
  wget -N http://httpupdate.cpanel.net/latest
 
  wget -N http://httpupdate.cpanel.net/latest
Line 25: Line 25:
 
  screen ls
 
  screen ls
  
[[Category:Linux]]
 
 
The next information will be appear:
 
The next information will be appear:
 
  There is a screen on:
 
  There is a screen on:
Line 31: Line 30:
 
  1 Socket in /var/run/screen/S-root.
 
  1 Socket in /var/run/screen/S-root.
  
If you want to connect to some scren:
+
If you want to connect to some screen:
 
  screen -r 22570.pts-2.server  
 
  screen -r 22570.pts-2.server  
 
For exiting of current screen use this command :
 
For exiting of current screen use this command :
Line 37: Line 36:
 
Screen has many different functions, for more detail information use:
 
Screen has many different functions, for more detail information use:
 
  screen –help
 
  screen –help
 +
[[Category:Linux]]

Latest revision as of 11:34, 19 June 2015

Chek the screen installation in your system:

which screen

If installation is not performed, install epel repository:

yum install epel-release

Install screen:

yum install screen

If you got the following error “Cannot retrieve metalink for repository: epel. Please verify its path and try again” just use this commands:

sudo sed -i "s/mirrorlist=https/mirrorlist=http/" /etc/yum.repos.d/epel.repo
yum –y update

And try to install screen again.

When screen is installed, start new screen:

screen

Try to install some heavy software, cpanel for example:

cd /home
wget -N http://httpupdate.cpanel.net/latest
sh latest

Then press Ctrl+a+d. You will see the following inscription:

[detached]

Now your installation is continued in screen, and you can exit your putty session or start any other installation. Cpanel will still be installed.

You can check your screen list by command:

screen ls

The next information will be appear:

There is a screen on:
22570.pts-2.server  (Detached)
1 Socket in /var/run/screen/S-root.

If you want to connect to some screen:

screen -r 22570.pts-2.server 

For exiting of current screen use this command :

exit

Screen has many different functions, for more detail information use:

screen –help