- Ventoy is an open source tool to create bootable USB drive for ISO/WIM/IMG/VHD(x)/EFI files.
- With ventoy, you don’t need to format the disk over and over, you just need to copy the ISO/WIM/IMG/VHD(x)/EFI files to the USB drive and boot them directly.
- You can copy many files at a time and ventoy will give you a boot menu to select them.
- x86 Legacy BIOS, IA32 UEFI, x86_64 UEFI, ARM64 UEFI and MIPS64EL UEFI are supported in the same way.
- Most type of OS supported (Windows/WinPE/Linux/ChromeOS/Unix/VMware/Xen…).
How to install SSL (Let’s Encrypt) for the HestiaCP admin panel
When you go to panel url with port 8083 — you can see SSL error in your browser.
Here’s what you can do to fix that:
1. If you don’t have WEB domain — add WEB Domain in panel. I will use my domain codebe.com for example.
2. Go to WEB domain edit which one uses for panel:
3. Enable SSL certificate for domain:
4. Connect to your server over SSH.
5. Get information for changing hestia-nginx config. Copy full path to certificate and key for you domain, for example, I have this path:
/home/codebe/conf/web/codebe.com/ssl
And I’ve this files in current directory:
799435-codebe.com.crt 799435-codebe.com.key
6. Open file in your favorite text editor:
/usr/local/hestia/nginx/conf/nginx.conf
7. Change parameters for hestia-nginx server:
.... server { .... ssl_certificate /home/codebe/conf/web/codebe.com/ssl/799435-codebe.com.crt; ssl_certificate_key /home/codebe/conf/web/codebe.com/ssl/799435-codebe.com.key; .... } ....
8. Restart HestiaCP (it’s working for Debian 11):
service hestia restart
9. Well done!
How to change table default charset of a Mysql table?
ALTER TABLE talbe_name_in_database CONVERT TO CHARACTER SET utf8;
Install Java 8 on Debian 8 (Jessie)
Download Linux x64 from https://www.java.com/en/download/ and perform commands below from root or sudo:
tar xzvf jre-8u291-linux-x64.tar.gz mv jre1.8.0_291 /usr/lib/jvm/jre1.8.0_291 update-alternatives --install /usr/bin/java java /usr/lib/jvm/jre1.8.0_291/bin/java 1 java -version update-alternatives --config java
Resolve Error (AWS Free Tier and Terraform): Error launching source instance: VPCIdNotSpecified: No default VPC for this user. GroupName is only supported for EC2-Classic and default VPC.
When you use Amazon Free Tier period and want to run free EC2 instance and when you get error:
Error: Error launching source instance: VPCIdNotSpecified: No default VPC for this user. GroupName is only supported for EC2-Classic and default VPC.
You need to create Security Group resource (example for port 80 for http server):
resource "aws_security_group" "allow_http" { name = "allow_http" ingress { from_port = 80 to_port = 80 protocol = "tcp" cidr_blocks = ["0.0.0.0/0"] ipv6_cidr_blocks = ["::/0"] } egress { from_port = 0 to_port = 0 protocol = "-1" cidr_blocks = ["0.0.0.0/0"] ipv6_cidr_blocks = ["::/0"] } }
Mount VirtualBox vdi image (debian, ubuntu)
You can use qemu package.
apt-get install qemu
After you can check and load network block device kernel-module:
rmmod nbd modprobe nbd max_part=8
Then you connect image:
qemu-nbd -c /dev/nbd0 image.vdi
And mount (don’t forget create mount directory /media/image):
mount /dev/nbd0p1 /media/image
And unmount:
qemu-nbd -d /dev/nbd0