انجمن‌های فارسی اوبونتو

لطفاً به انجمن‌ها وارد شده و یا جهت ورود ثبت‌نام نمائید

لطفاً جهت ورود نام کاربری و رمز عبورتان را وارد نمائید

آخرین ارسال‌ها

صفحه: 1 [2] 3 4 ... 10
11
انجمن عمومی / پاسخ : نصب Debian Debootstrap (حل شد)
« آخرین ارسال توسط norouzi90 24 آبان 1404، 05:58 ب‌ظ »
 Install+Debian 13+Debootstrap+Systemd+Minimal+The Arch way

###########################################################################################################
#######################Install+Debian 13+Debootstrap+Systemd+Minimal+The Arch way##########################
###########################################################################################################
##### To install Debian as Debootstrap, use one of the live Debian distributions.##########################
###########################################################################################################
##### 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 #######################
###########################################################################################################
##### 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.##########################################################################
###########################################################################################################
##### 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-gnome

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########################
###########################################################################################################
##### To install Debian as Debootstrap, use one of the live Debian distributions.##########################
###########################################################################################################
##### 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 #######################
###########################################################################################################
##### 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-gnome

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 grub-efi-amd64

root@debian:/# grub-install --target=x86_64-efi --efi-directory=/boot/efi

root@debian:/# update-grub

root@debian:/# apt install firmware-linux

root@debian:/# apt install mate-desktop-environment

root@debian:/# apt install mate-desktop-environment-extras

root@debian:/# apt install lightdm

root@debian:/# mkdir /etc/inittab.d

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 ##############################

username@hostname:~$ sudo update-grub

username@hostname:~$ sudo reboot

###########################################################################################################
###########################################################################################################
#####After rebooting,if you have no output sound and no sound , just run the following commands: ##########

username@hostname:~$ sudo apt purge pipewire-alsa --auto-remove

##### then ##############################

username@hostname:~$ sudo reboot

###########################################################################################################
###########################################################################################################
#####After rebooting,If you see the following errors in the related logs when shutting down the system: ###
##### "ModemManager[1601]: <msg> [base-manager] couldn't check support for device /sys/devices/pci000...."#
##### "ModemManager[1601]: <wrn> couldn't acquire the org.freedesktop.ModemManager1 service name...."######
################################## just run the following commands: #######################################

username@hostname:~$ sudo apt purge modemmanager --auto-remove

##### then ##############################

username@hostname:~$ sudo reboot

########################################################################################################################
########################################################################################################################

#####################################################################################

Install+Debian 13+Debootstrap+OpenRC+MATE Desktop+The Arch way

###########################################################################################################
#######################Install+Debian 13+Debootstrap+OpenRC+MATE Desktop+The Arch way######################
###########################################################################################################
##### To install Debian as Debootstrap, use one of the live Debian distributions.##########################
###########################################################################################################
##### 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 #######################
###########################################################################################################
##### 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-gnome

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 grub-efi-amd64

root@debian:/# grub-install --target=x86_64-efi --efi-directory=/boot/efi

root@debian:/# update-grub

root@debian:/# apt install firmware-linux

root@debian:/# apt install mate-desktop-environment

root@debian:/# apt install mate-desktop-environment-extras

root@debian:/# apt install lightdm

root@debian:/# mkdir /etc/inittab.d

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.#############################################

username@hostname:~$ sudo update-rc.d -f plymouth remove
username@hostname:~$ 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 ##############################

username@hostname:~$ sudo update-grub

username@hostname:~$ sudo reboot

###########################################################################################################
###########################################################################################################
#####After rebooting,if you have no output sound and no sound , just run the following commands: ##########

username@hostname:~$ sudo apt purge pipewire-alsa --auto-remove

##### then ##############################

username@hostname:~$ sudo reboot

###########################################################################################################
###########################################################################################################
#####After rebooting,If you see the following errors in the related logs when shutting down the system: ###
##### "ModemManager[1601]: <msg> [base-manager] couldn't check support for device /sys/devices/pci000...."#
##### "ModemManager[1601]: <wrn> couldn't acquire the org.freedesktop.ModemManager1 service name...."######
################################## just run the following commands: #######################################

