-
Doing things from the virtual terminal on the X screen
I think I may have figured out how to do things from the virtual terminals to affect the X screen.
The vt for X is 6 so we can do:
chvt 6 to switch to the virtual terminal 6
Next we need to have a little delay, so let's add sleep 4 (you can also use 2 if you think that's a bit faster)
We also need to add "export DISPLAY=:0" to set the X display.
Then to change the user, we use "sudo -u knoppix "
So to do xrandr and change the resolution: (this is pretty useful when you mess around with screen resolutions that cause a blank screen)
Hit CTRL+ALT+F4 to switch to VT 4: then type
chvt 6; sleep 4; export DISPLAY=:0; sudo -u knoppix xrandr
chvt 6; sleep 4; export DISPLAY=:0; sudo -u knoppix xrandr --output HDMI-1 --mode 800x600
To launch terminator:
chvt 6; sleep 4; export DISPLAY=:0; sudo -u knoppix terminator &
To open the main menu:
chvt 6; sleep 4; export DISPLAY=:0; sudo -u knoppix lxpanelctl menu
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
Intel Core i7-14700K - 14th Gen 20-Core (8P+12E) LGA 1700 125W CPU Processor
$373.96
AMD Ryzen 9 7900X3D Gaming Processor - 12 Core And 24 Threads
$449.00
Intel® Core™ i7-10700K 3.80GHz 8-Core Processor (SRH72)
$120.00
Intel Core i7 CPU Processors, I7 2600, i7 3770, i7 4770, i7 4790
$28.99
Intel - Core i5-14600K 14th Gen 14-Core 20-Thread - 4.0GHz (5.3GHz Turbo) Soc...
$305.99
Intel Core i5-4690K SR21A Quad-Core 3.5GHz 6MB LGA1150 Desktop CPU Processor
$14.99
Intel Core i7-3770 Desktop Processor (3.4 GHz, 4 Cores, LGA 1155) Ivy Bridge
$29.99
Intel Core i7-4790K SR219 4.00GHZ 4Th Gen Used Desktop Processor CPU FCLGA1150
$64.99
Intel Core i7-13700KF - 13th Gen Raptor Lake 16-Core (8P+8E) Desktop CPU Proc...
$289.99
INTEL CORE I5-8600 PROCESSOR | 3.10GHZ | SR3X0
$59.99