About Debian and Linux
ยท 6 mins read
note
Change network from DHCP to Static
nano /etc/network/interfaces
# The primary network interface
allow-hotplug ens33
#iface ens33 inet dhcp
iface ens33 inet static
address 192.168.1.xx
netmask 255.255.255.0
gateway 192.168.1.xx
# restart network
systemctl restart networking
Allow ssh login
nano /etc/ssh/sshd_config
PermitRootLogin yes
PasswordAuthentication yes
disable ipv6
nano /etc/sysctl.conf
# Disable IPv6
net.ipv6.conf.all.disable_ipv6 = 1
net.ipv6.conf.default.disable_ipv6 = 1
net.ipv6.conf.lo.disable_ipv6 = 1
ifconfig command not found
apt install net-tools
docker install
curl -fsSL https://get.docker.com -o get-docker.sh
sudo sh get-docker.sh
docker compose install
# https://github.com/docker/compose/releases
wget -O docker-compose https://github.com/docker/compose/releases/download/v2.20.0/docker-compose-linux-x86_64
chmod +x docker-compose
mv docker-compose /usr/bin
unzip
# tar.gz
tar -zcvf xxx.tar.gz /usr/local/go
# tar.xz
tar -xvf xx.tar.xz
cd auto-execute ls
nano .bashrc
cd()
{
builtin cd "$@" && ls
}
source .bashrc
app install
golang install
wget https://go.dev/dl/go1.21.0.linux-amd64.tar.gz
tar -zcvf go1.21.0.linux-amd64.tar.gz /usr/local/go
nano .bashrc
# go
export PATH=$PATH:/usr/local/go/bin
- debian
- linux