Your Name 7 years ago
parent
commit
036b36e7e4
1 changed files with 21 additions and 5 deletions
  1. 21 5
      setup_amd.sh

+ 21 - 5
setup_amd.sh

@@ -6,6 +6,7 @@ remote_folder="http://wareck.free.fr/openrig"
 amd_driver_v="18.20-606296"
 
 #### OPTIONS ####
+host_name="Miner1"
 ROCM_="NO" #rcom compute
 ETHMine="YES"
 XMRIG_AMD="YES"
@@ -380,11 +381,12 @@ then
 cat <<EOF>> /home/work/.bashrc
 export DISPLAY=:0
 echo -e "\e[93m
-   _ _
- _| |_|___ ___ ___ ___
-| . | | . | . | -_|  _|
-|___|_|_  |_  |___|_|
-      |___|___|  v$script_version
+ _____   _____   _____
+|     | |     | |  _  |
+|  |  |_| | | |_|   __|
+|_____|_|_|_|_|_|__|
+ Open Mining Platform
+    v$script_version
 
 \e[0m"
 EOF
@@ -420,6 +422,20 @@ echo -e "\e[97mDone !\e[0m"
 
 sudo usermod -a -G video work
 
+echo -e "\n\e[95mConfigure Hostname and Rig name:\e[0m"
+touch /tmp/hostname
+echo $host_name >/tmp/hostname
+sudo bash -c 'cp /tmp/hostname /etc/hostname'
+sed -i -e "s/digger/$host_name/g" /etc/hosts
+# rename rig in miner.sh
+sed -i -e "s/OpenRig/$host_name/g" miner.sh
+# nano count lines
+sed -i -e "s/# set const/set const/g" /etc/nanorc
+# reset ssh keys
+rm /etc/ssh/ssh_host_*
+dpkg-reconfigure openssh-server
+echo "Done"
+
 echo -e "\n\e[92mEverything was done...\e[0m"
 echo -e -n "Reboot in 15 seconds (CRTL+C to abord): "
 for i in {15..1}