add virtual machine configurations
parent
abb3d2462b
commit
e8ea35562b
|
@ -10,7 +10,8 @@ mkdir -p \
|
||||||
system \
|
system \
|
||||||
themes \
|
themes \
|
||||||
unused \
|
unused \
|
||||||
vim
|
vim \
|
||||||
|
virtual-machines
|
||||||
|
|
||||||
while read f t
|
while read f t
|
||||||
eval set t $t
|
eval set t $t
|
||||||
|
@ -35,5 +36,16 @@ for repo in ~/.vim/pack/*/*/*
|
||||||
popd
|
popd
|
||||||
end | sort > vim/package_repos
|
end | sort > vim/package_repos
|
||||||
|
|
||||||
|
# copy virtual machine configurations
|
||||||
|
|
||||||
|
for dir in /mnt/s/vm/*
|
||||||
|
set file "$dir/run.fish"
|
||||||
|
if test -f "$file"
|
||||||
|
cp "$file" virtual-machines/(basename "$dir")-run.fish
|
||||||
|
end
|
||||||
|
end
|
||||||
|
|
||||||
|
# erase passwords
|
||||||
|
|
||||||
sed -i 's/password>.*<\//password>password removed<\//g' network/icecast.xml
|
sed -i 's/password>.*<\//password>password removed<\//g' network/icecast.xml
|
||||||
sed -i 's/password\(\s*\)".*"/password\1"password removed"/g' network/mpd.conf
|
sed -i 's/password\(\s*\)".*"/password\1"password removed"/g' network/mpd.conf
|
||||||
|
|
1
files
1
files
|
@ -30,3 +30,4 @@ themes ~/.slade3/text_styles/*
|
||||||
themes/ripcord.json ~/.local/share/Ripcord/custom_theme.json
|
themes/ripcord.json ~/.local/share/Ripcord/custom_theme.json
|
||||||
themes/userChrome.css ~/.mozilla/firefox/*/chrome/userChrome.css
|
themes/userChrome.css ~/.mozilla/firefox/*/chrome/userChrome.css
|
||||||
vim/vimrc ~/.vim/vimrc
|
vim/vimrc ~/.vim/vimrc
|
||||||
|
virtual-machines /mnt/s/vm/*.fish
|
||||||
|
|
|
@ -0,0 +1,14 @@
|
||||||
|
#!/usr/bin/env fish
|
||||||
|
|
||||||
|
run-qemu i386 \
|
||||||
|
--drive file=image,format=qcow2,media=disk \
|
||||||
|
--drive file="$m/MS Windows/2000 Pro/5.00.2195.iso",media=cdrom,readonly \
|
||||||
|
-m 384 \
|
||||||
|
--boot order=d \
|
||||||
|
--vga cirrus \
|
||||||
|
--net nic,model=rtl8139 \
|
||||||
|
--net user \
|
||||||
|
--usb \
|
||||||
|
--soundhw ac97
|
||||||
|
|
||||||
|
## EOF
|
|
@ -0,0 +1,15 @@
|
||||||
|
#!/usr/bin/env fish
|
||||||
|
|
||||||
|
run-qemu i386 \
|
||||||
|
--drive file=image,format=qcow2,media=disk \
|
||||||
|
--drive file="$m/Boot Disks/98SE.img",format=raw,if=floppy,readonly \
|
||||||
|
--drive file="$m/MS Windows/98 2nd Edition/98SE.iso",media=cdrom,readonly \
|
||||||
|
-m 384 \
|
||||||
|
--boot order=d \
|
||||||
|
--vga cirrus \
|
||||||
|
--net nic,model=rtl8139 \
|
||||||
|
--net user \
|
||||||
|
--usb \
|
||||||
|
--soundhw ac97
|
||||||
|
|
||||||
|
## EOF
|
|
@ -0,0 +1,13 @@
|
||||||
|
function run-qemu
|
||||||
|
set arch (shift)
|
||||||
|
env \
|
||||||
|
QEMU_AUDIO_DRV=pa \
|
||||||
|
"qemu-system-$arch" \
|
||||||
|
--machine accel=kvm \
|
||||||
|
--display sdl,gl=on \
|
||||||
|
$argv
|
||||||
|
end
|
||||||
|
|
||||||
|
set m "/mnt/s/osmedia"
|
||||||
|
|
||||||
|
## EOF
|
Loading…
Reference in New Issue