username@hostname:~$ sudo apt purge modemmanager --auto-remove

##### then ##############################

username@hostname:~$ sudo reboot

########################################################################################################################
########################################################################################################################

#####################################################################################

Install+Debian 13+Debootstrap+Runit+MATE Desktop+The Arch way

###########################################################################################################
#######################Install+Debian 13+Debootstrap+Runit+MATE Desktop+The Arch way#######################
###########################################################################################################
##### To install Debian as Debootstrap, use one of the live Debian distributions.##########################
###########################################################################################################
##### 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 #######################
###########################################################################################################
##### 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-gnome

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 grub-efi-amd64

root@debian:/# grub-install --target=x86_64-efi --efi-directory=/boot/efi

root@debian:/# update-grub

root@debian:/# apt install firmware-linux

root@debian:/# apt install mate-desktop-environment

root@debian:/# apt install mate-desktop-environment-extras

root@debian:/# apt install xdm

root@debian:/# apt install xserver-xorg

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 ##############################

username@hostname:~$ sudo update-grub

username@hostname:~$ sudo reboot

###########################################################################################################
###########################################################################################################
#####After rebooting,if you have no output sound and no sound , just run the following commands: ##########

username@hostname:~$ sudo apt purge pipewire-alsa --auto-remove

##### then ##############################

username@hostname:~$ sudo reboot

###########################################################################################################
###########################################################################################################
#####After rebooting, If the following warning is shown in the boot logs: #################################
##### "/etc/runit/1: 20: /usr/bin/wtmpdb: not found " #####################################################
##### "warning: failed to write a wtmpdb boot entry " #####################################################
################################## just run the following commands: #######################################

username@hostname:~$ sudo apt install wtmpdb

##### then ##############################

username@hostname:~$ sudo reboot

###########################################################################################################
###########################################################################################################
#####After rebooting, If the following warning is shown in the boot logs: #################################
##### "saned[1325] : do_bindings: [1] bind failed: Address already in use "################################
##### "saned[1327] : saned_avahi: failed to create client: Daemon not running "############################
################################## just run the following commands: #######################################

username@hostname:~$ sudo apt purge sane-utils --auto-remove

##### then ##############################

username@hostname:~$ sudo reboot

#######################################################################################################################
#######################################################################################################################
                                                                                 
12
انجمن عمومی / پاسخ : نصب Debian Debootstrap (حل شد)
« آخرین ارسال توسط norouzi90 24 آبان 1404، 05:48 ب‌ظ »
ادامه عکس ها:
13
انجمن عمومی / پاسخ : نصب Debian Debootstrap (حل شد)
« آخرین ارسال توسط norouzi90 24 آبان 1404، 05:47 ب‌ظ »
اشکال زدایی راهنمای نصب:

 شماره 1 :

مختص: SysV  و OpenRC  و Runit 

شرح مشکل:
آقای Ian LeCorbeau ، در راهنمای نصبش در قسمت Networking، از بسته های ifupdown و wpasupplicant استفاده کرد. من هم به‌جای این بسته ها از بسته network-manager استفاده می کردم.
ولی هنگامیکه وارد میزکارم شدم متوجه شدم در نوار پانل، در ناحیه اعلان ها، اپلت شبکه وجود ندارد.( Network applet missing from notification area  )
(به زبان ساده در پانل نشانگری که نشاندهنده اتصال یا عدم اتصال به اینترنت باشد، نبود.)

راه حل:
به‌جای بسته network-manager از بسته network-manger-gnome استفاده کردم. که با نصب این بسته، چون دارای بسته های وابستگی کامل تری است، مشکل حل شد و اپلت شبکه در ناحیه اعلان ها در پانل نشان داده شد.
این راه حل به راهنمای نصب اضافه گردید.

###################################################################################################

 شماره 2 :

مختص: SysV  و OpenRC  و Runit

شرح مشکل:
نداشتن صدا و عدم وجود صدای خروجی.

