-
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
Supermicro 2U 6028R-E1CR24N 24x LFF- Wholesale Build Your Own Storage Server
$249.99
Dell Poweredge R630 Server 2x E5-2620 V4 =16 Cores | S130 | 32GB RAM | 2x trays
$180.99
Dell R640 8x 2.5" SFF Server iDRAC - Wholesale Custom Build Your Server
$270.99
2U 12 Bay SAS3 SuperMicro Server 6028U-TR4T+ W/ X10DRU-i+ Barebone 12 Caddy RAIL
$159.20
Dell Poweredge R210 II Server Xeon E3-1230 3.2ghz Quad 16GB No HDD 2x HDD Caddy
$55.00
Dell PowerEdge T330 | Intel Xeon E3-1220 v5@3.0GHz 8GB RAM 4x 1TB HDD NO OS
$209.99
New Gigabyte 10 bay SFF Server 2x Xeon Gold 6130 Total 32 Core 64GB DDR4 3x PCIe
$319.20
Dell PowerEdge R220 Xeon E3-1220v3 3.10GHz 8GB DDR3 ECC RAM Server Needs HDD
$114.99
Supermicro 1U Server X10DRG-HT 2x E5-2680 v4 128GB 4x Trays 3x GPU AI Crypto
$389.99
Dell Poweredge R730xd 12LFF + 2SFF 2x E5-2680 v3 2.5ghz 32gb H730 14x Trays
$399.99