If you would like to convert an epub file to pdf in Linux, you can use calibre.
First install it using
sudo apt-get install calibre
and then you should be able to use it to convert the file like
ebook-convert file.epub file.pdf
If you would like to convert an epub file to pdf in Linux, you can use calibre.
First install it using
sudo apt-get install calibre
and then you should be able to use it to convert the file like
ebook-convert file.epub file.pdf
As described in the post [here](https://itsfoss.com/key-is-stored-in-legacy-trusted-gpg/) you would need to export the key to its own file under the trusted.gpg.d directory.
So for example if the warning is for something like forticlient, first find the key using sudo apt-key gpg list
and then taking the last eight characters and removing the space, export the key to its file (ie forticlient.gpg)
sudo apt-key export 5E54716D | sudo gpg --dearmour -o /etc/apt/trusted.gpg.d/forticlient.gpg
To sort the files in a directory use the following
du -sh -- * | sort -h
Taken from https://unix.stackexchange.com/a/4682
After upgrading a PostgreSQL instance from version 9.6 to the currently latest version 15.3, your application cannot connect to the server, giving an authentication error even if the user/password used is still the same.
This seems to be the result of a change in the method used in the pg_hba.conf file.
Version 9.6 uses md5 but version 15.3 uses scram-sha-256
Changing this in the file pg_hba.conf file from scram-sha-256 to md5 and reloading the configuration file from inside the database with select pg_reload_conf();
, results in the application being able to connect to the database server again.
Update: It is possible to use the recommended scram-sha-256 hash, by doing the following:
#password_encryption = scram-sha-256 # scram-sha-256 or md5
in file /var/lib/postgresql/data/pgdata/postgresql.conf
select pg_reload_conf();
production=# alter user user_name with password 'password';
When trying to use Nextcloud’s occ (ownCloud Console) command and it’s not possible to use sudo or su (installation on Debian GNU/Linux 11), you can try with the following command (you may have to change the paths to php and occ).
runuser --user www-data -- /usr/local/bin/php /var/www/html/occ user:list
This is quite possibly caused by one of the limits set too low. It is common when using promtail (with Loki for example) to tail log files.
One of the ways to get over this is to increase the value (in this example max_user_instances) either for the session or by making the change permanent by adding to a file (/etc/sysctl.conf).
For testing and doing it for the session, login to the affected server and do the following
ubuntu@server:~$ cat /proc/sys/fs/inotify/max_user_instances 128 ubuntu@server:~$ sudo sysctl fs.inotify.max_user_instances=8192 fs.inotify.max_user_instances = 8192 ubuntu@server:~$ cat /proc/sys/fs/inotify/max_user_instances 8192
To get the total number of open file descriptors use the following
awk '{print $1}' /proc/sys/fs/file-nr
Get the list of zombie processes:
ps aux | awk '{if($8=="Z") print}'
Get the parent process of each of the processes listed above (second column)
ps -o ppid= -p 490392
Kill the parent process from the above output
sudo kill -9 3167559
If you would like to add the EHLO to the smtp url used in curl you will have to add it at the end of the url (test.example.com), like this:
--url "smtp:/smtp-relay.gmail.com:587/test.example.com"
If you would like to split a large zip file with 7zip, in 1GB files for example, you can use the following
7z -v1g a documents_multipart.7z dir/