@@ -68,9 +68,9 @@ SAVE THIS INFORMATION BELLOW, AND RUN IT ONE AT A TIME:
6868apt-get update
6969apt-get install software-properties-common wget
7070add-apt-repository -y ppa:kxstudio-debian/kxstudio
71+ add-apt-repository -y ppa:kxstudio-debian/kde5-neon
7172sed -i 's/bionic/trusty/' /etc/apt/sources.list.d/kxstudio-debian-ubuntu-kxstudio-bionic.list
7273add-apt-repository -y ppa:plasmazilla/releases
73- sed -i 's/bionic/artful/' /etc/apt/sources.list.d/plasmazilla-ubuntu-releases-bionic.list # FIXME: remove when bionic is supported
7474apt-get update
7575apt-get install kxstudio-repos kxstudio-repos-gcc5
7676rm /etc/apt/sources.list.d/kxstudio-debian-ubuntu-kxstudio-bionic.list
@@ -92,17 +92,6 @@ deb http://security.ubuntu.com/ubuntu/ bionic-security main restricted universe
9292
9393deb http://archive.canonical.com/ubuntu/ bionic partner
9494# deb-src http://archive.canonical.com/ubuntu/ bionic partner
95-
96- # Neon repos, change to bionic LTS when available
97- deb [arch=amd64] http://archive.neon.kde.org/user/lts/ xenial main
98- # deb-src http://archive.neon.kde.org/user/lts/ xenial main
99-
100- # Stuff to delete later on
101- deb http://archive.neon.kde.org/dev/stable/ bionic main
102- # deb-src http://archive.neon.kde.org/dev/stable/ bionic main
103- deb http://archive.ubuntu.com/ubuntu/ xenial main restricted universe multiverse
104- deb http://archive.ubuntu.com/ubuntu/ xenial-updates main restricted universe multiverse
105- deb http://security.ubuntu.com/ubuntu/ xenial-security main restricted universe multiverse
10695' > /etc/apt/sources.list
10796
10897# Update System
@@ -111,26 +100,28 @@ apt-get update; apt-get dist-upgrade
111100# Base Install
112101apt-get install --no-install-recommends ubuntu-standard laptop-detect os-prober \
113102 libpam-systemd command-not-found friendly-recovery nano ntfs-3g ufw uuid-runtime \
114- manpages geoip-database bash-completion irqbalance powermgmt-base ppp pppconfig pppoeconf \
115- cryptsetup lvm2 dkms fakeroot libc6-dev libc-dev kxstudio-meta-live-conflicts
103+ bash-completion geoip-database irqbalance manpages net-tools powermgmt-base ppp pppconfig pppoeconf \
104+ cryptsetup lvm2 plymouth plymouth-theme-ubuntu-text kxstudio-meta-live-conflicts
116105
117106# Kernel Install
118107apt-get install linux-lowlatency linux-image-lowlatency linux-headers-lowlatency kxstudio-meta-live-conflicts # skip grub install/configure to HDD here
119- apt-get purge linux-headers-3.13 .0-46 linux-headers-3.13 .0-46 -lowlatency linux-image-3.13 .0-46 -lowlatency
108+ apt-get purge linux-headers-4.15 .0-30 linux-headers-4.15 .0-30 -lowlatency linux-image-4.15 .0-30-lowlatency linux-modules-4.15.0-30 -lowlatency
120109apt-get clean
121110
122- # Install packages (KXStudio)
123- apt-get install jackd2 kxstudio-meta-audio-plugins-collection kxstudio-desktop-neon kxstudio-meta-all kubuntu-restricted-extras kxstudio-meta-restricted-extras kxstudio-meta-live-conflicts
111+ # Neon repos
112+ echo 'deb [arch=amd64] http://archive.neon.kde.org/user/lts/ bionic main
113+ # deb-src http://archive.neon.kde.org/user/lts/ bionic main
114+ ' > /etc/apt/sources.list.d/neon.list
124115
125- # FIXME: graphics not installable on neon, fix later (also video needs tweaking)
126- apt-get install jackd2 kxstudio-meta-audio-plugins-collection kxstudio-desktop-neon kxstudio-meta-audio kxstudio-meta-audio-plugins kubuntu-restricted-extras kxstudio-meta-restricted-extras kxstudio-meta-live-conflicts
116+ # Update System
117+ apt-get update; apt-get dist-upgrade
118+
119+ # Install packages (KXStudio)
120+ apt-get install -d jackd2 kxstudio-meta-audio-plugins-collection kxstudio-desktop-neon kxstudio-meta-all kubuntu-restricted-extras kxstudio-meta-restricted-extras kxstudio-meta-live-conflicts
127121
128122# Test
129123rm /var/cache/apt/archives/wine-rt*
130124
131- # needed for a few gtk things
132- apt-get install --no-install-recommends gnome-themes-standard
133-
134125apt-get update; apt-get dist-upgrade
135126apt-get clean
136127
@@ -139,23 +130,24 @@ dpkg --add-architecture i386
139130apt-get update; apt-get dist-upgrade
140131
141132# Install extras
142- apt-get install kxstudio-docs
143- apt-get install indicator-cpufreq \
133+ apt-get install kxstudio-docs indicator-cpufreq kxstudio-meta-live-conflicts \
144134 sni-qt libgl1-mesa-dri libgl1-mesa-glx libegl1-mesa libglapi-mesa libgles2-mesa libglu1-mesa \
145135 sni-qt:i386 libgl1-mesa-dri:i386 libgl1-mesa-glx:i386 libegl1-mesa:i386 libglapi-mesa:i386 libgles2-mesa:i386 libglu1-mesa:i386
146136
137+ # Make sure some specific packages are installed
138+ apt-get install zynaddsubfx-git
139+ apt-get purge libpulse0
140+
147141# Remove deprecated/dummy
148- apt-get install calf-plugins-git zynaddsubfx-git
149142apt-get purge kxstudio-meta-live-conflicts \
150- carla calf-plugins ardour3 amsynth-dssi drumkv1 samplv1 synthv1 composite composite-data flashplugin-installer \
143+ carla calf-plugins-git ardour3 amsynth-dssi drumkv1 samplv1 synthv1 composite composite-data flashplugin-installer \
151144 hydrogen-drumkits hydrogen-drumkits-effects fluid-soundfont-gm
152145
153146# Cleanup
154147apt-get autoremove
155148apt-get clean
156149
157150dpkg -l | grep " rc "
158- rm /boot/*liquorix*
159151
160152## ---- PAUSE HERE ----- ##
161153# Before installing ubiquity in the live session, you'll need to run this outside:
@@ -171,22 +163,19 @@ $ sudo chroot /home/falktx/livecd/custom dpkg-query -W --showformat='\${Package}
171163
172164echo " ## ----- END PAUSE ----- ##
173165
174- # Now use locate
175- apt-get clean
176- # /usr/bin/updatedb.mlocate
177-
178166# Now install the liveDVD specific packages
179167apt-get install ubiquity-frontend-kde casper lupin-casper discover jfsutils xfsprogs
180168
181169# Just in case you want to revert the live-dvd install action
182170apt-get purge \
183- apt-clone archdetect-deb btrfs-tools casper cifs-utils discover \
184- discover-data dmraid dpkg-repack ecryptfs-utils jfsutils keyutils kpartx \
185- kpartx-boot libdebian-installer4 libdiscover2 libdmraid1.0.0.rc16 \
186- libecryptfs0 libnss3-1d localechooser-data lupin-casper python3-icu \
187- python3-pam rdate sbsigntool ubiquity ubiquity-casper ubiquity-frontend-kde \
188- ubiquity-ubuntu-artwork user-setup xfsprogs
189-
171+ apt-clone archdetect-deb btrfs-progs btrfs-tools casper cifs-utils \
172+ dmraid dpkg-repack jfsutils kpartx kpartx-boot libdebian-installer4 \
173+ libdmraid1.0.0.rc16 libiw30 localechooser-data lupin-casper \
174+ python-crypto python-ldb python-samba python-tdb python3-icu \
175+ python3-pam python3-pyqt5.qtwebkit rdate \
176+ samba-common samba-common-bin sbsigntool \
177+ ubiquity ubiquity-casper ubiquity-frontend-kde ubiquity-ubuntu-artwork \
178+ user-setup xfsprogs
190179"
191180sudo chroot /home/falktx/livecd/custom
192181echo " done"
@@ -201,7 +190,12 @@ rm -f /var/kxstudio/*
201190apt-get clean
202191rm -rf /tmp/*
203192rm -f /etc/hosts /etc/resolv.conf
204- ln -s /run/resolvconf/resolv.conf /etc/resolv.conf
193+ # ln -s /run/resolvconf/resolv.conf /etc/resolv.conf
194+
195+ echo '[keyfile]
196+ unmanaged-devices=none
197+ ' > /etc/NetworkManager/conf.d/10-globally-managed-devices.conf
198+
205199chmod 644 /root/.{b,p}*
206200find /var/log -type f | while read file; do cat /dev/null | tee $file ; done
207201umount /dev/pts
@@ -258,52 +252,52 @@ sudo mkdir -p /home/falktx/livecd/cd/casper/
258252cd /home/falktx/livecd/
259253sudo rm -f cd/casper/vmlinuz cd/casper/vmlinuz.efi cd/casper/initrd.lz cd/casper/initrd_tmp.gz
260254sudo cp custom/boot/vmlinuz-* cd/casper/vmlinuz
261- sudo cp custom/boot/initrd.img-* cd/casper/initrd_tmp.gz
262-
263- cd /home/falktx/livecd/cd/casper
264- sudo rm -rf ext
265- sudo mkdir ext
266- cd ext
267- sudo su root -c ' gzip -cd ../initrd_tmp.gz | cpio -i'
268-
269- # fix links
270- LINKS=` find . -type l`
271- for i in ${LINKS} ; do
272- FILE=` readlink ${i} `
273- CUSTOM=0
274- if [ " ${FILE} " == " /proc/mounts" ]; then
275- continue
276- elif [ " ${FILE} " == " busybox" ]; then
277- FILE=" /bin/busybox"
278- CUSTOM=1
279- elif [ " ${FILE} " == " lvm" ]; then
280- FILE=" /sbin/lvm"
281- CUSTOM=1
282- elif [ " ${FILE} " == " /usr/share/plymouth/themes/kxstudio-logo/kxstudio-logo.plymouth" ]; then
283- FILE=" /lib/plymouth/themes/kxstudio-logo/kxstudio-logo.plymouth"
284- CUSTOM=2
285- elif [ " ${FILE} " == " /usr/share/plymouth/themes/kxstudio-text/kxstudio-text.plymouth" ]; then
286- FILE=" /lib/plymouth/themes/kxstudio-text/kxstudio-text.plymouth"
287- CUSTOM=2
288- fi
289- sudo rm " ${i} "
290- if [ " ${CUSTOM} " == " 1" ]; then
291- sudo cp -v " .${FILE} " " ${i} "
292- elif [ " ${CUSTOM} " == " 2" ]; then
293- sudo cp -v " ../../../custom/${FILE} " " ${i} "
294- else
295- DIRNAME=` dirname ${i} `
296- if [ " ${DIRNAME} " == " ./sbin" ]; then
297- sudo cp -v " ../../../custom/${FILE} " " ${i} "
298- else
299- sudo cp -v " ../../../custom/${DIRNAME} /${FILE} " " ${i} " || echo " ${DIRNAME} || ${FILE} || ${i} "
300- fi
301- fi
302- done
303-
304- sudo su root -c ' find . | cpio --dereference -o -H newc | lzma -7 > ../initrd.lz'
305- cd ..
306- sudo rm -rf ext initrd_tmp.gz
255+ sudo cp custom/boot/initrd.img-* cd/casper/initrd.lz
256+
257+ # cd /home/falktx/livecd/cd/casper
258+ # sudo rm -rf ext
259+ # sudo mkdir ext
260+ # cd ext
261+ # sudo su root -c 'cat ../initrd_tmp.gz | cpio -i'
262+ #
263+ # # fix links
264+ # LINKS=`find . -type l`
265+ # for i in ${LINKS}; do
266+ # FILE=`readlink ${i}`
267+ # CUSTOM=0
268+ # if [ "${FILE}" == "/proc/mounts" ]; then
269+ # continue
270+ # elif [ "${FILE}" == "busybox" ]; then
271+ # FILE="/bin/busybox"
272+ # CUSTOM=1
273+ # elif [ "${FILE}" == "lvm" ]; then
274+ # FILE="/sbin/lvm"
275+ # CUSTOM=1
276+ # elif [ "${FILE}" == "/usr/share/plymouth/themes/kxstudio-logo/kxstudio-logo.plymouth" ]; then
277+ # FILE="/lib/plymouth/themes/kxstudio-logo/kxstudio-logo.plymouth"
278+ # CUSTOM=2
279+ # elif [ "${FILE}" == "/usr/share/plymouth/themes/kxstudio-text/kxstudio-text.plymouth" ]; then
280+ # FILE="/lib/plymouth/themes/kxstudio-text/kxstudio-text.plymouth"
281+ # CUSTOM=2
282+ # fi
283+ # sudo rm "${i}"
284+ # if [ "${CUSTOM}" == "1" ]; then
285+ # sudo cp -v ".${FILE}" "${i}"
286+ # elif [ "${CUSTOM}" == "2" ]; then
287+ # sudo cp -v "../../../custom/${FILE}" "${i}"
288+ # else
289+ # DIRNAME=`dirname ${i}`
290+ # if [ "${DIRNAME}" == "./sbin" ]; then
291+ # sudo cp -v "../../../custom/${FILE}" "${i}"
292+ # else
293+ # sudo cp -v "../../../custom/${DIRNAME}/${FILE}" "${i}" || echo "${DIRNAME} || ${FILE} || ${i}"
294+ # fi
295+ # fi
296+ # done
297+ #
298+ # sudo su root -c 'find . | cpio --dereference -o -H newc | lzma -7 > ../initrd.lz'
299+ # cd ..
300+ # sudo rm -rf ext initrd_tmp.gz
307301
308302echo " done"
309303exit
372366 * )
373367echo " usage: $0 <cmd>
374368
375- 1 - squash <version> <arch> [version=trusty] [arch=i386/amd64]
369+ 1 - squash <version> <arch> [version=bionic [arch=i386/amd64]
376370 2 - custom
377371 3 - custom_end
378372 4 - mksquash
0 commit comments