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

learn more… | top users | synonyms

2
votes
0answers
82 views

Controlling ppp's chat buffering

I looked at the ppp chat source and it uses putchar to write to the device. When PPP is run over a line discipline like n_gsm, which multiplexes a tty via the GSM 07.10 protocol, a lot of extra data ...
1
vote
3answers
483 views

What's the difference between these ways of accessing the shell?

From what I know it seems that there are many ways to access the shell on Linux. So far the methods I know are: To use a program such as Terminal or Konsole To use the shortcuts CTRL + ALT + F1-6 To ...
38
votes
2answers
25k views

Linux: Difference between /dev/console , /dev/tty and /dev/tty0

On a Linux system, what is the difference between /dev/console , /dev/tty and /dev/tty0 ? What is their respective use? How do they compare?
4
votes
2answers
761 views

Why are there so many virtual terminal devices?

I've been reading the Advanced Linux Programming book and it mentions about virtual terminals which, if I understood it correctly, it is a Linux-specific feature (not in Unix) to allow multiple login ...
2
votes
1answer
163 views

Does each user get his/her own tty(s)?

I put a simple echo command in a CLI tty by user1 expecting it to reach user2 who is logged in a separate tty. echo "Hello, world!" >> /dev/tty5 I expected user2 to get the echo message but ...
7
votes
1answer
212 views

What should interactive shells do in orphaned process groups?

