How to install gitlab on raspberry pi2/17/2023 ![]() Fail to find anything that looks like what you just push □.Go to the USB and open everything your eyes see □. ![]() ![]() Turn off the Raspberry Pi and unplug the USB.If you are like me and you want to be sure your stuff is really on that USB and make sure if something happens with your Pi you can just plug the USB on any laptop and you'll have access to everything then stay with me!□ git extension to hold the repository, do (replace projectname by the name you want to give your repository) Initialize a Git repository in the folder using git init.īack to the Pi □, create a folder with the. Now go to your laptop where you "work" **cough cough** □, you can create a blank folder to start a new project or you already have one full of juice □, the step is the same. To save and close the file Ctrl-x -> Y -> return. dev/sda1 /home/pi/usbdrv vfat uid=pi,gid=pi,umask=0022,sync,auto,nosuid,rw,nouser 0 0 Let's tell the Pi that our USB contents should go to the created "usbdrv" directory by editing the "systems table" file, doĪ file should have popped up in a text editor, in the end of the file add this line (my USB was at /dev/sda1 as you can see in the output of sudo blkid, make sure to replace by whatever you got): When I formatted my USB I gave it the label "GITPI" so the last line of the above block corresponds to the information I'm looking for, you should have something similar for yours. ![]() To do that first let's get the USB info, doĮnter fullscreen mode Exit fullscreen mode To create the directory doĪnd now we need to map the USB to it. Now we are going to create and assign a directory to this USB so every time we want to access our projects we know exactly where they are □. Plug your USB drive into the Raspberry Pi (make sure it's formatted as FAT) and turn the Pi back on and SSH into it. First we are going to make sure everything is up-to-date, SSH into your Raspberry Pi using your laptop (or use VNC Viewer and open the terminal in the desktop). 4-Add/Commit/Push into your Raspberry Piīefore we start, I'm assuming you already have setup your Pi and have SSH enabled.This way you can have your ( very important highly secret □) projects backed-up and accessible without relying on external agents (like GitHub, GitLab, etc) in 5 simple steps: ![]() In this beginner's friendly tutorial we will be setting up a Raspberry Pi (aka Pi) to host your very own private Git server that will be staying in the comfort of your home □. ![]()
0 Comments
Leave a Reply.AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |