Lige en advarsel til andre brugere - bla. mit eget script ændre temmelig meget på opsætningen, og jeg fjerner også nogle standardprogrammer, så hvis i ikke kan gennemskue indholdet af et script her i sandkassen, skal i IKKE kører det !
Kode: Vælg alt
#!/bin/sh
# Opstartscript til Ubuntu / 64 bit
# Skrevet af Christian Arvai
# Husk at kopiere indholdet af mappen hpstart ind i hjemmemappen før kørsel af scriptet !
#
# TIL ANDRE DER LÆSER / BRUGER DETTE SCRIPT :
# Dette script er lavet til min egen personlige opsætning af pc´en/ubuntu og kan, Pga. de store ændringer i opsætningen, ikke anbefales til brug af andre, men man kan selvfølgeligt bygge det om efter eget behov !!!
echo ""
echo ""
echo ""
echo ""
echo ""
echo ""
echo ""
echo ""
echo "Install af aptitude."
echo ""
sudo apt-get install -y aptitude
echo ""
echo "Udført"
echo ""
echo ""
echo ""
echo ""
echo ""
echo "Opdatering af systempakker."
echo ""
sudo dpkg --configure -a
sudo apt-get check -y
sudo updatedb
sudo aptitude install -y build-essential
sudo aptitude update -y
sudo aptitude safe-upgrade -y
echo ""
echo "Udført."
echo ""
echo ""
echo ""
echo ""
echo ""
echo "Opgradering af kernel."
echo ""
echo ""
sudo aptitude install -y linux-image-generic linux-headers-generic
sudo aptitude update -y
sudo aptitude safe-upgrade -y
echo ""
echo "Udført."
echo ""
echo ""
echo ""
echo ""
echo ""
echo "Installering af key´s, medibuntu og andre programmer,"
echo "som kræver at man godkender licenser under install."
echo ""
# key medibuntu
gpg --keyserver keyserver.ubuntu.com --recv 2EBC26B60C5A2783 && gpg --export --armor 2EBC26B60C5A2783 | sudo apt-key add -
# key vlc 1.0
gpg --keyserver keyserver.ubuntu.com --recv 7613768D && gpg --export --armor 7613768D | sudo apt-key add -
# key Ooo
gpg --keyserver keyserver.ubuntu.com --recv 60D11217247D1CFF && gpg --export --armor 60D11217247D1CFF | sudo apt-key add -
# install af medibuntu
sudo wget http://www.medibuntu.org/sources.list.d/`lsb_release -cs`.list --output-document=/etc/apt/sources.list.d/medibuntu.list; sudo apt-get -q update; sudo apt-get --yes -q --allow-unauthenticated install medibuntu-keyring; sudo apt-get -q update
# install af programmer - som kræver at man skal godkende licenser under install
sudo apt-get install -y aptitude ubuntu-restricted-extras wine cabextract hot-babe sensord sensors-applet
sudo wget http://www.kegel.com/wine/winetricks && sh winetricks allcodecs
# install af google earth 5.0
chmod +x ~/GoogleEarthLinux.bin && sudo ~/GoogleEarthLinux.bin && sudo rm -rf ~/GoogleEarthLinux.bin
# install af americas army
sudo chmod -R 777 ~/Spil/army && sudo ~/Spil/army/armyops250-linux.run && sudo aptitude purge ~/Spil/army
echo ""
echo "Udført."
echo ""
echo ""
echo ""
echo ""
echo ""
echo "Sletning af unødvendige mapper og programmer."
echo "Ændring af opdateringshåndtering, så den ikke kommer automatisk."
echo "Blokkering af Seneste Dokumenter."
echo ""
# sletning af mapper
sudo rm -rf ~/Musik ~/Examples ~/Videoklip ~/Offentligt ~/Dokumenter ~/Skabeloner /usr/share/sounds/ubuntu
# sletning af programmer
sudo aptitude purge -y totem-mozilla gnome-orca rhythmbox rhythmbox-dbg ekiga evolution-common
# blokkering af Seneste Dokumenter
sudo rm -rf ~/.recently-used.xbel && mkdir ~/.recently-used.xbel
# ændring af opdateringshåndtering
gconftool -s --type bool /apps/update-notifier/auto_launch false
# ændring af ctrl-alt-backspace
sudo aptitude install -y dontzap && sudo dontzap --disable
# ændring af cpu opsætning under boot
sudo rm -rf /etc/init.d/rc && sudo mv ~/rc /etc/init.d
# Fjern 60 sekunders forsinkelse ved nedlukning af Ubuntu
gconftool-2 -s '/apps/indicator-session/suppress_logout_restart_shutdown' --type bool true
echo ""
echo "Udført"
echo ""
echo ""
echo ""
echo ""
echo ""
echo "Installering af Danske sprogpakker."
echo "Fjernelse af Engelske sprogpakker."
echo ""
sudo aptitude purge -y language-support-en language-support-writing-en language-pack-gnome-en language-pack-gnome-en-base language-pack-en-base thunderbird-locale-en-gb language-pack-en
sudo aptitude install -y language-pack-da-base language-support-da language-support-writing-da language-pack-gnome-da language-pack-gnome-da-base
echo ""
echo "Udført."
echo ""
echo ""
echo ""
echo ""
echo ""
echo "Installering af pakker til skrivebordmiljø og Compiz."
echo ""
sudo aptitude install -y compizconfig-settings-manager gnome-themes-extras gnome-raw-thumbnailer gnome-accessibility-themes-extras gnome-extra-icons community-themes gnome-splashscreen-manager
echo ""
echo "Udført."
echo ""
echo ""
echo ""
echo ""
echo "Install Vedr. Java og Flash."
echo ""
sudo aptitude install -y sun-java6-jdk sun-java6-plugin sun-java6-fonts flashplugin-nonfree
echo ""
echo "Udført."
echo ""
echo ""
echo ""
echo ""
echo ""
echo "Install Vedr. Grafik."
echo ""
sudo aptitude install -y gimp inkscape freecad gpaint xpaint tuxpaint
echo ""
echo "Udført."
echo ""
echo ""
echo ""
echo ""
echo ""
echo "Install Vedr. Internet."
echo ""
sudo aptitude install -y deluge-torrent skype amsn xchat gmail-notify
echo ""
echo "Udført."
echo ""
echo ""
echo ""
echo ""
echo ""
echo "Install Vedr. Kontor."
echo ""
echo "Ingen pakker er pt indbygget"
echo ""
echo ""
echo ""
echo ""
echo ""
echo "Install Vedr. Lyd og Video."
echo ""
sudo aptitude install -y vlc vlc-plugin-pulse mozilla-plugin-vlc non-free-codecs libdvdcss2 totem-plugins-extra sound-juicer soundconverter winff oggconvert audacity avidemux gnomebaker acidrip ogmrip mencoder ffmpeg ffmpeg2theora dvdauthor dvdstyler gaupol gtk-recordmydesktop cheese tuxguitar
echo ""
echo "Udført."
echo ""
echo ""
echo ""
echo ""
echo "Install Vedr. Læringsprogrammer."
echo ""
sudo aptitude install -y tuxtype tuxtype-data-nonfree tuxmath
echo ""
echo "Udført."
echo ""
echo ""
echo ""
echo ""
echo ""
echo "Install Vedr. Spil."
echo ""
sudo aptitude install -y extremetuxracer planetpenguin-racer planetpenguin-racer-extras supertuxkart pingus supertux torcs xmoto alien-arena openarena nexuiz sauerbraten warzone2100 scorched3d lincity-ng gl-117 flightgear warsow trigger frozen-bubble childsplay gcompris gcompris-sound-da
sudo aptitude purge -y gcompris-sound-en
echo ""
echo "Udført"
echo ""
echo ""
echo ""
echo ""
echo ""
echo "Install Vedr. Systemværktøjer."
echo ""
sudo aptitude install -y gmountiso clamav sysinfo gnome-schedule
echo ""
echo "Udført."
echo ""
echo ""
echo ""
echo ""
echo ""
echo "Install Vedr. Tilbehør."
echo ""
sudo aptitude install -y shutter
sudo wget http://blogage.de/files/3531/download -O- | tar -xzf - && cd compiz-switch-0.4.0~source && sudo make install && sudo rm -rf ~/compiz-switch-0.4.0~source
echo ""
echo "Udført."
echo ""
echo ""
echo ""
echo ""
echo ""
echo "Install Vedr. Videnskab."
echo ""
sudo aptitude install -y stellarium
echo ""
echo "Udført."
echo ""
echo ""
echo ""
echo ""
echo ""
echo "Install Vedr. Administration."
echo ""
sudo aptitude install -y startupmanager gparted gufw firestarter gparted ntfsprogs
echo ""
echo "Udført."
echo ""
echo ""
echo ""
echo ""
echo ""
echo "Install af andre programmer som ikke er direkte i Hovedmenuen."
echo ""
sudo aptitude install -y nautilus-image-converter bootchart bum deborphan mozilla-firefox-adblock mozilla-noscript openoffice.org openclipart-openoffice.org gthumb powertop pysdm glipper cups-pdf xpdf msttcorefonts seahorse brother-lpr-drivers-extra brother-cups-wrapper-extra rar p7zip p7zip-full alien
echo ""
echo "Udført."
echo ""
echo ""
echo ""
echo ""
echo ""
echo "Oprettelse af mapper og flytning af filer."
echo ""
mkdir ~/PDF
rm -rf ~/.mozilla && mv ~/skjulte_mapper/.mozilla ~
mv ~/skjulte_mapper/.notifier.conf ~
mv ~/skjulte_mapper/.compiz ~
mv ~/skjulte_mapper/.amsn ~
mv ~/skjulte_mapper/.Skype ~
mv ~/skjulte_mapper/.xchat2 ~
rm -rf ~/skjulte_mapper
mv ~/vlc ~/.config
mv ~/deluge ~/.config
mv ~/Spil/cod1 ~/.wine/drive_c
mv ~/Spil/cod2 ~/.wine/drive_c
sudo mv ~/ubuntu /usr/share/sounds
sudo mv ~/Tux /usr/share/amsn/skins
echo ""
echo "Udført."
echo ""
echo ""
echo ""
echo ""
echo ""
echo "Aktivering af scripts."
echo ""
sudo cp ~/opryd.sh ~/.gnome2/nautilus-scripts/opryd.sh && sudo chown root ~/.gnome2/nautilus-scripts/opryd.sh
sudo mv ~/opryd.sh /usr/local/bin && sudo chown root /usr/local/bin/opryd.sh
sudo mv ~/installspil.sh /usr/local/bin && sudo chmod +x /usr/local/bin/installspil.sh
sudo mv ~/avi2iso.sh /usr/local/bin && sudo chmod +x /usr/local/bin/avi2iso.sh
mv ~/resize_400x300 ~/.gnome2/nautilus-scripts && chmod +x ~/.gnome2/nautilus-scripts/resize_400x300
mv ~/resize_640x480 ~/.gnome2/nautilus-scripts && chmod +x ~/.gnome2/nautilus-scripts/resize_640x480
mv ~/resize_1024x768 ~/.gnome2/nautilus-scripts && chmod +x ~/.gnome2/nautilus-scripts/resize_1024x768
echo ""
echo "Udført."
echo ""
echo ""
echo ""
echo ""
echo ""
echo "Ændring af interval mellem harddisk tjek under opstart af ubuntu."
echo "Bemærk at der vil komme fejlmeldinger, dette sker der intet ved !"
echo ""
sudo tune2fs -c5000 -i12m /dev/sda1
sudo tune2fs -c5000 -i12m /dev/sda2
sudo tune2fs -c5000 -i12m /dev/sda3
sudo tune2fs -c5000 -i12m /dev/sda4
sudo tune2fs -c5000 -i12m /dev/sda5
sudo tune2fs -c5000 -i12m /dev/sda6
sudo tune2fs -c5000 -i12m /dev/sda7
sudo tune2fs -c5000 -i12m /dev/sda8
sudo tune2fs -c5000 -i12m /dev/sda9
sudo tune2fs -c5000 -i12m /dev/sda10
sudo tune2fs -c5000 -i12m /dev/sda
sudo tune2fs -c5000 -i12m /dev/sdb
sudo tune2fs -c5000 -i12m /dev/sdc
sudo tune2fs -c5000 -i12m /dev/sdd
sudo tune2fs -c5000 -i12m /dev/sde
sudo tune2fs -c5000 -i12m /dev/sdf
sudo tune2fs -c5000 -i12m /dev/sdg
sudo tune2fs -c5000 -i12m /dev/sdh
sudo tune2fs -c5000 -i12m /dev/sdi
sudo tune2fs -c5000 -i12m /dev/sdj
echo ""
echo "Udført."
echo ""
echo ""
echo ""
echo ""
echo ""
echo "Afsluttende opdatering af systempakkerne."
echo ""
sudo dpkg --configure -a
sudo updatedb
sudo aptitude update -y
sudo aptitude safe-upgrade -y
echo ""
echo "Udført."
echo ""
echo ""
echo ""
echo ""
echo ""
echo "Oprydning af systemet."
echo ""
sudo deborphan | xargs apt-get remove --purge -y
sudo apt-get autoremove -y --force-yes
sudo aptitude clean -y
sudo aptitude autoclean -y
sudo aptitude purge ~b
sudo aptitude purge ~c
rm -rf ~/.local/share/Trash/files
echo ""
echo "Udført."
echo ""
echo ""
echo ""
echo "Kørslen af scriptet er nu gennemført."
echo ""
echo "Denne computer lukker ned om 5 minutter !"
echo ""
sudo sleep 300
sudo poweroff