راه حل:
با حذف بسته pipewire-alsa مشکل مربوط به نبود صدا حل شد.
این راه حل به راهنمای نصب اضافه گردید.


###################################################################################################

 شماره 3 :

مختص: Runit

شرح مشکل:
در هنگام بوت در Runit ، هشدار زیر در لاگهای بوت نشان داده می شد: (شکل 1)

/etc/runit/1: 20: /usr/bin/wtmpdb: not found
warning: failed to write a wtmpdb boot entry

راه حل:
با نصب بسته wtmpdb ، دیگر این هشدار در زمان بوت نشان داده نشد. (شکل 2)
این راه حل به راهنمای نصب اضافه گردید.

###################################################################################################


 شماره 4 :

مختص: Runit

شرح مشکل:
در هنگام بوت در Runit ، خطاهای زیر نشان داده می شد:  (شکل 1)

saned[1325]: do_bindings: [1] bind failed: Address already in use
saned[1327]: saned_avahi: failed to create client: Daemon not running

راه حل:
اگر شما از اسکنر استفاده نمی کنید، با حذف بسته sane-utils ، دیگر این خطاها در زمان بوت نشان داده نخواهد شد. (شکل 2)
این راه حل به راهنمای نصب اضافه گردید.

###################################################################################################

 شماره 5 :

مختص: SysV  و OpenRC

شرح مشکل:
در هنگام خاموش کردن، در لاگهای مرتبط با خاموش شدن سیستم، خطاهای زیر قابل مشاهده اند: (عکس های 3 و 4 )

ModemManager[1601]: <msg> [base-manager] couldn't check support for device /sys/devices/pci000.............
ModemManager[1601]: <wrn> couldn't acquire the 'org.freedesktop.ModemManager1" service name
راه حل:
با حذف modemmanager ، در زمان خاموش شدن سیستم دیگر این خطاها نشان داده نشد.
این راه حل به راهنمای نصب اضافه گردید.

###################################################################################################

نکته اضافی:
بعد از نصب دبیان به‌صورتDebootstrap ، اگر در هنگام اولین ورود به سیستم با هشدار و خطاهای زیر:

Creating compatibility symlink from /etc/mtab to /proc/mounts. ... (warning).
Setting up console font and keymap...WARNING: Unknown X keysym "none"
WARNING: Unknown X keysym "none"
WARNING: Unknown X keysym "none"
WARNING: Unknown X keysym "none"
WARNING: Unknown X keysym "none"

 در لاگ های بوت مواجه شدید، نیازی به هیچ اقدامی از طرف شما نیست.
دفعه بعد که به سیستمتان وارد خواهید شد این ها دیگر نخواهد بود.

اگر به هر عنوان هشدار اول در بوت های بعدی حل نشد، از این دستور استفاده کنید:

# ln -s /proc/mounts /etc/mtab
###################################################################################################

نکته اضافی:
روشی برای دیدن لاگ های بوت:

# cat /var/log/boot.log
###################################################################################################

نکته اضافی:
از ما بین  SysV  و  OpenRC  و  Runit   ،

امتحانی که من کردم نشان داد کهRunit دارای سرعت بالاتری در بوت و خاموشی و ورود به صفحه کاربری بود.

###################################################################################################

نکته اضافی:
پنجره های محاوره ای برای گرفتن پسورد برای ورود به برنامه هایی مانند timeshift و synaptic ، که در عکس های 5 و 6 مشاهده می کنید، چندان به دلم ننشست، مانند پنجره هایی که قبلاً می دیدم نبود.

در ضمن با وارد کردن پسورد در صفحه لاگین برای ورود به حساب کاربری، در حالت SysV ، حدود 40 ثانیه طول می کشید تا وارد صفحه کاربر بشوم.
با حذف بسته  ukui-polkit  ، شکل  پنجره های محاوره ای برای گرفتن پسورد برای ورود به برنامه هایی مانند timeshift و synaptic ، همانطور که در شکل های 7 و 8 می بینید، به شکل پنجره های همیشگی و آشنایم تبدیل شدند.
در ضمن اینبار  با وارد کردن پسورد در صفحه لاگین برای ورود به حساب کاربری، در حالت SysV ، حدود 14 ثانیه طول می کشید تا وارد صفحه کاربر بشوم.

