Difference between revisions of "Custom IP Address"
Jump to navigation
Jump to search
Line 7: | Line 7: | ||
then run: | then run: | ||
− | < | + | <source lang="bash"> |
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 | sed -i "s|modduo|modduo2|" /etc/hostname /etc/hosts | ||
sync && mount / -o remount,ro && reboot | sync && mount / -o remount,ro && reboot | ||
− | </ | + | </source> |
Revision as of 12:40, 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