Questions tagged as ['gnome-terminal']

GNOME Terminal (often titled only "Terminal") is the default terminal emulator included in Ubuntu.
Score: 2
heynnema avatar
Ubuntu 21.10 gnome-terminal doesn't maximize/un-maximize to original 80x24 size correctly
ru flag

Ubuntu 21.10. My gnome-terminal opens to a standard 80x24 size window. That's fine.

However, if I maximize the window to the size of my display (1920x1080) and then immediately un-maximize the window, it returns to a 80x23 size window. Then I have to manually reset the window size to 80x24 using the "Advanced" menu in gnome-terminal.

And, in fact, every time that I maximize/un-maximize the gnome-t ...

Score: -4
Upgrade from 18.04 to 20.04 causing many failures
ng flag

I upgraded Ubuntu 18.04 to 20.04 and now everything is broken. apt doesn't work.keep getting dpkg errors when trying to use it. cant install anything. nautilus and terminal doesn't work. lots of icons are not appearing.broken icons broken icons2 broken icons3

some python errors occurring and so on. what to do now? even backup program doesn't work. How to make it work again? I couldn't understand how  ...

Score: 3
Lance avatar
How to speed up neofetch? Alternatives or neofetch caching
cn flag

I've configured my terminal in a such a way that it runs neofetch when opened. However, there is now, a 200ms (approx.) delay before i can start typing.

Are there any faster alternatives to neofetch or is it possible to cache neofetch's output periodically?

Score: 0
Fardin Elahi avatar
How can I fix this apt update error?
ec flag
Err:17 http://packages.microsoft.com/repos/code stable/main amd64 Packages
  File has unexpected size (40367 != 55406). Mirror sync in progress? [IP: 40.65.182.21 80]
  Hashes of expected file:
   - Filesize:55406 [weak]
   - SHA512:375df5cd3f502bd79e283f335e82aaa100345ebc687f4d080f18ebd4fb5d61a1cd09468031365bf054a5ab37dd9899bc9fbdcd589d998e198086a68e1ca1251a
   - SHA256:e05badc92e0971793e10fed74f79accb6b ...
Score: 0
ptushev avatar
Re-installing jupyter notebook by accident
ph flag

I've tried to install an IPkernel to run R scripts in my jupyter notebook, but in the steps I followed I accidentally re-installed jupyter from this command

sudo apt-get install libzmq3-dev libcurl4-openssl-dev libssl-dev jupyter-core jupyter-client,

which made my already existing jupyter notebook not want to launch. After that, I tried to remove the jupyter snap with

sudo snap remove jupyter

but it too ...

Score: 1
How to find window(gnome-terminal) by process id which run in it?
ca flag

gnome-terminal can open many windows, and in one window may have several tabs.

I want to active one gnome-terminal window which has a bash run in one of its tabs, for the CWD of that bash preventing my portable disk from ejecting properly.

I found the bash pid is 25938 by lsof.

In my example, I found there's 5 windows, 8 tabs. The issue is how to figure out 25938 in which window, by cmd of course.

 ...
Score: 1
TmCrafz avatar
Change profile of all running Gnome Terminals on the fly over command line
ma flag

Currently I'm working on a script which changes my gnome terminal theme depending on daytime. I do this with the command:

gsettings set org.gnome.Terminal.ProfilesList default "$terminal_profile_id"

It is working well, but the new color theme is only visible when I start new terminal sessions. I'm looking for a way to also change the profile of all already running gnome terminals. It is possible via t ...

Score: 0
N. S. avatar
How to run a command within a previously opened terminal with gnome-terminal command in a shell script?
cn flag

I want to run a source code that needs four terminal A, B, C and D. There are some commands for source code running in Ubuntu. These commands must be run in order in terminals A, B, C, D, A, B and C. Indeed these commands are interconnected and must be executed in this specific order.

I want to automatically run the source code with shell scripting. I already have wrote a shell script that opens multipl ...

Score: 0
keyboard short cut 'E' and 'O' of terminal emulator 'terminator'
za flag

I'm not sure this kind of question is acceptable here.
I'm thinking of trying terminator.(https://www.tecmint.com/terminator-a-linux-terminal-emulator-to-manage-multiple-terminal-windows/)
The hot key to split the window horizontally is ctrl+shift+O and vertically is ctrl+shift+E. Where do the key E and O come from? Is it from German eben and oben? (I've learned some German and in German eben sounds  ...

Score: 0
user135142 avatar
ubuntu stuck in a blank screen with some text and cursor
ng flag

i usually use terminal ctrl+alt+t to power off my pc. but sometimes when i accidentally press ctrl+alt for a while, ubuntu gets stuck on a black/dark purple screen with text

ubuntu [version]
xxx login:

and a cursor (blinking underscore (_))

when i enter both passwords (for the only 2 users present), it shows incorrect login. when i press the on/off button for 2 seconds, it powers off and then i can ...

Score: 0
Bob B avatar
I can't move the curser with the up and down and side to side keys in Terminal
cn flag

I must be missing something here. I have worked with terminal before. I am trying to change "true" to false and the arrow keys are not moving the cursor to do this. Please help me . Thanks.terminal picture

Thanks to all for your help. Is there somewhere to mark this as solved?

I'm sorry but how do I "accept" an answer? I don't mean to seem dumb here.......

Score: 0
Mahdi Jafari avatar
Terminal, settings and other system applications don't open in ubuntu 20.04
ve flag

I use ubuntu 20.04 and can't open terminal, settings, software updater, and ... I had to use my vscode terminal instead.

before installing Django and python3.9, I hadn't this issue. I think something is wrong with python on my computer.

Here are the errors I get:

error1: when I run sudo apt do-release-upgrade in my vscode terminal:

Traceback (most recent call last):

File "/usr/bin/do-release-upgrade",  ...
Score: 0
Unclechromedome avatar
How do I get terminal programs to have a black background instead of a solarized black one?
in flag

I have my Terminal color scheme set to White on Black. However, whenever I use console programs such as aptitude or minicom, the black background takes on a solarized appearance. I abhor the solarized look. The aptitude program has no color options. The minicom program has limited options, but the background color option clearly says BLACK. Yet, I still get a solarized background.

Score: 1
Change terminal beep from drip to glass using command line?
us flag

How can I change the terminal beep from the default "drip" to "glass"?

I know I can open Settings, select Sound, and then, in the Alert Sound section, select "Glass".

How can this change be achieved using the command line?

Score: 4
Gnome terminal scrollbar - hover changes width & wraps text
in flag

I'm using Gnome Terminal (under KDE, but I'm not sure if that's important), and when I hover my mouse over the scrollbar, the scrollbar gets wider and causes the text to wrap. Here's a GIF:

Gnome terminal - scrollbar hover causes text to wrap

It's like the terminal is not leaving enough space for the expanded scrollbar, so the text area gets narrower when you hover over the scrollbar.

Score: 0
hello hi avatar
What is python-minimal?
vn flag

I had a problem that gave me an error message in the terminal whenever I tried executing a command. I checked a forum, and the most helpful solution instructed me to run this command:

sudo apt-get --reinstall install python3-minimal

So did I reinstall a file named 'Python3-minimal', or did I reinstall a 'minimal' version of python3? I am new to all this, so please forgive me for such a dumb question.

Score: 1
Sudden icons and color changed and I cannot revert it
sa flag

Icons have changed, terminal is now white. I cannot recall doing something that might have done this and I don't know how to bring my old setup back. This one looks horrible

enter image description here

enter image description here

lsb_release -a
No LSB modules are available.
Distributor ID: Ubuntu
Description:    Ubuntu 20.04.3 LTS
Release:    20.04
Codename:   focal

Any suggestions?

Score: 0
Jack Rock avatar
For each different folder how to make a different .iso?
cn flag

I have 12 folders

one
two
three
four
...

I wish to make something like this

one.iso
two.iso
...

but I don't know what command can I use. Any suggestion?

with Mkisofs you can use

mkisofs –o backup.iso /home/tin/Documents/backup

but this command is only for 1 folder: 1 iso file but I want 12 folders:12 iso files

Score: 1
Gurseerit avatar
Python file not working in terminal, only in pycharm
cn flag

The program takes a picture and saves it to a directory named images.

#!/usr/bin/env/python
import cv2
import datetime
filename = datetime.datetime.now()
cam = cv2.VideoCapture(0)
s, img = cam.read()
if s:
    cv2.imwrite("images/" + str(filename) + ".jpg",img)
    

Running it from pycharm works like a charm (pun not intended) , but running it from terminal fails. The light for the camera flashes, but ...

Score: 2
Unknown avatar
How do I change the color of the prompt in Ubuntu terminal after using sudo su?
pe flag

I want to change the color of the root prompt after using sudo su. It is currently white. I am using Ubuntu in a VirtualBox VM.

Here is a picture of my terminal:

screenshot of Ubuntu terminal in VirtualBox

Score: 0
soubhiksen avatar
What's the difference between creating a new terminal tab and creating a new session?
fr flag

I have installed Tilix and I see two different buttons at the top. Create a new session and Add Terminal Right. What is the difference between the two?
I am the only user on the system.

I apologise if the question is too naive.

Edit - I have got the Answer from raj and have no more confusions.

Score: 1
Stav Alfi avatar
How to open links from terminal-logs in vs-code?
cn flag

How can I configure the default ubuntu terminal to identify file locations in the logs (for example: stack-traces) and be able to open them in my current opened VSCode instance?

In MacOS, I configured Iterm2 to do that. I'm not sure how to do it on Ubuntu.

If it's not possible, is there other terminal that can do that on Ubuntu?

Score: 0
WinstonCherf avatar
How to create a new file based on python code via terminal?
ae flag

I am a new user of Linux. I have written a Python program with a loop that runs 10 times and prints one line each time. I saved it as printing.py Now I want to use the terminal to ensure that the printout is saved in a new file.

The code I use is:

counter = 1
while counter <= 10:
print("This is line", counter)
counter = counter +1

However, I don't know how to get from the program that I saved as p ...

Score: -1
Ubuntu showing more users on Uptime command
hm flag

The "uptime" command on my laptop which is running on Ubuntu 20.04 is showing there is 4 users on my laptop:

Uptime command on my PC

I did search on the internet on how this uptime command works.

According to them, it counts all the active session on terminal.

If I create more window on the terminal the user number will increase.

I created more tabs on my terminal, ran various commands and the number of users remain unchan ...

Score: 2
Change the highlight color of text pasted into terminal
us flag

In the recent version of gnome terminal, when text is pasted into the terminal, it is initially highlighted in white.

enter image description here

I would like to change this paste-highlight color to something else (preferably light gray).

How can I achieve this?

I assume this can be configured in ~/.bashrc, but I may be wrong.

(Please note, I am not talking about the terminal highlight color that can be set in gnome terminal's  ...

Score: 0
ubuntu-noob avatar
'exit' command not working anymore
eg flag

I was trying to install certain software and edited bashrc file, due to various errors I replaced it with default basrc file, but now 'exit' command is not exiting the terminal, its simply displaying 'exit'. can i get back the exit command?

Score: 0
Drek avatar
how to display current X-Y position of window in gnome-terminal
bo flag

For input into gnome-terminal --geometry. I would like to customize the gnome-terminal position upon opening it.

Score: 0
lolla alaa avatar
ubuntu terminal not found instaed xterm is found
ie flag

I can not find Ubuntu terminal. I found xterm terminal which is not easy at all. how can i install terminal. However, I tried to install it via xterm but it told me that no installation candidate. how to reinstall?

Score: 0
Aguila95 avatar
How put the appearance of Linux Lite in from ubuntu terminal?
cn flag

I want to make the Terminal of Ubuntu look like Linux Lite?

Because in Linux Lite I can see the branch in git and it looks cool.

enter image description here