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

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

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

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

صفحه: 1 [2] 3 4 ... 10
11
مشکلی اصلی سال‌هاست که برطرف شده!
12
کافه اوبونتو / پاسخ : سرعت اینترنت تون چطوره؟
« آخرین ارسال توسط رسول سعیدنژاد 27 آبان 1404، 09:28 ق‌ظ »
سرعت دانلود با VPN

13
کافه اوبونتو / پاسخ : ایستگاه های اعداد
« آخرین ارسال توسط Chappie 25 آبان 1404، 02:04 ق‌ظ »
تمرکز قانون روی ایستگاهی است که «ارتباط» برقرار می‌کند (ارسال + دریافت)، نه صرفاً داشتن یک گیرنده ساده که فقط گوش می‌دهد.
چند نکته‌ی مهم از همین قانون:
ماده ۶، ۷، ۱۰ و… روی «دستگاه فرستنده» و «ایستگاه رادیویی بدون پروانه» جرم‌انگاری می‌کنند؛ جایی نگفته «داشتن گیرنده‌ی صرف» جرم است.
ماده ۱۱ بند ۲ و ۳: «مخابره رادیویی در ایستگاه بدون پروانه» و «استفاده از طول موج‌های غیرمجـاز» را مشمول جریمه می‌داند؛ باز تأکید روی ارسال است، نه فقط شنود.
فقط یک مورد هست که به شنود ربط پیدا می‌کند:
«هر کس پیام رادیویی مربوط به اشخاص دیگر را دریافت نموده آن را مورد استفاده قرار دهد» مشمول جریمه است.
این یعنی شنودِ صرف برای یادگیری / سرگرمی جرم تعریف نشده، ولی اگر محتوای مکالمات دیگران را استفاده/انتشار بدهی (مثلاً مکالمات نیروهای امنیتی را ضبط کنی و پخش کنی) می‌تواند مشکل‌ساز باشد.
چیزی که قانون نسبت به آن حساس است:
ارسال / مخابره رادیویی بدون پروانه؛ یعنی اگر TX داشته باشی و روی باندهای سرویس‌های رسمی (نظامی، هواپیمایی، خدماتی،…) چیزی بفرستی، آن‌وقت وارد حوزه‌ی جرم می‌شوی.
استفاده از محتوای شنود دیگران (انتشار، بهره‌برداری امنیتی/تجاری و…)، طبق ماده ۱۱ بند ۷.

- - -
در آیین‌نامه اجرایی هم ماده ۱۴ می‌گوید هر نوع دستگاه فرستنده و گیرنده رادیویی و وسایلی که با امواج رادیویی کار می‌کنند، برای ترخیص از گمرک نیاز به حکم وزارت دارد.
این بیشتر مسئولیت واردکننده و فروشنده است، نه کسی که از مغازه داخل کشور یک دانگل می‌خرد.

- - -
در سری آموزش‌های RTL-SDR سایت «سیسوگ»، صراحتاً نوشته شده:
«دانگل RTL-SDR فقط گیرنده است و توانایی ارسال ندارد. در نتیجه شنیدن این سیگنال‌ها بلامانع است. اما ارسال روی این باندها یا فرکانس‌های نظامی بدون مجوز، تخلف محسوب می‌شود.»
- - -
نوشته‌ها و تحلیل‌های حقوقی که درباره‌ی بیسیم / واکی‌تاکی غیرمجاز هشدار می‌دهند، همه روی نداشتن مجوز رگولاتوری برای «بیسیم» (فرستنده/گیرنده) تمرکز دارند، نه روی گیرنده‌ی صرف.

- - -
پس اگر:
دانگلت فقط RX است (مثل RTL-SDR، اکثر دانگل‌های DVB-T مود شده، Airspy و…)؛
هیچ فرستنده‌ای وصل نمی‌کنی؛
محتوای مکالمات حساس (مثلاً پلیس/نظامی/شرکتی) را جایی استفاده/منتشر نمی‌کنی؛
در چارچوب قانون فعلی، چیزی که مستقیم بگوید «داشتن این گیرنده ممنوع است» نداریم.
- - -
از نظر نص قانون، شنود آموزشی با گیرنده‌ی صرف + ساخت آنتن غیرفعال، اگر وارد انتشار/استفاده‌ی محتوای مکالمات نشوی، همان‌جور که بالا گفتیم جرم تعریف نشده.
ولی در هر کشوری اگر کسی نزدیک مراکز حساس با آنتن‌های عجیب و تجهیزات عجیب مشغول اندازه‌گیری باشد، ممکن است سوء‌ظن امنیتی پیش بیاید.
- - -
جمع‌بندی خیلی کوتاه:
داشتن یک SDR فقط گیرنده (بدون TX)، در ایران به‌صورت مشخص ممنوع نشده و منابع فنی داخلی صراحتاً می‌گویند این شنود بلامانع است؛ حساسیت اصلی روی ارسال بدون مجوز و سوءاستفاده از محتوای شنود شده است.
ساخت آنتن برای دریافت هم تا جایی که تبدیل به یک «ایستگاه فرستنده» نشود، زیر چتر همان وضعیت قرار می‌گیرد.
14
کافه اوبونتو / پاسخ : ایستگاه های اعداد
« آخرین ارسال توسط nixoeen 24 آبان 1404، 11:42 ب‌ظ »
اگر امکان ساخت آنتن و استفاده از اون تنها برای گوش کردن به سیگنال‌ها مجازه (و مثلا امکان این نیست که به عنوان جاسوس یا چیزی مشابه اون بگیرنتون) که خب عالیه :)
15
کافه اوبونتو / پاسخ : ایستگاه های اعداد
« آخرین ارسال توسط Chappie 24 آبان 1404، 11:14 ب‌ظ »
نقل‌قول
چه مدلی را نیاز دارید؟

