ENiGMA½ BBS on EL7: Difference between revisions

From Alteeve Wiki
Jump to navigation Jump to search
No edit summary
No edit summary
Line 11: Line 11:
# Install stuff
# Install stuff
yum -y groupinstall development  
yum -y groupinstall development  
yum -y install httpd gcc gcc-c++ mlocate vim nodejs npm nodejs-async
yum -y install httpd gcc gcc-c++ mlocate vim telnet nodejs npm nodejs-async


# Enable and start apache
# Enable and start apache
Line 20: Line 20:
firewall-cmd --add-service http  
firewall-cmd --add-service http  
firewall-cmd --add-service https  
firewall-cmd --add-service https  
firewall-cmd --add-port=8888-8889/tcp
firewall-cmd --runtime-to-permanent
firewall-cmd --runtime-to-permanent
</syntaxhighlight>
</syntaxhighlight>
Line 28: Line 29:
# Check here for updates: https://github.com/creationix/nvm
# Check here for updates: https://github.com/creationix/nvm
curl -o- https://raw.githubusercontent.com/creationix/nvm/v0.30.1/install.sh | bash
curl -o- https://raw.githubusercontent.com/creationix/nvm/v0.30.1/install.sh | bash
reset
cd /var/www/html/enigma-bbs/
nvm install 4.2.2
nvm use 4.2.2
npm install
</syntaxhighlight>
</syntaxhighlight>


Line 38: Line 44:
cd /var/www/html
cd /var/www/html
npm -g install npm@latest
npm -g install npm@latest
npm install
</syntaxhighlight>
</syntaxhighlight>


Line 75: Line 80:
/var/www/html/enigma-bbs/main.js --config /var/www/config.hjson  
/var/www/html/enigma-bbs/main.js --config /var/www/config.hjson  
</syntaxhighlight>
</syntaxhighlight>
<syntaxhighlight lang="text">
 
module.js:340
It won't return to shell, that's fine. Test connection.
    throw err;
 
          ^
In another terminal, <span class="code">telnet</span> to port <span class="code">8888</span>.
Error: Cannot find module 'async'
 
    at Function.Module._resolveFilename (module.js:338:15)
<syntaxhighlight lang="bash">
    at Function.Module._load (module.js:280:25)
    at Module.require (module.js:364:17)
    at require (module.js:380:17)
    at Object.<anonymous> (/var/www/html/enigma-bbs/core/config.js:8:16)
    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)
</syntaxhighlight>
</syntaxhighlight>
>_<


= References =
= References =

Revision as of 05:49, 2 January 2016

 AN!Wiki :: How To :: ENiGMA½ BBS on EL7

Warning: This is just a raw dump on notes. Built on internal VMs for now.

CentOS 7

# Setup our internal repo (to be moved to external repo)
curl http://192.168.122.231/repo/el7/alteeve.repo > /etc/yum.repos.d/alteeve.repo

# Install stuff
yum -y groupinstall development 
yum -y install httpd gcc gcc-c++ mlocate vim telnet nodejs npm nodejs-async

# Enable and start apache
systemctl start httpd
systemctl enable httpd

# Open http
firewall-cmd --add-service http 
firewall-cmd --add-service https 
firewall-cmd --add-port=8888-8889/tcp
firewall-cmd --runtime-to-permanent

Install NVM:

# Check here for updates: https://github.com/creationix/nvm
curl -o- https://raw.githubusercontent.com/creationix/nvm/v0.30.1/install.sh | bash
reset
cd /var/www/html/enigma-bbs/
nvm install 4.2.2
nvm use 4.2.2
npm install

Browse to http://enigma-bbs, verify default apache page is visible.

Download ENiGMA½:

mkdir /var/www/html
cd /var/www/html
npm -g install npm@latest

Setup SSH:

mkdir /var/www/html/misc
openssl genrsa -des3 -out ./misc/ssh_private_key.pem 8191

Initial config:

vim /var/www/config.hjson
general: {
  boardName: AN!BBS
}
servers: {
  ssh: {
    privateKeyPass: <passphrase used in keygen>
    enabled: true /* set to false to disable the SSH server */
  }
}
messages: {
  areas: [
    { name: "anvil_discusssion", desc: "Anvil! Discussion", groups: [ "users" ] }
  ]
}

Start it up;

/var/www/html/enigma-bbs/main.js --config /var/www/config.hjson

It won't return to shell, that's fine. Test connection.

In another terminal, telnet to port 8888.

References

 

Any questions, feedback, advice, complaints or meanderings are welcome.
Alteeve's Niche! Enterprise Support:
Alteeve Support
Community Support
© Alteeve's Niche! Inc. 1997-2024   Anvil! "Intelligent Availability®" Platform
legal stuff: All info is provided "As-Is". Do not use anything here unless you are willing and able to take responsibility for your own actions.