Er det fordi der mangler et "sudo -E" foran?
Behøver jeg at skrive "&&" efter hver kommando eller er et linieskift nok?
Scriptet
Kode: Vælg alt
#!/bin/bash
# aktivere de forskellige repositories
echo "deb http://archive.canonical.com/ubuntu/ $(lsb_release -cs) partner" > /etc/apt/sources.list
echo "deb http://archive.canonical.com/ubuntu/ $(lsb_release -cs)-updates partner" >> /etc/apt/sources.list
echo "deb http://dk.archive.ubuntu.com/ubuntu/ $(lsb_release -cs) multiverse" >> /etc/apt/sources.list
echo "deb http://dk.archive.ubuntu.com/ubuntu/ $(lsb_release -cs)-updates multiverse" >> /etc/apt/sources.list
echo "deb http://dk.archive.ubuntu.com/ubuntu/ $(lsb_release -cs) main restricted" >> /etc/apt/sources.list
echo "deb http://dk.archive.ubuntu.com/ubuntu/ $(lsb_release -cs)-updates main restricted" >> /etc/apt/sources.list
echo "deb http://dk.archive.ubuntu.com/ubuntu/ $(lsb_release -cs) universe" >> /etc/apt/sources.list
echo "deb http://dk.archive.ubuntu.com/ubuntu/ $(lsb_release -cs)-updates universe" >> /etc/apt/sources.list
#Aktivere medibuntu
#
#
#
sudo -E wget --output-document=/etc/apt/sources.list.d/medibuntu.list http://www.medibuntu.org/sources.list.d/$(lsb_release -cs).list && sudo apt-get --quiet update &&
sudo apt-get --yes --quiet --allow-unauthenticated install medibuntu-keyring &&
sudo apt-get --quiet update
#Installer flash - forskel på 64bit og 32bit udg.
#
#
#
if [[ `uname -m` == 'x86_64' ]];
then
sudo apt-get install -y flashplugin-installer;
else
sudo apt-get install -y adobe-flashplugin;
fi
# Installer plugins, java, drivers og diverse codecs
#
#
#
sudo apt-get install -y icedtea-plugin adobe-flashplugin non-free-codecs ubuntu-restricted-extras libdvdcss2 vlc-plugin-pulse mozilla-plugin-vlc totem-plugins-extra
# Installer diverse programmer
#
# Heruder indsættes andre programmer der skal installeres fra start, og som ikke kræver ekstra ppa'er
#
# Skype - samtale/cam client
# vlc - video afspiller
# audacity - audio editor/recorder
# gparted - partitionmanager
# sysinfo - System informationer
# rar, p7zip - vigtige pakkeprogrammer
# Gnome-system-tools -
# Users and groups
# Date and time
# Network configuration
# Runlevels
# Shared Folders through Samba or NFS
# geany - teksteditor
# inkscape - SVG editor
sudo apt-get install -y skype vlc audacity gparted sysinfo rar p7zip gnome-system-tools geany inkscape
#Installer diverse programmer i nyeste versioner - eller som ikke er med i grund repo's endnu
#gimp 2.8
sudo add-apt-repository -y ppa:otto-kesselgulasch/gimp &&
#Ubuntu-tweak
sudo add-apt-repository -y ppa:tualatrix/ppa &&
#Clip-grab
sudo add-apt-repository -y ppa:clipgrab-team/ppa &&
#Jupiter - strømstyringsprogram
sudo add-apt-repository -y ppa:webupd8team/jupiter &&
#system load indicator
sudo add-apt-repository -y ppa:indicator-multiload/stable-daily &&
#minetest - minecraft-clon
sudo add-apt-repository -y ppa:minetestdevs/daily-builds &&
#classicmenu-indicator
sudo apt-add-repository -y ppa:diesch/testing &&
#Nyeste pidgin
sudo apt-add-repository -y ppa:pidgin-developers/ppa
sudo apt-get update &&
sudo apt-get install -y gimp ubuntu-tweak clipgrab jupiter indicator-multiload minetestc55 classicmenu-indicator pidgin
#diverse programmer der kun kan hentes fra udbyder
#
#Herunder indsættes kommende ekstra programmer der kræver leverandør ppa'er
#
#VirtualBox
wget -q http://download.virtualbox.org/virtualbox/debian/oracle_vbox.asc -O- | sudo apt-key add - &&
sudo sh -c 'echo "deb http://download.virtualbox.org/virtualbox/debian precise contrib" >> /etc/apt/sources.list' &&
#Dropbox - bør måske fjernes til fordel for gdrive og UbuntuOne
sudo apt-key adv --keyserver pgp.mit.edu --recv-keys 5044912E &&
sudo sh -c 'echo "deb http://linux.dropbox.com/ubuntu/ precise main" >> /etc/apt/sources.list.d/dropbox.list' &&
#Google Chrome
wget -q -O - https://dl-ssl.google.com/linux/linux_signing_key.pub | sudo apt-key add - &&
sudo sh -c 'echo "deb http://dl.google.com/linux/chrome/deb/ stable main" >> /etc/apt/sources.list.d/google.list' &&
#Spotify client
#sudo apt-key adv --keyserver keyserver.ubuntu.com --recv-keys 4E9CFF4E &&
#sudo sh -c 'echo "deb http://repository.spotify.com stable non-free" >> /etc/apt/sources.list' &&
#sudo apt-get update &&
sudo apt-get install -y virtualbox-4.1 nautilus-dropbox google-chrome-stable spotify-client
exit0