4
« آخرین ارسال توسط norouzi90 دیروز ساعت 12:33 بظ »
خلاصه این موضوع در یکجا با ویرایش :
Install+Debian 13+Debootstrap+systemd+minimal+the Arch way :
#######################Install+Debian 13+Debootstrap+systemd+minimal+the Arch way##########################
###########################################################################################################
##### This is how my system partitioning is, you can change them according to your system partitioning.####
##### /dev/sda1 for efi, /dev/sda2 for swap, /dev/sda3 for root, /dev/sda4 for home########################
##### You must use the Debian live distribution.###########################################################
###########################################################################################################
##### Before you run these commands, you should first partition your hard drive, for example with gparted.#
##### The mkfs commands used here are only for formatting the desired partition, not for creating it.######
##### For example, we formatted the partition with mkfs to ext4 or fat 32.#################################
###########################################################################################################
##### In the following commands, replace yourhostname with your desired host name and yourusername ########
##### with your desired username.##########################################################################
###########################################################################################################
##### On the command line, be sure to note the difference between user@debian:~$ and ######################
##### root@debian:~# and root@debian:/#, which represent completely different paths.#######################
##### #####################################################################################################
##### you need to decide if you want sudo or doas in order to elevate your user’s privileges for###########
##### updates, etc… This is your choice.Debian provides a pre-configured sudoers file, and you ############
##### probably don’t need to change anything, but it’s wise to verify that the line #######################
##### under “allow members of group sudo …” is not commented out with the cat /etc/sudoers command.########
##### Look at the output, and if the line is commented out, use the visudo command and uncomment it.#######
###########################################################################################################
user@debian:~$ sudo apt install tmux
user@debian:~$ tmux
user@debian:~$ sudo su -
root@debian:~#
root@debian:~# apt update && apt install debootstrap arch-install-scripts -y
root@debian:~# mkfs.fat -F 32 /dev/sda1
root@debian:~# mkswap /dev/sda2
root@debian:~# swapon /dev/sda2
root@debian:~# mkfs.ext4 /dev/sda3
root@debian:~# mkfs.ext4 /dev/sda4
root@debian:~# mount /dev/sda3 /mnt
root@debian:~# mkdir -p /mnt/{boot,home}
root@debian:~# mount /dev/sda4 /mnt/home
root@debian:~# mkdir -p /mnt/boot/efi
root@debian:~# mount /dev/sda1 /mnt/boot/efi
root@debian:~# mount | grep sda
root@debian:~# ls /usr/share/debootstrap/scripts/
root@debian:~# /usr/sbin/debootstrap --variant=minbase --include=vim trixie /mnt http://deb.debian.org/debian/
root@debian:~# genfstab -U /mnt >> /mnt/etc/fstab
root@debian:~# echo deb http://deb.debian.org/debian trixie main contrib non-free-firmware non-free > /mnt/etc/apt/sources.list
root@debian:~# echo deb http://deb.debian.org/debian-security trixie-security main contrib non-free-firmware non-free >> /mnt/etc/apt/sources.list
root@debian:~# echo deb http://deb.debian.org/debian/ trixie-updates main contrib non-free-firmware non-free >> /mnt/etc/apt/sources.list
root@debian:~# arch-chroot /mnt
root@debian:/#
root@debian:/# apt update
root@debian:/# apt install systemd systemd-sysv libpam-systemd libsystemd0
root@debian:/# apt install linux-image-amd64
root@debian:/# dpkg-reconfigure tzdata
root@debian:/# apt install network-manager
root@debian:/# echo "yourhostname" > /etc/hostname
root@debian:/# echo "127.0.0.1 localhost yourhostname" > /etc/hosts
root@debian:/# echo "::1 localhost ip6-localhost ip6-loopback" >> /etc/hosts
root@debian:/# echo "fe00::0 ip6-localnet" >> /etc/hosts
root@debian:/# echo "ff00::0 ip6-mcastprefix" >> /etc/hosts
root@debian:/# echo "ff02::1 ip6-allnodes" >> /etc/hosts
root@debian:/# echo "ff02::2 ip6-allrouters" >> /etc/hosts
root@debian:/# apt install locales
root@debian:/# dpkg-reconfigure locales
root@debian:/# apt install console-setup
root@debian:/# dpkg-reconfigure keyboard-configuration
root@debian:/# passwd
root@debian:/# useradd -m yourusername
root@debian:/# passwd yourusername
root@debian:/# usermod -aG cdrom,floppy,audio,dip,video,plugdev,netdev yourusername
root@debian:/# usermod -s /bin/bash yourusername
root@debian:/# apt install sudo
root@debian:/# usermod -aG sudo yourusername
root@debian:/# cat /etc/sudoers
root@debian:/# apt install e2fsprogs
root@debian:/# apt install firmware-linux
root@debian:/# apt install grub-efi-amd64
root@debian:/# grub-install --target=x86_64-efi --efi-directory=/boot/efi
root@debian:/# update-grub
root@debian:/# apt clean
root@debian:/# exit
root@debian:~# rm /mnt/etc/resolv.conf
root@debian:~# umount /dev/sda1
root@debian:~# umount /dev/sda4
root@debian:~# umount /dev/sda3
root@debian:~# reboot
########################################################################################################################
########################################################################################################################
#################################################################################################################
Install+Debian 13+Debootstrap+SysV+MATE Desktop+the Arch way :
#######################Install+Debian 13+Debootstrap+SysV+MATE Desktop+the Arch way########################
###########################################################################################################
##### This is how my system partitioning is, you can change them according to your system partitioning.####
##### /dev/sda1 for efi, /dev/sda2 for swap, /dev/sda3 for root, /dev/sda4 for home #######################
##### You must use the Debian live distribution.###########################################################
###########################################################################################################
##### Before you run these commands, you should first partition your hard drive, for example with gparted.#
##### The mkfs commands used here are only for formatting the desired partition, not for creating it.######
##### For example, we formatted the partition with mkfs to ext4 or fat 32.#################################
###########################################################################################################
##### In the following commands, replace yourhostname with your desired host name and yourusername ########
##### with your desired username.##########################################################################
###########################################################################################################
##### On the command line, be sure to note the difference between user@debian:~$ and ######################
##### root@debian:~# and root@debian:/#, which represent completely different paths.#######################
##### #####################################################################################################
##### you need to decide if you want sudo or doas in order to elevate your user’s privileges for###########
##### updates, etc… This is your choice.Debian provides a pre-configured sudoers file, and you ############
##### probably don’t need to change anything, but it’s wise to verify that the line #######################
##### under “allow members of group sudo …” is not commented out with the cat /etc/sudoers command.########
##### Look at the output, and if the line is commented out, use the visudo command and uncomment it.#######
###########################################################################################################
#####I am installing the Mate desktop here, but you can install another desktop according to your taste.###
###########################################################################################################
#####I am installing the lightdm display manager here, but you can install another display manager#########
#####according to your taste.##############################################################################
###########################################################################################################
user@debian:~$ sudo apt install tmux
user@debian:~$ tmux
user@debian:~$ sudo su -
root@debian:~#
root@debian:~# apt update && apt install debootstrap arch-install-scripts -y
root@debian:~# mkfs.fat -F 32 /dev/sda1
root@debian:~# mkswap /dev/sda2
root@debian:~# swapon /dev/sda2
root@debian:~# mkfs.ext4 /dev/sda3
root@debian:~# mkfs.ext4 /dev/sda4
root@debian:~# mount /dev/sda3 /mnt
root@debian:~# mkdir -p /mnt/{boot,home}
root@debian:~# mount /dev/sda4 /mnt/home
root@debian:~# mkdir -p /mnt/boot/efi
root@debian:~# mount /dev/sda1 /mnt/boot/efi
root@debian:~# mount | grep sda
root@debian:~# ls /usr/share/debootstrap/scripts/
root@debian:~# /usr/sbin/debootstrap --variant=minbase --include=vim trixie /mnt http://deb.debian.org/debian/
root@debian:~# genfstab -U /mnt >> /mnt/etc/fstab
root@debian:~# echo deb http://deb.debian.org/debian trixie main contrib non-free-firmware non-free > /mnt/etc/apt/sources.list
root@debian:~# echo deb http://deb.debian.org/debian-security trixie-security main contrib non-free-firmware non-free >> /mnt/etc/apt/sources.list
root@debian:~# echo deb http://deb.debian.org/debian/ trixie-updates main contrib non-free-firmware non-free >> /mnt/etc/apt/sources.list
root@debian:~# arch-chroot /mnt
root@debian:/#
root@debian:/# apt update
root@debian:/# apt install sysvinit-core sysv-rc orphan-sysvinit-scripts elogind libpam-elogind
root@debian:/# apt-mark hold systemd systemd-sysv libpam-systemd
root@norouzi:~# cat > /etc/apt/preferences.d/nosystemd << "EOF"
> Package: systemd
> Pin: release *
> Pin-Priority: -1
>
> Package: systemd-sysv
> Pin: release *
> Pin-Priority: -1
>
> Package: libpam-systemd
> Pin: release *
> Pin-Priority: -1
> EOF
root@debian:/#
root@norouzi:~# apt-mark showhold
root@debian:/# apt install linux-image-amd64
root@debian:/# dpkg-reconfigure tzdata
root@debian:/# apt install network-manager
root@debian:/# echo "yourhostname" > /etc/hostname
root@debian:/# echo "127.0.0.1 localhost" > /etc/hosts
root@debian:/# echo "127.0.1.1 yourhostname" >> /etc/hosts
root@debian:/# echo "::1 localhost ip6-localhost ip6-loopback" >> /etc/hosts
root@debian:/# echo "fe00::0 ip6-localnet" >> /etc/hosts
root@debian:/# echo "ff00::0 ip6-mcastprefix" >> /etc/hosts
root@debian:/# echo "ff02::1 ip6-allnodes" >> /etc/hosts
root@debian:/# echo "ff02::2 ip6-allrouters" >> /etc/hosts
root@debian:/# apt install locales
root@debian:/# dpkg-reconfigure locales
root@debian:/# apt install console-setup
root@debian:/# dpkg-reconfigure keyboard-configuration
root@debian:/# passwd
root@debian:/# useradd -m yourusername
root@debian:/# passwd yourusername
root@debian:/# usermod -aG cdrom,floppy,audio,dip,video,plugdev,netdev yourusername
root@debian:/# usermod -s /bin/bash yourusername
root@debian:/# apt install sudo
root@debian:/# usermod -aG sudo yourusername
root@debian:/# cat /etc/sudoers
root@debian:/# mkdir /etc/inittab.d
root@debian:/# apt install firmware-linux
root@debian:/# apt install lightdm
root@debian:/# apt install mate-desktop-environment
root@debian:/# apt install mate-desktop-environment-extras
root@debian:/# apt install grub-efi-amd64
root@debian:/# grub-install --target=x86_64-efi --efi-directory=/boot/efi
root@debian:/# update-grub
root@debian:/# apt clean
root@debian:/# exit
root@debian:~# rm /mnt/etc/resolv.conf
root@debian:~# umount /dev/sda1
root@debian:~# umount /dev/sda4
root@debian:~# umount /dev/sda3
root@debian:~# reboot
###########################################################################################################
#####After rebooting, if you do not see the Plymouth page during boot and shutdown, follow these steps#####
#####to resolve the issue:#################################################################################
#####add the splash option to the file /etc/default/grub , as follows: ##################################
GRUB_CMDLINE_LINUX_DEFAULT="quiet splash"
##### then ##############################
root@debian:~# update-grub
root@debian:~# reboot
########################################################################################################################
########################################################################################################################
#################################################################################################################
Install+Debian 13+Debootstrap+OpenRC+MATE Desktop+the Arch way :
#######################Install+Debian 13+Debootstrap+OpenRC+MATE Desktop+the Arch way######################
###########################################################################################################
##### This is how my system partitioning is, you can change them according to your system partitioning.####
##### /dev/sda1 for efi, /dev/sda2 for swap, /dev/sda3 for root, /dev/sda4 for home #######################
##### You must use the Debian live distribution.###########################################################
###########################################################################################################
##### Before you run these commands, you should first partition your hard drive, for example with gparted.#
##### The mkfs commands used here are only for formatting the desired partition, not for creating it.######
##### For example, we formatted the partition with mkfs to ext4 or fat 32.#################################
###########################################################################################################
##### In the following commands, replace yourhostname with your desired host name and yourusername ########
##### with your desired username.##########################################################################
###########################################################################################################
##### On the command line, be sure to note the difference between user@debian:~$ and ######################
##### root@debian:~# and root@debian:/#, which represent completely different paths.#######################
##### #####################################################################################################
##### you need to decide if you want sudo or doas in order to elevate your user’s privileges for###########
##### updates, etc… This is your choice.Debian provides a pre-configured sudoers file, and you ############
##### probably don’t need to change anything, but it’s wise to verify that the line #######################
##### under “allow members of group sudo …” is not commented out with the cat /etc/sudoers command.########
##### Look at the output, and if the line is commented out, use the visudo command and uncomment it.#######
###########################################################################################################
#####I am installing the Mate desktop here, but you can install another desktop according to your taste.###
###########################################################################################################
#####I am installing the lightdm display manager here, but you can install another display manager#########
#####according to your taste.##############################################################################
###########################################################################################################
user@debian:~$ sudo apt install tmux
user@debian:~$ tmux
user@debian:~$ sudo su -
root@debian:~#
root@debian:~# apt update && apt install debootstrap arch-install-scripts -y
root@debian:~# mkfs.fat -F 32 /dev/sda1
root@debian:~# mkswap /dev/sda2
root@debian:~# swapon /dev/sda2
root@debian:~# mkfs.ext4 /dev/sda3
root@debian:~# mkfs.ext4 /dev/sda4
root@debian:~# mount /dev/sda3 /mnt
root@debian:~# mkdir -p /mnt/{boot,home}
root@debian:~# mount /dev/sda4 /mnt/home
root@debian:~# mkdir -p /mnt/boot/efi
root@debian:~# mount /dev/sda1 /mnt/boot/efi
root@debian:~# mount | grep sda
root@debian:~# ls /usr/share/debootstrap/scripts/
root@debian:~# /usr/sbin/debootstrap --variant=minbase --include=vim trixie /mnt http://deb.debian.org/debian/
root@debian:~# genfstab -U /mnt >> /mnt/etc/fstab
root@debian:~# echo deb http://deb.debian.org/debian trixie main contrib non-free-firmware non-free > /mnt/etc/apt/sources.list
root@debian:~# echo deb http://deb.debian.org/debian-security trixie-security main contrib non-free-firmware non-free >> /mnt/etc/apt/sources.list
root@debian:~# echo deb http://deb.debian.org/debian/ trixie-updates main contrib non-free-firmware non-free >> /mnt/etc/apt/sources.list
root@debian:~# arch-chroot /mnt
root@debian:/#
root@debian:/# apt update
root@debian:/# apt install openrc sysvinit-core orphan-sysvinit-scripts elogind libpam-elogind
root@debian:/# apt-mark hold systemd systemd-sysv libpam-systemd
root@norouzi:~# cat > /etc/apt/preferences.d/nosystemd << "EOF"
> Package: systemd
> Pin: release *
> Pin-Priority: -1
>
> Package: systemd-sysv
> Pin: release *
> Pin-Priority: -1
>
> Package: libpam-systemd
> Pin: release *
> Pin-Priority: -1
> EOF
root@debian:/#
root@norouzi:~# apt-mark showhold
root@debian:/# apt install linux-image-amd64
root@debian:/# dpkg-reconfigure tzdata
root@debian:/# apt install network-manager
root@debian:/# echo "yourhostname" > /etc/hostname
root@debian:/# echo "127.0.0.1 localhost" > /etc/hosts
root@debian:/# echo "127.0.1.1 yourhostname" >> /etc/hosts
root@debian:/# echo "::1 localhost ip6-localhost ip6-loopback" >> /etc/hosts
root@debian:/# echo "fe00::0 ip6-localnet" >> /etc/hosts
root@debian:/# echo "ff00::0 ip6-mcastprefix" >> /etc/hosts
root@debian:/# echo "ff02::1 ip6-allnodes" >> /etc/hosts
root@debian:/# echo "ff02::2 ip6-allrouters" >> /etc/hosts
root@debian:/# apt install locales
root@debian:/# dpkg-reconfigure locales
root@debian:/# apt install console-setup
root@debian:/# dpkg-reconfigure keyboard-configuration
root@debian:/# passwd
root@debian:/# useradd -m yourusername
root@debian:/# passwd yourusername
root@debian:/# usermod -aG cdrom,floppy,audio,dip,video,plugdev,netdev yourusername
root@debian:/# usermod -s /bin/bash yourusername
root@debian:/# apt install sudo
root@debian:/# usermod -aG sudo yourusername
root@debian:/# cat /etc/sudoers
root@debian:/# mkdir /etc/inittab.d
root@debian:/# apt install firmware-linux
root@debian:/# apt install lightdm
root@debian:/# apt install mate-desktop-environment
root@debian:/# apt install mate-desktop-environment-extras
root@debian:/# apt install grub-efi-amd64
root@debian:/# grub-install --target=x86_64-efi --efi-directory=/boot/efi
root@debian:/# update-grub
root@debian:/# apt clean
root@debian:/# exit
root@debian:~# rm /mnt/etc/resolv.conf
root@debian:~# umount /dev/sda1
root@debian:~# umount /dev/sda4
root@debian:~# umount /dev/sda3
root@debian:~# reboot
###########################################################################################################
##### After rebooting, if you see the error "ERROR: plymouth failed to start. " in the boot log.###########
##### Method 1: Remove the plymouth package ###############################################################
###########################################################################################################
##### Method 2:############################################################################################
##### In the second method, you will not remove the plymouth package, but you will make further############
#####adjustments until the plymouth-related error is resolved.#############################################
root@debian:~# sudo update-rc.d -f plymouth remove
root@debian:~# sudo update-rc.d -f plymouth-log remove
######And add the splash option to the file /etc/default/grub , as follows: #############################
GRUB_CMDLINE_LINUX_DEFAULT="quiet splash"
##### then ##############################
root@debian:~# update-grub
root@debian:~# reboot
########################################################################################################################
########################################################################################################################
#################################################################################################################
Install+Debian 13+Debootstrap+Runit+MATE Desktop+the Arch way :
#######################Install+Debian 13+Debootstrap+Runit+MATE Desktop+the Arch way#######################
###########################################################################################################
##### This is how my system partitioning is, you can change them according to your system partitioning.####
##### /dev/sda1 for efi, /dev/sda2 for swap, /dev/sda3 for root, /dev/sda4 for home #######################
##### You must use the Debian live distribution.###########################################################
###########################################################################################################
##### Before you run these commands, you should first partition your hard drive, for example with gparted.#
##### The mkfs commands used here are only for formatting the desired partition, not for creating it.######
##### For example, we formatted the partition with mkfs to ext4 or fat 32.#################################
###########################################################################################################
##### In the following commands, replace yourhostname with your desired host name and yourusername ########
##### with your desired username.##########################################################################
###########################################################################################################
##### On the command line, be sure to note the difference between user@debian:~$ and ######################
##### root@debian:~# and root@debian:/#, which represent completely different paths.#######################
##### #####################################################################################################
##### you need to decide if you want sudo or doas in order to elevate your user’s privileges for###########
##### updates, etc… This is your choice.Debian provides a pre-configured sudoers file, and you ############
##### probably don’t need to change anything, but it’s wise to verify that the line #######################
##### under “allow members of group sudo …” is not commented out with the cat /etc/sudoers command.########
##### Look at the output, and if the line is commented out, use the visudo command and uncomment it.#######
###########################################################################################################
#####I am installing the Mate desktop here, but you can install another desktop according to your taste.###
###########################################################################################################
#####I am installing the xdm display manager here, but you can install another display manager#############
#####according to your taste.##############################################################################
###########################################################################################################
user@debian:~$ sudo apt install tmux
user@debian:~$ tmux
user@debian:~$ sudo su -
root@debian:~#
root@debian:~# apt update && apt install debootstrap arch-install-scripts -y
root@debian:~# mkfs.fat -F 32 /dev/sda1
root@debian:~# mkswap /dev/sda2
root@debian:~# swapon /dev/sda2
root@debian:~# mkfs.ext4 /dev/sda3
root@debian:~# mkfs.ext4 /dev/sda4
root@debian:~# mount /dev/sda3 /mnt
root@debian:~# mkdir -p /mnt/{boot,home}
root@debian:~# mount /dev/sda4 /mnt/home
root@debian:~# mkdir -p /mnt/boot/efi
root@debian:~# mount /dev/sda1 /mnt/boot/efi
root@debian:~# mount | grep sda
root@debian:~# ls /usr/share/debootstrap/scripts/
root@debian:~# /usr/sbin/debootstrap --variant=minbase --include=vim trixie /mnt http://deb.debian.org/debian/
root@debian:~# genfstab -U /mnt >> /mnt/etc/fstab
root@debian:~# echo deb http://deb.debian.org/debian trixie main contrib non-free-firmware non-free > /mnt/etc/apt/sources.list
root@debian:~# echo deb http://deb.debian.org/debian-security trixie-security main contrib non-free-firmware non-free >> /mnt/etc/apt/sources.list
root@debian:~# echo deb http://deb.debian.org/debian/ trixie-updates main contrib non-free-firmware non-free >> /mnt/etc/apt/sources.list
root@debian:~# arch-chroot /mnt
root@debian:/#
root@debian:/# apt update
root@debian:/# apt install runit-init runit-services orphan-sysvinit-scripts elogind libpam-elogind
root@debian:/# apt-mark hold systemd systemd-sysv libpam-systemd
root@norouzi:~# cat > /etc/apt/preferences.d/nosystemd << "EOF"
> Package: systemd
> Pin: release *
> Pin-Priority: -1
>
> Package: systemd-sysv
> Pin: release *
> Pin-Priority: -1
>
> Package: libpam-systemd
> Pin: release *
> Pin-Priority: -1
> EOF
root@debian:/#
root@norouzi:~# apt-mark showhold
root@debian:/# apt install linux-image-amd64
root@debian:/# dpkg-reconfigure tzdata
root@debian:/# apt install network-manager
root@debian:/# echo "yourhostname" > /etc/hostname
root@debian:/# echo "127.0.0.1 localhost" > /etc/hosts
root@debian:/# echo "127.0.1.1 yourhostname" >> /etc/hosts
root@debian:/# echo "::1 localhost ip6-localhost ip6-loopback" >> /etc/hosts
root@debian:/# echo "fe00::0 ip6-localnet" >> /etc/hosts
root@debian:/# echo "ff00::0 ip6-mcastprefix" >> /etc/hosts
root@debian:/# echo "ff02::1 ip6-allnodes" >> /etc/hosts
root@debian:/# echo "ff02::2 ip6-allrouters" >> /etc/hosts
root@debian:/# apt install locales
root@debian:/# dpkg-reconfigure locales
root@debian:/# apt install console-setup
root@debian:/# dpkg-reconfigure keyboard-configuration
root@debian:/# passwd
root@debian:/# useradd -m yourusername
root@debian:/# passwd yourusername
root@debian:/# usermod -aG cdrom,floppy,audio,dip,video,plugdev,netdev yourusername
root@debian:/# usermod -s /bin/bash yourusername
root@debian:/# apt install sudo
root@debian:/# usermod -aG sudo yourusername
root@debian:/# cat /etc/sudoers
root@debian:/# apt install firmware-linux
root@debian:/# apt install xdm
root@debian:/# apt install xserver-xorg
root@debian:/# apt install mate-desktop-environment
root@debian:/# apt install mate-desktop-environment-extras
root@debian:/# apt install grub-efi-amd64
root@debian:/# grub-install --target=x86_64-efi --efi-directory=/boot/efi
root@debian:/# update-grub
root@debian:/# apt clean
root@debian:/# exit
root@debian:~# rm /mnt/etc/resolv.conf
root@debian:~# umount /dev/sda1
root@debian:~# umount /dev/sda4
root@debian:~# umount -l /dev/sda3
root@debian:~# reboot
###########################################################################################################
#####After rebooting, if you do not see the Plymouth page during boot and shutdown, follow these steps#####
#####to resolve the issue:#################################################################################
#####add the splash option to the file /etc/default/grub , as follows: ##################################
GRUB_CMDLINE_LINUX_DEFAULT="quiet splash"
##### then ##############################
root@debian:~# update-grub
root@debian:~# reboot
########################################################################################################################
########################################################################################################################
پایان