How to disable known host check in ssh temporarily?
ssh -o "UserKnownHostsFile=/dev/null" -o "StrictHostKeyChecking=no" user@host
How to configure static IP on openSUSE?
Configure static ip address
Edit /etc/sysconfig/network/ifcfg-eth0
:
STARTMODE='auto'
BOOTPROTO='static'
IPADDR=10.0.0.99/24
NETMASK=255.255.255.0
Configure the DNS server
Edit /etc/sysconfig/network/config
:
NETCONFIG_DNS_STATIC_SERVERS="10.0.0.1"
Configure the default gateway
Create or edit /etc/sysconfig/network/routes
:
default 10.0.0.1 - -
Restart the network system
systemctl restart network
Burn ISO file to create bootable USB
dd bs=4M if=/home/ubuntu/ubuntu-21.10-live-server-amd64.iso of=/dev/sdb conv=fdatasync status=progress
Mount a crypto LUKS disk image
Run losetup
without parameters to find an available loop device index. Say if loop 0,1,2,3 exist, we can use 4.
-
Create the loop device:
losetup loop4 ./crypto_luks.img
-
Open the LUKS drive:
cryptsetup open /dev/loop4 archive
"archive" is an arbitrary name I selected. After entering the password, your drive should become available to mount:
mount /dev/mapper/archive /mnt