Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

v159 #1289

Merged
merged 142 commits into from
Dec 10, 2017
Merged

v159 #1289

Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
142 commits
Select commit Hold shift + click to select a range
818b96a
v159
Fourdee Nov 13, 2017
5f48e21
v159
Fourdee Nov 13, 2017
8ec02d1
v159
Fourdee Nov 13, 2017
86e3cb1
v159
Fourdee Nov 13, 2017
3142d1d
v159
Fourdee Nov 13, 2017
ccc0559
v159
Fourdee Nov 13, 2017
8b2c5f0
v159
Fourdee Nov 15, 2017
bdec6c5
v159
Fourdee Nov 17, 2017
d3bd05d
v159
Fourdee Nov 17, 2017
73894bf
[Nextcloud] Fix terminal installation
MichaIng Nov 17, 2017
20a5906
[Nextcloud] Also drop 'parent' database user
MichaIng Nov 17, 2017
f1f218f
[Nextcloud] Forgotten "
MichaIng Nov 17, 2017
49d72d6
v159
MichaIng Nov 17, 2017
7fb8519
[Nextcloud] Remove dropping of parent database user
MichaIng Nov 18, 2017
7e4ded7
v159
Fourdee Nov 18, 2017
8ece6e7
v159
Fourdee Nov 19, 2017
387d337
DietPi System Preparation | Add sysctl config values to our own .conf…
MichaIng Nov 20, 2017
4b8c537
DietPi-BugReport | Add sysctl.conf inclusions into bug report
MichaIng Nov 20, 2017
64324a3
Update CHANGELOG.txt
MichaIng Nov 20, 2017
e4898f1
DietPi-Software | ownCloud: Changelog update regarding #1243
MichaIng Nov 20, 2017
5fe8404
Merge pull request #1242 from MichaIng/patch-1
Fourdee Nov 20, 2017
397f103
Merge pull request #1243 from MichaIng/patch-2
Fourdee Nov 20, 2017
88a11ed
Fix creation of /etc/sysctl.d/97-dietpi.conf
MichaIng Nov 20, 2017
8f180a9
DietPi-Software | Redis: Minor un/installation and activation fixes o…
MichaIng Nov 21, 2017
293239a
v159
Fourdee Nov 21, 2017
4553ebe
Merge branch 'testing' of https://github.com/Fourdee/DietPi into testing
Fourdee Nov 21, 2017
4ac07e0
Merge pull request #1247 from MichaIng/patch-3
Fourdee Nov 21, 2017
7133bf7
tiny typo
MichaIng Nov 21, 2017
e9bfaba
DietPi-Software | ownCloud: Bring ownCloud installation onto the stag…
MichaIng Nov 22, 2017
6cfd1fb
v159
Fourdee Nov 22, 2017
8db1796
v159
Fourdee Nov 22, 2017
e6aabce
Merge pull request #1249 from MichaIng/patch-1
Fourdee Nov 22, 2017
196c25f
v159
Fourdee Nov 22, 2017
af034bb
v159
Fourdee Nov 22, 2017
3befa86
DietPi-Software | ownCloud: Add occ terminal installation and configu…
MichaIng Nov 23, 2017
59dfe54
v159
Fourdee Nov 23, 2017
4f49ba8
DietPi-Software | ownCloud: Adjust Nginx config according to admin ma…
MichaIng Nov 23, 2017
821a020
DietPi-Software | ownCloud/Nextcloud: Apache config according to admi…
MichaIng Nov 23, 2017
7b77550
DietPi-Software | Nextcloud: Switch script to separate apache config …
MichaIng Nov 23, 2017
3a08161
DietPi-Software | ownCloud: Add missing notes to Nginx config
MichaIng Nov 23, 2017
25e7718
DietPi-Software | Nextcloud: Create separate Nginx config file
MichaIng Nov 23, 2017
6d462ac
DietPi-Software | Nextcloud: Move Nginx config from script into seper…
MichaIng Nov 23, 2017
37cd685
DietPi-Software | ownCloud/Nextcloud: Reorder uninstallation
MichaIng Nov 23, 2017
1f0c082
v159
Fourdee Nov 24, 2017
e574f01
Merge pull request #1251 from MichaIng/patch-2
Fourdee Nov 24, 2017
6b51b81
v159
Fourdee Nov 24, 2017
a61d508
v159
Fourdee Nov 25, 2017
1ba1d64
v159
Fourdee Nov 25, 2017
78ca556
v159
Fourdee Nov 26, 2017
ad4e604
DietPi-Software | PHP: Fix 'upload_tmp_dir' issue
MichaIng Nov 26, 2017
cc2cb5f
DietPi-Software | PHP: Fix 'upload_tmp_dir' on update
MichaIng Nov 26, 2017
af95429
DietPi-Software | PHP: Add removal of 'dietpi.ini' to uninstallation
MichaIng Nov 26, 2017
8456915
v159
Fourdee Nov 27, 2017
8a7c8c1
DietPi-Software | ownCloud/Nextcloud: Use Redis for transactional fil…
MichaIng Nov 27, 2017
f587563
DietPi-Software | PHP: Set file path correctly as string
MichaIng Nov 27, 2017
9ad52c2
DietPi-Software | PHP: Correctly set file path as string variable
MichaIng Nov 27, 2017
e2c2b91
v159
MichaIng Nov 27, 2017
3f76d63
Merge branch 'testing' into patch-1
MichaIng Nov 27, 2017
5db153b
Merge branch 'testing' into patch-1
MichaIng Nov 27, 2017
8cba00a
Merge pull request #1259 from MichaIng/patch-1
Fourdee Nov 27, 2017
3525ac5
v159
Fourdee Nov 28, 2017
2b033ac
v159
Fourdee Nov 28, 2017
dff920a
v159
Fourdee Nov 28, 2017
14dfbfe
v159
Fourdee Nov 29, 2017
a632056
v159
Fourdee Nov 29, 2017
2d37d73
v159
Fourdee Nov 29, 2017
a2b36ea
v159
Fourdee Nov 29, 2017
0c7a253
v159
Fourdee Nov 29, 2017
4160a54
v159
Fourdee Nov 29, 2017
93ec4c7
DietPi-Software | PHP: Fix 'upload_tmp_dir' patch
MichaIng Nov 30, 2017
a00f119
v159
MichaIng Nov 30, 2017
3aa5dd0
v159
Fourdee Nov 30, 2017
2679d9c
v159
Fourdee Nov 30, 2017
58396d7
v159
Fourdee Nov 30, 2017
bc3fa9f
Merge pull request #1265 from MichaIng/patch-1
Fourdee Dec 1, 2017
35f9d00
v159
Fourdee Dec 1, 2017
bf5eeea
v159
Fourdee Dec 1, 2017
f9f629d
v159
Fourdee Dec 1, 2017
6e6221d
v159
Fourdee Dec 2, 2017
7fe0ef4
v159
Fourdee Dec 2, 2017
f3b3ab2
v159
Fourdee Dec 2, 2017
ea4342d
v159
Fourdee Dec 2, 2017
4f21c2d
DietPi-Software | ownCloud/Nextcloud: Enable background cron jobs
MichaIng Dec 2, 2017
20d1c9b
DietPi-Software | ownCloud/Nextcloud: Add occ command alias to bashrc
MichaIng Dec 2, 2017
d31b49e
DietPi-Config | ownCloud/Nextcloud: Patch cronjob and occ alias on di…
MichaIng Dec 2, 2017
487a23e
Merge branch 'testing' into patch-2
MichaIng Dec 2, 2017
bae6922
Merge branch 'testing' into patch-2
MichaIng Dec 2, 2017
1b6faf0
v159
MichaIng Dec 2, 2017
3a451c1
v159
Fourdee Dec 3, 2017
992dd50
v159
Fourdee Dec 3, 2017
2c48217
v159
Fourdee Dec 3, 2017
41d47a2
v159
Fourdee Dec 3, 2017
b79a75a
v159
Fourdee Dec 3, 2017
72fa011
v159
MichaIng Dec 4, 2017
7ed6dad
v159
MichaIng Dec 4, 2017
59bbf55
v159
MichaIng Dec 4, 2017
0bf9a3c
DietPi-Software | ownCloud/Nextcloud: Enable MySQL 4-byte support on …
MichaIng Dec 5, 2017
e2293e3
DietPi-Software | ownCloud/Nextcloud: Prevent configuration from over…
MichaIng Dec 5, 2017
d972f5e
v159
MichaIng Dec 5, 2017
5f8b8ab
DietPi-Software | ownCloud/Nextcloud: Save MySQL backup to user data …
MichaIng Dec 5, 2017
6939331
v159
MichaIng Dec 5, 2017
76c9353
v159
MichaIng Dec 5, 2017
595ec99
DietPi-Software || ownCloud/Nextcloud: Control maintenance mode durin…
MichaIng Dec 5, 2017
d481738
v159
MichaIng Dec 5, 2017
b837ac3
v159
Fourdee Dec 5, 2017
7daa5c0
Merge pull request #1261 from MichaIng/patch-2
Fourdee Dec 5, 2017
7165c96
v159
MichaIng Dec 5, 2017
8e291a3
v159
MichaIng Dec 5, 2017
14122b3
v159
MichaIng Dec 6, 2017
e522b8c
v159
MichaIng Dec 6, 2017
15feb6d
v159
MichaIng Dec 6, 2017
206e526
v159
MichaIng Dec 6, 2017
0991b68
v159
MichaIng Dec 6, 2017
25420eb
v159
MichaIng Dec 6, 2017
6976b98
v159
MichaIng Dec 6, 2017
29a33b2
v159
MichaIng Dec 6, 2017
a5f9cc4
v159
MichaIng Dec 7, 2017
bcc10f3
Merge pull request #1272 from MichaIng/patch-1
Fourdee Dec 7, 2017
c07909b
v159
Fourdee Dec 7, 2017
e2fb0eb
v159
Fourdee Dec 7, 2017
8c7d22c
v159
Fourdee Dec 7, 2017
3173643
v159
Fourdee Dec 7, 2017
5ba37d6
v159
Fourdee Dec 7, 2017
e35fac8
v159
Fourdee Dec 8, 2017
bdfb73e
v159
Fourdee Dec 8, 2017
fd46105
v159
Fourdee Dec 8, 2017
892a371
v159
Fourdee Dec 8, 2017
69e9d85
v159
Fourdee Dec 9, 2017
fe8f8ac
v159
Fourdee Dec 9, 2017
d02af8e
v159
Fourdee Dec 9, 2017
827e276
DietPi-Software | ownCloud/Nextcloud: Tiny polish
MichaIng Dec 9, 2017
3184340
Merge pull request #1284 from MichaIng/patch-4
Fourdee Dec 9, 2017
17a7eee
v159
Fourdee Dec 9, 2017
2eeece9
v159
Fourdee Dec 9, 2017
38a1696
v159
Fourdee Dec 9, 2017
3165361
v159
Fourdee Dec 9, 2017
4eaeb31
v159
Fourdee Dec 9, 2017
69edcdc
v159
Fourdee Dec 10, 2017
eb6b425
v159
Fourdee Dec 10, 2017
7d0278b
v159
Fourdee Dec 10, 2017
c7f6543
v159
Fourdee Dec 10, 2017
e30065d
v159
Fourdee Dec 10, 2017
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
62 changes: 62 additions & 0 deletions CHANGELOG.txt
Original file line number Diff line number Diff line change
@@ -1,3 +1,65 @@
v159
(10/11/17)

