Hosting guide to hcoop

NOTE: This guide is still very much incomplete.

This website is hosted at hcoop.net which is no-profit corporation and maintained by democratically elected community.

Getting membership

apply for membership by filling up the membership form. Remember the password displayed after submitting the form which will be useful to access your account.

Make new members payment

make a payment through paypal or google checkout from “new members payment page” and wait for payment to be processed. you will receive accepted email soon. once this process is done move on to setting up server which needs linux/unix familiarity. here I try to put the step by step as reference for myself and anyone who is starting setup. Infact there is very good wiki you should check out. This is guide mostly summary of that, agiain please remember not a completed one, if any problems you should consult the wiki.

Setup your hosting

Password less login

  • ssh to ssh.hcoop.net (with the above password., or ask for help from admins[at]hcoop.net)

  • change the password

  • I tried to add id rsa.pub ()

  • kerbeos client and kinit (token)

    • install from terminal
sudo apt-get install krb5-user libpam-krb5 libpam-ccreds auth-client-config

File system permissions (AFS).

My five steps.

  • give all permissions to .public

  • get all permissions for myself

  • give only read and list under web for public

  • take off all permissions to other users on the system
    • This may be needed to prevent fellow users on the system poke into your stuff
chmod 700 ~/*

be simple and trust me dont mess with them.

Main fs commands to note

  • grant permission to <USERNAME> to a directory DIR in your $HOME. Use
fs setacl -clear ~/DIR <USERNAME> all
fsr setacl -clear ~/DIR <USERNAME> all # r stands for recursive
  • give permissions to public for public html
fsr sa ~/public_html system:user read # listing and reading

Here is what I used exactly.

fsr sa ~ yagnesh all        #give myself every rule
fsr sa ~ system:anyuser l    # any user can list but cant read yet
fsr sa ~/web system:anyuser read # any user can read(lr) my webroot
chmod 700 *             # any other user cant poke into my Dir
fsr sa ~/.public system:anyuser all # .public for domtool access (I did not put any thing the)

Changing name servers of A domain from registrar (eg: godaddy)

  • hcoop.net nameservers
NS1.HCOOP.NET
NS2.HCOOP.NET
NS3.HCOOP.NET
  • hcoop.net IP since I read the user manual by skimming. I missed this one had to search for lot time.
69.90.123.68
  • whois lookup

Process domain domtool to get start (bit hairy)

Database creation

dbtool can be used to create new databases. First add username to mysql then create a DB

dbtool mysql adduser

Enter your login password dbtool creates useraccount in mysql. Then simply create a DB

dbtool mysql createdb test

Username test will be created for you.

Access databases

By the your databases are connected from host “mysql” not at “localhost”. From command line get into the mysql interactive session

mysql -p -h mysql DATABASE_NAME

Dropping tables

Droping tables are bit tricky. at first you are not give access to drop a DB or table with in a DB.

Pitfalls

Keep in mind that “your token may get expired”