Questions tagged [debian-stretch]
103 questions
36
votes
8 answers
systemctl --user Failed to connect to bus: No such file or directory Debian 9
When I run this commande in my Debian 9 VPS : systemctl --user I have this following error : Failed to connect to bus: No such file or directory
This error appear on all users except the user root.
I already have the dbus dbus-user-session systemd…
11
votes
5 answers
Ansible installed via pip3, but Ansible commands not found
I have installed Ansible via pip3, but I can't find the Ansible commands (ansible --version, ansible-playbook, etc.)
Here's the listing that shows that Ansible is installed via pip3:
:~# pip3 list | grep ansible
DEPRECATION: The default format will…
Jinja_dude
- 247
10
votes
2 answers
What does GRUB_DEFAULT="1>2" mean?
One of our Debian-servers won't boot into the newest installed kernel, and during troubleshooting I came across this:
grep GRUB_DEFAULT /etc/default/grub
Output:
GRUB_DEFAULT="1>2"
I haven't seen this syntax before. What does this mean?
kenneho
- 233
9
votes
1 answer
How to boot Debian headless (without GUI)
I configured a web mapping service on a debian system in VirtualBox and used to GUI to make it easier for me as a linux newbie. But now the system is done and working and shall be moved to a VM on our cloud service for customer use. There the GUI is…
Merion
- 193
8
votes
1 answer
OpenSSL bad decrypt between 0.9.8o and 1.1.0f
I use OpenSSL to encode clear text and decode it on several remote servers. Whilte I was testing my scripts to ensure Debian 9 Stretch compatibility and found an error.
Here is the way I test:
Debian 6, OpenSSL 0.9.8o, encoding a string:
# echo "Hi…
Leahkim
- 363
7
votes
1 answer
How to properly handle a Docker container as a systemd service?
I handle many services (databases, web servers...) implemented by docker containers via systemd units.
It works, but the system takes a very long time to shut down, apparently waiting for docker services to shut down.
Here is an example of a systemd…
berty
- 103
- 1
- 8
7
votes
1 answer
Debian 9 random freezing on new PC
After installing GNU/Linux to my new PC build a few months ago, I've been having random freezes that are becoming more frequent. The screen freezes with no cursor movement, or response to the keyboard. I first had this issue with Kubuntu, but after…
Hussar
- 73
5
votes
1 answer
Run script before other units stop on shutdown
I need to run a script before a set of other services on my machine stop when shutting the machine down. (In my case, terminating an EC2 instance.)
I have tried variations on the answer in this question but nothing works: How do I run a script…
2rs2ts
- 797
5
votes
2 answers
Set Default Route on Debian Stretch with multiple interfaces configured by dhcp
On a Debian Stretch system with multiple interfaces, I need to define the default route via a specific interface ens3. This interface receives its ip address 10.33.34.2 through dhcp.
I adjusted the following guide to my needs:
5.3. The modern…
DoRe
- 65
5
votes
3 answers
Locked out of sudo by erroneous PAM config causing PAM bad jump in stack
While trying to mitigate some spammy PAM messages in /var/log/auth.log, following this post, I tried various combinations in /etc/pam.d/sudo. Unfortunately, the last line I tried, completely locked me out of any sudo/su operations.
session…
not2qubit
- 2,651
- 4
- 34
- 45
5
votes
3 answers
Debian 9 LXDE Autologin doesn't work
I've set in lightdm.conf these 2 settings (under the Seat:* section) and the autologin doesn't work. It still ask me for user and password
autologin-user=user
autologin-user-timeout=0
I've tried with this setting in addition, but it still doesn't…
DSX
- 151
5
votes
2 answers
Debian Stretch 9: What changed to keyboard configuration (in X)?
Up to Debian 8, I could configure the keyboard this way:
setxkbmap -model pc105 -layout us -variant alt-intl
How do I achieve the same effect in Debian Stretch? What has changed?
I do remember that, at some Debian version, I had to do that command…
ribamar
- 51
5
votes
2 answers
Netstat listening programs on ports alternative on Debian 9
What is the alternative to command netstat -ntpl on Debian 9?
I am using this command to check what program is listening on port.
Alternatively with parameters -ntupl (with u) including UDP.
Misaz
- 666
- 3
- 11
- 24
5
votes
4 answers
How to install Google Earth on Debian Stretch?
After downloading the Dev file from Google, I tried:
dpkg -i google-earth-stable_current_amd64.deb
but it complains that lsb-core is missing. So I need that package, "which is a virtual package and is not provided by any available package".
It…
4
votes
2 answers
Getting total cpu time spent on debian process (even for short-live processes)
for my master's thesis I'm trying to get resource usage information about MQTT brokers on a debian machine.
I'm having troubles finding a way to find out how much total cpu time debian has spent on a process I'm doing resource usage statistics for.…