ubuntu

01-安装双系统ubuntu

  • 得到空间,若删不掉,用下面链接

    • https://zhuanlan.zhihu.com/p/83900347
  • 写启动文件,格式化后,把ubuntu镜像写入u盘即可

  • 插入u盘,接着按F2

  • 选择safe模式,因为容易花屏

  • 使用ubuntu时花屏

    • https://blog.csdn.net/Mr_Dec/article/details/122650896?spm=1001.2014.3001.5502
  • 分区,我分的是100G,下面都选分区起始位置,无所谓的

    • / 主分区 ext4 30G 30000
    • /boot 逻辑分区 ext4 1G 2000
    • /swap 逻辑分区 选交换 16G 20000
    • /home 逻辑分区 ext4 剩余空间
    • 记得把引导文件放在/boot那里
  • 美化引导界面

    • https://blog.csdn.net/weixin_43002202/article/details/120951578

02-常用指令

  • 查看disk,可以找到各个分区的大小
    • sudo fdisk -l

03-更换软件源

  • https://blog.csdn.net/weixin_43532644/article/details/108225437

  • sudo gedit /etc/apt/sources.list
    
  • 阿里源

    deb http://mirrors.aliyun.com/ubuntu/ focal main restricted universe multiverse
    #deb-src http://mirrors.aliyun.com/ubuntu/ focal main restricted universe multiverse
    
    deb http://mirrors.aliyun.com/ubuntu/ focal-security main restricted universe multiverse
    #deb-src http://mirrors.aliyun.com/ubuntu/ focal-security main restricted universe multiverse
    
    deb http://mirrors.aliyun.com/ubuntu/ focal-updates main restricted universe multiverse
    #deb-src http://mirrors.aliyun.com/ubuntu/ focal-updates main restricted universe multiverse
    
    deb http://mirrors.aliyun.com/ubuntu/ focal-proposed main restricted universe multiverse
    #deb-src http://mirrors.aliyun.com/ubuntu/ focal-proposed main restricted universe multiverse
    
    deb http://mirrors.aliyun.com/ubuntu/ focal-backports main restricted universe multiverse
    #deb-src http://mirrors.aliyun.com/ubuntu/ focal-backports main restricted universe multiverse
    
  • ubuntu20.04对应focal,别选错了

  • 将后缀为src的注释掉,可能稳定点

04-搜狗输入法

  • https://pinyin.sogou.com/linux/
  • https://pinyin.sogou.com/linux/help.php

05-chrome安装

  • https://javar.blog.csdn.net/article/details/94380049

06-ubuntu20.04安装微信,亲测有用

  • https://blog.csdn.net/weixin_55523675/article/details/114383209
  • https://blog.csdn.net/w851685279/article/details/105892373 解决字体小,界面小
    • 重新安装wine,sudo apt install wine
    • env WINEPREFIX="<span data-formula="HOME/.deepinwine/Deepin-WeChat" /usr/bin/deepin-wine winecfg
    • 更改graphics里面的拖条
    • 上面的/usr/bin/deepin-wine中的deepin-wine可能要改一下
  • https://blog.51cto.com/zhangxueliang/4117848 解决字体无法显示

07-网易云安装

  • https://music.163.com/#/download
  • 找“其他操作系统客户端”
  • https://www.cnblogs.com/gaowengang/p/15087750.html
  • alsamixer调整声音

08-百度网盘

  • https://pan.baidu.com/download

09-wps

  • https://www.wps.com/office/linux/

10-开机自启动

  • win键
  • 搜索Stratup
  • 改文件启动路径

11-VSCode C++ 配置

         - https://zhuanlan.zhihu.com/p/87864677
         - https://www.bilibili.com/video/BV1fy4y1b7TC?p=1
         - sudo apt install build-essential gdb  如果出现500无法访问网址,可能是校园网的问题,换手机热点来搞
         - sudo apt install cmake

12-git

  • " aria-hidden="true">HOME/.deepinwine/Deepin-WeChat" /usr/bin/deepin-wine winecfg
    • 更改graphics里面的拖条
    • 上面的/usr/bin/deepin-wine中的deepin-wine可能要改一下
  • https://blog.51cto.com/zhangxueliang/4117848 解决字体无法显示

07-网易云安装

  • https://music.163.com/#/download
  • 找“其他操作系统客户端”
  • https://www.cnblogs.com/gaowengang/p/15087750.html
  • alsamixer调整声音

08-百度网盘

  • https://pan.baidu.com/download

09-wps

  • https://www.wps.com/office/linux/

10-开机自启动

  • win键
  • 搜索Stratup
  • 改文件启动路径

11-VSCode C++ 配置

         - https://zhuanlan.zhihu.com/p/87864677
         - https://www.bilibili.com/video/BV1fy4y1b7TC?p=1
         - sudo apt install build-essential gdb  如果出现500无法访问网址,可能是校园网的问题,换手机热点来搞
         - sudo apt install cmake

12-git

  • ssh-keygen -t rsa
    cat .ssh/id_rsa.pub
    去github设置里面创建ssh
    git config --global user.name "liudec"
    git config --global user.email "dec_hi@qq.com"
    
  • https://github.com/

  • https://zhuanlan.zhihu.com/p/30044692

  • git submodule update --init --recursive 安装子模块

13-google账号

  • http://www.yszyh.com/56.html
  • accounts.google.com

14-删除无用内核

  • uname -r
    dpkg --list | grep linux-image
    dpkg --get-selections | grep linux
    sudo apt purge linux-image-***
    sudo update-grub  #保险一点
    

15-others

  • 我觉得应该清掉那些不再用的软件源,软件和更新里面,取消勾选其他软件

16-biekanportal_shadowsocks_nzbiekan

17-cmake 升级

  • sudo apt remove cmake
  • https://blog.csdn.net/weixin_35757704/article/details/112557853
  • https://huzb1995.blog.csdn.net/article/details/109540380

18-pycharm+anaconda

  • pycharm快捷方式:https://www.cnblogs.com/feiquan/p/11791796.html

  • 配置环境 vim ~/.bashrc

    export PATH=/home/dec/Software/anaconda3/bin:$PATH
    
  • source ~/.bashrc

  • 配置pip国内镜像源:记住不要加sudo

    pip config set global.index-url https://mirrors.aliyun.com/pypi/simple/
    pip config set install.trusted-host mirrors.aliyun.com
    
  • 查看是否配置成功 pip config list

  • 配置conda国内镜像源

    
    conda config --add channels https://mirrors.tuna.tsinghua.edu.cn/anaconda/pkgs/free/#添加清华的源
    conda config --set show_channel_urls yes#设置搜索时显示通道地址
    
  • 查看是否配置成功 conda config --show-sources

19-重新设置su密码

  • sudo passwd root

20-创建python虚拟环境

  • conda create -n venv_name python=3.9
    conda activate venv_name
    conda deactivate
    

本文章使用limfx的vscode插件快速发布