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
373 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
604 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 ...
0
votes
2answers
424 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 ...
5
votes
1answer
1k views

How do I make Ubuntu start fbterm in the tty on startup?

When I was testing openSUSE about a week ago, I noticed that tty1 (yes, just tty1) had the openSUSE background. I want to do the same in Ubuntu. I found a way using fbsplash. I'm not too keen on that ...
4
votes
1answer
1k 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
2k 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 ...
1
vote
1answer
70 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
764 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
57 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
301 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 ...
1
vote
0answers
145 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
0answers
759 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
0answers
255 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
119 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
243 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 ...
1
vote
0answers
142 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
124 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

Booting with KDE and i3 in different ttys

The other day some dude at a LAN party showed me the ctrl+alt+f* trick to switch tty's, and I thought it was totally awesome (I didn't know that!). Another person introduced me to i3 (The window ...
0
votes
0answers
66 views

OpenBSD Change tty background color

Is it possible to change the background color of one or all ttys without installing any additional packages? Using a config file, or environment variable? I tried changing the text mode resolution, ...
0
votes
0answers
56 views

How to switch desktop layout from tty before startx?

I would like to login with the same user in another tty, but each tty should have different desktop environment like KDE and LXDE. How can I use tty to start X server by providing the desktop type?
0
votes
0answers
137 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 ...
0
votes
0answers
59 views

Injection Keystrokes in a /dev/tty

I have a project where I need to simulate Keystrokes in a /dev/tty. Most stuff is working using the TIOCSTI ioctl, even some special keys can be simulated using escape sequences. Now im at a point ...
0
votes
0answers
59 views

Legacy BSD-style /dev/ttyp's instead of /dev/pts/9 in Debian?

I need to use an old database that only accepts connections from legacy BSD style pseudo-terminals /dev/ttyp's or /dev/tty's. It does not recognise /dev/pts/9 style PTYs. Connections via SSH. ...