GNU screen

From Openmoko

(Difference between revisions)
Jump to: navigation, search
(-)
(External links: +link)
 
(5 intermediate revisions by one user not shown)
Line 39: Line 39:
 
Make update and upgrade in the GNU screen process:
 
Make update and upgrade in the GNU screen process:
 
  opkg update;opkg upgrade;sync;sync;sync
 
  opkg update;opkg upgrade;sync;sync;sync
 +
# Sync info:
 +
# http://www.oreillynet.com/linux/cmd/cmd.csp?path=s/sync
 +
# I think it will prevent data loss, if FR looses power/undergoes unclean power off,
 +
# after a complete sleep uninterrupted upgrade.
  
 
If you now loose ssh connection to your FR it does not matter - the upgrade proceeds (as long as the FR does not sleep - if the touchscreen goes black please tap the touchscreen to prevent sleep).
 
If you now loose ssh connection to your FR it does not matter - the upgrade proceeds (as long as the FR does not sleep - if the touchscreen goes black please tap the touchscreen to prevent sleep).
  
If you do loose the ssh connection, you ought to be able to restart the wi-fi interface, start a ssh connection to FR and reconnect to GNU screen process and see the last couple of lines and see how it ended.
+
If you do loose the ssh connection, you ought to be able to restart the wi-fi interface, start a ssh connection to FR and reconnect to GNU screen process and see the last couple of lines and see how the upgrade ended.
  
 
==External links==
 
==External links==
 +
*[http://www.youtube.com/watch?v=b2nZdChQvAs YouTube - The Joy of Screen]
 +
*[http://www.youtube.com/watch?v=yqysa6oq80o YouTube - How to you use the gnu/screen]
 
*http://en.wikipedia.org/wiki/GNU_Screen
 
*http://en.wikipedia.org/wiki/GNU_Screen
 
*http://www.gnu.org/software/screen/
 
*http://www.gnu.org/software/screen/

Latest revision as of 19:27, 10 December 2010

GNU screen is a VT100 terminal multiplexer, default installed tool in SHR. The started terminal processes are persistent and shareable.

It can, among others, be used for making virtual terminals, and to do serial communication with a physical or virtual serial port (typical RS-232):

  • man screen

Typical test if any GNU screen processes exist:

screen -list
# Response:
# No Sockets found in /tmp/screens/S-root.

Typical usage:

screen
# Response:
# Screen version 4.00.03 (FAU) 23-Oct-06
# ...
# [Press Space or Return to end.]
# Do either of this to enter the created GNU screen.
screen -list
# There is a screen on:
#       8291.pts-3.om-gta02     (Attached)
# 1 Socket in /tmp/screens/S-root.

On purpose disconnect a GNU screen process:

<ctrl>a d
# Response: [detached]
# You should see the terminal in a former [different] state.

See if the disconnection worked:

screen -list
# There is a screen on:
#        8291.pts-3.om-gta02     (Detached)
# 1 Socket in /tmp/screens/S-root.

Reconnect to a GNU screen:

screen -RD 8291
# You should see the terminal in another [different] state.

Make update and upgrade in the GNU screen process:

opkg update;opkg upgrade;sync;sync;sync
# Sync info:
# http://www.oreillynet.com/linux/cmd/cmd.csp?path=s/sync
# I think it will prevent data loss, if FR looses power/undergoes unclean power off,
# after a complete sleep uninterrupted upgrade.

If you now loose ssh connection to your FR it does not matter - the upgrade proceeds (as long as the FR does not sleep - if the touchscreen goes black please tap the touchscreen to prevent sleep).

If you do loose the ssh connection, you ought to be able to restart the wi-fi interface, start a ssh connection to FR and reconnect to GNU screen process and see the last couple of lines and see how the upgrade ended.

[edit] External links

Personal tools

GNU screen is a VT100 terminal multiplexer, default installed tool in SHR. The started terminal processes are persistent and shareable.

It can, among others, be used for making virtual terminals, and to do serial communication with a physical or virtual serial port (typical RS-232):

  • man screen

Typical test if any GNU screen processes exist:

screen -list
# Response:
# No Sockets found in /tmp/screens/S-root.

Typical usage:

screen
# Response:
# Screen version 4.00.03 (FAU) 23-Oct-06
# ...
# [Press Space or Return to end.]
# Do either of this to enter the created GNU screen.
screen -list
# There is a screen on:
#       8291.pts-3.om-gta02     (Attached)
# 1 Socket in /tmp/screens/S-root.

On purpose disconnect a GNU screen process:

<ctrl>a d
# Response: [detached]
# You should see the terminal in a former [different] state.

See if the disconnection worked:

screen -list
# There is a screen on:
#        8291.pts-3.om-gta02     (Detached)
# 1 Socket in /tmp/screens/S-root.

Reconnect to a GNU screen:

screen -RD 8291
# You should see the terminal in another [different] state.

Make update and upgrade in the GNU screen process:

opkg update;opkg upgrade;sync;sync;sync

If you now loose ssh connection to your FR it does not matter - the upgrade proceeds (as long as the FR does not sleep - if the touchscreen goes black please tap the touchscreen to prevent sleep).

If you do loose the ssh connection, you ought to be able to restart the wi-fi interface, start a ssh connection to FR and reconnect to GNU screen process and see the last couple of lines and see how it ended.

External links