tty is a Unix command that prints on standard output file name connected to standard input. The program's name comes from teletypewriter, abbreviated "TTY".

learn more… | top users | synonyms

2
votes
3answers
1k views

How can I determine if a client SSH connection has a tty associated with it?

Im writing a PAM module to handle authentication (server side - sshd) and I have to know if an ssh client is a tty (interactive) or not (non interactive). Does anyone have a clue?
2
votes
3answers
1k views

Run a script after killing lxsession (xorg)

I am trying to run a program automatically within a bash script after killing the LXDE session. My script consists of: #!/bin/sh pkill lxsession; sh /home/pi/RetroPie/EmulationStation/...
0
votes
2answers
1k views

Suppress 'Warning: no access to tty' in ssh

I have a short simple script, that compiles a .c file and runs it on a remote server running tcsh and then just gives back control to my machine (this is for school, I need my programs to work ...
4
votes
1answer
4k views

unable to switch TTY in arch linux

So I'm moving away from Ubuntu into the realm of Arch Linux. In Ubuntu I was able to switch TTYs with ctrl+alt+F1/F2... and etc. In Arch when I attempt this, I'm merely dumped to a black screen ...
4
votes
1answer
2k views

How to get different terminals for dual monitor scheme without X

I have Ubuntu installed without X.org with two monitors(single card: vga and dvi) Login shell is cloned for both monitors. I there any way to have different shells(tty) for these monitors?
2
votes
1answer
613 views

Is it possible to use uvesafb with nvidia proproetary drivers?

I would like to have high-resolution console with NVidia proprietary driver. To accomplish that I'm trying to use uvesafb. So what I've done: yaourt -S v86d /etc/modprobe.d/uvesafb.conf: ...
1
vote
1answer
122 views

Questions about behaviour of running LiveCD Linux after unmounting a CD-ROM

Could anyone explain what happens in system after unplugging CD-ROM during working with LiveCD session? Suppose that I'm using Ubuntu LiveCD and suddenly by accident the CD-ROM disconnect for a ...
1
vote
1answer
248 views

How to open tty or execute some script when the shortcut Ctrl+Alt+F[1-6] doesn't work and X11 is partially frozen but system is still working?

I'm using Ubuntu 10.10 with Gnome on Acer Aspire One netbook. The X11 or just some parts of Gnome like panels and partially windows (details described below) are frozen which doesn't allow to do ...
1
vote
1answer
2k views

Ubuntu 12.04: Cannot login to tty[1-6] except as root

When I press [Ctrl+Alt+F<1-6>] it takes me to tty1 through tty6 respectively, no problem. But at the login prompt, if I try to login with my username and password, it just immediately takes me back ...
1
vote
1answer
2k views

Why do I appear 3 times “logged in” in macosx? (zsh and screen)

I'm using the following options in order to launch a 'screen' session when I launch Terminal.app to my OSX Mountain Lion: **~/.zshrc relevant option** if [[ $STY = '' ]] then screen -UxR; fi # ...
0
votes
1answer
103 views

Terminal scrolling from shell script

Is there any way to perform the effect of using the scroll bar in Terminal.app using a shell command? Maybe something cross-platform, that works in Linux terminal emulators too?
0
votes
1answer
395 views

How to display a message upon login to specific tty

In /etc/securetty I commented out tty2 and tty3: #tty2 #tty3 This succesfully disables root login for these two terminals for root. But is it possible to display a message such as "root login is ...
3
votes
0answers
112 views

How to remove tty[7-63]?

I have an embedded system, a beaglebone black to be specific. This SBC runs Debian wheezy 7.4, and a custom 3.8.x kernel. Patched for this hardware. Anyway, the title pretty much says it all. I can ...
1
vote
0answers
106 views

Can't use sudo when autologin in Arch Linux

I have a Pandaboard running Arch Linux, the default non root user is alarm. I'm trying to automatically login at startup with the alarm user. I followed the instructions here and created the file /etc/...
1
vote
0answers
134 views

How can I run Qemu with the “-nographic” option in Mac OS X?

Does anyone know how to run Qemu with the -nographic option in Mac OS X? The idea is to use the native Terminal for a text based operation instead of running inside Qemu’s own window. The -nographic ...
1
vote
0answers
128 views

linux + what are the messages bad tty under /var/log/messages file

under /var/log/messages I see the following messages "bad tty" what the meaning of these messages? second is it caused because some application that called - owstd ? as we can see from the log? ...
1
vote
0answers
190 views

different ttys on different monitors

I am running a few un*ces and I have now grasped the power of using different ttys (Ctrl+alt+F(x)). Yesterday, I attached a second monitor. I was able to configure x to extend my desktop, and I became ...
1
vote
0answers
522 views

Solaris: ssh -tt with no output

I have access to a machine running SunOS 5.10 (called solaris). I also have access to a RedHat machine (called redhat). ssh -tt seems not to give me output if run from solaris to solaris, but works ...
1
vote
0answers
162 views

How to change keymap on native console?

When I'm switching to native console with Ctrl+Alt+Fn I have wrong keyboard maping. I want to set keymap proper to my language. In KDE, web browser, konsole etc. everything is OK. So, how to change ...
1
vote
0answers
259 views

Ubuntu 12.04: screen freezes when I open the laptop

I have installed Ubuntu 12.04 on my lenovo G580 laptop. When I close the laptop (goes into hyvernation mode) and open it, sometimes my screen freezes (I can still see my mouse moving, but that is all)....
1
vote
0answers
210 views

Forward second keyboard input to window and split-screen terminal and KDE

I have two keyboards (one internal and one external) and I want to split-screen Linux video output so I'll have tty on one half and X11 on second half and I want redirect input from external keyboard ...
1
vote
0answers
136 views

Configuration to point an X tty to a separate system?

Specifically, I have an Ubuntu 10.04 system with a headless Ubuntu 12.04 virtual machine, and I'm looking for a way to have it set up so pressing ctrl+alt+F8 will take me into another X client which ...
0
votes
0answers
16 views

Kali Linux Glitched Boot

I'm having a problem with Kali Linux when it should start the gui, my cursor is constantly flickering. When I switch to tty2 I'm able to login but then I get in the command line. When I do X I end ...
0
votes
0answers
17 views

sakis3g on raspberry pi2 not accepting any other interface other than ttyUSB0 or ttyUSB1.. how to make connection on other ttyUSB*

i am newbie to linux and raspberry pi. On my raspberry pi 2 , i use sakis3g to make the connection successful,it works fine when it is connected to ttyUSB1 or ttyUSB0 but wen i reboot the system with ...
0
votes
0answers
13 views

Linux Bash pts are not sorted

I log in to a debian server via ssh. Let's say I do this with 5 clients. Then the clients get: pts/1 pts/3 pts/4 pts/5 pts/6 So why is there no pts/2 ? (I did not find any pts/2 in ps aux) PS: When ...
0
votes
0answers
24 views

Process running in SSH-allocated TTY not terminating once stdin is consumed

I can perform file-transfer via SSH* like this: ssh -T ${HOST} eval "cat > remote.txt" < local.txt However, if I instead allocate a TTY, it hangs until I press Ctrl+C: ssh -tt ${HOST} eval "...
0
votes
0answers
9 views

How do I make pre-named virtual serial ports on bootup in debian linux?

I am making a TTY re-director so I can read data as its coming in and out of a serial port. I know I can use socat to create virtual serial ports, but the question is how do I make sure that the names ...
0
votes
0answers
106 views

Run qemu on separate tty (and X server?)

Is it possible to start a VM on a separate tty automatically, so I can switch between the host and guest through ctrl-alt-F{1,2}? I know I can start an X session manually, but I'd like to automate ...
0
votes
0answers
377 views

How to access different tty session

I wanted to know if there is any possibility of login to other tty sessions. Someone has mistakenly changed the root su password. One of the session is already logged in as root. So any possibility ...