Skip to content

Upgrade OpenELEC on Raspberry Pi from version 3.x to 4.x via ssh

  • login via ssh (password is "openelec")
  • cd /storage/downloads
  • download latest build via wget
  • tar xf .tar
  • cp /target/* /storage/.update
  • cd /storage
  • mkdir backup/
  • cp -r .config .xbmc backup//
  • reboot
  • reconfigure what you need
  • donate
Translate to de es fr it pt ja

Jörg Ziercke fordert Mindestspeicherfrist und eine Meldepflicht für TOR-Nutzung an

[...]
Angesichts des erhöhten Datenaufkommens habe das BKA angefangen, mit automatischen Extraktionsprogrammen zu arbeiten. Auf diese Weise könnten polizeiliche Sachbearbeiter Kerninformationen extrahieren, ohne selbst etwa russisch oder arabisch zu können. Aktuell würden auf diese Weise die Sprachen Kurdisch-Sorani und Kinyarwanda mit großem Erfolg in der Terrorbekämpfung eingesetzt. Der computergestützten Auswertung großer fremdsprachiger Datenmengen gehört Ziercke zufolge die Zukunft. Allerdings berge eine solche Technik auch Probleme: "Ist die Nachvollziehbarkeit der intelligenten Datenselektion auch durch Gerichte zu gewährleisten? Werden durch sie die Rechte der Verteidigung eingeschränkt?“
[...]
Aktuell beschrieb Ziercke die Nutzung von Bitcoins und die in TOR-Netzwerken versteckte Silk Road 2.0 als größte Herausforderungen für die Kriminalistik. Während das Auswärtige Amt den TOR-Entwickler Roger Dingledine einlädt und seine Arbeit mitfinanziert, möchte Ziercke die freie Nutzung von TOR-Software am liebsten unter staatliche Melde-Auflagen stellen.
[...]

Quelle

Das die Mindestspeicherfrist, mal wieder, durchs Dorf getrieben wird war klar. Das nur danach gefragt wurde, ob man die computergestützte Auswerkung nicht rechtlich gültig zulassen könnte, zeigt wieder einmal die Realitätsfremde des Greisen BKA Oberhaupts (aus dem Land, für den das Internet "für alle Neuland ist").
. Eine Meldepflicht für genutzte Software? Was kommt als nächstes, ein Führerschein für die SSH, oder "OpenVPN nur zwischen 9 und 18 Uhr"?

Translate to de es fr it pt ja

bash function to search and replace in all files with special extension recursively

Pretty much, the code is below. It is a part of my function collection for the bash.

####

Replaces a string in all files in given path and below

taken from: http://www.cyberciti.biz/faq/unix-linux-replace-string-words-in-many-files/

taken from: http://stackoverflow.com/questions/4437901/find-and-replace-string-in-a-file

taken from: http://stackoverflow.com/questions/7450324/how-do-i-replace-a-string-with-another-string-in-all-files-below-my-current-dir

#

@author stev leibelt artodeto@arcor.de

@since 2013-7-30

#

function netbazzlinereplacestringin_files () { if [[ $# -lt 3 ]]; then echo 'invalid number of arguments provided' echo 'command search replace fileextension [path]' return 1 fi

if [[ $# -eq 4 ]]; then
    find "$4" -name "*.$3" -type f -exec sed -i 's/'"$1"'/'"$2"'/g' {} \;
else
    find . -name "*.$3" -type f -exec sed -i 's/'"$1"'/'"$2"'/g' {} \;
fi

}

Translate to de es fr it pt ja

bash function to sync to and from a remote host by using rsync and ssh

I quickly created two bash functions to use rsync and ssh for syncing directories from the local host to a remote host and vice versa.

The two methods are available on my shell function repository. The two methods are called net_bazzline_sync_from_host and net_bazzline_sync_to_host. Enjoy it :-).

####

Uses rsync with ssh to copy data from remote to local host

#

@param string $1 - remote user

@param string $2 - remote host

@param string $3 - source path on remote host

@param string $4 - destination path on local host

#

@author stev leibelt artodeto@arcor.de

@since 2013-07-05

#

function netbazzlinesyncfromhost () { if [[ $# -eq 4 ]]; then USER="$1" HOST="$2" SOURCE="$3" DESTINATION="$4" else echo 'invalid number of variables provided' echo 'command user host source destination' fi

rsync -avz -e ssh [email protected]$HOST:$SOURCE $DESTINATION

}

#

Uses rsync with ssh to copy data from local to remote host

#

@param string $1 - remote user

@param string $2 - remote host

@param string $3 - source path on local host

@param string $4 - destination path on remote host

#

@author stev leibelt artodeto@arcor.de

@since 2013-07-05

function netbazzlinesynctohost () { if [[ $# -eq 4 ]]; then USER="$1" HOST="$2" SOURCE="$3" DESTINATION="$4" else echo 'invalid number of variables provided' echo 'command user host source destination' fi

rsync -avz -e ssh $SOURCE [email protected]$HOST:$DESTINATION

}

Translate to de es fr it pt ja

tool - Bazzline_Controller_Plugin_Auth - Zend Framework Controller Plugin - now on github.com

I just released my first project on github.com. As mention in the headline, it is called Bazzline_Controller_Plugin_Auth. It is a simple plugin which tests if the called url is a "logged in user" only url or not. If it is "logged in only", the user is redirected to the login. The previously called url is saved in the session. After a successfull login, the user gets redirected to this saved url. All can be configured in a config file.

This plugin is only for simple access controll by "user is logged in" or "user is not logged in". The ACL stuff is still in the pipeline and should not - to follow the KISS principle - be inside an auth plugin.

While setting up this project on github, i had some problems while getting a valid connection to github.

I followed the howto but not "pressed enter" when asked for a file to store the key.

Thats why:

ssh -T [email protected]
failed.

But when i added the -i option like:

ssh -T [email protected] -i path/to/my/private/key
everything runs smoothly.

After a short term of searching, i found the ssh issues page on gitub.com. The simple solution is:

Create or open the file at ~/.ssh/config Add the following lines:
Host github.com User git Hostname github.com PreferredAuthentications publickey IdentityFile /path/to/my/private/key
After that, the
git push -u origin master
runs without any errors.

Translate to de es fr it pt ja

howto - mount filesystem via ssh using sshfs

First of all, you have to install "sshfs". After that you just have to type.

sshfs [email protected]$host:/path/to/dir /path/to/mount

If fuse throws an error of permission, you have to add your user to the group fuse by typing:

usermod -a -G fuse $user

After you re-logged-in you can see by typing "groups" in your shell that everything is done fin. Do not want to logoff? Try

su $user
in your shell. This is a new login and so your new group is available now.

Just another hint, if you want to access symbolic links, try:

-o followsymlinks
and/or
-o transformsymlinks

The man page will help you to understand what you are doing.

Now put everything as an alias in your bashrc (or something similar) and you are done :-).

alias mountMyShare="sshfs [email protected]:/path/to/dir /path/to/mount -o follow_symlinks"; alias umountMyShare="fusermount -u /path/to/mount";

Happy mounting and unmounting.

Translate to de es fr it pt ja