Alpine/Morefine: Difference between revisions
Jump to navigation
Jump to search
Line 252: | Line 252: | ||
| valign="top" | | | valign="top" | | ||
modprobe dummy | |||
ip link delete dummy0 | |||
|} | |} |
Revision as of 01:11, 23 January 2023
Install Gnome
setup-xorg-base rc-update add hwdrivers sysinit rc-update add mdev sysinit rc-service hwdrivers start rc-service mdev start apk add gnome apk add gnome-apps-core apk add gnome-apps-extra rc-service gdm start rc-update add gdm apk add bash apk add bash-completion apk add thunar-volman apk update apk upgrade adduser chorke -h /home/chorke adduser chorke wheel
setup-desktop gnome rc-update add hwdrivers sysinit rc-update add mdev sysinit rc-service hwdrivers start rc-service mdev start apk add gnome-apps-extra apk add bash bash-completion enabling gnome shell screen recording: apk add pipewire pipewire-media-session gst-plugin-pipewire
troubleshooting gnome shell screen: tail -n 100 -f var/log/gdm/greeter.log less var/log/gdm/greeter.log setup-devd udev
apk add bash
tee -a /etc/locale.conf >>/dev/null <<EOF
LANG=en_US.UTF-8
EOF
Install Xfce
free -h
adduser chorke -h /home/chorke
adduser chorke wheel
apk add doas vim
tee -a /etc/doas.conf >>/dev/null <<EOF
#
permit persist :wheel
EOF
cat /etc/apk/repositories
:'
http://dl-cdn.alpinelinux.org/alpine/v3.17/main
http://dl-cdn.alpinelinux.org/alpine/v3.17/community
#http://dl-cdn.alpinelinux.org/alpine/edge/main
#http://dl-cdn.alpinelinux.org/alpine/edge/community
#http://dl-cdn.alpinelinux.org/alpine/edge/testing
:'
setup-xorg-base
apk add xfce4 xfce4-terminal xfce4-screensaver lightdm-gtk-greeter dbus adwaita-icon-theme
rc-service lightdm start
rc-update add lightdm
rc-service dbus start
rc-update add dbus
apk add elogind polkit-elogind
reboot
Install QEMU
apk add qemu qemu-img qemu-system-x86_64 qemu-ui-gtk
Install LXD
cat /etc/apk/repositories
:'
http://dl-cdn.alpinelinux.org/alpine/v3.17/main
http://dl-cdn.alpinelinux.org/alpine/v3.17/community
#http://dl-cdn.alpinelinux.org/alpine/edge/main
#http://dl-cdn.alpinelinux.org/alpine/edge/community
#http://dl-cdn.alpinelinux.org/alpine/edge/testing
:'
apk update
apk upgrade
apk add lxd
# enable service
rc-update add lxd
rc-service lxd start
rc-service lxd status
# configure system
rc-update add cgroups
rc-service cgroups start
# add cgfs to pam.d/system-login
echo "session optional pam_cgfs.so -c freezer,memory,name=systemd,unified" >> /etc/pam.d/system-login
# add user and group idmaps to lxc config
echo "lxc.idmap = u 0 100000 65536" >> /etc/lxc/default.conf
echo "lxc.idmap = g 0 100000 65536" >> /etc/lxc/default.conf
# add root and other users
echo "root:100000:65536" >> /etc/subuid
echo "root:100000:65536" >> /etc/subgid
brctl addbr lxdbr0
tee -a /etc/network/interfaces >>/dev/null <<EOF
auto lxdbr0
iface lxdbr0 inet dhcp
bridge-ports eth0
EOF
Knowledge
df -hT fdisk -l apk update ip addr show ip link show |
apk add lsblk apk add parted apk add util-linux apk add smartmontools apk add e2fsprogs-extra |
lscpu lsblk apk add fuse apk add ntfs-3g ls -lah /dev/sda* |
| ||
parted -l badblocks -v /dev/sda1 > ~/bad_sectors.txt badblocks -v /dev/sda2 > ~/bad_sectors.txt badblocks -v /dev/sda3 > ~/bad_sectors.txt |
smartctl --version smartctl -H /dev/sda1 smartctl -H /dev/sda2 smartctl -H /dev/sda3 | |
| ||
apk add qemu apk add qemu-system-ppc apk add qemu-system-arm apk add qemu-system-i386 apk add qemu-system-x86_64 apk add qemu-system-aarch64 |
apk add networkmanager apk add networkmanager-ppp apk add networkmanager-ovs apk add networkmanager-adsl apk add networkmanager-openvpn apk add networkmanager-bluetooth |
apk add iwd apk add net-tools apk add networkmanager-cli apk add networkmanager-wifi rc-update add networkmanager rc-service networkmanager start |
| ||
apk add sudo setup-desktop gnome apk add qemu-system-ppc64 apk add qemu-system-riscv64 |
rc-status rc-status --list rc-status --manual rc-status --crashed |
rc-service --list rc-update add nginx rc-update del nginx rc-service --list | grep -i nginx |
| ||
ssh-keygen -f ~/.ssh/known_hosts -R '10.19.83.18' ssh-keygen -f ~/.ssh/known_hosts -R '10.19.83.19' ssh-keygen -f ~/.ssh/known_hosts -R '10.19.83.20' ssh-keygen -f ~/.ssh/known_hosts -R '10.19.83.61' |
apk add doas vim adduser chorke wheel cat /etc/group | grep chorke cat /etc/passwd | grep chorke | |
| ||
tee -a /etc/doas.conf >>/dev/null <<EOF
#
permit persist :wheel
EOF
|
modprobe dummy ip link delete dummy0 |
References
| ||