Work in progress.
A simple way to backup your entire linux machine is just to create a tar all files
tar -cvzpf backup.tar.gz --directory=/ --exclude=proc --exclude=sys --exclude=dev --exclude=run --exclude=tmp --exclude=boot .
We set the directory to create the archive from to / and include everything in the archive with the .
at the end. Also exclude directories like /dev or /sys, which are machine or OS specific and don't contain any of our files.
In a previous article we used DBUS to send control commands to the spotify client.
To remotely control spotify via the web, i wrote a little HTTP server which takes GET requests and "forwards" them via DBUS to the player. The program is written in python (see below) and takes requests on the following paths:
Next step is an android app to call our little webservice :)
import SimpleHTTPServer
import SocketServer
import argparse
import subprocess
parser = argparse.ArgumentParser()
parser.add_argument('--port', type=int, default=9000)
args = parser.parse_args()
class ServerHandler(SimpleHTTPServer.SimpleHTTPRequestHandler):
cmd = "/usr/bin/dbus-send --print-reply …
I just reinstalled Enigmail for Thunderbird and was wondering what settings are actually changed during by the setup wizard, in particular the preferences section, to "change a view default settings to make OpenPGP work better on you machine"
mail.server.default.mime_parts_on_demand
to false
mailnews.send_plaintext_flowed
to false
If you have a low-end Laptop and want to run minecraft on a lower screen resolution you might want to use the following bash script to run minecraft
xrandr -s 800x600
java -jar /path/to/Minecraft.jar
xrandr -s 1366x768
This will: