Deep-Learning
安装NVDIA 驱动、CUDA、 cuDNN
第一步,确定合适的版本,参考NVIDIA驱动 - CUDA - cuDNN 关系
CUDA安装参考 : https://www.cnblogs.com/dinghongkai/p/11268976.html
UGet
sudo add-apt-repository ppa:plushuang-tw/uget-stable
sudo apt update
sudo apt install uget
Deepin-wine-ubuntu 安装与卸载
为了安装QQ、微信,安装了deepin-wine-ubuntu容器,结果出了各种问题,所以需要进行卸载,卸载也是Bug频出,最终成解决,步骤如下:
执行下述命令查看安装的相关包
dpkg --list | grep deepin.com
卸载所有deepin相关包
sudo dpkg -r $(dpkg --get-selections | grep deepin)
再次查看安装的包,基本清除了,最后清除rc标记的包
dpkg -l | grep ^rc | cut -d' ' -f3 | sudo xargs dpkg --purge
网易云
http://s1.music.126.net/download/pc/netease-cloud-music_0.9.0-2_amd64.deb
【其他版本可能出错】
sudo dpkg -i netease-cloud-music_1.1.0_amd64_ubuntu.deb
sudo apt-get -f install
搜狗拼音
有些依赖包错误,导致无法apt upgrade,所以需要用dpkg -r 卸载搜狗拼音
sudo apt-get install -f
GitNote
path : /home/yourname/.local/share/applications
文件右下角有锁
sudo shown -R user:user file
Terminal 方向键变为^[[A等
若在 ubuntu 系统下运行含有 source 命令的 shell 脚本时,出现 source: not found 错误,原因可能是 shell 的解释器不是 bash,需把 shell 的解释器更改为 bash。
请按以下步骤更改 shell 的解释器。
执行 ls -l /bin/sh 命令,若得到结果 /bin/sh -> dash ,则说明 shell 的解释器为 dash
执行 dpkg-reconfigure dash 命令,然后选择 no
注意:此步骤需要 root 权限
再次执行 ls -l /bin/sh 命令,若得到结果 /bin/sh -> bash,则说明成功更改 shell 的解释器为 bash。
source not found
试试输入bash后操作,不行用上面方法
install libgtk2.0-dev and pkg-config… ‘cvShowImage’
pip install opencv-contrib-python
How to run a program from terminal, which allows to close terminal after the program is open?
(command &) && exit
or
command & exit
scp and rsync
# update file without overwrite
rsync -au -e 'ssh -p <port-number>' source destianation
rsync -au -e 'ssh -p <port-number>' --progress --delete user@remote-server:/path/to/remote/folder /path/to/local/folder
# scp
scp -r -p port user@host:source dest
referencese:
https://www.tecmint.com/sync-files-using-rsync-with-non-standard-ssh-port/
https://unix.stackexchange.com/questions/14191/scp-without-replacing-existing-files-in-the-destination
Typora
/* add after all #write */
#write {
max-width: auto;
margin: 0 auto;
padding: 30px;
padding-bottom: 100px;
}
@media only screen and (min-width: 1400px) {
#write {
max-width: auto;
}
}
@media only screen and (min-width: 1800px) {
#write {
max-width: auto;
}
}
#typora-source .CodeMirror-lines {
max-width: 3600px; /*or 1000px*/
}
如何解决python进程被kill掉后GPU显存不释放的问题
1 重新开一个shell,然后输入: ps aux|grep user_name |grep python
所有该用户下的python程序就会显示出来(很多在用watch命令都不会显示的进程在这里可以看到);
2 然后再一个个用kill -9 pid命令清理