Archiv des Autors: cia

Rclone mit OSX und GoogleDrive – verschlüsselt

Beschreibung:

Auf einem Google-Drive wird der Ordner „rclone“ erstellt. Innerhalb dieses Ordners werden verschlüsselte Ordner für jede Anwendung erstellt, z.B. ebooks

Vorarbeit

Einloggen in Google-Drive, Erstellen des Ordners „rclone“.
Auf den Ordner klicken. Im Browser die root-folder-id (string nach folders/) kopieren.

Installation

brew install rclone

Einrichten

rclone config

neue remote
name rclone
google drive auswählen

client_id und client_secret

ignorieren (return) eintragen. Auf der Google-Console können neue IDs und Secrets erstellt werden. siehe https://rclone.org/drive/#making-your-own-client-id

3 Auswählen für
 3 | These are visible in the drive website.
   | File authorization is revoked when the user deauthorizes the app.
   \ "drive.file"

root-folder-id:
Die Id aus Vorarbeit eintragen. Damit wird der bereits erstellte Ordner „rclone“ als root des rclone-Dateisystems benutzt.

service_account

leer lassen

Bei

AutoSetup

Wenn das Setup remote geschieht, No wählen.
Es wird eine Auth-Id angefordert, dazu muss man sich im Browser bei der GSuite authorisierien.

Die rclone-config Datei findet man unter MacOS unter:

.config/rclone/rclone.conf

Sollte am Ende so aussehen:

[rclone]
type = drive
client_id =
client_secret =
scope = drive.file
root_folder_id = dev$n232nv...
service_account_file =
token = {"access_token":

Crypt:

Noch einmal rclone config starten
Name:

chris-crypt
Art: 8 Encrypt/Decrypt a remote

Jetzt den Namen der vorigen Remote eingeben und einen Pfad anhängen:
Beispiel:

rclone:/chris-crypt
Encrypt File Names "standard"

wählen

1 Encrypt Directory Names

wählen

Yes Type in my own password

Am Ende sollte das so aussehen:

[chris-crypt]
type = crypt
remote = rclone:/chris-crypt
filename_encryption = standard
directory_name_encryption = true
password = *** ENCRYPTED ***
password2 = *** ENCRYPTED ***

——————–

Anwendung:

rclone copy test-macbook/ chris-crypt:/macbook/
kopiert den Inhalt von test-macbook nach google-drive/rclone/chris-crypt/macbook

In der Google-Drive Webanwendung sieht man den namen des Ordners „chris-crypt“ noch klar lesbar, danach sind sowohl Inhalt, Dateinamen als auch Ordnernamen verschlüsselt.

Mit RcloneBrowser kann man bequem durch die normalen und verschlüsselten Ordner browsen, Datei-Operationen durchführen oder einen Ordner direkt mounten.

Analog ist besser Part XXI

“Whatever you now find weird, ugly, uncomfortable and nasty about a new medium will surely become its signature. CD distortion, the jitteriness of digital video, the crap sound of 8-bit – all of these will be cherished and emulated as soon as they can be avoided. It’s the sound of failure: so much modern art is the sound of things going out of control, of a medium pushing to its limits and breaking apart. The distorted guitar sound is the sound of something too loud for the medium supposed to carry it. The blues singer with the cracked voice is the sound of an emotional cry too powerful for the throat that releases it. The excitement of grainy film, of bleached-out black and white, is the excitement of witnessing events too momentous for the medium assigned to record them.” -Brian Eno

Mehrere avi-Dateien zu einer zusammenfügen (OSX)

cat part1.avi part2.avi part3.avi > tmp.avi && mencoder -forceidx -oac copy -ovc copy tmp.avi -o output.avi && rm -f tmp.avi

 

wenn es nicht funktioniert:

-bash: mencoder: command not found. Download ffmpegXbinaries20060307.zip unzip and then copy mencoder to /usr/local/bin

howto: ssh-forwarding

Local vs Remote SSH port forwarding

When it comes to the art of SSH tunnelling, there are basically two options where to relay a port to.

You can relay a port from a remote server to your local machine with ssh -L, hence called local port forwarding. A very basic use-case is if your remote server has a MySQL database daemon listening on port 3306 and you want to access this daemon from your local computer.

The second option is to make your local port available on a remote server (ssh -R). Remote port forwarding might come in handy if you for example want to make your local web-server available on a port of a public server, so that someone can quickly check what your local web-server provides without having to deploy it somewhere publicly.

It should now be pretty easy to remember: Local and remote port forwarding always refers to where to relay the port to. The SSH command syntax uses the same easy to remember abbreviations: -L (forward to my local machine) and -R (forward to my remote machine).

 

Mehr bei http://www.everythingcli.org/ssh-tunnelling-for-fun-and-profit-local-vs-remote/

Weiterlesen

Munin Grafiken aktualisieren sich nicht

Nachdem man per Telnet geprüft hat ob die Clients da sind, prüft man den Munin-Master

Prüfen on munin-cron funktioniert:

sh-3.2# munin-cron

Can’t locate RRDs.pm in @INC (@INC contains: /opt/local/lib/perl5/site_perl/5.16.3/darwin-thread-multi-2level /opt/local/lib/perl5/site_perl/5.16.3 /opt/local/lib/perl5/vendor_perl/5.16.3/darwin-thread-multi-2level /opt/local/lib/perl5/vendor_perl/5.16.3 /opt/local/lib/perl5/5.16.3/darwin-thread-multi-2level /opt/local/lib/perl5/5.16.3 /opt/local/lib/perl5/site_perl /opt/local/lib/perl5/vendor_perl .) at /opt/local/lib/perl5/site_perl/5.16.3/Munin/Master/Utils.pm line 22.

BEGIN failed–compilation aborted at /opt/local/lib/perl5/site_perl/5.16.3/Munin/Master/Utils.pm line 22.

Compilation failed in require at /opt/local/lib/perl5/site_perl/5.16.3/Munin/Master/UpdateWorker.pm line 18.

BEGIN failed–compilation aborted at /opt/local/lib/perl5/site_perl/5.16.3/Munin/Master/UpdateWorker.pm line 18.

Compilation failed in require at /opt/local/lib/perl5/site_perl/5.16.3/Munin/Master/Update.pm line 17.

BEGIN failed–compilation aborted at /opt/local/lib/perl5/site_perl/5.16.3/Munin/Master/Update.pm line 17.

Compilation failed in require at /opt/local/lib/munin/munin-update line 13.

BEGIN failed–compilation aborted at /opt/local/lib/munin/munin-update line 13.

 

In diesem Fall passt die Version von rrdtools nicht zur eingesetzten perl-version.

Abhilfe:

sh-3.2# port installed rrdtool

The following ports are currently installed:

  rrdtool @1.4.7_5

  rrdtool @1.4.8_0

  rrdtool @1.4.9_1

  rrdtool @1.5.4_0 (active)

  rrdtool @1.5.5_0

port activate rrdtool @1.4.9_1

sh-3.2# munin-cron

This program will easily break if you run it as root as you are

sh-3.2#

 

Funktionierte dann.