Difference between revisions of "Custom IP Address"

From MOD Wiki
Jump to navigation Jump to search
(link to ssh page)
(11 intermediate revisions by one other user not shown)
Line 1: Line 1:
ssh into the mod, then mount the FS as read-write:
+
[[Access_MOD_using_SSH|ssh into the mod]], then mount the filesystem in read-write mode.
  
<code>
+
Then run:
mount / -o remount,rw
 
</code>
 
  
then run:
+
<source lang="bash">
 +
sed -i "s|192.168.51.1|192.168.52.1|" /etc/dnsmasq.conf /etc/network/interfaces /etc/ssh/sshd_config
 +
# systemctl disable avahi-daemon
 +
# systemctl disable avahi-dnsconfd
 +
sync && mount / -o remount,ro && sync && reboot
 +
</source>
  
<code>
+
NOTE: At this point it's not possible to have 2 MODs connected via USB, even if they use different IPs.<br>
sed -i "s|192.168.51.1|192.168.51.2|" /etc/network/interfaces /etc/ssh/sshd_config
+
If you need 2 MODs, consider using one MOD connected via USB and the other connected via Bluetooth.
</code>
 
 
 
on linux you might need this: (local computer, not in the MOD)
 
 
 
<code>
 
sudo ifconfig usb0 192.168.51.2
 
</code>
 

Revision as of 22:28, 9 November 2018

ssh into the mod, then mount the filesystem in read-write mode.

Then run:

sed -i "s|192.168.51.1|192.168.52.1|" /etc/dnsmasq.conf /etc/network/interfaces /etc/ssh/sshd_config
# systemctl disable avahi-daemon
# systemctl disable avahi-dnsconfd
sync && mount / -o remount,ro && sync && reboot

NOTE: At this point it's not possible to have 2 MODs connected via USB, even if they use different IPs.
If you need 2 MODs, consider using one MOD connected via USB and the other connected via Bluetooth.