Linux Lấy IP host từ Docker Container Lấy IP host Log vào Docker container để cài mấy lệnh sau apt-get update -y apt-get install -y iputils-ping apt install net-tools Sau đó check netmask container đang chạy là bao nhiêu Check […]
Góp nhặt của một kẻ mù công nghệ :p
Linux Lấy IP host từ Docker Container Lấy IP host Log vào Docker container để cài mấy lệnh sau apt-get update -y apt-get install -y iputils-ping apt install net-tools Sau đó check netmask container đang chạy là bao nhiêu Check […]
Fix The repository no longer has a Release file on Ubuntu Xử lý lỗi The repository no longer has a Release file trên Ubuntu https://azdigi.com/blog/linux-server/the-repository-no-longer-has-a-release-file/ I. Giới thiệu và nguyên nhân Trong quá trình sử dụng hệ điều hành Ubuntu […]
[Linux] Adjust and increase the capacity of VDI virtual drive to install Ubuntu on VirtualBox Problems encountered I have deployed an ubuntu server on the virtualbox virtualization platform, I divided the hard drive space is 200GB, but after creating and […]
Linux remove nginx completely Removes all but config files. sudo apt-get remove nginx nginx-common Removes everything. sudo apt-get purge nginx nginx-common After using any of the above commands, use this in order to remove dependencies used by nginx which are […]
Ubuntu Linux Change Hostname Ubuntu change hostname command The procedure to change the computer name on Ubuntu Linux: Type the following command to edit /etc/hostname using nano or vi text editor: sudo nano /etc/hostname Delete the old name and setup […]
Docker clear unused Docker images, volumes https://stackoverflow.com/questions/32723111/how-to-remove-old-and-unused-docker-images # unused Docker images sudo docker image prune -a # unused Docker volumes sudo docker volume prune
[Linux] Kiểm tra dung lượng file, folder du -a /webdir/ | sort -n -r | head -n 20 sudo du -a /webdir/ | sort -n -r | head -n 20 find -type f -exec du -Sh {} + | sort […]
[Rclone] Config rclone to support diffie-hellman-group-exchange-sha256 diffie-hellman-group-exchange-sha1 Err info [email protected]:/$ rclone mount backup_sftp:/NongNghiep/ /gdrive2/ –allow-non-empty 2022/05/25 03:09:25 Failed to create file system for "backup_sftp:/NongNghiep/": NewFs: couldn't connect SSH: ssh: handshake failed: ssh: no common algorithm for key exchange; client offered: […]
Cài Docker Compose trên Ubuntu (Linux) Lỗi Unable to locate package docker-compose-plugin Ban đầu mình cài với lệnh sudo apt install docker-compose-plugin, tuy nhiên bị lỗi sau: Unable to locate package docker-compose-plugin [email protected]:/nongnghiep/docker/postgresql$ sudo apt-get update Hit:1 http://archive.ubuntu.com/ubuntu bionic InRelease […]
[Install SSL Certificate into Linux] Installing Certificate PFX into Unbuntu Linux Export Private Key and Certificate from PFX file Export the Private Key openssl pkcs12 -in domain.com.pfx -nocerts -out domain.com.pem -nodes Export the Certificate openssl pkcs12 -in domain.com.pfx -nokeys -out […]
rclone – Fatal error: failed to mount FUSE fs Error info 2022/05/10 04:07:15 mount helper error: fusermount: option allow_other only allowed if 'user_allow_other' is set in /etc/fuse.conf 2022/05/10 04:07:15 Fatal error: failed to mount FUSE fs: fusermount: exit status 1 […]
rclone – couldn’t connect ssh: ssh: must specify HostKeyCallback Error info Fix rclone – couldn’t connect ssh: ssh: must specify HostKeyCallback https://github.com/rclone/rclone/issues/3557#issuecomment-533618145 sudo curl https://rclone.org/install.sh | sudo bash References https://rclone.org/downloads/ https://github.com/rclone/rclone/issues/3557#issuecomment-533618145
[Linux Screen] Cannot make directory ‘/var/run/screen’: Permission denied Error info Sometime, usually after a crash or sudden shutdown, screen refuses to start. Commands like screen screen -ls screen -r screen -d result in the following output Cannot make directory ‘/var/run/screen’: Permission denied […]
How to clear the contents of a file from the command line? You can use the user command : truncate truncate -s 0 test.txt ("-s 0" to specify the size) http://www.commandlinefu.com/commands/view/12/empty-a-file https://superuser.com/questions/90008/how-to-clear-the-contents-of-a-file-from-the-command-line
Fix The repository … no longer has a Release file? Run follow command apt-get dist-upgrade