深度学习服务器ubuntu操作管理手册

实验室服务器操作指南

深度学习服务器ubuntu操作管理手册

#服务器管理员操作步骤:

*当前情况:
1.服务器系统盘装在名为计算机的Ext4(233.2GB),还有文件盘2T的机械硬盘挂载在/mnt/2T下,用图形界面查看名为2TDISK,要求每个用户必须在/mnt/2T 下创建个自己的目录统一管理。
2.存在两个组,学生组STUDENT,老师组TEACHER,老师组是管理员权限 ,在/mnt/2T 有额外的acl权限rwx

*添加用户到系统,并可以使用xrdp远程控制(新添加学生用户按照这个操作就行!!!)
1.#添加用户指定生成家目录, 并添加到ssl-cert组(远程连接的协议),新创建用户why
useradd -r -m -s /bin/bash -g <选择老师或者学生组名> -G ssl-cert why
2.#设置密码
passwd why
3.#将软件使用须知拷贝到新创建用户why家目录
sudo cp 软件使用须知.txt /home/why
4.#重启xrdp服务
sudo systemctl restart xrdp

*权限设定
1.STUDENT学生组(2T挂载盘的用户组,权限755 rwxr-xr-x) TEACHER老师组管理员权限(新添加的需要手动加入sudo组)

*其他杂项操作(可不看)
userdel -r zhx #所有有关zhx用户的文件 连同家目录一起删掉
sudo usermod -g STUDENT why #调整用户归属

sudo chgrp STUDENT ./2T #将2T挂载盘所属组改变
gpasswd -a why STUDENT #将why加入STUDENT组

sudo adduser fuzhou sudo #给用户管理员权限
sudo setfacl -m d:g:TEACHER:rwx -R ./2T #给挂载硬盘acl权限,教师组可以拥有rwx权

*docker选项
1.docker配置深度学习环境
root下有一个tensorflow-gpu=2.8.0的images
(1)必须pycharm专业版
(2)先拉取需要的images
(3)创建容器docker run -d --name zhxautotf -u 996 -it --rm --gpus all -v /home/zhx/Desktop/:/tf/Desktop -p 8888:8888 tensorflow/tensorflow:last-gpu
(4) pycharm下需要指定–runtime=nvidia
(5)从镜像里创建一个的docker容器
docker run -d --name zhxautot
(6)容器生成镜像
docker commit -a “runoob.com” -m “my apache” a404c6c174a2 mymysql:v1
2.权限
如果非root用户需要root下的images,需要修改权限:sudo chmod a+rwx /var/run/docker.sock
sudo chmod a+rwx /var/run/docker.pid

3.非root用户使用docker:
sudo gpasswd -a docker
newgrp docker

*docker指令
$ docker ps // 查看所有正在运行容器
$ docker stop containerId // containerId 是容器的ID
$ docker ps -a // 查看所有容器
$ docker ps -a -q // 查看所有容器ID
$ docker rm [container id] //删除容器
$ docker images //查看所有镜像
$ docker rmi [image id] //删除镜像
$ docker stop $(docker ps -a -q) // stop停止所有容器
$ docker rm $(docker ps -a -q) // remove删除所有容器
$ docker rm docker ps -a|grep Exited|awk '{print $1}' //删除所有Exited状态的容器
$ docker logs -tf --tail=“50” container_name //查看已启动容器日志
$ docker exec -it container_name bash/sh //进入已启动容器shell
$ docker run -ti --rm -v ~/tmp:/tmpdata qz757/ubuntu-python:1.0.0 bash //以bash方式启动容器并挂载临时目录给容器
$ docker commit [container id] [image name]

  • 0
    点赞
  • 1
    收藏
    觉得还不错? 一键收藏
  • 0
    评论
手册Ubuntu官方手册PDF文件,非影音版文件。而且是Ubuntu最新版本文件 v14.04. 希望能对您有帮助。 Prologue 5 Welcome 5 Ubuntu Philosophy 5 A brief history of Ubuntu 6 Is Ubuntu right for you? 7 Contact details 8 About the team 8 Conventions used in this book 8 1 Installation 9 Getting Ubuntu 9 Trying out Ubuntu 10 Installing Ubuntu—Getting started 11 Finishing Installation 16 2 The Ubuntu Desktop 19 Understanding the Ubuntu desktop 19 Unity 19 The Launcher 21 The Dash 21 Workspaces 24 Managing windows 24 Unity’s Keyboard Shortcuts 26 Browsing files on your computer 26 Files file manager 27 Searching for files and folders on your computer 29 Customizing your desktop 30 Accessibility 32 Session options 33 Getting help 33 3 Working with Ubuntu 37 All the applications you need 37 Getting online 39 Browsing the web 46 Reading and composing email 55 Using instant messaging 59 Viewing and editing photos 64 Watching videos and movies 67 Listening to audio and music 68 Burning cds and dvds 72 Working with documents, spreadsheets, and presentations 75 4 Hardware 77 Using your devices 77 Hardware identification 77 Displays 77 Connecting and using your printer 79 4 getting started with ubuntu 14.04 Sound 80 Using a webcam 81 Scanning text and images 82 Keyboard and mouse 82 Other devices 83 5 Software Management 85 Software management in Ubuntu 85 Using the Ubuntu Software Center 86 Managing additional software 89 Manual software installation 93 Updates and upgrades 94 6 Advanced Topics 97 Ubuntu for advanced users 97 Introduction to the terminal 97 Ubuntu file system structure 99 Securing Ubuntu 100 Why Ubuntu is safe 100 Basic security concepts 101 Users and groups 101 System updates 104 Firewall 104 Encryption 105 Running Windows Programs on Ubuntu 106 7 Troubleshooting 111 Resolving problems 111 Troubleshooting guide 111 Getting more help 116 8 Learning More 117 What else can I do with Ubuntu? 117 Open source software 117 Distribution families 117 Choosing amongst Ubuntu and its derivatives 118 Finding additional help and support 120 The Ubuntu community 121 Contributing 122 A License 123 Creative Commons Attribution–ShareAlike 3.0 Legal Code 123 Creative Commons Notice 129

“相关推荐”对你有帮助么?

  • 非常没帮助
  • 没帮助
  • 一般
  • 有帮助
  • 非常有帮助
提交
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

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

抵扣说明:

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

余额充值