<?xml version="1.0" encoding="UTF-8"?>
<rss version="2.0" xmlns:atom="http://www.w3.org/2005/Atom" xmlns:dc="http://purl.org/dc/elements/1.1/">
  <channel>
    <title>DEV Community: Jayesh Waghmare</title>
    <description>The latest articles on DEV Community by Jayesh Waghmare (@jayesh_w).</description>
    <link>https://dev.to/jayesh_w</link>
    <image>
      <url>https://media2.dev.to/dynamic/image/width=90,height=90,fit=cover,gravity=auto,format=auto/https:%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fuploads%2Fuser%2Fprofile_image%2F354267%2F5f751ad3-9506-4447-9a3d-21387c3e698e.jpeg</url>
      <title>DEV Community: Jayesh Waghmare</title>
      <link>https://dev.to/jayesh_w</link>
    </image>
    <atom:link rel="self" type="application/rss+xml" href="https://dev.to/feed/jayesh_w"/>
    <language>en</language>
    <item>
      <title>This is how I turned my old laptop into a server.</title>
      <dc:creator>Jayesh Waghmare</dc:creator>
      <pubDate>Sat, 16 May 2020 16:04:32 +0000</pubDate>
      <link>https://dev.to/jayesh_w/this-is-how-i-turned-my-old-laptop-into-a-server-1elf</link>
      <guid>https://dev.to/jayesh_w/this-is-how-i-turned-my-old-laptop-into-a-server-1elf</guid>
      <description>&lt;p&gt;I had a working old laptop and was itching to do something with it. And then I decided to turn it into a personal home server. This post will also work on any machine, you just need a monitor,keyboard,ethernet cable and an USB port.&lt;br&gt;
&lt;strong&gt;Let’s start!&lt;/strong&gt; &lt;/p&gt;

&lt;h1&gt;
  
  
  1. Choosing an Operating System
&lt;/h1&gt;

&lt;p&gt;When we hear about servers one thing that comes in our mind is Linux.Some of them do run windows but I’d personally go with Linux. Because it’s fast, has a whole community and is open source( an I’ve been using Linux for past 1 year )&lt;br&gt;
Before choosing an operating system I’d like to share my machine’s specification :&lt;br&gt;
4 GB RAM,Intel core 2 duo processor, 512 GB HDD.&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;Which Flavor of Linux to choose from?&lt;/strong&gt;&lt;br&gt;
Many people are confused while migrating from windows or mac OS to Linux platform.&lt;br&gt;
This is because Linux itself has many flavors but most of them are based on &lt;br&gt;
1.Debian&lt;br&gt;
2.Arch&lt;br&gt;
3.Red Hat&lt;br&gt;
&lt;strong&gt;So which one to go with?&lt;/strong&gt;&lt;br&gt;
I’ve Tried all three of them and for beginners the most recommended system is any Debian based OS ( Ubuntu, Kali, Debian , Lubuntu, ParrotOS,Mint) &lt;br&gt;
Most of the servers work on RHEL(Red Hat Enterprise Linux) and its flavors such as CentOS or Fedora.&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;Why didn't I go with CentOS?&lt;/strong&gt;&lt;br&gt;
CentOS is based on RHEL which is quite tricky for beginners also my system is old and has low end hardware. That is the reason why I selected Ubuntu server for my machine.&lt;/p&gt;

&lt;h1&gt;
  
  
  2. Downloading Ubuntu Server 20.04 and making a live bootable USB
&lt;/h1&gt;

&lt;p&gt;Download the ubuntu server from the following &lt;a href="https://ubuntu.com/download/server" rel="noopener noreferrer"&gt;link&lt;/a&gt;&lt;br&gt;
After downloading it, ensure you have an empty usb device to make it bootable.&lt;br&gt;
If you are using windows download &lt;a href="https://rufus.ie/" rel="noopener noreferrer"&gt;rufus software&lt;/a&gt; and run it.&lt;br&gt;
Google if you have any problems while making bootable usb with rufus as it is pretty easy.&lt;br&gt;
For Linux Users download any usb Image writer tool and you are good to go.&lt;/p&gt;

