Guide: Using/installing Signal-desktop without a phone [Debian]

Please double-check the instructions and continue at your own peril, but the following steps were verified to work by me on Debian GNU/Linux 9 “Stretch”, at the date of this post. (Edit, 2020-06-21: Confirmed to work with Debian GNU/Linux 10 “Buster”, too.) Feel free to point out any errors or potential security risks in the comments. (Also, remember that it is generally considered a bad idea to copy-paste to terminal.

1. Install Signal-Desktop.

2. Install signal-cli. The command line instructions to do so are:

export VERSION="X.X.X"
wget https://github.com/AsamK/signal-cli/releases/download/v"${VERSION}"/signal-cli-"${VERSION}".tar.gz
sudo tar xf signal-cli-"${VERSION}".tar.gz -C /opt
sudo ln -sf /opt/signal-cli-"${VERSION}"/bin/signal-cli /usr/local/bin/

The first command might be hard to interpret. What it means is: open the list of versions and check out what the latest one is. Replace the text within the quotation marks, on the first line above, with the version number. Currently, that means the command should be export VERSION="0.8.1"

3. Launch Signal

4. Take a screenshot of the QR code. Crop it, and upload it to a QR decoder. I used ZXing. Copy the code it gives you (should be something starting with tsdevice:/?

5. Time to register your phone of choice. In Terminal, enter:

signal-cli -u USERNAME register

Replace USERNAME with your phone number, in its international format (starting with a + sign). There’s also a way to register with a voice call, more information can be found on the signal-cli pages on GitHub.

At this point, and especially if you are on a VPN, you might get an error message saying “Captcha required for verification (null)”. If so (following the instructions on the signal-cli Github):

  • Go to this rather anonymous looking website. It should show a blank, white page, with a Google captcha challenge to complete. (If not, try reloading it in incognito mode.)
  • Open your browser’s Developer tools (F12 if you’re using Firefox), and switch to the Console tab, then complete the captcha.
  • After successfully completing it, scroll to the top of the yellow Console tab. There should be a message there saying Prevented navigation to “signalcaptcha://CAPTCHANUMBER" due to an unknown protocol.
  • Copy the long number (not the “signalcaptcha://” bit, just the number).
  • In terminal, enter signal-cli -u USERNAME register --captcha CAPTCHANUMBER Again, replacing USERNAME with your phone number and CAPTCHANUMBER with the long code from the console tab. It should now register. Remember that the captcha has to be pretty fresh, so be rather quick here. If too much time has elapsed, you will get an error message, and can retry.

6. You should get a text message with a verification code. Use this to verify your phone number: signal-cli -u USERNAME verify xxx-xxx Again, replacing USERNAME with your phone number, and the x’s with the verification code you just received.

7. In order to link your phone number with the Signal-Desktop app, replace the word CODE with the code you got in step 5, and, again, USERNAME with your phone number in the following command: signal-cli -u USERNAME addDevice --uri "CODE"

8. That’s it, Signal-Desktop should now launch. If you want to, you can clear the variable attribute you set by running the command export -n VERSION

Notes:

  • Signal-Desktop might ask you to “relink” your phone after a certain time. If that happens, just go through the steps 4-8 again.
  • Sometimes, in my experience, the text message verification will take a few hours to send. When you eventually get it, you might have to go through steps 4-8 again (restarting Signal), as the QR code will need to be regenerated.
  • If you’ve sent an erroneous/outdated QR code as a result of waiting too long for the text verification and not generating a new one, you might get a NotFoundException: Not found error. Once you generate a new QR code, you might, in turn, get a “Rate limit exceeded: 413” error – but just trying once more should solve that.

Fix: No wifi login prompt on Firefox

When connecting to a public wifi, you are often given the message “You must log in to this network before you access the internet”. You are prompted with accepting the terms of the network in question – a so-called captive portal.

Especially when using a hardened Firefox configuration, the web login page might fail to display, leaving you connected to the wifi but with no internet access. Here are a few steps that should resolve this issue.

  1. Restart Firefox in safe mode.
  2. If necessary, disable your VPN and restart Firefox in safe mode once more.
  3. You should now be prompted to login to the network, and can restart Firefox in its regular mode, with add-ons enabled.
  4. If you’re still not able to reach the network login page, try entering an URL associated with the place you’re in, such as starbucks.com if you’re in a Starbucks.

Svenska: Denna metod fungerar för att få upp inloggingssidan på SJ- och MTR-tåg. Ibland kan man dock behöva skriva in inloggingsadressen (ombord.sj.se för SJ och mtrexpress.on.icomera.com eller ombord.info för MTR) manuellt och logga in genom den.

Buy vintage Barbour jackets/coats in London

Taking the advice of this post (mirror here, here and here), I went to Robert’s vintage Barbours on Portobello market in London. I went on a Friday in September of 2017, and, sure enough, Robert’s stall was right there under the Westway, off Portobello road, a couple of minutes walk from the Ladbroke Grove tube station. (Google map here.)

Prices ranged from £79 to £110 for all sorts of Barbour jackets – mainly olive, waxed ones (Bedale, Beaufort, Northumbria, Border – no Ashbys, as far as I could see) but some blue, too. Quality varies, but all of them are acceptable. Pay by cash – ATMs are to be found nearby.

Swedish: Ladda ned MP3 från Sveriges Radio Play

Uppdatering, 2019-03-22: Notera att detta inlägg är från 2014. En läsare uppmärksammade mig på att nedanstående metod inte verkar fungera längre, sedan Sveriges Radio gjorde om sin spelarfunktion. Dock går det fortfarande att använda en annan metod, som beskrivs nedan, i denna kommentar.

Dessvärre verkar Jacques de Lavals lovvärda initiativ Pirate Player inte längre fungera eller uppdateras. Den som vill ladda ned MP3-filer från Sveriges Radio (alltså filer som inte görs tillgängliga som poddradio, som Sommar i P1 med all musik, eller P3:s En kärleksattack på svensk hiphop) kan ändå, i skrivande stund, göra det utan några som helst plugins eller tillägg genom följande metod. Den är testad och fungerar i Firefox.

1. Öppna sidan för det program du vill spara ned – det kan alltså vara ett program som enbart har en “Lyssna”-länk.

2. Högerklicka på “Lyssna”-länken. Du bör få en länk som slutar med &playepisode=XXXXXX, där x:en är siffror.

3. Öppna den länken.

4. När sidan har laddats, högerklicka någonstans på den och välj “Visa källa”.

5. I texten som kommer upp, sök efter ordet topsy. Du kommer att hitta en länk som ser ut ungefär så här (klicka för att förstora bilden):

Klicka för att förstora bilden

6. Kopiera den här länken.

7. Nu kan du antingen öppna den i en ny flik, och spara hem programmet som en MP4-fil på hårddisken, eller helt enkelt klistra in filens URL direkt på mediekonverteraren media.io för att konvertera den till MP3-format (tryck på “Importera en URL” och klistra in adressen du kopierade i steg sex).

(Någon driftig person bör kunna snickra ihop ett Greasemonkey-skript som automatiserar den här processen, och helt enkelt inför en Ladda ned-länk som pekar på MP4-filen i de fall en vanlig MP3-länk saknas.)

Download DINPUT8.DLL for GTA San Andreas here

According to several forum posts, DINPUT8.DLL seems to be necessary to run GTA San Andreas under Windows 7.

Here is the file:

https://mcchrystals.files.wordpress.com/2013/06/dinput8.jpg

Since WordPress doesn’t allow .dll files, I had to rename the file to .jpg. Please rename the file from .jpg to .dll when you save it (right-click and select “Save as”).

(Disclaimer: I found the file myself through some forum post/file host, and it worked for me. I have checked it for viruses, and it seems okay. I can’t vouch for its quality, though.)

Update, 2013-11-08: Anders Hartzen kindly notified me in the comments to this post that the file does indeed seem to work for more people than just me.

Fixing “GRUB loading, please wait…” error at startup

There’s a bunch of posts online on how to fix different kinds of “GRUB loading” errors, with error code.

However, sometimes you get a BIOS error like this, at startup, without an error code.

GRUB loading. Please wait.

One thing that can cause this is if you have a USB stick connected to the computer at startup. Remove the USB stick, reboot the computer, and it might fix the problem.

Download MP3 songs from Soundclick in Chrome

Editor’s note, November 22, 2018: Since this post is still steadily picking up search engine traffic, I’d just like to point out that it was originally published in 2010, and the method described might not still work. I haven’t tried it myself lately. More information in the comments, below.

My beloved Firefox has stopped working, and I’m temporarily using Google Chrome. The one thing I perhaps miss most about Firefox is the ability to easily download files through Video DownloadHelper, which is, sadly, not yet available as a Chrome extension.

Anyway, here’s how to download songs from Soundclick using Google Chrome:

1. Open the Soundclick song, and lay it in hi-fi, like this one, and start playing it.

2. Open a new tab, and type about:cache in the address bar.

3. At the top of your cache registry, you’ll see an MP3 file called something like this:

http://4708.nyc2.soundclick.com/jarry_lo/14/01/freemp3/eugeniakrivitskaia+toccataandfugueindminorjsbach.mp3

4. Copy the link.

5. If you right-click the link when copying it, you’ll get the prefix chrome://view-http-cache/ before the link. The link might also have a suffix, something like ?random=37. Just delete those if you see them, and you’ll have a working MP3 link.

6. Paste your link in a new tab, press enter, and choose Tools -> Save page as…. The download from Soundclick is usually pretty slow.