#!/bin/sh ########################################################################### echo "prep work: # if on mara do this one /etc/cron.myth/mythdb_dump # if on pug do this one (cd ~ddp/src/LIBRARY/BACKUPS ; pg_dump -c library | gzip -c > `date +DB_%Y%m%d.bak.gz`) # put an exit 0 in /etc/cron.myth/mythbackend-restarter.cron to stop auto-restarter while building myth " ########################################################################### # if on lappy, n/w wont work without this: dpkg -i ~ddp/Downloads/DEB/dkms* ~ddp/Downloads/DEB/bcmwl* # then connect to wireless by hand # use previous install's conf export OD=/mnt/old_distro mkdir $OD echo "@@@@@ might not be sda5 of course..." mount /dev/sda5 $OD cp -f $OD/etc/sudoers.d/ddp /etc/sudoers.d/ ; # make sudo not ask for passwd for sudo group (that is all this does) # add canonical repo, and do an update through this (had to due to some clash with aptd?) software-properties-gtk # now will copy apt cache (if you have it) #sky add-apt-repository 'deb http://repos.tel.red/debian stable non-free' # solaar add-apt-repository ppa:daniel.pavel/solaar # real java? add-apt-repository ppa:webupd8team/java apt-get update apt-get install solaar # lxde/cairo apt-get install lxde compton cairo-dock lxsession-logout # cp $OD/usr/share/applications/outlook.desktop /usr/share/applications/outlook.desktop ; # this is in my .local/ so why? # lxde/awn #add-apt-repository ppa:awn-testing/ppa #apt-get update #apt-get -y install lxde avant-window-navigator \ # awn-applet-quit-applet awn-applet-volume-control awn-applet-yama \ # awn-applet-digital-clock awn-applet-notification-area awn-applet-battery-applet \ # awn-applet-shinyswitcher desktop-base xfce4-power-manager compton #ln -s /usr/bin/lxde-logout /usr/local/bin/xfce4-session-logout ###### devilspie no download! apt-get install xfce4 devilespie #cp -f $OD/etc/xdg/lxsession/LXDE/autostart /etc/xdg/lxsession/LXDE/autostart rsync -ax $OD/usr/share/icons/Faenza* /usr/share/icons/ gtk-update-icon-cache /usr/share/icons/Faenza cp -f $OD/etc/rc.local /etc/ ; # dim kbd lights, solaar-config for logitech kbd cp -f $OD/etc/default/grub /etc/default/grub ; # GRUB_TIMEOUT, and bg image update-grub chown -R ddp:ddp /home/ddp # update everything :^) apt-get -y purge modemmanager spamassassin squid apt-get -y dist-upgrade #wireless... not sure we can do this in this order? #sudo apt-get install linux-firmware-nonfree network-manager-openvpn #sudo apt-get remove --purge bcmwl-kernel-source # get tethering to work #apt-get install bluez-compat #cp $OD/etc/default/bluetooth /etc/default/bluetooth #cp $OD/etc/network/interfaces /etc/network/interfaces ; # for bnep iface #cp $OD/etc/hosts /etc/hosts ; # for hard-coded DU hosts (sys-web* , etc.) # packages I need apt-get -y install chromium-browser \ gimp bind9 vim openssh-server mplayer grub2-splashimages openvpn \ unrar vsftpd nmap k3b iftop samba ethtool gsmartcontrol imagemagick \ vlc nethogs tcl libcrypt-ssleay-perl sysstat gimp-resynthesizer elinks mesa-utils gphoto2 \ lm-sensors ntp traceroute gnome wmctrl pavucontrol pepperflashplugin-nonfree macfanctld \ network-manager-openvpn sky # get myth on the box apt-get -y install libdate-calc-perl mythtv-frontend mythweather mythmusic mythgallery mythnetvision apt-get -y purge mythtv-dbg gpasswd -a ddp mythtv ##### just for bom weather, etc. cp -r $OD/usr/share/mythtv/mythweather/scripts/bom* /usr/share/mythtv/mythweather/scripts #cp -r $OD/etc/mythtv/mysql.txt /etc/mythtv mkdir /myth sudo chown -R mythtv:mythtv /myth/ # myth logs: #for i in ddp.log fill.cron front.log mythbackend.log ; do sudo touch /var/log/$i; done #chown -R mythtv:mythtv /var/log/mythtv #chmod 664 /var/log/mythtv/* # for nfs mount'ing of mara's /myth (!mara) apt-get -y install nfs-common # local dns #cp $OD/etc/bind/named.conf.options /etc/bind/ #cp $OD/etc/bind/db.ddp.net $OD/etc/bind/db.192.168.0 /etc/bind/ #chown root:bind /etc/bind/db.ddp.net /etc/bind/db.192.168.0 #chmod 644 /etc/bind/db.ddp.net /etc/bind/db.192.168.0 #service bind9 restart sensors-detect ; # remember to say yes explicitly to the last question # remember to say yes to hddtemp # need this for ms fonts/other stuff apt-get -y install ubuntu-restricted-extras ttf-dejavu echo "You need to:" echo " configure printer (color) - find in the gui just works" echo " tar jcf $TARFILE /etc/" # this stops any annoying beep sounds from gdm :^) DDP: this is not working for saucy (yet?) rm /usr/share/sounds/ubuntu/stereo/system-ready.ogg # for prettiness :^) #apt-get -y install plymouth-theme* #update-alternatives --config default.plymouth ; # choose solar #modify /etc/default/grub to have: (worked on pug) # GRUB_CMDLINE_LINUX_DEFAULT="quiet splash nomodeset video=uvesafb:mode_option=1024x768-24,mtrr=3,scroll=ywrap" # GRUB_CMDLINE_LINUX="" #------------------------------------------------------------- # modify /etc/default/grub to have: (worked on mara/tomas) # GRUB_CMDLINE_LINUX_DEFAULT="quiet splash" # GRUB_CMDLINE_LINUX="quiet splash vga=795" GRUB_GFXMODE=1024x768 GRUB_DEFAULT=saved GRUB_SAVEDEFAULT=true #echo "FRAMEBUFFER=y" > /etc/initramfs-tools/conf.d/splash #update-initramfs -u # real java? apt-get install oracle-java8-installer # steam sudo apt-get -y install curl libxrandr2:i386 libpangoft2-1.0-0:i386 libgtk2.0-0:i386 libpulse0:i386 libasound2:i386 libnss3:i386 libgl1-mesa-dri:i386, libgl1-mesa-glx:i386 dpkg -i ~ddp/Downloads/DEB/steam_latest.deb sudo apt-get -f install ; # need this to fix deps for .deb above # choose auto / force nvidia... (not sure this is needed, leaving it auto to see what happens) # sudo update-alternatives --config x86_64-linux-gnu_gl_conf # different wirlesss #sudo apt-get dpkg -i ~/Downloads/b43-fwcutter_1%3a018-2_amd64.deb ~/Downloads/firmware-b43-installer_1%3a018-2_all.deb #add i915 to blaclist for modprobe? (macbook only) # kodi for afl... sudo apt-get install kodi #recording in kodi (https://github.com/NapoleonWils0n/kodi-playercorefactory) sudo apt install -y git ffmpeg rtmpdump vlc mpv youtube-dl aria2 cd ~/tmp git clone https://github.com/NapoleonWils0n/kodi-playercorefactory.git cp ~/tmp/kodi-playercorefactory/linux/combined/playercorefactory.xml ~/.kodi/userdata/playercorefactory.xml # follow these steps: https://superrepo.org/get-started/ # install add-on from zip file: ~/plugin.video.afl-video-1.6.1.zip