File tree Expand file tree Collapse file tree 1 file changed +7
-5
lines changed Expand file tree Collapse file tree 1 file changed +7
-5
lines changed Original file line number Diff line number Diff line change @@ -8,11 +8,9 @@ install_chroot_fail_on_error_trap
8
8
echo exit 101 > /usr/sbin/policy-rc.d
9
9
chmod +x /usr/sbin/policy-rc.d
10
10
11
- apt-get -y --force-yes install xinit xserver-xorg oracle-java8-jdk fswebcam librxtx-java hostapd isc-dhcp-server bind9 bind9utils dnsutils avahi-daemon libavahi-compat-libdnssd1 dos2unix
11
+ apt-get -y --force-yes install xinit xserver-xorg x11-xserver-utils oracle-java8-jdk fswebcam librxtx-java hostapd isc-dhcp-server bind9 bind9utils dnsutils avahi-daemon libavahi-compat-libdnssd1 dos2unix
12
12
13
- apt-get remove -y --purge aptitude aptitude-common g++ g++-4.9 gcc gcc-4.9 gdb gdbserver lua5.1 cpp cpp-4.9 luajit perl perl-modules python-rpi.gpio bluez bluez-firmware geoip-database libc-dev-bin libfreetype6-dev samba-common libdrm-radeon1 libdrm-amdgpu1 libdrm-freedreno1 libdrm-nouveau2 xserver-xorg-input-synaptics xserver-xorg-input-wacom manpages manpages-dev openssh-client openssh-server openssh-sftp-server libraspberrypi-dev libraspberrypi-doc libpython2.7-stdlib gcc-4.6-base:armhf
14
-
15
- apt-get -y --force-yes install dropbear
13
+ # apt-get remove -y --purge aptitude aptitude-common g++ g++-4.9 gcc gcc-4.9 gdb gdbserver luajit perl perl-modules python-rpi.gpio bluez bluez-firmware geoip-database libc-dev-bin libfreetype6-dev samba-common libdrm-radeon1 libdrm-amdgpu1 libdrm-freedreno1 libdrm-nouveau2 xserver-xorg-input-synaptics xserver-xorg-input-wacom manpages manpages-dev
16
14
17
15
apt-get -y --force-yes upgrade
18
16
apt-get autoremove -y
@@ -52,7 +50,11 @@ rm -f `find /var/log -type f`
52
50
53
51
echo " Large files:"
54
52
echo " ------------"
55
- find / -type f -size +5000k -exec ls -lh {} \; | awk ' { print $NF ": " $5 }'
53
+ find / -type f -print0 | xargs -0 du | sort -n | tail -20 | cut -f2 | xargs -I{} du -sh {}
54
+
55
+ echo " Large directories:"
56
+ echo " ------------------"
57
+ find / -type d -print0 | xargs -0 du | sort -n | tail -20 | cut -f2 | xargs -I{} du -sh {}
56
58
57
59
if [ ! -f /usr/bin/X ]; then
58
60
echo " /usr/bin/X not found!"
You can’t perform that action at this time.
0 commit comments