Skip to main content

All Questions

Tagged with
0 votes
0 answers
20 views

How to configure XShell so that PgDn work properly in bash?

The key PageDown types a ~ in my bash session instead of showing next command. Why does this happen and which settings do I need to change? In vi key works as expected. I did as described in How to ...
M-A-X's user avatar
  • 99
0 votes
0 answers
11 views

How to apply Postfix milter *before* smtp_generic_maps for DKIM purposes?

My Postfix instance instance correctly signs outbound mail with DKIM when I set the myhostname parameter to be the domain I wish to send from, say domain1.com. The issue I have is I have multiple ...
BrownianBridge's user avatar
0 votes
1 answer
56 views

Desktop shortcut with a command line argument which contains filename with random numbers

I'm trying to create a desktop shortcut which launches a terminal app with commandline arguments which contains a path to a file with a randomly generated number in the filename. I've tried everything ...
zyntrax's user avatar
1 vote
1 answer
45 views

SSH from A through B to C, using private key on B

Schematic: ssh ssh A ------> B ------> C ^ ^ using A's using B's ssh key ssh key Preconditions: A is running ssh-agent A can access B B can access C A can't ...
J.Nexus's user avatar
  • 11
1 vote
0 answers
139 views

How could I have VScode on Windows 10 with the default terminal changed to WSL2 Ubuntu-24.04 like a native linux distro?

I'm trying to have inside VScode for Windows 10 (Microsoft Windows [versão 10.0.19045.4474]) options to change the terminal from default to another one such WSL2 Ubuntu 24.04. I have installed ...
Marlon's user avatar
  • 379
1 vote
0 answers
97 views

how to install memcached via pecl?

I'm trying to install memcached and am having some difficulty. Here's what I tried: apt-get update apt-get install memcached libmemcached-dev libzip-dev pecl install memcached pecl install memcached ...
neubert's user avatar
  • 7,232
0 votes
1 answer
24 views

changing the directory a tarball decompresses to

When I do wget https://mirror.ctan.org/systems/texlive/tlnet/install-tl-unx.tar.gz and then tar xvzf install-tl-unx.tar.gz the files get extracted (right now) to install-tl-20240521. On the CLI it's ...
neubert's user avatar
  • 7,232
0 votes
0 answers
26 views

How can I execute a command whenever I change the PowerDevil power profile?

I have a laptop with a variable refresh rate (up to 120Hz) monitor. I want to change the refresh rate to 60 whenever I switch the power profile to "Power Save" in Powerdevil, and change it ...
StrongSand94191's user avatar
0 votes
1 answer
144 views

Linux Bash Wait Command Not Working

I am trying to use and bash file .sh to start other bash files in seperate terminals. I want them to run one after the other as I use them to copy large numbers of files to the same Hard Drive. ...
Dave's user avatar
  • 1
1 vote
0 answers
94 views

ls in Docker on Windows not showing one directory

I'm running Windows Server 2016 Datacenter version 1607 (build 14393.6614) with Docker Desktop Community Version 2.0.0.3 (31259). I'm running an Ubuntu docker container in an interactive mode with my ...
user1543037's user avatar
0 votes
1 answer
89 views

anacron doesnt work as expected

Trying to schedule a job to run every day with cron or anacron. Search the forum for resolution but still without any success. Changing shell=/bin/bash or bin/sh didnt do anything. My system lubuntu ...
Surepic 342's user avatar
0 votes
1 answer
170 views

Activate a conda/mamba environment when cd to a specific directory

Can I automatically activate a specific environment when cd into a directory? Like if I cd into the directory my_nn_library then automatically run mamba activate nn_env. I am using Ubuntu.
Osman Mamun's user avatar
0 votes
1 answer
472 views

docker login fails when done in .bashrc

At the end of my .bashrc file I have the following: docker login -u AWS -p $(aws --region us-east-2 ecr get-login-password) 636602586062.dkr.ecr.us-east-2.amazonaws.com However, whenever I open up a ...
neubert's user avatar
  • 7,232
0 votes
1 answer
255 views

google-chrome, when ran in the background through bash, still outputs errors, despite 2>&1 > /dev/null

When I run google-chrome 2>&1 > /dev/null & and then go back to the prompt and then visit a website with, say, an invalid cert, I still get errors output to my console's screen. eg. ...
neubert's user avatar
  • 7,232
0 votes
1 answer
133 views

How to output disk size in GB only with no rounding error?

Output disk size in GB only. Giga Bytes only. Not MB. Not Mega Bytes. Not TB. Not Tera Bytes. Tested thus far: sudo blockdev --getsize64 /dev/sda 1000204886016 sudo blockdev --getsize64 /dev/sda |...
joseph22's user avatar
  • 367

15 30 50 per page
1
2 3 4 5
51