1
1
Fork 0

removed usihelper.sh

This commit is contained in:
David Starzengruber 2010-11-24 11:19:18 +01:00
parent c6c10c29ff
commit ea33c135ec
2 changed files with 12 additions and 76 deletions

12
streamsrv.sh Executable file
View File

@ -0,0 +1,12 @@
#!/bin/bash
#########################################################################
## this script streams an audiofile on http port 8080 in a endless loop##
#########################################################################
## which file?
file="/home/david/Dropbox/the_band/tabakfabrikuncut.mp3"
## this should do it
vlc -L -Idummy $file --sout "#transcode{acodec=mpga,ab=128,channels=2,samplerate=44100}:std{access=http,mux=ts,dst=0.0.0.0:8080}"

View File

@ -1,76 +0,0 @@
#!/bin/bash
# hello message
echo "
##
## Ubuntu Software Install
## Helper Script
## v0.01
##
## Author: David Starzengruber
##
###########################################"
# am_i_root check
if [ $USER != "root" ]; then
echo "Sorry $USER, you need to run this script as user root! (try: sudo ./usihelper.sh)"
else
echo "Getting root privileges.."
fi
# var init
i="run"
do_systemupgrade="somethingelse"
echo "Updateing package sources.."
sudo apt-get update > /dev/null
# systemupgrade?
while [ $i == "run" ]; do
echo "Do you want to perform a full system upgrade first?(yes/no)"; read do_systemupgrade
if [ $do_systemupgrade == "yes" ]; then
sudo apt-get -y dist-upgrade | grep upgraded
i="upgraded"
else
if [ $do_systemupgrade == "no" ]; then
echo "Systemupgrade skipped!"
i="skipped"
else
echo "You need to type exactly yes or no!"
i="run"
fi
fi
done
i="run"
# choose softwarepackages (desktop, server, virtserver)
while [ $i == "run" ]; do
echo "Which sofware package you want to install? (desktop, server, virtserver)"; read package
if [ $package = "desktop" ]; then
echo "Installing desktop packages.."
sudo apt-get install -y htop nload nmap ncdu flashplugin-nonfree icedtea6-plugin vlc gimp discus | grep upgraded
i="desktop"
else
if [ $package = "server" ]; then
echo "Installing server packages.."
sudo apt-get install -y htop nload nmap ncdu discus ssh
i="server"
else
if [ $package = "virtserver" ]; then
echo "Installing virtual server packages.."
sudo apt-get install -y htop nload nmap ncdu discus ssh bash-completion
i="virtserver"
else
echo "You must use one of the possible values!"
i="run"
fi
fi
fi
done
echo "Cleaning up!"
sudo apt-get -y autoremove > /dev/null
echo "Everything is done!"
exit