zorchenhimer / MovieNight

Single instance video streaming server with integrated chat.
https://discord.gg/F2VSgjJ
MIT License
691 stars 87 forks source link

A more in-depth documentation for noobs? #87

Closed daicain closed 5 years ago

daicain commented 5 years ago

Would it be possible to add more detailed documentation for noobs? I used a fresh Ubuntu VM and installed Make and Go 1.12.2 but still cannot get this to run. I'm probably missing a few steps, like where to download MovieNight or setting up Go Paths?

I basically just installed Make, Go, downloaded MovieNight, ran "make get" inside MovieNight folder and got an error about make 'get' not able to find the recipe.

zorchenhimer commented 5 years ago

If you've installed Go using these instructions, you'll need to add something like this to the bottom of your ~/.bashrc file:

export PATH=$PATH:/usr/local/go/bin:/home/YOUR_USERNAME/go/bin

Then from the MovieNight folder run make get again for good measure and then make.

I just tried on a fresh install of Ubuntu and you may need to also install gcc as some dependencies use cgo.

daicain commented 5 years ago

Okay so I got 1 step further. I am able to domake get , but when I do make, here's the error:

root@Test:~/MovieNight# make
goimports -w .
make: goimports: Command not found
Makefile:25: recipe for target 'fmt' failed
make: *** [fmt] Error 127
zorchenhimer commented 5 years ago

Looks like you still do not have your path setup correctly. Note that there are two directories being added to it: /usr/local/go/bin as well as /home/YOUR_USERNAME/go/bin. Don't forget to change YOUR_USERNAME to the account username you are using.

daicain commented 5 years ago

I finally got it to work, thank you. Here are all the steps I took on a fresh Ubuntu 18.10 x64 for anyone else not as experience in Linux as I am...

  1. sudo apt-get update && sudo apt-get upgrade -y
  2. sudo apt-get install build-essential - for makeand stuff
  3. Using These Instructions I install go1.12.4.linux-amd64.tar.gz
  4. wget https://dl.google.com/go/go1.12.4.linux-amd64.tar.gz
  5. tar -C /usr/local -xzf go1.12.4.linux-amd64.tar.gz
  6. export PATH=$PATH:/usr/local/go/bin
  7. Added export PATH=$PATH:/usr/local/go/bin:/root/go/bin to the bottom of my ~/.bashrc file.
  8. sudo reboot just for good measure
  9. git clone https://github.com/zorchenhimer/MovieNight - (current dir is /root)
  10. cd MovieNight
  11. make get
  12. make
  13. ./MovieNight
zorchenhimer commented 5 years ago

Glad to hear!

Quick thing I'd like to point out though. You mention your current directory is /root in step 9. I would recommend against running as root. Is usually bad practice to run a lot of stuff as root, and the default port isn't low enough that it requires root permissions to bind to.

daicain commented 5 years ago

Glad to hear!

Quick thing I'd like to point out though. You mention your current directory is /root in step 9. I would recommend against running as root. Is usually bad practice to run a lot of stuff as root, and the default port isn't low enough that it requires root permissions to bind to.

Yeah, this was just a quick test from scratch to make sure it works. For anyone else, please don't do this on root!