July 25, 2024 in Ubuntu
sudo ubuntu-drivers autoinstall
snap remove docker
July 25, 2024 in Ubuntu
sudo swapoff -a -v
sudo rm /swapfile
#back up /etc/fstab:
sudo cp /etc/fstab /etc/fstab.bak
sudo sed -i '/\/swapfile/d' /etc/fstab
July 23, 2024 in Ubuntu
Thats because of the new Ubuntu installer. PVE will create a 100GB virtual disk but the ubuntu will only use part of that by default if you don’t manually tell the installer to use the full space. So you need to extend the VG, LV and filesystem inside the guest.

July 18, 2024 in Ubuntu
poorly Rendered face
poorly drawn face
poor facial details
poorly drawn hands
poorly rendered hands
low resolution
Images cut out at the top, left, right, bottom.
bad composition
mutated body parts
blurry image
disfigured
oversaturated
bad anatomy
deformed body features
out of frame, lowres, text, error, cropped, worst quality, low quality, jpeg artifacts, ugly, duplicate, morbid, mutilated, out of frame, extra fingers, mutated hands, poorly drawn hands, poorly drawn face, mutation, deformed, blurry, dehydrated, bad anatomy, bad proportions, extra limbs, cloned face, disfigured, gross proportions, malformed limbs, missing arms, missing legs, extra arms, extra legs, fused fingers, too many fingers, long neck, username, watermark, signature,
July 16, 2024 in Ubuntu
sudo apt update
sudo apt upgrade
sudo apt install openssh-server
sudo systemctl enable --now ssh
sudo systemctl status ssh / sudo systemctl disable ssh
sudo ufw status
sudo ufw allow ssh
ssh username@IP_address
July 13, 2024 in Ubuntu
First, download the Let’s Encrypt client, certbot.
As mentioned just above, we tested the instructions on Ubuntu 16.04, and these are the appropriate commands on that platform:
$ apt-get update
$ sudo apt-get install certbot
$ apt-get install python-certbot-nginx
With Ubuntu 18.04 and later, substitute the Python 3 version:
$ apt-get update
$ sudo apt-get install certbot
$ apt-get install python3-certbot-nginx
certbot can automatically configure NGINX for SSL/TLS. It looks for and modifies the server block in your NGINX configuration that contains a server_name directive with the domain name you’re requesting a certificate for. In our example, the domain is www.example.com.
server_name directive:server { listen 80 default_server; listen [::]:80 default_server; root /var/www/html; server_name example.com www.example.com; }$ nginx -t && nginx -s reloadThe NGINX plug‑in for certbot takes care of reconfiguring NGINX and reloading its configuration whenever necessary.
$ sudo certbot --nginx -d example.com -d www.example.comcertbot to configure your HTTPS settings, which involves entering your email address and agreeing to the Let’s Encrypt terms of service.If you look at domain‑name.conf, you see that certbot has modified it:
server { listen 80 default_server;
listen [::]:80 default_server;
root /var/www/html;
server_name example.com www.example.com;
listen 443 ssl; # managed by Certbot
# RSA certificate
ssl_certificate /etc/letsencrypt/live/example.com/fullchain.pem; # managed by Certbot
ssl_certificate_key /etc/letsencrypt/live/example.com/privkey.pem; # managed by Certbot
include /etc/letsencrypt/options-ssl-nginx.conf; # managed by Certbot
# Redirect non-https traffic to https
if ($scheme != "https") {
return 301 https://$host$request_uri;
} # managed by Certbot
}
Let’s Encrypt certificates expire after 90 days. We encourage you to renew your certificates automatically. Here we add a cron job to an existing crontab file to do this.
$ crontab -ecertbot command to run daily. In this example, we run the command every day at noon. The command checks to see if the certificate on the server will expire within the next 30 days, and renews it if so. The --quiet directive tells certbot not to generate output.0 12 * * * /usr/bin/certbot renew --quietJuly 2, 2024 in Ubuntu
who -b command : Shows the time of last Linux system boot time.
last -x|grep shutdown | head -1 : Use the last reboot and this command to display all the previous reboot date and time for the system.12 Dec 2020
March 18, 2024 in Ubuntu
To remove the repeating System restart recommended on the closest maintenance window message open the terminal and type:
sudo apt update && sudo apt upgrade
sudo reboot
January 15, 2024 in Ubuntu
You need to navigate to /etc/apache2/sites-available and then run the command:
sudo a2ensite *
It will enable all sites in the directory. (the files should be somthing like xxx.conf)
And then reload apache using sudo service apache2 reload.
So your command sequence should be like so:
cd /etc/apache2/sites-available
sudo a2ensite *
sudo service apache2 reload