-
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

CISCO WS-C3850-12X48U-S 48 Port UPoE w/(1)1100w P/S-1 YEAR WARRANTY INCLUDED
$129.99

Cisco Catalyst C9300-24UX-A 9300 24 UPOE
$224.99

Cisco MS125-48LP - 52 Ports Ethernet Switch Unclaimed
$175.00

BRAND NEW Cisco 892FSP C892FSP-K9 Gigabit Ethernet Security Router
$79.00

Cisco CISCO1921-SEC/K9 1921 Series 2-Port Integrated Services Router
$44.99

Cisco ASA 5545-X ASA5545-K9 Firewall Adaptive Security Appliance 1x ASA PWR AC
$25.00

🔥🔥🔥Genuine Cisco SFP-10G-SR V03 10GBASE-SR SFP+ Transceiver 10-2415-03 🔥🔥🔥
$8.00

Cisco SFP-10G-SR 10-2415-03 10 Gigabit Transceiver LOT OF 8
$24.00

Cisco Catalyst C9136I-B Wireless Access Point
$259.99

Cisco WS-X4712-SFP+E Catalyst 4500 Series Line Card 10GbE 12-Port Module SFP+
$59.00