Difference between revisions of "Ubuntu Tips"

From rbachwiki
Jump to navigation Jump to search
 
(26 intermediate revisions by the same user not shown)
Line 1: Line 1:
== Allow port 3306 to be accessible externally ==
=== [[Using bash move efficiently]] ===
<pre>
==[[Upgrade to PHP 8.1]]==
edit the /etc/mysql/my.cnf # the bind address which is usurally 127.0.0.1
==[[Downgrading to PHP 7.4]]==
</pre>
== [[Ubuntu OS]] ==
== Installing Bittorrent Sync ==
===[[Installing IonCubeLoader]]===
<pre>
=== [[User Management]] ===
sh -c 'echo "deb http://linux-packages.getsync.com/btsync/deb btsync non-free" > /etc/apt/sources.list.d/btsync.list'
=== [[Updating Packages]] ===
===[[Apache Error Starting]]===
wget -qO - http://linux-packages.getsync.com/btsync/key.asc | sudo apt-key add -
===[[Install SQLite 3]]===
sudo apt-get update
===[[Installing MBstring for php]]===
===[[PHPMYADMIN]]===
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:
== [[Ubuntu File System Commands]] ==
=== [[Permissions on Linux]] ===
=== [[Find Command]] ===
===[[List of Linux Commands A-Z]]===


First create a shared folder and set its permissions, here I created a folder shared_folder under the root of my current user:
== [[Ubuntu Server Setup]] ==
==[[Generating SSH KEY pairs]]==
===[[ Shell Schipting]]===
===[[Setting up a Apache 2 Webserver]]===
===[[My Setup Workflow]]===
===[[Setting Up a Cron Job]]===
===[[Setup Password Authentication with Apache]]===


cd && mkdir shared_folder
==[[Samba Setup]]==
 
== [[Ubuntu Server Utilities]] ==
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>

Latest revision as of 18:04, 29 November 2022