-
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
SAMSUNG 2.5 inch SATA III SSD 870 EVO 2TB 1TB 500 GB 250GB Solid State Drive lot
$39.89
New External Hard Disk Drive USB 3.0 Ps5 Xbox SSD from 1TB - 64TB A+China Copy
$69.99
SAMSUNG SSD 870 EVO 2.5" SATA III Solid State Drive 2TB 1TB 500GB 250GB lot
$51.04
External Hard Disk Drive HDD USB 3.0 1TB/2TB/4TB Portable External HDD PN
$19.99
Patriot P210 128GB 256GB 512GB 1TB 2TB 2.5" SATA 3 6GB/s Internal SSD PC/MAC Lot
$48.99
Netac 1TB 2TB 512GB Internal SSD 2.5'' SATA III 6Gb/s Solid State Drive lot
$46.99
Patriot P300 128G 256GB 512GB 1TB 2TB M.2 2280 PCIe Gen3x4 NVMe Internal SSD Lot
$49.99
Samsung 1TB MZ-76E1T0 860 EVO 2.5" SATA III SSD
$39.95
1TB HDD/SSD 2.5" SATA Hard Drive for Laptop with Windows 11 Pro Installed Used
$15.55
USB 3.0 External HDD Portable High Speed 1/2/4TB 2.5-Inch SATA Hard Drive
$17.99