Skip to content

suvie-eng/mos

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

The Mongoose OS command line tool

Installing on Windows

Download and run pre-built mos.exe.

Installing on Ubuntu Linux

Use PPA:

$ sudo add-apt-repository ppa:mongoose-os/mos
$ sudo apt-get update
$ sudo apt-get install mos

Note: to use the very latest version instead of the released one, the last command should be sudo apt-get install mos-latest

Installing on Arch Linux

Use PKGBUILD:

$ git clone https://github.com/mongoose-os/mos
$ cd mos/tools/archlinux_pkgbuild/mos-release
$ sudo pacman -Sy gcc go git jq make pkgconf python3
$ makepkg
$ pacman -U ./mos-*.tar.xz

Note: to use the very latest version from the git repo, instead of the released one, invoke makepkg from mos/tools/archlinux_pkgbuild/mos-latest.

Installing on Mac OS

Using [Homebrew][https://brew.sh/]:

$ brew tap cesanta/mos
$ brew install mos

To use latest:

$ brew install mos-latest

Building manually

You will need:

  • Git
  • Go version 1.13 or later
  • GNU Make
  • Python 3
  • libftdi + headers
  • libusb 1.0 + headers
  • GCC
  • pkg-config
  • Docker - optional, only for building Windows binaries on Mac or Linux.

Commands to install all the build dependencies:

  • Ubuntu Linux: sudo apt-get install build-essential git golang-go python3 libftdi-dev libusb-1.0-0-dev pkg-config
  • Mac OS X (via Homebrew): brew install coreutils libftdi libusb-compat pkg-config
  • Windows 10: TODO

Clone the repo (note: doesn't have to be in GOPATH):

$ git clone https://github.com/mongoose-os/mos
$ cd mos

Build the binary:

$ make

It will produce mos (or mos.exe on Windows).

Packages

No packages published

Languages

  • Go 93.6%
  • Python 3.3%
  • JavaScript 1.4%
  • C 0.5%
  • Makefile 0.5%
  • Shell 0.4%
  • Other 0.3%