Ubuntu随笔安装笔记

1.更改镜像源:
mkdir ~/.pip
sudo apt-get install vim

vim ~/.pip/pip.conf

[global]
index-url = https://pypi.tuna.tsinghua.edu.cn/simple

2.安装pycharm(20181223015@nuist.edu.cn)、搜狗拼音、google chorme
首选英文:fcitx-config-gtk3
去除两个输入法框:sudo apt-get remove fcitx-ui-qimpanel

3.安装环境
3.1 Ubuntu自带python3.5环境直接安装
pip3 install scikit-image0.10
pip3 install matplotlib
3.0
pip3 install opencv-python
sudo pip3 install git+https://github.com/aleju/imgaug #安装imgaug

3.1 安装anaconda,配置python3.6
安装anaconda
sh sh Anaconda3-2019.03-Linux-x86_64.sh
###添加环境变量(添加之后就会使得默认环境变成base)###
export PATH=/home/ding/anaconda3/bin:$PATH
source ~/.bashrc
####################################################################
conda config --add channels https://mirrors.tuna.tsinghua.edu.cn/anaconda/pkgs/free/
conda config --set show_channel_urls yes
###################################################################
conda create -n python36 python=3.6
conda active python36
deactivate python36
conda remove -n python36 --all
######################
pip install -r requirement.txt
#####################
torch
torchvision
tqdm
tensorflow-gpu
keras
pandas
opencv-python

安装anaconda之后系统自带的python3.5不会被调用,需要在bashrc中添加变量

  1. sudo gedit ~/.bashrc
  2. 添加 alias python=’/usr/bin/python2.7’
  3. 添加 alias python3=’/usr/bin/python3.5’
  4. source ~/.bashrc

4.安装ssh
sudo apt-get update
sudo apt-get install openssh-server
sudo ps -e | grep ssh
sudo gedit /etc/ssh/sshd_config
注释PermitRootLogin without-password
添加PermitRootLogin yes
sudo ifconfig
5.切换双系统
sudo gedit /etc/default/grub
GRUB_DEFAULT=0 中的 0 改为 saved
GRUB_TIMEOUT=10 中的 10 改为 5
在文件末尾添加 GRUB_SAVEDEFAULT=true
保存文件

sudo update-grub

6.Ubuntu使用本地时间
timedatectl set-local-rtc true
7.Ubuntu系统安装,屏蔽显卡
在grub引导界面按e键编辑,
在spash之后加nomodeset
ctrl+x进入系统

  • 0
    点赞
  • 0
    收藏
    觉得还不错? 一键收藏
  • 0
    评论
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

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

抵扣说明:

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

余额充值