Jump to content

BackPack.TF Automatic Installation


SL.DaveTheLad

Recommended Posts

I am setting up Backpack.tf on a linux server, which in my case, requires the installation of node.js from source code.

 

Does anyone know if you have to have the latest version of node.js because njs 0.6 is much, much easier to install.

 

I cant find a way to contact the developer, so if anyone knows the answer or knows who I need to talk to, that'd be great.

Link to comment
Share on other sites

the latest version would be better, obviously. I don't work around with node.js much but yeah, I think you'll need the latest version. theres so many tutorials on installing node im sure.

Link to comment
Share on other sites

I am setting up Backpack.tf on a linux server, which in my case, requires the installation of node.js from source code.

 

Does anyone know if you have to have the latest version of node.js because njs 0.6 is much, much easier to install.

 

I cant find a way to contact the developer, so if anyone knows the answer or knows who I need to talk to, that'd be great.

 

What? Have you tried apt-get or whatever is your package manager?

 

ninja'd

Link to comment
Share on other sites

I've managed to install node.js and unzip the bp.tf bot files to /bptf/backpackbot but when i run sudo npm install I get this:

 

gyp WARN EACCES user "root" does not have permission to access the dev dir "/root/.node-gyp/0.10.33"

gyp WARN EACCES attempting to reinstall using temporary dev dir "/bptf/backpackbot/node_modules/steam/node_modules/ursa/.node-gyp"

Link to comment
Share on other sites

Have you tried running sudo-less?

 

 

by sudo-less you mean just typing:

npm install

In which case, yes and it comes up with lots of errors

Link to comment
Share on other sites



npm ERR! Error: EACCES, mkdir '/bptf/backpackbot/node_modules'
npm ERR!  { [Error: EACCES, mkdir '/bptf/backpackbot/node_modules']
npm ERR!   errno: 3,
npm ERR!   code: 'EACCES',
npm ERR!   path: '/bptf/backpackbot/node_modules',
npm ERR!   fstream_type: 'Directory',
npm ERR!   fstream_path: '/bptf/backpackbot/node_modules/steam',
npm ERR!   fstream_class: 'DirWriter',
npm ERR!   fstream_stack:
npm ERR!    [ '/usr/local/lib/node_modules/npm/node_modules/fstream/lib/writer.js:171:23',
npm ERR!      '/usr/local/lib/node_modules/npm/node_modules/mkdirp/index.js:46:53',
npm ERR!      'Object.oncomplete (fs.js:107:15)' ] }
npm ERR!
npm ERR! Please try running this command again as root/Administrator.


npm ERR! System Linux 3.12.22+
npm ERR! command "/usr/local/bin/node" "/usr/local/bin/npm" "install"
npm ERR! cwd /bptf/backpackbot
npm ERR! node -v v0.10.33
npm ERR! npm -v 1.4.28
npm ERR! path /bptf/backpackbot/node_modules
npm ERR! fstream_path /bptf/backpackbot/node_modules/steam
npm ERR! fstream_type Directory
npm ERR! fstream_class DirWriter
npm ERR! code EACCES
npm ERR! errno 3
npm ERR! stack Error: EACCES, mkdir '/bptf/backpackbot/node_modules'
npm ERR! fstream_stack /usr/local/lib/node_modules/npm/node_modules/fstream/lib/writer.js:171:23
npm ERR! fstream_stack /usr/local/lib/node_modules/npm/node_modules/mkdirp/index.js:46:53
npm ERR! fstream_stack Object.oncomplete (fs.js:107:15)
npm ERR! Error: EACCES, mkdir '/bptf/backpackbot/node_modules'
npm ERR!  { [Error: EACCES, mkdir '/bptf/backpackbot/node_modules']
npm ERR!   errno: 3,
npm ERR!   code: 'EACCES',
npm ERR!   path: '/bptf/backpackbot/node_modules',
npm ERR!   fstream_type: 'Directory',
npm ERR!   fstream_path: '/bptf/backpackbot/node_modules/moment',
npm ERR!   fstream_class: 'DirWriter',
npm ERR!   fstream_stack:
npm ERR!    [ '/usr/local/lib/node_modules/npm/node_modules/fstream/lib/writer.js:171:23',
npm ERR!      '/usr/local/lib/node_modules/npm/node_modules/mkdirp/index.js:46:53',
npm ERR!      'Object.oncomplete (fs.js:107:15)' ] }
npm ERR!
npm ERR! Please try running this command again as root/Administrator.


