Skip to content

Instantly share code, notes, and snippets.

sudo ifconfig bridge0 create
sudo ifconfig bridge0 addm en0
sudo ifconfig bridge0 172.1.0.1/24
sudo ifconfig bridge0 up
@defcyy
defcyy / pptp-vpn-for-ubuntu.sh
Created November 30, 2017 12:23
pptp vpn setup for ubuntu
sudo apt install -y pptp-linux
# create pptp connection
sudo pptpsetup --create ${vpn_name} --server ${server} --username ${username} --password ${password} --start
# start exists pptp peer
sudo pon ${vpn_name} debug dump logfd 2 nodetach
# add route table
sudo route add -net ${network} dev ppp0
@defcyy
defcyy / README.md
Created October 29, 2017 14:47 — forked from mowings/README.md
Set up xhyve with Ubuntu 16.04

Introduction

Setting up an OS to work with xhyve can be a bit tricky, but it's not impossible. These intructions should be generally applicable to most versions of Linux.

Create a disk image file

Xhyve will use a file as a logical disk. Be sure you have the filesize you need, because growing the file later is tricky to impossible (you could try to use qcow or similar to get around this, but qcow volumes can be tricky to mount).

dd if=/dev/zero of=hdd.img bs=1g count=32 # Create a 32 gig disk. Raise 'count' as desired
@defcyy
defcyy / useful-linux-command.sh
Last active September 26, 2017 03:58
Extra rpm files
rpm2cpio xxx.rpm | cpio -div