PainFreePc Posted October 21, 2013 Report Share Posted October 21, 2013 This is BTSync start-up script i use for ubuntu 12.04Source: http://askubuntu.com/questions/284683/how-to-run-bittorrent-sync i installed BTSync in a folder called "syncme" in my home directory,My user name is "bob" so my start-up script looks like this: sudo vi /etc/init.d/btsyncorsudo nano /etc/init.d/btsync#! /bin/sh# /etc/init.d/btsync## Carry out specific functions when asked to by the systemcase "$1" instart) /home/bob/syncme/btsync --config /home/bob/syncme/btsync.config ;;stop) killall btsync ;;*) echo "Usage: /etc/init.d/btsync {start|stop}" exit 1 ;;esacexit 0Save the file and exit Start BT Sync Service:sudo chmod 755 /etc/init.d/btsyncsudo update-rc.d btsync defaultssudo service btsync startNOTE: My bysync.conf file looks like this:sudo nano /home/blackboy/syncme/btsync.config{ "use_upnp" : false, "download_limit" : 0, "upload_limit" : 0, "check_for_updates" : true, "device_name": "BTSync @ VPS Server1", "listening_port" : 0, // 0 - randomize port "webui": { "listen" : "0.0.0.0:xxxx", //replace xxxx with your port number "login" : "pick a user name", "password" : "pick a password" }/* !!! if you set shared folders in config file WebUI will be DISABLED !!! shared directories specified in config file override the folders previously added from WebUI.*//* , "shared_folders" : [ {// use --generate-secret in command line to create new secret "secret" : "MY_SECRET_1", // * required field "dir" : "/home/user/bittorrent/sync_test", // * required field// use relay server when direct connection fails "use_relay_server" : true, "use_tracker" : true, "use_dht" : false, "search_lan" : false,// enable sync trash to store files deleted on remote devices "use_sync_trash" : false,// specify hosts to attempt connection without additional search "known_hosts" : [ "192.168.1.2:44444" ] } ]*/// Advanced preferences can be added to config file.// Info is available in BitTorrent Sync User Guide.} Quote Link to comment Share on other sites More sharing options...
tuxpoldo Posted October 21, 2013 Report Share Posted October 21, 2013 Have you seen this? Quote Link to comment Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.