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
docker run -v $OVPN_DATA:/etc/openvpn -d -p 1194:1194/udp --cap-add=NET_ADMIN --restart unless-stopped openvpn |
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
#First import all the files | |
for i in *.ovpn; do nmcli connection import file "$i" type openvpn; done | |
#Now save the script below on some location: | |
#!/bin/bash |
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
/* Multi row tabs */ | |
.tabbrowser-tab:not([pinned]) { | |
flex-grow:1 !important; | |
min-width:100px !important; | |
} | |
#tabbrowser-tabs .scrollbox-innerbox { | |
display: flex !important; | |
flex-wrap: wrap !important; | |
} |
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 | |
# This script will extract the certificate and key from an .ovpn file | |
# into their own files, which makes it possible to use them to configure | |
# the VPN using Ubuntu's network manager | |
# Usage example: | |
# >> ovpnconvert username.dev.ovpn | |
# You can keep following these instructions here: |
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
proc /proc proc defaults 0 0 | |
PARTUUID=c14edef9-01 /boot vfat defaults 0 2 | |
PARTUUID=c14edef9-02 / ext4 defaults,noatime 0 1 | |
PARTUUID=df63cda7-01 /media/external ext4 defaults,auto,nofail,users,rw 0 0 | |
# a swapfile is not a swap partition, no line here | |
# use dphys-swapfile swap[on|off] for that |
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 mount -t cifs //192.168.0.3/Public /media/external |
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
SERVER_NAME="udp://cilinho.dyndns.org" | |
git clone https://github.com/kylemanna/docker-openvpn | |
cd docker-openvpn | |
sudo docker build -t openvpn . | |
OVPN_DATA="ovpn-data-example" | |
sudo docker volume create --name $OVPN_DATA | |
sudo docker run -v $OVPN_DATA:/etc/openvpn --log-driver=none --rm openvpn ovpn_genconfig -u $SERVER_NAME | |
sudo docker run -v $OVPN_DATA:/etc/openvpn --log-driver=none --rm -it openvpn ovpn_initpki | |
sudo docker run -v $OVPN_DATA:/etc/openvpn -d --restart unless-stopped -p 1194:1194/udp --cap-add=NET_ADMIN openvpn | |
sudo docker run -v $OVPN_DATA:/etc/openvpn --log-driver=none --rm -it openvpn easyrsa build-client-full zanella nopass |
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 bash -c 'sleep 4h; docker stop b6d' |
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
/home/lz/cmake-3.14.0-rc2-Linux-x86_64/bin/cmake -DCMAKE_PREFIX_PATH=/home/lz/Qt5.11.2/5.11.2/gcc_64 . |
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
qemu-img resize ubuntu-server.qcow2 +5G | |
then go into the machine you want to increase space, add a second ubuntu disk ,make it first bootable disk, turn on, resize with the disks app, shut down, take off second ubuntu |