Až teraz som sa dostal ku skriptom (ešte som ich nevytváral) a chcel by som sa opýtať ako skriptoš- začiatočník, ako by mal vyzerať skript v ktorom chcem docieliť:
1. Automatickú inštaláciu balíkov ako root z lokálneho repozitára (sources je vyriešený)
2. Aby sa Apt nezastavoval pri otázkach typu "stiahnuť súbory" alebo "stiahnuť z nedôveryhodných zdrojov"
Mám asi takúto predstavu:
#!/bin/bash
## MULTIMEDIA
sudo apt-get install gstreamer0.10-ffmpeg gstreamer0.10-gl gstreamer0.10-pitfdll gstreamer0.10-plugins-base gstreamer0.10-plugins-bad gstreamer0.10-plugins-bad-multiverse gstreamer0.10-plugins-good gstreamer0.10-plugins-ugly gstreamer0.10-plugins-ugly-multiverse ffmpeg lame faad sox mjpegtools libxine-main1 libxine-extracodecs
## MEDIA PLAYERS
sudo apt-get install mplayer totem-xine w32codecs
sudo sh /usr/share/doc/libdvdread3/examples/install-css.sh
## FLASH&MSFONTS
sudo apt-get install flashplugin-nonfree msttcorefonts
## SUN JAVA PLUGIN
sudo apt-get install sun-java5-bin sun-java5-fonts sun-java5-jre sun-java5-plugin
sudo update-alternatives --config java
## DESKTOP
sudo apt-get install gaim-guifications nautilus-open-terminal
## GRAFIKA
sudo apt-get install gtkam inkscape
## INTERNET
sudo apt-get install deluge d4x firestarter gftp gnome-ppp liferea opera
## KANCELÁRIA
sudo apt-get install acroread dosbox wine
## PODPORA
sudo apt-get install libsdl-image1.2 libsdl-mixer1.2 mc unrar
## PRÍSLUŠENSTVO
sudo apt-get install glipper gnokii gnome-commander gshutdown
## PROGRAMOVANIE
sudo apt-get install bluefish nvu
## SYSTÉMOVKY
sudo apt-get install gkrellm #desktopsecure
## VÝVOJ
sudo apt-get install build-essential dpkg-dev linux-headers-2.6.15-26-386
## ZVUK A VIDEO
sudo apt-get install gnomebaker xmms xmms-arts xmms-mad xmms-oggre xmms-wma
## DOWNLOAD
cd /mnt/datadisk/Programy/Download/
sudo dpkg -i FrostWire-4.10.9-2.i586.deb gnocky_0.0.3-1_i386.deb gtk2-engines-candido_0.9-1_i386.deb
echo "Inštalácia balíkov ukončená!"
sleep 5
volba-y
preapt-get
znamena automaticke yes#!/bin/bash ## RESTRICTED FORMATS echo *** Multimedia - Install *** && sleep 2s apt-get -y install --force-yes gstreamer0.10-ffmpeg gstreamer0.10-gl gstreamer0.10-pitfdll gstreamer0.10-plugins-base gstreamer0.10-plugins-bad gstreamer0.10-plugins-bad-multiverse gstreamer0.10-plugins-good gstreamer0.10-plugins-ugly gstreamer0.10-plugins-ugly-multiverse ffmpeg lame faad sox mjpegtools libxine-main1 libxine-extracodecs echo *** Multimedia - OK *** && echo && sleep 5s echo *** CodecsnPlayers - Install *** && sleep 2s apt-get -y install --force-yes mplayer totem-xine w32codecs echo *** CodecsnPlayers - OK *** && echo && sleep 5s echo *** SunJava Plugin - Install *** && sleep 2s apt-get -y install --force-yes sun-java5-bin sun-java5-fonts sun-java5-jre sun-java5-plugin echo "3" | update-alternatives --config java echo *** SunJava Plugin - OK *** && echo && sleep 5s ## EXTENSIONS PACKAGES echo *** Extensions - Install *** && sleep 2s apt-get -y install --force-yes gaim-guifications nautilus-open-terminal echo *** Extensions - OK *** && echo && sleep 5s ## GRAPHICS PACKAGES echo *** Graphics - Install *** && sleep 2s apt-get -y install --force-yes gtkam inkscape echo *** Graphics - OK *** && echo && sleep 5s ## INTERNET PACKAGES echo *** Internet - Install *** && sleep 2s apt-get -y install --force-yes deluge d4x firestarter gftp gnome-ppp liferea opera echo *** Internet - OK *** && echo && sleep 5s ## OFFICE PACKAGES echo *** Office - Install *** && sleep 2s apt-get -y install --force-yes acroread dosbox wine echo *** Office - OK *** && echo && sleep 5s ## SUPPORT PACKAGES echo *** Support - Install *** && sleep 2s apt-get -y install --force-yes libsdl-image1.2 libsdl-mixer1.2 mc unrar echo *** Support - OK *** && echo && sleep 5s ## ACESSORIES PACKAGES echo *** Acessories - Install *** && sleep 2s apt-get -y install --force-yes glipper gnokii gnome-commander gshutdown echo *** Acessories - OK *** && echo && sleep 5s ## PROGRAMMING PACKAGES echo *** Programming - Install *** && sleep 2s apt-get -y install --force-yes bluefish nvu echo *** Programming - OK *** && echo && sleep 5s ## SYSTEM TOOLS PACKAGES echo *** System Tools - Install *** && sleep 2s apt-get -y install --force-yes gkrellm #desktopsecure echo *** System Tools - OK *** && echo && sleep 5s ## DEVELOPMENT PACKAGES echo *** Development - Install *** && sleep 2s apt-get -y install --force-yes build-essential dpkg-dev linux-headers-2.6.15-26-386 echo *** Development - OK *** && echo && sleep 5s ## SOUNDnVIDEO PACKAGES echo *** SoundnVideo - Install *** && sleep 2s apt-get -y install --force-yes gnomebaker xmms xmms-arts xmms-mad xmms-oggre xmms-wma echo *** SoundnVideo - OK *** && echo && sleep 5s ## UNINSTALL PACKAGES echo *** Uninstall - Starts *** && sleep 2s apt-get -y remove --purge ubuntu-desktop gnome-games echo *** Uninstall - OK *** && echo && sleep 5s ## LANGUAGE SUPPORT echo *** Language - Install *** && sleep 2s apt-get -y install --force-yes language-pack-sk language-pack-gnome-sk language-support-sk echo *** Language - OK *** && echo && sleep 5s ## DOWNLOAD PACKAGES echo *** Download - Install *** && sleep 2s cd /mnt/datadisk/Programy/Download/ dpkg -i FrostWire-4.10.9-2.i586.deb gnocky_0.0.3-1_i386.deb gtk2-engines-candido_0.9-1_i386.deb libdvdcss2_1.2.5-1_i386.deb echo *** Download - OK *** && echo && sleep 5s echo *** ALL PACKAGES DONE - DUMARU 2006 ***