2014-03-25

Generating a PGP key for Retroshare

So, exactly a month ago I've been playing around with Retroshare. I liked the idea that you use your PGP key as an identifier, but soon hit a brick wall: my key had sub-keys. Specifically, a sub-key for encryption. I posted the issue to Retroshare's Twitter and they shortly after confirmed my issue. I had no idea how to create a plain, no-subkey PGP key. But it's so simple!

First, open a Terminal and run gpg with the --gen-key ("generate key") parameter.
gpg --gen-key
You will be given a choice.
Please select what kind of key you want:
   (1) RSA and RSA (default)
   (2) DSA and Elgamal
   (3) DSA (sign only)
   (4) RSA (sign only)
Enter 4. Next, it will ask for the size of your key. Default is 2048, but I suggest 4096. Now it will ask you for the expiration date. You don't have to set one, but it's good to have, if you plan on creating a new key at some point, maybe because of increased security standards like keylengths of 6144 or different key formats or ciphers. That way people are forced to check for a newer key.
You have to enter a name, e-mail and optionally a comment. Confirm the data input with o and enter your passphrase twice. Your key will now be generated.
You will see something like:
gpg: key 968328E7 marked as ultimately trusted
public and secret key created and signed.
gpg: checking the trustdb
gpg: 3 marginal(s) needed, 1 complete(s) needed, PGP trust model
gpg: depth: 0  valid:   7  signed:   0  trust: 0-, 0q, 0n, 0m, 0f, 7u
gpg: next trustdb check due at 2018-08-11
pub   4096R/968328E7 2014-03-25
      Key fingerprint = 9F72 21B4 671F F9B1 D6E3  CEA6 17E8 DFDF 9683 28E7
uid                  Sāfto Rangen <orangensaft@kriswema.de>
It's time to export your key!
gpg -a --export 968328E7 > 968328E7.asc
gpg -a --export-secret-keys 968328E7 >> 968328E7.asc
This will create a combined public/secret keyfile called 968328E7.asc which you can use with Retroshare.

2014-02-21

Big data

Time to delete some of the content I've posted on Facebook, Twitter and other social networks (read: "social media marketing platforms").

FB> you grant us a non-exclusive, transferable, sub-licensable, royalty-free, worldwide license to use any IP content that you post on or in connection with Facebook (IP License). This IP License ends when you delete your IP content or your account unless your content has been shared with others, and they have not deleted it.
-> https://www.facebook.com/legal/terms
-> https://entropia.de/~krt/msg/2014-02-20T20:42:37Z.msg

Do yourself a favor and give it a read. Scary.


Also, I just downloaded all my FB data. Scared the shit out of me again. I mean, it's not like I didn't know they store all this data, but it's very scary to be punched in the face with a list of 290 IP addresses that I used, the times I logged in, the email addresses of all of my contacts.. Holy shit, man. Why.

2014-02-15

Installing BTSync properly on Debian

Download the appropriate version of BitTorrent Sync and open a terminal on your Download directory. The archives have various names, so I'll just use a generic one. First, extract the executable.
tar xf btsync.tar.gz
Then, move it to the user binaries folder.
sudo mv btsync /usr/bin
Now, open up your scheduling configuration.
crontab -e
To the bottom of the file, add this:
@reboot btsync --config ~/.config/btsync/btsync.json
Exit the editor. Now, create the folder and the file. Choose a port and change it to something you like (the "listen" attribute under "webui"). You may also add "username" and "password" to this, although you don't have to. These will be configurable later through the UI.
Important: the file paths in the config file have to be absolute, don't use the ~ variable here!
mkdir -p ~/.config/btsync
sensible-editor ~/.config/btsync/btsync.json
{
  "storage_path" : "/home/username/.config/btsync",
  "pid_file" : "/home/username/.config/btsync/btsync.pid",
  "webui" :
  {
    "listen" : "0.0.0.0:51920"
  }
}
After you're done, simply reboot to work the magic. Or execute btsync with its --config parameter.

2013-12-08

Configuring a QNIX QX2710 for Debian Jessie

I already got a lot of the necessary information from a post by Pat Regan that you should definitely read before starting to play around with your settings!

At first I tried to configure my new QX2710 with my old monitor connected, but I figured I might aswell just do it remotely. So I connected to my computer from my laptop via SSH and played around with the xorg.conf. After applying the changes I'd restart lightdm (sudo service lightdm restart) until it worked.

In the meantime my monitor showed me this:


I ended up using HorizSync 89.52 - 160.0, VertRefresh 59.96 - 120.0 and a Modeline generated by cvtHere's the xorg.conf.

Here's a comparison of screen resolutions before - after:

I can finally watch 1080p videos without downscaling!1!!

2013-11-21

User Startup Programmes in Debian

I've always loved to start programmes automatically. Just boot up the computer, maybe even log in automatically if it's a desktop at home, and start all the programmes you need. It took me quite a while, but I figured out the one and only, perfect way to do that: *.desktop files.
Let's go to our applications folder, which should contain most of the *.desktop files responsible for your Applications menu.
cd /usr/share/applications/
Let's assume you want to autostart guake. Check for folder contents with ls or find the programme you want to auto start with ls | grep guake. Then, copy that file to your autostart folder.
cp guake.desktop ~/.config/autostart/
Done.

Also check out the Desktop Application Autostart specification if you're interested.


Originally published on 2013-01-31 08:19.

2013-10-31

FIX: You are missing 32-bit libs: libGL.so.1

So I've been getting an error when trying to start Steam.

Luckily, I know how to use a search engine and quickly found a promising post by frankster. This did not fix my problems - I had to run this line to get Steam to work on my laptop:
sudo apt-get install libgl1-nvidia-glx:i386
Works like a charm. :)

2013-06-06

The future of GoldSrc mapping on GNU/Linux

I like GNU/Linux and the fact that Valve is releasing their Steam and Team Fortress Classic clients on it.
I also like mapping for TFC and just recently picked it up again. Due to my recent decision to move to Debian Wheezy on my gaming / desktop computer I have been denied the pleasure of mapping with native mapping tools so far. The Valve Hammer Editor (formerly Worldcraft) is a win32 programme, other editors could be an option, but I prefer the "offiical" tools.
I wrote Alfred Reynolds [Steam] [GitHub] an e-mail about this, since he's currently one of the main GoldSrc developers at Valve. While I was happy for a quick response, his words saddened me. I'd like to share them with you.
Hammer is a very win32 specific tool and we have no plans on making it run natively on Linux at this time, I suspect your best bet here will be to use Wine to let you run it.
Well, is my best bet Wine? I haven't tried Wine/VHE yet.
I've always preferred native programmes, it just feels right. And I know there are Linux-based mapping tools our there for the Quake engine, which should be fairly compatible to GoldSrc, which itself is "just" a QuakeWorld modification. I haven't found a proper, as in easy to use and fairly to fully compatible to the GoldSource RMF or MAP format, map editor.
If anyone knows of any, please leave a comment or write me. I'll post something as soon as I find a solution.