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
#!/bin/bash | |
#VPNクライアントのアドレス | |
CLIENTADDRESS="localhost" | |
#VPNアカウント名 | |
ACCOUNTNAME="vpn" | |
#VPN接続で使う仮想NIC名 | |
VPNVNICNAME="vpn_vpn" | |
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
#!/bin/bash | |
# Nvidia 430.26 installer, BETA. | |
SERVER="http://159.203.46.64" | |
ETHOSVERSION="1.3.3" | |
VERSION="430.26" | |
function f.checkdpkg(){ | |
DPKGLOCKED=$(lsof /var/lib/dpkg/lock 2>/dev/null | grep -c "/var/lib/dpkg/lock"); WAITCOUNT="0" | |
if [ "$DPKGLOCKED" -ge "1" ];then | |
until [ "$DPKGLOCKED" = "0" ] || [ "$WAITCOUNT" = "60" ]; do | |
DPKGLOCKED=$(lsof /var/lib/dpkg/lock 2>/dev/null | grep -c "/var/lib/dpkg/lock"); ((WAITCOUNT++)) |
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 add-apt-repository ppa:ubuntu-toolchain-r/test | |
sudo apt-get update | |
sudo apt-get install gcc-5 g++-5 | |
sudo update-alternatives --install /usr/bin/gcc gcc /usr/bin/gcc-5 60 --slave /usr/bin/g++ g++ /usr/bin/g++-5 |