# Micro text editor

**URL:** <https://forum.openwrt.org/t/micro-text-editor/107764>\
**Category:** Installing and Using OpenWrt\
**Created:** [September 29, 2021, 9:41am UTC](https://forum.openwrt.org/t/micro-text-editor/107764 "2021-09-29T09:41:18Z")\
**Posts on this page:** 1\
**Showing post:** 4

<div class="post-metadata">

**Author:** ![okibcn](https://forum.openwrt.org/user_avatar/forum.openwrt.org/okibcn/32/48262_2.png) [@okibcn](https://forum.openwrt.org/u/okibcn)\
**Post date:** [March 12, 2022, 7:44am UTC](https://forum.openwrt.org/t/micro-text-editor/107764/4 "2022-03-12T07:44:17Z")

</div>

You don't need a package to use micro if your router has a standard processor architecture.

For instance for the E8450 (ARM64 architecture), I just download the file into /usr/bin using the command in my router:

```nohighlight
wget https://github.com/zyedidia/micro/releases/download/v2.0.10/micro-2.0.10-linux-
arm64.tar.gz -qO- |tar xz && mv ./*/micro /usr/bin

```

If your router uses a different architecture, golang compiler can quickly generate code for linux in these architectures: `386`,`amd64`,`arm`,`arm64`,`ppc64`,`ppc64le`,`mips`,`mipsle`,`mips64` and `mips64le`.  
Just [install the golang compiler](https://go.dev/doc/install) (`go version` over 1.16) and do something like this in your build PC:

```nohighlight
git clone https://github.com/zyedidia/micro
cd micro
GOOS=linux GOARCH=mips make build
sudo apt install upx
upx --lzma --best micro
scp micro root@192.168.1.1:/usr/bin

```

Obviously use the GOARCH according yo your router's architecture and use the right IP of your router for the scp command.

Please note that the size of the optimized binary is around 2.6MB!!!! so, micro is not by any means a small program, and can only be an option for routers with enough storage. Just check your available storage in your router.

regarding the size, there are [ways to optimize](https://prog.world/optimizing-the-size-of-the-go-binary/) it. I use UPX as it is more efficient than the gzip-like algorithm squashfs uses.

---

_[View the full topic](https://forum.openwrt.org/t/micro-text-editor/107764)._