npm ERR! System Linux 3.12.22+
npm ERR! command "/usr/local/bin/node" "/usr/local/bin/npm" "install"
npm ERR! cwd /bptf/backpackbot
npm ERR! node -v v0.10.33
npm ERR! npm -v 1.4.28
npm ERR! path /bptf/backpackbot/node_modules
npm ERR! fstream_path /bptf/backpackbot/node_modules/moment
npm ERR! fstream_type Directory
npm ERR! fstream_class DirWriter
npm ERR! code EACCES
npm ERR! errno 3
npm ERR! stack Error: EACCES, mkdir '/bptf/backpackbot/node_modules'
npm ERR! fstream_stack /usr/local/lib/node_modules/npm/node_modules/fstream/lib/writer.js:171:23
npm ERR! fstream_stack /usr/local/lib/node_modules/npm/node_modules/mkdirp/index.js:46:53
npm ERR! fstream_stack Object.oncomplete (fs.js:107:15)
npm ERR! Error: EACCES, mkdir '/bptf/backpackbot/node_modules'
npm ERR!  { [Error: EACCES, mkdir '/bptf/backpackbot/node_modules']
npm ERR!   errno: 3,
npm ERR!   code: 'EACCES',
npm ERR!   path: '/bptf/backpackbot/node_modules',
npm ERR!   fstream_type: 'Directory',
npm ERR!   fstream_path: '/bptf/backpackbot/node_modules/extend',
npm ERR!   fstream_class: 'DirWriter',
npm ERR!   fstream_stack:
npm ERR!    [ '/usr/local/lib/node_modules/npm/node_modules/fstream/lib/writer.js:171:23',
npm ERR!      '/usr/local/lib/node_modules/npm/node_modules/mkdirp/index.js:46:53',
npm ERR!      'Object.oncomplete (fs.js:107:15)' ] }
npm ERR!
npm ERR! Please try running this command again as root/Administrator.


npm ERR! System Linux 3.12.22+
npm ERR! command "/usr/local/bin/node" "/usr/local/bin/npm" "install"
npm ERR! cwd /bptf/backpackbot
npm ERR! node -v v0.10.33
npm ERR! npm -v 1.4.28
npm ERR! path /bptf/backpackbot/node_modules
npm ERR! fstream_path /bptf/backpackbot/node_modules/extend
npm ERR! fstream_type Directory
npm ERR! fstream_class DirWriter
npm ERR! code EACCES
npm ERR! errno 3
npm ERR! stack Error: EACCES, mkdir '/bptf/backpackbot/node_modules'
npm ERR! fstream_stack /usr/local/lib/node_modules/npm/node_modules/fstream/lib/writer.js:171:23
npm ERR! fstream_stack /usr/local/lib/node_modules/npm/node_modules/mkdirp/index.js:46:53
npm ERR! fstream_stack Object.oncomplete (fs.js:107:15)
npm ERR! Error: EACCES, mkdir '/bptf/backpackbot/node_modules'
npm ERR!  { [Error: EACCES, mkdir '/bptf/backpackbot/node_modules']
npm ERR!   errno: 3,
npm ERR!   code: 'EACCES',
npm ERR!   path: '/bptf/backpackbot/node_modules',
npm ERR!   fstream_type: 'Directory',
npm ERR!   fstream_path: '/bptf/backpackbot/node_modules/winston',
npm ERR!   fstream_class: 'DirWriter',
npm ERR!   fstream_stack:
npm ERR!    [ '/usr/local/lib/node_modules/npm/node_modules/fstream/lib/writer.js:171:23',
npm ERR!      '/usr/local/lib/node_modules/npm/node_modules/mkdirp/index.js:46:53',
npm ERR!      'Object.oncomplete (fs.js:107:15)' ] }
npm ERR!
npm ERR! Please try running this command again as root/Administrator.


