Difference between revisions of "Ubuntu Tips"

From rbachwiki
Jump to navigation Jump to search
 
(25 intermediate revisions by the same user not shown)
Line 1: Line 1:
=== [[Ubuntu OS]] ===
=== [[Using bash move efficiently]] ===
==[[Upgrade to PHP 8.1]]==
==[[Downgrading to PHP 7.4]]==
== [[Ubuntu OS]] ==
===[[Installing IonCubeLoader]]===
=== [[User Management]] ===
=== [[Updating Packages]] ===
===[[Apache Error Starting]]===
===[[Install SQLite 3]]===
===[[Installing MBstring for php]]===
===[[PHPMYADMIN]]===


== Allow port 3306 to be accessible externally ==
== [[Ubuntu File System Commands]] ==
<pre>
=== [[Permissions on Linux]] ===
edit the /etc/mysql/my.cnf # the bind address which is usurally 127.0.0.1
=== [[Find Command]] ===
</pre>
===[[List of Linux Commands A-Z]]===
== 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:
== [[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]]===


First create a shared folder and set its permissions, here I created a folder shared_folder under the root of my current user:
==[[Samba Setup]]==
 
== [[Ubuntu Server Utilities]] ==
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>

Latest revision as of 18:04, 29 November 2022