go-hms

command module
v0.0.0-...-e6a098a Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Mar 13, 2020 License: MIT Imports: 2 Imported by: 0

README

go-hms

a simple, standalon home media server written in go(lang)

prebuilds

prebuilds can be found here on appveyor

installation (linux)

install dependencies

apt install libssl-dev build-essential curl git

get go

curl -O https://dl.google.com/go/go1.11.4.linux-amd64.tar.gz
sudo tar -C /usr/local -xzf go1.11.4.linux-amd64.tar.gz

add go to path

nano ~/.profile (user only) || nano /etc/profile (global)

prepend

export GOPATH=$HOME/work
export PATH=$PATH:/usr/local/go/bin:$GOPATH/bin

install (windows)

(not yet working... sqlite3 build fails)

install go

download and execute the golang.msi from there website

install git

download and execute the git.exe from there website

install gcc & openssl

download and execute the cygwin.exe from there website when asked for packages install all from the devel categorie

install required package

go get github.com/xeodou/go-sqlcipher
go get golang.org/x/crypto/bcrypt

for cross compilation to windows from linux

apt install mingw-w64
git clone https://github.com/openssl/openssl
cd openssl
./Configure mingw64 shared --cross-compile-prefix=x86_64-w64-mingw32- --prefix=/usr/x86_64-w64-mingw32
make
sudo make install
cd ..
rm -rf openssl
CC=x86_64-w64-mingw32-gcc GOOS=windows GOARCH=amd64 CGO_ENABLED=1 go build -o ~/go/src/github.com/timeforaninja/go-hms/build/main.exe main.go

windows (admin cmd)

mkdir %GOPATH%\src\github.com\timeforaninja
mklink /D %GOPATH%\src\github.com\timeforaninja\go-hms C:\Users\<user>\Documents\GitHub\go-hms

linux

mkdir -p ~/go/src/github.com/timeforaninja
ln -s /mnt/hgfs/GitHub/go-hms ~/go/src/github.com/timeforaninja/go-hms

TODO: use acme autocert

Documentation

The Go Gopher

There is no documentation for this package.

Directories

Path Synopsis

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL