• 0

Setup my own opensource Dropbox alternative!


Go to solution Solved by BudMan,

Question

Koshur

Hi,

 

I watched a YT video from CNET about setting up an open source dropbox alternative. To my surprise there was really a good one waiting to be explored. www.owncloud.org

Ok. so down to my issues:

Setup:

  1. TP link ADSL router TD-w8968 
  2. FTP server ftp://koshur.homelinux.net (which is basically my 1TB segate HDD connected to router's USB interface)
  3. Got dyndns setup within the router to resolve hostname (credits to Budman and +sc302!)
  4. Two laptops logged on via wifi apart from two android smart phones.
  5. I use XMBC to stream content via SMB sever on my LAN.

What I'm trying to do:n 

  • For now, I want my data to reside on my FTP (HDD).  
  • Installed ownclound via .deb installer on Ubuntu 12.04. When i pulled up the index page (http://ipaddress/owncloud) it asked me to set location for the data reside. 
  • I entered the URL (root directory - that i have admin access, read write) of the SMB sever (my FTP) but it didn't accept and threw permission error (see below)

post-431588-0-89217500-1378487333.png

 

I read about the error at various thread like this one http://forum.owncloud.org/viewtopic.php?f=17&t=7118. Downloaded the admin user guide(http://doc.owncloud.org/) about setting up the SMB as location to save data. I guess i got caught up at 'Custom Mount Configuration' on page 41. Since I'm not from a programming field, couldn't make out the JSON thing.

 

I'm so willing to get this working. I would love to move on from Dropbox. If this works out, I'll probably think of getting a proper NAS device for backups. Now the reason I am wiling to go this far - Its a closest alternative I've come across to dropbox. 

 

How to get my FTP (HDD) working as storage for owncloud.?

 

Thanks
MArk
Link to post
Share on other sites

Recommended Posts

  • 0
+BudMan

I don't think that is the correct syntax for smbclient, I would think you should have to escape \ so it would be like \\\\192.168.1.1

But I think you can just do something with -L and the IP.. it will throw out some errors but should work

budman@ubuntu:/$ smbclient -L 192.168.1.8
Enter budman's password:
Domain=[STORAGE] OS=[Windows Storage Server 2008 R2 Essentials 7601 Service Pack 1] Server=[Windows Storage Server 2008 R2 Essentials 6.1]

        Sharename       Type      Comment
        ---------       ----      -------
        ADMIN$          Disk      Remote Admin
        C$              Disk      Default share
        D$              Disk      Default share
        F$              Disk      Default share
        G$              Disk      Default share
        H$              Disk      Default share
        IPC$            IPC       Remote IPC
        J               Disk
        J$              Disk      Default share
        Media           Disk
        Molly           Disk
        Music           Disk
        temp            Disk
session request to 192.168.1.8 failed (Called name not present)
session request to 192 failed (Called name not present)
session request to *SMBSERVER failed (Called name not present)
NetBIOS over TCP disabled -- no workgroup available
budman@ubuntu:/$
Link to post
Share on other sites
  • 0
+BudMan

so your smb share server name is "adsl router" with a space in the name? That can cause all kinds of issues, better would be adslrouter or adsl-router or adsl_router, etc.

You can access \\adsl router from your computer? That seems unlikely to me.

did you try

 

smb : // 192.168.1.xxx/sharename
What username and password are you using?

its odd if I put smb : // next to each other it doesnt post.

Link to post
Share on other sites
  • 0
+Fahim S.

Not sure I understand...

 

why don't you just mount the share as a folder and point owncloud at that folder?

  • Like 1
Link to post
Share on other sites
  • 0
Koshur

so your smb share server name is "adsl router" with a space in the name? That can cause all kinds of issues, better would be adslrouter or adsl-router or adsl_router, etc.

You can access \\adsl router from your computer? That seems unlikely to me.

did you try

 

smb : // 192.168.1.xxx/sharename
What username and password are you using?

its odd if I put smb : // next to each other it doesnt post.

 

 

The URL for my SMB, for some reasons shows a %. I use the router 'admin' and password to access the SMB (which is basically the admin user for FTP). I also have a user with read only access with a different username and password. Check these:

 

post-431588-0-99259500-1378521217.png 

post-431588-0-95387000-1378521223.png

post-431588-0-88901900-1378521299.png

post-431588-0-62668600-1378521314.png

post-431588-0-20685400-1378521400.png

 

Part of the problem now is that I cant get the location reset back to default. Everytime i open http://192.168.1.100/owncloud/, it points to the same smb location

 

I'm looking this would be in config.php (/var/www/owncloud/config). But the config file won't open with the text editor. Looks like i might need to re-instal?

 

 

Not sure I understand...

 

why don't you just mount the share as a folder and point owncloud at that folder?

 

Hmmm..wel. i'll first need to get the location reset to default. If i mount the smb as a share folder on my Lappi and point the owncloud to the location, it would still have the % symbol there. I'm guessing by mounting you mean as i've done (refer my file manger screenshots). 

The segate is mounted. Plus i'll need this to point everytime and always to my HDD permanently. I don't want to be mounting the folder everytime. Wouldn't that defeat the purpose of using my FTP as storage?

Link to post
Share on other sites
  • 0
+BudMan

%20 is space in html, change your NAME of your device!!

As to mount, why don't you just go into command line of your owncloud install and mount the share via the OS say to /nas and then just in owncloud look to what it thinks is local storage.

  • Like 2
Link to post
Share on other sites
  • 0
Koshur

noob question - where do i change the Device Name. Router? 

Link to post
Share on other sites
  • 0
Aergan
Koshur, on 07 Sept 2013 - 11:55, said:

noob question - where do i change the Device Name. Router? 

 

Yes, likely under the Network or LAN pages looking at that screenshot.

Link to post
Share on other sites
  • 0
+Fahim S.

As to mount, why don't you just go into command line of your owncloud install and mount the share via the OS say to /nas and then just in owncloud look to what it thinks is local storage.

 

Isn't that what I said?

Link to post
Share on other sites
  • 0
Koshur

it wont allow to rename:

 

post-431588-0-69449500-1378552034.png

Link to post
Share on other sites
  • 0
+BudMan

That's what I took what you stated to mean yes.. I just reworded it a bit since he didn't seem to understand it.

"If i mount the smb as a share folder on my Lappi and point the owncloud to the location"

edit: Hit your adsl device directly!!! via its web gui

Link to post
Share on other sites
  • 0
Koshur

BTW, how do i reset this.I tried reinstalling. that didnt work 

post-431588-0-08699800-1378552565.png

Link to post
Share on other sites
  • 0
Koshur

That's what I took what you stated to mean yes.. I just reworded it a bit since he didn't seem to understand it.

"If i mount the smb as a share folder on my Lappi and point the owncloud to the location"

edit: Hit your adsl device directly!!! via its web gui

 

I cant find an option to change the name in router GUI. Where could it possibly be?

Link to post
Share on other sites
  • 0
+BudMan

I just looked in the manual real quick and did not see it to be honest.. Strange! I just got a tp-link TL-WDR3600 to replace my aging wrt54g and move into the dual band world of N.. Couldn't pass up the deal of $42 to use as accesspoint.

And in the few minutes I had the native firmware on it, not sure if it had a place to change hostname? But I did not bother with smb stuff.. But here in dd-wrt gui is where you would set it

post-14624-0-46865400-1378553168.png

I would have to assume anything that could share out via smb must have place to change its name and what workgroup its a member of -- this would be for network browsing features and grouping, etc.

Link to post
Share on other sites
  • 0
Koshur

I've not flashed the firmware to dd-wrt. I'm using TP link's built in firmware. Mine is TD-w8968 and I don't see the NAS option you have. Does this mean I'll have to flash the firmware (that would void the warranty)

Link to post
Share on other sites
  • 0
+BudMan

I doubt you can flash to dd-wrt if with a ADSL device.. I can not believe a device would allow sharing via smb/cifs and not allow changing of its name?? Or what workgroup its a member of. Like I said I had their crappy firmware on for about 3 minutes - enough time to flash it to dd-wrt ;)