Image Modifications:
VMWare | Updated to Debian Stretch: https://github.com/Fourdee/DietPi/issues/1219
VirtualBox | Updated to Debian Stretch, many thanks @MichaIng: https://github.com/Fourdee/DietPi/issues/1219
RPi | Updated to Debian Stretch: https://github.com/Fourdee/DietPi/issues/475

Changes / Improvements / Optimizations:
General | Odroid XU3/4 images updated: Includes kernel support for EMMC 5.1 (thanks Meveric): https://github.com/Fourdee/DietPi/issues/1252
General | DietPi RPi kernel: Updated to 4.9.62.
General | DietPi RPi kernel: Will no longer re-install, if the current version is already at latest.
General | Added farenheit readouts for cpu_info and dietpi-config. For those "over the pond" :D : http://dietpi.com/phpbb/viewtopic.php?f=12&t=2516&p=9772#p9772
General | Sparky SBC: Kernel update to add support for USB 1.1 DACs, thanks @sudeep. This must be enabled manually, if using a USB 1.1 DAC, as this breaks Allo WiFi dongle. Edit "/DietPi/uEnv.txt" and change the value "aotg.aotg1_speed=1" (from "0"), then reboot.
General | We now define a default LD_LIBRARY_PATH for all systems, exported from /etc/bash.bashrc: https://github.com/Fourdee/DietPi/issues/475#issuecomment-350380744
DietPi-Services | Run "dietpi-services help" to see a full list of updated commands: Added support for "enable" and "disable". "disable" will stop and disable the service and prevent it from running, "enable" will enable and start the service. EG: "dietpi-services disable cron", will prevent Cron from starting. Added support for start/stop/restart a single service (eg: dietpi-services stop apache2). This is basically a symlink to systemD: https://github.com/Fourdee/DietPi/issues/1114
DietPi-Config | WiFi: Now uses the wpa_supplicant.conf method to setup WiFi connections. WEP is no longer supported by DietPi in this mode. WPA-PSK/WPA2-PSK and OPEN hosts supported: https://github.com/Fourdee/DietPi/issues/1262
DietPi-Backup | "Full Backup" Mode is now the default for fresh DietPi installations. This is mainly due to MySQL data now being in the DietPi userdata directory.
DietPi-Config | Tools > Benchmarks: Added ability to benchmark CPU performance based on bash + integer: https://github.com/Fourdee/DietPi/issues/1253#issuecomment-346881878
DietPi-Config | Time sync modes: NTP is now uninstalled when SystemD timedatectl is enabled. Reinstalled on demand. Timedatectl pool servers are now also set: https://github.com/Fourdee/DietPi/issues/1208#issuecomment-343762480
DietPi-Software | First run setup, now logged to /etc/dietpi/logs/dietpi-firstrun-setup.log.
DietPi-Software | APT log: Moved to /etc/dietpi/logs/dietpi-software_apt.log, to prevent RAMlog clearing log during automated installations.
DietPi-Software | MPD (Stretch): Install updated to 0.20.11. Also supports native DSD playback (thanks to @sudeep and PJotr), when "Native" output freq/bit is set: https://github.com/Fourdee/DietPi/issues/1236
DietPi-Software | moOde: MPD now installed via pre-built binaries. Will reduce install time: https://github.com/Fourdee/DietPi/issues/1223#issuecomment-345265290
DietPi-Software | Nextcloud: Correct database access issue for MariaDB + minor fixes: https://github.com/Fourdee/DietPi/pull/1242
DietPi-Software | ownCloud: Installation fixed, respecting different distro repos: https://github.com/Fourdee/DietPi/pull/1243
DietPi-Software | MPD (inc YMPD/O!MPD): Default data directory is now "/mnt", this will include all USB drives and network locations: https://github.com/Fourdee/DietPi/issues/1202
DietPi-Software | Mopidy: Default data directory is now "/mnt", this will include all USB drives and network locations.
DietPi-Software | Syncthing: Installation updated to version 0.14.40, for new installations only. Removal of inotify (now included in main syncthing): https://github.com/Fourdee/DietPi/issues/1260
DietPi-Software | Node-Red: Symlink created during install from ~/.node-red to DietPi user data dir: https://github.com/Fourdee/DietPi/issues/1256
DietPi-Software | YMPD: Fixed Stretch installation + Now available for all CPU archs + Upgraded to SystemD service: https://github.com/Fourdee/DietPi/issues/475
DietPi-Software | Gitea: Install updated to 1.3.1 (for new installations only). Added support for ARMv8. Now installed to /mnt/dietpi_userdata/gitea, runs as dietpi user: https://github.com/Fourdee/DietPi/issues/686 http://dietpi.com/phpbb/viewtopic.php?f=8&t=5&p=9863#p9863

