567 questions
1
vote
1
answer
41
views
terminals don't open in the new workspace, instead open in current workspace | i3 window tiling [closed]
i create a script that is supposed to create a new workspace and that workspace launch four terminal each in given position with a command ran in it.
this is the script.sh
#!/usr/bin/env bash
WS='9:...
0
votes
1
answer
279
views
Display progress bar in terminal tab with an ASCII OSC Sequence
The vte library and gnome-terminal implemented recently the presentation progress indicators. It should look like this:
See: The circle icon on left of the second tab. The progress bar within the ...
0
votes
1
answer
90
views
How can I remotely assign a variable in gnome-terminal via a bash script?
I am running the following script in a bash terminal on a mac:
#!/bin/bash
string_list=(
host1
host2
host3
host4
)
password="12345"
for i in "${!string_list[@]}&...
2
votes
2
answers
242
views
How to fork multiple child processes to open separate terminal windows?
I am working on building a simple X O (tic-tac-toe) game in C on a Linux system. I want to fork three child processes:
Child 1: Player 1
Child 2: Player 2
Child 3: Display for the game where Player 1 ...
0
votes
1
answer
120
views
VS CODE - How to enable CMD in integrated terminal? (Zorin 17)
Image displaying the available shells to be used in the integrated terminal of VS Code.
A picture is worth a thousand words...
I recently migrated from Windows and I'm using Zorin 17.
Once I installed ...
0
votes
0
answers
80
views
Colors not shown in the output of git-graph
I'm trying to use git-graph. I have installed it, but I cannot obtain the output I see in the screenshots. In particular when I run it with its own repository from the Gnome terminal in Ubuntu, the ...
1
vote
0
answers
179
views
How can hard-wrap long lines in a gnome-terminal window?
The context
We have a 9-line Braille display (Canute 360) which is exactly emulating the visual output of a terminal window. Both the Braille display and the gnome-terminal window are 40 characters ...
-2
votes
1
answer
695
views
Unable to open GNOME-TERMINAL at cent OS 7
While try to open from XTerminal getting this error:
#Locale not supported by C library
Using the fallback 'C' locale
#Error constructing proxy for org.gnome.Terminal:/org/gnome/Terminal/Factory0: ...
0
votes
0
answers
139
views
how to query the precise top-left absolute x,y coordinates of the gnome-terminal text window area under ubuntu?
For fun and learning, I'm writing an ncurses app in C under ubuntu which calls mvaddch to place an 'o' character as close as it can to the mouse position as I drag the mouse pointer around. The app ...
-3
votes
1
answer
96
views
When Infinite Loop is opening at same time in Redhat Linux then how to stop it?
when some one attack like DDOS or Dos in our computer
for example someone like hacker let's say run infinite loop in your terminal to open the gnome-terminal
code:--
while :
do
gnome-terminal
done
...
0
votes
1
answer
462
views
How do I add these directories to my PATH? Whenever I reboot I have to manually add them again
New to linux terminal, gnome and terminals in general. Thought it would be a good way to learn by customizing UI.
I am trying to automatically add these directories to my PATH instead of doing it ...
1
vote
1
answer
200
views
Waiting for child process in other terminal works if launched with 'x-terminal-emulator' but not if launched with 'gnome-terminal'
My ultimate goal is to let my python script launch a child process, in another terminal, that runs independently from the parent:
When the parent process finishes, the child process should continue. ...
3
votes
0
answers
2k
views
Gnome terminal keeps crashing on Ubuntu 22.04 where to find log?
All Gnome terminals keeps crashing randomly on Ubuntu 22.04, all scripts running on them crushed.
Did sudo apt update and sudo apt upgrade but the problem persists
I would like to know where to find ...
0
votes
0
answers
667
views
openconnect fails to keep running in the background in a terminal that's closed
This is a spin-off from other post.
This command retrieves a password from keepassxc, prints it as stdin to an openconnect (for VPN connection) command, and the process goes to the background.
sh -c '...
3
votes
0
answers
1k
views
xdotool key does not work in any other terminal except the one it's run in [closed]
I'm trying to write a short bash script that opens some gnome-terminals and runs a program and issues keystrokes to them. Got parts 1 & 2 done and working. I am trying to use xdotool to do part ...
1
vote
0
answers
146
views
Startup script for gnome-terminal doesn't change tab title nor executes commands
I'd like to automate the setup of my dev environment. I had to fallback from guake to gnome-terminal since guake (dropdown behavior was incredible) has issues with Wayland. I'm on Manjaro with gnome ...
1
vote
0
answers
81
views
How can I add a character before every capital letter in a terminal emulator's output (for a Braille display)?
TL;DR?
How can I change every instance of one character (e.g. 'E') in a terminal window to another string of characters (e.g. '~E'), moving all other characters along in the window in the process? So:
...
0
votes
2
answers
223
views
Ubuntu Terminal command: Show what time after X seconds?
I need to know if there is a command where I can show what time it will be after X seconds.
In my case: I often need to set "sleep (seconds)"; in terminal before and between other following ...
0
votes
1
answer
726
views
How to do a loop with variable touch -t command on mac terminal
I'm trying to achieve this:
for i in {01..31}
do
touch -t 202207$i0000 $i-07-2022.md
done
I have 31 .md files named 01-07-2022.md, 02-07-2022.md ... I basically want to change their creation date ...
0
votes
0
answers
299
views
termios, getchar() always returns -1 with error EAGAIN
I have a piece of code in which I want to read a character from the terminal. The goal is to give keyboard input for moving a robot.
If there is no input in the terminal , the code should return -1, ...
0
votes
0
answers
212
views
Run gnome-terminal if it's not running
I'm trying to write a script which will check if gnome-terminal is already open, switch to it if it is, or open it if it doesn't.
# check if terminal is running
EXISTS=$(pgrep gnome-terminal)
# if ...
1
vote
0
answers
151
views
Unable to enable Gnome system wide extension for QT Application (version GNOME Shell 40.10)
I am using a QT application which also shows an icon over panel but with latest gnome update the icon does not appear anymore. To show the notification icon, i’m trying to install and enable the ...
1
vote
1
answer
7k
views
Gnome-Terminal Cannot Open Display: Error
I connected to an OVH-Cloud VPS Server Via SSH and when I install gnome-terminal and attempt to run the command line
gnome-terminal -v
It will error out and give me the error:
Failed to parse ...
1
vote
0
answers
875
views
How to configure the margin for terminal output (gnome + zsh)?
Does anyone know how I can set "margins" for terminal output?
As you can see in the screenshot below, I'm working with a custom two-line terminal prompt. The prompt itself has:
a top margin,...
0
votes
1
answer
5k
views
Open new terminal with bash script and use it
I would like to run a python script multiple times in a new terminal each time so I am making a bash script to do this.
#!/bin/bash
alias bot_1="cd ../Folder1"
alias bot_2="cd ../...