&lt;h1&gt;
  
  
  3. Booting into the USB and setting up the Server.
&lt;/h1&gt;

&lt;p&gt;Make sure that your files are moved to another computer as we are using the whole space for our server. We are going to erase the entire disk for the same purpose.&lt;/p&gt;

&lt;p&gt;Plug in the live bootable usb and start the machine. Press F12 to go to boot options. Select the USB option and click enter.&lt;br&gt;
Use &lt;strong&gt;arrow keys&lt;/strong&gt; and the &lt;strong&gt;enter key&lt;/strong&gt; to select options.&lt;/p&gt;

&lt;p&gt;After Few seconds there will be an option to choose your language. &lt;/p&gt;

&lt;h3&gt;
  
  
  &lt;strong&gt;Welcome Screen&lt;/strong&gt;
&lt;/h3&gt;

&lt;p&gt;&lt;a href="https://media.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fi%2Fuatxjtlcyavfuph78ete.png" class="article-body-image-wrapper"&gt;&lt;img src="https://media.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fi%2Fuatxjtlcyavfuph78ete.png" alt="Welcome"&gt;&lt;/a&gt;&lt;br&gt;
Select your language (English) and click enter.&lt;/p&gt;

&lt;h3&gt;
  
  
  &lt;strong&gt;Keyboard Configuration&lt;/strong&gt;
&lt;/h3&gt;

&lt;p&gt;Select Keyboard type English US and click enter.&lt;/p&gt;

&lt;p&gt;&lt;em&gt;(Now here comes the tricky part.)&lt;/em&gt;&lt;/p&gt;

&lt;h3&gt;
  
  
  &lt;strong&gt;Network Connections&lt;/strong&gt;
&lt;/h3&gt;

&lt;p&gt;&lt;a href="https://media.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fi%2Foko99y1pqolm9fp5cc3g.png" class="article-body-image-wrapper"&gt;&lt;img src="https://media.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fi%2Foko99y1pqolm9fp5cc3g.png" alt="Network Config"&gt;&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;If you have plugged in your ethernet cable from your wifi Router you don’t really have to worry a lot. The installer will automatically detect the &lt;strong&gt;DHCP&lt;/strong&gt; settings from the router and you just have to click enter. But if you don’t have any ethernet cable you have to go through a series of package installations only to connect to internet.&lt;/p&gt;

&lt;h3&gt;
  
  
  &lt;strong&gt;Configure Proxy&lt;/strong&gt;
&lt;/h3&gt;

&lt;p&gt;If your system requires any http proxy to connect to the internet enter the proxy address otherwise, just click on Done.&lt;/p&gt;

&lt;h3&gt;
  
  
  &lt;strong&gt;Guided Storage Configurations&lt;/strong&gt;
&lt;/h3&gt;

&lt;p&gt;&lt;a href="https://media.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fi%2Fucpdvjdynkkggw8bnek3.png" class="article-body-image-wrapper"&gt;&lt;img src="https://media.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fi%2Fucpdvjdynkkggw8bnek3.png" alt="Guided Storage config"&gt;&lt;/a&gt;&lt;br&gt;
As mentioned earlier we are going to utilize the entire HDD space for our home server and that's why select Use and Entire Disk option and click on done.&lt;/p&gt;

&lt;h3&gt;
  
  
  &lt;strong&gt;Storage Configuration&lt;/strong&gt;
&lt;/h3&gt;

&lt;p&gt;&lt;a href="https://media.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fi%2Fxgvfg1yts9o3zx0js0c0.png" class="article-body-image-wrapper"&gt;&lt;img src="https://media.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fi%2Fxgvfg1yts9o3zx0js0c0.png" alt="Alt Text"&gt;&lt;/a&gt;&lt;br&gt;
Your Hard disk space will be now divided into two partitions: one for the operating system itself and the other for GRUB Bootloader.&lt;br&gt;
Review your settings and click on done.&lt;/p&gt;

