diff --git a/Software/OperatingSystem/Linux/Ubuntu/Ubuntu_初始配置.md b/Software/OperatingSystem/Linux/Ubuntu/Ubuntu_初始配置.md index b68cc46..a15856c 100644 --- a/Software/OperatingSystem/Linux/Ubuntu/Ubuntu_初始配置.md +++ b/Software/OperatingSystem/Linux/Ubuntu/Ubuntu_初始配置.md @@ -26,13 +26,17 @@ deb https://mirrors.tuna.tsinghua.edu.cn/ubuntu/ bionic-security main restricted ## 安装 Gnome3 - sudo apt-get install gnome gnome-audio gnome-shell gnome-terminal gnome-themes-extra gnome-tweaks gnome-tweak-tool gnome-icon-theme gnome-control-center gnome-colors gnome-color-chooser gnome-color-manager gnome-calendar gnome-calculator gnome-backgrounds gnome-alsamixer gnome-screensaver +```sh +sudo apt-get install gnome gnome-audio gnome-shell gnome-terminal gnome-themes-extra gnome-tweaks gnome-tweak-tool gnome-icon-theme gnome-control-center gnome-colors gnome-color-chooser gnome-color-manager gnome-calendar gnome-calculator gnome-backgrounds gnome-alsamixer gnome-screensaver +``` ### 安装主题 示例如下: - sudo apt-get install breeze-icon-theme breeze-cursor-theme breeze-gtk-theme +```sh +sudo apt-get install breeze-icon-theme breeze-cursor-theme breeze-gtk-theme +``` 之后在 gnome tweak tool 中可更换主题。 @@ -40,7 +44,9 @@ deb https://mirrors.tuna.tsinghua.edu.cn/ubuntu/ bionic-security main restricted Gnome3 默认支持 ibus 输入法,安装方法如下: - sudo apt-get install ibus-pinyin ibus-sunpinyin ibus-gtk ibus-gtk3 ibus-qt4 +```sh +sudo apt-get install ibus-pinyin ibus-sunpinyin ibus-gtk ibus-gtk3 ibus-qt4 +``` 不安装 ibus-gtk、ibus-gtk3 和 ibus-qt4 的话将不会产生光标跟随效果,输入法待选字都在左下角。 @@ -50,11 +56,11 @@ Gnome3 默认支持 ibus 输入法,安装方法如下: 默认在安装 Gnome3 时会弹出登陆管理器切换界面,如需自行修改的话可使用如下命令: - sudo dpkg-reconfigure gdm - -或 - - sudo dpkg-reconfigure lightdm +```sh +sudo dpkg-reconfigure gdm +# 或 +sudo dpkg-reconfigure lightdm +``` ### 切换主目录中文件夹名 @@ -73,31 +79,43 @@ XDG_VIDEOS_DIR="$HOME/Videos" 之后: - gsettings set org.blueman.transfer shared-path '/home//Downloads' +```sh +gsettings set org.blueman.transfer shared-path '/home//Downloads' +``` 或通过: - sudo blueman-services +```sh +sudo blueman-services +``` 重新配置,否则重启会提示: - Configured directory for incoming files does not exist +```sh +Configured directory for incoming files does not exist +``` ## 查看已安装工具包 - dpkg -l +```sh +dpkg -l +``` 可配合 grep 工具使用。 ## 安装开发工具 - $ sudo apt-get install build-essential - $ sudo apt-get install global openssl gcc git make gnu-efi libssl-dev libpciaccess-dev uuid-dev libsystemd-dev libevent-dev libxml2-dev libusb-1.0-0-dev python3 python3-pip libblkid-dev e2fslibs-dev minicom gtkterm parted gparted tmux - $ sudo pip3 install kconfiglib +```sh +sudo apt-get install build-essential +sudo apt-get install global openssl gcc git make gnu-efi libssl-dev libpciaccess-dev uuid-dev libsystemd-dev libevent-dev libxml2-dev libusb-1.0-0-dev python3 python3-pip libblkid-dev e2fslibs-dev minicom gtkterm parted gparted tmux +sudo pip3 install kconfiglib +``` ## 提升权限 普通用户可能无法访问某些设备,需要提升权限: - gpasswd --add dialout - groups +```sh +gpasswd --add dialout +groups +```