{"id":3885,"date":"2023-07-27T09:58:53","date_gmt":"2023-07-27T09:58:53","guid":{"rendered":"https:\/\/arzhost.com\/blogs\/?p=3885"},"modified":"2026-05-22T12:32:01","modified_gmt":"2026-05-22T07:32:01","slug":"how-to-set-up-a-bitcoin-server","status":"publish","type":"post","link":"https:\/\/arzhost.com\/blogs\/how-to-set-up-a-bitcoin-server\/","title":{"rendered":"Step by Step Guide, How to Set Up a Bitcoin Server?"},"content":{"rendered":"<p>How to Set Up a Bitcoin Server? The <a href=\"https:\/\/en.wikipedia.org\/wiki\/Bitcoin\" rel=\"nofollow noopener\" target=\"_blank\">Bitcoin<\/a> Unlimited project is currently generating a lot of attention, and people have been asking how they can become involved.<\/p>\n<p>Operating a full Server for Bitcoin Unlimited is a fantastic way to assist with the project. You can learn <span style=\"color: #000000;\"><strong>How to Set Up a Bitcoin Server?<\/strong> <\/span>On an inexpensive virtual server from this post.<\/p>\n<div id=\"ez-toc-container\" class=\"ez-toc-v2_0_83 ez-toc-wrap-center counter-hierarchy ez-toc-counter ez-toc-grey ez-toc-container-direction\">\n<div class=\"ez-toc-title-container\">\n<p class=\"ez-toc-title\" style=\"cursor:inherit\">Table of Contents<\/p>\n<span class=\"ez-toc-title-toggle\"><a href=\"#\" class=\"ez-toc-pull-right ez-toc-btn ez-toc-btn-xs ez-toc-btn-default ez-toc-toggle\" aria-label=\"Toggle Table of Content\"><span class=\"ez-toc-js-icon-con\"><span class=\"\"><span class=\"eztoc-hide\" style=\"display:none;\">Toggle<\/span><span class=\"ez-toc-icon-toggle-span\"><svg style=\"fill: #000000;color:#000000\" xmlns=\"http:\/\/www.w3.org\/2000\/svg\" class=\"list-377408\" width=\"20px\" height=\"20px\" viewBox=\"0 0 24 24\" fill=\"none\"><path d=\"M6 6H4v2h2V6zm14 0H8v2h12V6zM4 11h2v2H4v-2zm16 0H8v2h12v-2zM4 16h2v2H4v-2zm16 0H8v2h12v-2z\" fill=\"currentColor\"><\/path><\/svg><svg style=\"fill: #000000;color:#000000\" class=\"arrow-unsorted-368013\" xmlns=\"http:\/\/www.w3.org\/2000\/svg\" width=\"10px\" height=\"10px\" viewBox=\"0 0 24 24\" version=\"1.2\" baseProfile=\"tiny\"><path d=\"M18.2 9.3l-6.2-6.3-6.2 6.3c-.2.2-.3.4-.3.7s.1.5.3.7c.2.2.4.3.7.3h11c.3 0 .5-.1.7-.3.2-.2.3-.5.3-.7s-.1-.5-.3-.7zM5.8 14.7l6.2 6.3 6.2-6.3c.2-.2.3-.5.3-.7s-.1-.5-.3-.7c-.2-.2-.4-.3-.7-.3h-11c-.3 0-.5.1-.7.3-.2.2-.3.5-.3.7s.1.5.3.7z\"\/><\/svg><\/span><\/span><\/span><\/a><\/span><\/div>\n<nav><ul class='ez-toc-list ez-toc-list-level-1 ' ><li class='ez-toc-page-1 ez-toc-heading-level-2'><a class=\"ez-toc-link ez-toc-heading-1\" href=\"https:\/\/arzhost.com\/blogs\/how-to-set-up-a-bitcoin-server\/#1_Sign_in_to_your_chosen_VPS_provider\" >1: Sign in to your chosen VPS provider<\/a><\/li><li class='ez-toc-page-1 ez-toc-heading-level-2'><a class=\"ez-toc-link ez-toc-heading-2\" href=\"https:\/\/arzhost.com\/blogs\/how-to-set-up-a-bitcoin-server\/#2_Establish_a_little_%22droplet%22_or_VPS\" >2: Establish a little \"droplet\" or VPS<\/a><\/li><li class='ez-toc-page-1 ez-toc-heading-level-2'><a class=\"ez-toc-link ez-toc-heading-3\" href=\"https:\/\/arzhost.com\/blogs\/how-to-set-up-a-bitcoin-server\/#3_Keep_your_new_server_secure\" >3: Keep your new server secure<\/a><\/li><li class='ez-toc-page-1 ez-toc-heading-level-2'><a class=\"ez-toc-link ez-toc-heading-4\" href=\"https:\/\/arzhost.com\/blogs\/how-to-set-up-a-bitcoin-server\/#4_Install_the_software_for_Bitcoin_Unlimited\" >4: Install the software for Bitcoin Unlimited<\/a><\/li><li class='ez-toc-page-1 ez-toc-heading-level-2'><a class=\"ez-toc-link ez-toc-heading-5\" href=\"https:\/\/arzhost.com\/blogs\/how-to-set-up-a-bitcoin-server\/#5_Make_a_user_for_bitcoin\" >5: Make a user for bitcoin<\/a><\/li><li class='ez-toc-page-1 ez-toc-heading-level-2'><a class=\"ez-toc-link ez-toc-heading-6\" href=\"https:\/\/arzhost.com\/blogs\/how-to-set-up-a-bitcoin-server\/#6_Configure_your_bitcoin_logs_to_rotate_logs\" >6: Configure your bitcoin logs to rotate logs<\/a><\/li><li class='ez-toc-page-1 ez-toc-heading-level-2'><a class=\"ez-toc-link ez-toc-heading-7\" href=\"https:\/\/arzhost.com\/blogs\/how-to-set-up-a-bitcoin-server\/#8_Set_up_the_swap_space\" >8: Set up the swap space.<\/a><\/li><li class='ez-toc-page-1 ez-toc-heading-level-2'><a class=\"ez-toc-link ez-toc-heading-8\" href=\"https:\/\/arzhost.com\/blogs\/how-to-set-up-a-bitcoin-server\/#9_Set_up_the_bitcoin_daemon_to_auto-run\" >9: Set up the bitcoin daemon to auto-run.<\/a><\/li><li class='ez-toc-page-1 ez-toc-heading-level-2'><a class=\"ez-toc-link ez-toc-heading-9\" href=\"https:\/\/arzhost.com\/blogs\/how-to-set-up-a-bitcoin-server\/#10_Optional_Configure_ssh_user_logins\" >10:(Optional) Configure ssh user logins.<\/a><\/li><\/ul><\/nav><\/div>\n<h2><span class=\"ez-toc-section\" id=\"1_Sign_in_to_your_chosen_VPS_provider\"><\/span><strong>1: Sign in to your chosen VPS provider<\/strong><span class=\"ez-toc-section-end\"><\/span><\/h2>\n<p>Since I&#8217;m using Digital Ocean, some of the details may apply to them. However, other <span style=\"color: #0000ff;\"><a style=\"color: #0000ff;\" href=\"https:\/\/www.arzhost.com\/vps\/\">VPS server providers<\/a><\/span> will offer comparable functionality.<\/p>\n<p>Pick a service provider that fits your needs and price range. Since saving money is the main focus of this post. You should be able to get a tiny VPS for less than $10 per month.<\/p>\n<h2><strong>2: Establish a little &#8220;droplet&#8221; or VPS<\/strong><\/h2>\n<p>I advise using a &#8220;droplet&#8221; bitcoin server with 1GB RAM and 20GB of storage. If money is truly tight. You could use only 512 MB of RAM, although that would cause a lot of swapping.<\/p>\n<p>It will be simpler later on if you chose Ubuntu 16.04 as the operating system for your VPS because bitcoin unlimited is simple to install on Ubuntu.<\/p>\n<h2><span class=\"ez-toc-section\" id=\"3_Keep_your_new_server_secure\"><\/span><strong>3: Keep your new server secure<\/strong><span class=\"ez-toc-section-end\"><\/span><\/h2>\n<p>Log in as root to your new virtual server and you can learn How to Set Up a Bitcoin Server? Your VPS provider will have a different method for doing this. Typically, ssh or a remote console window can be used to log in.<\/p>\n<p><iframe title=\"YouTube video player\" src=\"https:\/\/www.youtube.com\/embed\/lAW5fqkL-Fo\" width=\"560\" height=\"315\" frameborder=\"0\" allowfullscreen=\"allowfullscreen\"><\/iframe><\/p>\n<p><u>The first thing you should do when you arrive at the command line is secure it. Setting up some firewall rules will be our first step.<\/u><\/p>\n<ol>\n<li><code># ufw allow ssh<\/code><\/li>\n<li><code># ufw allow 8333<\/code><\/li>\n<li><code># ufw default deny incoming<\/code><\/li>\n<li><code># ufw default allows outgoing<\/code><\/li>\n<li><code># ufw enable<\/code><\/li>\n<\/ol>\n<p>With the exception of bitcoin and remote logins, these rules instruct your system to ignore all incoming network traffic.<\/p>\n<h2><span class=\"ez-toc-section\" id=\"4_Install_the_software_for_Bitcoin_Unlimited\"><\/span><strong>4: Install the software for Bitcoin Unlimited<\/strong><span class=\"ez-toc-section-end\"><\/span><\/h2>\n<p><u>It&#8217;s simple if you&#8217;re using Ubuntu:<\/u><\/p>\n<ol>\n<li><code># apt-get install software-properties-common<\/code><\/li>\n<li><code># add-apt-repository PPA: bitcoin-unlimited\/bu-PPA<\/code><\/li>\n<li><code># apt-get update<\/code><\/li>\n<li><code># apt-get install bitcoin<\/code><\/li>\n<\/ol>\n<p>Instead, check the installation instructions on this page if you&#8217;re not using Ubuntu.<\/p>\n<h2><span class=\"ez-toc-section\" id=\"5_Make_a_user_for_bitcoin\"><\/span><strong>5: Make a user for bitcoin<\/strong><span class=\"ez-toc-section-end\"><\/span><\/h2>\n<p><span data-sheets-value=\"{&quot;1&quot;:2,&quot;2&quot;:&quot;how to build a bitcoin server&quot;}\" data-sheets-userformat=\"{&quot;2&quot;:18947,&quot;3&quot;:{&quot;1&quot;:0},&quot;4&quot;:{&quot;1&quot;:2,&quot;2&quot;:16573901},&quot;12&quot;:0,&quot;14&quot;:{&quot;1&quot;:2,&quot;2&quot;:16711680},&quot;17&quot;:1}\"><span style=\"color: #0000ff;\"><a style=\"color: #0000ff;\" href=\"https:\/\/arzhost.com\/blogs\/how-to-build-a-bitcoin-server\/\">How to build a bitcoin server<\/a><\/span>, <\/span>We&#8217;ll create a bitcoin user account and grant it access to &#8220;sudo&#8221; so that, if you like, you can perform some system administration tasks from the bitcoin user.<\/p>\n<ol>\n<li><code># adduser bitcoin<\/code><\/li>\n<li><code># usermod -a -G sudo bitcoin<\/code><\/li>\n<\/ol>\n<p><a href=\"https:\/\/arzhost.com\/blogs\/wp-content\/uploads\/2023\/07\/Configure-your-bitcoin-logs-to-rotate-logs.png\"><img fetchpriority=\"high\" decoding=\"async\" class=\"alignnone  wp-image-17785\" src=\"https:\/\/arzhost.com\/blogs\/wp-content\/uploads\/2023\/07\/Configure-your-bitcoin-logs-to-rotate-logs-300x157.png\" alt=\"Configure your bitcoin logs to rotate logs\" width=\"950\" height=\"497\" srcset=\"https:\/\/arzhost.com\/blogs\/wp-content\/uploads\/2023\/07\/Configure-your-bitcoin-logs-to-rotate-logs-300x157.png 300w, https:\/\/arzhost.com\/blogs\/wp-content\/uploads\/2023\/07\/Configure-your-bitcoin-logs-to-rotate-logs-1024x536.png 1024w, https:\/\/arzhost.com\/blogs\/wp-content\/uploads\/2023\/07\/Configure-your-bitcoin-logs-to-rotate-logs-768x402.png 768w, https:\/\/arzhost.com\/blogs\/wp-content\/uploads\/2023\/07\/Configure-your-bitcoin-logs-to-rotate-logs.png 1200w\" sizes=\"(max-width: 950px) 100vw, 950px\" \/><\/a><\/p>\n<h2><span class=\"ez-toc-section\" id=\"6_Configure_your_bitcoin_logs_to_rotate_logs\"><\/span><strong>6: Configure your bitcoin logs to rotate logs<\/strong><span class=\"ez-toc-section-end\"><\/span><\/h2>\n<p>By doing this How to Set Up a Bitcoin Server? you can prevent your logs from becoming too large and taking up all of your disc space.<\/p>\n<p><strong><u>New log rotation file creation:<\/u><\/strong><\/p>\n<ul>\n<li><code># nano \/etc\/logrotate. d\/bitcoin-debug<\/code><\/li>\n<\/ul>\n<p><strong><u>Take part in it:<\/u><\/strong><\/p>\n<ul>\n<li><code>\/home\/bitcoin\/.bitcoin\/debug.log<\/code><\/li>\n<\/ul>\n<p>{<\/p>\n<p>rotate 5<\/p>\n<p>copytruncate<\/p>\n<p>daily<\/p>\n<p>missingok<\/p>\n<p>notifempty<\/p>\n<p>compress<\/p>\n<p>delay compress<\/p>\n<p>shared scripts<\/p>\n<p>}<\/p>\n<p><strong>7: Set up bitcoin.<\/strong><\/p>\n<p>Your Server will be configured to function as a &#8220;pruning&#8221; Server. It will simply maintain the most current portions of the blockchain. So it doesn&#8217;t need to have the entire 100GB blockchain.<\/p>\n<ul>\n<li><code># su - bitcoin<\/code><\/li>\n<li><code>$ mkdir. bitcoin<\/code><\/li>\n<li><code>$ cd. bitcoin<\/code><\/li>\n<li><code>$ nano bitcoin. Conf<\/code><\/li>\n<\/ul>\n<p><strong><u>To the file, add:<\/u><\/strong><\/p>\n<ul>\n<li><code>prune=15000<\/code><\/li>\n<\/ul>\n<p>In order to log out of the bitcoin user and reclaim root privileges, save the file and press Control-D.<\/p>\n<h2><span class=\"ez-toc-section\" id=\"8_Set_up_the_swap_space\"><\/span><strong>8: Set up the swap space.<\/strong><span class=\"ez-toc-section-end\"><\/span><\/h2>\n<p>A little bit more than 1GB of memory is required to run a complete bitcoin Server. Since the Server we built only has 1GB, we&#8217;ll use swap space to build some more &#8220;virtual memory.&#8221;<\/p>\n<ul>\n<li><code># fallocate -l 1g \/swap1.swap<\/code><\/li>\n<li><code># chmod 0600 \/swap1.swap<\/code><\/li>\n<li><code># mkswap \/swap1.swap<\/code><\/li>\n<li><code># swapon \/swap1.swap<\/code><\/li>\n<li><code># nano \/etc\/fstab<\/code><\/li>\n<\/ul>\n<p><u>Add the following line at the file&#8217;s end:<\/u><\/p>\n<ul>\n<li><code>\/swap1.swap none swap sw 0 0<\/code><\/li>\n<\/ul>\n<h2><span class=\"ez-toc-section\" id=\"9_Set_up_the_bitcoin_daemon_to_auto-run\"><\/span><strong>9: Set up the bitcoin daemon to auto-run.<\/strong><span class=\"ez-toc-section-end\"><\/span><\/h2>\n<p>Create a startup file:<\/p>\n<ul>\n<li><code># nano \/etc\/systemd\/system\/multi-user.target.wants\/bitcoin.service<\/code><\/li>\n<\/ul>\n<p><strong>Enter into it:<\/strong><\/p>\n<p>[Unit]<\/p>\n<p>Description=Bitcoin Server<\/p>\n<p>After=network. Target<\/p>\n<p>After=syslog. Target<\/p>\n<p>[Install]<\/p>\n<p>Wanted by=multi-user. Target<\/p>\n<p>Alias=bitcoind.service<\/p>\n<p>[Service]<\/p>\n<p>User=bitcoin<\/p>\n<p>Group=bitcoin<\/p>\n<p># Start the main service<\/p>\n<p>Exec Start=\/usr\/bin\/bitcoins<\/p>\n<p>ExecStop=\/usr\/bin\/bitcoin-cli stop<\/p>\n<p>Restart=always<\/p>\n<p>PrivateTmp=false<\/p>\n<p><strong><u>Reload the system and start bitcoin:<\/u><\/strong><\/p>\n<p><code># systemctl daemon-reload<\/code><\/p>\n<p><code># systemctl restart bitcoins<\/code><\/p>\n<p><code># systemctl status bitcoins<\/code><\/p>\n<h2><span class=\"ez-toc-section\" id=\"10_Optional_Configure_ssh_user_logins\"><\/span><strong>10:(Optional) Configure ssh user logins.<\/strong><span class=\"ez-toc-section-end\"><\/span><\/h2>\n<p>Set up ssh public key authentication if you wish to use ssh to log in directly to your new server. It&#8217;s a good guide from Digital Ocean.<\/p>\n<p><strong>Related Article\u00a0<\/strong><\/p>\n<ul>\n<li><span style=\"color: #0000ff;\"><a style=\"color: #0000ff;\" href=\"https:\/\/arzhost.com\/blogs\/how-to-make-a-bitcoin-mining-server\/\">how to make a bitcoin mining server<\/a><\/span><\/li>\n<li><span style=\"color: #0000ff;\"><a style=\"color: #0000ff;\" href=\"https:\/\/arzhost.com\/blogs\/how-to-use-a-server-as-a-bitcoin-miner\/\">how to use a server as a bitcoin miner<\/a><\/span><\/li>\n<li><span style=\"color: #0000ff;\"><a style=\"color: #0000ff;\" href=\"https:\/\/arzhost.com\/blogs\/which-bitcoin-server-should-i-use\/\">which bitcoin server should I use<\/a><\/span><\/li>\n<\/ul>\n","protected":false},"excerpt":{"rendered":"<p>How to Set Up a Bitcoin Server? The Bitcoin Unlimited project is currently generating a lot of attention, and people have been asking how they can become involved. Operating a full Server for Bitcoin Unlimited is a fantastic way to assist with the project. You can learn How to Set Up a Bitcoin Server? On [&hellip;]<\/p>\n","protected":false},"author":1,"featured_media":17784,"comment_status":"open","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[68],"tags":[],"class_list":["post-3885","post","type-post","status-publish","format-standard","has-post-thumbnail","hentry","category-bitcoin"],"_links":{"self":[{"href":"https:\/\/arzhost.com\/blogs\/wp-json\/wp\/v2\/posts\/3885","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/arzhost.com\/blogs\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/arzhost.com\/blogs\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/arzhost.com\/blogs\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/arzhost.com\/blogs\/wp-json\/wp\/v2\/comments?post=3885"}],"version-history":[{"count":4,"href":"https:\/\/arzhost.com\/blogs\/wp-json\/wp\/v2\/posts\/3885\/revisions"}],"predecessor-version":[{"id":17786,"href":"https:\/\/arzhost.com\/blogs\/wp-json\/wp\/v2\/posts\/3885\/revisions\/17786"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/arzhost.com\/blogs\/wp-json\/wp\/v2\/media\/17784"}],"wp:attachment":[{"href":"https:\/\/arzhost.com\/blogs\/wp-json\/wp\/v2\/media?parent=3885"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/arzhost.com\/blogs\/wp-json\/wp\/v2\/categories?post=3885"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/arzhost.com\/blogs\/wp-json\/wp\/v2\/tags?post=3885"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}