Bug Fixes:
DietPi-Automation | Resolved an issue where SSH server choice, was not installing selected choice: https://github.com/Fourdee/DietPi/issues/1122
DietPi-Config | Nvidia driver: nouveau now disabled by default on x86_64, fix for 750Ti and possibily other Nvidia chipsets (thanks dubyazero): https://github.com/Fourdee/DietPi/issues/1244
DietPi-Config | RPi Stretch: Resolved an issue with onboard Wifi failing to scan: https://github.com/Fourdee/DietPi/issues/1262
DietPi-Config | RAM Benchmark: Resolved an issue where devices without /tmp mounted to tmpfs would fail the test. We now check for this mount, prior to allowing the test to run: https://github.com/Fourdee/DietPi/issues/1130#issuecomment-350114298
DietPi-Software | Pi-Hole: Resolved various issues with this installation. DietPi will now also detect a failed Pi-Hole script exit and flag as not installed. : https://github.com/Fourdee/DietPi/issues/1282#issuecomment-350490524
DietPi-Software | Redis: Minor un/installation/activation fixes of PHP module (Thanks to @MichaIng) : https://github.com/Fourdee/DietPi/pull/1249
DietPi-Software | moOde: Resolved an issue where dietpi-drive_manager mounted drives, would not be available in the libary: https://github.com/Fourdee/DietPi/issues/1223#issuecomment-346708298
DietPi-Software | PHP: Solve 'upload_tmp_dir' issue, if PHP service uses 'PrivateTmp': https://github.com/Fourdee/DietPi/issues/1144
DietPi-Software | Syncthing: Resolved a permissions issue with self program updates: https://github.com/Fourdee/DietPi/issues/1260
DietPi-Software | Home Assistant: Resolved an issue with ARMv8 installation, where Python build would fail due to lack of build-essential: https://github.com/Fourdee/DietPi/issues/1255
DietPi-Software | MPD: Corrected various uninstallation issues.
DietPi-Software | APT Removal: Resolved an issue in Stretch, where held packages were not being removed: https://github.com/Fourdee/DietPi/issues/475
DietPi-Software | FFMPEG: Resolved inability to install on XU4 Jessie: https://github.com/Fourdee/DietPi/issues/1273
DietPi-Software | Chromium (RPi Stretch): Resolved installation + desktop icon symlink: https://github.com/Fourdee/DietPi/issues/475#issuecomment-350111359
DietPi-Software | Resolved an issue where dietpi permissions were not being set correctly, for symlinked userdata dir.
DietPi-Update | Resolved an issue where .update_available file would still exist in no network situations: https://github.com/Fourdee/DietPi/issues/1258
Patch_File | Auto swapfile generation no longer run twice (mostly for pre v150 images): https://github.com/Fourdee/DietPi/issues/1257