(Re-posting in unix per the suggestion in http://stackoverflow.com/questions/13718394/what-should-interactive-shells-do-in-orphaned-process-groups) The short question is, what should a shell do if it ...
4
votes
2answers
384 views

How can I launch applications from 2 ttys on launch?

I've currently got 2 ttys logging in automatically, but I need to launch a node script from one and a C program from another as soon as the device loads. The device is a Raspberry Pi running ...
12
votes
1answer
676 views

Screenshot of X from tty

Using Xvfb I can launch an application and take a screenshot. What I'm wondering about is how to capture from an existing (dormant) X session. Say from tty or over ssh. From what I understand ...
3
votes
2answers
197 views

Hash symbol on a teletype

My issue is a bit unusual, so I want to provide a short background. I was looking at old winners of the International Obfucated C Code Contest, and came across an entry written for the PDP-11 (the ...
3
votes
1answer
291 views

Preserve scroll on Linux console switch [duplicate]

Possible Duplicate: How do I ensure that a terminal remains scrollable? I've configured really sweet keystrokes for switching between, and scrolling in, a tty (the Linux console). But, as ...
3
votes
0answers
250 views

stty before login

We've got some HP-UX Integrity VMs that are difficult to log in to at the console because the KILL character is set to @, which also happens to be a component of some passwords. Now I know we can get ...
2
votes
0answers
841 views

Ctrl-Alt-F1 not working from X

I have a system running Debian 5.0 that doesn't respond to Ctrl-Alt-F# (1-6) Check if Ctrl, Alt, F1 and F2 are intercepted correctly... $ DISPLAY=:0 xwininfo xwininfo: Please select the window ...
3
votes
2answers
276 views

why slight delay after failed login in tty [duplicate]

Possible Duplicate: Why a wrong password gives a big delay Whenever I mistype my password when logging in in a tty, I have noticed that I have to wait for a second before I'm able to log in ...
1
vote
1answer
251 views

Need help on setting up tty autologin on FreeBSD

I was trying to setup tty auto login for FreeBSD, I copied the P|Pc|Pc part and made a change: Pcal console:\ :al=root:ht:np:sp#9600 And modify the tty for ttyv0: ttyv0 "/usr/libexec/getty Pcal" ...
2
votes
1answer
161 views

Security drawbacks of disabling tty password check

I found that, in /etc/inittab, this modification (-a username) for the user u disables the login/password check for all tty:s: 1:2345:respawn:/sbin/getty -a u 38400 tty1 2:23:respawn:/sbin/getty -a u ...
1
vote
1answer
148 views

How to disable messages in unix if mesg and chgrp not allowed?

This is one of my questions for my exam .. We are not supposed to use mesg y/n for this but we should effectively avoid mesgs along with the problem of not being able to change groups.
1
vote
1answer
316 views

Graphics on boot like the backtrack linux or the Gentoo live DVD after you press alt+F1 on boot

Would like to find a good tutorial on how to make a boot splash similar to the one on backtrack {3,4,5}. It has all of the terminal text that you would see on a normal boot up but it has a nice ...
5
votes
1answer
1k views

Cannot switch to TTYs or back

I just upgraded to Mint 13 - KDE x64 I am unable to switch to ttys by using the CtrlAltF1 .. F6 keys. The gettys are running and I can switch to the terminals with the sudo chvt 1 command. I have ...
0
votes
2answers
378 views

is it possible to run job in foreground after user logout

I have some job to run which need be attached to terminal (or in foreground). The job is run in remote servers, and needs keep running after the users logout. I am aware of vnc server, however, I want ...
4
votes
2answers
10k views

Can I change the font of terminal?

I have a Un*x OS installed without desktop, I wonder if it is possible to change the font of terminal.
1
vote
1answer
208 views

Configuration for either detecting already running xsession or only auto-logging in once

My goal is an Arch based HTPC which on one tty runs XBMC and on another runs a minimalistic desktop (mainly for web browsing). I haven't yet started on the XBMC slice of the pie, but at the moment it ...
3
votes
3answers
2k views

cat corrupts serial port data

I have an application which writes some bytes to a serial port. When I do cat /dev/ttyS0 to see what is being transferred, I find that the data is corrupted by the cat command. Is there any other way ...
5
votes
3answers
463 views

Construct a command by putting a string into a tty

I managed to do this echo -n "command" > /dev/tty1 The letters appear, and the cursor moves, but they are "ghosts" - if you hit enter, nothing happens (they are not in stdin). Edit: In the ...
3
votes
2answers
404 views

Print console colors

Wrote a bash function to display the console colors. But, it seems some of the colors are not possible to show that way! (?) Also, note the strange "bright black"! (Note: The below screendump is of ...
12
votes
2answers
334 views

Possible to configure Login TTY over Audio device (Morse code or similar)?

One of the most miserable aspects of my day job is the need to occasionally investigate problems with machines scattered in remote locations all over the world that don't have network access to the ...
2
votes
1answer
92 views

Make 'CTRL-/' behave the same in vtty and xterm

When I press Ctrl+/ in a graphical terminal (e.g. xterm) I get "undo". However, in a virtual terminal (e.g. Ctrl+Alt+F1) I get "backspace". In practice I run into this when I'm using emacs in a ...
8
votes
1answer
1k views

How do I use a font in .ttc format as the console font?

I rather dislike the available tty fonts and would rather use Menlo, which is what I use in OS X's Terminal. Menlo is in a .ttc format, but (from the contents of /usr/share/consolefonts) Linux seems ...
2
votes
3answers
822 views

Pasting binary data into a Unicode terminal

I need to be able to paste binary data into a terminal. For some reason, every byte outside the ASCII range (0x80-0xff) is pasted as the same three byte sequence 0xef 0xbf 0xbd. For example: $ echo ...
30
votes
2answers
2k views

Can a terminal emulator be as fast as TTY 1-6?

I've been trying various terminal emulators lately, from the built-in gnome-terminal, aterm, xterm, wterm, to rxvt. The test I've been doing is in this order: Open up a tmux window with 2 panes The ...
6
votes
2answers
2k views

Get ssh to forward signals

I want to be able to send signals (SIGINT is the most important) through ssh. This command: ssh server "sleep 1000;echo f" > foo will start sleep on server and after 1000 seconds it will put ...
6
votes
2answers
5k views

Poor TTY resolution with nVidia driver

The resolution of the TTY1-6 is poor ~ 640×480 Ubuntu 11.10 | Grub2 | nVidia | NVIDIA GT215 Board I went through the process on this site and after the edit the GRUB menu appears in the correct ...
9
votes
2answers
3k views

set baud speed for tty

How do I set the baud speed for a specific tty (in this case a serial port)? I tried using stty -F /dev/tty.iap ispeed 19200 But get the error Invalid argument for every speed I try (2400, 4800, ...
1
vote
0answers
352 views

LMDE, Graphics with i915 and KMS: DVI not working on tty consoles

I already asked the same question at Super User, but I think it's better suited here, sorry: I have some problems getting the DVI output of my onboard Intel graphics device running when using KMS. ...
3
votes
3answers
825 views

X11 forwarding through SSH

I have been playing around with X11 forwarding the past few hours and so far I've managed to forward my desktop pc's X Server to my laptop, using X11VNC as server and X2VNC as client. X2VNC uses ...
4
votes
1answer
469 views

Disabling or changing console switching keys

For some reasons on my Ubuntu 11.04 Natty running Linux 2.6.38-13, with an Italian layout for the keyboard, the keystrokes AltFx switch between virtual consoles (instead of the normal CtrlAltFx ...
9
votes
2answers
1k views

Rebinding/disabling CTRL+ALT+F#

I have an application that binds CTRL+ALT+F7, but my linux machine seems to catch the keystroke. Is there a way to rebind/disable this key? A recompile of the kernel is an acceptable answer. The ...
4
votes
3answers
946 views

Enabling Numeric Keypad

I have trouble with the numeric keypad (NumLock keys) being unusable while typing. While I don't think it's GUI specific, this happens both in Gnome and KDE. Sometimes it works in TTY, other times it ...
3
votes
0answers
75 views

any way to un-disown / re-attach an interactive process to the tty? [duplicate]

Possible Duplicate: How can I disown a running process and associate it to a new screen shell? In bash is there an opposite of disown, that is, to re-attach a process I've accidentally ...
6
votes
3answers
2k views

Why does awk do full buffering when reading from a pipe

I'm reading from a serial port connected to a gps device sending nmea strings. A simplified invocation to illustrate my point: $ awk '{ print $0 }' /dev/ttyPSC9 ...
3
votes
1answer
485 views

Is /sbin/sulogin safe?

Lately my machine's authentication system broke twice: once because I messed up with PAM/LDAP and the other one because I messed up with /etc/passwd or /etc/shadow. In order to recover things I had ...
2
votes
2answers
1k views

how to re-enable input on a serial console

I have an old router which runs Linux and I'd like to have a serial console on. This used to work fine, but after a firmware update, I can now only get output on the console and cannot give any input ...
4
votes
4answers
1k views

Graphics in TTY

Something has come up which demands me to work only in command line. My primary job is programming (mostly in Fortran and Octave) and I need to display plots. As a lame example: I open octave and ...
5
votes
1answer
384 views

Why does reading from two connected pty's cause an infinite loop?

I want to fake a gsm modem for testing a program. I want the program to send AT-codes to me and that I can answer it back, kind of a VirtualSerialPort. But for some reason the data written from the ...
4
votes
2answers
2k views

How to start plasma-desktop from SSH-console on desktop session?

I killed KDE's plasma-desktop on a openSUSE 11.2 machine, because it was eating too much CPU. How can I restart it via SSH or another tty session? On the affected computer there is only shown a ...
3
votes
3answers
514 views

Difference between the terminal file and the terminal screen

I recently posted a question about terminals and this seemed like it deserved its own question. If the tty which would be synonymous with terminal, is just the device driver/device file itself, what ...
3
votes
1answer
535 views

Outputting to the screen on an ARM Mini2440. Currently just has a login prompt

I have a mini2440 ARM computer with a small screen and currently have it booting Debian Squeeze. I'm communicating with it over a serial connection using minicom. When the thing boots it gives me a ...
4
votes
1answer
2k views

Writing to stdout except for output redirection C

I have to make a simple app for school. I have to write arguments one per line on the terminal, and return on stdout the user choices. For example, I write cat my_app main.c main.h, if the user ...
3
votes
1answer
2k views

Change the number of generated /dev/tty devices

I'm building an embedded Linux system, based on Gentoo. Using udev, all tty devices are probed with a PROGRAM stanza to determine if they are a modem. Right now the system boots up with 64 /dev/tty*. ...
14
votes
6answers
42k views

How to connect to a serial port as simple as using SSH?

Is there a way to connect to a serial terminal just as you would do with SSH? There must be a simpler way than tools such as Minicom, like this $ serial /dev/ttyS0 I know I can cat the output ...
4
votes
4answers
403 views

ls command operating differently depending on recipient

How does commands like ls know what its stdout is? It seems ls is operating different depending on what the target stdout is. For example if I do: ls /home/matt/tmp the result is: a.txt b.txt ...