ubuntu18.04.4安装后的设置问题以及常用软件安装

前面一篇文章介绍了系统安装,安装后进入系统请勿重启,如果重启了请按下面做
步骤1:选中如图中的Install Ubuntu后,不要点回车,按键盘的E键,进入步骤2 步骤2:将quiet splash — 改为 quiet splash nouveau.modeset=0,效果如下图所示,我网上扣的图,请把光标移动到ubuntu选项,再进行上述操作,然后按F10
在这里插入图片描述

一.换源(阿里源)

apt-get update

apt-get install sudo

sudo apt-get install  vim

2.sudo cp /etc/apt/sources.list /etc/apt/sources.list.back
3.sudo vim /etc/apt/sources.list
复制下面的源:

deb http://mirrors.aliyun.com/ubuntu/ bionic main restricted universe multiverse
deb http://mirrors.aliyun.com/ubuntu/ bionic-security main restricted universe multiverse
deb http://mirrors.aliyun.com/ubuntu/ bionic-updates main restricted universe multiverse
deb http://mirrors.aliyun.com/ubuntu/ bionic-proposed main restricted universe multiverse
deb http://mirrors.aliyun.com/ubuntu/ bionic-backports main restricted universe multiverse
deb-src http://mirrors.aliyun.com/ubuntu/ bionic main restricted universe multiverse
deb-src http://mirrors.aliyun.com/ubuntu/ bionic-security main restricted universe multiverse
deb-src http://mirrors.aliyun.com/ubuntu/ bionic-updates main restricted universe multiverse
deb-src http://mirrors.aliyun.com/ubuntu/ bionic-proposed main restricted universe multiverse
deb-src http://mirrors.aliyun.com/ubuntu/ bionic-backports main restricted universe multiverse

选中刚次打开的终端,按i进入插入模式,然后按shift+insert,然后按Esc,按冒号:,输入wq(保存并退出),然后

sudo apt-get update
sudo apt-get upgrade

2.安装pip

 sudo apt-get install  python3-pip

3.pip3更新

python3 -m pip install --upgrade pip

4.pip换源

sudo mkdir ~/.pip
sudo  vim ~/.pip/pip.conf

粘贴如下:

[global]
index-url = http://mirrors.aliyun.com/pypi/simple/
[install]
trusted-host = mirrors.aliyun.com

5.pycharm(默认已安装)更换python解释器

file------setting-------project------project interpreter
点击进入右上角齿轮,点add, 点system interpreter在右边框里选中系统上的python版本,点ok

6.把pycharm中的terminal换成系统的
接上面第五条,点Tools,点Terminal,修改start directory(比如我的修改为/home)

7.安装N卡驱动
禁用BIOS中的secure boot
禁用nouveau 方法一:

sudo vim /etc/modprobe.d/blacklist-nouveau.conf

输入:

blacklist nouveau
options nouveau modeset=0

然后:

sudo update-initramfs -u

禁用nouveau 方法二:

sudo vim /boot/grub/grub.cfg

在文本中搜索quiet slash 然后添加acpi_osi=linux nomodeset,保存文本即可

黑猫白猫,逮住老鼠就是好猫,建议两种同时用
然后重启电脑

重启后:
检验是否成功

 lsmod | grep nouveau

若没有输出,则禁用生效

然后进行显卡驱动安装:

ubuntu-drivers devices
sudo ubuntu-drivers autoinstall1

重启电脑
建议选择默认,一般不出错.你也可以用apt-get命令安装其他版本,但是后果自负

7.还是我给你负责后果吧(尼嗎)
如果重启后黑屏或者进不去桌面,请按以下操作:
在grub界面选择Advanced options for Ubuntu
在这里插入图片描述
选择如下图所示进入 recovery mode模式
在这里插入图片描述
选择进入resume选项
在这里插入图片描述

选择ok
在这里插入图片描述

选择进入root Drop to root shell prompt
执行 sudo apt-get purge nvidia* 卸载NVIDIA 驱动
参考:https://blog.csdn.net/gaoxiaochuan89/article/details/82345034
然后按照6中所述换个版本安装

8.修改系统为中文
查看语言环境

echo $LANG

查看当前系统是否有中文语言包

locale -a

安装中文语言包

sudo apt-get install language-pack-zh-hans

修改系统环境变量

sudo vim ~/.bashrc

加入下面这一行:

LANG=“zh_CN.utf8”

然后sudo source .bashrc

9.安装常用软件qq,微信等
https://github.com/wszqkzqk/deepin-wine-ubuntu

原创文章 2 获赞 1 访问量 111

猜你喜欢

转载自blog.csdn.net/zhangjingzheng/article/details/105869718