-
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

Vintage 1989 Apple Macintosh Portable M5120
$438.75

Vintage Apple Macintosh Quadra 630. Powers On, Good Capacitors, Battery
$74.00

Vintage Apple Model No.: M5119 Macintosh SE/30 Monitor Untested For Parts
$49.99

Vintage Apple Laptop PowerBook 540 12mb RAM 240mb HD
$49.00

Macintosh Classic M0420 Vintage 1990 Apple Computer
$73.13

Vintage Macintosh Classic 1991 Desktop M0420
$189.99

Vintage Apple Macintosh IIcx Model M5650 - For Parts or Repair #99
$74.99

Vintage Macintosh Performa 550 Computer - Parts/Repair
$300.00

Vintage Apple Macintosh PowerBook 1400cs M3571 Laptop for Parts or Repair As Is
$80.00

Vintage Apple Power Macintosh 7200/90, Untested, STRICTLY As-Is
$40.00