You are not logged in.

#1 2014-01-09 12:10:20

PReP
Member
From: Sweden
Registered: 2010-06-13
Posts: 359
Website

The old X-application output to tty1, where is it today? [SOLVED]

First, i am sorry if this has been covered somewhere,
I have tried searching for the topic, on here and with google already.
It might be because i am not sure on how to phrase the query, like "the output of gui programs on tty1 nowadays with systemd" or shorter attempts with different words.

So i hope to be able to borrow the space a thread takes to throw this question out here to my fellow archers.

Explanation:

It used to be a habit of mine to, whenever a graphical application (inside/run in a xorg-session) failed,
switch to TTY1 (by ways of CTRL-ALT-F1) and quickly get some output from my most recent attempts.

(Example:

Say i run something like firefox, xbmc, or a bash-script - not started through a terminal but by a launcher or openbox-menu-item,
it does not start, or something errors out. "Back in the day" i would switch to the tty x was started in (tty1) and see the output
of what i ran, and then look at my script or run command and fix my blunders.)

My question is probably a simple one, but where do i access this nowadays when we have systemd, and the tty1 is "occupied".
I am sure it ends up somewhere else aswell, generally?

(updated with an example)

Last edited by PReP (2014-01-09 14:18:12)


. Main: Intel Core i5 6600k @ 4.4 Ghz, 16 GB DDR4 XMP, Gefore GTX 970 (Gainward Phantom) - Arch Linux 64-Bit
. Server: Intel Core i5 2500k @ 3.9 Ghz, 8 GB DDR2-XMP RAM @ 1600 Mhz, Geforce GTX 570 (Gainward Phantom) - Arch Linux 64-Bit
. Body: Estrogen @ 90%, Testestorone @ 10% (Not scientific just out-of-my-guesstimate-brain)

Offline

#2 2014-01-09 13:23:30

karol
Archivist
Registered: 2009-05-06
Posts: 25,440

Re: The old X-application output to tty1, where is it today? [SOLVED]

Have you tried logging e.g.

alias startx='startx &> ~/.xlog'

https://wiki.archlinux.org/index.php/Start_X_at_Login

Offline

#3 2014-01-09 14:17:37

PReP
Member
From: Sweden
Registered: 2010-06-13
Posts: 359
Website

Re: The old X-application output to tty1, where is it today? [SOLVED]

Thanks karol, that is just the sort of advice i was looking for.

Though i now realise that is similar to how i start X at the moment, just without the output-redirection smile

I am sorry for not finding that information on my own though. thanks again.


. Main: Intel Core i5 6600k @ 4.4 Ghz, 16 GB DDR4 XMP, Gefore GTX 970 (Gainward Phantom) - Arch Linux 64-Bit
. Server: Intel Core i5 2500k @ 3.9 Ghz, 8 GB DDR2-XMP RAM @ 1600 Mhz, Geforce GTX 570 (Gainward Phantom) - Arch Linux 64-Bit
. Body: Estrogen @ 90%, Testestorone @ 10% (Not scientific just out-of-my-guesstimate-brain)

Offline

#4 2014-01-09 15:53:32

ewaller
Administrator
From: Pasadena, CA
Registered: 2009-07-13
Posts: 19,739

Re: The old X-application output to tty1, where is it today? [SOLVED]

What I do is to start tmux from the tty, then once inside tmux, start the X session.  Once in the X session, open another tmux instance, but attach to the existing session.  That lets you see the output in real time while in the X session.


Nothing is too wonderful to be true, if it be consistent with the laws of nature -- Michael Faraday
Sometimes it is the people no one can imagine anything of who do the things no one can imagine. -- Alan Turing
---
How to Ask Questions the Smart Way

Offline

#5 2014-01-09 16:01:27

brebs
Member
Registered: 2007-04-03
Posts: 3,742

Re: The old X-application output to tty1, where is it today? [SOLVED]

A simple startx is not secure. Anyone could press Ctrl-Alt-F1, Ctrl-C, then be logged in as you wink

I use (from thread):

alias x='setsid /usr/bin/startx -- -nolisten tcp &> ~/.xorg.log & logout'

Offline

Board footer

Powered by FluxBB