All Questions
23 questions
0
votes
1
answer
178
views
Debian network namespace isolation
I have an AppImage which I need to run 3 instances of, concurrently. Each instance will use it's own profile (Home directory). That's all very easy:
HOME=/home/user/home AppName.appimage
Now the ...
0
votes
1
answer
185
views
How do I make Debian's greeting look more like Ubuntu's?
I want my Debian greeting to show me how many updates are available, like what happens in Ubuntu.
Debian greeting: https://i.imgur.com/eJ0UsxU.jpeg
Ubuntu greeting: https://i.imgur.com/t0r8nzr.jpeg
0
votes
1
answer
254
views
How to generate a date in ISO 8601 format (UTC time) with an offset X days into the future? [duplicate]
When calling an API, I need to provide a start time and an end time in ISO 8601 format (UTC time).
I want to call the API in a CRON job, so I can't manually create the date-time(s).
How can I use the ...
2
votes
1
answer
283
views
Using HOME variable in crontab result in broken jobs
I have this crontab file with a lot (100+) of jobs that execute some commands in the same directory, suppose ~/Documents/. Instead of cd ~/Documents/ && <command> for every jobs, I can ...
1
vote
1
answer
363
views
Check whether linux is utilizing service or systemctl with a shell script
friends!
I need a mechanism to verify if the linux virtual private server is utilizing systemctl or service.
The systemd application is installed on all of them.
Current Code.
if pgrep systemd-journal;...
0
votes
1
answer
855
views
Problem is "too many arguments" [closed]
First of all, I will leave the code I wrote below, but I would like to tell you a problem I had before.
Problem 1 : I get the error "too many arguments" when I type any character and leave a ...
0
votes
1
answer
70
views
How to run a command from /etc/sudoers.d/ file noninteractive way?
I am automating dpkg-sig installation for one of my project purpose. Now I want to install it noninteractive way.
I have added the following in a file inside /etc/sudoers.d/
Cmnd_Alias DPKGSIG_INSTALL ...
1
vote
1
answer
1k
views
Can I change SSHD config properties through command line?
I have about 20 ubuntu/debian VMs.
When I originally set them all up I was using ssh password authentication.
I want to change all of them to use key authentication only.
PermitRootLogin yes >> ...
3
votes
3
answers
755
views
Is it possible to remotely clone a running/live OS?
I have an active OpenVPN/OpenSSH connection to a remote server. Is it possible to clone the remote OS, save it to a local file (e.g., with dd) and run it locally in VirtualBox or something similar?
0
votes
1
answer
74
views
Linux MINT20 "Ulyana" doesn't keep PS1 root setting
This that follow is my current PS1 setting in /etc/bash.bashrc and ~/.bashrc:
if [[ ${EUID} == 0 ]]; then
PS1='${debian_chroot:+($debian_chroot)}\[\033[01;31m\]\h\[\033[01;36m\] \W \$\[\033[00m\] '...
1
vote
2
answers
2k
views
Awk: filter string + count number of lines?
I have some JSON data:
"Item1": {
"foo": null,
"version": "bar",
"result": null,
},
"Item2": {
"foo&...
3
votes
2
answers
2k
views
Bash: call function from "bash -c"
I'm trying to get my bash function to call another function that uses bash -c. How do we make functions created earlier in the script persist between different bash sessions?
Current script:
#!/bin/...
0
votes
0
answers
181
views
Spell-checker for an interactive bash on Debian as Ubuntu?
I'm not sure, but I remember Ubuntu can do similar to:
$ miswrite-command
No 'miswrite-command' found, did you mean:
'correct-command' from 'correct-package' (main)
Try : sudo apt install ...
0
votes
3
answers
345
views
Bash: shell script create variables? [duplicate]
I'm trying to have a bash script create a variable and have the variable persist in the terminal until the terminal closes (not permanently). I thought export was what I needed but it didn't work.
#!/...
5
votes
4
answers
4k
views
Why is there a call to `clear_console` in `~/.bash_logout`?
When I log in with the same user on tty1 and tty2 and start an X server session on tty1 - as soon as I log out of tty2, the X server session on tty1 crashes.
This seems to be a known bug:
https://...