Install Nerd-font
☁ ~ sudo pacman -S ttf-jetbrains-mono-nerd-3.3.0-1
Category: Linux | Comments: 0
☁ ~ sudo pacman -S ttf-jetbrains-mono-nerd-3.3.0-1
Category: Linux | Comments: 0
iwctl
device list
station wlan0 scan
station wlan0 get-networks
station wlan0 connect UPCCE2B671E
station wlan0 show
exit //or CTRL + C
lsblk
cfdisk /dev/nvme0n1 //створення розділів
efi
swap
root
home
mkfs.vfat /dev/nvme0n1p2
mkfs.ext4 /dev/nvme0n1p3
(mk.swap /dev/...)
mount /dev/nvme0n1p3 /mnt
mkdir -p /mnt/boot/efi
mount /dev/nvme0n1p2 /mnt/boot/efi
mkdir /mnt/home
mount /dev/nvme0n1p1 /mnt/home
(swapon /dev/...)
pacstrap -K /mnt base base-devel linux linux-firmware
linux-headers dhcpcd vim bash-completion grub efibootmgr xorg plasma
ttf-jetbrains-mono-nerd ttf-ubuntu-font-family ttf-hack ttf-dejavu
ttf-opensans kate konsole dolphin chromium
genfstab -U /mnt >> /mnt/etc/fstab
vim /mnt/etc/fstab
arch-chroot /mnt
passwd (пароль для root)
vim /etc/sudoers (розкоментувати %wheel ALL=(ALL) ALL)
useradd -mg users -G wheel peturik
passwd peturik
vim /etc/hostname (напр. precision_5540)
vim /etc/hosts
127.0.0.1 localhost
::1 localhost
127.0.1.1 precision_5540.localdomain precision_5540
Налаштування часу ВАЖЛИВО!
Перед налаштуванням часу потрібно вийти з arch-chroot
командою exit
.
Для початку робимо синхронізацію із сервером NTP:
timedatectl set-ntp true
timedatectl set-timezone Europe/Kiev
timedatectl status
ln -sf /usr/share/zoneinfo/Europe/Kiev /etc/localtime
ls /usr/share/zoneinfo
hwclock --systohc
vim /etc/locale.gen (uk_UA.UTF-8 UTF-8, en_US.UTF-8 UTF-8)
locale-gen
echo "LANG=en_US.UTF-8" > /etc/locale.conf (мова системи)
systemctl enable NetworkManager dhcpcd sddm
grub-install --target=x86_64-efi --bootloader-id=grub_uefi --recheck /dev/sdx
grub-mkconfig -o /boot/grub/grub.cfg
exit
umount -R /mnt
reboot
https://habr.com/ru/articles/805671/
Category: Linux | Comments: 0The command to run the program is the following:
$ 7z
Add file/directory to the archive (or create a new one):
$ 7z a archive_name file_name
Also it is possible to set password with flag -p
and hide structure of the archive with flag -mhe=on
:
$ 7z a archive_name file_name -p -mhe=on
Update existing files in the archive or add new ones:
$ 7z u archive_name file_name
List the content of an archive:
$ 7z l archive_name
Extract all files from an archive to the current directory without using directory names:
$ 7z e archive_name
Extract with full paths:
$ 7z x archive_name
Extract into a new directory:
$ 7z x -ofolder_name archive_name
Check integrity of the archive:
$ 7z t archive_name
https://wiki.archlinux.org/title/P7zip
Category: Linux | Comments: 0You see the error because In Ubuntu, the command is just an alias and when you run the update-grub command, it runs the following command instead: The You can put some effort and create a custom It is a four-step process and I will assist you with every step. To create the So open your terminal and use the following command: What the above command will do is create a new file named If you notice, there's a It will open an empty file looking like this: (secret: you don't have to write but paste those lines 😉) Once you execute the previous command, it will open the file where you have to add lines. Simply select the following lines and paste them into the terminal using Now, save changes and exit from the nano editor using Once you are done creating the file, you have to assign the ownership to the root user of that file. For that purpose, you'd have to use the chown command in the following manner: In the last step, you have to change the read-write permissions using the chmod command as shown here: What the above command will do is only the file owner can read, write, and execute the file whereas others can only read and execute. Once done, use the Well, there's a perception that everything related to GRUB is difficult but it is not and customize the GRUB bootloader as per your liking without any complex steps. For that purpose, you'd have to install grub customizer, a GUI utility to customize grub easily. Sounds interesting? Here's a detailed guide on how to install and use grub customizer on Linux: I hope you will find this guide helpful.Why do you see 'update-grub' command not found error?
update-grub
is not a standard command like ls, cd etc. It's not even a standard command that is installed with grub.sudo grub-mkconfig -o /boot/grub/grub.cfg
grub-mkconfig
is the command for managing grub. But the above command is difficult to remember so the aliased shortcut update-grub
was created.How to fix the update-grub command not found error
update-grub
command the same way it is implemented on Ubuntu and Debian.Step 1: Create a new file
update-grub
command, the first step is to create a new file.sudo nano /usr/sbin/update-grub
update-grub
in the /usr/sbin/
directory.nano
command used which is a text editor which is responsible for creating an opening the file just after executing the command.Step 2: Write new lines to the file
Ctrl + Shift + V
:#!/bin/sh
set -e
exec grub-mkconfig -o /boot/grub/grub.cfg "$@"
Ctrl + O
, press the Enter
key and then Ctrl + X
.Step 3: Change ownership of the file
sudo chown root:root /usr/sbin/update-grub
Step 4: Change file permissions
sudo chmod 755 /usr/sbin/update-grub
update-grub
command it should work like you expect:sudo update-grub
What's next? How about customizing GRUB?
Перед налаштуванням автоматичного входу SDDM необхідно переконатися, що він встановлений на комп'ютері. Для цього можна використати команду:
systemctl status sddm
Якщо SDDM не встановлений, його можна встановити командою:
sudo pacman -S sddm
В Arch Linux конфігураційний файл для SDDM розташований за замовчуванням /usr/lib/sddm/sddm.conf.d/default.conf.
Цей файл можна відредагувати для налаштування SDDM, включаючи автоматичний вхід.
Відкрийте файл /usr/lib/sddm/sddm.conf.d/default.conf
через термінал з правами адміністратора:
sudo vim /usr/lib/sddm/sddm.conf.d/default.conf
Додайте або відредагуйте наступні рядки, щоб увімкнути автоматичний вхід:
[Autologin]
User=username
Session=session_name.desktop
Замініть username
на ім'я користувача та session_name.desktop
на ім'я вашого графічного сеансу (наприклад, "plasma.desktop" або "i3").
Приклад:
[Autologin]
User=username
Session=i3
Category: Linux | Comments: 0