Changes
Jump to navigation
Jump to search
← Older edit
Newer edit →
MikroTik
(view source)
Revision as of 05:43, 11 July 2021
20 bytes added
,
2 years ago
m
→Installation
Line 35:
Line 35:
gunzip -c chr.img.zip > chr.img && \
gunzip -c chr.img.zip > chr.img && \
mount -o loop,offset=33554944 chr.img /mnt && \
mount -o loop,offset=33554944 chr.img /mnt && \
−
ADDRESS=`ip addr show ens3 | grep global | cut -d' ' -f 6 | head -n 1` && \
+
ADDRESS=`ip addr show
'''''
ens3
'''''
| grep global | cut -d' ' -f 6 | head -n 1` && \
GATEWAY=`ip route list | grep default | cut -d' ' -f 3` && \
GATEWAY=`ip route list | grep default | cut -d' ' -f 3` && \
echo "/ip address add address=$ADDRESS interface=[/interface ethernet find where name=ether1] /ip route add gateway=$GATEWAY " > /mnt/rw/autorun.scr && \
echo "/ip address add address=$ADDRESS interface=[/interface ethernet find where name=ether1] /ip route add gateway=$GATEWAY " > /mnt/rw/autorun.scr && \
umount /mnt && \
umount /mnt && \
−
echo u > /proc/sysrq-trigger && \ dd if=chr.img bs=1024 of=/dev/vda
+
echo u > /proc/sysrq-trigger && \ dd if=chr.img bs=1024 of=
'''''
/dev/vda
'''''
*Once you successfully complete the above, power off (do not shut down) the VPS and then turn it back on to boot into MikroTik CHR.
*Once you successfully complete the above, power off (do not shut down) the VPS and then turn it back on to boot into MikroTik CHR.
Kg7qin
ASL-Corp members
,
Bureaucrats
,
Check users
,
Structured Discussions bots
, oversight,
Suppressors
,
Administrators
,
Upload Wizard campaign editors
1,714
edits
Navigation menu
Personal tools
English
Log in
Request account
Namespaces
Page
Discussion
Variants
Views
Read
View source
View history
More
Search
Links
Web Portal
Help Desk
Node Status
System Status
Mailing List
r/PTTLink on Reddit
Navigation
Main page
Recent changes
Random page
Help about MediaWiki
Tools
Upload file
Special pages
Printable version