In this article, I will share some of my experience on installing NVIDIA driver and CUDA on Linux OS. Here I mainly use Ubuntu as example. Comments for CentOS/Fedora are also provided as much as I can.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Debian | |
cd /tmp | |
# 下载源码 | |
git clone https://github.com/shadowsocks/shadowsocks-libev.git | |
# 开始编译 | |
cd shadowsocks-libev | |
./autogen.sh | |
./configure --prefix=/usr && make | |
make install |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
必要的更新 | |
apt-get update && apt-get upgrade | |
安装必要组件 | |
apt-get install --no-install-recommends build-essential autoconf libtool libssl-dev gawk debhelper dh-systemd init-system-helpers pkg-config asciidoc xmlto apg libpcre3-dev | |
下载shadowsocks-libev源码包并编译 | |
git clone https://github.com/shadowsocks/shadowsocks-libev.git | |
cd shadowsocks-libev | |
// 拷贝必要的文件 | |
mkdir -p /etc/shadowsocks-libev | |
cp ./debian/shadowsocks-libev.init /etc/init.d/shadowsocks-libev |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
@echo off | |
rem 要替换这些文件夹中的一个文件,注意是文件,不是目录 | |
rem 假设用D:\Data\123.txt替代D:\testData\下面所有的123.txt | |
set filename=123.txt | |
set pathname=D:\testData | |
set srcfile=D:\Data\123.txt | |
for /f "delims=" %%i in ('dir %pathname%\%filename% /s /b /a-d') do ( | |
echo %%i | |
copy "%srcfile%" "%%i" /y | |
) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
@echo off | |
rem ========================== | |
set interval=45 | |
rem 检测间隔,单位:秒 | |
rem ========================== | |
:LOOP | |
cls | |
@echo 执行机远程操控任务检测中 请勿关闭此框 %random% | |
if exist D:\ExecTask\ExecTask.bat ( | |
cd /d D:\ExecTask |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
git init # 初始化本地git仓库(创建新仓库) | |
git config --global user.name "xxx" # 配置用户名 | |
git config --global user.email "xxx@xxx.com" # 配置邮件 | |
git config --global color.ui true # git status等命令自动着色 | |
git config --global color.status auto | |
git config --global color.diff auto | |
git config --global color.branch auto | |
git config --global color.interactive auto | |
git config --global --unset http.proxy # remove proxy configuration on git | |
git clone git+ssh://git@192.168.53.168/VT.git # clone远程仓库 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
1.单台传输脚本 | |
cat /root/soft_shell/allscp.sh | |
#!/usr/bin/expect | |
if {$argc < 2} { | |
send_user "usage: $argv0 src_file username ip dest_file password\n" | |
exit | |
} | |
##set key [lindex $argv 0] | |
set src_file [lindex $argv 0] |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Device Mapper是基于内核的框架,支持Linux上的许多高级卷管理技术。Docker的devicemapper存储驱动程序利用此框架的精简配置和快照功能进行映像和容器管理。本文将Device Mapper存储驱动程序称为devicemapper,并将内核框架称为Device Mapper。 | |
对于支持它的系统,Linux内核中包含支持。但是,Docker需要使用特定的配置。例如,在RHEL或CentOS操作系统中,Docker将默认为overlay,overlay官方不建议在生产中使用。 | |
该devicemapper驱动程序使用专用于Docker的块设备,并在块级而非文件级进行操作。这些设备可以通过将物理存储添加到Docker主机来扩展,并且比在操作系统级别使用文件系统性能更好。 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
问题一:rancher日志打不开,点击view logs日志显示空白,左下显示disconnect,同时点击Execute Shell闪退 | |
原因及解决:原因为rancher server与rancher agent系统时间不同步导致,需要将两台hosts主机系统时间同步一致即可解决 | |
时间同步方法步骤:http://www.cnblogs.com/freeweb/p/5390552.html | |
问题二:no route to hosts | |
原因及解决:可能为某个防火墙端口未开放导致,需要放开其端口。 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
开放端口 | |
永久的开放需要的端口 | |
sudo firewall-cmd --zone=public --add-port=3000/tcp --permanent | |
sudo firewall-cmd --reload | |
之后检查新的防火墙规则 | |
firewall-cmd --list-all | |
关闭防火墙 | |
由于只是用于开发环境,所以打算把防火墙关闭掉 | |
//临时关闭防火墙,重启后会重新自动打开 |
OlderNewer