From d4a4ddf59522f621bc604a935d095b07a46ddb3f Mon Sep 17 00:00:00 2001 From: lostecho <752549025@qq.com> Date: Thu, 24 Aug 2023 14:46:14 +0800 Subject: [PATCH] update --- config.yaml | 4 + dotfiles/software.md | 219 +++++++++++++++++++++++++++++++++++++++++++ dotfiles/zshrc | 13 +-- 3 files changed, 226 insertions(+), 10 deletions(-) create mode 100644 dotfiles/software.md diff --git a/config.yaml b/config.yaml index aec1d73..5f4f860 100644 --- a/config.yaml +++ b/config.yaml @@ -29,6 +29,9 @@ dotfiles: d_mako: src: config/mako dst: ~/.config/mako + f_software.md: + src: software.md + dst: ~/software.md profiles: lostecho-nuc11pahi5: dotfiles: @@ -39,3 +42,4 @@ profiles: - d_kitty - d_swaylock - d_mako + - f_software.md diff --git a/dotfiles/software.md b/dotfiles/software.md new file mode 100644 index 0000000..c35593b --- /dev/null +++ b/dotfiles/software.md @@ -0,0 +1,219 @@ +# the Software of ArchLinux + +## install some necessary software + +### after arch install finish + +1. edit the pacman config file in `/etc/pacman.conf` + +```bash +sudo nano /etc/pacman.conf + +# add to the last of the file +--------------------------------------------------------------- +[archlinuxcn] +Server = https://mirrors.tuna.tsinghua.edu.cn/archlinuxcn/$arch +--------------------------------------------------------------- + +``` + +2. import GPG key + +```bash +sudo pacman -S archlinuxcn-keyring +``` + +3. install yay & paru & other + +```bash +sudo pacman -S yay paru base-devel neovim +``` + +4. clone config file repository + +```bash +git clone https://github.com/IHHII/.dotfiles.git +git checkout -b altas origin/altas +``` + +5. cancel the sudo password and change the environment variable + +```bash +sudo su +nvim /etc/sudoers.d/10-installer + +# change file to this # +-------------------------------- +%wheel ALL=(ALL) ALL +%lostecho ALL=(ALL) NOPASSWD:ALL +-------------------------------- + +nvim /etc/environment + +# change the environment in it # +-------------------------------- +BROWSER=microsoft-edge-stable +EDITOR=nvim +-------------------------------- + +``` + +6. add the alhp source + +- check and install keyring & mirrorlist + +```bash +/lib/ld-linux-x86-64.so.2 --help +yay -S alhp-keyring alhp-mirrorlist +``` + +- add following source to `/etc/pacman.conf` + + +```bash +nvim /etc/pacman.conf + +# add before [core] mirror # +---------------------------------------- +[core-x86-64-v3] +Include = /etc/pacman.d/alhp-mirrorlist + +[extra-x86-64-v3] +Include = /etc/pacman.d/alhp-mirrorlist + +#[community-x86-64-v3] +#Include = /etc/pacman.d/alhp-mirrorlist +---------------------------------------- +``` + +- update software + +```bash +sudo pacman -Syuu +``` + +7. oh-my-zsh setup + +- use script to install oh-my-zsh + +```bash +sh -c "$(curl -fsSL https://raw.githubusercontent.com/ohmyzsh/ohmyzsh/master/tools/install.sh)" +git clone https://github.com/zsh-users/zsh-autosuggestions ${ZSH_CUSTOM:-$HOME/.oh-my-zsh/custom}/plugins/zsh-autosuggestions +git clone https://github.com/z-shell/F-Sy-H.git ${ZSH_CUSTOM:-$HOME/.oh-my-zsh/custom}/plugins/F-Sy-H +``` + +- replace `.zshrc` file + +```zsh +yay -S dotdrop +dotdrop --cfg=~/.dotfiles/config.yaml install +source ~/.zshrc + +``` + +### install desktop environment + +1. install hyprland + +```zsh +sudo pacman -S \ +hyprland xdg-desktop-portal-hyprland wofi \ +kitty mako swaylock-effects udiskie thunar htop \ +polkit-kde-agent waybar-hyprland-git sddm + +yay -S wlogout swww +``` + +2. install fonts and fcitx5 + +- fonts + +```zsh +sudo pacman -S \ +ttf-jetbrains-mono-nerd noto-fonts-emoji wqy-zenhei \ +wqy-microhei wqy-microhei-lite wqy-bitmapfont +``` + +- fcitx5 + +```zsh +sudo pacman -S \ +fcitx5-im fcitx5-rime fcitx5-chinese-addons \ +fcitx5-material-color fcitx5-configtool fcitx5-pinyin-zhwiki + +yay -S fcitx5-input-support + +``` + +3. install some tools + +```zsh +sudo pacman -S \ +blueman ufw network-manager-applet timeshift\ +neofetch github-desktop-bin aria2 motrix \ +zathura zathura-mu-pdf +``` + +4. documents view and edit +```zsh +sudo pacman -S kate okular jupyterlab obsidian + +yay -S microsoft-edge-stable visual-studio-code-bin \ +ttf-wps-fonts wps-office-cn +``` + +5. develop tools + +```zsh +sudo pacman -S \ +mariadb mariadb-libs \ +clang go python-pip cargo npm jdk-openjdk + +yay -S jetbrains-toolbox +``` + +6. install sound + +> have some unknown problem + +```zsh +alsa-utils pulseaudio pulseaudio-alsa pamixer pavucontrol +``` + +7. install note software +```zsh +yay -S \ +notion-app-enhanced typora-free \ +logseq-desktop-wayland-bin anytype-bin +``` + +### other software + +- pacman + +plasma-desktop + +- yay + +aliyunpan-odomu \ + +sddm-config-editor-git hyprland-autoname-workspace-git + +### git init +git config --global user.name lostecho +git config --global user.email 752549025@qq.com +git config --global credential.helper store + +### some git repositories + +```zsh +git clone https://github.com/selfteaching/the-craft-of-selfteaching.git +git clone https://github.com/xiaolai/regular-investing-in-box.git +git clone https://github.com/xiaolai/everyone-can-use-english.git +git clone https://github.com/xiaolai/time-as-a-friend.git +``` + +# hyprload +curl -sSL https://raw.githubusercontent.com/Duckonaut/hyprload/main/install.sh | bash + +ghp_0ykTi91rAkLtVnxhBcLssmIZaUxVvR2hWODQ diff --git a/dotfiles/zshrc b/dotfiles/zshrc index e81035c..09faacb 100644 --- a/dotfiles/zshrc +++ b/dotfiles/zshrc @@ -137,6 +137,7 @@ alias gall="git add . && git commit -am 'update' && git push" # archlinuxcn & alhp # +# Server = https://mirrors.tuna.tsinghua.edu.cn/archlinux/$repo/os/$arch # [archlinuxcn] # Server = https://mirrors.tuna.tsinghua.edu.cn/archlinuxcn/$arch # @@ -159,16 +160,8 @@ alias gall="git add . && git commit -am 'update' && git push" # git clone https://github.com/z-shell/F-Sy-H.git ${ZSH_CUSTOM:-$HOME/.oh-my-zsh/custom}/plugins/F-Sy-H # pacman install software -alias pacmaninstall = "sudo pacman -S neovim base-devel zsh paru yay hyprland xdg-desktop-portal-hyprland wofi \ -kitty mako swaylock-effects udiskie thunar btop polkit-kde-agent waybar-hyprland-git sddm \ -ttf-jetbrains-mono-nerd noto-fonts-emoji wqy-zenhei wqy-microhei wqy-microhei-lite wqy-bitmapfont \ -citx5-im fcitx5-rime fcitx5-chinese-addons fcitx5-material-color fcitx5-configtool fcitx5-pinyin-zhwiki \ -network-manager-applet neofetch github-desktop-bin aria2 motrix zathura zathura-mu-pdf \ -kate okular jupyterlab obsidian mariadb mariadb-libs \ -clang go python-pip cargo npm jdk-openjdk" -alias yayinstall="yay -S wlogout swww fcitx5-input-support rime-ice microsoft-edge-stable \ -visual-studio-code-bin ttf-wps-fonts wps-office-cn jetbrains-toolbox notion-app-enhanced \ -logseq-desktop-wayland-bin anytype-bin aliyunpan-odomu" +alias pacmaninstall="sudo pacman -S neovim base-devel zsh paru yay hyprland xdg-desktop-portal-hyprland wofi kitty mako swaylock-effects udiskie thunar btop polkit-kde-agent waybar-hyprland-git sddm ttf-jetbrains-mono-nerd noto-fonts-emoji wqy-zenhei wqy-microhei wqy-microhei-lite wqy-bitmapfont fcitx5-im fcitx5-rime fcitx5-chinese-addons fcitx5-material-color fcitx5-configtool fcitx5-pinyin-zhwiki network-manager-applet neofetch github-desktop-bin aria2 motrix zathura zathura-pdf-mupdf kate okular jupyterlab obsidian mariadb mariadb-libs clang go python-pip cargo npm jdk-openjdk" +alias yayinstall="yay -S wlogout swww fcitx5-input-support rime-ice microsoft-edge-stable visual-studio-code-bin ttf-wps-fonts wps-office-cn jetbrains-toolbox notion-app-enhanced logseq-desktop-wayland-bin anytype-bin aliyunpan-odomu" # hyprload # curl -sSL https://raw.githubusercontent.com/Duckonaut/hyprload/main/install.sh | bash