npm ERR! System Linux 3.12.22+
npm ERR! command "/usr/local/bin/node" "/usr/local/bin/npm" "install"
npm ERR! cwd /bptf/backpackbot
npm ERR! node -v v0.10.33
npm ERR! npm -v 1.4.28
npm ERR! path /bptf/backpackbot/node_modules
npm ERR! fstream_path /bptf/backpackbot/node_modules/winston
npm ERR! fstream_type Directory
npm ERR! fstream_class DirWriter
npm ERR! code EACCES
npm ERR! errno 3
npm ERR! stack Error: EACCES, mkdir '/bptf/backpackbot/node_modules'
npm ERR! fstream_stack /usr/local/lib/node_modules/npm/node_modules/fstream/lib/writer.js:171:23
npm ERR! fstream_stack /usr/local/lib/node_modules/npm/node_modules/mkdirp/index.js:46:53
npm ERR! fstream_stack Object.oncomplete (fs.js:107:15)
npm ERR! Error: EACCES, mkdir '/bptf/backpackbot/node_modules'
npm ERR!  { [Error: EACCES, mkdir '/bptf/backpackbot/node_modules']
npm ERR!   errno: 3,
npm ERR!   code: 'EACCES',
npm ERR!   path: '/bptf/backpackbot/node_modules',
npm ERR!   fstream_type: 'Directory',
npm ERR!   fstream_path: '/bptf/backpackbot/node_modules/prompt',
npm ERR!   fstream_class: 'DirWriter',
npm ERR!   fstream_stack:
npm ERR!    [ '/usr/local/lib/node_modules/npm/node_modules/fstream/lib/writer.js:171:23',
npm ERR!      '/usr/local/lib/node_modules/npm/node_modules/mkdirp/index.js:46:53',
npm ERR!      'Object.oncomplete (fs.js:107:15)' ] }
npm ERR!
npm ERR! Please try running this command again as root/Administrator.


npm ERR! System Linux 3.12.22+
npm ERR! command "/usr/local/bin/node" "/usr/local/bin/npm" "install"
npm ERR! cwd /bptf/backpackbot
npm ERR! node -v v0.10.33
npm ERR! npm -v 1.4.28
npm ERR! path /bptf/backpackbot/node_modules
npm ERR! fstream_path /bptf/backpackbot/node_modules/prompt
npm ERR! fstream_type Directory
npm ERR! fstream_class DirWriter
npm ERR! code EACCES
npm ERR! errno 3
npm ERR! stack Error: EACCES, mkdir '/bptf/backpackbot/node_modules'
npm ERR! fstream_stack /usr/local/lib/node_modules/npm/node_modules/fstream/lib/writer.js:171:23
npm ERR! fstream_stack /usr/local/lib/node_modules/npm/node_modules/mkdirp/index.js:46:53
npm ERR! fstream_stack Object.oncomplete (fs.js:107:15)
npm ERR! Error: EACCES, open 'npm-debug.log'
npm ERR!  { [Error: EACCES, open 'npm-debug.log'] errno: 3, code: 'EACCES', path: 'npm-debug.log' }
npm ERR!
npm ERR! Please try running this command again as root/Administrator.


npm ERR! System Linux 3.12.22+
npm ERR! command "/usr/local/bin/node" "/usr/local/bin/npm" "install"
npm ERR! cwd /bptf/backpackbot
npm ERR! node -v v0.10.33
npm ERR! npm -v 1.4.28
npm ERR! path npm-debug.log
npm ERR! code EACCES
npm ERR! errno 3
npm ERR! stack Error: EACCES, open 'npm-debug.log'
npm ERR! Error: EACCES, mkdir '/bptf/backpackbot/node_modules'
npm ERR!  { [Error: EACCES, mkdir '/bptf/backpackbot/node_modules']
npm ERR!   errno: 3,
npm ERR!   code: 'EACCES',
npm ERR!   path: '/bptf/backpackbot/node_modules',
npm ERR!   fstream_type: 'Directory',
npm ERR!   fstream_path: '/bptf/backpackbot/node_modules/steam-tradeoffers',
npm ERR!   fstream_class: 'DirWriter',
npm ERR!   fstream_stack:
npm ERR!    [ '/usr/local/lib/node_modules/npm/node_modules/fstream/lib/writer.js:171:23',
npm ERR!      '/usr/local/lib/node_modules/npm/node_modules/mkdirp/index.js:46:53',
npm ERR!      'Object.oncomplete (fs.js:107:15)' ] }
npm ERR!
npm ERR! Please try running this command again as root/Administrator.


