Tag Info

New answers tagged

0

It's not possible with current gnome-terminal. If you're not afraid of recompiling it from source, well, there's a patch available at https://bugzilla.gnome.org/show_bug.cgi?id=709109.


0

There are two issues here. One is how to detect if you're running inside gnome-terminal (or any other app using the same vte widget for the actual terminal emulation). Assuming you're on a recent enough Ubuntu, the presence of the $VTE_VERSION variable tells you this. You could edit your .bashrc to contain something like if [ -n "$VTE_VERSION" ]; then ...


1

For gnome-terminal Edit the profile settings in gnome-termninal: Replace /bin/bash with your shell command and use your parameter for TERM. You can also edit the entries with dconf. Open a terminal and start dconf-editor: dconf-editor Open the entry org/gnome/terminal/legacy/profiles: and select your profile. Change the value for custom-command.


2

It is gnome-terminal itself that sets these variables. The relevant code resides in gnome-terminal's source, src/terminal-util.c, method terminal_util_add_proxy_env(). The values are taken from Gnome's settings, and the feature serves the purpose to have Gnome's proxy settings take effect on as many apps/utilities as possible, including console ones.


0

gnome-terminal allows you to create multiple profiles. In Edit->Preferences create as many as you wish, possibly each with different color scheme, different font etc. Right clicking allows you to switch profile at any time.


0

Right click desktop and choose create Launcher. Enter this in the command: exo-open --launch TerminalEmulator Save it with a name and icon of your choice, and do NOT select "Run in terminal"


1

If I understood correctly e.g. nautilus ~ were ~ is your home folder and can be replaced by the folder you have in mind.


1

You could run landscape-sysinfo for system information and /usr/lib/update-notifier/update-motd-updates-available for information about packets


0

XTerm is also very good! This article covers lot of its features: http://lukas.zapletalovi.com/2013/07/hidden-gems-of-xterm.html


0

I wrote Fourterm, Terminator-like terminal written in GTK+/Vala. It's faster, but it has less features. https://github.com/lzap/fourterm


0

I would strongly recommend tmux. It offers a whole lot of customizations and total independence from the mouse (if that is concern). You can split screens horizontally, vertically, switch between them with some keystrokes, leave sessions open and reconnect to them later, etc.


3

As another alternative, I would suggest using byobu. Byobu is a GPLv3 open source text-based window manager and terminal multiplexer. It was originally designed to provide elegant enhancements to the otherwise functional, plain, practical GNU Screen, for the Ubuntu server distribution. Byobu now includes an enhanced profiles, convenient keybindings, ...


4

Just to leave the answer here to those who are still chasing this. I guess I have learned my lesson in misunderstanding 256 color support in a way. So I found my answer here. To sum it up, themes like Gotham offers 256 support, and I had in mind that it would go both ways in terms of appearances (terminal and gui). This is not the case of course, one would ...


1

I wrote a little scripts to make it. Script is located in my github. Here is installation guide: Installation Download or just clone repo $ git clone git@github.com:c0rp-aubakirov/notify_after_command_executed.git Then add sourcing of script postexec_notify to your .bashrc. Here is git clone example of installation: $ cd ~ $ git clone ...


4

Personally, I use emacs with M-x ansi-term or M-x shell depending on what I am doing. But if you are looking for just a terminal multiplexer then there is always the quietly revered tmux: http://tmux.sourceforge.net/ Edit: JoKeR pointed out that you can install tmux with apt-get: $ sudo apt-get install tmux


18

You need Terminator: sudo apt-get install terminator For four terminals at startup, do the following: Start terminator Split the terminal Ctrl+Shift+O Split the upper terminal Ctrl+Shift+O Split the lower terminal Ctrl+Shift+O Open Preferences and select Layouts Click Add and enter a usefull layout name and Enter Close Preferences and Terminator Open ...


4

You can start 4 Terminals with Ctrl+Alt+T and fit them to the edges o your screen with Ctrl+Shift+Numpad[1,3,7,9] or left/right with Ctrl+Shift+Numpad[4/6] or top/bottom Ctrl+Shift+Numpad[8/2] and switch with Alt+Tab to ONE Terminal and with Alt+^ (on my keyboard its the key above Tab) between the terminals if one is active Or you can use tabs with ...


