LinuxQuestions.org
Share your knowledge at the LQ Wiki.
Home Forums Tutorials Articles Register
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: 56

Rep: Reputation: 2
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



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 10 10-10-2019 11:43 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

LinuxQuestions.org > Forums > Linux Forums > Linux - General

All times are GMT -5. The time now is 04:27 AM.

Main Menu
Advertisement
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
Open Source Consulting | Domain Registration