But in the example they show using IP address to access it.

Mount it via command line and the ip address to a folder as suggested in the OS of the box your running owncloud on.

Link to post
Share on other sites
  • 0
Koshur

would it be "sudo mount <source location> <mount point folder/destination>" ??

Link to post
Share on other sites
  • 0
Koshur

Yes - that'll do it for a one-time mount.

 

You need to edit /etc/fstab for something that mounts automatically at boot.

 

See: http://www.ghacks.net/2009/04/19/auto-mounting-a-samba-share-in-linux/

 Thanks, Ill try this, would this fix "Can't create data directory" error? or would I need to reset the config.php (which i really can't figure out)

 

Ran the command, got this error. 

root@koshur-HP-ProBook-4530s:/home/koshur# //192.168.1.1/segate(sda1) -U admin
bash: syntax error near unexpected token `sda1'
root@koshur-HP-ProBook-4530s:/home/koshur# 

Link to post
Share on other sites
  • 0
Koshur

Requesting a TM session.. 

 

User ID: 196281112

Link to post
Share on other sites
  • 0
+Fahim S.

I think you can just delete config.php

Link to post
Share on other sites
  • 0
Koshur

I think you can just delete config.php

Tried to. but i wont allow. throws permission error. 

Link to post
Share on other sites
  • 0
+Fahim S.

use sudo?

Link to post
Share on other sites
  • 0
Koshur

ok. so i root into the /var/www/owncloud/config and deleted the config.php and config-sample.php. and i now see the default login screen! But i'm still dicey about the auto mount would work since it wont recognize  

root@koshur-HP-ProBook-4530s:/home/koshur# //192.168.1.1/segate(sda1) -U admin

Link to post
Share on other sites
  • 0
+BudMan

Ok for one thing from your screeny, seqate(sda1) is NOT your share name.. its just segate

See

post-14624-0-17455800-1378557622.png

So I have no idea why your putting that in your command? That might be your whole issue in your smb : // attempt..

And wouldn't it be seagate anyway? That is the name of the drive company, not segate ;)

Link to post
Share on other sites
  • 0
Koshur

Ok for one thing from your screeny, seqate(sda1) is NOT your share name.. its just segate

See

attachicon.gifsharename.png

So I have no idea why your putting that in your command? That might be your whole issue in your smb : // attempt..

And wouldn't it be seagate anyway? That is the name of the drive company, not segate ;)

 

ok, so here's the output:

root@koshur-HP-ProBook-4530s:/home/koshur# smbclient //192.168.1.1/segate -U admin
Enter admin's password: 
Domain=[WORKGROUP] OS=[Unix] Server=[Samba 3.0.14a]
tree connect failed: NT_STATUS_BAD_NETWORK_NAME
root@koshur-HP-ProBook-4530s:/home/koshur# 

segate - well this would have been how it first can to my mind. :)

 

Here is how my Index of look like for admin:

post-431588-0-98111600-1378558620.png

Link to post
Share on other sites
This topic is now closed to further replies.
  • Recently Browsing   0 members

    No registered users viewing this page.

  • Similar Content

    • By News Staff
      Office 365 User Guide ($23.99 Value) - free until tomorrow
      by Steven Parker

      Claim your complimentary eBook (worth $23.99) for free, before the offer expires tomorrow on 01/27.



      Microsoft Office 365 combines the popular Office suite with next-generation cloud computing capabilities. With this user guide, you'll be able to implement its software features for effective business communication and collaboration.



      This book begins by providing you with a quick introduction to the user interface (UI) and the most commonly used features of Office 365. After covering the core aspects of this suite, you'll learn how to perform various email functions via Exchange. Next, you will learn how to communicate using Skype for Business and Microsoft Teams. To boost your productivity, this book will help you learn everything from using instant messaging to conducting audio and web conferences, and even accessing business information from any location. In the final chapters, you will learn to work in a systematic style using file management and collaboration with OneDrive for Business using SharePoint.

      By the end of this book, you'll be equipped with the knowledge you need to take full advantage of Office 365 and level up your organization's productivity.

      This free offer expires tomorrow on Jan 27.

      How to get it
      Please ensure you read the terms and conditions to claim this offer. Complete and verifiable information is required in order to receive this free offer. If you have previously made use of these free offers, you will not need to re-register. While supplies last!

      >> Office 365 User Guide ($23.99 Value) - free download <<
      Offered by Packt Publishing, view their other free resources. Expires 01/27/20.

      Not for you?
      That's OK, there are other free eBooks on offer you can check out here.



      Home Gym Giveaway | Ultimate Gaming Giveaway (feat. PlayStation 5 & Xbox Series X) Ivacy VPN - 5 year subscription for just $1 per month NordVPN - 2 year subscription at up to 68% off Private Internet Access VPN - subscriptions at up to 71% off Unlocator VPN or SmartDNS - unblock Geoblock with 7-day free trial Neowin Store for our preferred partners. Subscribe to Neowin - for $14 a year, or $28 a year for Ad-Free experience Disable Sponsored posts · Neowin Deals · Free eBooks · Neowin Store

      Disclosure: A valid email address is required to fulfill your request. Complete and verifiable information is required in order to receive this offer. By submitting a request, your information is subject to TradePub.com's Privacy Policy.

    • By News Staff
      Network Automation Cookbook ($27.99 Value) - free download
      by Steven Parker

      Claim your complimentary eBook (worth $27.99) for free, before the offer expires tomorrow on 02/03.



      Network Automation Cookbook is designed to help system administrators, network engineers, and infrastructure automation engineers to centrally manage switches, routers, and other devices in their organization's network.

      This book will help you gain hands-on experience in automating enterprise networks and take you through core network automation techniques using the latest version of Ansible and Python.



      With the help of practical recipes, you'll learn how to build a network infrastructure that can be easily managed and updated as it scales through a large number of devices. You'll also cover topics related to security automation and get to grips with essential techniques to maintain network robustness. As you make progress, the book will show you how to automate networks on public cloud providers such as AWS, Google Cloud Platform, and Azure. Finally, you will get up and running with Ansible 2.9 and discover troubleshooting techniques and network automation best practices.

      By the end of this book, you'll be able to use Ansible to automate modern network devices and integrate third-party tools such as NAPALM, NetBox, and Batfish easily to build robust network automation solutions.

      This free offer expires on Feb 3.

      How to get it
      Please ensure you read the terms and conditions to claim this offer. Complete and verifiable information is required in order to receive this free offer. If you have previously made use of these free offers, you will not need to re-register. While supplies last!

      >> Network Automation Cookbook ($27.99 Value) - free download <<
      Offered by Packt Publishing, view their other free resources. Expires 02/03/21.

      Not for you?
      That's OK, there are other free eBooks on offer you can check out here.



      Home Gym Giveaway | Ultimate Gaming Giveaway (feat. PlayStation 5 & Xbox Series X) Ivacy VPN - 5 year subscription for just $1 per month NordVPN - 2 year subscription at up to 68% off Private Internet Access VPN - subscriptions at up to 71% off Unlocator VPN or SmartDNS - unblock Geoblock with 7-day free trial Neowin Store for our preferred partners. Subscribe to Neowin - for $14 a year, or $28 a year for Ad-Free experience Disable Sponsored posts · Neowin Deals · Free eBooks · Neowin Store

      Disclosure: A valid email address is required to fulfill your request. Complete and verifiable information is required in order to receive this offer. By submitting a request, your information is subject to TradePub.com's Privacy Policy.

    • By News Staff
      VideoProc v4.1 (worth $78.90) now free to download
      by Steven Parker

      Claim your free license (worth $78.90) today, before the offer expires on Feb 9.



      Here's your free download of a licensed copy of VideoProc - an easy solution to process, download and convert video/audio, record screen, rip & backup DVD with hardware acceleration.

      VideoProc Main Features:



      HD screen/webcam recording: record full or part of PC/Mac screen with system and microphone sound, record with webcam; record with webcam and screen (Picture-in-picture mode). Convert video/audio/DVD to 420+ formats and devices: such as MP4 H.264/HEVC, MP3, WAV, AVI, MOV, WMV, WebM, AVCHD, iPhone, iPad, Android, etc. Edit video easily: cut, merge, crop, rotate, flip, add subtitle/effect/watermark, adjust speed/brightness/volume, stabilize, reduce video noise, fix video/audio out of sync, etc. Built-in downloader engine: save video, audio, playlists from YTB, FB, TikTok and 1000+ sites, record live stream. Support GPU hardware acceleration: 47X faster to process large/long videos. Low CPU usage, no quality loss. Free offer expires on Feb 9. Download Now!

      How to get it:
      Complete and verifiable information is required in order to receive it. If you have previously made use of these free offers, you will not need to re-register. While supplies last! Please ensure you read the terms and conditions to claim this offer.

      >> VideoProc v4.1 for Windows/Mac ($78.90 Value) - FREE <<
      Offered by Digiarty WinXDVD, view our other free resources. Limited time offer.

      Not for you?
      That's OK, there are other free eBooks on offer you can check out here.



      Home Gym Giveaway | Ultimate Gaming Giveaway (feat. PlayStation 5 & Xbox Series X) Ivacy VPN - 5 year subscription for just $1 per month NordVPN - 2 year subscription at up to 68% off Private Internet Access VPN - subscriptions at up to 71% off Unlocator VPN or SmartDNS - unblock Geoblock with 7-day free trial Neowin Store for our preferred partners. Subscribe to Neowin - for $14 a year, or $28 a year for Ad-Free experience Disable Sponsored posts · Neowin Deals · Free eBooks · Neowin Store

      Disclosure: A valid email address is required to fulfill your request. Complete and verifiable information is required in order to receive this offer. By submitting a request, your information is subject to TradePub.com's Privacy Policy.

    • By News Staff
      Office 365 User Guide ($23.99 Value) - free download
      by Steven Parker

      Claim your complimentary eBook (worth $23.99) for free, before the offer expires on 01/27.



      Microsoft Office 365 combines the popular Office suite with next-generation cloud computing capabilities. With this user guide, you'll be able to implement its software features for effective business communication and collaboration.



      This book begins by providing you with a quick introduction to the user interface (UI) and the most commonly used features of Office 365. After covering the core aspects of this suite, you'll learn how to perform various email functions via Exchange. Next, you will learn how to communicate using Skype for Business and Microsoft Teams. To boost your productivity, this book will help you learn everything from using instant messaging to conducting audio and web conferences, and even accessing business information from any location. In the final chapters, you will learn to work in a systematic style using file management and collaboration with OneDrive for Business using SharePoint.

      By the end of this book, you'll be equipped with the knowledge you need to take full advantage of Office 365 and level up your organization's productivity.

      This free offer expires on Jan 27.

      How to get it
      Please ensure you read the terms and conditions to claim this offer. Complete and verifiable information is required in order to receive this free offer. If you have previously made use of these free offers, you will not need to re-register. While supplies last!

      >> Office 365 User Guide ($23.99 Value) - free download <<
      Offered by Packt Publishing, view their other free resources. Expires 01/27/20.

      Not for you?
      That's OK, there are other free eBooks on offer you can check out here.



      Home Gym Giveaway | Ultimate Gaming Giveaway (feat. PlayStation 5 & Xbox Series X) Ivacy VPN - 5 year subscription for just $1 per month NordVPN - 2 year subscription at up to 68% off Private Internet Access VPN - subscriptions at up to 71% off Unlocator VPN or SmartDNS - unblock Geoblock with 7-day free trial Subscribe to Neowin - for $14 a year, or $28 a year for Ad-Free experience Disable Sponsored posts · Neowin Deals · Free eBooks · Neowin Store

      Disclosure: A valid email address is required to fulfill your request. Complete and verifiable information is required in order to receive this offer. By submitting a request, your information is subject to TradePub.com's Privacy Policy.

    • By News Staff
      Cybersecurity: The Beginner's Guide ($23.99 Value) free offer ends today
      by Steven Parker

      Claim your complimentary eBook (worth $23.99) for free, before the offer expires on 01/19.



      It's not a secret that there is a huge talent gap in the cybersecurity industry.

      Everyone is talking about it including the prestigious Forbes Magazine, Tech Republic, CSO Online, DarkReading, and SC Magazine, among many others. Additionally, Fortune CEO's like Satya Nadella, McAfee's CEO Chris Young, Cisco's CIO Colin Seward along with organizations like ISSA, research firms like Gartner too shine light on it from time to time.



      This book put together all the possible information with regards to cybersecurity, why you should choose it, the need for cyber security and how can you be part of it and fill the cybersecurity talent gap bit by bit. Starting with the essential understanding of security and its needs, we will move to security domain changes and how artificial intelligence and machine learning are helping to secure systems. Later, this book will walk you through all the skills and tools that everyone who wants to work as security personal need to be aware of. Then, this book will teach readers how to think like an attacker and explore some advanced security methodologies. Lastly, this book will deep dive into how to build practice labs, explore real-world use cases and get acquainted with various cybersecurity certifications.

      By the end of this book, readers will be well-versed with the security domain and will be capable of making the right choices in the cybersecurity field.

      This free offer expires on Jan 19.

      How to get it
      Please ensure you read the terms and conditions to claim this offer. Complete and verifiable information is required in order to receive this free offer. If you have previously made use of these free offers, you will not need to re-register. While supplies last!

      >> Cybersecurity: The Beginner's Guide ($23.99 Value) - free download <<
      Offered by Packt Publishing, view their other free resources. Expires 01/19/20.

      Not for you?
      That's OK, there are other free eBooks on offer you can check out here, but be aware that these are all time-limited offers. If you are uncomfortable sharing your details with a third-party sponsor, we understand. Check out the Neowin Store for our preferred partners.



      Home Gym Giveaway | Ultimate Gaming Giveaway (feat. PlayStation 5 & Xbox Series X) Ivacy VPN - 5 year subscription for just $1 per month NordVPN - 2 year subscription at up to 68% off Private Internet Access VPN - subscriptions at up to 71% off Unlocator VPN or SmartDNS - unblock Geoblock with 7-day free trial Subscribe to Neowin - for $14 a year, or $28 a year for Ad-Free experience Disable Sponsored posts · Neowin Deals · Free eBooks · Neowin Store

      Disclosure: A valid email address is required to fulfill your request. Complete and verifiable information is required in order to receive this offer. By submitting a request, your information is subject to TradePub.com's Privacy Policy.