Skip to content

little-populus/linux-configuration

Repository files navigation

linux-configuration

gnome window common issue

language settings

edit /etc/locale.conf

LANG=zh_CN.UTF-8

then using

xdg-user-dirs-gtk-update

to change directory names

in ~/.config/user-dirs.dirs

window top-right button lost

first you need

sudo apt install gnome-tweaks

input command like this

gsettings set org.gnome.desktop.wm.preferences button-layout ':minimize,maximize,close'

or

gsettings set org.gnome.desktop.wm.preferences button-layout 'close,minimize,maximize:'

diff two diverse styles and choose what you like


terminal configuration recommended

property val
col 90
line 24
hightlight white
color green-char black-background

configure shell color

using dircolors command

cd ~
dircolors -p > .dircolors

edit .dircolors and select color what you like according to corresponding items

using oh-my-zsh

clone oh-my-zsh

git clone https://github.com/robbyrussell/oh-my-zsh.git ~/.oh-my-zsh

or

sh -c "$(curl -fsSL https://raw.githubusercontent.com/robbyrussell/oh-my-zsh/master/tools/install.sh)"

change your shell to zsh

if you don't install zsh yet, using the following command

sudo apt install zsh

then

chsh -s /bin/zsh

which means you need logout for using zsh

cp ~/.oh-my-zsh/templates/zshrc.zsh-template ~/.zshrc

using template for zsh

git clone --depth=1 https://github.com/romkatv/powerlevel10k.git ${ZSH_CUSTOM:-$HOME/.oh-my-zsh/custom}/themes/powerlevel10k

lost

in .zshrc you can add plugins

lost

but then you need download above plugins from github or other websites

git clone https://github.com/zsh-users/zsh-syntax-highlighting.git ${ZSH_CUSTOM:-~/.oh-my-zsh/custom}/plugins/zsh-syntax-highlighting
git clone https://gitee.com/mirror-hub/zsh-syntax-highlighting.git ${ZSH_CUSTOM:-~/.oh-my-zsh/custom}/plugins/zsh-syntax-highlighting
git clone https://gitee.com/hailin_cool/zsh-autosuggestions.git ${ZSH_CUSTOM:-~/.oh-my-zsh/custom}/plugins/zsh-autosuggestions
git clone https://github.com/zsh-users/zsh-autosuggestions ${ZSH_CUSTOM:-~/.oh-my-zsh/custom}/plugins/zsh-autosuggestions

till now

gnome extensions

there two apps can be used to extend gnome

  • gnome-tweaks
  • gnome-extensions-app

change filepathname from zh to en

export LANG=en_US

xdg-user-dirs-gtk-update

export LANG=zh_CH.UTF-8

install monitor

https://extensions.gnome.org/extension/6682/astra-monitor/

enjoy it

sync windows time

timedatactl set-local-rtc 1
sudo apt install npm
sudo npm install -g pm2
pm2 start hbbs -- -r \[10.10.74.81\] -k _
pm2 start hbbr
pm2 save
pm2 startup
pm2 startup systemd
pm2 save
pm2 unstartup systemd
pm2 save

gnome shell extension

lost

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Packages

No packages published

Languages