ubuntu服务器系统卸载重装,双系统卸载和安装-及ubuntu配置

文章目录

一、双系统安装卸载的方法

1 安装win10,制作usio软碟通镜像到u盘,uefi启动。

2 为新系统预留黑色未新建格式的分区200G(/ext4和/homeext4各100G)

3 安装ubutnu也是软碟通,ufei启动。安装在/和/home的新建分区下

4 卸载ubutnu,进入diskpart的partition的efi对其letter=p,进入p后rd -r ubuntu。之后再删除ubuntu分区

5 挂在硬盘,格式化为ext4,但是不会吃掉存贮

二 、ubuntu系统安装好后优化系统查看系统uname -a

0 图标最小化

1 首先更改源,更新系统,才能成功安装teamviewer

2 安装gnome-tweaks,添加startup:teamveiwer,更改字体、图标大小

3 ssh-server sudo apt-get install openssh-server

查询 service ssh status,后是active就可以连接了

4 高效开发工具:git、vim、pdb(python调试器)、Terminator(分屏)、screen任务托管、docker

5 docker[安装](https://hub.docker.com/editions/community/docker-ce-server-ubuntu)

1 setup docker repository

2 Add Docker’s official GPG key:

3 x86-64/amd64,添加源库

4 安装dockers

5 验证sudo docker run hello-world

6 docker login,search zhangjianhehenry

7 运行nextcloud

8 添加data盘自启动

三 NVIDIA安装,无显示器远程桌面

安装结束后要重启

9 pycharm,miniconda

10 cuda,cudnn,opencv,torch

11 添加绘图中文

1 下载SimHei、修改rc,删除cache

一、双系统安装卸载的方法

1 安装win10,制作usio软碟通镜像到u盘,uefi启动。

[https://editor.csdn.net/md/?articleId=105053233](https://editor.csdn.net/md/?articleId=105053233)

2 为新系统预留黑色未新建格式的分区200G(/ext4和/homeext4各100G)

3 安装ubutnu也是软碟通,ufei启动。安装在/和/home的新建分区下

4 卸载ubutnu,进入diskpart的partition的efi对其letter=p,进入p后rd -r ubuntu。之后再删除ubuntu分区

5 挂在硬盘,格式化为ext4,但是不会吃掉存贮

格式化为ext4,但是不会吃掉太多存储量

sudo umount /dev/sdb

sudo mkfs.ext4 -m 0.05 /dev/sdb

sudo mount /dev/sdb /mnt/nextcloud

ae18f1be1189585b70e1a43513ba9748.png

二 、ubuntu系统安装好后优化系统查看系统uname -a

0 图标最小化

gsettings set org.gnome.shell.extensions.dash-to-dock click-action 'minimize'

1 首先更改源,更新系统,才能成功安装teamviewer

2 安装gnome-tweaks,添加startup:teamveiwer,更改字体、图标大小

3 ssh-server sudo apt-get install openssh-server

查询 service ssh status,后是active就可以连接了

4 高效开发工具:git、vim、pdb(python调试器)、Terminator(分屏)、screen任务托管、docker

5 docker安装

1 setup docker repository

$ sudo apt-get update

$ sudo apt-get install \

apt-transport-https \

ca-certificates \

curl \

gnupg-agent \

software-properties-common

https://docs.docker.com/engine/install/ubuntu/

2 Add Docker’s official GPG key:

$ curl -fsSL https://download.docker.com/linux/ubuntu/gpg | sudo apt-key add -

3 x86-64/amd64,添加源库

sudo add-apt-repository

“deb [arch=amd64] https://download.docker.com/linux/ubuntu

$(lsb_release -cs)

stable”

4 安装dockers

$ sudo apt-get update

$ sudo apt-get install docker-ce docker-ce-cli containerd.io

5 验证sudo docker run hello-world

6 docker login,search zhangjianhehenry

7 运行nextcloud

docker run -d --name nextcloud --restart=always -p 30:80 -v /mnt/nextcloud/data:/var/www/html/data zhangjianhehenry/nextcloud

#更改trust域名

docker exec -it nextcloud /bin/bash

# 3天自动删除

‘trashbin_retention_obligation’ => ‘auto,3’,

8 添加data盘自启动

sudo blkid #复制uuid

sudo vim /etc/fstab #粘贴uuid

UUID=d2c70c37-de0d-48fe-9fcc-8600f6ece7d0 /mnt/nextcloud ext4 defaults 0 0

三 NVIDIA安装,无显示器远程桌面

fc5c6007d775aab14d7fd769ce9335e7.png

安装结束后要重启

sudo apt-get install xserver-xorg-core-hwe-18.04

sudo apt-get install xserver-xorg-video-dummy-hwe-18.04 --fix-missing

sudo vim /usr/share/X11/xorg.conf.d/xorg.conf

Section "Device"

Identifier "Configured Video Device"

Driver "dummy"

EndSection

Section "Monitor"

Identifier "Configured Monitor"

HorizSync 31.5-48.5

VertRefresh 50-70

EndSection

Section "Screen"

Identifier "Default Screen"

Monitor "Configured Monitor"

Device "Configured Video Device"

DefaultDepth 24

SubSection "Display"

Depth 24

Modes "1920x1080"

EndSubSection

EndSection

调整分辨率

b138cbb2874ea424cf93bde4d7d89652.png

gnome-tweaks font都设置为10,size=0.7

9 pycharm,miniconda

conda config --add channels https://mirrors.tuna.tsinghua.edu.cn/anaconda/pkgs/free/

conda config --set show_channel_urls yes

pip源更换

mkdir ~/.pip

vim pip.config

fb272df7ebd0d2285bc80afd0db22ea4.png

10 cuda,cudnn,opencv,torch

pip install opencv-python opencv-contrib-python

pip install torch==1.5.0+cu101 torchvision==0.6.0+cu101 -f https://download.pytorch.org/whl/torch_stable.html

11 添加绘图中文

https://blog.csdn.net/sinat_40875078/article/details/104326855

1 下载SimHei、修改rc,删除cache

https://www.fontpalace.com/font-download/SimHei/

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

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

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

抵扣说明:

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

余额充值