BuildTools 2 years ago
parent
commit
e5a2146085
1 changed files with 59 additions and 2 deletions
  1. 59 2
      build_cube.sh

+ 59 - 2
build_cube.sh

@@ -93,7 +93,7 @@ echo -e ""
 sudo apt-get install samba cifs-utils mdadm git build-essential libtool pkg-config automake autoconf ethtool net-tools openvpn filezilla \
 tasksel lzma-dev lzma cmake libuv1-dev libssl-dev msr-tools tightvncserver lm-sensors openssh-server -y
 echo -e ""
-sudo apt-get install htop pixz pbzip2 pigz btrfs-progs gparted gnome-remote-desktop libcanberra-gtk-module \
+sudo apt-get install htop pixz pbzip2 pigz btrfs-progs gparted gpart gnome-remote-desktop libcanberra-gtk-module \
 ctorrent libcurl4-openssl-dev bison byacc screen libudev-dev libjansson-dev libncurses5-dev libmicrohttpd-dev curl -y
 echo -e ""
 sudo apt-get install libglib2.0-dev libgtk2.0-dev libsensors4-dev htop vlc locate -y
@@ -439,6 +439,63 @@ nct6775
 EOF
 sudo cp /tmp/modules /etc/modules
 fi
+
+if [ -f /tmp/sensors3.conf ]
+then
+chmod 777 /tmp/sensors3.conf
+rm /tmp/sensors3.conf
+fi
+cat <<'EOF'>> /tmp/sensors3.conf
+chip "fam15h_power-pci-00c4"
+ignore power1
+
+chip "amdgpu-pci-0200"
+label fan1 "GPU Fan"
+
+chip "k10temp-pci-00c3"
+ignore temp1
+
+chip "nct6776-isa-0290"
+label in0 "Vcore"
+label in2 "AVCC"
+label in3 "+3.3V"
+label in7 "3VSB"
+label in8 "Vbat"
+set in2_min  3.3 * 0.90
+set in2_max  3.3 * 1.10
+set in3_min  3.3 * 0.90
+set in3_max  3.3 * 1.10
+set in7_min  3.3 * 0.90
+set in7_max  3.3 * 1.10
+set in8_min  3.0 * 0.90
+set in8_max  3.3 * 1.10
+set temp1_max 65.000
+set temp1_max_hyst 60.000
+ignore fan1
+ignore fan2
+ignore fan5
+ignore fan4
+ignore intrusion0
+ignore intrusion1
+ignore beep_enable
+ignore temp10
+ignore temp9
+ignore temp8
+ignore temp7
+ignore temp3
+set fan3_min 100.000
+set fan3_max 3000.000
+ignore in1
+ignore in4
+ignore in5
+ignore in6
+label fan3  "CPU Fan"
+label temp1 "M/B Temp"
+label temp2 "CPU Temp"
+label temp2_crit  "CPU Crit"
+EOF
+chmod 644 /tmp/sensors3.conf
+sudo cp /tmp/sensors3.conf /etc/
 echo "Done."
 
 echo -e "$(tput setaf 10)\nVnc init:$(tput sgr0)"
@@ -468,7 +525,7 @@ echo -e "$(tput setaf 10)\nDisable IPv6:$(tput sgr0)"
 if ! grep "ipv6.disable=1" /etc/default/grub >/dev/null
 then
 sed -i -e "s/quiet splash/quiet splash ipv6.disable=1/g" /etc/default/grub
-sed -i -e "s/GRUB_CMDLINE_LINUX=\"/GRUB_CMDLINE_LINUX=\"ipv6.disable=1/g" /etc/default/grub
+sed -i -e "s/GRUB_CMDLINE_LINUX=\"/GRUB_CMDLINE_LINUX=\"ipv6.disable=1 acpi_enforce_resources=lax/g" /etc/default/grub
 sudo update-grub2
 fi
 sudo chown -R wareck:wareck /home/wareck/miners/xmr*