How to use Systemd to get information about user sessions on Fedora Linux.
How to use Systemd to get user information very easily. List user sessions.
How to use Systemd to get user information very easily. List user sessions.
Getting information about the boot process of your PC when running Linux is very easy. The Systemd framework can easily help with this. The systemd-analyze command prints the time that is taken by the operating system to reach a usable state. This would be better on a faster SSD. But I am still using an … Read more
A new Linux exploit has been found for Linux machines. This involves the FUSE filesystem framework and can crash Systemd after executing a program as a normal user. This is CVE-2021-33910, Denial of service (stack exhaustion) in Systemd (PID 1). More information about this exploit may be found here: https://www.openwall.com/lists/oss-security/2021/07/20/2. A sample program proof of … Read more
The Systemd framework in Ubuntu may be used to get good information about running services on your machine. This is very easy. To list all active services on your Ubuntu machine, use this command. jason@jason-desktop:~/Videos$ systemctl list-units –type=service –state=activejason@jason-desktop:~/Videos$ systemctl list-units –type=service –state=active Or this command which is a fast way to list all running … Read more
Systemd, by default waits a long time for some services to shutdown when switching off the machine. This can be annoying when you get a message in the console that a stop job is running for a certain service, and it is waiting for it to shutdown. But this can be fixed. Edit the /etc/systemd/system.conf … Read more
The sudo systemctl status command will show a tree view of all running processes on your Linux machine. This is quite comprehensive and very useful output. Here is a sample. 4.4 Mon Mar 04 jason@Yog-Sothoth 1: $ sudo systemctl status ● Yog-Sothoth State: running Jobs: 0 queued Failed: 0 units Since: Mon 2019-03-04 18:52:58 AEDT; … Read more
There are quite a few services running on Ubuntu, they can slow down bootup times and be very annoying. One of the best ways to find out which is to use this command. The systemd-analyze blame command. This will print out a list of the services started on boot. Here below is an example. This … Read more
The systemd-analyze command will print the time taken for the system to boot up. This separates the time for the kernel and the userspace environment. root@darkstar:~# systemd-analyze Startup finished in 4.728s (kernel) + 28.339s (userspace) = 33.068sroot@darkstar:~# systemd-analyze Startup finished in 4.728s (kernel) + 28.339s (userspace) = 33.068s This command will get the date and … Read more
The systemd init system may be used to get information about your running services. Here I am getting information about the openvpn service. jason@eyjafjallajkull:~$ systemctl -a status openvpn.service ● openvpn.service – LSB: Openvpn VPN service Loaded: loaded (/etc/init.d/openvpn) Active: active (running) since Mon 2015-04-13 14:57:18 AEST; 5h 2min ago Docs: man:systemd-sysv-generator(8) CGroup: /system.slice/openvpn.service └─1719 /usr/sbin/openvpn … Read more
Use the sudo hostnamectl set-hostname HOSTNAME to set a new hostname for your machine. This command does all of the steps in one go and takes the worry out of this task. Just close the terminal after entering this command and reopen it and the new hostname will be visible. Here I am setting a … Read more