随笔分类 -  linux

摘要:相信大家在跑实验时都希望让GPU二十四小时跑,但有时候实验在半夜才结束,为了避免晚上接着跑实验需要半夜起床,同时为了不浪费计算资源,我们可以对多个GPU进行实时监测,当监测到GPU空闲时可以接着跑其他实验。 import os import sys import time cmd0 = 'CUDA_ 阅读全文
posted @ 2022-12-13 23:11 Uriel-w 阅读(143) 评论(0) 推荐(1)
摘要:有些程序我们在打开时,会一直占用我们的终端,而且终端还不能关掉,所以这时候我们就需要让程序在后台运行有些程序我们在打开时,会一直占用我们的终端,而且终端还不能关掉,所以这时候我们就需要让程序在后台运行。 1.命令: nohup python -u run.py > run.log 2>&1 & 参数 阅读全文
posted @ 2022-03-21 16:02 Uriel-w 阅读(446) 评论(0) 推荐(0)
摘要:本文为解决GPU计算资源充分利用,避免经常去查看GPU是否空闲,通过脚本检测GPU使用情况,当GPU利用率较低时来跑其他实验 首先新建一个py文件,将代码复制到文件中,对cmd的值表示我们需要执行的程序实验: import os import sys import time cmd = 'CUDA_ 阅读全文
posted @ 2022-03-21 14:28 Uriel-w 阅读(564) 评论(0) 推荐(0)
摘要:注意:下面缺少任何一个依赖包都不能安装成功,建议在线安装,让系统自动配置。CentOS和Ubuntu安装的包有所不同 Linux中离线下载软件包网站,主要提供RPM包:https://rpm.pbone.net/ ,https://pkgs.org/ 1、安装boost yum install bo 阅读全文
posted @ 2021-11-09 14:29 Uriel-w 阅读(441) 评论(0) 推荐(0)
摘要:一.git的安装和配置 1.git的安装命令: sudo apt-get install git 2.git配置 git config --global user.name "自己的昵称" git config --global user.email "邮箱地址" 二.nouveau禁用 1.通过命 阅读全文
posted @ 2021-06-22 23:41 Uriel-w 阅读(182) 评论(0) 推荐(0)
摘要:1.主题工具的安装(Gnome-Tweaks): 1 sudo apt-get update 2 sudo apt-get install gnome-tweak-tool 2.打开Tweaks,去掉appearance选项中的感叹号: 执行命令 1 sudo apt-get install gno 阅读全文
posted @ 2020-02-28 22:21 Uriel-w 阅读(287) 评论(0) 推荐(0)
摘要:1 cd 切换到指定文件位置 " . " 当前目录 " .. " 父目录 2 pwd 显示路径 3 ls 显示当前目录下的文件和目录 4 ls -F 区分文件和目录 5 ls -a 显示隐藏文件和普通文件 6 ls -R 显示文件下的内容 7 ls -l (ll)显示每个文件的相关信息 8 touc 阅读全文
posted @ 2020-02-14 22:04 Uriel-w 阅读(155) 评论(0) 推荐(1)
摘要:smplayer的安装: 1 sudo apt-get install smplayer 阅读全文
posted @ 2020-02-11 15:00 Uriel-w 阅读(222) 评论(0) 推荐(0)
摘要:1.通过终端窗口输入命令 全屏截图 1 gnome-screenshot 区域截图 esc键取消 1 gnome-screenshot -a 2.快捷键 PrtScr键全屏截图 Shift+Ctrl+print键区域截图 阅读全文
posted @ 2020-02-10 22:33 Uriel-w 阅读(742) 评论(0) 推荐(0)
摘要:登录界面的更换 更换登录界面背景图需要修改ubuntu.css文件 1.打开shell修改ubuntu.css文件前先对文件备份: 1 sudo cp /usr/share/gnome-shell/theme/ubuntu.css /usr/share/gnome-shell/theme/ubunt 阅读全文
posted @ 2020-02-10 21:55 Uriel-w 阅读(931) 评论(0) 推荐(0)
摘要:1.安装下载地址:http://www.wps.cn/product/wpslinux 2. Deb格式 阅读全文
posted @ 2020-02-10 21:29 Uriel-w 阅读(246) 评论(0) 推荐(0)
摘要:在shell中输入命令: 1.下载ntpdate 1 sudo apt-get install ntpdate 2.同步时间 1 ntpdate cn.pool.ntp.org 1 hwclock --systohc 3.重启 1 shutdown -r now 阅读全文
posted @ 2020-02-10 21:19 Uriel-w 阅读(287) 评论(0) 推荐(0)
摘要:cd 切换位置 " . " 当前目录 " .. " 父目录pwd 显示路径ls 显示当前目录下的文件和目录 ls -F 区分文件和目录 ls -a 显示隐藏文件和普通文件 ls -R 显示文件下的内容 ls -l (ll)显示每个文件的相关信息touch 创建空文件 cp 复制文件 rm 删除文件 阅读全文
posted @ 2020-02-10 12:59 Uriel-w 阅读(101) 评论(1) 推荐(0)