Allo Web Interface v4:
MPD: Native DSD playback support, when "Native" output freq/bit is set in MPD settings page: https://github.com/Fourdee/DietPi/issues/1241
MPD: Default data directory is now "/mnt", this will include all USB drives and network locations.
SQUEEZELITE: Added ability to set native DSD output modes. Please note, success of selected output mode is limited to DAC and kernel capabilities. We have verified Combo 384 with u32le output mode on Sparky SBC + USB Bridge: https://github.com/Fourdee/DietPi/issues/1237#issuecomment-348241209
O!MPD: Updated to 1.03. Please make sure to update your library (Settings > Update), to rescan the new "/mnt" location which includes all networked and USB drives. Depending on your additional storage setup, the rescan may take 5-30 minutes.
RPi Image: Has been updated to Debian Stretch. This offers peformance improvements in the web interface, and newer ALSA libs. Previous installations are still supported. To upgrade, please write the new image. Upgrading to Stretch is not a requirement: http://dietpi.com/phpbb/viewtopic.php?f=8&t=2317&p=8869#p8869
Sparky SBC: We have remove the WiFi Hotspot installation by default, this is to avoid majority users having to remove this software title, before WiFi can be configured via terminal access. To reinstall this software, please connect the WiFi dongle, then run "dietpi-software install 60" via terminal.