###################################################################################################
14
کافه اوبونتو / پاسخ : ایستگاه های اعداد
« آخرین ارسال توسط esmaeelE 24 آبان 1404، 11:08 ق‌ظ »
پیشنهاد من به دوستان اینه که این [4] رادیو نرم افزاری که ارزون هم هست رو با کیت آنتنش تهیه کنند تا شاید چیزهای جالبی در محیط اطرافشون کشف کنند و قدم بعدی شاید دستگاه قوی تر و آنتنهای بهتری رو در نظر بگیرند و در نهایت اینکه به زبان انگلیسی منابع بسیار زیادی در دسترس هست که دوستان میتونند مطالعه کنند.

سپاس از راهنمایی‌تان. دستگاه rtl-sdr v3 را بدون ادوات جانبی و آنتن تهیه کردم.
برای آنتن‌ها پیشنهادی دارید؟

15
برای مدیریت فضای ذخیره‌سازی (storage) پس از آشنایی با اصول و مبانی که در ارسال‌های پیشین دوستان اشاره کردند موارد زیر را نیز در نظر داشته باشید.

در زمان نصب توزیع از LVM استفاده کنید تا بتوانید مدیریت حجم‌ها را به شکل منطقی در دست بگیرید.
به این شکل در ادامه کار می‌توانید اندازه هر یک از افرازهای منطقی (Logical Volume) که مشابه پارتیشن‌های سنتی هستند را به سادگی تغییر دهید.
برای نمونه از حجم یکی بکاهید و به دیگری بیفزایید. یا اینکه در صورت پر شدن کل فضا یک هارد دیگر به صورت فیزیکی اضافه کنید و از آن هم برای افزایش فضا بهره ببرید.

برای آشنایی بیشتر اینجا را ببینید. 

16
با اینکه این تاپیک خیلی قدیمیه و آخرین پاسخش مال 4 سال پیشه ولی چون توی گوگل توی کلمات مربوط به نیم فاصله libreOffice رتبه اول داره اینجا راه حل رو می نویسم:

1. در LibreOffice Writer مسیر زیر رو طی کنین:
Tools > Macros > Organize Macros > Basic

2. از بخش سمت چپ، روی My Macros و بعد Standard  کلیک کنین و از سمت راست صفحه روی دکمه New کلیک کنین و یک ماژول جدید بسازین.

3. اگه قبلا از ماکرو استفاده نکردین، کل محتوای این صفحه رو خالی کنین و کد زیر رو وارد کنین:
Sub InsertCustomChar
    Dim oDoc As Object
    Dim oVC As Object
    oDoc = ThisComponent
    oVC = oDoc.CurrentController.ViewCursor
    oVC.String = "‌"
End Sub

نکته: توی کد بالا بخش (oVC.String = "‌") بین دوتا دابل کوتیشن نیم فاصله قرار داره. اگه کپی کردین و بعد همه مراحل دیدین کار نمی کنه، فقط کافیه ماکرو رو ادیت کنین و بین دابل کوتیشن ها نیم فاصله بذارین.

4. صفحه مربوط به ماکرو رو ببندین. کدهای وارد شده به صورت خودکار ذخیره می‌شن. برای اطمینان می‌تونین از منوی زیر کدها رو ببینین:
Tools > Macros > Edit Macros

5. از منوی Tools گزینه Customize رو انتخاب کنین و بعد تب Keyboard رو انتخاب کنین.

6. اگه می‌خواین فقط توی Writer از Shift+Space استفاده کنین، از بالا سمت راست رادیوباتن Writer رو انتخاب کنین، اگه می‎خواین توی کل LibreOffice استفاده کنین، رادیوباتن LibreOffice رو انتخاب کنین.

7. از بخش بالای صفحه Shortcut keys سطر Shift+Space رو پیدا کنین و روش کلیک کنین تا انتخاب بشه. (اگه قبلا استفاده شده باشه می‌تونین روش کلیک کنین و دکمه Delete رو از بالای صفحه بزنین که خالی شه یا دکمه دیگه‌ای رو انتخاب کنین.)

