LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - General (https://www.linuxquestions.org/questions/linux-general-1/)
-   -   Starting Irssi in screen on boot? (https://www.linuxquestions.org/questions/linux-general-1/starting-irssi-in-screen-on-boot-464730/)

xrazybud 07-16-2006 11:49 PM

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.

Matir 07-16-2006 11:56 PM

You could set up a crontab for user axe, and in it, place:
Code:

@reboot screen -T xterm -d -m irssi
I would think this would work.

xrazybud 07-17-2006 04:32 PM

Quote:

Originally Posted by Matir
You could set up a crontab for user axe, and in it, place:
Code:

@reboot screen -T xterm -d -m irssi
I would think this would work.

Is there any way to just have it start up the right way? I don't understand what you mean by the reboot part?

Matir 07-17-2006 05:26 PM

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'.

xrazybud 07-17-2006 05:48 PM

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.