diff --git a/image/insidesetup.sh b/image/insidesetup.sh index a6b6b79..c9a02d7 100755 --- a/image/insidesetup.sh +++ b/image/insidesetup.sh @@ -1,53 +1,52 @@ #! /bin/bash set -e unset LANG #remove? or just install locales... source /etc/environment dpkg --add-architecture armhf -echo < EOF > /etc/apt/sources.list -deb [arch=armhf] http://ports.ubuntu.com/ vivid main universe restricted +echo "deb [arch=armhf] http://ports.ubuntu.com/ vivid main universe restricted deb-src [arch=armhf] http://ports.ubuntu.com/ vivid main universe restricted deb [arch=armhf] http://ports.ubuntu.com/ vivid-updates main universe restricted deb-src [arch=armhf] http://ports.ubuntu.com/ vivid-updates main universe restricted deb [arch=i386,amd64] http://archive.ubuntu.com/ubuntu vivid main universe restricted deb-src [arch=i386,amd64] http://archive.ubuntu.com/ubuntu vivid main universe restricted deb [arch=i386,amd64] http://archive.ubuntu.com/ubuntu vivid-updates main universe restricted deb-src [arch=i386,amd64] http://archive.ubuntu.com/ubuntu vivid-updates main universe restricted deb [arch=armhf,amd64] http://mobile.kci.pangea.pub vivid main deb-src [arch=armhf,amd64] http://mobile.kci.pangea.pub vivid main -EOF +" > /etc/apt/sources.list apt-key adv --keyserver keyserver.ubuntu.com --recv-keys A12B6139432062D1 apt update apt-get install crossbuild-essential-armhf adduser dh-exec vim zsh git htop python sudo -y adduser plasmamobile --gecos "" --disabled-password -su - plasmamobile -c "git clone https://github.com/plasma-mobile/xutils.git /home/plasmamobile/xutils" +su - plasmamobile -c "git clone git://anongit.kde.org/xutils.git /home/plasmamobile/xutils" echo "plasmamobile ALL=NOPASSWD:ALL" >> /etc/sudoers cat << EOF > /home/plasmamobile/.gitconfig [url "git://anongit.kde.org/"] insteadOf = kde: [url "ssh://git@git.kde.org/"] pushInsteadOf = kde: EOF tee --append /home/plasmamobile/.zshrc /home/plasmamobile/.bashrc >/dev/null << EOF export \`cat /etc/environment\` unset LANG CC=/usr/bin/arm-linux-gnueabihf-gcc VARS=\`dpkg-architecture -A amd64 -a armhf -l\` export \$VARS export PATH=/home/plasmamobile/xutils:\$PATH export QMAKESPEC=ubuntu-arm-gnueabihf-g++ EOF apt-get build-dep -a armhf kwin -y --force-yes #--host-architecture=armhf # force-yes is needed because "WARNING: The packages cannot be authenticated!"