|
|
#1 | |
|
Registered User
Join Date: Dec 2008
Posts: 55
|
I need to know a terminal/bash/shell command for switching to TTY1 (/dev/tty1) from the graphical user interface. Like when pressing Ctrl+Alt+F1. I'm working on a script that will make it easier to update and install the latest nVidia drivers.
Is there even a way to do this? |
|
|
|
|
|
|
#2 | |
|
Registered User
Join Date: Nov 2008
Posts: 7
|
|
|
|
|
|
|
|
#3 |
|
Registered User
Join Date: Dec 2008
Posts: 55
|
|
|
|
|
|
|
#4 | |
|
Registered User
Join Date: Dec 2008
Posts: 55
|
Now. Is there a way to run a command from the GUI on /dev/tty1?
|
|
|
|
|
|
|
#5 |
|
Registered User
Join Date: Apr 2009
Posts: 1
|
Assuming you're logged on to the console from the same user as is logged in the X session this should do the trick:
Code:
DISPLAY=:0 yourcommand Code:
/bin/ls > /dev/tty1 Failing that, you can read into the use of the "screen" program. |
|
|
|
|
|
#6 | |
|
Registered User
Join Date: Dec 2008
Posts: 55
|
Quote:
Read my other post and you'll see what I'm basically trying to do. http://www.nvnews.net/vbulletin/showthread.php?t=132039 |
|
|
|
|
![]() |
| Thread Tools | |
|
|