A representation of a device that asynchronously transmits and receives serial data.

learn more… | top users | synonyms

0
votes
2answers
67 views

How do I run a command on a TTY from a SSH session?

Does anyone know of a way that I could run a command from my ssh session and have it display on tty1? It seems like I could do that like: script command >> /dev/tty1. However, if I were to do ...
4
votes
4answers
147 views

Login into a GNU/Linux distribution is taking too long

So, When I try to login with my username and password (in tty), and insert a wrong password, I need to wait around 5 seconds for the system to tell me that the password is wrong. Why the validating ...
6
votes
1answer
34 views

How to use agetty from the command line

Is it possible to use agetty from the command line? I tried the command sudo agetty -s 34800 tty8 linux but it returns after a few seconds and tty8 is not open. Is it the expected behaviour? Also, ...
0
votes
0answers
9 views

Where can I find more information about /dev/pts/*, /dev/ptmx, tty and pseudo terminals [duplicate]

As in the title I what to know more about terminals and pseudo terminals, how they are created and how to create my own terminal emulator. man for pts and ptsname show some hints, but I want to learn ...
1
vote
1answer
45 views

Block TTY echo to display

I have a minimal Ubuntu as a Linux server. It starts many scripts on startup that is ok but I want to disable tty1 to echo everything to display When I start this server a login promt is presented on ...
0
votes
1answer
91 views

Bootloader fails to load linux kernel

I upgraded linux kernel from 2.6.32 to 3.0.7 but now bootloader isn't able to load the kernel image. Specifically, boot procedure freezes after: Starting kernel ... Uncompressing Linux... done, ...
0
votes
1answer
45 views

How can I print out the current keybindings in Linux/Debian? [closed]

How can I print out the current keybindings in Linux/Debian ? I tried xmodmap -pp and got the response: xmodmap: unable to open display ''
0
votes
0answers
21 views

Which getty should I use for /dev/tty1 - tty6 text consoles in linux, agetty or something other

I'm configuring LFS linux and I want to select right "getty" for /etc/inittab to handle text consoles /dev/tty1 - /dev/tty6 (the text consoles handled by linux kernel, with output on first display). ...
0
votes
0answers
11 views

Can slattach control a serial WiFi device?

I have a Wi-Fi device which is driven by AT commands over a USB-Serial connection. I am able to successfully make a serial connection to the device and set the SSID, PSK, obtain an IP address, and do ...
1
vote
1answer
28 views

Buffer each line locally on a serial terminal

I use kermit to connect to a device over serial. The device is quite "dumb" and doesn't have any fancy shell. It is really just receiving commands over serial and sending outputs back over serial. ...
2
votes
2answers
44 views

Changing TTY font to a non-default font

I found two ways to change the TTY font: dpkg-reconfigure console-setup editing /etc/default/console-setup Either way I'm limited to the fonts in /usr/share/consolefonts (I'm using Debian). How ...
13
votes
3answers
257 views

What are the responsibilities of each Pseudo-Terminal (PTY) component (software, master side, slave side)?

I am trying to figure out how a tty works1 (the work-flow and responsibilities of each elements). I have read several interesting articles about it, but there are still some blurry areas. This is ...
1
vote
1answer
26 views

Connect to pseudoterminal (same user) from lost session [duplicate]

I was running several large processes at once, and my PC froze (I suspect due to heat, its a laptop, and the fan was at maximum for several minutes just prior to locking up). The mouse cursor moved, ...
0
votes
0answers
53 views

rs232 to usb not working

I also asked this question on AskUbuntu but there nobody comments on it I have a konig rs232 serial to usb adapter (no FTDI chip), but when I try to connect to a cisco switch/router (via Putty, ...
2
votes
1answer
42 views

Is monitoring rsync with a pts device possible?

I have a rsync backup script, and I was wondering about methods of monitoring it as it runs. I could have it save a log and use watch and tail, but I had a more elegant solution in mind that might be ...
1
vote
1answer
59 views

Track down process that has notty

I have a Linux server (Red Hat 2.6 kernel) which had a spike in load due to an Rsync process which seems to have forked many times, but the process was run by rsyncuser@notty I didnt see any cron job ...
1
vote
2answers
37 views

Is there a way to add some info about time/date to TTY prompt?

If you have a graphical display manager, you can notice date and time there, but I haven't seen such a thing when it comes to TTY. If I want to check the current time (or date) I have to log in. It's ...
1
vote
2answers
114 views

How to change the default TTY after boot?

Normally when system starts you have all output printed on the TTY1, and that's ok, but I start X-server via startx and achieve this by the following lines in the ~/.profile file : if [[ $(tty) = ...
2
votes
0answers
39 views

tty blinking cursor not at insertion point

I have an Ubuntu 12.04 system where I, at reboot, login a root. This morning I did the things I had to and thought about running apt-get -y upgrade I started typing this but before pressing Enter I ...
1
vote
1answer
105 views

How can I pipe commands to any terminal?

I often use more than one terminal (or terminal emulator) at a time; and while in X I can copy-paste commands, besides not being very practical, it obviously does not work on the real TTY. The first ...
0
votes
1answer
54 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 ...
3
votes
2answers
62 views

Why does the Linux virtual terminal support only 16 colors, by default?

Why does the Linux virtual terminal support only 16 colors, by default? Is there a particular reason for this?
0
votes
1answer
99 views

Linux TTY Colours

I've had this issue for a little while now on a few machines, but never thought to ask anyone. Upon installing a new laptop the other day, and using the virtual terminal for a bit, I noticed that ...
2
votes
0answers
116 views

How can I make the TTY use the appropriate charset?

Note: forked of this per recommendation here. While I got the X keyboard layout right on my own after I fixed that stupid typo, I still can't set the console charset, key map, font map, or whatever ...
1
vote
0answers
116 views

Only met by a tty “login” prompt when booting Mint

I've installed Linux Mint 11 Katya (dual-booting with Win7) on my PC. After some problems with booting, I decided to use NeoGrub to add a Grub-based bootloader, configurable from within Windows, to ...
3
votes
1answer
90 views

USB device to be detected at the “same” /dev point always?

In Linux (actually I'm with CentOS v6.5), whenever I plug in my USB Terminal/Character Device (some kind of USB Adapter) for the first time (after booted), it is detected at: /dev/ttyUSB0 But ...
2
votes
2answers
82 views

Weird escape sequence

I need help identifying what this escape sequences represents. I see this sequence is autogenerating on my server's console, but I'm not sure what is the reason for that. Escape sequence: ^[[[D I've ...
2
votes
0answers
90 views

Trying to understand how TTYs and PTYs work in CentOS 6.5? [duplicate]

I started to dig into the whole Linux pty and tty hell. I'm trying to understand how it works here in Linux so I was reading quite a lot of articles that covered this topic. So far I know: TTYs ...
2
votes
1answer
124 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 ...
2
votes
1answer
79 views

How to connect to virtual /dev/ttyX from same machines pts terminal?

I want to get output/input from /dev/ttyX console (normally accessible directly using keys ctrl+alt+FNr, where Nr is number of /dev/ttyNr: ctrl+alt+f4 access /dev/tty4). I want to view and control ...
3
votes
1answer
97 views

What is the maximum allowed number of TTY, is it defined anywhere in kernel headers?

What's the maximum allowed number of TTYs? I found pty.max, but is there anything similar for TTYs? Or is it defined as a fixed value in kernel headers, I couldn't find that
11
votes
2answers
370 views

Can the empty spaces/background in a terminal be replaced with a random(but pretty) pattern of ASCII characters?

Context and Question There are many ways to colorize the terminal and shell environment. The output of individual commands, such as ls and grep, can also be colorized. Not directly related but ...
1
vote
0answers
254 views

Plymouth splash not working and causing VT problems

Since I tried installing Plymouth (boot splash), I'm facing two problems : It's not working My Virtual Terminals (tt1 - 6) aren't working anymore Here what I did : Added plymouth hook (after ...
3
votes
1answer
62 views

How to switch tty with a script / cronjob

Is it possible to switch the current tty/vt with the help of a bash script or a cronjob? I only know the physical keyboard input "Ctrl-Alt-Fx". I would like to show two virtual desktops at different ...
1
vote
1answer
46 views

Capture textual snapshot of pseudo terminal

My question is related to Keyboard and Console, but I want to do it for an arbitrary pseudo terminal, and not just the built-in Linux ones. Also, I'm not interested in a stream, I just want the ...
3
votes
4answers
121 views

How do you find what keys the “erase” and “line-kill” characters are in Ubuntu?

I'm new to Unix and have bought today a copy of "The Unix Programming Environment". I'm trying out the stuff from the book. But some of them are not working as expected like : To kill a line and ...
1
vote
3answers
2k views

sudo: no tty present and no askpass program specified

I have a perl script that I fork from another script that I launch from a web browser via mod_perl. The forked script (which ends up running as apache) needs to sudo service X stop as part of a ...
2
votes
1answer
137 views

accessing stdin/stdout of a process started in another tty

I logged in to my linux physically(say tty1) and started a process that watches stdin for commands and has some stdout-put. How can I access/use this process from a SSH session?
5
votes
1answer
226 views

Return to X session after Ctrl+Alt+F1

What is the command to return to the graphical desktop after entering the terminal mode with Ctrl+Alt+F1? I need it for operating my Raspbian.
3
votes
0answers
104 views

No Login on created on tty2 to 6

On my Debian Linux no Login is possible on terminals 2 to 6. Login on 1 works fine, xorg-session with XDM and awesome wm works, too. The Error Message shown on these 5 screens is: ...
6
votes
2answers
344 views

Detect if running in a virtual terminal?

I'd like to autologin to tty1 on login and then use vlock to lock it. How can I detect from Bash if the current terminal is a console virtual terminal (e.g. tty1), so that I can put the vlock line ...
4
votes
1answer
98 views

Use case of providing file-like API to terminal/console

It was explained in this Stack Overflow thread that each logical terminal has a "pseudo-terminal", and that writing to one: $ cat some-file.txt > /dev/ttys002 will cause the data to appear in ...
5
votes
1answer
670 views

Read what is written to /dev/tty*

How can I read what is written to /dev/tty*(* = 0 - number of tty)? I tried sudo tail -f /dev/tty1 on one terminal(X) and then sudo cp .emacs /dev/tty1 from another. X didn't show the the content of ...
2
votes
1answer
58 views

How to restore from a scrambled screen?

My screen is scrambled while reading some unexpected chars, It happens in a local tty, so logging out won't help. Any ideas? Hopefully I don't have to reboot
0
votes
1answer
64 views

Making a tty9 on a openvz VE

I am in a virtual environment. I am installing Asterisk and freepbx. They use this script amportal and it has a requirement to check for tty9 there is alot of mention on folks running this in a VE ...
5
votes
2answers
273 views

Best way to set serial port speeds on boot?

I've got instruments hooked up to /dev/ttyS1 through ttyS9 on a machine running Debian Wheezy. The various instruments communicate at various speeds. Is there a better way to set the baud rates than ...
3
votes
1answer
506 views

sudo askpass: ask from other tty

Context I want to setup rsync backups of my server, so I run the following command rsync -r -e ssh --rsync-path="sudo rsync" rsyncuser@example.com:/ /backup/ Ideally, that command would ask my ...
2
votes
2answers
269 views

How can I replace a tty using getty with qingy on ubuntu 12.04 or later?

Qingy is a getty replacement. I'd like to use it for a tty terminal on Linux Mint 15 (in hopes of getting tmux to get proper 256 colors in tty which fails with fbterm) which means replacing getty. ...
2
votes
0answers
86 views

FreeBSD gettytab configuration

I have a serial port on my system which is named cuau3 under FreeBSD. I want to change the properties of this port, I can change the device's speed using /etc/ttys and /etc/gettytab files, but I can't ...
1
vote
0answers
33 views

How to get 256 color support in a login shell TTY? [duplicate]

I want to experiment with a fully text-based environment, however, the only thing that is stopping me - is getting 256 colors so my Vim color schemes could work perfectly. When I enter a TTY by ...