summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rwxr-xr-xcreate-new-vm.sh5
-rw-r--r--setup-arch-vm6
-rwxr-xr-x[-rw-r--r--]upgrade_pg.sh0
-rwxr-xr-xvpn-connect5
-rwxr-xr-xxo1
5 files changed, 9 insertions, 8 deletions
diff --git a/create-new-vm.sh b/create-new-vm.sh
index 8419ff1..7e3169f 100755
--- a/create-new-vm.sh
+++ b/create-new-vm.sh
@@ -17,8 +17,8 @@ fi
cat <<EOF >vm.xml
<domain type='kvm'>
<name>$name</name>
- <memory unit='KiB'>1048576</memory>
- <currentMemory unit='KiB'>1048576</currentMemory>
+ <memory unit='KiB'>2097152</memory>
+ <currentMemory unit='KiB'>2097152</currentMemory>
<vcpu placement='static'>4</vcpu>
<os>
<type arch='x86_64' machine='pc-i440fx-1.7'>hvm</type>
@@ -54,6 +54,7 @@ cat <<EOF >vm.xml
<interface type='network'>
<source network='mynet'/>
<model type='virtio'/>
+ <filterref filter='clean-traffic'/>
</interface>
<serial type='pty'>
<target port='0'/>
diff --git a/setup-arch-vm b/setup-arch-vm
index 2dac5b1..226956e 100644
--- a/setup-arch-vm
+++ b/setup-arch-vm
@@ -40,7 +40,7 @@ done
parted -s -- $disk mklabel msdos mkpart primary 1 -0
-mkfs.ext4 ${disk}1
+mkfs.btrfs ${disk}1
mount ${disk}1 /mnt
cat <<EOF >/etc/pacman.d/mirrorlist
Server = http://mirror.server-speed.net/\$repo/os/\$arch
@@ -49,7 +49,7 @@ EOF
pacstrap /mnt base syslinux sudo openssh haveged htop git zsh screen dnsutils vim net-tools
genfstab -p /mnt >> /mnt/etc/fstab
-mymac=$(ip addr show dev eth0 | sed -rn 's#^\s+link/ether ([0-9a-f]{2}:[0-9a-f]{2}:[0-9a-f]{2}:[0-9a-f]{2}:[0-9a-f]{2}:[0-9a-f]{2}).*$#\1#p')
+mymac=$(ip addr show dev ens3 | sed -rn 's#^\s+link/ether ([0-9a-f]{2}:[0-9a-f]{2}:[0-9a-f]{2}:[0-9a-f]{2}:[0-9a-f]{2}:[0-9a-f]{2}).*$#\1#p')
get_url "http://$server/hostnames/$mymac" "archvm" > /mnt/etc/hostname
hostname=$(cat /mnt/etc/hostname)
@@ -62,7 +62,7 @@ Name=e*
$(get_url "http://$server/network/$hostname")
EOF
-ln -s /usr/share/zoneinfo/Europe/Vienna /mnt/etc/localtime
+ln -sf /usr/share/zoneinfo/Europe/Vienna /mnt/etc/localtime
echo "en_US.UTF-8 UTF-8" > /mnt/etc/locale.gen
arch-chroot /mnt locale-gen
diff --git a/upgrade_pg.sh b/upgrade_pg.sh
index 21ee18a..21ee18a 100644..100755
--- a/upgrade_pg.sh
+++ b/upgrade_pg.sh
diff --git a/vpn-connect b/vpn-connect
index 70afefd..fef8fea 100755
--- a/vpn-connect
+++ b/vpn-connect
@@ -3,9 +3,8 @@
#vpnc --password-helper "$HOME/bin/vpn-getpass" tu.conf
#vpn-getpass | sudo openconnect -u e1125452@student.tuwien.ac.at --authgroup TU_getunnelt --passwd-on-stdin -b -i vpntun0 vpn.tuwien.ac.at
-vpn-getpass | sudo openconnect -u e1125452@student.tuwien.ac.at --authgroup TU_getunnelt --passwd-on-stdin -b -i vpntun0 vpn.tuwien.ac.at
-
-sleep 1
+## need to run this in shell: sudo openconnect -u e1125452@student.tuwien.ac.at --authgroup TU_getunnelt --syslog -i vpntun0 vpn.tuwien.ac.at
+#vpn-getpass | sudo openconnect -u e1125452@student.tuwien.ac.at --authgroup TU_getunnelt --passwd-on-stdin -b --syslog -i vpntun0 vpn.tuwien.ac.at
sudo ip route delete default dev vpntun0
sudo ip route add default via 192.168.4.1 dev br0
diff --git a/xo b/xo
index c645502..9935cd4 100755
--- a/xo
+++ b/xo
@@ -27,6 +27,7 @@ handler[inode/directory]=dolphin
handler[application/pdf]=evince
handler[application/vnd.oasis.opendocument.text]=$doc
handler[application/xml]=firefox
+handler[scad]=openscad
handler[doc]=$doc
handler[image]=$image
handler[odb]=$doc