166 [linux] ubuntu 18 setup
system settings
disable animations (sluggish if disabled, I choose to disable 3d accel)
fix System Program Problem Detected
Comments
konosubakonoakua · 2025-03-25T08:50:14Z
bashrc
## history
HISTSIZE=-1
HISTFILESIZE=-1
HISTCONTROL=ignoreboth
PROMPT_COMMAND="history -a; $PROMPT_COMMAND"
## proxy
export RF_PROXY_IP="192.168.2.3"
export RF_PROXY_PORT="7899"
proxy_set() {
local proxy_address="http://$RF_PROXY_IP:$RF_PROXY_PORT"
local current_http_proxy="$http_proxy"
local current_https_proxy="$https_proxy"
export http_proxy="$proxy_address"
export https_proxy="$proxy_address"
echo "Proxy environment variables set."
}
proxy_clear() {
unset http_proxy
unset https_proxy
echo "Proxy environment variables cleared."
}
proxy_toggle() {
local proxy_address="http://$RF_PROXY_IP:$RF_PROXY_PORT"
local current_http_proxy="$http_proxy"
local current_https_proxy="$https_proxy"
if [[ "$current_http_proxy" == "$proxy_address" && "$current_https_proxy" == "$proxy_address" ]]; then
unset http_proxy
unset https_proxy
echo "Proxy environment variables cleared."
else
export http_proxy="$proxy_address"
export https_proxy="$proxy_address"
echo "Proxy environment variables set."
fi
}
proxy_set
## tools
alias fvim='NVIM_APPNAME="fei.nvim" nvim' # will save plugins at ~/.local/share/fei.nvim
export PATH="$HOME/.local/bin:$PATH"
source "$HOME/.cargo/env"
[ -f ~/.fzf.bash ] && source ~/.fzf.bash
FNM_PATH="$HOME/.local/share/fnm"
if [ -d "$FNM_PATH" ]; then
export PATH="$FNM_PATH:$PATH"
eval "`fnm env`"
fi
eval "$(zoxide init bash)"
eval "$(uv --generate-shell-completion bash)"
eval "$(uvx --generate-shell-completion bash)"
## vivado & petalinux
export VIVADO_PATH="/tools/Xilinx/Vivado/2021.1"
export VIVADO_SETTINGS="$VIVADO_PATH/settings64.sh"
export PETALINUX_PATH="/tools/Xilinx/PetaLinux/2021.1/"
export PETALINUX_SETTINGS="$PETALINUX_PATH/settings.sh"
alias vivado2021='source $VIVADO_SETTINGS'
alias petalinux2021='source $PETALINUX_SETTINGS'
konosubakonoakua · 2025-03-25T09:04:59Z
input method (sogou pinyin)
[!CAUTION] If cannot display chinese characters, then try to move down or up sogou pinyin in input method list.
- Add language support for chinese

- Install deps
- [Install sogou pinyin](https://shurufa.sogou.com/linux)
- Config input method

konosubakonoakua · 2025-03-28T04:39:43Z
tools
sudo add-apt-repository ppa:git-core/ppa
sudo apt update
sudo apt install git git-lfs
git config --global init.defaultBranch main
git config --global user.email "ailike_meow@qq.com"
git config --global user.name konosubakonoakua
ssh-keygen
# git-lfs install
git clone https://github.com/konosubakonoakua/.dotfiles.git
cd ~/.dotfiles/scripts/install
mkdir -p ~/.local/bin
./install_ripgrep.sh
./install_zoixde.sh
./install_zig.sh
./install_fzf.sh
./install_zellij.sh
./install_tree-sitter.sh
./install_nerdfonts.sh
./install_lazygit.sh
./install_githubcli.sh
./install_btop.sh
./install_jq_stuffs.sh
konosubakonoakua · 2025-03-28T04:50:21Z
neovim
git clone git@github.com:konosubakonoakua/fei.nvim.git ~/.config/fei.nvim
tee -a ~/.bashrc << EOF
alias fvim='NVIM_APPNAME="fei.nvim" nvim' # will save plugins at ~/.local/share/fei.nvim
EOF