1
1
Fork 0

cleaning up

This commit is contained in:
David Starzengruber 2011-06-27 02:12:54 +02:00
parent 7376816487
commit 6ffc120453
11 changed files with 2 additions and 92 deletions

View File

@ -1,22 +0,0 @@
#!/bin/bash
# this will let the message blink five times :-)
i=0
while [ $i != 5 ]; do
clear
sleep 0.5
echo
echo
echo " ####################################"
echo " ## ##"
echo " ## Attention: You are a dumbass ##"
echo " ## ##"
echo " ####################################"
echo
echo
sleep 0.5
let i++
done
clear

View File

@ -1,44 +0,0 @@
#!/bin/bash
#
# mount script for qcow2 images
# v0.1
#
# read imagename
if [ -z $1 ]; then
echo 'usage: "browseqcow2 <image.qcow2>"'
exit 1
fi
imagename=$1
# im i root
if [ $(whoami) != "root" ]; then
echo "only root can do this"
exit 1
fi
# run unmount
if [[ $1 = "--unmount" || $1 = "-u" || $1 = "--umount" ]]; then
umount /mnt/
qemu-nbd --disconnect /dev/nbd0
echo "image unmounted"
echo
exit 0
fi
# load kernel module
modprobe nbd max_part=8
# gen blockdevice
qemu-nbd --connect=/dev/nbd0 $imagename
# make the actual mount
sleep 2
mount /dev/nbd0p1 /mnt/
echo "$imagename is mounted in /mnt"
echo 'run "browseqcow2.sh --unmount" when ready'
echo

View File

@ -1,16 +0,0 @@
#!/bin/bash
if [ -z $1 ]; then
# reading the imagename
echo "what name should it have?"
read name
else
name=$1
fi
# generating the actual image
qemu-img create -f qcow2 $name.qcow2 16G
exit 0

View File

@ -8,5 +8,7 @@ wget -O cacert-root.crt "http://www.cacert.org/certs/root.crt"
wget -O cacert-class3.crt "http://www.cacert.org/certs/class3.crt"
certutil -d sql:$HOME/.pki/nssdb -A -t TC -n "CAcert.org" -i cacert-root.crt
certutil -d sql:$HOME/.pki/nssdb -A -t TC -n "CAcert.org Class 3" -i cacert-class3.crt
rm cacert-root.crt
rm cacert-class3.crt
# source: http://wiki.cacert.org/BrowserClients

View File

@ -1,10 +0,0 @@
#!/bin/bash
echo "starting jdownloader"
java -jar /home/david/Software/JDownloader/JDownloader.jar &> /dev/null
echo "exiting"
sleep 1
echo "byebye"
sleep 2
exit 0