{"id":542,"date":"2025-02-06T13:59:11","date_gmt":"2025-02-06T13:59:11","guid":{"rendered":"https:\/\/blog.nanitechtips.org\/?p=542"},"modified":"2025-02-06T13:59:12","modified_gmt":"2025-02-06T13:59:12","slug":"build-a-github-server-in-your-home-lab","status":"publish","type":"post","link":"https:\/\/blog.nanitechtips.org\/?p=542","title":{"rendered":"Build a GitHub server in your home lab:"},"content":{"rendered":"\n<h3 class=\"wp-block-heading\">Step 1: Set Up Your Server<\/h3>\n\n\n\n<ol start=\"1\" class=\"wp-block-list\">\n<li><strong>Choose Your Hardware<\/strong>: Select a server that meets your requirements (e.g., CPU, RAM, storage). A used Lenovo ThinkServer PC or a Raspberry Pi can be good options.<\/li>\n\n\n\n<li><strong>Install an Operating System<\/strong>: Install a Linux distribution like Ubuntu Server. Follow the installation instructions specific to your chosen OS.<\/li>\n<\/ol>\n\n\n\n<h3 class=\"wp-block-heading\">Step 2: Install Git<\/h3>\n\n\n\n<ol start=\"1\" class=\"wp-block-list\">\n<li><strong>Update Your System<\/strong>: Run <code>sudo apt update<\/code> and <code>sudo apt upgrade<\/code> to ensure your system is up-to-date.<\/li>\n\n\n\n<li><strong>Install Git<\/strong>: Install Git using the command \n<ul class=\"wp-block-list\">\n<li><code>sudo apt install git<\/code>.<\/li>\n<\/ul>\n<\/li>\n<\/ol>\n\n\n\n<h3 class=\"wp-block-heading\">Step 3: Create a Dedicated Git User<\/h3>\n\n\n\n<ol start=\"1\" class=\"wp-block-list\">\n<li><strong>Create a New User<\/strong>: Run <code>sudo adduser git<\/code> to create a new user for Git operations.<\/li>\n\n\n\n<li><strong>Set Up SSH Keys<\/strong>: Generate an SSH key pair for the <code>git<\/code> user using \n<ul class=\"wp-block-list\">\n<li><code>sudo -i -u git ssh-keygen<\/code>. <\/li>\n<\/ul>\n<\/li>\n\n\n\n<li>Follow the prompts to create the key<\/li>\n<\/ol>\n\n\n\n<p class=\"wp-block-paragraph\"><\/p>\n","protected":false},"excerpt":{"rendered":"<p>Step 1: Set Up Your Server Step 2: Install Git Step 3: Create a Dedicated Git User<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[81],"tags":[174],"class_list":["post-542","post","type-post","status-publish","format-standard","hentry","category-tutorials","tag-github"],"aioseo_notices":[],"featured_image_urls":{"full":"","thumbnail":"","medium":"","medium_large":"","large":"","1536x1536":"","2048x2048":""},"author_info":{"info":["praveen@nanitechtips.org"]},"category_info":"<a href=\"https:\/\/blog.nanitechtips.org\/?cat=81\" rel=\"category\">Tutorials<\/a>","tag_info":"Tutorials","comment_count":"0","jetpack_featured_media_url":"","_links":{"self":[{"href":"https:\/\/blog.nanitechtips.org\/index.php?rest_route=\/wp\/v2\/posts\/542","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/blog.nanitechtips.org\/index.php?rest_route=\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/blog.nanitechtips.org\/index.php?rest_route=\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/blog.nanitechtips.org\/index.php?rest_route=\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/blog.nanitechtips.org\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=542"}],"version-history":[{"count":1,"href":"https:\/\/blog.nanitechtips.org\/index.php?rest_route=\/wp\/v2\/posts\/542\/revisions"}],"predecessor-version":[{"id":543,"href":"https:\/\/blog.nanitechtips.org\/index.php?rest_route=\/wp\/v2\/posts\/542\/revisions\/543"}],"wp:attachment":[{"href":"https:\/\/blog.nanitechtips.org\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=542"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/blog.nanitechtips.org\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=542"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/blog.nanitechtips.org\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=542"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}