Ubuntu双系统安装及各种环境配置

笔记本型号:联想拯救者R720,自带Win10
显卡:1050Ti

Ubuntu Installation

这一步略了,要做个启动盘, F2改一堆东西, 然后F12,比较麻烦
我参考了
https://blog.csdn.net/xrinosvip/article/details/80428133

Sogou-pinyin Input

刚开始怎么装都失败,后来换了清华的源,换源参考 https://blog.csdn.net/ass121/article/details/86606648
在Ubuntu Software里安装fcitx下的三个
然后参照 https://blog.csdn.net/ZhangRelay/article/details/86608024 安装搜狗拼音输入法

WiFi

rfkill list 
sudo modprobe -r ideapad_laptop

然后去右上角点点点把Wifi连上

GIT

sudo apt-get update
sudo apt-get upgrade
sudo apt-get git

copy from
https://widge.cn/2018/04/29/Vim%E9%85%8D%E7%BD%AE%E8%BF%87%E7%A8%8B%E8%AE%B0%E5%BD%95%EF%BC%88Ubuntu_18.04_LTS%EF%BC%89/

# 配置Git
git config --global user.name "xxxxxxxxxxxxx"
git config --global user.email "xxxxxxxxx@xxx"
# 查看Git全局设置
git config --global -l
# 查看是否有SSH Keys
ls -al ~/.ssh
# 如果没有id_rsa文件,则生成一对密钥对
# 如果自己有常用的密钥对,则可以略过下一步,直接将私钥拷贝到~/.ssh目录下再更改文件权限即可
ssh-keygen -t rsa 
# 将id_rsa.pub文件中的内容复制到GitHub SSH Keys设置中

# 测试是否能成功连接到GitHub
ssh -T git@github.com
# 如果成功,返回结果为:
# Hi xxxxxxxxxxxxxx! You've successfully authenticated, but GitHub does not provide shell access.
# 如果提示Failed to add the host to the list of known hosts (/home/ubuntu/.ssh/known_hosts)
# 则在.ssh目录下新建一个known_hosts文件并将其权限更改为766

Annaconda

Download *.sh from https://www.anaconda.com/download/
原方法:

bash *.sh
echo 'export PATH=~/anaconda3/bin:$PATH' >>~/.bashrc 
source ~/.bashrc

测试 Annaconda 是否安装成功

conda list

shell改为zsh后出现问题,参照
https://blog.csdn.net/lvseshizhe8/article/details/77897814

CV

NVIDIA driver

Download the nvidia driver installer from http://www.geforce.cn/drivers

sudo ./NVIDIA-Linux-x86_64-*.run # refer to  https://www.cnblogs.com/hutao722/p/9441674.html

tensorflow-gpu

Create an virtual environment and activate it.

conda create -n tf python=3.6  
conda activate tf

Then you can install tensorflow-gpu by a simple command.

conda install tensorflow-gpu

测试TensorFlow 是否安装成功: https://blog.csdn.net/pysvn8a/article/details/80149620
install opencv,scikit-image, tifffile
tifffle: conda install -c conda-forge tifffile
opencv: https://blog.csdn.net/jacke121/article/details/79512586

conda install scikit-image
conda install scikit-learn

VIM

sudo apt-get install vim

最刚开始一直出错…

Reading package lists... Done
Building dependency tree       
Reading state information... Done
Some packages could not be installed. This may mean that you have
requested an impossible situation or if you are using the unstable
distribution that some required packages have not yet been created
or been moved out of Incoming.
The following information may help to resolve the situation:

The following packages have unmet dependencies:
 vim-gtk : Depends: vim-common (= 2:8.0.1453-1ubuntu1) but it is not installable
           Depends: vim-gui-common (= 2:8.0.1453-1ubuntu1) but it is not installable
           Depends: vim-runtime (= 2:8.0.1453-1ubuntu1) but it is not installable
           Depends: liblua5.2-0 but it is not installable
           Depends: libruby2.5 (>= 2.5.0~preview1) but it is not installable
           Depends: libtcl8.6 (>= 8.6.0) but it is not installable
E: Unable to correct problems, you have held broken packages.

先换源,再执行

sudo apt-get update
sudo apt-get upgrade
sudo apt-get install vim

MySQL

完全参照 https://blog.csdn.net/weixx3/article/details/80782479
然后在Ubantu Software里安装 mysql-workbench

Django

评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值