-----------------------------------------------------------------------------------------------------------

v158
(12/11/17)

Expand Down
79 changes: 63 additions & 16 deletions PREP_SYSTEM_FOR_DIETPI.sh
Original file line number Diff line number Diff line change
Expand Up @@ -52,17 +52,20 @@ rm /etc/apt/sources.list.d/deb-multimedia.list
#Remove following All
apt-get clean
apt-get update
apt-get purge -y fonts-* xmms2-client-* pulseaudio* jq xxd iperf3 gdisk gpsd ppp libboost-iostreams* sgml-base xml-core usb-modeswitch* libpng* cpp-* cpp ntpdate bluez bluetooth rsync dialog dhcpcd5 lua5.1 netcat-* make makedev ncdu plymouth openresolv shared-mime-in* tcpd strace tasksel* wireless-* xdg-user-dirs triggerhappy python* v4l-utils traceroute xz-utils ucf xauth zlib1g-dev xml-core aptitude* avahi-daemon rsyslog logrotate man-db manpages vim vim-common vim-runtime vim-tiny mc mc-data
apt-get purge -y libpython* fonts-* xmms2-client-* pulseaudio* jq xxd iperf3 gdisk gpsd ppp libboost-iostreams* sgml-base xml-core usb-modeswitch* libpng* cpp-* cpp ntpdate bluez bluetooth rsync dialog dhcpcd5 lua5.1 netcat-* make makedev ncdu plymouth openresolv shared-mime-in* tcpd strace tasksel* wireless-* xdg-user-dirs triggerhappy python* v4l-utils traceroute xz-utils ucf xauth zlib1g-dev xml-core aptitude* avahi-daemon rsyslog logrotate man-db manpages vim vim-common vim-runtime vim-tiny mc mc-data

