Discussions on Linux system console in Ubuntu, as well as on TUI (text user interface). Questions about command-line interface shall be tagged with (command-line), about specific commands and text-interface programs – with tags appropriate to specific problem.

learn more… | top users | synonyms

15
votes
3answers
17k views

Prepend current git branch in terminal

How can I configure the terminal to display the current git branch? I'd like to see the second line rather than the first: andy@bob:~/my_projects/project_x$ (master)~/my_projects/project_x$ I ...
91
votes
10answers
37k views
5
votes
10answers
51k views

How to use sshpass?

I need to use sshpass to launch a remote command through SSH from a Java code. If I manually type in a console: ssh -p 22 user@ipaddress mplayer '/media/data/myFavouriteSong.mp3' works perfectly, ...
3
votes
2answers
126 views

Terminal lines shown during scrolling, use CLI

Long listings are only partially shown since the amount of lines remembered isn't too large. I'd like to cancel the limit of lines in a similar way to the following: Terminal limits scrolling How do ...
2
votes
1answer
40 views

In ubuntu server, clear console when returning from application

In the console in Ubuntu Desktop, when I return from an application like Vim or Tasksel, it clears the application and the console picks up where it left off before the application started. In Ubuntu ...
0
votes
1answer
31 views

Console login not working

So I'm having some issues with Ubuntu that require console login. My screen will show up saying: Ubuntu 14.04 LTS excite-frags (my username) tty1 excite-frags login: So whatever I try, with the right ...
0
votes
1answer
40 views

Can console be suspended and ask for a password on wakeup?

Although I suspect that this is not currently possible, I would just like to ask because it would be something very useful in my opinion. Because when I close my lid and I am in the GUI my computer ...
10
votes
5answers
11k views

What is the bash equivalent of DOS's pause command?

I need a pause on a shell script to show a warning before continuing. For instance, on DOS it goes like this: doit.bat: [...] echo 'Are you sure? Press Ctrl-C to abort, enter to continue.' pause ...
0
votes
1answer
42 views

can't access my Ubuntu server after I changed the SSH port

I can no longer access my digitalocean server running Ubuntu: I changed the SSH port from 22 to 36734 this way: nano /etc/ssh/sshd_config and I changed the port from 22 to 36734 Then I ...
4
votes
1answer
31 views

How to make a computer running on runlevel 3 ask for password when waking up from suspend in X?

I have recently set runlevel 3 as a kernel parameter instead of runlevel 5, though this has caused a little bit of a problem... Because when I execute startx and then once the GUI has loaded, if I ...
3
votes
1answer
17 views

Can one get a mouse for the console?

Although I mostly have no use for a mouse in the console, and I go there to get away from the GUI, I would like to know if there is some sort of mouse that one can get in there? So is there like any ...
0
votes
2answers
67 views

CLI only Ubuntu? [duplicate]

I am currently running Ubuntu GNOME 15.10 with GNOME 3.18, and I really dislike having a GUI startup by default, however I don't want it fully gone. So is there any way to just stop the GUI starting ...
3
votes
1answer
21 views

