Saturday, 20 April 2019

Linux from the command line -- How to Master the rsync Command in Linux

FTA

"As its name suggests, rsync is a synchronization tool. The first time you use it, it simply copies files and directories from one location to another. Subsequent uses, however, synchronize only the differences between these locations. So, if you add one file to the source directory, rsync will copy only the new file to the destination. This saves a lot of time and bandwidth, especially when copying to a remote location.

Imagine you have 50GB of data you have to synchronize to a remote server. You can schedule rsync to run daily. Instead of having to copy the whole 50GB over and over again, the utility will only send the differences. This might mean it only has to upload a few megabytes of data every day, instead of gigabytes...."

https://www.maketecheasier.com/use-rsync-command-linux/

Sunday, 17 February 2019

Wednesday, 6 February 2019

Linux Command Line Cheat Sheet

https://www.networkworld.com/article/3337516/linux/the-linux-command-line-cheat-sheet.html

Monday, 8 October 2018

Mounting your Google Drive as a file system on OpenSUSE Linux (42.3)


Mounting your Google Drive as a file system on OpenSUSE Linux (42.3)

I know I've talked about this in the past and some of you have been using it for a long time as well, but I never really felt like it was the best solution. I kept hoping something better would come along, or Google themselves would stop being dicks and release a proper, official Google Drive Client for Linux. Alas neither has happened and the OCAML solution isn't that bad actually. So here it is.
If you're not using OpenSUSE, oh well, you'll have to figure out the install part for yourself, but the setting up and running should be similar.

For OpenSUSE 42.3 users, just do as follows, for users of other OpenSUSE releases, you can go to the repo link in your browser, hit up (parent dir) and move into the folder for your version and copy the repo link and substitute that into the following.

Step 1 - Open a root shell
Step 2 - type
zypper ar https://download.opensuse.org/repositories/home:/inescid:/grid/openSUSE_Leap_42.3/home:inescid:grid.repo
Step 3 - type
zypper in google-drive-ocamlfuse
Answer "a" when asked about trusting the repo.
Step 4 - leave root shell, go to regular user shell
Step 5 - Make a directory to mount your Google Drive on, eg.
mkdir ~/G-Drive
Step 6 - Run the application
google-drive-ocamlfuse
Step 7 - Authorize the application
step 6 should have caused a browser window to pop up and taken you to your Google Login page. Login, pick your google account with the G-Drive you want to mount, and follow the directions to allow the ocaml client to access your G-Drive.
Step 8 - Be patient.
Wait until the following message appears in the terminal window under the command you typed in step 6.
"Access token retrieved correctly."
Step 9 - Mount your G Drive by typing
google-drive-ocamlfuse ~/G-Drive
Step 10 - Test / Enjoy
Either type ls ~/G-Drive or open it in your file manager

Monday, 24 September 2018

Linux from the command line | Linux for sysadmins -- analyzing net traffic with TCPflow

Linux from the command line | Linux for sysadmins -- analyzing net traffic with TCPflow

FTA:
TCPflow is a free, open source, powerful command line based tool for analyzing network traffic on Unix-like systems such as Linux. It captures data received or transferred over TCP connections, and stores it in a file for later analysis, in a useful format that allows for protocol analysis and debugging...
https://www.tecmint.com/tcpflow-analyze-debug-network-traffic-in-linux/

Tuesday, 18 September 2018

Linux from the command line | Linux tips & tricks - powerful document conversion with Pandoc

Linux from the command line | Linux tips & tricks - powerful document conversion with Pandoc

We've all been there. You like application A, but some place you deal with, IE Work, school, etc., only accepts documents in application B's format.

Document conversion to the rescue.
https://opensource.com/article/18/9/intro-pandoc

Sunday, 22 July 2018

Manage your torrents with Linux and Deluge

Manage your torrents with Linux and Deluge

Who want's to leave their desktop PC logged in and running all day for a Torrent? What if you want to play a game or need to reboot?
Solution: Setup a Deluge server and let it deal with these things.
https://linuxconfig.org/set-up-a-headless-deluge-server-on-linux