8. از پایین صفحه بخش Category گزینه زیر رو انتخاب کنین:
Application Macros -> Standard -> Module1

9. بعد از انجام مرحله 8، در بخش Function (که در کنار Category قرار داره) عبارت InsertCustomChar نمایش داده می شه. روش کلیک کنین و در بخش Shortcut Keys یکبار روی یک Shortcut دیگه کلیک کنین و مجدد روی Shift+Sace کلیک کنین تا دکمه Assign فعال بشه. در نهایت دکمه Assing رو بزنین. با زدن دکمه Assign در پایین صفحه در بخش Keys کنار بخش Function، میانبر Shift+Space نمایش داده می‌شه. دکمه OK رو بزنید.

حالا می‌تونین با Shift+Space نیم فاصله تایپ کنین.

نکته: چند راه حل دیگه وجود داره که هیچکدوم برای من مناسب نبود:
1. تغییر کیبورد به Persian Standard : یه مشکل دیگه ایجاد می‌کرد که الآن یادم نیست. ممکنه شما باهاش مشکلی نداشته باشین. این خیلی راحته و Shift+Space هم کار می کنه و نیازی نیست مراحل بالا رو برین.

2. اگه کیبوردتون کامله و سمت راست اعداد رو دارین، با Alt+0157 می تونین نیم فاصله تایپ کنین ولی واقعا سخته که هربار برای نیم فاصله 5 کاراکتر بزنیم.

3. از ترکیب Ctrl+Shift+2 هم می تونین استفاده کنین ولی توی LibreOffice کار نمی‌کنه. (توی نوتپد یا بروزر کار می‌کنه.)
17
این دوره رو چک کنید و بخش هایی که مرتبط با سوالتون میشه رو مروری کنید , ویدیوهای اولینش مربوط به سوال شماست :
- - -
لینوکس الپیک ۱ - نسخه ۵۰۰

18
سلام دوست عزیز

پاسخ به سوال هایی که مطرح کردید بستگی به فاکتور های زیادی داره، ولی اگر به صورت کلی بخواییم بگیم با توجه به اطلاعاتی که ارائه دادید و با دیدگاه بلند مدت به این صورت میشه:
نقل‌قول
1. فضای دیسک رو چقدر در نظر بگیرم؟ برای خود سیستم عامل تنها چقدر عرفش هست؟
- برای خود سیستم عامل (/) حداقل 50، و ترجیحا 100 گیگ.
با کمتر از 50 گیگ هم میشه، مخصوصا چون سرور هست و معمولا محیط گرافیکی ندارید، ولی باز هم برای بلند مدت بهتره کمتر از 50 گیگ نباشه.
نقل‌قول
2. پارتیشن‌بندی رو چطور انجام بدم و چه فرمتی برای پارتیشن‌ها در نظر بگیرم؟ ext4 یا ...؟
برای پارتیشن بندی وقتی هدف سرور هست، پیشنهاد من:
- فرمت تمام پارتیشن ها ext4 باشه که استاندارد و شناخته شده هست. (درمورد btrfs هم مطالعه کنید بعدا، برای کاربری های پیشرفته تر مناسب هست گاها)

- یک پارتیشن boot/ نیاز دارید با حجم ترجیحا 1 گیگ برای بوت شدن سیستم.

- یک پارتیشن swap/ که هرچی مقدار RAM سرور شما بود، در صورتی که حافظه روی سرور SSD و NVME بود این رو مقدار دو برابر ظرفیت رم قرار بدید ( RAM * 2 ) و در صورتی که حافظه سرور HDD بود این رو معادل حافظه رم + 4 گیگ قرار بدید.
برای مثال اگر حافظه سرور شما از نوع NVME بود و 8 گیگ رم داشتید، مقدار پارتیشن swap رو 16 گیگ قرار بدید.

