The console tag has no wiki summary.
8
votes
4answers
2k views
How to get file to a host when all you have is a serial console?
When all you have is a serial console (say via telnet through a terminal server), what methods can be used to transfer files in/out of a host?
Cut/paste works for the small/printable stuff and I've ...
1
vote
2answers
92 views
Saving files on lost focus in Vim
I have been trying to setup the shell version of vim to save any changed files when the shell window loses focus.
Following these instructions does not work.
Even though I am using OS X, I figure ...
232
votes
4answers
41k views
What is the exact difference between a 'terminal', a 'shell', a 'tty' and a 'console'?
I think these terms almost refer to the same thing, when used loosely:
terminal
shell
tty
console
What exactly do each of these terms refer to?
1
vote
1answer
25 views
Clipboard sharing between the host OS and a virtual console of a VirtualBox linux guest
I have a CentOS guess OS running without X11. Is there anyway I can paste text from the host clipboard into the virtual terminals or highlight text in the vt via the console mouse daemon and paste it ...
2
votes
2answers
39 views
How to find files with a certain subpath?
I need to find all xml-files that are placed in folders named config. Also config must be somewhere under a folder named trunk. For example, I am interested in all files like below:
...
0
votes
1answer
40 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
46 views
Locking console input without screen blanking
I'm looking for a method to lock/disable keyboard input into a text console (tty, no xorg) without blanking the screen. I would like to be able to monitor the on-screen progress of a long-running ...
2
votes
1answer
95 views
Graphical console applications in Emacs
I am having trouble running htop within an ansi-term in Emacs 24.2. It looks like some of the control characters are not interpreted correctly.
I thought ansi-term was capable of handling font ...
3
votes
2answers
2k views
How to list console and kernel fonts?
I have a number of console fonts installed in /lib/kbd/consolefonts/ installed.
How do I list them (obviously all I can do, is just look at the filenames, but not at a list at available fonts).
How ...
3
votes
1answer
1k views
How to change font-size, number of rows / columns on a terminal
I am running a Linux server (without xwindows or any kind of GUI), with a modern 22" LCD monitor.
Given the huge size of my monitor, I would like to increase the number of rows and columns on my ...
1
vote
0answers
46 views
Scrambled Xen Console on dom0
I installed Xen using the recommended procedure on Ubuntu's site using motherboard Supermicro X7SBL-LN2 and Ubuntu 13.04 amd64. After the installing it and rebooting my console looks like this: ...
3
votes
2answers
88 views
Fully Disable PrntScr Key
I recently came across a Linux feature I have never seen before, where pressing the PrntScr button on the keyboard prints a physical piece of paper with the contents of my console.
I really need to ...
3
votes
2answers
131 views
Change colors in console/virtual terminal
Is there a way to alter all the available colors in console / virtual terminal?
By console, I mean what you get after pressing CTRL + ALT + F1 and not anything like xterm or urxvt. So, I guess that ...
4
votes
1answer
780 views
How do I configure setfont and loadkeys properly?
I'm installing LFS and I'm struggling with this section. My locale is sv_SE.UTF-8 and I have a Swedish keyboard. So I suppose I should enable unicode and that the keymap is sv-latin1:
cat > ...
0
votes
0answers
16 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 ...
1
vote
0answers
32 views
vi hangs when run in /dev/console under LXC
I'm running an Arch Linux container from within lxc. The lxc-start command connects to the internal /dev/console, on which I have agetty running using the following command:
/sbin/agetty --noclear -a ...
2
votes
1answer
56 views
open() console for default file descriptors
I'm reading a shell program implementation in C ( the xv6 shell from MIT's 6.828 Operating System Engineering course ).
The main() function for this shell starts with the following code:
//Assumes ...
0
votes
1answer
55 views
Move terminal emulator process from xorg to tty? [duplicate]
Is it possible (and if so, how?) to move a process from a terminal emulator running in X to a different virtual terminal, so that I can restart the X server without killing the process running in the ...
2
votes
1answer
63 views
Console font - how to show accents?
Arch linux on VirtualBox.
My problem is the console (not X) does not show accents like "á ã ç". The problem is showing, not typing. I have a text file with these accents and when I use "cat" the ...
4
votes
2answers
2k views
How do I temporary change my keyboard layout on Debian? (no X)
How can I quickly change my keyboard layout between US and German?
setxkbmap does not apply here, as I only have an SSH shell.
Persistent changes via
dpkg-reconfigure keyboard-configuration
...
7
votes
2answers
352 views
How to map a console keyboard layout to a X keyboard layout in Linux
In my distribution (Slackware 13.37), the console keyboard layout is chosen among some of those available in /usr/share/kbd/keymaps ' sub directories, coming from the kbd package.
Under X instead ...
12
votes
2answers
2k 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?
2
votes
1answer
144 views
Using screen to connect to Cisco console
I am trying to configure a Cisco (small business 300) via serial port.
I read here:
http://www.commandlinefu.com/commands/view/6130/use-screen-as-a-terminal-emulator-to-connect-to-serial-consoles
...
2
votes
1answer
120 views
Non-graphical tty's not stretching full screensize
on tty7 (graphical environment) nothing's wrong, I can enjoy the whole pixels of my screen which is the main thing.
But here's something a bit annoying, when I switch on terminals from 1 to 6, the ...
4
votes
1answer
258 views
Is there any way to have console (rogue) mode programs take over only part of the terminal screen?
I like the command line because it preserves the context of what I'm doing. But if I use a "rogue" mode program like vi or less, the whole screen gets taken over.
Is a middle way possible, where the ...
2
votes
6answers
10k views
Console tool to test internet bandwidth
I'm looking for a tool that will test my internet connection bandwidth and create an simple report like speedtest does.
Do you know some program/tool that do this? Something with CentOS packages ...
5
votes
2answers
9k views
Command line to return to the GUI after Ctrl-Alt-F1?
I'm unable to return to the GUI with Ctrl-Alt-F7 (or any of the 12 function keys). I have some unsaved work and I don't want to lose them. Are there any other key combinations that will allow me to ...
3
votes
3answers
302 views
clear command in Konsole
I know about the Linux clear command, but it just moves the previous output from the visible part of terminal window (KDE Konsole). I can still scroll up and see all previous text. Is there similar ...
2
votes
2answers
113 views
Insert Unicode Characters at Console Login
My password contains "special" characters like ü. How can I login at the console (no X running) when the default keyboard layout does not provide these characters?
Or, differently put: how can I ...
4
votes
3answers
264 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 ...
6
votes
4answers
1k views
How to clear terminal completely?
When we use clear command or Ctrl+L in terminal, it clears terminal but we can still scroll back to view the last used commands. Is there a way to completely clear the terminal?
7
votes
2answers
1k views
How to define a Compose Key in terminal (no desktop environment)?
I would like to define a compose key on my system (Debian Sid "Wheezy"). I have no Xorg (and don't want any desktop environment). Only in terminal.
I would like to set it up on my Alt-Gr key (right ...
1
vote
4answers
614 views
Toggle between dvorak and qwerty
I've recently started to learn the dvorak keyboard layout, but I still need to use qwerty sometimes.
I'm looking for a script to toggle between the two keyboard layouts.
Also, I'd like to invoke ...
2
votes
1answer
20 views
messages appearing when not desired
I have SSH access to a CentOS box and I have a strange behavior of that box, I have never seen before.
Lets say I am editing a file with vi or displaying tail -f of a file. Every time the server has ...
5
votes
1answer
84 views
Why are multiple command-line terminal consoles available/running at the same time on RHEL systems?
I'm studying for the RHCSA and am trying to wrap my mind around a seemingly basic concept: terminal consoles. I don't understand how/why RHEL systems make 6 terminal consoles (/dev/ttyN) available ...
1
vote
1answer
104 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 ...
24
votes
1answer
431 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 ...
2
votes
2answers
214 views
How to switch from TTY to KDE in Oracle Linux
I had installed Oracle Linux. While installing I had selected KDE for the desktop.
After finishing I assumed that I could login to KDE Desktop, but I got a TTY.
It asked for login and I gave root ...
2
votes
1answer
1k views
autologin console as root on fedora
Can someone help to autologin in console text mode as root in fedora, usually I can do using script like this :
/sbin/autologin.sh:
#!/bin/bash
0</dev/$1 1>/dev/$1 2>&1
cat /etc/issue
...
2
votes
2answers
291 views
Why are there so many virtual terminal devices?
I've been reading the advanced linux programming book availalble free online linky and it mentiones about virtual terminals which if I understood it correctly it is a Linux specific feature (not in ...
5
votes
1answer
265 views
Console ScreenSaver without X11
I'm trying to setup a very slimmed down console only Debian system to act as a simple slideshow photo display. I know that it is possible to show graphics (I guess using the framebuffer) in the ...
0
votes
1answer
159 views
wget images with certain path
im looking to only grab images from a document with a certain path for example
domain.com/uploads/287167/file_name.jpg
only grab those with the uploads/number/filename
im currently doing it this ...
2
votes
0answers
163 views
How do I let an SDL app (not running as root) use the console
I want to use an SDL-based program to display graphics on the console, without having to log on from the console, and without running the program as root. For example, I want to be able to run it via ...
6
votes
1answer
271 views
Adjusting keyboard sensitivity in a command line terminal?
When using a tty login shell by entering Ctrl-Alt-F1 from an Ubuntu 12.04 install on a laptop the keyboard seems overly sensitive and if my finger lingers for a moment on a button I end up with ...
4
votes
1answer
430 views
How to change cursor shape, color, and blinkrate of Linux Console?
I know I can change some fundamental settings of the Linux console, things like fonts, for instance, with dpkg-reconfigure console-setup.
But I'd like to change things like blinkrate, color, and ...
2
votes
1answer
155 views
How to undo in spreadsheet calculator sc?
spreadsheet calculator sc is a very old console-based program. It does what the name says. I cannot find how to undo an operation in its man page. I currently use it together with RCS, ie. manually ...
1
vote
0answers
251 views
Debian Console Font with Nvidia Drivers?
On my Debian Squeeze (6.x) installation my system had a nice small login shell font (terminus??) but after installing the nvidia drivers for my machine it boots up using a very chunky font (on a 24 ...
3
votes
1answer
1k views
Setting console font in vconsole.conf does not work (systemd)
I am trying to set a different default console font for my new Arch Linux installation (using systemd).
I set up my vconsole.conf in /etc as so:
KEYMAP=us
FONT=Lat2-Terminus16
I rebooted and saw ...
1
vote
1answer
284 views
Login other bash ttys after logging in to one
Is there a way to login certain (or all) ttys after logging into one? I don't want auto-login because I still want to login once (for security). I've looked into things like "screen" but they are ...
2
votes
1answer
121 views
Add echo command to /etc/profile to disable screen blanking
I am considering adding the following echo command to /etc/profile
echo -e ‘\033[9;0]\033[14;0]’
The system in question does not have setterm command available and is just running text console.
...

