Starting Irssi in screen on boot?
So I have set up my computer to start irssi in screen as a user on boot. The only problem is that from this screen session there are no colors. The force colors option does not look good either, so that's not a option. I'm using the line:
su axe -c "screen -d -m irssi" In order to start it. The terminal is always set to plain "tty" though. If I run screen as the user, it is perfectly fine, and the terminal will be set to "xterm" (it's complete console though). If I run it as root though, it's always "tty" even if I try something like: su axe -c "screen -T xterm -d -m irssi" su - axe -c "screen -T linux -d -m irssi" Also doesn't work. I'm using Screen version 4.00.02 (FAU) 5-Dec-03, and su (GNU coreutils) 5.95. Everything I've tried doesn't work, and nothing I find on google works for me. |
You could set up a crontab for user axe, and in it, place:
Code:
@reboot screen -T xterm -d -m irssi |
Quote:
|
What do you mean by "the right way"? My guess is that since there is no controlling terminal attached when screen starts, it defaults to 'tty'.
|
I mean the right way as in it doesn't have to be messed with more in order to get it the way wanted. Is there a way to make it not default to 'tty' that actually works when starting it this way?
|
All times are GMT -5. The time now is 09:26 AM. |