{"id":206,"date":"2021-07-17T13:18:01","date_gmt":"2021-07-17T07:48:01","guid":{"rendered":"https:\/\/lazytourer.com\/in\/?p=206"},"modified":"2021-11-03T13:58:09","modified_gmt":"2021-11-03T08:28:09","slug":"how-to-install-setup-use-nextcloud-as-google-photo-alternative-for-local-backup","status":"publish","type":"post","link":"https:\/\/lazytourer.com\/in\/how-to-install-setup-use-nextcloud-as-google-photo-alternative-for-local-backup\/","title":{"rendered":"How to install, setup, use NextCloud as Google Photo alternative for local backup"},"content":{"rendered":"\n<p>Back in 2015 Google announced free and unlimited backup for all our photos and videos with their Google Photos app. The app and service is cross platform compatible, meaning works with Apple iOS (iPhone \/ iPad), Android phones and any browser in Computers !!<br><br>The service is amazing and just like me and you, entire world is hooked into it. No more headache of phone memory space running out as once the pictures and videos are backed up, you can delete it from device storage but still access all of them via Google Photos app via your internet connection.<br><br>However, once we all got used to and somewhat depended on Google Photos, all of sudden they pulled the ground out of our feet and announced closing of unlimited free back up storage from June 01, 2021. At least they were kind enough to let us keep all previously uploaded pictures and videos but anything new will eat into the 15GB default storage of your google account shared between Gmail \/ Drive and all other Google Services.<\/p>\n\n\n\n<p>What are your options with Paid Google Photos?<br><br>1. Pay for storage in Google Account and keep using Google Photos.<br><img loading=\"lazy\" decoding=\"async\" width=\"650\" height=\"373\" class=\"wp-image-208\" style=\"width: 650px;\" src=\"https:\/\/lazytourer.com\/in\/wp-content\/uploads\/2021\/04\/Google-Photo-Plan-Pricing.jpg\" alt=\"\" srcset=\"https:\/\/lazytourer.com\/in\/wp-content\/uploads\/2021\/04\/Google-Photo-Plan-Pricing.jpg 862w, https:\/\/lazytourer.com\/in\/wp-content\/uploads\/2021\/04\/Google-Photo-Plan-Pricing-300x172.jpg 300w, https:\/\/lazytourer.com\/in\/wp-content\/uploads\/2021\/04\/Google-Photo-Plan-Pricing-768x441.jpg 768w\" sizes=\"auto, (max-width: 650px) 100vw, 650px\" \/><br>This is the easiest way out, Rs. 1300\/- per year isn&#8217;t bad at all, specially when you get Google&#8217;s solid internet infrastructure &amp; servers. This 100GB of space can be used for Google Drive or Gmail also. Best part is the ability to add Family or friends account to share this 100 GB space between each other. Helps to keep the cost down and your entire family or mates can take advantage of the storage.<br><br>2. Pay other cloud backup service providers.<br><br>Frankly speaking, Google&#8217;s pricing is really good and this space can be shared between other Google account holders and services makes it the best value for money, but in case you don&#8217;t want to pay Google for any reason, there are many Cloud Service providers to choose from.<br><br>3. You need Free options<br><br>What if you are like me and need something absolutely free to replace Google Photos to backup your and family devices? In this case, you have to consider local storage (in your PC or MAC) backup and below is a long but very useful tutorial about using Nextcloud as the best Google Photos alternative to backup photos and videos from android phones tablets and iPhones \/ iPads. It supports multiple users, so your entire family, friends or room mates too can use it along with you.<\/p>\n\n\n\n<p><strong>Setting up NextCloud as Google Photos alternative<\/strong><br><br>NextCloud is a free to use (personal use) software which runs on Linux \/ Docker containers but doesn&#8217;t support Windows directly. Don&#8217;t worry, its not that tough &amp; will not cause any issue with your computer.<\/p>\n\n\n\n<figure class=\"wp-block-embed is-type-video is-provider-youtube wp-block-embed-youtube wp-embed-aspect-16-9 wp-has-aspect-ratio\"><div class=\"wp-block-embed__wrapper\">\n<iframe loading=\"lazy\" title=\"Google Photos Alternative - How to setup NextCloud for free autometic local backup\" width=\"640\" height=\"360\" src=\"https:\/\/www.youtube.com\/embed\/I8fXxCQ3GuA?feature=oembed\" frameborder=\"0\" allow=\"accelerometer; autoplay; clipboard-write; encrypted-media; gyroscope; picture-in-picture; web-share\" referrerpolicy=\"strict-origin-when-cross-origin\" allowfullscreen><\/iframe>\n<\/div><figcaption><strong><a href=\"https:\/\/youtu.be\/I8fXxCQ3GuA\" target=\"_blank\" rel=\"noreferrer noopener\">Watch our step by step video tutorial<\/a><\/strong><\/figcaption><\/figure>\n\n\n\n<p><strong>Prerequisites of using NextCloud<\/strong><br><br>You need to have following stuff to run &amp; use NextCloud,<\/p>\n\n\n\n<div class=\"wp-block-columns is-layout-flex wp-container-core-columns-is-layout-28f84493 wp-block-columns-is-layout-flex\">\n<div class=\"wp-block-column is-layout-flow wp-block-column-is-layout-flow\" style=\"flex-basis:66.66%\">\n<ul class=\"wp-block-list\"><li>One Laptop or Desktop Computer<\/li><li>Wireless Router with Internet Connection<\/li><li>Virtual Box (Virtualization) &#8211; Free Software<\/li><li>Ubuntu OS &#8211; Server Operating System<\/li><li>NextCloud &#8211; Free Software<\/li><\/ul>\n\n\n\n<p>Interestingly, if you are like me, having an old low powered laptop gathering dust, you can skip VirtualBox \/ VMWare type virtual pc software and install Ubuntu + NextCloud directly on that.<\/p>\n<\/div>\n\n\n\n<div class=\"wp-block-column is-layout-flow wp-block-column-is-layout-flow\" style=\"flex-basis:33.33%\">\n<figure class=\"wp-block-image size-large is-resized\"><img loading=\"lazy\" decoding=\"async\" src=\"https:\/\/lazytourer.com\/in\/wp-content\/uploads\/2021\/04\/NextCloud_01-2.jpg\" alt=\"\" class=\"wp-image-213\" width=\"210\" height=\"275\" srcset=\"https:\/\/lazytourer.com\/in\/wp-content\/uploads\/2021\/04\/NextCloud_01-2.jpg 426w, https:\/\/lazytourer.com\/in\/wp-content\/uploads\/2021\/04\/NextCloud_01-2-228x300.jpg 228w\" sizes=\"auto, (max-width: 210px) 100vw, 210px\" \/><\/figure>\n<\/div>\n<\/div>\n\n\n\n<p><strong>How to Setup NextCloud for Google Photos Alternative?<\/strong><br><br><strong>Step One<\/strong><br><br>This process starts in your Computer, first download two software, VirtualBox and Ubuntu 20.04 LTS Server. Both are free to use software, so no license or money needed to purchase these. You can do it in any computer running Windows 10 latest or MAC OS latest.<br><br>VirtualBox -&gt; <a href=\"https:\/\/www.virtualbox.org\/\" rel=\"noopener\">Oracle VM VirtualBox<\/a><br>Ubuntu Server -&gt; <a href=\"https:\/\/ubuntu.com\/download\/server\" rel=\"noopener\">Get Ubuntu Server | Download | Ubuntu<\/a><br><br>Install the VirtualBox software. Installation is extremely simple, few clicks. There are tons of web tutorials and YouTube how to hands on videos available, you can watch them if you need or wish.<\/p>\n\n\n\n<p><strong>Step Two<\/strong><br><br>Creating a new Virtual Machine and Installing Ubuntu Server.<br><br>Launch the Virtual Box software \/ application, and in main Window, click New to create a new machine.<br><br><img loading=\"lazy\" decoding=\"async\" width=\"444\" height=\"232\" class=\"wp-image-249\" style=\"width: 444px;\" src=\"https:\/\/lazytourer.com\/in\/wp-content\/uploads\/2021\/04\/Virtual_Box_01.jpg\" alt=\"\" srcset=\"https:\/\/lazytourer.com\/in\/wp-content\/uploads\/2021\/04\/Virtual_Box_01.jpg 444w, https:\/\/lazytourer.com\/in\/wp-content\/uploads\/2021\/04\/Virtual_Box_01-300x157.jpg 300w\" sizes=\"auto, (max-width: 444px) 100vw, 444px\" \/><br>Now in the Machine details Window, enter your details just like the screenshot below,<br><br>Name :- Ubuntu or NextCloud or what ever you wish.<br>Machine Folder :- Change the location as per your need, if you have SSD\/NVMe, try to keep it in there.<br>Type :- Select Linux <br>Version :- Select Ubuntu x64<br>Memory Size :- If you have 6Gb or more RAM, enter 2048 MB (2GB), if 4GB or less RAM then (1024) 1GB.<br>Hard Disk :- Create a virtual hard disk now<br><img loading=\"lazy\" decoding=\"async\" width=\"565\" height=\"495\" class=\"wp-image-250\" style=\"width: 565px;\" src=\"https:\/\/lazytourer.com\/in\/wp-content\/uploads\/2021\/04\/Virtual_Box_02.jpg\" alt=\"\" srcset=\"https:\/\/lazytourer.com\/in\/wp-content\/uploads\/2021\/04\/Virtual_Box_02.jpg 565w, https:\/\/lazytourer.com\/in\/wp-content\/uploads\/2021\/04\/Virtual_Box_02-300x263.jpg 300w\" sizes=\"auto, (max-width: 565px) 100vw, 565px\" \/><br><br>Now click Next to proceed to the next step to create Hard Disk,<br><br>Location :- Don&#8217;t need to touch it as you have already given it a location in the above step. Just make sure its the same location.<br>File Size :- 30GB<br>Hard Disk File Type :- VDI with Dynamically Allocated<br><img loading=\"lazy\" decoding=\"async\" width=\"505\" height=\"452\" class=\"wp-image-251\" style=\"width: 505px;\" src=\"https:\/\/lazytourer.com\/in\/wp-content\/uploads\/2021\/04\/Virtual_Box_03.jpg\" alt=\"\" srcset=\"https:\/\/lazytourer.com\/in\/wp-content\/uploads\/2021\/04\/Virtual_Box_03.jpg 505w, https:\/\/lazytourer.com\/in\/wp-content\/uploads\/2021\/04\/Virtual_Box_03-300x269.jpg 300w\" sizes=\"auto, (max-width: 505px) 100vw, 505px\" \/><br>Clicking create will now create the Virtual Machine for you.<br><br><strong>Step Three<\/strong><br><br>Configuring the Virtual Machine and Installing Ubuntu.<br><br>Once the machine is created, now select the machine and click settings. As you may see, I have multiple VMs listed so I needed to select the machine I wish to modify the settings,<br><br><img loading=\"lazy\" decoding=\"async\" width=\"465\" height=\"423\" class=\"wp-image-252\" style=\"width: 465px;\" src=\"https:\/\/lazytourer.com\/in\/wp-content\/uploads\/2021\/04\/Virtual_Box_04.jpg\" alt=\"\" srcset=\"https:\/\/lazytourer.com\/in\/wp-content\/uploads\/2021\/04\/Virtual_Box_04.jpg 465w, https:\/\/lazytourer.com\/in\/wp-content\/uploads\/2021\/04\/Virtual_Box_04-300x273.jpg 300w\" sizes=\"auto, (max-width: 465px) 100vw, 465px\" \/><br><br>You need to change following settings, so refer to the each image and continue,<br><br>Under System, go to processor TAB and select 2 CPU and enable the extended features as shown below,<br><br><img loading=\"lazy\" decoding=\"async\" width=\"555\" height=\"217\" class=\"wp-image-253\" style=\"width: 555px;\" src=\"https:\/\/lazytourer.com\/in\/wp-content\/uploads\/2021\/04\/Virtual_Box_05.jpg\" alt=\"\" srcset=\"https:\/\/lazytourer.com\/in\/wp-content\/uploads\/2021\/04\/Virtual_Box_05.jpg 635w, https:\/\/lazytourer.com\/in\/wp-content\/uploads\/2021\/04\/Virtual_Box_05-300x117.jpg 300w\" sizes=\"auto, (max-width: 555px) 100vw, 555px\" \/><br><br>Under Acceleration TAB, enable the nested paging hardware virtualization as shown below,<br><br><img loading=\"lazy\" decoding=\"async\" width=\"555\" height=\"144\" class=\"wp-image-254\" style=\"width: 555px;\" src=\"https:\/\/lazytourer.com\/in\/wp-content\/uploads\/2021\/04\/Virtual_Box_06.jpg\" alt=\"\" srcset=\"https:\/\/lazytourer.com\/in\/wp-content\/uploads\/2021\/04\/Virtual_Box_06.jpg 635w, https:\/\/lazytourer.com\/in\/wp-content\/uploads\/2021\/04\/Virtual_Box_06-300x78.jpg 300w\" sizes=\"auto, (max-width: 555px) 100vw, 555px\" \/><br><br>Now go to Display and enable acceleration and assign max video memory as show below,<br><br><img loading=\"lazy\" decoding=\"async\" width=\"555\" height=\"259\" class=\"wp-image-255\" style=\"width: 555px;\" src=\"https:\/\/lazytourer.com\/in\/wp-content\/uploads\/2021\/04\/Virtual_Box_07.jpg\" alt=\"\" srcset=\"https:\/\/lazytourer.com\/in\/wp-content\/uploads\/2021\/04\/Virtual_Box_07.jpg 638w, https:\/\/lazytourer.com\/in\/wp-content\/uploads\/2021\/04\/Virtual_Box_07-300x140.jpg 300w\" sizes=\"auto, (max-width: 555px) 100vw, 555px\" \/><br><br>Under the storage option, click Controller IDE and then select the Ubuntu Server downloaded installation ISO file as shown below,<br><br><img loading=\"lazy\" decoding=\"async\" width=\"555\" height=\"270\" class=\"wp-image-256\" style=\"width: 555px;\" src=\"https:\/\/lazytourer.com\/in\/wp-content\/uploads\/2021\/04\/Virtual_Box_08.jpg\" alt=\"\" srcset=\"https:\/\/lazytourer.com\/in\/wp-content\/uploads\/2021\/04\/Virtual_Box_08.jpg 652w, https:\/\/lazytourer.com\/in\/wp-content\/uploads\/2021\/04\/Virtual_Box_08-300x146.jpg 300w\" sizes=\"auto, (max-width: 555px) 100vw, 555px\" \/><br><br>Finally, under network settings, select Bridge Networking as shown below,<br><br><img loading=\"lazy\" decoding=\"async\" width=\"438\" height=\"231\" class=\"wp-image-257\" style=\"width: 438px;\" src=\"https:\/\/lazytourer.com\/in\/wp-content\/uploads\/2021\/04\/Virtual_Box_09.jpg\" alt=\"\" srcset=\"https:\/\/lazytourer.com\/in\/wp-content\/uploads\/2021\/04\/Virtual_Box_09.jpg 438w, https:\/\/lazytourer.com\/in\/wp-content\/uploads\/2021\/04\/Virtual_Box_09-300x158.jpg 300w\" sizes=\"auto, (max-width: 438px) 100vw, 438px\" \/><br><br>Now you can start the installation of Ubuntu by starting the virtual machine.<br><br><strong>Step Four<\/strong><br><br>IP Address selection under installation.<br><br>There are tons of Ubuntu Server Installation videos and website tutorials, search and follow or refer to them on installation. Its really simple, just proceed without changing any default options (off course select your own country and time zone).<br><br>Just one thing you need to modify, thats setting up a static IP for this Virtual Server. Select your Network, edit the IPv4, Set it to manual and input the IP Addresses as shown below,<br><br><img loading=\"lazy\" decoding=\"async\" width=\"555\" height=\"272\" class=\"wp-image-258\" style=\"width: 555px;\" src=\"https:\/\/lazytourer.com\/in\/wp-content\/uploads\/2021\/04\/Virtual_Box_10.jpg\" alt=\"\" srcset=\"https:\/\/lazytourer.com\/in\/wp-content\/uploads\/2021\/04\/Virtual_Box_10.jpg 565w, https:\/\/lazytourer.com\/in\/wp-content\/uploads\/2021\/04\/Virtual_Box_10-300x147.jpg 300w\" sizes=\"auto, (max-width: 555px) 100vw, 555px\" \/><br><img loading=\"lazy\" decoding=\"async\" width=\"332\" height=\"165\" class=\"wp-image-259\" style=\"width: 332px;\" src=\"https:\/\/lazytourer.com\/in\/wp-content\/uploads\/2021\/04\/Virtual_Box_11.jpg\" alt=\"\" srcset=\"https:\/\/lazytourer.com\/in\/wp-content\/uploads\/2021\/04\/Virtual_Box_11.jpg 332w, https:\/\/lazytourer.com\/in\/wp-content\/uploads\/2021\/04\/Virtual_Box_11-300x149.jpg 300w\" sizes=\"auto, (max-width: 332px) 100vw, 332px\" \/><br><img loading=\"lazy\" decoding=\"async\" width=\"555\" height=\"358\" class=\"wp-image-261\" style=\"width: 555px;\" src=\"https:\/\/lazytourer.com\/in\/wp-content\/uploads\/2021\/04\/Virtual_Box_12.jpg\" alt=\"\" srcset=\"https:\/\/lazytourer.com\/in\/wp-content\/uploads\/2021\/04\/Virtual_Box_12.jpg 608w, https:\/\/lazytourer.com\/in\/wp-content\/uploads\/2021\/04\/Virtual_Box_12-300x193.jpg 300w\" sizes=\"auto, (max-width: 555px) 100vw, 555px\" \/><br>Remember, your IP Address range can be different depending on your router settings, so check. Most of the Routers either use 192.168.1.1 or 192.168.0.1 type range. So input the details accordingly !!<br><br>Continue and complete the installation.<br><br><img loading=\"lazy\" decoding=\"async\" width=\"650\" height=\"507\" class=\"wp-image-272\" style=\"width: 650px;\" src=\"https:\/\/lazytourer.com\/in\/wp-content\/uploads\/2021\/05\/Ubuntu_03.png\" alt=\"\" srcset=\"https:\/\/lazytourer.com\/in\/wp-content\/uploads\/2021\/05\/Ubuntu_03.png 650w, https:\/\/lazytourer.com\/in\/wp-content\/uploads\/2021\/05\/Ubuntu_03-300x234.png 300w\" sizes=\"auto, (max-width: 650px) 100vw, 650px\" \/><br><br>Remember to write down your User ID and Password. Make sure not to use any space or upper case letter while creating these. Helps in later stages.<\/p>\n\n\n\n<p><strong>Step Five<\/strong><br><br>Creating 2nd virtual disk &amp; attaching with Ubuntu Server<br><br>Before you go for the NextCloud installation, its a good idea to create a second virtual disk drive for all the backup that Nextcloud would do. It helps to move and later restore stuff if things go wrong in future.<br><br>Shutdown the Ubuntu Virtual Machine, then click file in Virtual Box main window and click the virtual media manager option.<br><img loading=\"lazy\" decoding=\"async\" width=\"282\" height=\"317\" class=\"wp-image-264\" style=\"width: 282px;\" src=\"https:\/\/lazytourer.com\/in\/wp-content\/uploads\/2021\/04\/Virtual_Box_13.jpg\" alt=\"\" srcset=\"https:\/\/lazytourer.com\/in\/wp-content\/uploads\/2021\/04\/Virtual_Box_13.jpg 282w, https:\/\/lazytourer.com\/in\/wp-content\/uploads\/2021\/04\/Virtual_Box_13-267x300.jpg 267w\" sizes=\"auto, (max-width: 282px) 100vw, 282px\" \/><br><br>Now click create to create a new virtual disc, name it <span class=\"has-inline-color has-vivid-cyan-blue-color\"><strong>ncdata.vdi<\/strong><\/span><br><br><img loading=\"lazy\" decoding=\"async\" width=\"242\" height=\"205\" class=\"wp-image-265\" style=\"width: 242px;\" src=\"https:\/\/lazytourer.com\/in\/wp-content\/uploads\/2021\/04\/Virtual_Box_14.jpg\" alt=\"\"><br><br>Input 500 GB as size and make sure to select VDI \/ Dynamically Allocated Disk Space option. You can select a different location for this VDI file, since its your data drive, you can place it in mechanical hard drive of yours while the virtual machine disk stays in your fast NVMe or SSD storage.<br><br><img loading=\"lazy\" decoding=\"async\" width=\"467\" height=\"407\" class=\"wp-image-266\" style=\"width: 467px;\" src=\"https:\/\/lazytourer.com\/in\/wp-content\/uploads\/2021\/04\/Virtual_Box_15.jpg\" alt=\"\" srcset=\"https:\/\/lazytourer.com\/in\/wp-content\/uploads\/2021\/04\/Virtual_Box_15.jpg 467w, https:\/\/lazytourer.com\/in\/wp-content\/uploads\/2021\/04\/Virtual_Box_15-300x261.jpg 300w\" sizes=\"auto, (max-width: 467px) 100vw, 467px\" \/><br><br>Now go to the settings of your Ubuntu Virtual Machine,<br><br><img loading=\"lazy\" decoding=\"async\" width=\"465\" height=\"423\" class=\"wp-image-252\" style=\"width: 465px;\" src=\"https:\/\/lazytourer.com\/in\/wp-content\/uploads\/2021\/04\/Virtual_Box_04.jpg\" alt=\"\" srcset=\"https:\/\/lazytourer.com\/in\/wp-content\/uploads\/2021\/04\/Virtual_Box_04.jpg 465w, https:\/\/lazytourer.com\/in\/wp-content\/uploads\/2021\/04\/Virtual_Box_04-300x273.jpg 300w\" sizes=\"auto, (max-width: 465px) 100vw, 465px\" \/><br><br>Under storage settings, add this new virtual disc.<br><br><img loading=\"lazy\" decoding=\"async\" width=\"438\" height=\"230\" class=\"wp-image-267\" style=\"width: 438px;\" src=\"https:\/\/lazytourer.com\/in\/wp-content\/uploads\/2021\/04\/Virtual_Box_16.jpg\" alt=\"\" srcset=\"https:\/\/lazytourer.com\/in\/wp-content\/uploads\/2021\/04\/Virtual_Box_16.jpg 438w, https:\/\/lazytourer.com\/in\/wp-content\/uploads\/2021\/04\/Virtual_Box_16-300x158.jpg 300w\" sizes=\"auto, (max-width: 438px) 100vw, 438px\" \/><br><br>Now start the Ubuntu virtual machine. Yes, it is slow to boot up, since all servers are like this, wait till you are till log in consol. Input your user name and password to log in.<br><br>Ubuntu Server is all command line operation so you need to run following commands to mount this new hard disc. You can simply copy paste.<br><br>Pro Tip, try using putty (<a href=\"https:\/\/www.putty.org\/\" rel=\"noopener\">search google and download from putty.org<\/a>) tool. Just input the static in IP in putty (off course, that Ubuntu Virtual Machine needs to be turn on) to login to your virtual machine as it is easy in putty to copy paste compare to doing it directly in Virtual Box Window.<br><br>* Run command <strong><span class=\"has-inline-color has-vivid-cyan-blue-color\"><code>sudo lsblk<\/code><\/span><\/strong> to check second HDD showing. It should now be visible <span class=\"has-inline-color has-vivid-green-cyan-color\"><strong><code>sdb - 500 GB<\/code><\/strong><\/span>.<br>* Now format that virtual disk by running command <strong><span class=\"has-inline-color has-vivid-cyan-blue-color\"><code>sudo mkfs.ext4 -j -L ncdata \/dev\/sdb<\/code><\/span><\/strong><br><br>Every time a disc is formatted, a new UUID (disk identification label) string will be created, so you need to find that and copy it in a note pad for further use.<br><br>* Run Command <strong><span class=\"has-inline-color has-vivid-cyan-blue-color\"><code>sudo blkid \/dev\/sdb<\/code><\/span><\/strong><br><br><img loading=\"lazy\" decoding=\"async\" width=\"650\" height=\"142\" class=\"wp-image-268\" style=\"width: 650px;\" src=\"https:\/\/lazytourer.com\/in\/wp-content\/uploads\/2021\/04\/Ubuntu_01.jpg\" alt=\"\" srcset=\"https:\/\/lazytourer.com\/in\/wp-content\/uploads\/2021\/04\/Ubuntu_01.jpg 721w, https:\/\/lazytourer.com\/in\/wp-content\/uploads\/2021\/04\/Ubuntu_01-300x66.jpg 300w\" sizes=\"auto, (max-width: 650px) 100vw, 650px\" \/><br><br>It will show such above output in Putty, use your mouse to select that UUID string and press enter to copy it from putty. Then go to note pad and paste it there.<br><br>Now you need to Ubuntu system file fstab to mount the new drive under <span class=\"has-inline-color has-vivid-green-cyan-color\"><strong><code>\/media<\/code><\/strong><\/span> directory. You can edit it from Putty by using Ubuntu Built-in text editor called VIM.<br><br>* Run command <span class=\"has-inline-color has-vivid-cyan-blue-color\"><strong><code>sudo vim \/etc\/fstab<\/code><\/strong><\/span>. By default its read only so just press i button to start editing. Use your keyboard arrow key to come down to last and add a new line with following, <span class=\"has-inline-color has-vivid-cyan-blue-color\"><strong><code>\/dev\/disk\/by-uuid\/<\/code><\/strong><\/span><strong><span class=\"has-inline-color has-vivid-red-color\"><code>4006fe68-879a-41ed-b4da-cc0e6bc6b4bb<\/code><\/span><\/strong><span class=\"has-inline-color has-vivid-cyan-blue-color\"><strong><code> \/media\/ncdata auto nosuid,nodev,nofail,x-gvfs-show,x-gvfs-name=NewHDD 0 0<\/code><\/strong><\/span><br><br>Remember to replace the red colour UUID with your own, that you just copied and pasted in note pad. Press <span class=\"has-inline-color has-vivid-green-cyan-color\"><strong>ESC<\/strong><\/span> button of keyboard and type <span class=\"has-inline-color has-vivid-cyan-blue-color\"><strong><code>:wq!<\/code><\/strong><\/span> then press <span class=\"has-inline-color has-vivid-green-cyan-color\"><strong><code>ENTER<\/code><\/strong><\/span> to save this edit.<br><br>* Create a mount point under <span class=\"has-inline-color has-vivid-green-cyan-color\"><strong><code>\/media<\/code><\/strong><\/span> directory with following command <span class=\"has-inline-color has-vivid-cyan-blue-color\"><strong><code>sudo mkdir \/media\/ncdata<\/code><\/strong><\/span><br>* Set right permissions and user group access level for the new mount directory by running following two commands, <span class=\"has-inline-color has-vivid-cyan-blue-color\"><strong><code>sudo chown -R root:root \/media\/ncdata<\/code><\/strong><\/span> &amp; then <span class=\"has-inline-color has-vivid-cyan-blue-color\"><strong><code>sudo chmod 0770 \/media\/ncdata<\/code><\/strong><\/span><br><br>All done, now just reboot the virtual machine by running command, <span class=\"has-inline-color has-vivid-cyan-blue-color\"><strong><code>sudo reboot<\/code><\/strong><\/span> and restart putty to log back in again.<\/p>\n\n\n\n<p><strong>Step Six<\/strong><br><br>Installing Nextcloud and configuring it. Its simple, just you need to run few commands by copy pasting from here,<br><br>* Run following command to install nextcloud via snap <span class=\"has-inline-color has-vivid-cyan-blue-color\"><strong><code>sudo snap install nextcloud<\/code><\/strong><\/span><br>* Granting access to \/media directory by running command <span class=\"has-inline-color has-vivid-cyan-blue-color\"><strong><code>sudo snap connect nextcloud:removable-media<\/code><\/strong><\/span><br>* Creating snap Admin A\/C &amp; Password by running command <span class=\"has-inline-color has-vivid-cyan-blue-color\"><strong><code>sudo nextcloud.manual-install <\/code><\/strong><\/span><strong><span class=\"has-inline-color has-vivid-red-color\"><code>username password<\/code><\/span><\/strong> (Make sure to replace this username &amp; password with your desired username &amp; what ever password you wish to set)<br>* Adding the server static IP by running following command <span class=\"has-inline-color has-vivid-cyan-blue-color\"><strong><code>sudo nextcloud.occ config:system:set trusted_domains 1 --value=<\/code><\/strong><\/span><strong><span class=\"has-inline-color has-vivid-red-color\"><code>192.168.1.45<\/code><\/span><\/strong> (remember that ubuntu installation step where had set a static IP, replace this IP value with your own server&#8217;s IP Address)<br>* Enable self signed SSL by running <span class=\"has-inline-color has-vivid-cyan-blue-color\"><strong><code>sudo nextcloud.enable-https self-signed<\/code><\/strong><\/span><br>* Reboot the OS by running <span class=\"has-inline-color has-vivid-cyan-blue-color\"><strong><code>sudo reboot<\/code><\/strong><\/span> (You would need to close putty and restart and re login)<br>* Restart the Service by running <strong><span class=\"has-inline-color has-vivid-cyan-blue-color\"><code>sudo snap restart nextcloud.php-fpm<\/code><\/span><\/strong><br><br>NextCloud is installed but now you need to move all data next cloud will save to that additional hard disk by changing the nextcloud data directory.<br><br>* First to stop nextcloud service <span class=\"has-inline-color has-vivid-cyan-blue-color\"><strong><code>sudo snap stop nextcloud<\/code><\/strong><\/span><br><br>* Edit the configuration file <span class=\"has-inline-color has-vivid-cyan-blue-color\"><strong><code>sudo vim \/var\/snap\/nextcloud\/current\/nextcloud\/config\/config.php<\/code><\/strong><\/span> (press i to start editing and use allow keys to navigate the line which says DataDirectory, now carefully just edit &amp; change that location to new location <strong><span class=\"has-inline-color has-vivid-green-cyan-color\"><code>\/media\/ncdata\/data<\/code><\/span><\/strong> Press <strong><code>ESC<\/code><\/strong> button of keyboard and type <strong><code>:wq!<\/code><\/strong> then press <strong><code>ENTER<\/code><\/strong> to save this edit.<br><br>* Restart the Service by running <strong><span class=\"has-inline-color has-vivid-cyan-blue-color\"><code>sudo snap restart nextcloud.php-fpm<\/code><\/span><\/strong><br>* Move NextCloud Data Directory to New Location by running following command <span class=\"has-inline-color has-vivid-cyan-blue-color\"><strong><code>sudo mv \/var\/snap\/nextcloud\/common\/nextcloud\/data \/media\/ncdata\/<\/code><\/strong><\/span><br>* Reset the Permission by running following commands, <span class=\"has-inline-color has-vivid-cyan-blue-color\"><strong><code>sudo chown -R root:root \/media\/ncdata<\/code><\/strong><\/span> &amp; then<code> <strong><span class=\"has-inline-color has-vivid-cyan-blue-color\">sudo chmod 0770 \/media\/ncdata<\/span><\/strong><\/code><br><br>* Restart NextCloud <span class=\"has-inline-color has-vivid-cyan-blue-color\"><strong><code>sudo snap start nextcloud<\/code><\/strong><\/span> &amp; finally reboot the server by running <span class=\"has-inline-color has-vivid-cyan-blue-color\"><strong><code>sudo reboot<\/code><\/strong><\/span><br>* Set right permissions and user group access level by running following two commands, <strong><span class=\"has-inline-color has-vivid-cyan-blue-color\"><code>sudo chown -R root:root \/media\/ncdata<\/code><\/span><\/strong> &amp; then <strong><span class=\"has-inline-color has-vivid-cyan-blue-color\"><code>sudo chmod 0770 \/media\/ncdata<\/code><\/span><\/strong><\/p>\n\n\n\n<p>Thats it, you have successfully created a virtual machine running Ubuntu Server and NextCloud. You can now access this by visiting <span class=\"has-inline-color has-vivid-red-color\"><strong><code>https:\/\/YourIP<\/code><\/strong><\/span> in any browser, in my case its https:\/\/192.168.1.45\/ and you can now log into next cloud with that User ID and Password you created while installing the nextcloud.<\/p>\n\n\n\n<p class=\"has-large-font-size\"><strong>Configuring the NextCloud<\/strong><\/p>\n\n\n\n<div class=\"wp-block-columns is-layout-flex wp-container-core-columns-is-layout-28f84493 wp-block-columns-is-layout-flex\">\n<div class=\"wp-block-column is-layout-flow wp-block-column-is-layout-flow\" style=\"flex-basis:33.33%\">\n<p>To access or use NextCloud, your Ubuntu Virtual machine must be running along with your router. To open next cloud, you may visit your ubuntu \/ nextcloud static IP address via any browser and use your User ID &amp; Password to log in. You may need to click Continue as unsafe since this SSL certificate is your own, created in your own Ubuntu, by you. This will not be recognised by browsers and your computer.<br><br>In my case, I am visiting my ubuntu static IP https:\/\/192.168.1.45 , which I have set while installing the Ubuntu .<\/p>\n<\/div>\n\n\n\n<div class=\"wp-block-column is-layout-flow wp-block-column-is-layout-flow\" style=\"flex-basis:66.66%\">\n<figure class=\"wp-block-image size-large\"><img loading=\"lazy\" decoding=\"async\" width=\"435\" height=\"499\" src=\"https:\/\/lazytourer.com\/in\/wp-content\/uploads\/2021\/07\/Website-Access-upload.jpg\" alt=\"\" class=\"wp-image-304\" srcset=\"https:\/\/lazytourer.com\/in\/wp-content\/uploads\/2021\/07\/Website-Access-upload.jpg 435w, https:\/\/lazytourer.com\/in\/wp-content\/uploads\/2021\/07\/Website-Access-upload-262x300.jpg 262w\" sizes=\"auto, (max-width: 435px) 100vw, 435px\" \/><\/figure>\n<\/div>\n<\/div>\n\n\n\n<p><br>Once you have logged into the NextCloud using your nextcloud User ID and password, now you can visit the settings pane and there you may find option to create further user accounts.<br><br><img loading=\"lazy\" decoding=\"async\" width=\"650\" height=\"425\" class=\"wp-image-305\" style=\"width: 650px;\" src=\"https:\/\/lazytourer.com\/in\/wp-content\/uploads\/2021\/07\/NextCloud-Log-in-Screen-upload.jpg\" alt=\"\" srcset=\"https:\/\/lazytourer.com\/in\/wp-content\/uploads\/2021\/07\/NextCloud-Log-in-Screen-upload.jpg 738w, https:\/\/lazytourer.com\/in\/wp-content\/uploads\/2021\/07\/NextCloud-Log-in-Screen-upload-300x196.jpg 300w\" sizes=\"auto, (max-width: 650px) 100vw, 650px\" \/><br><br>Remember, you may create multiple user name for your family members or house \/ room partners. However NextCloud works just like Google Photos so every user can use their multiple devices, Android \/ iPhones \/ laptop \/ iPad or tablet using that same user name and password and access all of their individual photos backed up and available at one place. Good thing is that one user account can&#8217;t view pictures of another user account. So privacy data security is maintained at highest level.<\/p>\n\n\n\n<p class=\"has-large-font-size\"><strong>How to Setup your Phone (Android \/ iOS \/ iPhone \/ iPad or Tablets) to use NextCloud<\/strong><\/p>\n\n\n\n<p>First you would need to download and install the NextCloud App from the respective App stores. NextCloud app is a free to use app and its available in both Android Play Store and Apple App Store. Once you have installed, you need to sign in using your user name and password via local IP (in my case, the log in IP is 192.168.1.45).<\/p>\n\n\n\n<div class=\"wp-block-columns is-layout-flex wp-container-core-columns-is-layout-28f84493 wp-block-columns-is-layout-flex\">\n<div class=\"wp-block-column is-layout-flow wp-block-column-is-layout-flow\" style=\"flex-basis:66.66%\">\n<p>Once you are inside the app, simple go to NextCloud Settings from the main windows left hand side menu option to open up the configuration tab.<\/p>\n<\/div>\n\n\n\n<div class=\"wp-block-column is-layout-flow wp-block-column-is-layout-flow\" style=\"flex-basis:33.33%\">\n<figure class=\"wp-block-image size-thumbnail is-style-rounded\"><a href=\"https:\/\/lazytourer.com\/in\/wp-content\/uploads\/2021\/07\/NextCloud-App-Main-Screen-01-Upload.jpg\"><img loading=\"lazy\" decoding=\"async\" width=\"150\" height=\"150\" src=\"https:\/\/lazytourer.com\/in\/wp-content\/uploads\/2021\/07\/NextCloud-App-Main-Screen-01-Upload-150x150.jpg\" alt=\"\" class=\"wp-image-307\"\/><\/a><figcaption>Click to enlarge<\/figcaption><\/figure>\n<\/div>\n<\/div>\n\n\n\n<div class=\"wp-block-columns is-layout-flex wp-container-core-columns-is-layout-28f84493 wp-block-columns-is-layout-flex\">\n<div class=\"wp-block-column is-layout-flow wp-block-column-is-layout-flow\" style=\"flex-basis:33.33%\">\n<figure class=\"wp-block-image size-thumbnail is-style-rounded\"><a href=\"https:\/\/lazytourer.com\/in\/wp-content\/uploads\/2021\/07\/NextCloud-App-Main-Screen-02-Upload.jpg\"><img loading=\"lazy\" decoding=\"async\" width=\"150\" height=\"150\" src=\"https:\/\/lazytourer.com\/in\/wp-content\/uploads\/2021\/07\/NextCloud-App-Main-Screen-02-Upload-150x150.jpg\" alt=\"\" class=\"wp-image-308\"\/><\/a><figcaption>Click to enlarge<\/figcaption><\/figure>\n<\/div>\n\n\n\n<div class=\"wp-block-column is-layout-flow wp-block-column-is-layout-flow\" style=\"flex-basis:66.66%\">\n<p>In side the settings page, you need to scroll down to find the option Auto Upload. Click that to bring up the Auto Upload Configuration page and menus.<\/p>\n<\/div>\n<\/div>\n\n\n\n<div class=\"wp-block-columns is-layout-flex wp-container-core-columns-is-layout-28f84493 wp-block-columns-is-layout-flex\">\n<div class=\"wp-block-column is-layout-flow wp-block-column-is-layout-flow\" style=\"flex-basis:66.66%\">\n<p>Under the configuration page, you will find all your folders containing picture and videos are listed. NextCloud will show separate entry of a folder \/ directory if it has both videos and pictures. You can click the settings icon beside every directory name to manually configure the auto upload options. For my case, I am here only selecting my Phone&#8217;s camera directory for pictures and videos for upto backup \/ upload.<\/p>\n<\/div>\n\n\n\n<div class=\"wp-block-column is-layout-flow wp-block-column-is-layout-flow\" style=\"flex-basis:33.33%\">\n<figure class=\"wp-block-image size-thumbnail is-style-rounded\"><a href=\"https:\/\/lazytourer.com\/in\/wp-content\/uploads\/2021\/07\/NextCloud-App-Main-Screen-03-upload.jpg\"><img loading=\"lazy\" decoding=\"async\" width=\"150\" height=\"150\" src=\"https:\/\/lazytourer.com\/in\/wp-content\/uploads\/2021\/07\/NextCloud-App-Main-Screen-03-upload-150x150.jpg\" alt=\"\" class=\"wp-image-309\"\/><\/a><figcaption>Click to enlarge<\/figcaption><\/figure>\n<\/div>\n<\/div>\n\n\n\n<div class=\"wp-block-columns is-layout-flex wp-container-core-columns-is-layout-28f84493 wp-block-columns-is-layout-flex\">\n<div class=\"wp-block-column is-layout-flow wp-block-column-is-layout-flow\" style=\"flex-basis:33.33%\">\n<figure class=\"wp-block-image size-thumbnail is-style-rounded\"><img loading=\"lazy\" decoding=\"async\" width=\"150\" height=\"150\" src=\"https:\/\/lazytourer.com\/in\/wp-content\/uploads\/2021\/07\/NextCloud-App-Main-Screen-04-upload-150x150.jpg\" alt=\"\" class=\"wp-image-311\"\/><\/figure>\n<\/div>\n\n\n\n<div class=\"wp-block-column is-layout-flow wp-block-column-is-layout-flow\" style=\"flex-basis:66.66%\">\n<p>Under the configuration menu, you would need to set few options,<br><br>1. Turn on the Auto upload toggle switch<br>2. Select the Remote Folder as \/Photos\/<br>3. Save the new configuration<\/p>\n<\/div>\n<\/div>\n\n\n\n<p>As soon as you complete these steps, nextcloud will automatically start backing up the pictures and videos that is selected under above steps. You may view the uploading proceedings by click the left hand side menu and selecting uploads.<br><br><img loading=\"lazy\" decoding=\"async\" width=\"650\" height=\"709\" class=\"wp-image-313\" style=\"width: 650px;\" src=\"https:\/\/lazytourer.com\/in\/wp-content\/uploads\/2021\/07\/NextCloud-App-Main-Screen-05-upload.jpg\" alt=\"\" srcset=\"https:\/\/lazytourer.com\/in\/wp-content\/uploads\/2021\/07\/NextCloud-App-Main-Screen-05-upload.jpg 596w, https:\/\/lazytourer.com\/in\/wp-content\/uploads\/2021\/07\/NextCloud-App-Main-Screen-05-upload-275x300.jpg 275w\" sizes=\"auto, (max-width: 650px) 100vw, 650px\" \/><br>Now every time you start the virual machine, its completely automatic, no commands needed or no action is needed, NextCloud will automatically detected when you start the virtual machine and will start the backup in background. Depending on your home WiFi Network LAN speed, it may take few hours for all users in your home to complete their backup.<\/p>\n\n\n\n<p class=\"has-vivid-red-color has-text-color has-large-font-size\"><strong>Few Points to Note<\/strong><\/p>\n\n\n\n<ol class=\"wp-block-list\"><li>You need to run NextCloud (Ubuntu) Virtual Machine to use NextCloud. If the Computer containing the virtual box isn&#8217;t running then it won&#8217;t work.<\/li><li>NextCloud in your phone will use the home networking to backup the data, it will use zero internet connection \/ bandwidth.<\/li><li>Its not necessary to keep on running your computer with nextcloud virtual machine always. Just once a weak at night, start the PC and launch the Virtual machine. That is it, everything is automatic, it will backup in background.<\/li><\/ol>\n\n\n\n<p>If you have any question, you may drop us a comment, we shall try and reply to short you out.<\/p>\n","protected":false},"excerpt":{"rendered":"<p>Back in 2015 Google announced free and unlimited backup for all our photos and videos&#8230;<\/p>\n","protected":false},"author":1,"featured_media":211,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[14],"tags":[181,183,182,176,178,186,98,103,184,185,173,174,53,179,180,177,112,175],"class_list":["post-206","post","type-post","status-publish","format-standard","has-post-thumbnail","hentry","category-technology","tag-afternative","tag-android","tag-backup","tag-configure","tag-google","tag-guide","tag-how","tag-install","tag-ios","tag-iphone","tag-local","tag-nextcloud","tag-phone","tag-photo","tag-photos","tag-setup","tag-to","tag-use"],"_links":{"self":[{"href":"https:\/\/lazytourer.com\/in\/wp-json\/wp\/v2\/posts\/206","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/lazytourer.com\/in\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/lazytourer.com\/in\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/lazytourer.com\/in\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/lazytourer.com\/in\/wp-json\/wp\/v2\/comments?post=206"}],"version-history":[{"count":22,"href":"https:\/\/lazytourer.com\/in\/wp-json\/wp\/v2\/posts\/206\/revisions"}],"predecessor-version":[{"id":412,"href":"https:\/\/lazytourer.com\/in\/wp-json\/wp\/v2\/posts\/206\/revisions\/412"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/lazytourer.com\/in\/wp-json\/wp\/v2\/media\/211"}],"wp:attachment":[{"href":"https:\/\/lazytourer.com\/in\/wp-json\/wp\/v2\/media?parent=206"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/lazytourer.com\/in\/wp-json\/wp\/v2\/categories?post=206"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/lazytourer.com\/in\/wp-json\/wp\/v2\/tags?post=206"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}