christophk

Members
  • Posts

    19
  • Joined

  • Last visited

Posts posted by christophk

  1. Dear all

     

    I am using btsync constantly and it's a great software.

    Thanks a lot for the cool program.

     

    I need a bit of help in order to make the access to the WebGUI of a linux btsync client encrypted with SSL.

     

    Is there any howto, how this might be possible? I only found something for nginx, but I don't know nginx at all.

     

    Currently I am trying the following:

     

    on my domain example.com I want to use the subdomain bit.example.com to access the btsync webgui.

    I tried to keep it simple So without SSL I did this in my /etc/apache2/sites-available:

     

    <VirtualHost *:80>

            ServerName      bit.example.com

            Redirect permanent / http://bit.example.com:8888

    </VirtualHost>

     

    This works for http. Now I want to try it with https, so I did this:

     

    <VirtualHost *:80>

            ServerName      bit.example.com

            Redirect permanent / https://bit.yna.cc:8888

    </VirtualHost>

     

    And added the certificates my SSL sites-available config file:

     

    <VirtualHost *:8888>

     

            ServerName      bit.example.com

     

            SSLEngine On

     

            SSLCertificateFile /etc/apache2/certs/bit.example.com/ssl.crt

            SSLCertificateKeyFile /etc/apache2/certs/bit.example.com/ssl.key

     

    </VirtualHost>

     

    I also tried the same, listening on port 443. But I only get error messages that there is an internal server problem.

    Can someone point me into the right direction what I have to do here?

     

    Every support would be very much appreciated,

     

    KR, Chris

  2. Hi Tuxpoldo

     

    I see !!!

     

    I just did add-apt-repository ppa:tuxpoldo/btsync

     

    Unfortunately I have no clue how to add the repository on Debian then.

     

    I am lost with these commands:

     

     

    CODENAME=$(lsb_release -cs | sed -n '/lucid\|precise\|quantal\|raring\|saucy\|squeeze\|wheezy\|jessie\|sid/p')
    `which sudo` echo deb http://debian.yeasoft.net/btsync ${CODENAME:-sid} main > /etc/apt/sources.list.d/btsync.list
    `which sudo` echo deb-src http://debian.yeasoft.net/btsync ${CODENAME:-sid} main >> /etc/apt/sources.list.d/btsync.list
    unset CODENAME

     

    Those .list files were created in sources.list.d but it seems that with apt-get update tis not taking them into account.

     

    btsync.list  tuxpoldo-btsync-wheezy.list  tuxpoldo-btsync-wheezy.list.save

     

    (I know this is just me being an amatuer, so sorry to waste everyones time...)

     

    EDIT: The solution was to comment out the repository from READYNAS. Then apt-get install btsync used the tuxpoldo repository. All happy!

     

    Thanks for everyones patience.

  3. Dear Tuxpoldo

     

    I am trying to install btsync on a ReadyNAs from Netgear, which is basically a full wheezy debian.

     

    Unfortunately the following happens:

     

    ~# apt-get install btsync
    Reading package lists... Done
    Building dependency tree       
    Reading state information... Done
    The following NEW packages will be installed:
      btsync
    0 upgraded, 1 newly installed, 0 to remove and 27 not upgraded.
    Need to get 2,357 kB of archives.
    After this operation, 6,335 kB of additional disk space will be used.
    Get:1 http://apt.readynas.com/packages/readynasos/ 6.1.4/apps btsync all 1.1.48 [2,357 kB]
    Fetched 2,357 kB in 1s (1,595 kB/s)

    ...

     

     

    This means that btsync is also provided from Readynas, but a very old version (1.1.48).

     

    Do you know how I can force the NAS to install it from your repository?

     

    It's not really related to your product, but I would appreciate a lot any help :)

     

    KR, Christoph

     

     

    Edit: After another apt-get update I get this:

     

     

     

    :/etc/apt# apt-get update
    Hit http://apt.readynas.com 6.1.4 Release.gpg
    Ign http://ppa.launchpad.net wheezy Release.gpg                                       
    Hit http://apt.readynas.com 6.1.4 Release                                             
    Ign http://ppa.launchpad.net wheezy Release                           
    Hit http://mirrors.kernel.org wheezy Release.gpg                      
    Hit http://apt.readynas.com 6.1.4/updates armel Packages
    Hit http://mirrors.kernel.org wheezy Release   
    Err http://ppa.launchpad.net wheezy/main Sources                     
      404  Not Found
    Err http://ppa.launchpad.net wheezy/main armel Packages
      404  Not Found
    Hit http://apt.readynas.com 6.1.4/apps armel Packages
    Hit http://mirrors.kernel.org wheezy/main armel Packages
    Hit http://apt.readynas.com 6.1.4/main armel Packages
    W: Failed to fetch 404  Not Found

    W: Failed to fetch 404  Not Found


    E: Some index files failed to download. They have been ignored, or old ones used instead.

     

     

    Is that the issue?

  4. Thanks a lot tuxpoldo

    I thought that when the config file is being read by the application that the commented (//) lines were always ignored.

    I just learned that this is not true and obviously when reading you explanation in the files now again then it all makes sense and you said it from the beginning.

    I tried it with www-data and it starts and works.

    Thanks a lot again. I think I can take it from here!

    ;-)

  5. Hello tuxpoldo

    Thanks a lot for all the work you put into this and the way how you already helped so many users!

    This is really very much appreciated by many I am sure and certainly by myself!

    I am running your repository successfully and would like to now run another btsync instance with different user permissions.

    It's going to be "www-data" to being able to use btsync in combination with my owncloud installation.

    I am running 12.04 precise headless server.

    I am looking at the sample config file "user-new.conf", but can't understand where you put the parameters DAEMON_UID and DAEMON_UMASK as you describe in your comments in the file. all I see is:

    {

    "device_name": "John Doe's btsync Server",

    "listening_port" : 0,

    "storage_path" : "/home/jdoe/.btsync",

    "check_for_updates" : false,

    "use_upnp" : false,

    "download_limit" : 0,

    "upload_limit" : 0,

    "webui" :

    {

    },

    "shared_folders" :

    [

    {

    "secret" : "bGTbrwreXPW4XxHEmTKnX",

    "dir" : "/home/jdoe/syncdir",

    "use_relay_server" : true,

    "use_dht" : false,

    "search_lan" : true,

    "use_sync_trash" : true

    }

    ]

    }

    I hoped you might be able to point me into the right direction?

    Thanks a lot in advance!

    KR, Chris

  6. Hi xkiter

    I also tried to use BTsync as the owncloud sync client instead of the original one.

    The problem that accurs is this as far as I am concerned:

    Go to the folder where your owncloud data folder is in (e.g. for /home/user/data)

    /home/user/

    and ls -l it:

    drwxrwx--- 7 www-data www-data 4096 Jul 8 14:49 data

    Now go to the folder that is being synced by BTsync:

    /home/user/data/oc-user/files

    and type ls -l.

    inside that folder I have a synced folder (syncfolder) and the permissions are:

    drwxr-xr-x 3 root root 4096 Jul 8 15:15 syncfolder.

    That's because BTsync is running as root on my machine.

    Is that the same for you?

    Then we should just run BTSync as www-data as "Lighting" is proposing.

    Can someone explain me how this is done? Probably not really a btsync issue, more a linux isssue...

    Anyways, would be glad if someone could help!

    I hope the above makes sense...

    Kind Regards,

    CK

  7. Hello Everyone

    I installed btsync (1.1.22) on an AppleTV 1 with Crystalbuntu running on it.

    All works great!

    Just when I try and access via WebUI then I also get the same error message "invalid request".

    Did someone get this topic solved already?

    I tried with chrome and firefox:

    http://10.0.1.23:8888

    http://10.0.1.23:8888/gui

    My conf looks like this:

    {

    "device_name": "AppleTV-K",

    "listening_port" : 8888,

    "storage_path" : "/home/atv/.btsync",

    "pid_file" : "/home/atv/.btsync/btsync.pid",

    "check_for_updates" : false,

    "use_upnp" : false,

    "download_limit" : 0,

    "upload_limit" : 0,

    "webui" : {

    "listen" : "10.0.1.23:8888",

    "login" : "admin",

    "password" : "****"

    },

    "shared_folders" :

    [

    {

    "secret" : "*********************",

    "dir" : "/home/atv/BTSync/",

    "use_relay_server" : true,

    "use_tracker" : true,

    "use_dht" : false,

    "search_lan" : false,

    "use_sync_trash" : false,

    "known_hosts" :

    [

    "10.0.1.5:8888"

    ]

    }

    ]

    }

  8. Thanks Marko!

    I missed the "comma"...

    Extract from the unoffical FAQ's:

    The structure of the shared folder stuff is:

    "shared_folders" :

    [

    {

    shared folder 1 variables in here

    },

    {

    shared folder 2 variables in here

    },

    {

    shared folder 3 variables in here

    }

    ]

    So all you need to do is copy the code block from your config file which is encapsulated by { } and paste it after the existing one using a comma to separate them. Then it is just a case of editing the value accordingly.

    NB. Make sure you don't copy the full shared folder block ie the square brackets. You just want the block inside.

  9. Hello Everyone!

    I can't get my head around how I can add multiple folders (with multiple secrets) to my configuration.

    Currently my configuration looks like below and works fine.

    It would be great if someone could give me a hint on how I could add another folder with another secret into the configuration.

    File: /home/user/.btsync/sync.conf

    {

    "device_name": "MyDeviceName",

    "listening_port" : 8888,

    "storage_path" : "/home/user/.btsync",

    "pid_file" : "/home/user/.btsync/btsync.pid",

    "check_for_updates" : false,

    "use_upnp" : false,

    "download_limit" : 0,

    "upload_limit" : 0,

    "webui" : {

    //"listen" : "0.0.0.0:8888",

    "login" : "admin",

    "password" : "password"

    },

    "shared_folders" :

    [

    {

    "secret" : "mylonglongsecret",

    "dir" : "/home/user/BTSync/Share",

    "use_relay_server" : true,

    "use_tracker" : true,

    "use_dht" : false,

    "search_lan" : false,

    "use_sync_trash" : false,

    "known_hosts" :

    [

    "192.168.1.2:8888"

    ]

    }

    ]

    }

    Thanks a lot in advance!