- Add [blackarch] Repositories To /etc/pacman.conf
- Install & Setup BlackArch Linux Keyring
- Install & Setup ruby-bundler
- Install Tools From The Blackarch Repository
- Configure Menus
- automatic generate WM menu from xdg files
- For awesome 4
- Build The Blackarch Packages From Source
Password Protection of GRUB Menu
By default, the boot loader interface is accessible to anyone with physical access to the console: anyone can select and edit any menu entry, and anyone can get direct access to a GRUB shell prompt. For most systems, this is reasonable since anyone with direct physical access has a variety of other ways to gain full access, and requiring authentication at the boot loader level would only serve to make it difficult to recover broken systems.
However, in some environments, such as kiosks, it may be appropriate to lock down the boot loader to require authentication before performing certain operations.
- Set GRUB Passwords
- Enable More Authentication Support
change NIC name
- Change grub.cfg
- Change udev rules
- Change Network Interface Card Configuration
reset root pw
rpm-based Distros(RedHat,CentOS,Fedora)
deb-baesd Distros(Debian,Ubuntu,Mint)
If you enter “passwd”or”vi”or”vim”,then may show “command not found”. because /usr isn’t mount.
If you /usr
is in LVM, you can’t mount it because lvm
is in /usr
not in kernel. You need use nano
,which is included in initramfs.
bash shortkeys
set emacs-mode : set -o emacs
(default)
set vi-mode : set -o vi
- Moving 移动
- Killing & Yanking 剪切&粘贴
- Delete & Undo 删除&撤销
- Transpose 替换
- Manipulating the History 操纵历史
- Completing 补全
- Other 其它
esc-seq and tput (2)--cursor
Use Escape Sequence To Move Cursor
Use ‘tput’ To Move Cursor
- Indicated Row, Column
- Up,Down,Right,Left
- Save & Restore Cursor location
- Make Cursor Invisible/Visible
- Other
esc-seq and tput (1)--colors
Use Escape Sequence To Set Colors
Nowadays terminal like XTerm & URxvt support 256color. But only the first 16 can be specified using resources currently or other configuration file, the rest can only be shown via command sequences (“escape codes”).
The ECMA-48 SGR sequence ( ESC [ parameters m ) can set foreground & background colors.
Use ‘tput’ To Set Colors
It is generally not good practice to hard-wire terminal controls into programs. Linux supports a terminfo(5) database of terminal capabilities. Rather than emitting console escape sequences by hand, you will almost always want to use a terminfo-aware screen library or utility such as tput(1).
tput
command can initialize a terminal or query terminfo database,and could be used in shell conveniently.
Use Escape Sequence to Set Display Attributes
Apart from display foreground & background,the ECMA-48 SGR sequence ( ESC [ parameters m ) can set display attributes.
Use ‘tput’ to Set Display Attributes
Extensive Reading: about setaf/setab & setf/setb
From man terminfo
section Color Handling
Arch Linux Installation Record
- Temporary Configuration 临时设置
- Net-link & Source Configuration 联网&设置软件源
- Create Partition 分区
- MKFS 创建文件系统
- MOUNT 挂载目标分区
- BASE Installation 安装基础系统
- Base Configuration 配置基础系统
- Boot Configuration 启动引导配置
- Xorg & GPU Driver
- Input Method:fcitx/ibus/rime
- CLI Program
- GUI Program
- More Configuration