<?xml version="1.0" encoding="UTF-8"?>
<feed xmlns="http://www.w3.org/2005/Atom" xmlns:dw="https://www.dreamwidth.org">
  <id>tag:dreamwidth.org,2015-08-12:2432870</id>
  <title>sebenikela</title>
  <subtitle>only prickly on the outside</subtitle>
  <author>
    <name>sebenikela</name>
  </author>
  <link rel="alternate" type="text/html" href="https://sebenikela.dreamwidth.org/"/>
  <link rel="self" type="text/xml" href="https://sebenikela.dreamwidth.org/data/atom"/>
  <updated>2020-04-02T16:06:15Z</updated>
  <dw:journal username="sebenikela" type="personal"/>
  <entry>
    <id>tag:dreamwidth.org,2015-08-12:2432870:83580</id>
    <link rel="alternate" type="text/html" href="https://sebenikela.dreamwidth.org/83580.html"/>
    <link rel="self" type="text/xml" href="https://sebenikela.dreamwidth.org/data/atom/?itemid=83580"/>
    <title>open source videoconferencing</title>
    <published>2020-04-02T16:06:15Z</published>
    <updated>2020-04-02T16:06:15Z</updated>
    <category term="tech"/>
    <dw:security>public</dw:security>
    <dw:reply-count>1</dw:reply-count>
    <content type="html">&lt;p&gt;Because this seems like something people here might be interested in:
&lt;a href="https://jitsi.org/"&gt;Jitsi Meet&lt;/a&gt; lets you set up your own server for video conference calls, or they have an in-browser setup that appears to be pretty straightforward to use &lt;a href="https://meet.jit.si/"&gt;here&lt;/a&gt;, you create a meeting and then get a link to share, with the option to add a password. &lt;/p&gt;

&lt;p&gt;Apparently in addition to the various "zoom bombings" there's &lt;a href="https://uk.reuters.com/article/uk-spacex-zoom-video-commn/elon-musks-spacex-bans-zoom-over-privacy-concerns-memo-idUKKBN21J71J"&gt;some concern about the security of zoom in general&lt;/a&gt;. &lt;/p&gt;

&lt;p&gt;(I am fine, btw, as much as one can be in all the craziness, I just haven't had the Brain to write posts and I expect this condition to persist for a while)&lt;/p&gt;
&lt;br /&gt;&lt;br /&gt;&lt;img src="https://www.dreamwidth.org/tools/commentcount?user=sebenikela&amp;ditemid=83580" width="30" height="12" alt="comment count unavailable" style="vertical-align: middle;"/&gt; comments</content>
  </entry>
  <entry>
    <id>tag:dreamwidth.org,2015-08-12:2432870:83401</id>
    <link rel="alternate" type="text/html" href="https://sebenikela.dreamwidth.org/83401.html"/>
    <link rel="self" type="text/xml" href="https://sebenikela.dreamwidth.org/data/atom/?itemid=83401"/>
    <title>Today in computing mysteries</title>
    <published>2020-02-24T23:08:03Z</published>
    <updated>2020-02-24T23:08:03Z</updated>
    <category term="tech"/>
    <dw:security>public</dw:security>
    <dw:reply-count>2</dw:reply-count>
    <content type="html">so for some reason my linux laptop hates R. This is confusing because:&lt;br /&gt;&lt;br /&gt;- the specs on this machine are similar to my 2015 MacBook Pro, which runs R without issues beyond occasional slowness (same 8GB of RAM, similar processing speed iirc, both SSD drives)&lt;br /&gt;&lt;br /&gt;- this machine runs similarly computationally intensive python code quite cheerfully&lt;br /&gt;&lt;br /&gt;HOWEVER&lt;br /&gt;&lt;br /&gt;- when using RStudio, my R session kept crashing anytime it dealt with large arrays&lt;br /&gt;&lt;br /&gt;- so I switched to R in a Jupyter notebook (well, technically Hydrogen in Atom but that’s essentially the same thing) and that froze the whole machine until it was done working&lt;br /&gt;&lt;br /&gt;- I have not done anything super complicated in straight up command line R from a terminal, but at this point I doubt that’d make much difference. also, that would be a shitty long-term solution regardless&lt;br /&gt;&lt;br /&gt;I have 2 questions for anyone who knows wtf I'm talking about:&lt;br /&gt;&lt;br /&gt;1. WHY?&lt;br /&gt;&lt;br /&gt;2. Can I make R work better? How?&lt;br /&gt;&lt;br /&gt;Alternatively, I could apparently set up a remote notebook server on my mac and access it on my linux laptop, but that sounds like an even bigger pain in the ass.&lt;br /&gt;&lt;br /&gt;(relatedly, I configured my mac (which is no longer a laptop due to screen issues that means it needs an external display) to allow me to SSH in remotely, and to test that it was working I installed a terminal emulator (Terminus) on my phone which now means that I can execute R scripts to process multiple gigabytes of data... FROM MY PHONE. Which is the most hackerish thing ever and I am vastly amused by it)&lt;br /&gt;&lt;br /&gt;&lt;img src="https://www.dreamwidth.org/tools/commentcount?user=sebenikela&amp;ditemid=83401" width="30" height="12" alt="comment count unavailable" style="vertical-align: middle;"/&gt; comments</content>
  </entry>
  <entry>
    <id>tag:dreamwidth.org,2015-08-12:2432870:76370</id>
    <link rel="alternate" type="text/html" href="https://sebenikela.dreamwidth.org/76370.html"/>
    <link rel="self" type="text/xml" href="https://sebenikela.dreamwidth.org/data/atom/?itemid=76370"/>
    <title>Calibre on linux tech support</title>
    <published>2019-07-11T01:24:38Z</published>
    <updated>2019-12-23T19:35:00Z</updated>
    <category term="tech"/>
    <dw:security>public</dw:security>
    <dw:reply-count>8</dw:reply-count>
    <content type="html">&lt;p&gt;I mentioned on tumblr that I'd gotten REAL FUCKING STUBBORN and spent 3 hours figuring out how to make the deDRM plugin for Calibre on linux work with stuff from Adobe Digital Editions. And &lt;span style='white-space: nowrap;'&gt;&lt;a href='https://sciatrix.dreamwidth.org/profile'&gt;&lt;img src='https://www.dreamwidth.org/img/silk/identity/user.png' alt='[personal profile] ' width='17' height='17' style='vertical-align: text-bottom; border: 0; padding-right: 1px;' /&gt;&lt;/a&gt;&lt;a href='https://sciatrix.dreamwidth.org/'&gt;&lt;b&gt;sciatrix&lt;/b&gt;&lt;/a&gt;&lt;/span&gt; asked for the full how-to, which was good, because I'd written down just enough to remember where in my search history to go to reconstruct the details, but not enough that I'd actually have been able to repeat the process easily in 6 months or whatever when something inevitably breaks and I have to do it again. &lt;/p&gt;

&lt;p&gt;So I'm putting the step-by-step instructions here for anyone else who wants it and also so I can find it again later.&lt;/p&gt;

&lt;p&gt;How to use the de-DRM plugin for Calibre on linux with Adobe Digital Editions:&lt;/p&gt;

&lt;p&gt;&lt;a name="cutid1"&gt;&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;I &lt;em&gt;think&lt;/em&gt; this is what eventually worked for me (on Ubuntu 18.04 LTS, normal Calibre and deDRM plugin install)&lt;/p&gt;

&lt;p&gt;Step 0: get wine and winetricks
- &lt;em&gt;sudo apt install wine-stable winetricks&lt;/em&gt; (or something like this)&lt;/p&gt;

&lt;p&gt;Step 1: install ADE in wine (instructions from &lt;a href="https://appdb.winehq.org/objectManager.php?sClass=version&amp;amp;iId=33276&amp;amp;iTestingId=104500"&gt;here&lt;/a&gt;):&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;create a new clean win32 wine prefix: &lt;br /&gt;
&lt;em&gt;WINEPREFIX=“$HOME/.wineADE” WINEARCH=win32 wine wineboot&lt;/em&gt;   &lt;/li&gt;
&lt;li&gt;install some extra packages: &lt;br /&gt;
&lt;em&gt;WINEPREFIX=“$HOME/.wineADE” winetricks corefonts dotnet40&lt;/em&gt;     &lt;/li&gt;
&lt;li&gt;Download ADE 4.5.0 – the latest 4.5.9 version refuses to install with “Adobe Digital Editions is already running :) :) :)” (which is infuriating) but you can get the 4.5.0 installer &lt;a href="https://filehippo.com/download_adobe_digital_editions/63548/"&gt;here&lt;/a&gt;&lt;/li&gt;
&lt;li&gt;Install ADE: &lt;br /&gt;
&lt;em&gt;WINEPREFIX=“$HOME/.wineADE” wine ADE_4.5_Installer.exe&lt;/em&gt;&lt;/li&gt;
&lt;li&gt;(optional, i don’t think i did this) fix graphics glitches:
&lt;em&gt;WINEPREFIX=“$HOME/.wineADE” winetricks ddr=gdi&lt;/em&gt;&lt;/li&gt;
&lt;/ul&gt;

