LinuxQuestions.org
Welcome to the most active Linux Forum on the web.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - General
User Name
Password
Linux - General This Linux forum is for general Linux questions and discussion.
If it is Linux Related and doesn't seem to fit in any other forum then this is the place.

Notices

Reply
 
Search this Thread
Old 09-28-2007, 02:47 AM   #1
Calab
Member
 
Registered: Oct 2003
Location: Calgary, AB, Canada
Distribution: CentOS, Ubuntu
Posts: 32

Rep: Reputation: 0
Question Starting screen automatically at login?


I do most of my administration of my Debian etch 4.0r1 server via SSH. I've found screen to be an invaluable program and I'd like it to be started automatically when I log into the machine locally or via SSH. I'd also like it to reattach to any existing screen sessions, if any are running.

How would I go about doing this?
 
Old 09-28-2007, 09:14 AM   #2
slakmagik
Senior Member
 
Registered: Feb 2003
Distribution: Slackware
Posts: 4,113

Rep: Reputation: Disabled
I suppose if you really wanted to, you could make it your 'shell', but it'd need to be in /etc/shells or you'd need root privileges to make it so. More likely, you could just put it in your shell configs - .bashrc or .bash_profile or what have you, if bash is your shell. I wouldn't feel comfortable with such a thing, but I suppose that'd be the way to go. What's so hard about typing 'screen' or aliasing it to 's' and typing that or whatever?

As far as reattaching to sessions, the screen manual has the DdRr options. Probably
Code:
screen -D -R
would do it.
 
  


Reply

Tags
automatic, login, screen


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
starting new session / login screen from terminal Cinematography Linux - Software 9 01-11-2006 04:29 PM
GUI screen not starting up to login vr76413 Linux - Laptop and Netbook 1 12-27-2005 12:01 PM
automatically starting gui after login marsques Slackware 9 07-25-2005 06:38 PM
Programs Starting automatically on login? keysorsoze Fedora 2 01-31-2005 07:53 AM
Automatically load up KDE login screen annihilate Slackware 15 05-27-2004 02:18 PM


All times are GMT -5. The time now is 05:52 AM.

Main Menu
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
identi.ca: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration