![]() To check it enter: sudo ls /mnt/ownclouddrive Now the drives should automatically be mounted. Dont forget to replace the UUID number to yours in stead of the one you copied from here. sudo nano /etc/fstabĪdd the following line to the bottom of the file, updating uid, guid and the UUID with the values we got above. Now add your drive into the fstab file so it’ll boot with the proper permissions. Also we meed to get the UUID of the attached external hard drive so the Pi can remember this drive even if you plug it into a different USB port. To get the uid enter the following command: id -u www-dataħ. ![]() Enter the following command for the gid: id -g www-dataĦ. We need to get the gid, uid and the uuid as we will need to use them so the pi will remember it even if we plug it into a different USB port. Make the user www-data owner of the mounted drive and make its permissions read, write and execute: sudo chown -R www-data:www-data /mnt/ownclouddrive sudo chmod -R 775 /mnt/ownclouddriveĥ. Create and add the www-data user to the www-data group: sudo groupadd www-data sudo usermod -a -G www-data www-dataĤ. Mount the hard drive to the newly created directory “ /mnt/ownclouddrive” sudo mount /dev/sda1 /mnt/ownclouddriveģ. Make a directory we can mount to: sudo mkdir /mnt/ownclouddrive See installed USB external hard drive: sudo fdisk -lĢ. Having an NTFS drive we will need to install a NFTS package by entering the following: sudo apt-get install ntfs-3g -y The advantage of using an NTFS formatted drive is that in case something ever happens to my Raspberry pi I can easily unplug the external hard drive, plug it onto a PC and have access to all my files.ġ. Now would be a good time to plug in the external Hard Drive to the RPI. These instructions are for mounting an NTFS formatted hard drive and allowing ownCloud to store files onto it. Mounting and Setting up an external hard drive Now you’ll be prompted with the proper ownCloud setup screen.Ĭreate a MySQL database and user: mysql -u root -pdietpiĬreate a database create database own_cloud Ĭreate user for database GRANT ALL PRIVILEGES ON own_cloud.* TO IDENTIFIED BY '12345' Ĭhange password to something other than “12345” exit If in case the proper ownCloud setup screen does not appear, then we need to delete the config.php by running this command: rm /var/www/owncloud/config/config.php To do that go back to the DietPi and enter the following: sudo -u www-data php /var/www/owncloud/occ user:resetpassword admin Note: If the default password doesn’t work then you would need to reset it. You should be presented with a simple login screen, Here enter the default username and password. Note: If you’re mounting and external hard drive for additional storage capacity skip this step and continue to Create a MySQL database then Mounting and Setting up an external hard drive underneath. Go on another computer within the same network and open the browser, enter the IP address provided, in my case is you’ll be directed to your ownCloud web interface. It will bring you back to the DietPi-Software screen:Īgain using the ↓ arrow key select Install and hit enter, to start auto installing the latest version of ownCloud. Then press the tab key to select OK and hit enter. Now using the ↓ arrow key look for ownCloud. Upon reboot you’ll be prompted with the DietPi-Software screen: I also opted out of the survey when prompted. For this tutorial I did not change any passwords. You are also going to be prompted to change default passwords. Once you log in it will immediately start to update. Then you’ll be prompted for the default username and password: Once the RPI turns on you will immediately be able to see the IP address, please make a note of it. The power cable is the last to to be plugged to the RPI. mouse, keyboard, Monitor, Ethernet) then insert the MicroSD onto the Raspberry PI. Make sure that the Raspberry PI is turned off and all peripherals are plugged in (i.e. Upon completion make properly eject the MicroSD card from the PC. Note: all content from the MicroSD card will be deleted and replaced with the content of the image file. Then Click on Write button to write the content of the image file onto the USB. Under device make sure to select the MicroSD card drive letter (i.e. Run Win32 Disk Imager, click on the smallfolder icon to browse and select the extracted DietPie. Make sure is detected by the PC and check the assigned drive letter to it. Insert the MicroSD card into the SD card reader then to the PC. img fileĭownload and install free Win32 Disk Imager. Install Diet Piĭownload the DietPi Image from -> Downloads.Įxtract the content, there you’ll find a. The good thing is that with DietPi We don’t have to write a bunch of code like I’ve done on my previous ownCloud installations.
0 Comments
Leave a Reply. |
Details
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |