Coder Social home page Coder Social logo

hcs's Introduction

Home Cloud Server

Build your own Home Cloud Server file management system

wercker status

Format Partitions Dedicated To HCS

Follow the instructions:

  1. Print current partition information: lsblk
  2. Attach your first new drive to the HCS host machine
  3. Re-print current partition information: lsblk
  4. Find the new drive location (e.g., /dev/sda1)
  5. Partition the new drive fdisk /dev/sda1
    • Enter p to create a new partition
    • Press the enter key to accept each of the default values presented
    • Enter w to save the partition
  6. Format the new partition, enter mkfs.ext4 -L tray1 /dev/sda1
  7. vim etc/fstab
  8. Append LABEL=TRAY1 /tray1 ext4 defaults 0 2 to the file
  9. Check mounted paritions (enter mount) ... you should NOT see tray1 yet
  10. Mount the new drive, enter mount -a
  11. Check mounted partitions (enter mount) ... you SHOULD see tray1 now
  12. Confirm your new drive space, enter lsblk
  13. Repeat for subsequent drives.

Setup HCS Disk Health Check jobs And Tray Propagation Jobs

Follow the instructions:

  1. Configure SSMTP on your HCS host machine. SSMTP configuration management located at cd ~/../../etc/ssmtp/ssmtp.config. You can paste the example ssmtp.config below.
  2. Update each .sh script in the hcs/jobs directory with your preferred To and From email addresses.
  3. cd into the hcs/jobs directory and run sudo bash relocateHCSjobs.sh
  4. cd into /etc/cron.daily run crontab -e and append the following
0 0 * * * /etc/cron.daily/backupUse.sh
0 0 * * * /etc/cron.daily/diskSpaceInfoCheck.sh
0 0 * * * /etc/cron.daily/trayOneUse.sh
0 0 * * * /etc/cron.daily/trayTwoUse.sh
0 0 * * * /etc/cron.daily/trayThreeUse.sh
0 0 * * * /etc/cron.daily/trayFourUse.sh

7.Hit the ESC key and type :wq

8.cd into /etc/cron.weekly run crontab -e and append the following

0 0 * * * /etc/cron.weekly/mvTrayFourToBackup.sh
0 0 * * * /etc/cron.weekly/mvTrayOneToTrayTwo.sh
0 0 * * * /etc/cron.weekly/mvTrayTwoToTrayThree.sh

7.Hit the ESC key and type :wq

8.cd into /etc/cron.monthly run crontab -e and append the following

0 0 * * * /etc/cron.weekly/mvTrayThreeToTrayFour.sh
SSMTP Configs for your ssmtp.config file:
# ssmtp.config:
root=<YOUR EMAIL ADDRESS>
mailhub=smtp.gmail.com:587 
rewriteDomain=gmail.com 
AuthUser=<YOUR EMAIL ADDRESS>
AuthPass=<YOUR PASSWORD> 
FromLineOverride=YES 
UseStartTLS=YES 
UeTLS=YES

Personalize Your Home Cloud Server (HCS)

Follow the instructions:

  1. Navigate to hcs/config directory.
  2. Give the "hcsName" property a new value.
  3. Grant IPs access to your HCS by updating the "whitelist" property.

#!/bin/sh

git clone https://github.com/mgeatz/AEM-Weather-App git clone https://github.com/mgeatz/Alexa-Blue-Jean-Skill git clone https://github.com/mgeatz/hcs.git git clone https://github.com/mgeatz/Java-API.git git clone https://github.com/mgeatz/java-blockchain.git git clone https://github.com/mgeatz/LemurCode.git git clone https://github.com/mgeatz/michaelgeatz.git git clone https://github.com/mgeatz/phonegap-app-developer.git git clone https://github.com/mgeatz/RESTUP.git git clone https://github.com/mgeatz/skolvikes.git git clone https://github.com/mgeatz/up.git

hcs's People

Contributors

mgeatz avatar

Watchers

 avatar

hcs's Issues

refactor front end to spa

Refactor redundant html by leveraging SPA methodology. Do not use a framework. Vanilla Javascript or Jquery only ... this app is not intended to rely on front end dependencies.

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.