&lt;h3&gt;
  
  
  &lt;strong&gt;Profile Setup&lt;/strong&gt;
&lt;/h3&gt;

&lt;p&gt;&lt;a href="https://media.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fi%2F5p1nz586kttzkjbfgfxy.png" class="article-body-image-wrapper"&gt;&lt;img src="https://media.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fi%2F5p1nz586kttzkjbfgfxy.png" alt="Install"&gt;&lt;/a&gt;&lt;br&gt;
Enter your name , Your Server’s name(this name will be visible to other devices) , Your username and password. Click on done.&lt;/p&gt;

&lt;h3&gt;
  
  
  &lt;strong&gt;SSH setup&lt;/strong&gt;
&lt;/h3&gt;

&lt;p&gt;&lt;a href="https://media.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fi%2F33o7acsr5mx6sermgk95.png" class="article-body-image-wrapper"&gt;&lt;img src="https://media.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fi%2F33o7acsr5mx6sermgk95.png" alt="Featured"&gt;&lt;/a&gt;&lt;br&gt;
Select on Install OpenSSH server because that’s how you will connect to your server inside a private network.&lt;/p&gt;

&lt;h3&gt;
  
  
  &lt;strong&gt;Featured Server Snaps&lt;/strong&gt;
&lt;/h3&gt;

&lt;p&gt;&lt;a href="https://media.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fi%2Fgvr8ojjhwc9mvgpcfxm6.png" class="article-body-image-wrapper"&gt;&lt;img src="https://media.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fi%2Fgvr8ojjhwc9mvgpcfxm6.png" alt="ssh"&gt;&lt;/a&gt;&lt;br&gt;
Select any desirable feature for your server, I selected none because We will install them manually as per future requirements.&lt;/p&gt;

&lt;h3&gt;
  
  
  &lt;strong&gt;Installing System&lt;/strong&gt;
&lt;/h3&gt;

&lt;p&gt;&lt;a href="https://media.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fi%2F8oun7h6vybe5o9g2n4ga.png" class="article-body-image-wrapper"&gt;&lt;img src="https://media.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fi%2F8oun7h6vybe5o9g2n4ga.png" alt="Profile"&gt;&lt;/a&gt;&lt;br&gt;
Now you have to wait for a few minutes for your system to install. After Installation is complete the prompt will ask you to remove your USB device and reboot. Follow the reboot process and the system will automatically boot up. And You will see a terminal like this&lt;/p&gt;

&lt;p&gt;There you go ! you have turned your old laptop into a personal home server.&lt;/p&gt;

&lt;h1&gt;
  
  
  4. Changing the root password
&lt;/h1&gt;

&lt;p&gt;Type the following command &lt;br&gt;
&lt;strong&gt;&lt;em&gt;sudo -i&lt;/em&gt;&lt;/strong&gt;&lt;br&gt;
It will ask for your password.&lt;br&gt;
After entering your password you will be logged in as root with # sign&lt;br&gt;
Type the command &lt;br&gt;
&lt;strong&gt;&lt;em&gt;passwd&lt;/em&gt;&lt;/strong&gt;&lt;br&gt;
Type suitable root password twice and you have changed your root password&lt;br&gt;
Type &lt;strong&gt;&lt;em&gt;exit&lt;/em&gt;&lt;/strong&gt; to exit as root &lt;br&gt;
Type &lt;strong&gt;&lt;em&gt;su&lt;/em&gt;&lt;/strong&gt; to log in as root &lt;/p&gt;

&lt;h1&gt;
  
  
  5. Connecting Your server via Wi-Fi.
&lt;/h1&gt;

&lt;p&gt;Assuming you still have your ethernet wire plugged in, Install the following packages&lt;br&gt;
rfkill , wireless-tools , net-tools and wpasupplicant&lt;br&gt;
With following commands&lt;br&gt;
&lt;strong&gt;&lt;em&gt;sudo apt install rfkill wireless-tools net-tools wpasupplicant&lt;/em&gt;&lt;/strong&gt;&lt;br&gt;
After installing them go through the following &lt;a href="https://www.linuxbabe.com/command-line/ubuntu-server-16-04-wifi-wpa-supplicant" rel="noopener noreferrer"&gt;link&lt;/a&gt; for detailed explanation to connect to your WiFi&lt;/p&gt;