#+Desktop images (Mostly desktop packages, but apply to non-desktop images also):
apt-get purge -y libpod-* libpeas-* isc-dhcp-server gnome-* fonts-dejavu* eject dnsmasq* dns-root-data colord-data libjasper* libjson* libwbclient* libwayland* golang-* libavahi* libtext* libweb* libpcsclite1 libxau6* libxc* dictionaries-* libgtk* miscfiles minicom lrzsz lxmenu-* x11-* zenity* yelp-*

rm -R /usr/share/fonts/*
rm -R /usr/share/icons/*

#+armbian
apt-get purge -y expect tcl-expect toilet toilet-fonts w-scan vlan weather-util* sysbench stress cmake cmake-data device-tree-co* fping hddtemp haveged hostapd i2c-tools iperf ir-keytable libasound2* libmtp* libusb-dev lirc lsof ncurses-term pkg-config unicode-data rfkill pv mtp-tools m4 screen alsa-utils autotools-dev bind9-host btrfs-tools bridge-utils cpufrequtils dvb-apps dtv-scan-table* evtest f3 figlet gcc gcc-4.8-* git git-man ifenslave
#apt-get purge -y linux-jessie-root-*
#+Misc
#??? BBB: https://github.com/Fourdee/DietPi/issues/931#issuecomment-345451529
apt-get purge -y apache2 roboticscape ardupilot-* ti-* nodejs mjpg-streamer bonescript libapr1
#???

apt-get purge -y memtester expect tcl-expect toilet toilet-fonts w-scan vlan weather-util* sysbench stress cmake cmake-data device-tree-co* fping hddtemp haveged hostapd i2c-tools iperf ir-keytable libasound2* libmtp* libusb-dev lirc lsof ncurses-term pkg-config unicode-data rfkill pv mtp-tools m4 screen alsa-utils autotools-dev bind9-host btrfs-tools bridge-utils cpufrequtils dvb-apps dtv-scan-table* evtest f3 figlet gcc gcc-4.8-* git git-man ifenslave

#+ dev packages
# On ARMbian DEV branch images, manually do this as triggers '*-dev' image/uboot etc
Expand All @@ -75,38 +78,46 @@ apt-get purge -y '\-dev$' linux-headers*
apt-get purge -y rpi-update libraspberrypi-doc
#??? RPI (remove older version packages marked as manual): https://github.com/Fourdee/DietPi/issues/598#issuecomment-25919922
apt-get purge gcc-4.6-base gcc-4.7-base gcc-4.8-base libsigc++-1.2-5c2


#???

apt-get autoremove --purge -y


#??? ROCK64, reinstall kernel packages:
apt-get install linux-rock64-package
#???

#???: Optional Reinstall OpenSSH (for updating dietpi scripts etc). Gets removed during finalise.
apt-get install openssh-server -y
echo -e "PermitRootLogin yes" >> /etc/ssh/sshd_config
systemctl restart ssh
#???

apt-get dist-upgrade -y

#install packages
apt-get dist-upgrade -y
echo -e "CONF_SWAPSIZE=0" > /etc/dphys-swapfile
apt-get install -y gnupg net-tools cron rfkill ca-certificates locales apt-transport-https ethtool p7zip-full hfsplus iw debconf-utils xz-utils fbset wpasupplicant resolvconf bc dbus bzip2 psmisc bash-completion cron whiptail sudo ntp ntfs-3g dosfstools parted hdparm usbutils zip htop wput wget fake-hwclock dphys-swapfile curl unzip console-setup console-data console-common keyboard-configuration wireless-tools wireless-regdb crda --no-install-recommends


#??? Grub/intel+amd microcode firmware x86_64 native
# MBR
apt-get install -y grub2
# UEFI
apt-get install -y grub-common grub-efi-amd64 grub-efi-amd64-bin grub2-common

apt-get install firmware-linux-nonfree -y
#???

#??? bluetooth if onboard device / RPI
apt-get install -y bluetooth bluez-firmware
#???

#??? RPi - bluetooth/firmware for all RPi's
apt-get install -y pi-bluetooth
#??? RPi - common rpi specific binaries (eg: raspistill)
apt-get install -y libraspberrypi-bin
apt-get install -y pi-bluetooth libraspberrypi-bin
#???

#??? x86 images only: firmware
apt-get install -y firmware-realtek firmware-ralink firmware-brcm80211 firmware-atheros --no-install-recommends
apt-get install -y firmware-linux-nonfree firmware-realtek firmware-ralink firmware-brcm80211 firmware-atheros --no-install-recommends
#???

#------------------------------------------------------------------------------------------------
#DIETPI STUFF
Expand All @@ -120,6 +131,7 @@ userdel -f odroid
userdel -f rock64
userdel -f linaro #ASUS TB
userdel -f dietpi
userdel -f debian #BBB

#Remove folders (now in finalise script)

Expand Down Expand Up @@ -333,7 +345,7 @@ systemctl mask apt-daily.service
systemctl mask apt-daily-upgrade.timer

#/etc/sysctl.conf | Check for a previous entry before adding this
echo -e "vm.swappiness=1" >> /etc/sysctl.conf
echo -e "vm.swappiness=1" > /etc/sysctl.d/97-dietpi.conf

#login,
echo -e "\n/DietPi/dietpi/login" >> /root/.bashrc
Expand All @@ -345,6 +357,7 @@ cp /boot/dietpi/conf/network_interfaces /etc/network/interfaces
# - enable allow-hotplug eth0 after copying.
sed -i "/allow-hotplug eth/c\allow-hotplug eth$(sed -n 1p /DietPi/dietpi/.network)" /etc/network/interfaces


#Reduce DHCP request retry count and timeouts: https://github.com/Fourdee/DietPi/issues/711
sed -i '/^#timeout /d' /etc/dhcp/dhclient.conf
sed -i '/^#retry /d' /etc/dhcp/dhclient.conf
Expand Down Expand Up @@ -386,7 +399,12 @@ cat << _EOF_ >> /etc/hdparm.conf
_EOF_

cat << _EOF_ >> /etc/bash.bashrc
#LANG
export \$(cat /etc/default/locale | grep LANG=)

#Define a default LD_LIBRARY_PATH for all systems
export LD_LIBRARY_PATH=/lib:/usr/lib:/usr/local/lib:/opt/vc/lib

#DietPi Additions
alias sudo='sudo ' # https://github.com/Fourdee/DietPi/issues/424
alias dietpi-process_tool='/DietPi/dietpi/dietpi-process_tool'
Expand Down Expand Up @@ -451,7 +469,7 @@ echo -e "CONF_SWAPSIZE=0" > /etc/dphys-swapfile
systemctl disable getty@tty[2-6].service
#systemctl disable [email protected]

#NTPd - remove systemd's version
#NTPd default - Disable systemd's version
systemctl disable systemd-timesyncd

#+ARMbian increase console verbose
Expand All @@ -474,14 +492,16 @@ ln -sf /dev/null /etc/systemd/network/99-default.link
# kernel cmd line with GRUB
# /etc/default/grub [replace] GRUB_CMDLINE_LINUX="net.ifnames=0"
# GRUB_TIMEOUT=0

#???

#??? Native PC, add i386 support by default
dpkg --add-architecture i386
apt-get update
#???

#??? ARMbian OPi Zero 2: https://github.com/Fourdee/DietPi/issues/876#issuecomment-294350580
echo -e "blacklist bmp085" > /etc/modprobe.d/bmp085.conf
#???

#??? Sparky SBC ONLY: Blacklist GPU and touch screen modules: https://github.com/Fourdee/DietPi/issues/699#issuecomment-271362441
cat << _EOF_ > /etc/modprobe.d/disable_sparkysbc_touchscreen.conf
Expand All @@ -499,11 +519,13 @@ blacklist drm
blacklist videobuf2_vmalloc
blacklist bc_example
_EOF_
#???

#??? RPI ONLY: Scroll lock fix for RPi by Midwan: https://github.com/Fourdee/DietPi/issues/474#issuecomment-243215674
cat << _EOF_ > /etc/udev/rules.d/50-leds.rules
ACTION=="add", SUBSYSTEM=="leds", ENV{DEVPATH}=="*/input*::scrolllock", ATTR{trigger}="kbd-scrollock"
_EOF_
#???