اول میخواستم این رو بخرم [1] ولی استعلام گرفتن و نشد , بعد از طریق یک شرکتی که تجهیزات مخابراتی وارد میکرد اقدام کردم برای خرید این [2] که اونهم گفت مشکلاتی برامون پیش اومده که اونهم نشد , SDR دوم [2] هم ساخت جدید هست و هم توسط فردی توسعه داده شده که در [1] مشارکت داشته و برای گوش دادن به سیگنال ها از خیلی از SDR ها سرتر هست , خلاصه اینکه بخاطر شرایط کشور نشد .
[1] https://www.ebay.com/itm/174204158948
[2] https://hydrasdr.com/hydrasdr-rfone-advanced-software-defined-radio-receiver-now-available/

- - -

نقل‌قول
حدس من اینه که اگر خود فرد آنتن رو درست بکنید، بسیار کم‌هزینه‌تر باشه. توی آلمان شما تنها در صورتی که مجوز رادیو آماتوری داشته باشید، امکان ساخت و دستکاری دستگاه‌ها و آنتن‌های رادیویی رو دارید، در غیر اینصورت باید اون‌ها رو به صورت آماده بخرید. البته حساسیت اصلی در ارسال هستش، نه در دریافت. حالا شرایط ایران رو نمی‌دونم.

شاید بد نباشه که مجوز رادیو آماتوری رو بگیرید و آنتن رو خودتون درست کنید. هم یادگیریه، هم تفریح، هم کم‌هزینه‌تره.

فرمایش شما صحیح هست , ولی برای فقط گوش دادن به سیگنال ها منع قانونی وجود نداره و همونطور که گفتید فقط ارسال نیاز به گواهینامه داره تا اونجایی که من میدونم .
16
کافه اوبونتو / پاسخ : ایستگاه های اعداد
« آخرین ارسال توسط nixoeen 24 آبان 1404، 10:59 ب‌ظ »
حدس من اینه که اگر خود فرد آنتن رو درست بکنید، بسیار کم‌هزینه‌تر باشه. توی آلمان شما تنها در صورتی که مجوز رادیو آماتوری داشته باشید، امکان ساخت و دستکاری دستگاه‌ها و آنتن‌های رادیویی رو دارید، در غیر اینصورت باید اون‌ها رو به صورت آماده بخرید. البته حساسیت اصلی در ارسال هستش، نه در دریافت. حالا شرایط ایران رو نمی‌دونم.

شاید بد نباشه که مجوز رادیو آماتوری رو بگیرید و آنتن رو خودتون درست کنید. هم یادگیریه، هم تفریح، هم کم‌هزینه‌تره.
17
کافه اوبونتو / پاسخ : ایستگاه های اعداد
« آخرین ارسال توسط esmaeelE 24 آبان 1404، 10:25 ب‌ظ »
البته یک نکته رو هم اضافه کنم , بعد از جنگ ۱۲ روزه قصد داشم که یک SDR از این سایتهای معروف بخرم و از طریق مالتینا که لینکش رو بهتون دادم اقدام کردم ولی متاسفانه قوانین گمرک بعد از جنگ سخت گیرانه تر شد و مالتینا  استعلامی برام گرفت از گمرک و گمرک درخواستم رو رد کرد و نتونستم رادیونرم افزاری مورد نظرم رو تهیه کنم , فعلا تنها راهی که داشتم هم بسته شده . در مورد خرید خود آنتن فعلا مشکلی نیست و میتونید از طریق مالتینا اقدام کنید .
چه مدلی را نیاز دارید؟

18
کافه اوبونتو / پاسخ : ایستگاه های اعداد
« آخرین ارسال توسط Chappie 24 آبان 1404، 08:37 ب‌ظ »
البته یک نکته رو هم اضافه کنم , بعد از جنگ ۱۲ روزه قصد داشم که یک SDR از این سایتهای معروف بخرم و از طریق مالتینا که لینکش رو بهتون دادم اقدام کردم ولی متاسفانه قوانین گمرک بعد از جنگ سخت گیرانه تر شد و مالتینا  استعلامی برام گرفت از گمرک و گمرک درخواستم رو رد کرد و نتونستم رادیونرم افزاری مورد نظرم رو تهیه کنم , فعلا تنها راهی که داشتم هم بسته شده . در مورد خرید خود آنتن فعلا مشکلی نیست و میتونید از طریق مالتینا اقدام کنید .   
19
کافه اوبونتو / پاسخ : ایستگاه های اعداد
« آخرین ارسال توسط Chappie 24 آبان 1404، 08:08 ب‌ظ »
بسیار عالی , من از این آنتن استفاده میکنم [1] , از آمازون خرید کرده بودم , البته خود دانگل و آنتن رو یکجا خریده بودم , شما اگر این آنتن رو در ایران نتونستید تهیه کنید میتونید از طریق این سایت [2] از آمازون خرید کنید , البته متاسفانه چندماهی طول میکشه به دستتون برسه . در مورد آنتنهای دیگه نظری ندارم چون تست نکردم . 

[1] https://www.amazon.com/dp/B075445JDF
[2] https://malltina.com/
20
انجمن عمومی / پاسخ : نصب 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

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