&lt;p&gt;After a reboot plug out the ethernet cable run the following command &lt;br&gt;
&lt;strong&gt;&lt;em&gt;ifconfig&lt;/em&gt;&lt;/strong&gt;&lt;br&gt;
and view the private ip address.&lt;/p&gt;

&lt;p&gt;Now from another computer &lt;br&gt;
If you are using windows download Putty or if you are Linux or MacOS user run the command &lt;br&gt;
&lt;strong&gt;&lt;em&gt;ssh username@ip_addr&lt;/em&gt;&lt;/strong&gt;&lt;br&gt;
Enter your password&lt;br&gt;
Voila! You have just accessed your system inside your private network.&lt;br&gt;
&lt;a href="https://media.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fi%2Fzi6rs3nhrqocnc71bkew.png" class="article-body-image-wrapper"&gt;&lt;img src="https://media.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fi%2Fzi6rs3nhrqocnc71bkew.png" alt="login"&gt;&lt;/a&gt;&lt;br&gt;
*** you will see a welcome screen like this***&lt;/p&gt;

&lt;h1&gt;
  
  
  6. Installing Webmin
&lt;/h1&gt;

&lt;p&gt;&lt;a href="https://media.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fi%2F5o1gx6isxm3ctzj60pk8.png" class="article-body-image-wrapper"&gt;&lt;img src="https://media.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fi%2F5o1gx6isxm3ctzj60pk8.png" alt="Webmin"&gt;&lt;/a&gt;&lt;br&gt;
Webmin is a web-based interface for sysadmins. Using any modern web browser, you can setup user accounts, Apache, file sharing and much more. Webmin removes the need to manually edit Unix configuration files like /etc/passwd, and lets you manage a system from the console or remotely.&lt;br&gt;
Follow this &lt;a href="https://linuxize.com/post/how-to-install-webmin-on-ubuntu-18-04/" rel="noopener noreferrer"&gt;guide&lt;/a&gt; to install webmin.&lt;/p&gt;

&lt;h2&gt;
  
  
  Cool Things to do with this home server.
&lt;/h2&gt;

&lt;ol&gt;
&lt;li&gt;Store Backup of your files&lt;/li&gt;
&lt;li&gt;Install a LAMP server to run websites.&lt;/li&gt;
&lt;li&gt;Install SMTP server to send mails.&lt;/li&gt;
&lt;li&gt;Use it as a database backup server.&lt;/li&gt;
&lt;li&gt;Test your Apps on this server before deploying them.&lt;/li&gt;
&lt;li&gt;Create a private git repository server.&lt;/li&gt;
&lt;li&gt;Save your videos and music and stream them over the web.&lt;/li&gt;
&lt;li&gt;For machine learning enthusiast save your training data on this server and train your model so that there is less stress on your working machine(It requires high end server) &lt;/li&gt;
&lt;li&gt;Use it as a ftp server.&lt;/li&gt;
&lt;li&gt;Install nginx to run and test web apps.&lt;/li&gt;
&lt;li&gt;Download and install OwnCloud to maintain your files. &lt;/li&gt;
&lt;/ol&gt;

&lt;p&gt;On this server I save my web projects (LAMP stack). I also use it to backup my database and website from the public server by setting up a cron job.I saved a lot of movies and steam them by just writing a small php script :) &lt;/p&gt;

&lt;p&gt;&lt;strong&gt;&lt;em&gt;&lt;em&gt;-&lt;/em&gt;-&lt;em&gt;Thank you!&lt;/em&gt;-&lt;em&gt;-&lt;/em&gt;&lt;/em&gt;&lt;/strong&gt;&lt;/p&gt;

</description>
      <category>linux</category>
      <category>server</category>
      <category>ubuntu</category>
    </item>
  </channel>
</rss>
