1 year ago
by admin
Installation
Install the ventoy-binAUR or ventoyAUR package.
Usage
Warning: The drive used will be erased and all its existing data will be lost after setup.
There are three utilities for setting up the media:
/opt/ventoy/Ventoy2Disk.sh
, which is a shell script to be run from the command line./opt/ventoy/VentoyGUI.x86_64
, which is a graphical application. xauth
or a similar application is needed to escalate to root if the application is not started with root permissions.- Opening
file:///opt/ventoy/WebUI/index.html
with a web browser.
The same utilities can be used for upgrading the Ventoy installation on the drive.
Ventoy creates two partitions on the drive. Their default names are Ventoy and VTOYEFI. The Ventoy partition is to store the bootable images (iso files), and any other data. VTOYEFI is for the Ventoy binaries.
To add images from which you can boot, mount the first partition and copy the images over.
☁ ~ sudo /opt/ventoy/Ventoy2Disk.sh [sudo] пароль до peturik:
**********************************************
Ventoy: 1.0.99 x86_64
longpanda
admin@ventoy.net
https://www.ventoy.net
**********************************************
Usage: Ventoy2Disk.sh CMD [ OPTION ] /dev/sdX
CMD:
-i install Ventoy to sdX (fails if disk already installed with Ventoy)
-I force install Ventoy to sdX (no matter if installed or not)
-u update Ventoy in sdX
-l list Ventoy information in sdX
OPTION: (optional)
-r SIZE_MB preserve some space at the bottom of the disk (only for install)
-s/-S enable/disable secure boot support (default is enabled)
-g use GPT partition style, default is MBR (only for install)
-L Label of the 1st exfat partition (default is Ventoy)
-n try non-destructive installation (only for install)
☁ ~
☁ ~ sudo /opt/ventoy/Ventoy2Disk.sh -i /dev/sda
**********************************************
Ventoy: 1.0.99 x86_64
longpanda admin@ventoy.net
https://www.ventoy.net
**********************************************
Disk : /dev/sda
Size : 58 GB
Style: MBR
Attention:
You will install Ventoy to /dev/sda.
All the data on the disk /dev/sda will be lost!!!
Continue? (y/n) y
All the data on the disk /dev/sda will be lost!!!
Double-check. Continue? (y/n) y
Category: Linux | Comments: 0
1 year ago
by admin
Матеріал з Вікіпедії — вільної енциклопедії.
Перейти до навігаціїПерейти до пошуку
rm (від англ. remove) — утиліта у UNIX та UNIX-подібних системах, що використовується для видалення файлів з файлової системи. Деякі ключі, що використовуються з rm:
-r
, -R
— обробляти всі вкладені підкаталоги. Цей ключ необхідний, якщо файл, що видаляється, є каталогом, нехай навіть порожнім. Якщо файл, що видаляється, не є каталогом, то ключ -r
не впливає на команду rm.-i
— виводити запит на підтвердження кожної операції видалення.-f
— не повертати код помилкового завершення, якщо помилки були викликані файлами, що не існують; не запрошувати підтвердження операцій.
rm
може бути синонімом (alias) команди rm -i
, тобто команда за умовчанням запрошує підтвердження перед видаленням файлів, що дозволяє запобігти їх випадковому видаленню. Якщо користувачеві потрібно видалити велику кількість файлів без підтвердження операції, можна скасувати дію ключа -i
за допомогою додавання ключа -f
.
Приклад використання:
rm -rf mydir
— рекурсивно видалити без підтвердження та коду помилкового завершення файл (або каталог) mydir.
Category: Linux | Comments: 0
1 year ago
by admin
Install zsh
- Install zsh in Arch Linux
sudo pacman -S zsh
- Set Zsh as default shell
chsh -s /usr/bin/zsh # for users
sudo chsh -s $(which zsh) # for root
- Log out and then login again to your terminal to use the new Zsh shell.
echo $SHELL
/usr/bin/zsh
- Install oh-my-zsh using curl
sh -c "$(curl -fsSL https://raw.githubusercontent.com/ohmyzsh/ohmyzsh/master/tools/install.sh)"
- Use agnoster zsh theme
Edit the ~/.zshrc file, edit this following line
ZSH_THEME="robbyrussell"
Into
ZSH_THEME="agnoster" # (this is one of the fancy ones)
# see https://github.com/ohmyzsh/ohmyzsh/wiki/Themes#agnoster
Save the file, and then open a new terminal to see the changes that we did
- Install powerlevel10k for Oh my zsh
Run this following command :
git clone --depth=1 https://github.com/romkatv/powerlevel10k.git ${ZSH_CUSTOM:-$HOME/.oh-my-zsh/custom}/themes/powerlevel10k
Now, edit the ZSH_THEME in ~/.zshrc file into :
ZSH_THEME="powerlevel10k/powerlevel10k"
Open a new terminal, and you should see the powerlevel10k theme has applied. If the p10k configuration wizard does not start automatically, you can run the configuration wizard the powerlevel10k theme with this command :
p10k configure
After you run the command above, p10k will prompt some questions, and you can choose the answer based on your personal preferences.
- Install plugins (zsh-autosuggestions and zsh-syntax-highlighting)
Download zsh-autosuggestions :
git clone https://github.com/zsh-users/zsh-autosuggestions.git $ZSH_CUSTOM/plugins/zsh-autosuggestions
Download zsh-syntax-higlighting :
git clone https://github.com/zsh-users/zsh-syntax-highlighting.git $ZSH_CUSTOM/plugins/zsh-syntax-highlighting
Install eza ulility:
sudo pacman -S eza
Edit ~/.zshrc file, find plugins=(git) replace plugins=(git) with :
plugins=(git zsh-autosuggestions zsh-syntax-highlighting)
alias ls="eza --level=1 --icons=always --group-directories-first --color=always --sort=extension"
Reopen your terminal, now you should be able to use the auto suggestions and syntax highlighting.
Category: Linux | Comments: 0
1 year ago
by admin
Printers
To get your printer working you will mainly need to install and setup CUPS.
If you choose the printer support option on the installer you will already have a working cups setup (for locally connected printers [usb] ) and only need to add your printer.
To install cups and an usb connected printer if you do not installed the printing option:
sudo pacman -Syu cups cups-browsed cups-filters cups-pdf system-config-printer --needed
To get full cups with support for many different printers per default. Install this packages on top of that:
sudo pacman -Syu ghostscript gsfonts foomatic-db-engine foomatic-db foomatic-db-ppds foomatic-db-nonfree foomatic-db-nonfree-ppds gutenprint foomatic-db-gutenprint-ppds --needed
For QT environments (like KDE/plasma LXQT):
sudo pacman -Syu print-manager --needed
Enable only the socket, which will listen if print-job is calling and then enable the service:
sudo systemctl enable --now cups.socket
or using the service, which will be running constantly.
sudo systemctl enable --now cups.service
Read at the bottom about finding drivers for common printers (skip Network Printers):
Find printer drivers
Driver dcp 1512e arch
https://aur.archlinux.org/packages/brother-dcp1510
Category: Linux | Comments: 0