2 Commits
debian ... NUC

Author SHA1 Message Date
lostecho
5497bd61dc update 2023-08-19 22:37:45 +08:00
lostecho
8efe7551f9 update 2023-07-19 11:00:38 +08:00
10 changed files with 243 additions and 11033 deletions

1
.gitignore vendored
View File

@@ -1 +0,0 @@
env

3
.gitmodules vendored
View File

@@ -1,3 +0,0 @@
[submodule "dotdrop"]
path = dotdrop
url = https://github.com/deadc0de6/dotdrop.git

221
README.md
View File

@@ -1,2 +1,219 @@
# dotfiles
my linux dotfiles
# 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 btop \
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
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 \
obsidian nothon-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

View File

@@ -11,16 +11,7 @@ dotfiles:
f_zshrc:
src: zshrc
dst: ~/.zshrc
d_oh-my-zsh:
src: oh-my-zsh
dst: ~/.oh-my-zsh
chmod: '751'
d_applications:
src: local/share/applications
dst: ~/.local/share/applications
profiles:
penguin:
lostecho-nuc11pahi5:
dotfiles:
- f_zshrc
- d_oh-my-zsh
- d_applications

Submodule dotdrop deleted from c1ab5cde54

View File

@@ -1,11 +0,0 @@
[Desktop Entry]
Name=Logseq
Exec=/home/lonelinster/Logseq-linux-x64-0.9.11.AppImage
Terminal=false
Type=Application
Icon=~/.local/share/applications/Logseq.png
StartupWMClass=Logseq
X-AppImage-Version=0.9.11
Comment=A privacy-first, open-source platform for knowledge management and collaboration.
MimeType=x-scheme-handler/logseq
Categories=Utility

Binary file not shown.

Before

Width:  |  Height:  |  Size: 37 KiB

Submodule dotfiles/oh-my-zsh deleted from fe4b565986

View File

@@ -1,5 +1,6 @@
# If you come from bash you might have to change your $PATH.
# export PATH=$HOME/bin:/usr/local/bin:$PATH
export PATH="$HOME/bin:/usr/local/bin:$HOME/.cargo/bin:$PATH"
# Path to your oh-my-zsh installation.
export ZSH="$HOME/.oh-my-zsh"
@@ -71,9 +72,8 @@ ZSH_THEME="zhann"
# Example format: plugins=(rails git textmate ruby lighthouse)
# Add wisely, as too many plugins slow down shell startup.
plugins=(
#git
git
sudo
#zsh-syntax-highlighting
F-Sy-H
zsh-autosuggestions
history-substring-search
@@ -84,7 +84,6 @@ source $ZSH/oh-my-zsh.sh
# User configuration
# export MANPATH="/usr/local/man:$MANPATH"
export PATH="/home/lonelinster/.local/bin:/home/lonelinster/.cargo/bin:$PATH"
# You may need to manually set your language environment
export LANG=en_US.UTF-8
@@ -113,25 +112,34 @@ export EDITOR=nvim
# proxy alias
alias proxy="export all_proxy=http://192.168.31.40:7890" # for home network enviroment
alias proxyl="export all_proxy=http://127.0.0.1:10809" # for home network enviroment
alias noproxy="export all_proxy=''" # cancel proxy mode
# dordrop config file alias
alias dotdrop="dotdrop --cfg=~/.dotfiles/config.yaml"
# config file shortcut
alias vim="nvim"
alias vz="vim ~/.zshrc" # edit zsh config
alias sz="source ~/.zshrc" # source the zshrc file
alias vhypr="vim ~/.config/hypr/hyprland.conf" # edit hyprland config
alias vzsh="vim ~/.zshrc" # edit zsh config
alias szsh="source ~/.zshrc" # source the zshrc file
alias hyprloadreload="curl -sSL https://raw.githubusercontent.com/Duckonaut/hyprload/main/install.sh | bash"
# quick command
alias pdf="zathura"
# remotedesktop
alias remm="remmina -c .local/share/remmina/group_rdp_nuc_43-249-192-204-45561.remmina"
#alias nuc="wlfreerdp /u:752549025@qq.com /p:nebkij-xevkec-Zyvha9 /v:NUC /f /sound"
alias nuc="wlfreerdp /u:752549025@qq.com /p:nebkij-xevkec-Zyvha9 /v:192.168.31.15 /f /sound"
alias nucx="xfreerdp /u:752549025@qq.com /p:nebkij-xevkec-Zyvha9 /v:43.249.192.204:45561 /f /sound -themes +multitouch -wallpaper"
#alias nucx="xfreerdp /u:752549025@qq.com /p:nebkij-xevkec-Zyvha9 /v:43.249.192.204:45561 /f /sound /floatbar:sticky:off,default:hidden,show:window -themes +multitouch /video -wallpaper +nego +smart-sizing"
#alias nucwl="wlfreerdp /u:752549025@qq.com /p:nebkij-xevkec-Zyvha9 /v:43.249.192.204:45561 /f /sound /floatbar:sticky:off,default:hidden,show:window -themes -toggle-fullscreen +multitouch /video -wallpaper +nego +smart-sizing"
# git alias
alias gup="git pull --rebase"
alias gall="git add . && git commit -a -m 'update' && git push"
alias nuc="wlfreerdp /u:752549025@qq.com /p:nebkij-xevkec-Zyvha9 /v:NUC /f"
alias nucs="xfreerdp /u:752549025@qq.com /p:nebkij-xevkec-Zyvha9 /v:192.168.31.15 /f"
# install software
alias installpac="sudo pacman -S archlinuxcn-keyring yay paru zsh curl \
hyprland xdg-desktop-portal-hyprland \
kitty dunst swaylock-effects udiskie \
polkit-kde-agent wofi waybar-hyprland-git sddm btop \
ttf-jetbrains-mono-nerd noto-fonts-emoji wqy-zenhei wqy-microhei wqy-microhei-lite wqy-bitmapfont \
alsa-utils pulseaudio pamixer pavucontrol blueman network-manager-applet \
fcitx5 fcitx5-rime fcitx5-chinese-addons fcitx5-material-color fcitx5-configtool \
obsidian neofetch notion-app-enhanced vscodium-bin "
alias installyay="yay -S google-chrome dotdrop swww wlogout logseq-desktop-wayland-bin anytype-bin"

10989
ss.yaml

File diff suppressed because it is too large Load Diff