运维系统相关

  1. 包名称与链接库
包名称链接名
libbz2-dev-lbz2
libncurses5 libncurses5-dev-lcurses -lncurses
  1. 环境安装
  • ubuntu14 安装jdk
sudo add-apt-repository ppa:openjdk-r/ppa
sudo apt-get update
sudo apt-get install openjdk-8-jdk
sudo update-alternatives --config java
sudo update-alternatives --config javac
  1. ubuntu16 openvpn无法联网
script-security 2
up /etc/openvpn/update-resolv-conf
down /etc/openvpn/update-resolv-conf

配置文件加入上述配置
或者在/etc/resolv.conf中加入DNS

ubuntu刷新DNS

sudo /etc/init.d/dns-clean start
  1. ubuntu16 gcc升级
sudo add-apt-repository ppa:ubuntu-toolchain-r/test
sudo apt-get update 
sudo apt-get install gcc-8
sudo apt-get install g++-8

sudo update-alternatives --install /usr/bin/gcc gcc /usr/bin/gcc-8 100
sudo update-alternatives --config gcc

sudo update-alternatives --install /usr/bin/g++ g++ /usr/bin/g++-8 100
sudo update-alternatives --config g++
  1. cuda
https://tensorflow.google.cn/install/gpu
  1. centos7
yum install centos-release-scl
yum install devtoolset-7-gcc*
update-alternatives --install /usr/bin/g++ g++ /opt/rh/devtoolset-7/root/bin/g++ 40
update-alternatives --install /usr/bin/gcc gcc /opt/rh/devtoolset-7/root/bin/gcc 40
sudo rpm -v --import http://li.nux.ro/download/nux/RPM-GPG-KEY-nux.ro
sudo rpm -Uvh http://li.nux.ro/download/nux/dextop/el7/x86_64/nux-dextop-release-0-5.el7.nux.noarch.rpm
sudo yum install exfat-utils fuse-exfat
  1. ubuntu – 找不到lgfortran
得到了错误
/usr/bin/ld: cannot find -lgfortran
虽然安装了:
ldconfig -p  |  grep   fortran
    libgfortran.so.3 (libc6,x86-64) => /usr/lib/libgfortran.so.3
解决办法:
sudo ln -s /usr/lib/x86_64-linux-gnu/libgfortran.so.3 /usr/lib/x86_64-linux-gnu/libgfortran.so
因为-lname选项(在本例中为name为gfortran)指示链接器在库搜索路径中搜索名为libname.a的库文件.如果找到并且没有 – [B]静态选项强制执行静态链接,则链接器将再次搜索libname.so并改为链接(如果找到).如果找不到libname.a,则尽管存在libname.so,仍会给出错误.

  1. centos7 代理实验

pip install shadowsocks

ssserver -p 443 -k password -m rc4-md5 --user nobody -d start

yum install privoxy

vim /etc/privoxy/config

listen-address :8118
enable-remote-toggle 1
forward-socks5 / 127.0.0.1:443

service privoxy restart
到此就可以直接使用这台机器作为http代理了,端口号为8118,使用其它机器测试

ubuntu20.04

sudo apt-get install privoxy
sudo vim /etc/privoxy/config
去掉forward-socks5t行注释,改成单位的ip:port
forward-socks5t / 192.168.0.119:3128 .
sudo /etc/init.d/privoxy restart
export http_proxy=“192.168.0.119:3128”
export https_proxy=“192.168.0.119:3128”

  1. 数学库
apt-get install libblas-dev liblapack-dev
apt-get install libasound-dev portaudio19-dev libportaudio2 libportaudiocpp0

10 centos7 git升级

wget http://opensource.wandisco.com/centos/7/git/x86_64/wandisco-git-release-7-2.noarch.rpm && rpm -ivh wandisco-git-release-7-2.noarch.rpm
yum install git -y
  1. sshfs
sshfs mooz@192.168.6.83:/home/data data
  • fusermount -u data
  • unmount -l data
  1. centos7 glibcs 升级
下载升级文件:wget http://mirrors.ustc.edu.cn/gnu/libc/glibc-2.18.tar.gz
2、tar -zxvf glibc-2.18.tar.gz
3、cd glibc-2.18
4、mkdir build && cd build
5、…/configure --prefix=/usr --disable-profile --enable-add-ons --with-headers=/usr/include --with-binutils=/usr/bin
6、编译项目make -j4
7、sudo make install
8、检查:strings /usr/lib64/libc.so.6 | grep GLIBC_2.1

评论 1
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

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

抵扣说明:

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

余额充值