geryi.blogg.se

Debian git server install
Debian git server install





We are going to modify the fstab file so that this device maps to the usbdrv directory. Now, we are going to edit what is called the file systems table to make the USB drive map into the usbdrv directory Type in: sudo nano /etc/fstab Here is the tricky part.

debian git server install

Mine reads: /dev/sda1: LABEL="GITPI" UUID="6D34-1514" TYPE="vfat" This should be the similar on yours: /dev/sda1 is the USB thumb drive device. now, type in: sudo blkid check out output - we are looking for the USB drive device info, which is easy to identify because we called it GITPI when we initialized it. ssh What we then type in mkdir usbdrv What we are going to set up is a mount point - a way to always map this directory to the USB drive. Wait a few seconds and then ssh back into the Pi. I'm not sure if this matters, but I always leave the wi-fi dongle in the lower USB port and use the upper one for the external USB drive/keyboard/other things. Put the formatted USB drive into the Raspberry Pi. They're both good, but neither one did exactly what I wanted or explained it fully, which is one reason I wanted to write this Instructable. I've used two sources to figure out how to set up GitPi: a guide by Thomas Loughlin and one by Monkey Hacks. Check out the Introduction to GitHub Instructable if this is not the case. You should already have Git installed on your laptop and know the fundamentals of how to use it. My example uses the Mac OS, but can be extended to other platforms as well. This Instructable will cover setting up your Raspberry Pi as a Git server with repositories saved onto an external USB thumb drive.

debian git server install

However, using the Raspberry Pi, you can set up your own Git server on your home network. Nor do we want to pay for the service of private hosting. A lot of us have code-in-progress that we want to properly put onto the Git system, but ins't ready for public consumption. But, what if you want to keep your repositories private? The usual answer is that you have to pay for this service.

debian git server install

For those wanting to get started with GitHub, I've written this Instructable: Introduction to GitHub. Git is usually used in synchronization with GitHub - the former is a source code management system and the latter is a website where you can share/contribute Git repositories with the larger internet community.







Debian git server install