Return to GUI without Ctrl+Alt+F7? (my F7 key doesn't work)

my problem is that I can't return to GUI when I am in a console (Ctrl+Alt+F1,2,3...) because a beer destroyed my F7 key. Is there any other way to return to GUI without starting a new one (and having ...
-2
votes
1answer
112 views

15.10 Console font (Fixed)

I have noticed the console font change in 15.10 from Terminus (15.04 and previous) to Fixed. When Fixed is okay, it is quite ugly and Terminus was way better. I'd like to know what the 'safest' way ...
24
votes
9answers
2k views

How to display more than 1 terminal simultaneously

Sometimes when I work I use more than one terminal and I find it inconvenient to switch between them when all of them were invoked using Ctrl+Alt+T. I wonder if there is any program or terminal that ...
2
votes
1answer
456 views

How to run cmatrix without error using '-l' option in Terminal (not console)?

I have installed cmatrix using the command: sudo apt-get install cmatrix And when running the command: cmatrix -l In console (the ttys) I get a very cool looking font with matrix like symbols. ...
3
votes
5answers
3k views

How to select and copy content from the terminal (ATL + CTRL + F1)

When in the 'lower level terminal' (not sure how this is called), the one opened by pressing Ctrl + Alt + F1, how can I copy the content of the command I used there, since there is no mouse and I can ...
65
votes
5answers
124k views

Running programs in the background from terminal

How do I run a program in the background of a shell, with the ability to close the shell while leaving the program running? Lets say my UI is having problems or for some reason, I need to boot up a ...
0
votes
0answers
132 views

openvt: “Couldn't get a file descriptor referring to the console”

I try to run openvt -- ls -l but I get the following error: Couldn't get a file descriptor referring to the console What does it mean, and how to solve it?
7
votes
1answer
367 views

How do I get cmatrix to turn on after a certain period of inactivity in console? [duplicate]

I have got the console screensaver cmatrix, and I was wondering if there is anyway of getting it to turn on after a certain amount of inactivity in the console you are in? OS Information: No LSB ...
3
votes
0answers
21 views

How to take a screenshot of a TTY while unable to execute code in it? [duplicate]

I want to run something in one TTY and then take a screenshot of it from another TTY (because it won't let me run something else in the same TTY that I am running the thing in that I want to take the ...
0
votes
1answer
42 views

Java console running in a screen autostart on Ubuntu

[Ubuntu 14.04 no desktop] I have a java console application, and I need to run all time (1st problem), as well as I can re-access the console whenever I want (2nd problem). To solve the second ...
205
votes
9answers
12k views

Terminal 'incognito mode'?

I use Terminal a lot, and sometimes I am running commands, which aren't things I don't want others to see, but more commands that if I accidentally arrowed up to and accidentally executed would cause ...
7
votes
3answers
3k views

Is possible to run the jsc (JavaScriptCore) utility from the command line in Ubuntu, like in OSX?

In OSX there is a hidden utility called jsc, part of WebKit, that can be used to run JavaScript code on the command line. It can be used as a JavaScript console, like irb for Ruby. I have the ...
5
votes
2answers
6k views

How to enable display of framebuffer images (e.g. in w3m, fbi) within byobu (pts)?

I'm trying to run a minimal Ubuntu 13.10 installation without X Window System on my old laptop. One of the most useful tools I rely on in this setup is byobu; however, it seems to prevent me from ...
2
votes
2answers
775 views

Resize font on boot message screen and console

I have a high resolution screen on my laptop (3200x1800px) and I disabled the boot-image ( How do I disable the boot splash screen, and only show kernel and boot text instead? ) I also managed to ...
0
votes
0answers
25 views

Ubuntu console does not respond to any command

ron@ubuntu:~$ sudo npm install npm -g ron@ubuntu:~$ npm -v ron@ubuntu:~$ sudo npm update npm ron@ubuntu:~$ npm update npm The console does not obey or respond to any command line. I have tried ...
0
votes
0answers
19 views

Messed up Graphics is Aptitude and Whiptail from console

Hi I just installed ubuntu server 15 32-bit and when I run aptitude or whiptail the graphics where the lines should be are messed up. [ I cannot work out how to fix this issue. My locale settings ...
0
votes
0answers
61 views

How do I set console to support Chinese or Japanese natively?

The console means the system doesn't load X-window, it is text mode. I spent some time to search information on the web, knowing that a little history of issues of localization -- the character set ...
0
votes
0answers
258 views

Fixing console font

Ever since I upgraded my minimal installation to 15.04, the console has been using a VGA standard font instead of the normal font. After entering sudo dpkg-configure console-setup and selecting "Let ...
0
votes
1answer
27 views

Highlight user@device in terminal

Is it possible to highlight the "user@termial:" part written in the console. If I use several commands in a row which all produce large output it would be easier to determine where the last command ...
0
votes
1answer
67 views

VNC Remote access like a graphical console

I've installed vncserver already. Now, I need access to the desktop by typing a username and password. Is this possible?
0
votes
0answers
59 views

How to hide it?

how to hide this? sorry that the pictures, but I don't know how this describe. :/ http://files.tinypic.pl/i/00704/9svzqrz5hqk8.jpeg console doesn't disappear after this message... it also would like ...
1
vote
0answers
12 views

How to increase the font size in text-only mode with high DPI [duplicate]

I have installed Ubuntu 15.04 on a Lenovo w550s which has > 200DPI. When I switch into the text-only console (using Ctl-Alt-F1 etc), then the text is so tiny that it can barely be read. I have tried ...
1
vote
1answer
72 views

How to enable impress presenter-console?

I am trying to get the presenter-console working on my Ubuntu 15.04 Notebook. There is an external Display hooked up to it via VGA in extended mode: Here are my slide-show settings in Impress: ...
31
votes
7answers
56k views

How do I increase console-mode resolution?

I've recently clean-reinstalled Maverick on my computer. It uses propietary Nvidia drivers. Everything runs just fine, except that I'm seeing lots of ugly text when booting and shutting down Ubuntu. ...
0
votes
1answer
31 views

How do I count the number of times a number satisfies a range (bigger than x, smaller than y) in LibreOffice Calc?

I have this spreadsheet in LibreOffice. I need to know how show the number of times a number, in Columns D and E, satisfies a certain range. For example, how many times a number is bigger than 3 and ...
0
votes
0answers
62 views

HDMI audio only works when X is started with KeepTty

I have my Ubuntu 15.04 installation setup to boot into the console, and then I manually startx when I need X. My machine has an nvidia card (346.82 drivers from distro) that is connected to a ...
26
votes
3answers
47k views

How do I change the color for directories with ls in the console?

On my console the color for directories is such a blue, that it is hard to read on a dark background. How can I change the color definitions for ls?
0
votes
0answers
62 views

make boot sequence truly silent (Ubuntu 14.04)

So, on Ubuntu 14.04 using generic kernel, even though kernel parameters include "silent" option, on most boots the open source brcmsmac driver spews log data that makes boot sequence exit the splash ...
4
votes
4answers
214 views

How to copy a line in vi and paste it to console?

There is a text file with bash commands. Is there a way to copy a line from that file using vi and paste it to console? It may be nano as well. It is console only server installation. No mouse to be ...
5
votes
6answers
9k views

How to copy command console text?

I have used the wpa_passphrase command and I get something like this: network={ ssid="blahblah" #psk="moreblahblah" psk=d5e532ecca53ea963e5b3b5521bb3682c53fcf5b6d55f15622027145c795b661 ...
8
votes
2answers
25k views

How do I disable messages or logging from printing on the console/virtual terminals?

My wireless driver is noisy. It prints out messages to the console every 10-30 seconds. So, if I'm working on VT1 or something, I get messages scrolling by all the time. Is there a way to shut this ...
5
votes
4answers
3k views

Console-based markdown reader

I am working on a remote server that only has a terminal support. There are certain markdown files that I would like to read. However, as I don't have a GUI support, I am in need of a markdown reader/ ...
2
votes
1answer
162 views

How to get caps and num lock lights to show when in console

I have recently noticed something rather annoying, when in console (in one of the TTYs), if I press the caps lock key, the little light which normally lights up to show me that it is, does not, nor ...
2
votes
1answer
23 views

Opened file Highlighting in Linux Ubuntu console

First(I am using linux in terminal, (console mode),(no graphical extension), like on server. The question is following: Is it possible to install some kind of script, that highlights "opened file", ...
1
vote
0answers
43 views

Sound is gone after booting system in text mode

I started using GRUB_CMDLINE_LINUX_DEFAULT="text" grub argument for my boots, and recently noticed that the sound is missing. I start GUI from terminal using startx command, here's my .xinitrc ...
2
votes
2answers
839 views

Ubuntu Server disrgards console-setup when rebooting in VirtualBox

I found this weird behavior. In VirtualBox, Ubuntu Server 12.04 uses this font: I find that hard to read. Now I can run dpkg-reconfigure console-setup fine, and set the font to Fixed, then it looks ...
2
votes
0answers
98 views

Why cannot open Ubuntu-tweak after installing Pantheon greeter?

My problem is I cannot open Ubuntu-Tweak (my OS is Ubuntu 14.04). Of course reinstalled from synaptic and nothing. Last thing I did was to Install Panther-greeter from Elementary OS, but didn't ...
5
votes
2answers
2k views

How to set env with a dot?

I tried doing that with export and set env, but it did not work. how to do it? for example ~/directory$ export a.home=1 bash: export: `a.home=1': not a valid identifier