We often get asked, if there's a simple way to join PDFs from many images under linux. The task is very trivial, if you have 1-2 images, as you can use many of the graphical applications. If you have 10-20 or more, we recommend pdfjoin. It runs under Linux on a command line and allows for a quick images to PDF combine.
We regularly post scripts and script snippets that we have found useful in our day-to-day IT support tasks. Here's a quick way to help determine if the week is odd or even using a bash script. You can replace the echo "even" and "odd" with whatever functions you are looking to perform, such as weekly backups for example. Although not tested, this script should also work on any version of Apple's Mac.
Copy and paste this into a file:
The widely used ifconfig is missing from Centos 7.X version of Linux with minimal install. To get it back, run the following command:
yum install net-tools
The command will then be available as usual.
If you don't want to use ifconfig and are wondering how else you can find the IP address, you can run this command:
Due to some corruption issue during ubuntu (and ubuntu based sytems), this error may come up:
apt: relocation error: /usr/lib/x86_64-linux-gnu/libapt-private.so.0.0: symbol _ZN9pkgSystem9LockInnerEv, version APTPKG_5.0 not defined in file libapt-pkg.so.5.0 with link time reference
There's no clear answer on how to fix this or why it happens, but it corrupts the file libapt-private.so.0.0.0. One way to resolve the issue is to copy the file from another ubuntu 16.04 install. (Or you can download it from here: libapt-private.so.0.0.0 version x64)
If a linux reboot fails by just running the reboot command (sometimes there are run away or hanging processes), you may get the following errors (if you view the logs of systemctl, it will give you a better indication of what is crashing and not letting it reboot):
Failed to start reboot.target: Connection timed out
See system logs and 'systemctl status reboot.target' for details.
A quick way to fix this (short of pulling the plug), is to force reboot using systemctl: