• Home
  • Shell
    • Emacs
    • Perl
    • screen
    • sed
  • Ubuntu
    • VNC
  • Web Development
    • Javascript
    • Joomla
    • MySQL
    • osTicket
  • Windows
    • Gimp

Posts tagged screen

Windows> Move your offscreen windows back on screen

Nov03
2010
Written by Scott Rowley

This morning I was majorly annoyed when a Gimp window was offscreen and there was not a damn thing I could figure out to do to finally be able to move it. The standard way to move a window back on screen is to right click on the taskbar item and select move and then use the arrows to move it back. However, since Gimp has these annoying ass multi-windows that wouldn’t work as all it wanted to move was the main window. After some frustrations and googling I finally found the following to work for me.

The window that was off screen was the “Toolbox” window. The top of it was completely off screen so there was no hope of right clicking it and getting into the menu to select move. Well fortunately some of the most annoying things have the simplest answer. All I needed to do was click on the toolbox anywhere so it was the window selected and then hit

Alt-Spacebar

From there I was in the menu and could mouse/arrow down to “move” and then use my arrows as normal to get the bastard back.

Posted in Gimp, Windows - Tagged Gimp, move, window

BASH> Connect to another user’s console terminal using ‘screen’

Nov02
2010
Written by Scott Rowley

Recently, I was helping another Admin and I wanted to be able to share our screens but our IS department won’t allow for it. Being that we were working in a terminal session I decided to go this route instead.

Needed:
– Screen
– Local account on host computer/server for remote user

Install screen

sudo apt-get install screen

Set the screen binary (/usr/bin/screen) setuid root. By default, screen is installed with the setuid bit turned off, as this is a potential security hole.

sudo chmod +s /usr/bin/screen
sudo chmod 755 /var/run/screen

The host starts screen in a local xterm, using the command screen -S SessionName. The -S switch gives the session a name, which makes multiple screen sessions easier to manage.

screen -S screen-test

The remote user (remote_user) uses SSH to connect to the host computer (host_user).

ssh remote_user@server

The host (host_user) then has to allow multiuser access in the screen session via the command ^A :multiuser on (all ‘screen’ commands start with the screen escape sequence, ^A).

^A
:multiuser on

The host (host_user) must grant permission to the remote user (remote_user) to access the screen session using the command ^A :acladd user_name where user_name is the remote user’s login ID (remote_user).

^A
:acladd remote_user

The remote user can now connect to the hosts ‘screen’ session. The syntax to connect to another user’s screen session is screen -x host_user/sessionname.

screen -x host_user/screen-test
Posted in BASH - Tagged BASH, connect, share, terminal, user

Corrections? Questions? Comments?

Find an error?
Everything work out great for you?
Have some feedback?
Like to see something added to the article?

PLEASE leave us a comment after the article and let us know how we are doing, or if something needs corrected, improved or clarified.

Thank you!
- The Management

Advertisement

Sudo Bash
By Geeks - For Geeks

Back to Top