#??? PINE (and possibily others): Cursor fix for FB
cat << _EOF_ >> "$HOME"/.bashrc
Expand All @@ -512,6 +534,31 @@ sed -i -e 's/?0c/?112c/g' -e 's/?8c/?48;0;64c/g' terminfo.txt
tic terminfo.txt
tput cnorm
_EOF_
#???


#??? XU4 FFMPEG fix. Prefer debian.org over Meveric for backports: https://github.com/Fourdee/DietPi/issues/1273
cat << _EOF_ > /etc/apt/preferences.d/backports
Package: *
Pin: release a=jessie-backports
Pin: origin "fuzon.co.uk"
Pin-Priority: 99
_EOF_
#???

#??? x86_64
# Disable nouveau: https://github.com/Fourdee/DietPi/issues/1244 // http://dietpi.com/phpbb/viewtopic.php?f=11&t=2462&p=9688#p9688
cat << _EOF_ > /etc/modprobe.d/blacklist-nouveau.conf
blacklist nouveau
blacklist lbm-nouveau
options nouveau modeset=0
alias nouveau off
alias lbm-nouveau off
_EOF_
echo -e "options nouveau modeset=0" > /etc/modprobe.d/nouveau-kms.conf
update-initramfs -u
#???


#------------------------------------------------------------------------------------------------
#A Unique HW_MODEL index will need to be assigned and coded into the DietPi sourcecode.
Expand Down
6 changes: 4 additions & 2 deletions dietpi.txt
Original file line number Diff line number Diff line change
Expand Up @@ -13,8 +13,10 @@ Ethernet_Enabled=1
Wifi_Enabled=0

