154 lines
5.1 KiB
Bash
154 lines
5.1 KiB
Bash
#!/bin/bash
|
|
|
|
case "$1" in #Erster Parameter in nach der Datei in der Konsole
|
|
|
|
installiere)
|
|
case "$2" in
|
|
|
|
tools)
|
|
echo "Tools werden installiert."
|
|
sudo apt-get install bleachbit nano xrdp htop bash-completion dialog
|
|
;;
|
|
|
|
vnc)
|
|
echo "Der Tightvncserver wird installiert."
|
|
sudo apt-get install xorg lxde-core tightvncserver
|
|
;;
|
|
|
|
docker-easy)
|
|
echo "Docker-ce wird installiert."
|
|
sudo apt-get update
|
|
sudo apt-get install apt-transport-https ca-certificates curl gnupg-agent software-properties-common
|
|
curl -fsSL https://download.docker.com/linux/ubuntu/gpg | sudo apt-key add -
|
|
sudo add-apt-repository "deb [arch=amd64] https://download.docker.com/linux/ubuntu $(lsb_release -cs) stable"
|
|
sudo apt-get update
|
|
sudo apt-get install docker-ce docker-ce-cli containerd.io
|
|
sudo docker run hello-world
|
|
;;
|
|
|
|
docker-ce)
|
|
echo "Docker-ce wird installiert."
|
|
chmod +x docker-ce.sh
|
|
./docker-ce.sh
|
|
;;
|
|
|
|
openvpn)
|
|
echo "OpenVPN wird versucht zu installieren."
|
|
echo "Installationsdatei in diesem Ordner platzieren:"
|
|
pwd
|
|
read -p "und Enter dreucken" enter
|
|
read -p "Name der Datei: " name
|
|
if [ -f $name ]
|
|
then
|
|
dpkg -i $name
|
|
passwd openvpn
|
|
else
|
|
echo "Datei nicht gefunden."
|
|
fi
|
|
;;
|
|
|
|
mysql)
|
|
echo "MySQL wird installiert."
|
|
sudo apt-get install mysql-server mysql-client libapache2-mod-auth-mysql phpmyadmin
|
|
;;
|
|
|
|
gui)
|
|
sudo apt-get install gnome-desktop-environment xorg
|
|
;;
|
|
|
|
*)
|
|
echo "Leider nichts passendes gefunden.
|
|
Es gibt:
|
|
1. tools
|
|
2. vnc
|
|
3. docker-easy
|
|
4. docker-ce
|
|
5. openvnp
|
|
6. mysql
|
|
7. gui"
|
|
;;
|
|
|
|
esac
|
|
;;
|
|
vnc)
|
|
case "$2" in
|
|
start)
|
|
echo "start"
|
|
tightvncserver :1
|
|
;;
|
|
|
|
stop)
|
|
echo "stop"
|
|
tightvncserver -kill :1
|
|
;;
|
|
|
|
log)
|
|
nano /root/.vnc/vps10040.qloc.de:1.log
|
|
;;
|
|
|
|
*)
|
|
echo "Unbekannter Command.
|
|
Es gibt:
|
|
1. start
|
|
2. stop
|
|
3. log"
|
|
;;
|
|
|
|
esac
|
|
;;
|
|
|
|
|
|
update)
|
|
echo "Das System wird geupdated."
|
|
sudo apt-get update
|
|
sudo apt-get upgrade
|
|
sudo apt-get dist-upgrade
|
|
sudo apt-get autoremove
|
|
sudo apt-get autoclean
|
|
;;
|
|
|
|
bleachclean)
|
|
bleachbit -c adobe_reader.cache adobe_reader.mru adobe_reader.tmp amsn.cache amsn.chat_logs amule.logs amule.tmp apt.autoclean apt.autoremove apt.clean apt.package_lists audacious.cache audacious.log audacious.mru bash.history beagle.cache beagle.index beagle.logs chromium.cache chromium.cookies chromium.current_session chromium.dom chromium.form_history chromium.history chromium.passwords chromium.search_engines chromium.vacuum d4x.history deepscan.backup deepscan.ds_store deepscan.thumbs_db deepscan.tmp easytag.history easytag.logs elinks.history emesene.cache emesene.logs epiphany.cache epiphany.cookies epiphany.passwords epiphany.places evolution.cache exaile.cache exaile.downloaded_podcasts exaile.log filezilla.mru firefox.cache firefox.cookies firefox.crash_reports firefox.dom firefox.download_history firefox.forms firefox.passwords firefox.session_restore firefox.site_preferences firefox.url_history firefox.vacuum flash.cache flash.cookies gedit.recent_documents gftp.cache gftp.logs gimp.tmp gl-117.debug_logs gnome.run gnome.search_history google_chrome.cache google_chrome.cookies google_chrome.dom google_chrome.form_history google_chrome.history google_chrome.passwords google_chrome.search_engines google_chrome.session google_chrome.vacuum google_earth.temporary_files google_toolbar.search_history gpodder.cache gpodder.vacuum gwenview.recent_documents hippo_opensim_viewer.cache hippo_opensim_viewer.logs java.cache kde.cache kde.recent_documents kde.tmp konqueror.cookies konqueror.current_session konqueror.url_history libreoffice.cache libreoffice.history liferea.cache liferea.cookies liferea.vacuum links2.history midnightcommander.history miro.cache miro.logs nautilus.history nexuiz.cache octave.history openofficeorg.cache openofficeorg.recent_documents opera.cache opera.cookies opera.current_session opera.dom opera.download_history opera.search_history opera.url_history pidgin.cache pidgin.logs realplayer.cookies realplayer.history realplayer.logs recoll.index rhythmbox.cache screenlets.logs seamonkey.cache seamonkey.chat_logs seamonkey.cookies seamonkey.download_history seamonkey.history secondlife_viewer.Cache secondlife_viewer.Logs skype.chat_logs sqlite3.history system.cache system.clipboard system.custom system.desktop_entry system.localizations system.recent_documents system.rotated_logs system.tmp system.trash thumbnails.cache thunderbird.cache thunderbird.cookies thunderbird.index thunderbird.passwords thunderbird.vacuum transmission.cache tremulous.cache vim.history vlc.mru vuze.backup_files vuze.cache vuze.logs vuze.tmp warzone2100.logs wine.tmp winetricks.temporary_files x11.debug_logs xchat.logs xine.cache yum.clean_all yum.vacuum
|
|
;;
|
|
|
|
hacker)
|
|
printf "\e[32m\n"
|
|
while :
|
|
do
|
|
for i in {1..16}
|
|
do
|
|
((r = $RANDOM % 2))
|
|
if (($RANDOM % 5 == 1))
|
|
then
|
|
if (($RANDOM % 4 == 1))
|
|
then
|
|
v+="\e[1m $r "
|
|
else
|
|
v+="\e[2m $r "
|
|
fi
|
|
else
|
|
v+=" "
|
|
fi
|
|
done
|
|
printf "$v\n"
|
|
v=""
|
|
done
|
|
;;
|
|
|
|
help)
|
|
cat help.txt
|
|
;;
|
|
|
|
*)
|
|
echo "Unbekannter Command.
|
|
Es gibt:
|
|
1. installiere
|
|
2. vnc
|
|
3. update
|
|
4. bleachclean
|
|
5. hacker
|
|
6. help (Infos fuer TS3, OpenVPN und MySQL)"
|
|
;;
|
|
|
|
esac
|
|
exit 0 |