&lt;p&gt;Step 2: install a 32-bit version of python 2.7 WITHIN THAT WINE PREFIX:  &lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;download &lt;a href="https://www.python.org/ftp/python/2.7.8/python-2.7.8.msi"&gt;x86 python installer&lt;/a&gt; &lt;a href="https://www.python.org/downloads/release/python-278/"&gt;from python.org&lt;/a&gt;&lt;/li&gt;
&lt;li&gt;install python into wine: &lt;br /&gt;
&lt;em&gt;WINEPREFIX=“$HOME/.wineADE/” msiexec /i python-2.7.8.msi&lt;/em&gt;&lt;/li&gt;
&lt;li&gt;install pycrypto tools from &lt;a href="http://www.voidspace.org.uk/python/modules.shtml"&gt;here&lt;/a&gt; (I think it’s &lt;a href="http://www.voidspace.org.uk/downloads/pycrypto26/pycrypto-2.6.win32-py2.7.exe"&gt;this one&lt;/a&gt; ) &lt;br /&gt;
&lt;em&gt;WINEPREFIX=“$HOME/.wineADE/” wine pycrypto[…versionstuff].exe&lt;/em&gt;&lt;/li&gt;
&lt;/ul&gt;

&lt;p&gt;Step 3: Authorize ADE and download your stupid book&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;Open ADE and sign in with your Adobe ID&lt;/li&gt;
&lt;li&gt;Open the .ascm or whatever ADE-format file you got, this downloads the actual pdf/epub&lt;/li&gt;
&lt;li&gt;Close ADE&lt;/li&gt;
&lt;/ul&gt;

&lt;p&gt;Step 4: generate a key thingy and put it in Calibre&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;The deDRM tools zipfile has an “other tools” folder with a bunch of scripts, one of which generates the key file you need. run that script from your wine directory, e.g.: &lt;br /&gt;
&lt;em&gt;~/.wineADE/drive_c/Other_Tools/DRM_Key_Scripts/Adobe_Digital_Editions$ wine python adobekey.pyw&lt;/em&gt;&lt;/li&gt;
&lt;li&gt;This will create a file in that directory that’s something like &lt;em&gt;adobekey_1.der&lt;/em&gt;. Put that somewhere less awkward if you want.  &lt;/li&gt;
&lt;li&gt;Open Calibre preferences, go to the deDRM tools (under file types) and “customize plugins”, then click on the button for Adobe Digital Editions&lt;/li&gt;
&lt;li&gt;You’ll get a window with a place for your WINEPREFIX path, and a place to load the keyfile, at which point you go find the &lt;em&gt;adobekey_1.der&lt;/em&gt; file and put it there.&lt;/li&gt;
&lt;/ul&gt;

&lt;p&gt;And now you should be able to add the ADE-downloaded PDF to Calibre and it will strip the DRM like with other formats.&lt;/p&gt;

&lt;p&gt;Notes: 
- there's probably ways to avoid putting the WINEPREFIX= bit in every time but whatever
- I am relatively new to linux so I probably can't answer a lot of questions but I can try
- Adobe can get fucked with a chainsaw for making this so goddamn difficult
&lt;/p&gt;

&lt;p&gt;ETA: I fucked up my wine prefix and then I couldn't get ADE 4.5 to work, but &lt;a href="https://patdavid.net/2018/05/installing-adobe-digital-editions-on-linux-with-wine/"&gt;this guy's instructions for ADE 2.0&lt;/a&gt; seem to work&lt;/p&gt;
&lt;br /&gt;&lt;br /&gt;&lt;img src="https://www.dreamwidth.org/tools/commentcount?user=sebenikela&amp;ditemid=76370" width="30" height="12" alt="comment count unavailable" style="vertical-align: middle;"/&gt; comments</content>
  </entry>
</feed>