#Enter your Wifi details below, if applicable (Case Sensitive).
Wifi_SSID=FuzonWifi
Wifi_KEY=MyAccessKey
Wifi_SSID=MySuperDooperWiFi
Wifi_KEY=0123456789
# available | WPA-PSK / NONE | WEP=No longer supported
Wifi_KEYMGR=WPA-PSK

#Enter your Static Network details below, if applicable.
Use_Static=0
Expand Down
2 changes: 1 addition & 1 deletion dietpi/.version
Original file line number Diff line number Diff line change
@@ -1 +1 @@
158
159
21 changes: 3 additions & 18 deletions dietpi/boot
Original file line number Diff line number Diff line change
Expand Up @@ -175,9 +175,6 @@ _EOF_
local Ethernet_Enabled=$(cat /DietPi/dietpi.txt | grep -ci -m1 'Ethernet_Enabled=1')
local Wifi_Enabled=$(cat /DietPi/dietpi.txt | grep -ci -m1 'Wifi_Enabled=1')

local Wifi_SSID=$(cat /DietPi/dietpi.txt | grep -m1 '^Wifi_SSID' | sed 's/.*=//')
local Wifi_KEY=$(cat /DietPi/dietpi.txt | grep -m1 '^Wifi_KEY' | sed 's/.*=//')

local Use_Static=$(cat /DietPi/dietpi.txt | grep -ci -m1 '^Use_Static=1')
local Static_IP=$(cat /DietPi/dietpi.txt | grep -m1 '^Static_IP' | sed 's/.*=//')
local Static_Mask=$(cat /DietPi/dietpi.txt | grep -m1 '^Static_Mask' | sed 's/.*=//')
Expand All @@ -191,14 +188,10 @@ _EOF_
Ethernet_Enabled=0
sed -i "/allow-hotplug wlan/c\allow-hotplug wlan$index_wlan" /etc/network/interfaces
sed -i "/allow-hotplug eth/c\#allow-hotplug eth$index_eth" /etc/network/interfaces
#Set SSid
sed -i "/wireless-essid/c\wireless-essid $Wifi_SSID" /etc/network/interfaces
sed -i "/wpa-ssid/c\wpa-ssid $Wifi_SSID" /etc/network/interfaces
#Set Key
sed -i "/wireless-key/c\wireless-key $Wifi_KEY" /etc/network/interfaces
sed -i "/wpa-psk/c\wpa-psk $Wifi_KEY" /etc/network/interfaces

/DietPi/dietpi/func/dietpi-set_hardware wifi enable
# - Enable modules + Apply global SSID/Keys from dietpi.txt to wpa_supp
/DietPi/dietpi/func/dietpi-set_hardware wificreds set
/DietPi/dietpi/func/dietpi-set_hardware wifimodules enable

# - Ethernet
elif (( $Ethernet_Enabled == 1 )); then
Expand Down Expand Up @@ -323,14 +316,6 @@ _EOF_
#Apply LED triggers if set
/DietPi/dietpi/func/dietpi-led_control 1 &
#----------------------------------------------------------------
#Set CRDA Country code
local wifi_country_code=$(cat /DietPi/dietpi.txt | grep -m1 '^wifi_country_code=' | sed 's/.*=//')
if [ -n "$wifi_country_code" ]; then

/DietPi/dietpi/func/dietpi-set_hardware wificountrycode "$wifi_country_code" &

fi
#----------------------------------------------------------------
#RPi set volume to -0.1db | We have to do it here because sound card modules (dietpi-set_hardware) are not enabled on the fly, requires a reboot.
if (( $HW_MODEL < 10 )); then

Expand Down
Loading