-
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

Dell Desktop Computer Intel Core i3 PC 19" LCD 8GB RAM 250GB HD Windows 10 Wi-Fi
$124.99

AMD Ryzen 7 5800X 8-core 16-thread Desktop Processor
$179.99

Dell OptiPlex 7040 Micro PC - Intel Core i3-6100T 3.2GHz 8GB RAM No Drive/OS
$39.99

ASUS Chromebox 3 Intel Core i7-8550U 8GB RAM 32GB (Grade "B")
$79.99

Dell OptiPlex 7020 Desktop 3.30GHz Intel Core i5-4590 8GB DDR3 RAM NO HDD
$55.00

Intel - Core i9-12900K Desktop Processor 16 (8P+8E) Cores up to 5.2 GHz Unloc...
$378.99

Intel NUC NUC5i5RYK / Intel Core i5-5250U 1.60GHz / 8GB RAM / No SSD
$24.76

PC Gaming Computer: 8th i5 6-Core, 256GB NVME+2TB HDD, 16GB DDR4, RTX 2060, WIFI
$439.99

Dell OptiPlex 3060 Tower Intel Core i5 8th Gen 16GB RAM 256GB SSD Windows 11 Pro
$236.99

HP RGB Desktop Computer PC i7 32GB Ram 2TB SSD 2TB HDD New 24" LED Built-in WiFi
$294.99