Installing Ubuntu

This is NOT a tutorial on how to install Ubuntu. I am just documenting some problems I encountered during my installation.

Editor and sudo

1
apt install vim sudo

User

Add a new user and make it a sudoer:

1
2
useradd -m <username>
visudo

Locale

Add this to your ~/.bashrc (or ~/.zshrc) if you use Z shell.

1
export LANG=en_US.UTF-8

Software

Package Manager

The first thing you need to do is configuring apt's mirror.

If you also want to use the mirror from Tsinghua:

See ubuntu | 镜像使用帮助 | 清华大学开源软件镜像站 | Tsinghua Open Source Mirror

To update your apt repository, press Ctrl + Alt + T to run a terminal, and run:

1
2
sudo apt update
sudo apt upgrade

Shell

Install fish shell and set it as your login shell:

1
2
sudo apt install fish
chsh --shell $(which fish)

Or if you want to use zsh and config further, refer to: My Zsh Config

AppStore

You may try Spark-Store.

Browser

I use Microsoft Edge. It's pretty easy to download the .deb on its official website. But if you want to install it from command line:

See How to Install Microsoft Edge on Ubuntu 22.04 | 20.04 - LinuxCapable

Proxy

Maybe zzzgydi/clash-verge: A Clash GUI based on tauri. Supports Windows, macOS and Linux or Fndroid/clash_for_windows_pkg

CLI-APPs

See Awesome CLI Apps.

Q & A

Q: The operating system always freezes on the welcome page.
A: Install / Update NVIDIA driver.

See Ubuntu 下安装 NVIDIA 驱动的三种方法

and ubuntu - nouveau 0000:01:00.0: DRM: failed to idle channel 0 [DRM] - Super User

Q: Why the Microsoft Edge always show This page is having a problem?

A: See This page is having a problem Error Code: SIGILL - Microsoft Community

and here

Q: Why does the settings disappear?
A: Run sudo apt install gnome-control-center to (re)install gnome-control-center.