Skip to content

D6V6S/NAS_setup

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

5 Commits
 
 
 
 
 
 
 
 

Repository files navigation

Create Git repository on Synology NAS

PRE SET UP

NAS

  1. Lan cable mast be connected to first ethernet port(eth0).
  2. Install app "Git Server" to NAS. Add permission for users in "Git Server".
  3. Create folder "git" and set up permission for users.
  4. Open SSH access to NAS. You can change the standard port (22) to your own.
  5. Create access by SSH KEY.
  6. Connect to server by SSH and install PM2 by command "sudo npm install pm2 -g".
  7. Copy Scripts to NAS, make executable.
    • "/volume1/git/CreateRepo.sh" + "sudo chmod +x CreateRepo.sh"
    • "/volume1/git/CreateAutoStart.sh" + "sudo chmod +x CreateAutoStart.sh"
  8. Run script "CreateAutoStart.sh"
    • "sudo /volume1/git/CreateAutoStart.sh"

PC

  1. Install and set up GitHub CLI on PC.

USE

  1. Start script on NAS "/volume1/git/CreateRepo.sh".
  2. Enter name of new project.
    • Created file "project name-ForPC.sh"
    • Created file "project name-autostart.sh" in folder "/volume1/git/scripts", to start web site when NAS will be reboot.
  3. Copy file "/volume1/git/project name-ForPC.sh" to PC projects folder.
  4. Run script "project name-ForPC.sh"
    • Created and copy new public repository on GitHub with name "project name";
    • Created "README.md" file;
    • Add connect info about NAS to Git config file;
    • Make first commit and push to NAS (git push -u nas master) and GitHub (git push -u origin master).

Links

https://mariushosting.com/synology-basic-command-lines-for-dsm-7/
https://www.taniarascia.com/how-to-create-and-use-bash-scripts/
https://gist.github.com/Nilpo/8ed5e44be00d6cf21f22
https://gist.github.com/bsara/5c4d90db3016814a3d2fe38d314f9c23

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Contributors

Languages