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

1
vote
1answer
13 views

linux - use wmctrl from tty1

When I try to run wmctrl (e.g. wmctrl -l) from a tty outside of X (e.g. tty1), I get "Cannot open display." I have tried setting the $DISPLAY and $XAUTHORITY variables to the values I get from a ...
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 ...
2
votes
0answers
28 views

How to reset tty after exec-ed program crashes? [migrated]

I am writing a Ruby wrapper around Docker and nsenter. One of the command my tool provides is to start a Bash shell within a container. Currently, I am doing it like this: payload = "sudo nsenter ...
0
votes
3answers
48 views

Accidentally typed password on logon prompt in Ubuntu TTY, is it stored?

Note: This is similar, but not identical to the question on how to handle passwords typed into the bash prompt. On my Ubuntu 14.04 machine, I opened VT1 using Ctrl+Alt+F1 and mistakenly typed my ...
3
votes
2answers
207 views

format stdout as multicolumn text

I'm trying to take some single column data and display it in a tty as columns, much like ls does. Basically, you can think of this as trying to take the output from ls -1 and make it look like the ...
0
votes
2answers
362 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 ...
0
votes
2answers
404 views

Linux: Start tmux inside fbterm on login

So here's what I want: On every tty login, fbterm starts. It gives me a better resolution than the linux console, has working UTF-8 support (I'm sure it's entirely my fault that the linux console ...
2
votes
4answers
7k views

How to use sudo from within Windows GUI clients bypassing tty

I need to copy files via ssh but I am getting permission denied. How can I log as a root by windows clients such us FileZilla/WinSCP? I try execute command: sudo su, but I am getting error: You ...
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 ...
2
votes
1answer
310 views

How to cat <<'EOF' arbitrary text data from clipboard

I want to paste some text into a terminal and save it to a file without using an editor, but just 'cat'. But too long lines or tabs in text make it impossible to do so with a simple command like "cat ...
0
votes
0answers
54 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, ...
8
votes
1answer
11k views

Console commands to change virtual ttys in Linux and OpenBSD

In Linux one presses Alt-F1, Alt-F2 etc to change virtual ttys. In OpenBSD one shall use Ctrl-Alt-F1 etc instead. My question is if there are console commands for these two operating systems that ...
0
votes
1answer
34 views

Do /dev/tty and current /dev/pts/X are the same things?

Writing file to /dev/tty and /dev/pts/7 in this case results that it is printed in console: $ echo hello > file.txt $ cp file.txt /dev/tty hello $ tty /dev/pts/7 $ cp file.txt /dev/pts/7 hello ...
4
votes
5answers
6k views

Linux: Copy/paste in TTY

I am looking for a way to copy and paste within a TTY. I only have a touchpad, and using it with gpm is a pain. The only possibility I can think of is to use "screen" but even after having remapped ...
-1
votes
1answer
22 views

Is this possible to redirect the tty output to two targets?

I would like to let the tty to have two outputs. Is this possible to let the output display on two terminal? I would like to have one terminal (on Linux), which is I am working on, and ...
1
vote
1answer
59 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 ...
0
votes
0answers
48 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
88 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 ...
1
vote
0answers
127 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 ...
0
votes
1answer
47 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
0answers
53 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
1answer
224 views

How to resize tmux panes inside tty

I'm not sure if I used the right term, but by "tty" I understand the console that you can switch to using ctrl+alt+f2 key combination. echo $TERM points to linux. Anyway, when I enter the tmux mode I ...
1
vote
0answers
653 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 ...
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?
0
votes
0answers
52 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. ...
2
votes
3answers
1k views

Howto start an interactive script at ubuntu startup?

Based on Ubuntu core 12.04, I have prepared a bootable DVD. After booting (to console only), I can login as a user and start a script for installation of an embedded device: sudo install_script In ...
1
vote
3answers
1k views

How to reset a broken TTY?

My Slackware TTY can be broken easily by running: cat some_binary_file After the command, the entire TTY will no longer display readable characters but still responds to keyboard events. Even if I ...
2
votes
3answers
348 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?
1
vote
0answers
226 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 ...
0
votes
0answers
75 views

Root has no permission on virtual console screen devices

Even being root I can't do the following: # cat /dev/vcs1 cat: /dev/vcs1: Operation not permitted And the rights are set correctly: # ls -o /dev/ crw-r--r-- 1 root 7, 1 Aug 5 22:00 vcs1 ...
0
votes
1answer
102 views

Run hardcopy on a specific screen window

I'm trying to run screen to connect to a serial port. I want it to run a command, and then every 60 seconds I want to use hardcopy to write which is shown to a log file. So far I've done this: ...
3
votes
3answers
2k views

Is there a way to alter the colors used in TTY consoles on Linux?

By "alter colors", I mean something like change black from #000000 to #111111, and by "TTY console", I mean what you get when you do Ctrl+Alt+F1 from X11, not a terminal emulator like xterm or urxvt. ...
1
vote
1answer
108 views

Where can I find documentation about GNU/Linux TTY formatting

On gnu.org site there is GNU Head that can be display on terminal it have XTerm compatible (Normal documented ANSI Codes) but it also contain TTY version (it work on Cygwin, didn't test in XTerm or ...
1
vote
1answer
229 views

How can I make my computer without an X-server stop booting into TTY 7 and boot directly into TTY 1?

I recently disabled the graphical login manager on my Ubuntu and started using startx. But when the computer turns on, instead of giving me a login prompt in one of the TTYs (I think that's how you ...
2
votes
2answers
156 views

How to enter tty1-6 in Linux in virtual-box in Linux host

I installed a virtual box in my Ubuntu host, and then installed another Ubuntu on my virtual box. Everything is alright except when I try to enter tty1-6 in the virtual one, I just enter tty1-6 in my ...
1
vote
1answer
191 views

How to combine the tee command with interactive scripts to log the results?

From some time usually record long outputs with tee to later less them, this is awesome to review configure and make outputs and such, but fails when the script or program is installation like, asking ...
1
vote
2answers
1k views

Linux: can't get out of Ctrl-Alt-F7 with no X server running

I'm currently logged in (locally) to a machine and was running in a TTY session without having started an X server. I accidentally hit Ctrl-Alt-F7 bringing me to where the graphical shell would be if ...
1
vote
1answer
2k views

How to restart ttyusb*

I have two devices that are continuously feeding data through ttyUSB0 and ttyUSB1. I have php scripts that are using this data. The problem I am running into is that sometimes the feed just kind of ...
2
votes
2answers
289 views

Screen run command, detach and get output

I am trying write a script which connects and runs command on /dev/ttyUSB0 after that gets the output. screen -d -m 'SCREEN COMMAND' -L /dev/ttyUSB0 But this does not create an output file. How ...
1
vote
1answer
728 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 # ...
6
votes
2answers
487 views

Can I login to multiple terminals with the same user safely on Linux?

By terminals I mean the ones you can switch to using Ctrl+Alt+F1-F6. I know I'm able to login multiple times but does this have any side-effects?
5
votes
1answer
1k views

X on one monitor, a bare, tty terminal on another? (linux)

The graphics card on my computer has inputs for (at least) two separate monitors. I have one monitor that is high resolution, and I like using it for X (anything graphical). My other monitor, however, ...
1
vote
2answers
332 views

How to execute a command under Linux after booting without a TTY session?

I'm creating a kiosk PC at the moment and I'm wondering if this is possible: When the PC is started and Linux Debian boots and I wonder if it's possible to start the command startx respectively xinit ...
2
votes
1answer
1k views

How to read data from USB port

I have a CANbus to USB adapter (Softing CANusb) that we are using for a project (see attached picture bellow). This device has Windows drivers and a Windows API in order to access the data in the CAN ...
2
votes
1answer
891 views

“stdin: is not a tty” message from scp

I got this message when I copy file using scp to CentOS server "stdin: is not a tty". What it means and how I make it go away? The transfer is ok.
1
vote
0answers
127 views

Android Development - Use of RealTerm or other program to directly manipulate and monitor radio/modem to debug Android Telephony [closed]

I and others are desperately trying to port Android 4/ICS/JB/CM10.1 from the LG Optimus 2X/P990 to the LG G2X/P999 cell phone but we haven't been able to get the phone's Qualcomm mdm6600 radio/modem ...
2
votes
3answers
559 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 ...
1
vote
0answers
111 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 ...
0
votes
1answer
147 views

Running Emacs on Multiple TTYs in screen

When working with EMACS over SSH, is there any way to spawn a new frame of the same emacs session on a different terminal? In my use case, I have screen running, so I have multiple terminals, and can ...
12
votes
4answers
11k views

TTY with 256 colors?

With URxvt and xterm it is possible to use a virtual terminal supporting 256 colors instead of only eight. Since my Intel GMA graphics card is well-supported by the KMS framebuffer driver, I am ...