Difference between revisions of "Custom IP Address"
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 | ||
− | + | sed -i "s|modduo|modduo2|" /etc/hostname /etc/hosts | |
− | + | sync && mount / -o remount,ro && reboot | |
− | |||
− | |||
− | |||
− | |||
</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