Jump to content
Sign in to follow this  
Fidgetspinner

casinocoind installation on Ubuntu 16.04

Recommended Posts

@Daniel Keller, @Wenusch :

There are two different installation guides on setting up casinocoind.

https://github.com/casinocoin/casinocoind/wiki/Ubuntu-16-Installation
 

and 

https://casinocoin.org/build/tutorial-csc-install-casinocoind.html

IMHO, the github guide is more complete/accurate. The one on the casinocoin.org site skips a couple of initial steps and also possibly creates an unnecessary casinocoin user.

Also, there would be no need to create such a user with adduser, which would entail giving it a password. useradd  with shell /bin/false may have been better, since it doesn't even need a home folder.

If we are anyway giving permissions as ubuntu:casinocoin, then wouldn't ubuntu:ubuntu suffice, without creating this user at all?

Thoughts?

Share this post


Link to post
Share on other sites

The how-to in the dev portal runs the daemon with a user that has no extra privileges and is not part of sudoers, that why we use it. 

What are the steps the tutorial skips? 

Share this post


Link to post
Share on other sites
1 hour ago, Daniel Keller said:

The how-to in the dev portal runs the daemon with a user that has no extra privileges and is not part of sudoers, that why we use it. 

What are the steps the tutorial skips? 

If it requires a sudo user then the steps to add the sudo user  (say ubuntu)

ubuntu ALL=(ALL) NOPASSWD:ALL

to the sudoers file need to be included in the dev guide

else

sudo chown ubuntu:casinocoin /var/log/casinocoind
sudo chown -R ubuntu:casinocoin /var/lib/casinocoind
sudo chown ubuntu:casinocoin /var/log/casinocoind
sudo usermod -aG casinocoin ubuntu
sudo usermod -aG casinocoin casinocoin
sudo chown -R ubuntu:casinocoin /var/lib/casinocoind/db

shouldn't be needed. They are either redundant, or be replaced with casinocoin:casinocoin, which should be added with useradd casinocoin -s /bin/false , since it doesn't require a home directory at all, and for all practical purposes will be a system user only, and not a login user. Anyway, the port bindings are high, so as you said, it can be a regular user.

Edited by Fidgetspinner

Share this post


Link to post
Share on other sites
4 minutes ago, Daniel Keller said:

Just to have a record here, @Fidgetspinner and I are playing around with this.

 

3 minutes ago, Fidgetspinner said:

Yes, and we'll get back with some results, hopefully!

Great!!!... You guys keep going!!...  :drinks: Because I know nothing... :sarcastic:

 

  • Haha 1

Share this post


Link to post
Share on other sites
12 minutes ago, LeGonze said:

 

Great!!!... You guys keep going!!...  :drinks: Because I know nothing... :sarcastic:

 

Some Linux stuff.

Share this post


Link to post
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
Sign in to follow this  

×