-
Senior Member
registered user
@utu
If you want to see the output that is made by startx on /dev/tty5 then you have to modify /etc/init.d/knoppix-startx. I use the tee program to copy that output into a file /var/log/knoppix-startx-dev-tty5.log:
Code:
su -l -c "export STARTUP=$STARTUP ; exec /usr/bin/startx -- vt5 -dpi "$DPI" -br -noreset -nolisten tcp" "$USER" </dev/tty5 2>&1 | /usr/bin/tee -a /var/log/knoppix-startx-dev-tty5.log >/dev/tty6 ; RC="$?"
I also redirect the output to /dev/tty6 so that I am able to read it on the virtual terminal 6.
-
Senior Member
registered user
I hope you all will be patient with me, for I am a slow learner.
You have helped me find the material I'm after. Now I need to
figure out how to apply it. I know how, in principle to proceed
to establish a file to read. I've seen a few ideas on how to
achieve a virtual terminal, but I've not mastered that yet.
I lost a few hours being disconnected, by the unfortunate choice
of Fn-F2 on my laptop keyboard. I was attempting to establish
what, if anything, happened with a whole lot of key combinations.
I Thought my wifi or router had died.
Many thanks to you all. My cup runneth over.
klaus2008, I'm very interested to try what you suggest.
I will now re-apply myself to the virtual terminal problem;
once I get over that hump, I'll get back to you.
-
Senior Member
registered user
Progress:
In an lxterminal either as knoppix or root,
ctl-alt-F2 gets a virtual terminal (I don't know which one).
alt-F12 then takes you to virtual terminal #12 (vt #12).
vt #12 displays the last 46 lines of the grey-on-black diary.
From vt #12, alt-F5 then takes you back to your X-session.
Note: The previous is true in my Knoppix 6.2.1, with my
Inspiron 1545 keyboard, but not in Ubuntu 10.04 on another
computer.
Musings:
I am guessing that the diary which may have existed on prior
screens probably went to /dev/null, and isn't retrievable.
I don't know how to pre-arrange for an lxterm to be active
to see this stuff from the get-go.
I suspect a well-placed tee command might capture this
lost material in a logfile for later viewing.
-
Senior Member
registered user
@klaus2008, specifically in regard to your post #15.
I think I'm ready to try your idea.
Am I permanently modifying any files with your long command,
or will the change only persist for the immediate session?
If any files are permanently changed, which are they?
Also, I might add to my previous observations,
1. The first virtual terminal seems like it should be vt #5.
2. It is possible to enter 'ctl-alt-F2' during the start-up
sequence without firing up any lxterm. In one instance,
this allowed viewing earlier progress of start-up, but it also
stalled some of Network Manager magic. This magic resumed
successfully as soon as I returned to Xsession.
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules

New Barebones Supermicro 5019D Server, 4C/8T Xeon D-2123T, 1U Rackmountable, 10G
$449.99

HP ProLiant MicroServer Gen8 G1610T @2.3 GHz, 16GB, 712317-001 NO HDD/OS
$199.00

Supermicro 505-2 Server
$280.00

Nasuni NF-50 Supermicro Server, Atom CPU C2558, @ 2.40GHz, 8GB RAM-No HDD/OS/AC
$250.00

Supermicro 2U X10DRU-i 2x E5-2680 v3 2.5ghz 32gb Ram 240gb SSD 2x GPU *READ*
$369.99

HPE ProLiant MicroServer Gen10 Opteron X3421 32GB DDR4 Intel X550 10GbE No HDD
$599.00

1U Edge Firewall Server X11SCW-F Xeon E-2174G 0 RAM M.2 NVME 3x PCI-e 2x PSU X
$175.00

SuperMicro 4U CSE 847 36 Bay LFF Barebone 2x 1280W w/ 2x Bays 2.5 Rear w/Trays
$499.99

Supermicro CSE-937 3U Storage Chassis No CPU No HDD No Ram Tested & Reset
$129.99

Supermicro 1U Network Server Appliance 16GB RAM 800GB SSD 6 LAN Ports Powers On
$450.00