-
Notifications
You must be signed in to change notification settings - Fork 150
Updating myNode using CLI
Abhishek Shandilya edited this page Feb 18, 2020
·
2 revisions
If you are upgrading from version v0.1.81, v0.1.82, or v0.1.83 to v0.1.84+ you may need to run this command or the upgrade will not succeed.
sudo sed -i "s;${DEVICE_TYPE}/\* / >;${DEVICE_TYPE}/\* /;g" /usr/bin/mynode_upgrade.sh
Assuming the local IP of your myNode is 192.168.1.50
- Open Terminal in Linux/Mac, install Putty or any other SSH client in Windows
- Remote login to your mynode by
ssh admin@mynode.local
orssh admin@192.168.1.50
. Enter your password when prompted (no asterisks or dots will be shown while you type). - If you are upgrading for the first time, clone the github repository:
git clone https://github.com/mynodebtc/mynode.git mynode-git
- Move inside the git repo:
cd mynode-git
- Download the latest commits from github:
git pull
. Note that the latest commits might be experimental and untested. - Create a tar file of root filesystem:
make rootfs
- Start a web-server:
make start_file_server
- Move back to home folder:
cd ~
- Unpack the TAR file and apply the upgrade:
sudo mynode-local-upgrade localhost
. This step should install all dependencies and apply upgrades followed by a reboot (which should automatically log you out).
Repeat step 9 if there's any error.
To apply subsequent upgrades, skip the Step 7. You will get a harmless message "HTTP Server appears to already be running" if you repeat step 7. You can choose to stop the file server using make stop_file_server
.