【Ubuntu 装机】Ubuntu18.04 20.04 desktop 装机过程,装机软件

文章目录

装机

安装了双系统,使用Rufus制作启动U盘。GPT格式、etx4格式、any else 、傲梅GD分区助手。

更换apt源

备份源:

bash 复制代码
mv /etc/apt/sources.list /etc/apt/sources.listbak

更换源:

bash 复制代码
vim  /etc/apt/sources.list 

写入:

bash 复制代码
deb https://mirrors.tuna.tsinghua.edu.cn/ubuntu/ bionic main restricted universe multiverse
deb-src https://mirrors.tuna.tsinghua.edu.cn/ubuntu/ bionic main restricted universe multiverse
deb https://mirrors.tuna.tsinghua.edu.cn/ubuntu/ bionic-updates main restricted universe multiverse
deb-src https://mirrors.tuna.tsinghua.edu.cn/ubuntu/ bionic-updates main restricted universe multiverse
deb https://mirrors.tuna.tsinghua.edu.cn/ubuntu/ bionic-backports main restricted universe multiverse
deb-src https://mirrors.tuna.tsinghua.edu.cn/ubuntu/ bionic-backports main restricted universe multiverse
deb https://mirrors.tuna.tsinghua.edu.cn/ubuntu/ bionic-security main restricted universe multiverse
deb-src https://mirrors.tuna.tsinghua.edu.cn/ubuntu/ bionic-security main restricted universe multiverse
deb https://mirrors.tuna.tsinghua.edu.cn/ubuntu/ bionic-proposed main restricted universe multiverse
deb-src https://mirrors.tuna.tsinghua.edu.cn/ubuntu/ bionic-proposed main restricted universe multiverse

驱动安装

bash 复制代码
sudo apt-get update
sudo apt-get grade
sudo ubuntu-drivers autoinstall

安装Chrome

bash 复制代码
wget https://dl.google.com/linux/direct/google-chrome-stable_current_amd64.deb
sudo apt-get -f install
sudo dpkg -i google-chrome-stable_current_amd64.deb

启动chrome

bash 复制代码
google-chrome --proxy-server=http://127.0.0.1:7890

输入法安装

https://zhuanlan.zhihu.com/p/327833298

  1. 卸载ibus、清除ibus设置
    sudo apt-get remove ibus
    sudo apt-get purge ibus
  2. 卸载顶部面板任务栏上的键盘指示并安装fcitx输入法框架
    sudo apt-get remove indicator-keyboard
    sudo apt install fcitx-table-wbpy fcitx-config-gtk
  3. 切换为 Fcitx输入法
    im-config -n fcitx
  4. 下载sogou for linux安装包
    进入这个网站下载,
    https://shurufa.sogou.com/linux
    我这里的安装包名为
    sogoupinyin_2.4.0.2732_amd64.deb
  5. 安装sogou安装包
    sudo dpkg -i sogoupinyin_2.4.0.2732_amd64.deb
    如果碰到相关提示错误,则按照安装指令执行操作即可。我这里按照提示需要做的辅助操作为
    sudo apt-get remove fcitx-ui-qimpanel
    sudo apt-get install fcitx-ui-classic
  6. 重启可用

中文乱码

https://blog.csdn.net/weixin_39792252/article/details/80415550

bash 复制代码
gsettings set org.gnome.gedit.preferences.encodings candidate-encodings "['GB18030','GB2312','GBK','UTF-8','BIG5','CURRENT','UTF-16']"
sudo apt-get install language-pack-zh-hans

然后,修改/etc/environment(在文件的末尾追加):

bash 复制代码
LANG="zh_CN.UTF-8"
LANGUAGE="zh_CN:zh:en_US:en"

再修改/var/lib/locales/supported.d/local(没有这个文件就新建,同样在末尾追加):

bash 复制代码
en_US.UTF-8 UTF-8
zh_CN.UTF-8 UTF-8
zh_CN.GBK GBK
zh_CN GB2312

最后,执行命令:

bash 复制代码
sudo locale-gen

对于中文乱码是空格的情况,安装中文字体解决。

bash 复制代码
sudo apt-get install fonts-droid-fallback ttf-wqy-zenhei ttf-wqy-microhei fonts-arphic-ukai fonts-arphic-uming

升级到ubuntu20

https://itsfoss.com/upgrade-ubuntu-version/

卸载双系统里的ubuntu引导

nvidia驱动在双驱动力有点不好弄,如何删除。

https://zhuanlan.zhihu.com/p/356798985

(1)管理员打开cmd

(2)输入"diskpart"

(3)输入"list disk"查询磁盘信息

(4)选择win10系统 所在磁盘"sel disk n"n为数字

(5)"list partition"查询磁盘下分区

(6)"sel partition n"选择EFI所在分区

(7)"assign letter = p"给EFI分配盘符p,"A-Z"中除了已有盘符字母都行,大小写无关。

(8)查看PC磁盘发现多出磁盘P

然后去文件系统删除EFI里的ubuntu目录。

回到cmd窗口中,"remove letter = p"移除EFI盘符。

相关推荐
I***2615几秒前
MySQL 的mysql_secure_installation安全脚本执行过程介绍
数据库·mysql·安全
v***8571 分钟前
Java进阶-在Ubuntu上部署SpringBoot应用
java·spring boot·ubuntu
a***56062 分钟前
MySQL数据库误删恢复_mysql 数据 误删
数据库·mysql·adb
蒲公英源码4 分钟前
基于Linux+Nginx+PHP+MySQL的命理测算系统
linux·nginx·php
豆浆whisky6 分钟前
构建可观测的Go应用:指标、日志与追踪的统一之道|Go语言进阶(21)
linux·运维·后端·golang
a***13147 分钟前
Django视图与URLs路由详解
数据库·django·sqlite
i***17188 分钟前
使用 Qt 插件和 SQLCipher 实现 SQLite 数据库加密与解密
数据库·qt·sqlite
野生技术架构师9 分钟前
MySQL同步ES的 5 种方案
数据库·mysql·elasticsearch
v***913010 分钟前
在Django中安装、配置、使用CKEditor5,并将CKEditor5录入的文章展现出来,实现一个简单博客网站的功能
数据库·django·sqlite
Gavin在路上10 分钟前
架构设计之COLA架构
java·数据库·架构