acmodeu

Members
  • Posts

    35
  • Joined

  • Last visited

Posts posted by acmodeu

  1. Try this:

     

    dpkg -L btsyncsudo ls -la /etc/init.d/b*
    btsync:~$ dpkg -L btsync/./etc/etc/init.d/etc/init.d/btsync/etc/btsync/etc/btsync/samples/etc/btsync/samples/user.conf/etc/btsync/samples/simple.conf/etc/default/etc/default/btsync/var/var/lib/var/lib/btsync/usr/usr/share/usr/share/icons/usr/share/icons/hicolor/usr/share/icons/hicolor/96x96/usr/share/icons/hicolor/96x96/apps/usr/share/icons/hicolor/96x96/apps/btsync.png/usr/share/icons/hicolor/48x48/usr/share/icons/hicolor/48x48/apps/usr/share/icons/hicolor/48x48/apps/btsync.png/usr/share/icons/hicolor/32x32/usr/share/icons/hicolor/32x32/apps/usr/share/icons/hicolor/32x32/apps/btsync.png/usr/share/icons/hicolor/16x16/usr/share/icons/hicolor/16x16/apps/usr/share/icons/hicolor/16x16/apps/btsync.png/usr/share/btsync/usr/share/doc/usr/share/doc/btsync/usr/share/doc/btsync/README.Debian/usr/share/doc/btsync/CREDITS.md/usr/share/doc/btsync/README.md.gz/usr/share/doc/btsync/copyright/usr/share/doc/btsync/changelog.Debian.gz/usr/lib/usr/lib/btsync/etc/btsync/samples/complex.conf/usr/lib/btsync/btsync-daemon@btsync:~$ sudo ls -la /etc/init.d/b*-rwxr-xr-x 1 root root 1276 Oct 15  2012 /etc/init.d/bootlogs-rwxr-xr-x 1 root root 1281 Jul 14  2013 /etc/init.d/bootmisc.sh@btsync:~$
  2. @btsync:~$ ls -la /etc/init.dtotal 332drwxr-xr-x  2 root root  4096 Sep  2 15:53 .drwxr-xr-x 87 root root  4096 Sep  2 15:53 ..-rwxr-xr-x  1 root root  2227 Apr 16  2013 acpid-rwxr-xr-x  1 root root  2554 Aug  4  2012 amule-daemon-rwxr-xr-x  1 root root  1071 Jun 25  2011 atd-rwxr-xr-x  1 root root  1276 Oct 15  2012 bootlogs-rwxr-xr-x  1 root root  1281 Jul 14  2013 bootmisc.sh-rwxr-xr-x  1 root root  3816 Jul 14  2013 checkfs.sh-rwxr-xr-x  1 root root  1099 Jul 14  2013 checkroot-bootclean.sh-rwxr-xr-x  1 root root  9673 Jul 14  2013 checkroot.sh-rwxr-xr-x  1 root root  1379 Dec  9  2011 console-setup-rwxr-xr-x  1 root root  3033 Jul  4  2012 cron-rwxr-xr-x  1 root root  2832 Jun 12  2013 dbus-rw-r--r--  1 root root  1759 Aug 11 08:59 .depend.boot-rw-r--r--  1 root root   808 Aug 11 08:59 .depend.start-rw-r--r--  1 root root   834 Aug 11 08:59 .depend.stop-rwxr-xr-x  1 root root  6435 Jan  2  2013 exim4-rwxr-xr-x  1 root root  6307 Jun 12  2013 fail2ban-rwxr-xr-x  1 root root  1329 Oct 15  2012 halt-rwxr-xr-x  1 root root  1423 Oct 15  2012 hostname.sh-rwxr-xr-x  1 root root  3880 Dec 11  2012 hwclock.sh-rwxr-xr-x  1 root root  7592 Apr 28  2012 kbd-rwxr-xr-x  1 root root  1591 Oct  1  2012 keyboard-setup-rwxr-xr-x  1 root root  1293 Oct 15  2012 killprocs-rwxr-xr-x  1 root root  1990 May 21  2012 kmod-rwxr-xr-x  1 root root  2528 Feb 17  2012 minissdpd-rwxr-xr-x  1 root root   995 Oct 15  2012 motd-rwxr-xr-x  1 root root   670 Feb 24  2013 mountall-bootclean.sh-rwxr-xr-x  1 root root  2128 Feb 24  2013 mountall.sh-rwxr-xr-x  1 root root  1508 Jul 14  2013 mountdevsubfs.sh-rwxr-xr-x  1 root root  1413 Jul 14  2013 mountkernfs.sh-rwxr-xr-x  1 root root   678 Feb 24  2013 mountnfs-bootclean.sh-rwxr-xr-x  1 root root  2440 Oct 15  2012 mountnfs.sh-rwxr-xr-x  1 root root  1731 Jul 14  2013 mtab.sh-rwxr-xr-x  1 root root  4322 Mar 14  2013 networking-rwxr-xr-x  1 root root  6491 May 11  2013 nfs-common-rwxr-xr-x  1 root root  1814 Dec 26  2009 ntp-rwxr-xr-x  1 root root  1346 May 20  2012 procps-rwxr-xr-x  1 root root  6120 Oct 15  2012 rc-rwxr-xr-x  1 root root   782 Oct 15  2012 rc.local-rwxr-xr-x  1 root root   117 Oct 15  2012 rcS-rw-r--r--  1 root root  2427 Oct 15  2012 README-rwxr-xr-x  1 root root   639 Oct 15  2012 reboot-rwxr-xr-x  1 root root  1074 Jul 14  2013 rmnologin-rwxr-xr-x  1 root root  2344 Jun 15  2012 rpcbind-rwxr-xr-x  1 root root  3054 Mar  6  2013 rsyslog-rwxr-xr-x  1 root root  3023 Aug 15  2013 samba-rwxr-xr-x  1 root root  1163 Sep 16  2012 screen-cleanup-rwxr-xr-x  1 root root  3200 Oct 15  2012 sendsigs-rwxr-xr-x  1 root root   590 Oct 15  2012 single-rw-r--r--  1 root root  4290 Oct 15  2012 skeleton-rwxr-xr-x  1 root root  3881 Feb  9  2013 ssh-rwxr-xr-x  1 root root   714 Jun 28  2012 sudo-rwxr-xr-x  1 root root  1906 May 28  2012 transmission-daemon-rwxr-xr-x  1 root root  8827 Nov  9  2012 udev-rwxr-xr-x  1 root root  1179 Aug 20  2012 udev-mtab-rwxr-xr-x  1 root root  2721 Apr 10  2013 umountfs-rwxr-xr-x  1 root root  2195 Apr 10  2013 umountnfs.sh-rwxr-xr-x  1 root root  1122 Oct 15  2012 umountroot-rwxr-xr-x  1 root root  3111 Oct 15  2012 urandom-rwxr-xr-x  1 root root 40372 Mar 19 01:02 vmware-tools-rwxr-xr-x  1 root root  1369 Apr 13 22:34 winbind-rwxr-xr-x  1 root root  2666 Mar  3  2012 x11-common

    reinstall:

    btsync:~$ sudo apt-get -y remove btsync[sudo] password for root:Reading package lists... DoneBuilding dependency treeReading state information... DoneThe following package was automatically installed and is no longer required:  btsync-commonUse 'apt-get autoremove' to remove it.The following packages will be REMOVED:  btsync0 upgraded, 0 newly installed, 1 to remove and 0 not upgraded.After this operation, 283 kB disk space will be freed.(Reading database ... 38925 files and directories currently installed.)Removing btsync ...@btsync:~$ sudo apt-get -y install btsyncReading package lists... DoneBuilding dependency treeReading state information... DoneSuggested packages:  bind-shimThe following NEW packages will be installed:  btsync0 upgraded, 1 newly installed, 0 to remove and 0 not upgraded.Need to get 0 B/75.1 kB of archives.After this operation, 283 kB of additional disk space will be used.Preconfiguring packages ...Selecting previously unselected package btsync.(Reading database ... 38909 files and directories currently installed.)Unpacking btsync (from .../btsync_1.4.0-2_all.deb) ...Setting up btsync (1.4.0-2) ...@btsync:~$ ls -la /etc/init.d/bls: cannot access /etc/init.d/b: No such file or directory@btsync:~$ ls -la /etc/init.d/b*-rwxr-xr-x 1 root root 1276 Oct 15  2012 /etc/init.d/bootlogs-rwxr-xr-x 1 root root 1281 Jul 14  2013 /etc/init.d/bootmisc.sh
  3. @btsync:~$ dpkg -l btsyncDesired=Unknown/Install/Remove/Purge/Hold| Status=Not/Inst/Conf-files/Unpacked/halF-conf/Half-inst/trig-aWait/Trig-pend|/ Err?=(none)/Reinst-required (Status,Err: uppercase=bad)||/ Name                               Version                Architecture           Description+++-==================================-======================-======================-=========================================================================ii  btsync                             1.4.0-2                all                    Private network P2P file synchronisation daemon(s)
    @btsync:~$ ls -la /etc/init.d/btsyncls: cannot access /etc/init.d/btsync: No such file or directory

    I have to manually run it because it doesn't start itself. AFAIR it was after new install.

     

    May be there is a way to clean all the traces of btsync and install it as new?

  4. Something weird happens now:

    ~$ sudo aptitude install btsyncThe following NEW packages will be installed:  btsync btsync-common{a}0 packages upgraded, 2 newly installed, 0 to remove and 0 not upgraded.Need to get 0 B/5,661 kB of archives. After unpacking 8,570 kB will be used.Do you want to continue? [Y/n/?] yPreconfiguring packages ...Selecting previously unselected package btsync-common.(Reading database ... 38899 files and directories currently installed.)Unpacking btsync-common (from .../btsync-common_1.4.72-1_amd64.deb) ...Selecting previously unselected package btsync.Unpacking btsync (from .../btsync_1.4.0-2_all.deb) ...Setting up btsync-common (1.4.72-1) ...Setting up btsync (1.4.0-2) ...

    I have to manually run sudo dpkg-reconfigure btsync and then there is nothing:

    sudo /etc/init.d/btsync startsudo: /etc/init.d/btsync: command not found
  5. Having trouble installing new btsync:

    sudo aptitude install btsyncThe following NEW packages will be installed:  btsync btsync-common{a}0 packages upgraded, 2 newly installed, 0 to remove and 0 not upgraded.Need to get 5,661 kB of archives. After unpacking 8,570 kB will be used.Do you want to continue? [Y/n/?] yGet: 1 http://debian.yeasoft.net/btsync/ wheezy/main btsync-common amd64 1.4.72-1 [5,586 kB]Get: 2 http://debian.yeasoft.net/btsync/ wheezy/main btsync all 1.4.0-1 [75.0 kB]Fetched 5,661 kB in 3s (1,464 kB/s)Preconfiguring packages ...Selecting previously unselected package btsync-common.(Reading database ... 38898 files and directories currently installed.)Unpacking btsync-common (from .../btsync-common_1.4.72-1_amd64.deb) ...Selecting previously unselected package btsync.Unpacking btsync (from .../btsync_1.4.0-1_all.deb) ...Setting up btsync-common (1.4.72-1) ...Setting up btsync (1.4.0-1) ...dpkg: error processing btsync (--configure): subprocess installed post-installation script returned error exit status 1Errors were encountered while processing: btsyncE: Sub-process /usr/bin/dpkg returned an error code (1)A package failed to install.  Trying to recover:Setting up btsync (1.4.0-1) ...dpkg: error processing btsync (--configure): subprocess installed post-installation script returned error exit status 1Errors were encountered while processing: btsync
  6. Please do the following now:

            

             Open /etc/btsync/acmodeu.conf in an editor and do the following:

    • Write something informative in the header (like: THIS IS ACMODEU'S VERY PERSONALIZED CONFIGURATION FILE) and remove the old header information. It is always a good idea to keep things well documented. Since the file is now maintained by you, it would be wrong to keep information like "this file is maintained by debconf"
    • Change the storage_dir to /var/lib/btsync-acmodeu
    • Make all changes you need (like adding DAEMON_UID and DAMON_GID)

     

    As long as I set DAEMON_UID variable btsync can't start. May be there is something else that should be done?

  7. Once again I would like to return to umask and btsync odd behavior:

     

    0) I have // DAEMON_UMASK=0002 in /etc/btsync/debconf-default.conf

    1) I have "Archive" folder syncing with Windows machine with following rights

     

    drwxrwsr-x  19 root btsync 4.0K Oct 22 17:20 Archive

     

    2) I copied "test_folder" with "test_file.iso" in it to the "Archive" folder on windows machine.

     

    3) And here is the syncing result:

     

    ls -lah /var/lib/btsync/Archive/test_folder/
    total 19M
    drwxrwxr-x  2 root btsync 4.0K Oct 22 17:20 .
    drwxrwsr-x 19 root btsync 4.0K Oct 22 17:20 ..
    -rw-rw-r--  1 root root    19M Sep  6 14:16 test_file.iso

     

    Why did the group setting changed to root on test_file.iso instead of staying on btsync?