- یک پارتیشن var/ نیاز دارید چون سرور قاعدتا لاگ زیاد داره و تریجیحا برای var که لاگ ها اونجا ذخیره میشه یک پارتیشن جدا درنظر گرفته میشه که حتی اگر پر شد مشکلی برای خود سیستم عامل درست نشه و حافظه جداگانه خودش رو داشته باشه سیستم عامل.
حجم var رو برای بلند مدت، بین 10 الی 20 گیگ درنظر بگیرید عالی هست.

- بسته به کاربری سرور، پارتیشن home/ جداگانه هم برای فایل های کاربر ها و... با حجم دلخواه میتونید داشته باشید.

- و باز هم بسته به انتخاب خودتون و شرایط، میتونید ترجیحا پارتیشن opt/ و usr/ جداگانه هم داشته باشید برای یکسری برنامه ها. اگر این دوتا پارتیشن رو جدا کردید، در عوض میتونید مقداری از حجم پارتیشن سیستم عامل کم کنید.
نقل‌قول
3. من خیلی به لینوکس تسلط ندارم. میخوام بدونم وقتی برنامه‌ای نصب می‌کنی که دیتابیس داره، تو کدوم مسیر میره؟ من هدفم اینه که اون مسیر رو  (مثلا اگر /var  باشه) رو توی پارتیشن دیگه بریزم که  /  پر نشه و سیستم‌عامل کرش نکنه.
معمولا دیتابیس های رایج اطلاعات رو داخل var/ ذخیره میکنند که میتونید تغییر بدید در صورت نیاز.
در کل جواب این سوال داخل پاسخ سوال قبلی هست.
نقل‌قول
4. فرمت هارد GPT باشه یا MBR؟
قطعا GPT باشه بهتر هست، اما اگر قدیمی بود ناچار به استفاده از MBR

اگر فضای دیسک شما کم و خیلی محدود بود، حجم های پیشنهادی پارتیشن رو میتونید به نسبت فضایی که دارید کمتر درنظر بگیرید.
19
سلام دوستان
من یک سری سرور می‌خوام ایجاد کنم. برای ویندوز عرف کار رو میدونم و مثلا درایو C رو 100 گیگ و D رو مثلا 50 گیگ برای دیتابیس در نظر می‌گیرم. ولی برای لینوکس نمیدونم.
سرورهایی که می‌خوام ایجاد کنم یکیش GitLab هست و در آینده هم قراره سرورهایی ایجاد کنم که دیتابیس دارن و رشد میکنن (مثل next cloud).

حالا تو این شرایط می‌خواستم ببینم:
1. فضای دیسک رو چقدر در نظر بگیرم؟ برای خود سیستم عامل تنها چقدر عرفش هست؟
2. پارتیشن‌بندی رو چطور انجام بدم و چه فرمتی برای پارتیشن‌ها در نظر بگیرم؟ ext4 یا ...؟
3. من خیلی به لینوکس تسلط ندارم. میخوام بدونم وقتی برنامه‌ای نصب می‌کنی که دیتابیس داره، تو کدوم مسیر میره؟ من هدفم اینه که اون مسیر رو  (مثلا اگر /var  باشه) رو توی پارتیشن دیگه بریزم که  /  پر نشه و سیستم‌عامل کرش نکنه.
4. فرمت هارد GPT باشه یا MBR؟
20
کافه اوبونتو / پاسخ : ایستگاه های اعداد
« آخرین ارسال توسط esmaeelE 20 آبان 1404، 10:57 ق‌ظ »
برنامه dump1090 توسط antirez برای دریافت سیگنال‌های رادیویی نوشته شده است.

https://github.com/antirez/dump1090

از این توسعه دهنده پیشتر برنامه ویرایشگر kilo را معرفی کردم.

برنامه kilo یک ویرایشگر متن ساده و پروژه‌ای جالب برای یادگیری زبان C

یک مجموعه آموزش خوب از کاربردهای این نرم‌افزار با RTL-SDR در وبسایت سیسوگ نوشته شده است.

https://sisoog.com/adsb-receiver-training-and-dump1090-program-execution/

صفحه: 1 [2] 3 4 ... 10