5

Just resize your terminal windows, so they all fit a corner of the screen. The Terminal can also have tabs, which might help out. Right click the window and select New Tab. Here's how to make windows able to resize to corners: Run sudo apt-get install compizconfig-settings-manager. Run sudo ccsm or search ccsm in Unity Dash. Scroll down until you find ...


5

What you want is sudo apt-get update; alert. What follows is explanation and rationale. From the terminal, you can list many commands to be run in sequence. So what you want is first the command which takes a long time, and second a notification command. To run commands in sequence, you separate them with either && or ;. These have two distinct ...


1

For aplay compatible files To play a custom sound through the speakers, you can run aplay <path_to_sound_file> *<path_to_sound_file> = path to the sound file to play the chosen sound file; then you can add a playsound alias to ~/.bashrc: alias playsound='aplay <path_to_sound_file>' *<path_to_sound_file> = path to the sound ...


1

You can add something like && echo -e "\007" to the end of your line. Try doing sudo apt-get update && sudo apt-get -y upgrade && echo -e "\007" Hope that helps


10

Sound I can't help you with. However, if you append something like && notify-send "Task complete." after your command, you should see a notification pop up in the upper right corner. If the required package is not installed by default, sudo apt-get install libnotify-bin should get it for you. The && will execute a second command if the ...


1

I have no idea why (never really understood the escape codes), but adapting the other prompt seems to work: PS1='\[\033[1;32m\][\W]\$ \[\033[00m\]' Apparently, you need to enclose the escape sequences in \[...\], to tell bash not to count them while determining the prompt width. Therefore, both the above PS1 and the following would work equally well: ...


0

This looks like a bug in gnome-terminal (well, actually vte). I don't have a fix for it right away, but I've forwarded the report upstream to keep track of it: https://bugzilla.gnome.org/show_bug.cgi?id=748144


0

This can happen after reading from /dev/random or /dev/urandom with cat.


3

The default video driver for KVM/qemu libvirt type VMs is the cirrus driver and that is the root issue. Years ago, there were problems with the vmvga driver, and cirrus was made the default. Issues with the vmvga driver have long since been fixed. For a new VM defintion, specify the vmvga driver. To fix an existing VM then use virsh edit and change this ...


1