npm ERR! System Linux 3.12.22+
npm ERR! command "/usr/local/bin/node" "/usr/local/bin/npm" "install"
npm ERR! cwd /bptf/backpackbot
npm ERR! node -v v0.10.33
npm ERR! npm -v 1.4.28
npm ERR! path /bptf/backpackbot/node_modules
npm ERR! fstream_path /bptf/backpackbot/node_modules/steam-tradeoffers
npm ERR! fstream_type Directory
npm ERR! fstream_class DirWriter
npm ERR! code EACCES
npm ERR! errno 3
npm ERR! stack Error: EACCES, mkdir '/bptf/backpackbot/node_modules'
npm ERR! fstream_stack /usr/local/lib/node_modules/npm/node_modules/fstream/lib/writer.js:171:23
npm ERR! fstream_stack /usr/local/lib/node_modules/npm/node_modules/mkdirp/index.js:46:53
npm ERR! fstream_stack Object.oncomplete (fs.js:107:15)
npm ERR!
npm ERR! Additional logging details can be found in:
npm ERR!     /bptf/backpackbot/npm-debug.log
npm ERR! not ok code 0

Link to comment
Share on other sites

Did you actually write into your root directory like this: "/bptf/backpackbot/" ?

 

Don't do that.

 

Go to your home directory ("cd ~") and have all the files there. Then run "npm install"

Link to comment
Share on other sites

Theres no real guide on the automatic github page as to where to put everything

 

I used cd ../.. to move from ~ to /

 

I'll try everything in ~/bptf/backpackbot and I'll tell you the result

 

 
pi@raspberrypi / $: ls
bin   bptf  etc   lib         media  node_latest_armhf.deb  proc  run   selinux  sys  usr
boot  dev   home  lost+found  mnt    opt                    root  sbin  srv      tmp  var
Link to comment
Share on other sites

npm isntall

 works fine under ~/bptf/backpackbot (thank you <3) but now when I use :

node bot

I get the error:

module.js:340
    throw err;
          ^
Error: Cannot find module 'protobuf'
    at Function.Module._resolveFilename (module.js:338:15)
    at Function.Module._load (module.js:280:25)
    at Module.require (module.js:364:17)
    at require (module.js:380:17)
    at Object.<anonymous> (/home/pi/bptf/backpackbot/node_modules/steam/lib/steam_client.js:2:14)
    at Module._compile (module.js:456:26)
    at Object.Module._extensions..js (module.js:474:10)
    at Module.load (module.js:356:32)
    at Function.Module._load (module.js:312:12)
    at Module.require (module.js:364:17)

From one error to the next :'(

Link to comment
Share on other sites

Go to ~/bptf/backpackbot/node_modules/steam/node_modules/ and there should be a protobuf folder. Is it there?

 

Or perhaps the npm install didn't work properly.

 

Otherwise, I really don't know. Installing on RPi is actually quiet a breeze.

Link to comment
Share on other sites

Indeed there is a protobuf folder...

 

This is the contents
addon.cc     COPYING  node_modules  protobuf              protobuf_for_node.h  test
binding.gyp  example  package.json  protobuf_for_node.cc  README.md            wscript
Link to comment
Share on other sites

Yeah there's no build folder for whatever reason. Here's what you should do: start from scratch.

 

Install git:

sudo apt-get update
sudo apt-get install git
Assuming you have node and npm nstalled.

Clone and run the npm install one last time:

cd ~
git clone https://bitbucket.org/srabouin/backpack.tf-automatic.git
cd backpack.tf-automatic/
npm install
Don't forget to clean up the garbage from your root.
Link to comment
Share on other sites

Archived

This topic is now archived and is closed to further replies.

  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...