Difference between revisions of "Custom IP Address"

From MOD Wiki
Jump to navigation Jump to search
Line 9: Line 9:
 
<code>
 
<code>
 
sed -i "s|192.168.51.1|192.168.51.2|" /etc/network/interfaces /etc/ssh/sshd_config
 
sed -i "s|192.168.51.1|192.168.51.2|" /etc/network/interfaces /etc/ssh/sshd_config
</code>
+
sed -i "s|modduo|modduo2|" /etc/hostname /etc/hosts
 
+
sync && mount / -o remount,ro && reboot
on linux you might need this: (local computer, not in the MOD)
 
 
 
<code>
 
sudo ifconfig usb0 192.168.51.2
 
 
</code>
 
</code>

Revision as of 12:39, 7 November 2016

ssh into the mod, then mount the FS as read-write:

mount / -o remount,rw

then run:

sed -i "s|192.168.51.1|192.168.51.2|" /etc/network/interfaces /etc/ssh/sshd_config sed -i "s|modduo|modduo2|" /etc/hostname /etc/hosts sync && mount / -o remount,ro && reboot