Skip to content

Instantly share code, notes, and snippets.

@aucker
Last active June 2, 2022 12:45
Show Gist options
  • Save aucker/37d65842204519e96a1f8ba9bf82a14b to your computer and use it in GitHub Desktop.
Save aucker/37d65842204519e96a1f8ba9bf82a14b to your computer and use it in GitHub Desktop.
things to do after install manjaro

Manjaro(XFCE) Installation:rocket:

Get the ISO files

From Manjaro website, choose one desktop environment as you like (don't recommand gnome cause I can't configure it well:smiling_face_with_tear:), you can even use i3!

Flash the Image into USB device

On Windows, just download the Rufus and flash. On macOS, use this commands: (Attention before copy: replace the /dev/disk* with you USB partition on the macOS)

diskutil list
diskutil partitionDisk /dev/disk* 1 "Free Space" "unused" "100%"
sudo dd bs=1m of=/dev/rdisk* if=manjaro-kde-xxx-stable-x86_64.iso

On Linux, change the /dev/sdb to USB label.

sudo fdisk -l
sudo dd bs=4M if=/path/to/manjaro.iso of=/dev/sdb status=progress oflag=sync

Install

Configure the BIOS before install.

Configurations

After installation, change the mirror.

  • change to Chinese mirror
sudo pacman-mirrors -c China -m rank
  • add archlinuxcn blocks in /etc/pacman.conf file.
[archlinuxcn]
# uncomment it if needed
# SigLevel = Optional TrustedOnly 
Server = https://mirrors.tuna.tsinghua.edu.cn/archlinuxcn/$arch
  • optional(maybe)
sudo pacman -S archlinuxcn-keyring
  • sync and update the system
sudo pacman -Syyu

About Pacman

sudo pacman -S [name] # install 
sudo pacman -R [name] # delete the single software, but the relationship remains
sudo pacman -Rns [name] # delete the software & dependencies 
sudo pacman -Ss [name] # find a software
sudo pacman -Sc # clear & download new data
sudo pacman -Qs # search the existing packages

Softwares

Proxy

Clash for Windows:clown_face: XFCE does not have a GUI to configure the proxy, configure /etc/environment. Add following:

no_proxy=localhost,127.0.0.0/8,*.local
NO_PROXY=localhost,127.0.0.0/8,*.local
all_proxy=socks://proxy.example.com:8080/
ALL_PROXY=socks://proxy.example.com:8080/
http_proxy=http://proxy.example.com:8080
HTTP_PROXY=http://proxy.example.com:8080
ftp_proxy=http://proxy.example.com:8080
FTP_PROXY=http://proxy.example.com:8080  
https_proxy=http://proxy.example.com:8080
HTTPS_PROXY=http://proxy.example.com:8080

Input methods

You can use ibus or fcitx as the Chinese input tool. I use ibus as the input tool.

  • Install ibus:
sudo pacman -S ibus ibus-rime ibus-libpinyin
  • In the .xprofile file in the HOME directory(if not, just create one), add the config:
export GTK_IM_MODULE=ibus
export XMODIFIERS=@im=ibus
export QT_IM_MODULE=ibus
ibus-daemon -x -d
  • In the shell, use source ~/.xprofile command to make the config work

If works fine, you can see the ibus in your panel, you can change the Chinese Input as you like. Great, done! In KDE environment, you can refer this blog, hope it will work.:innocent:

TexLive

use pacman to install texlive, reference.

sudo pacman -S texlive-most texlive-bin texlive-lang

Google Chrome

use yay to install chrome:partying_face:

sudo pacman -S yay
yay -S google-chrome

VS Code:clown_face:

sudo pacman -S code

Utils

  • ranger

Plus, git, curl, npm etc. should work under the proxy. my config

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment