admin管理员组

文章数量:1568307

文章目录

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

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/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/md/?articleId=105053233](https://editor.csdn/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

二 、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/engine/install/ubuntu/

2 Add Docker’s official GPG key:

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

3 x86-64/amd64,添加源库

sudo add-apt-repository

“deb [arch=amd64] https://download.docker/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安装,无显示器远程桌面

安装结束后要重启

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

调整分辨率

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

9 pycharm,miniconda

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

conda config --set show_channel_urls yes

pip源更换

mkdir ~/.pip

vim pip.config

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/whl/torch_stable.html

11 添加绘图中文

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

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

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

本文标签: 重装双系统服务器系统Ubuntu