-
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 SSD 870 EVO 2.5" SATA III Solid State Drive 2TB 1TB 500GB 250GB lot
$230.72

SAMSUNG 2.5 inch SATA III SSD 870 EVO 2TB 1TB 500 GB 250GB Solid State Drive lot
$123.49

Netac Internal SSD 256GB Solid State Drive SATA III 6GB/s Wholesale Sale 530mb/s
$16.99

Netac 1TB 2TB 512GB Internal SSD 2.5'' SATA III 6Gb/s Solid State Drive lot
$16.99

Patriot P210 128GB 256GB 512GB 1TB 2TB 2.5" SATA 3 6GB/s Internal SSD PC/MAC Lot
$16.99

SanDisk SSD PLUS 240GB SATA III 2.5" 7mm SDSSDA-240G
$14.99

Western Digital 2.5" SSD WD BLUE 500 GB 3D NAND WDS500G2B0A SATA Laptop
$24.95

Patriot P300 128G 256GB 512GB 1TB 2TB M.2 2280 PCIe Gen3x4 NVMe Internal SSD Lot
$14.99

SOLIDE STATE DRIVE 128GB/256GB SATA M.2 SSD WITH PRE-ACTIVATED WINDOWS 10/11 PRO
$14.80

Netac 1TB SSD 2.5'' SATA III 6 Gb/s Internal Solid State Drive 500MB/s MAC/PC
$45.89