Search
I have installed mysql-server on Ubuntu 20.04 then I tried to sign into mysql-server using sudo mysql -u root but I have got Error: Can't connect to local MySQL server through socket '/var/run/mys...
It takes a long time to build even the source package for a PPA of a huge project, and while the build isn't finished my computer is under heavy load so I can barely navigate a browser. The frustra...
I'd like to use the answers in this post while using zsh: compgen -c # will list all the commands you could run. compgen -a # will list all the aliases you could run. compgen -b # will list a...
I don't know if this is universal or specific to my setup (zsh, GNOME Terminal, Xorg), but using "+yy (double quote, plus, Y, Y) instead of just yy works for me. Note this is the same command used...
A system daemon needs to create several files under /run/program-name/ (and possibly other subdirs of that). They are the PID file, and at least one Unix socket file (but maybe more). The FHS spe...
To get rid of it, I ran: $ sudo chmod o-t /opt/dell/srvadmin/var/log/openmanage/omcmdlog.xml $ ls -l /opt/dell/srvadmin/var/log/openmanage/omcmdlog.xml -rw-rw-r--. 1 root root 735 Dec 19 22:03...
Have I have the DPI on my laptop set in .Xresources with Xft.dpi: 192. I am outputting to the external monitor with: xrandr --output HDMI-2 --auto --rotate left --right-of eDP-1 Want I want ...
From man dpkg-source, -ss Specifies that the original source is available both as a directory and as a tarfile. dpkg-source will use the directory to create the diff, but the tarfile to ...
This was fixed after restart. I believe this was caused by updating without restarting. It's possible it also had to do with disconnecting the HDMI cable.
Problem I can rotate output, but it does not fill screen. Instead it rotates in place so that the right side of the screen goes off the monitor. xrandr --output HDMI-2 --auto --mode 1920x1080 --...
I'm playing with NAT, and have a script now that, at startup of my little Linux machine, creates some DNAT rules, which take one incoming special port, and forward that to another interface with a ...
I came up with three methods. Exit early Use exit early instead of the elif syntax. Basically shell is an interpreter. As soon as the parsing of the first if statement is finished, it will be e...
I have a few CentOS servers that I want to stay automatically up to date with yum-cron, and I want to get emails when there are problems but I do not want to get so many emails about repos being ou...
Further digging led me to this post on the FreeBSD forum, in which a user says that The functionality of the freetype module is contained in the libXfont library. And sure enough I managed to...
I have a GNU/Linux host that I use to aggregate syslog events from a few switches, printers, and generally less versatile hosts on my LAN. I set up rsyslog years ago to listen on UDP:514 and save ...
In Debian derivatives (of which Ubuntu is one), and more generally those distributions that use the Debian apt package manager tool suite, for packages to be "kept back" during an upgrade means tha...
From Selected-packages set (Portage) — Adding an atom without recompilation (yes, embarrassingly the very link in the question, the word "atom" put me off...), emerge --noreplace xournalpp --no...
I'm currently using Fedora 34 and want to install Fedora 35 while keeping around just my home folder. Currently I don't have a separate home partition, but I read online that it's easy to make one ...
I don't use Fedora myself, but from the documentation, it looks like it doesn't use LVM unless you explicitly set that up during installation, but rather Btrfs by default. How your system is actual...
The systemd manual gives a list of path where systemd looks for unit files. However, I want to isolate my units in a path of my own choosing. Is it possible to configure systemd to add some path t...
~/.config/systemd/user intended purely for units created and managed by the user manually, or are there any automated processes that expect to control it? For example, do packages or programs ever...
Grove's answer is likewise good, but OpenSSH introduced ProxyJump (-J) in 2016 with v7.3, making it even easier to chain SSH hosts together: ssh -J user@interstitial.example me@destination.example...
Historically, cron was the main way to schedule tasks on Linux. Briefly, there will be some file like /etc/crontab which will contain one line for each task. The line starts with a schedule string ...
A first quick solution I hacked up was to sync via NAS. Synology NAS served as a synchro point. I synced via git repo. etckeeper was used to sync machine config, pass was used to sync passwords. S...
The standard way to schedule tasks in most Linux systems nowadays is to use systemd timers. This requires writing a systemd timer config file, which has syntax similar to INI. This is summarized i...