Difference between revisions of "Ubuntu Tips"

From rbachwiki
Jump to navigation Jump to search
Line 3: Line 3:
edit the /etc/mysql/my.cnf # the bind address which is usurally 127.0.0.1
edit the /etc/mysql/my.cnf # the bind address which is usurally 127.0.0.1
  </pre>
  </pre>
== Installing Bittorrent Sync ==
<pre>
sh -c 'echo "deb http://linux-packages.getsync.com/btsync/deb btsync non-free" > /etc/apt/sources.list.d/btsync.list'
wget -qO - http://linux-packages.getsync.com/btsync/key.asc | sudo apt-key add -
sudo apt-get update
sudo apt-get install btsync
</pre>
'''Autostart Bitsync: add "Service btsync start" to the /etc/rc.local file'''
<pre>
How to Use BT sync:
There’s already a few great tutorials about setting up Btsync in Ubuntu around the web. And below is a brief how-to:
First create a shared folder and set its permissions, here I created a folder shared_folder under the root of my current user:
cd && mkdir shared_folder
sudo chown YOUR_USER:btsync shared_folder
sudo chmod 2775 shared_folder
sudo usermod -a -G btsync YOUR_USER
Then start the btsync service:
sudo service btsync start
You may replace start with stop, enable, disable, or status to control Btsync.
Now go to localhost:8888 in your web browser and add the previous created folder:
Finally share the link, key, or QRcode with your friends and enjoy!
</pre

Revision as of 19:10, 5 August 2016

Allow port 3306 to be accessible externally

edit the /etc/mysql/my.cnf # the bind address which is usurally 127.0.0.1
 

Installing Bittorrent Sync

sh -c 'echo "deb http://linux-packages.getsync.com/btsync/deb btsync non-free" > /etc/apt/sources.list.d/btsync.list'
 
wget -qO - http://linux-packages.getsync.com/btsync/key.asc | sudo apt-key add - 
sudo apt-get update
 
sudo apt-get install btsync

Autostart Bitsync: add "Service btsync start" to the /etc/rc.local file

How to Use BT sync:

There’s already a few great tutorials about setting up Btsync in Ubuntu around the web. And below is a brief how-to:

First create a shared folder and set its permissions, here I created a folder shared_folder under the root of my current user:

cd && mkdir shared_folder

sudo chown YOUR_USER:btsync shared_folder

sudo chmod 2775 shared_folder

sudo usermod -a -G btsync YOUR_USER
Then start the btsync service:

sudo service btsync start
You may replace start with stop, enable, disable, or status to control Btsync.

Now go to localhost:8888 in your web browser and add the previous created folder:

Finally share the link, key, or QRcode with your friends and enjoy!
</pre