Vivid 15.04 brings back the transparency option. (It's not part of mainstream gnome-terminal, but Ubuntu applies a patch to bring it back.) On the other hand, background image support is gone for good.


0

You can't make vim inside the terminal actually full screen, unless you're lucky enough that both the width and the height are multiples of the cell size (plus the fixed UI chrome taken into account). The terminal is a text grid, and if you force it to a maximized size which doesn't match this grid then there's necessarily a margin which is inaccessible to ...


1

This was a bug in vte, which was fixed a while ago (in 0.36 if I recall correctly).


1

You need vte >= 0.36 for true colors to work in gnome-terminal. Make sure your vte is recent enough, and in that case your code should work. (Note: when you output hard-coded strings, as you do in your example application, the value of $TERM is necessarily absolutely irrelevant. It only matters if you're using libraries whose behavior depends on this, such ...


1

Just for reference: it got "fixed" in Ubuntu 12.10 because gnome-terminal (well, actually vte) no longer takes these line drawing characters from the font, but has a special code to draw them manually instead.


1

There's an escape sequence for that: echo -ne '\e]12;#ffcc00\a' or you can also use symbolic color names: echo -ne '\e]12;pink\a'


1

You can remove these shortcuts in Edit->Preferences, in which case these will always be forwarded to the terminal program. The "dual" behavior (the action being based on whether there are at least as many tabs as the number you pressed) is no longer available.


2

Programs use a variety of other programs to determine the default browser sensible-browser & xdg-open being two of them. For xdg-open, you can use it simply by by running xdg-open http://URL, so xdg-open https://www.google.co.uk will open Google for instance.This should be the same as running echo https://www.google.co.uk in terminal and clicking on the ...


1

gnome-terminal (actually vte) indeed stores the scrollback in an immediately-deleted file under /tmp (more precisely: under the standard tempfile location influenced by $TMPDIR and maybe a few similar ones). This design was chosen mainly for unlimited scrollback not to cause OOM errors. The disk is way less likely to get filled up, and even if that happens, ...


2

You could use "Guake". sudo apt-get install guake


0

The basic idea is to create symbolic links to a temporary folder and open that folder in a file manager. Then you can easily access the files. Suppose, grep returns the following: file1.txt file2.html file3 then you could try that. <your_grep_command> | mkdir -p ~/tmp | awk '{ system( "ln -s \""$1"\" ~/tmp/\""$1"\"") }'; xdg-open ~/tmp ...


1

Since apport supports interactive feedback as discussed at https://wiki.ubuntu.com/Apport/DeveloperHowTo#Custom_Invocation it would seem all that's required is to start the process with a variant on the Yes/No Question psuedo code def add_info(report, ui): close_terminal = False if ui and ui.yesno('Close Terminal?') == True: close_terminal = True ...


0

You could use following configuration placed in ~/.config/tilda/style.css file: GtkWindow#Main { #background-color: rgba(0, 0, 0, 0); background-color: #000000; } GtkWindow#Main .notebook { padding: 0px; } GtkWindow#Main .notebook tab GtkLabel { padding-left: 15px; padding-right: 15px; color: #505050; } GtkWindow#Main .notebook ...


1

comes within nautilus in 15.04 by default.


1

You have to add LANG=en_US.UTF-8 to /etc/default/locale and reboot your system. (Solution from this Arch Linux forum post.)


-2

It is a really simple matter to deal with. You can simply install nautilus open terminal package and if you install it , then you can simply open terminal from any folder/director you wish just by right clicking and clicking on open terminal here. To install it all you want to do is to install it by opening a terminal, hope you know how. Then type this ...


0

TL;DR: Press Alt+F7. You are apparently asking how to close a virtual console, also known as a virtual terminal--a full-screen text terminal you got to by pressing a key combination like Ctrl+Alt+F1, Ctrl+Alt+F2, and so forth. In infer this since you say you wish to "return back to the desktop of Ubuntu" (indicating you are not on your desktop now) and, in ...


1

TR;DR: use nmcli dev status to get a list of which interfaces are connected to the network, and then use ping google.com -c 4 -I ifacex(where ifacex is actual interface name with number) to test if they are actually connected. To reconnect wireless interfaces nmcli nm wifi off; sleep 1; nmcli nm wifi on and let it automatically reconnect. The simplest way ...


-1

xkill for graphical closing. Execute that command and select with the cursor the window you wanna close. What's good is that this works for any graphical app, not just terminal emulator.


0

So this is sort of variation of my answer to this question. Make sure you set the profile in your terminal to hold the window , then create the script bellow, and assign a keyboard shortcut to this script (basicall full path to the script as command of the shortcut). When you are in nautilus folder where you wanna run java compiler, run #!/bin/sh # set ...


1

What will you need ? xdotool (sudo apt-get install xdotool) and couple different profiles. I have 8 different profiles in my gnome-terminal , all with different colors or background settings. Make sure you have the menu bar (File, Edit, etc.) enabled. Otherwise - won't work The command xdotool key alt+f b $( expr $RANDOM % 8 ) Explanation: we get a random ...


1

You may be interested in the following terminals: tilda guake yakuake stjerm Second two are drop-down terminals so they don't take out much of screen real-estate. Tilda isn't actually drop-down, but a very minimalistic terminal, without any window embellishments at all. It can be moved around the screen by holding Alt, double clicking on it, and ...


3

Create the script bellow , make it executable with chmod +x scriptname, where script name is actual script name. Run the script with 4 parameters. For example, I run it with activetab.sh TAB-1 TAB-2 TAB-3 TAB-4. You can call tabs anything you want, TAB-1 is just example. You will be prompted for which tab you want to focus on, type it exactly as you've ...


1

method #1 Oneliner to be executed in the same window that you wann a count : expr $( echo $( xprop -root | awk '/_NET_ACTIVE_WINDOW/ && /0x/ {print $5}' | xargs xwininfo -all -id | awk '/child/ || /children/ {print $1}' ) ) / 2 Here's the one-liner in action and reports correctly 5 open tabs Explanation: What I've noticed about gnome-terminal ...



Top 50 recent answers are included