removed usihelper.sh
This commit is contained in:
parent
c6c10c29ff
commit
ea33c135ec
|
@ -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}"
|
||||
|
76
usihelper.sh
76
usihelper.sh
|
@ -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
|
Loading…
Reference in New Issue