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

learn more… | top users | synonyms

1
vote
2answers
4k views

How to set default console keyboard layout in Arch Linux?

Whenever I reboot my computer I have to set the keyboard layout in a console again with loadkeys. Is there a way to change the default keyboard layout that is loaded everytime the computer boots?
4
votes
1answer
118 views

Can I access X11's clipboard from tty1-6?

Sometimes, when I'm running on battery and don't need a window manager, I'll log into tty1, fire up fbterm and Vim and work. Later, if I need the window manager, I'll use the log in GUI but switch ...
10
votes
2answers
212 views

Is there a way to mirror USB outputs?

I'm currently writing a program for a project. It is for a braille reading system where I have a braille display connected via USB that is controlled by a program called brltty. One of the ...
1
vote
2answers
145 views

/dev/console points to tty0?

I've been trying to understand the /dev/console device, but there are a few things I'm not clear on: What is the purpose of this device? From what I can gather it's just a place for the kernel to ...
3
votes
2answers
129 views

Reading from a serial interface

I have a serial device running which I need to read data from(I have absolutely no control over the device itself) except reading its output; using hyper terminal in Windows I am able to detect a ...
0
votes
2answers
37 views

How to launch a program in text only mode if it support silent running

I have got a java program, which support text file input and auto running, can i put it in background running without GUI ? It prompt cannot set display. while there is no concern to view the ...
0
votes
1answer
82 views

Virtual TTY jumps to the next on launching from the Openbox menu

When I launch a terminal from my Openbox menu my virtual terminal TTY jumps to the next CtrlAltF12 slot. It seems that this problem appeared after I wanted some more than 7 TTYs and added some to ...
5
votes
3answers
3k views

How can I hook on to one terminal's output from another terminal?

I need to hook onto output of currently running terminal (tty1) from virtual terminal and capture it (running X server). I'm pretty sure such a thing is possible by simpler means than debugging ...
2
votes
1answer
984 views

Getting no tty present and no askpass program specified when using git over ssh

I'm trying to push a git commit from my laptop to my server but keep getting the following error message: remote: sudo: no tty present and no askpass program specified To ...
1
vote
1answer
183 views

What are TTYs >12 used for?

Related to TTY numbers, it looks like there are 64 TTYs (find /dev -name 'tty[0-9]*' | cut -c 9- | sort -n | tail -n 1 and documentation). tty0 is the current virtual console, Ctrl+Meta+F1 reports ...
0
votes
1answer
130 views

What are the different virtual TTY numbers used for?

It seems by default (at least on Ubuntu, but I think I saw the same on other distros) there are virtual TTYs 1-6 for text login, 7 for GUI login, and 8 upwards are unused or at least non-interactive ...
2
votes
1answer
124 views

How to rebind XON/XOFF keys?

I put stty -ixon -ixoff in my .bashrc so I can use Control+S to search the bash history forward (here there is a text about it). However, I sometimes used Control+S to really send the XOFF signal to ...
1
vote
2answers
417 views

Invoke a command/script disconnected from the controlling terminal?

I'm investigating the behaviour of a script that is normally run as an automated process (e.g. cron, Jenkins). The script can (eventually) invoke commands that behave differently (seeking user input) ...
0
votes
1answer
285 views

How to change keyboard speed in the Linux console? [duplicate]

When I press Ctrl + Alt + F1 the desktop environment disappears and a terminal window appears. Pressing Ctrl + Alt + F7 brings me back to DE. This terminal is useful when the DE hangs for some reason ...
6
votes
2answers
2k views

Arch Linux how to close tty

I've opened several ttys and I don't know what key combination to use to close a tty. I'm using Arch Linux.
8
votes
1answer
9k views

Is it okay to disable requiretty?

I'm trying to set up a deploy script using Capistrano At a step cap deploy:setup script is connecting to my server and trying to run commands that create directories. Then I see an error: msudo: ...
2
votes
2answers
2k views

Endless data loop from dev/ttyUSB while sending AT commands

I have problem sending AT commands to my USB modem. At first I tried php-serial class, but when i was reading data, I got endless loop with strange data. Then I tried to debug problem and opened putty ...
1
vote
1answer
351 views

Start IceWM from the command line *and* get sound working?

So, I hate window managers. I hate them all. My current distribution is Ubuntu 12.04. Here is my /etc/init/lightdm.conf: # LightDM - light Display Manager # # The display manager service manages ...
1
vote
1answer
252 views

Can I use xterm to read/write to a pts without spawning another process (e.g a shell)?

I have a process which reads and writes to a pseudo terminal. I would like to open xterm and have it open a pseudo terminal and leave it open so I can communicate with this process without creating ...
29
votes
1answer
776 views

What happens when Ctrl + Alt + F<Num> is pressed?

I am looking for an explanation of what happens in Linux when this key combination is pressed to change the current terminal. In particular, what software component intercepts this key combination and ...
6
votes
3answers
793 views

Create Null Modem Pair linux

I am looking to create virtual serial ports on Debian 6 squeeze. Basic requirements are: be able to connect as if port was a real serial port( IE be able to set baud, stop bits etc) com port pairs ...
2
votes
0answers
96 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 ...
2
votes
3answers
526 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 ...
43
votes
2answers
28k 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
959 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
173 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
241 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
523 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
775 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
227 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
323 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
280 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 ...
3
votes
1answer
941 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
297 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
315 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
173 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
164 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
335 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
2k 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
448 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
13k 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
224 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 ...
4
votes
3answers
3k 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
538 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
419 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
358 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
96 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
950 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 ...
32
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 ...