29 May 2015

608. Bruker Topspin on Debian Jessie

Here's a more extensive description of how to install Bruker Topspin (student version):

Very briefly:
$ wget http://bruker.telemaxx.net/student/linux-topspin.sh
$ sudo dpkg --add-architecture i386
$ sudo apt-get update
$ sudo apt-get install libxft2:i386 libxtst6:i386 perl-tk libcups2:i386 openjdk-7-jdk
$ su -
# xauth merge /home/user/.Xauthority 
# exit
$ sh linux-topspin.sh
$ ~/carbon/topspin$ sh linux-topspin.sh 
Verifying archive integrity... All good.
Uncompressing TopSpin 3.2..............................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................
NOTE: no display found - trying localhost:11.0
Using TCL_LIBRARY=/tmp/selfgz29293/linux/tcl-8.5.11/lib/tcl8.5
Using TK_LIBRARY=/tmp/selfgz29293/linux/tk-8.5.11/lib/tk8.5
Please enter root password if prompted for it.
Password: 
Starting /tmp/selfgz29293/linux/tk-8.5.11/bin/wish8.5 -f /tmp/selfgz29293/xwinstall.d/swim/lib/xwinstall.tcl --
Using log file: /tmp/install.log
Error while displaying /tmp/selfgz29293/rellet.pdf with /tmp/swim-29462/prog/bin/xpdf : 
/tmp/swim-29462/prog/bin/xpdf: error while loading shared libraries: libSM.so.6: cannot open shared object file: No such file or directory

Using log file: /opt/topspin3.2/install.log
Error: Cannot create user account flexlm: useradd flexlm: useradd: group flexlm exists - if you want to add this user to that group, use -g.
Errors occurred during installation:
Error: Cannot create user account flexlm: useradd flexlm: useradd: group flexlm exists - if you want to add this user to that group, use -g.
[I was doing this while logged in via ssh -XC to the student's computer, and without a pdf reader installed. If a pdf opens, close it to continue the installation. Don't worry about the errors.]

Here are screenshots from the installation process:
























The only thing that remained was to install the license.dat file that Bruker had issued to my student:

sudo mv /usr/local/flexlm/Bruker/licenses/license.dat /usr/local/flexlm/Bruker/licenses/license.bak sudo cp ~/carbon/topspin/license.dat /usr/local/flexlm/Bruker/licenses/license.dat
And then we were able to start topspin:







 And finally:

26 May 2015

607. Ping...Topspin and ADF work on debian jessie

My blog post productivity has been getting increasingly poor over the past year and a half, with a precipitous dip occurring at the beginning of this year. The dip is due to teaching and research, and the slow but steady decline preceding it is due to parenthood (the older the little one gets, the less time -- and inclination! -- I have to do extra work. Toddlers can be so much fun.).

I've got a few posts that need a bit of polishing before I publish ('how to set up your own DNS server' and 'how to set up your own mail server' are two examples), but until then, I'll seed your google search results with the following information about something completely different:

* Bruker Topspin 3.2 (https://www.bruker.com/products/mr/nmr/nmr-software/software/topspin/overview.html) -- the NMR program, not the table tennis game -- installs fine on Debian Jessie 64 bit (the only version we tried). Note that:
** you'll need java
** you'll need the 32 bit package with libXtst.so.6, not the 64 bit package. It can be installed via apt-get install libxtst6:i386
** you'll need to enable the root account if you haven't already (the easiest way to do that is to do sudo passwd root, set a password and you're good to go)

* The trial version of the Amsterdam Density Functional package (ADF; http://www.scm.com/Downloads/2014) installs and runs fine* on one of my Debian Jessie 64 bit nodes. I did not install the intel mpi libraries, but then adf seems to be working according to a shared memory model.

Installation was quick and painless. I downloaded the package using the instructions in the email, copied the .tgz file to my node, ssh:d with X enabled (ssh -XC) to allow for interactive activation/registration, and to be able to use adfjobs (to draw molecules and set up jobs), and to be able to use adfview.

I untared the adf file:
tar xvf adf2014.07.pc64_linux.intelmpi.tgz

I then moved the folder to /opt and took ownership of it:
sudo mv adf2014.07 /opt/
sudo chown $USER:$USER /opt/adf2014.07 -R

I edited /opt/adf2014.07/adfrc.sh to read:
ADFHOME=/opt/adf2014.07

And then sourced it and ran adfjobs:
source adfrc.sh
bin/adfjobs

I was then asked to provide the username and password from my email, and from that point on it was just a matter of using the program (which has it's own quirks ).

*by default only six cores on a hex core i7-4930k are used. To force 12 cores (hyperthreading) you need to explicitly tell ADF to do so. The manual says not to, however. I haven't done any performance tests, BUT without specifying 12 cores the node is only running at half load.

12 January 2015

606. Downloading programs from iview (Australian Broadcasting Corporation): python-iview

 I did this on debian jessie.

I found the Ep 7 Season 2 episode of The Checkout so well worth watching that I wanted to keep a copy of it, which lead me to search for ways of downloading programs from iview.

Get python-iview from https://github.com/vadmium/python-iview. You can try this direct link: https://github.com/vadmium/python-iview/archive/master.zip

Then unzip and install (you might need to install some of the dependencies listed on the github page first):
me@niobium:~/tmp/python-iview/python-iview-master$ sudo python3 setup.py install
running install
running build
running build_py
running build_scripts
running install_lib
creating /usr/local/lib/python3.4/dist-packages/iview
copying build/lib/iview/comm.py -> /usr/local/lib/python3.4/dist-packages/iview
copying build/lib/iview/flvlib.py -> /usr/local/lib/python3.4/dist-packages/iview
copying build/lib/iview/config.py -> /usr/local/lib/python3.4/dist-packages/iview
copying build/lib/iview/hds.py -> /usr/local/lib/python3.4/dist-packages/iview
copying build/lib/iview/parser.py -> /usr/local/lib/python3.4/dist-packages/iview
copying build/lib/iview/fetch.py -> /usr/local/lib/python3.4/dist-packages/iview
copying build/lib/iview/__init__.py -> /usr/local/lib/python3.4/dist-packages/iview
copying build/lib/iview/utils.py -> /usr/local/lib/python3.4/dist-packages/iview
byte-compiling /usr/local/lib/python3.4/dist-packages/iview/comm.py to comm.cpython-34.pyc
byte-compiling /usr/local/lib/python3.4/dist-packages/iview/flvlib.py to flvlib.cpython-34.pyc
byte-compiling /usr/local/lib/python3.4/dist-packages/iview/config.py to config.cpython-34.pyc
byte-compiling /usr/local/lib/python3.4/dist-packages/iview/hds.py to hds.cpython-34.pyc
byte-compiling /usr/local/lib/python3.4/dist-packages/iview/parser.py to parser.cpython-34.pyc
byte-compiling /usr/local/lib/python3.4/dist-packages/iview/fetch.py to fetch.cpython-34.pyc
byte-compiling /usr/local/lib/python3.4/dist-packages/iview/__init__.py to __init__.cpython-34.pyc
byte-compiling /usr/local/lib/python3.4/dist-packages/iview/utils.py to utils.cpython-34.pyc
running install_scripts
copying build/scripts-3.4/iview-gtk -> /usr/local/bin
copying build/scripts-3.4/iview-cli -> /usr/local/bin
changing mode of /usr/local/bin/iview-gtk to 755
changing mode of /usr/local/bin/iview-cli to 755
running install_data
copying iview-gtk.desktop -> /usr/share/applications
running install_egg_info
Writing /usr/local/lib/python3.4/dist-packages/iview-0.2.egg-info

Start it from within gnome, select your show and download:
 Easy.

08 January 2015

605. Posting your own academic articles on your website (self-archiving)

I've been meaning to put copies of my own articles on my departmental website, but haven't had time to look into the legal aspects until now.

The publishers that matter to me in order are Wiley, ACS, RSC, Elsevier, and Taylor and Francis.

Here are their policies:

Wiley (also see this)
Under Wiley copyright, authors are permitted to self-archive the peer-reviewed (but not final) version of a contribution on the contributor's personal website, [..], subject to an embargo period of 12 months for scientific, technical, and medical (STM) journals [..] following publication of the final contribution. Authors should be aware that Wiley’s society partners set policies independently, and authors should refer to individual journal pages as the authority on copyright policy.
Summary: you can post the article version containing improvements following peer-review twelve months after it was published online (my interpretation), but you can't post the galley proof, on your own website.

Elsevier
Accepted Author Manuscript (AAM) Definition: An accepted author manuscript (AAM) is the author’s version of the manuscript of an article that has been accepted for publication and which may include any author-incorporated change s suggested through the processes of submission processing, peer review, and editor-author communications. AAMs do not include other publisher value-added contributions such as copy-editing, formatting, technical enhancements and (if relevant) pagination. Elsevier's AAM Policy: Authors retain the right to use the accepted author manuscript for personal use, internal institutional use and for permitted scholarly posting provided that these are not for purposes of commercial use or systematic distribution. [..] Permitted scholarly posting: Voluntary posting by an author on open websites operated by the author or the author’s institution for scholarly purposes, as determined by the author, or (in connection with preprints) on preprint servers.
Summary: you can post the article version containing improvements following peer-review on your own website as long as it's not for commercial purposes.

Royal Society of Chemistry (RSC)
When the author accepts the exclusive Licence to Publish for a journal article, he/she retains certain rights concerning the deposition of the whole article. He/she may: [..] Make available the PDF of the final published article via the personal website(s) of the author(s) or via the Intranet(s) of the organisation(s) where the author(s) work(s). No embargo period applies. [..] Deposition of the article on any website acting as a collection of personal articles from multiple scientists is explicitly prohibited.
Surprisingly, it sounds like it's actually OK to upload the version which is found on the RSC website -- which sounds too good to be true. Be your own judge.

American Chemical Society (ACS) (but also this)
Note that ACS does not grant permission for these materials or provide the following:
However, on page 6 here:
6. Posting Submitted Works on Websites and Repositories: A digital file of the Submitted Work may be made publicly available on websites or repositories (e.g. the Author’s personal website, preprint servers, university networks or primary employer’s institutional websites, third party institutional or subject-based repositories, and conference websites that feature presentations by the Author(s) based on the Submitted Work) under the following conditions: * The Author(s) have received written confirmation (via letter or email) from the appropriate ACS journal editor that the posting does not conflict with journal prior publication/embargo policies (see http://pubs.acs.org/page/policy/prior/index.html ) * The posting must be for non-commercial purposes and not violate the ACS' "Ethical Guidelines to Publication of Chemical Research" (see http://pubs.acs.org/ethics ). * If the Submitted Work is accepted for publication in an ACS journal, then the following notice should be included at the time of posting, or the posting amended as appropriate: "This document is the unedited Author’s version of a Submitted Work that was subsequently accepted for publication in [JournalTitle], copyright © American Chemical Society after peer review. To access the final edited and published work see [insert ACS Articles on Request author-directed link to Published Work, see http://pubs.acs.org/page/policy/articlesonrequest/index.html ]."
My reading is that it's only ok to post a pre-review version, and only if the above note is included, and only if you have received explicit permission from the editor of the journal. The ACS, which should represent us chemists, have by far the most draconian rules.

[Note that section 7 (which I haven't reproduced) covers 'accepted and published works', which is only permitted in case posting is mandated and only under certain conditions.]

See also item 19 here: http://pubs.acs.org/page/copyright/journals/faqs.html#
 It says pretty much the same thing. Note also that they tell you that you're allowed to link to the journal website, and that you're allowed to use the DOI.

How very generous.

Taylor and Francis
Author’s Original Manuscript (AOM) This is your original manuscript (often called a "preprint"), and you can share this as much or as little as you like. If you do decide to post it anywhere, including onto an academic networking site, we would recommend you use an amended version of the wording below to encourage usage and citation of your final, published article. Accepted Manuscript (AM) As a Taylor & Francis author, you can post your Accepted Manuscript (AM) on your departmental or personal website at any point after publication of your article (this includes posting to Facebook, Google groups, and LinkedIn, and linking from Twitter). Version of Record (VoR) This is your published article. We recommend that you include a link to the VoR from anywhere you have posted your AOM or AM using the text above. Please do not post the PDF of the VoR unless you have chosen to publish your article open access. This also applies to any author who has published with us in the past.
Summary: you can post the accepted manuscript, but not the journal version.

05 December 2014

604. Got a 'fake' USB stick from ebay

If it sounds too good to be true...

I bought two 128 Gb usb sticks from ebay for $12 each. Typical prices are $60 and over PER drive. Obviously, the drives were fake, which is a well-known phenomenon: http://www.ebay.com.au/gds/Fake-USB-DRIVES-From-China-HK-/10000000007355216/g.html

(why did I still buy them? Part greed, part curiosity)

Once I received the sticks I installed f3 on debian, and ran the f3write/f3read test.

Both drives failed:
SECTORS ok/corrupted/changed/overwritten Validating file 1.h2w ... 2097152/ 0/ 0/ 0 Validating file 2.h2w ... 2097152/ 0/ 0/ 0 Validating file 3.h2w ... 2097152/ 0/ 0/ 0 Validating file 4.h2w ... 2097152/ 0/ 0/ 0 Validating file 5.h2w ... 2097152/ 0/ 0/ 0 Validating file 6.h2w ... 2097152/ 0/ 0/ 0 Validating file 7.h2w ... 2097152/ 0/ 0/ 0 Validating file 8.h2w ... 2097152/ 0/ 0/ 0 Validating file 9.h2w ... 2097152/ 0/ 0/ 0 Validating file 10.h2w ... 2097152/ 0/ 0/ 0 Validating file 11.h2w ... 2097152/ 0/ 0/ 0 Validating file 12.h2w ... 2097152/ 0/ 0/ 0 Validating file 13.h2w ... 2097152/ 0/ 0/ 0 Validating file 14.h2w ... 2097152/ 0/ 0/ 0 Validating file 15.h2w ... 2097152/ 0/ 0/ 0 Validating file 16.h2w ... 588128/ 1509024/ 0/ 0 Validating file 17.h2w ... 0/ 2097152/ 0/ 0 Validating file 18.h2w ... 0/ 2097152/ 0/ 0 Validating file 19.h2w ... 0/ 2097152/ 0/ 0 [..] Validating file 115.h2w ... 0/ 2097152/ 0/ 0 Validating file 116.h2w ... 0/ 2097152/ 0/ 0 Validating file 117.h2w ... 0/ 2097152/ 0/ 0 Validating file 118.h2w ... 45696/ 314496/ 0/ 0 Data OK: 15.30 GB (32091104 sectors) Data LOST: 101.87 GB (213635872 sectors) Corrupted: 101.87 GB (213635872 sectors) Slightly changed: 0.00 Byte (0 sectors) Overwritten: 0.00 Byte (0 sectors) Average reading speed: 14.37 MB/s

At this point I figured I might as well pop the drive open as it wasn't glued (just remove the clip and insert a screw driver gently in the hole at the back).

IDE, 5019SN-GT, D5P590-000FZ, 1433T8H4
 I googled the stuff written on the chip, but didn't find any exact matches.

I then logged into my ebay account, and filed a return with the reason being fake/counterfeit. I was advised to wait five days for the seller to reply, which I did, after which I clicked on the button on the ebay website that asked ebay to step in to resolve the case. After a few minutes I received an email letting me know they'll initiate a refund, and after ca 30 minutes I received an email from paypal informing me of the same. No need to return the two 16 Gb sticks.

I've obviously posted a negative review of the seller which lets the reader know about the fake sized USBs.

Interesting experience.

I don't have any complaints about ebay -- things moved fast and the resolution was fair and in my favour. I reckon that the seller makes a profit from most buyers not realising that their drive isn't as big as the OS reports it to be, and don't discover it until the off-chance that they fill it with data. A that point they'll probably attribute it to the drive being broken, rather than the seller being outright fraudulent.

20 November 2014

603. Mobile bankid; works fine in a VM too

Turns out I got it wrong in my earlier post -- mobile bankid has nothing to do with the telecom network.

How it works:
1. Phone: Start BankID on your phone. The program will say that it's waiting for a connection.
2. Computer: You go to your bank/government service web page, select Mobile BankID, then type in your 'person nummer' (like SSN).
3. Phone: BankID on your phone will then prompt you for your PIN.
4. Computer: You're logged in.

It's all happening over the internet. Sure, it might not work if you change SIM, for example, but at least it's not telephony based.

Best of all, I could get an activation code for mobile bankid using the win 7 bankid instance I set up in http://verahill.blogspot.com.au/2014/11/602-surviving-bankid-rant-moving-nge.html and now I never have to use it again.

[if you're on linux and in Scandinavia, just install mobile bankid on your phone or on android in a vm]

So, if you're on linux and you've been using the official bankid application and you happen to be a couple of continents removed from Scandinavia follow this post which basically does the following:
1. Install ubuntu 10.04 LTS in a VM
2. Install bankid 4.19.XXXX or earlier in the ubuntu VM
3. Copy your ~/.personal from your regular linux computer to the ubuntu VM
4. export your key using persadm export to a USB stick
5. Install windows 7 in a VM using the free, legal isos and the free, legal installation key. The copy will expire after 30 days (but will still continue working).
6. Install bankid in the Win 7 VM
7. Under File/Preferences in bankid add the directory on your USB stick with the exported bankid key
8. Log in to your BankID issuer (probably your bank) using bankid 'on file', and request a mobile bankid. You'll get an activation code
9. Install the bankid app on your phone (e.g. bankid from the play store on android)
10. Start the bankid app on your phone, and type in your personnummer and the activation code. Create a pin, which is your password
11. You're done.

I mean, sure, it's a very awkward way of going about it, but it works and is conceptually simple.

Android in a VM
And there's absolutely no reason you can't use mobile bankid it in a virtualbox VM if you want to -- I used an android 4.4 x86 iso and created a virtual machine, and then set up bankid which works fine.


19 November 2014

602. Surviving bankid + rant. Exporting bankid files from linux to windows

This post probably isn't interesting unless you live/have lived in Sweden (Scandinavia)/deal with Swedish(Scandinavian) banks and their unbelievably crappy electronic ID solution.

This post will not show you how to use BankID on Linux -- it will show you how to move bankid files from debian linux to windows 7. Nor is the method elegant as it involves using two VMs.

I should make a long rant about how the company, Finansiell ID teknik, behind BankID should be sued into oblivion and the Swedish  politicians allowing it to be used to access government service without requiring open specifications be jailed indefinitely. But I'm tired.

[looks like I got into a rant after all]
rant begin:
Long story short: BankID has always been a real pain in the backside to use on linux, and now support has ended altogether. Support for Windows XP has been dropped as well, which will become relevant later.


No more linux announcement: https://support.bankid.com/syskrav

Either way, there's no linux-friendly solution out there, as in moving from v4 to v5 of bankid the format has changed completely. To my understanding, that means that fribid also will not work with providers requiring bankid versions newer than

There's a linux-friendly solution: mobile bankid, which runs on android. However, it seems to require a Swedish (or northern European) SIM card. Actually, I have no idea how it works since there's hardly any bloody information out there -- the bankid.com website is incredibly bad. The most detailed info I've found is this, which says that it's SIM card and service provider dependent: https://www.bankid.no/Dette-er-BankID/BankID-pa-mobil/. On the other hand, this page says it isn't: http://www.stockholm.se/mobiltbankid

[NOPE -- that's not how it works -- it's actually a lot better. See here instead: linktocome ]

In the end it doesn't matter since you'll have to walk into a Swedish bank in person to order a new bankid set-up code. Not something you can do if you're abroad.

There's one other solution available -- ID via the Swedish tax office. Unfortunately it is only available for people residing in Sweden. Anyone who has business with Sweden but lives abroad is SOL.
rant end.


Step 1. Windows 7 in a VM -- overview
So, I had to find a pragmatic solution, and quickly since my current ID key is expiring. I have an old Windows XP disk that I could install in a VM, but since XP isn't supported anymore, that wouldn't work anyway.

I then decided to see how much a copy of Windows 7 costs. I'm not keen on throwing money at MS, but I was still at the point of simply investigating solutions. According to http://www.cheapaussiesoftware.com/microsoft-windows/microsoft-windows-7  the cheapest copy is $124. Not keen.

I am surrounded by computers with Windows 7 Pro OA stickers (that are running debian), so I figured if I could only get my hands on a DVD I could use the license that has already been paid for. I also had a vague memory of the Windows 7 isos being freely and legally available from Microsoft via download.

Using google a bit I eventually found it: http://www.heidoc.net/joomla/technology-science/microsoft/14-windows-7-direct-download-links
which provides Windows 7 isos freely and legally via Digital River. Note that you'll still need to find your own activation key.

Activation key -- you can either:
* get that legally by paying for it. Not interested in paying that much money for something I'm not going to use much.

* use google for a few minutes, find tons of activation keys which appear to work during installation but really don't allow you to activate your copy (go to Computer, Properties and click on Activate Now). This is obviously not legal.

* Put in an installation key (D4F6K-QK3RD-TMVMJ-BBMRX-3MBMV... read more) which allows you to finish the installation but won't activate your copy. Actually, reading the linked post you might not have to enter anything.

Either way, after 30 days your copy will expire. You can still use it -- the only things that change is the background (goes black), you can't install updates anymore, and Aero turns off. See here. This is fine by me.

As OA licenses are limited and I really don't care about using Windows for anything but bankid, I went with the last option.

Installing Windows 7 Ultimate 64 bit in VirtualBox went without a hitch, and I awarded it 30 Gb HDD and 2 gb RAM (I have 4 Tb HDD and 8 Gb RAM on my system). So far so good..

From within Windows 7 I then downloaded bankid v 6.1 from here: https://install.bankid.com/ (ignore the whole linux/ubuntu link -- that's for v 4 which isn't supported by most banks anymore...)


Step 2. Ubuntu (yup) in a VM *yup).
At this point I figured I was doing pretty well. I connected a USB stick to my computer (i.e. debian) and ran persadm.
me@beryllium:/media/highio$ persadm export BankID Security Application 4.19.1 Available tokens: 0: (140110 yy.xx) Me - BankID on file 1: (130304 yy.xx) Me - BankID on file Choose token: 0 Enter pin: Enter removable media export directory (must exist): /media/fat32/bid Failed to export token. The reason might be that the export directory is not on a removable media, or that you don't have permission to write to it.
No matter what I tried in terms of permissions and destination file systems made any difference.

In desperation I then copied the ~/.personal structure containing the bankid keys from my debian box to my USB stick, fired up an old Ubuntu virtual machine with bankid installed (you may want to download bankid for ubuntu from here for THAT purpose: https://install.bankid.com/)

Running persadmin in the Ubuntu 10.04 LTS 32 bit VM worked perfectly, and I now had the exported .nge file in a folder on my USB stick.
me@me-desktop:~$ persadm export BankID Security Application 4.19.1 Available tokens: 0: (140110 yy.xx) Me - BankID on file 1: (130304 yy.xx) Me - BankID on file Choose token: 0 Enter pin: Enter removable media export directory (must exist): /media/fat32/bid Successfully exported token.
In retrospect you might be able to do this in a chrooted ubuntu instance under debian. Who knows?

Step 3. Importing the BankID key files
I then fired up the Windows 7 VM, started BankID and went to File/Preferences. Under locations I added the folder on the USB stick that held the exported BankID file, clicked Add, then Save, and everything was good.



Well, apart from the fact that I had to use two VMs, and am now stuck with a Windows 7 VM.

My Win 7 .vdi file is about 9 Gb, which as a tar.gz file is compressed to 3.8 Gb. I've backed it up in three different locations, so hopefully there won't be any issues with losing the bankid due to MS update idiocies.

13 November 2014

601. Linphone on windows XP with llinphone's sip server

This post is meant as a step by step guide that more computer savvy users on linux (who'd be interested in using linphone) can share with less computer savvy users on windows.

I'd like to be able to do a video chat with a specific person who told me about issues with installing skype on their laptop. Given that I'm having issues with skype on some of my computers as well, and the general nuisance of having to deal with i386 libs just for the sake of skype, and the fact that I'm using linphone for my iinet voip service as well as freecall, I'm keen on getting that person switched to linphone.

(I presume that easier solutions would involve e.g. google talk in a browser, but where's the fun in that?)
The following was done on a native installation of windows xp which I remotely connected to using remmina (via rdp).

1. Get Linphone.

Note that the current version, 3.7.0, which is available by clicking on the download button on the website does not work on windows XP (for me), as it gives the following:

Instead, go to http://download-mirror.savannah.gnu.org/releases/linphone/3.6.x/win32/ and download 3.6.1.
version 3.4 works too
2. Install Linphone
Nothing odd here:








2b. Register for a SIP service
For Linphone to work you need to register for a SIP service. Linphone offers a free one. NOTE that you can register for a SIP service during the installation of Linphone i.e. you don't need to follow this step. Might be useful if you've already got Linphone installed and want to manually register though.


3. Set up Linphone
If you're asked whether to unblock, click unblock.
The wizard:

If you didn't sing up separately for a SIP account you can choose to do so as part of the setup using the wizard. Otherwise you can manually set it up, and that's what I'll show here:


That's the end of the wizard.

You can add contacts just like you would in any other 'chat' program, although here you use SIP addresses.


02 November 2014

600. gdm/gnome breakage in debian jessie October/November 2014

I did a dist-upgrade last night and encountered this on my next boot:
During the dist-upgrade I got a message about the nvidia driver version not being compatible with my system -- small surprise as I have an onboard intel chip and no external graphics card (it's a lenovo thinkpad SL410).

Installing kdm let me at least boot into a DM. I still couldn't launch gnome from kdm, it giving the same error message as in the photo.
Digging a bit deeper and looking at what happened before/during a crash:
journalctl
Nov 02 10:46:30 niobium kdm[1317]: Stopping K Display Manager: kdm...done. Nov 02 10:46:30 niobium systemd[1]: gdm.service: control process exited, code=exited status=1 Nov 02 10:46:30 niobium systemd[1]: Failed to start GNOME Display Manager. Nov 02 10:46:30 niobium systemd[1]: Dependency failed for X11 Display Manager. Nov 02 10:46:30 niobium systemd[1]: Unit gdm.service entered failed state. Nov 02 10:46:30 niobium kdm[1350]: Starting K Display Manager: kdm. Nov 02 10:46:30 niobium sudo[1311]: pam_unix(sudo:session): session closed for user root Nov 02 10:46:30 niobium console-kit-daemon[1707]: (process:1372): GLib-CRITICAL **: g_slice_set_config: assertion 'sys_page_size == 0' failed Nov 02 10:46:30 niobium console-kit-daemon[1707]: (process:1373): GLib-CRITICAL **: g_slice_set_config: assertion 'sys_page_size == 0' failed Nov 02 10:46:30 niobium console-kit-daemon[1707]: (process:1374): GLib-CRITICAL **: g_slice_set_config: assertion 'sys_page_size == 0' failed Nov 02 10:46:30 niobium kdm_greet[1378]: Cannot load /usr/share/kde4/apps/kdm/faces/.default.face: No such file or directory Nov 02 10:46:31 niobium systemd[1]: gdm.service: control process exited, code=exited status=1 Nov 02 10:46:31 niobium systemd[1]: Failed to start GNOME Display Manager. Nov 02 10:46:31 niobium systemd[1]: Dependency failed for X11 Display Manager. Nov 02 10:46:31 niobium systemd[1]: Unit gdm.service entered failed state. Nov 02 10:46:32 niobium console-kit-daemon[1707]: (process:1398): GLib-CRITICAL **: g_slice_set_config: assertion 'sys_page_size == 0' failed Nov 02 10:46:32 niobium console-kit-daemon[1707]: (process:1399): GLib-CRITICAL **: g_slice_set_config: assertion 'sys_page_size == 0' failed Nov 02 10:46:32 niobium console-kit-daemon[1707]: (process:1400): GLib-CRITICAL **: g_slice_set_config: assertion 'sys_page_size == 0' failed Nov 02 10:46:32 niobium systemd[1]: gdm.service: control process exited, code=exited status=1 Nov 02 10:46:32 niobium systemd[1]: Failed to start GNOME Display Manager. Nov 02 10:46:32 niobium systemd[1]: Dependency failed for X11 Display Manager. Nov 02 10:46:32 niobium systemd[1]: Unit gdm.service entered failed state. Nov 02 10:46:33 niobium systemd[1]: gdm.service: control process exited, code=exited status=1 Nov 02 10:46:33 niobium systemd[1]: Failed to start GNOME Display Manager. Nov 02 10:46:33 niobium systemd[1]: Dependency failed for X11 Display Manager. Nov 02 10:46:33 niobium systemd[1]: Unit gdm.service entered failed state. Nov 02 10:46:35 niobium systemd[1]: gdm.service start request repeated too quickly, refusing to start. Nov 02 10:46:35 niobium systemd[1]: Failed to start GNOME Display Manager. Nov 02 10:46:35 niobium systemd[1]: Dependency failed for X11 Display Manager. Nov 02 10:46:35 niobium systemd[1]: Unit gdm.service entered failed sta
GDM shouldn't be involved at all as I was using kdm.
systemctl -l status gdm.service
● gdm.service - GNOME Display Manager Loaded: loaded (/lib/systemd/system/gdm.service; enabled) Drop-In: /run/systemd/generator/gdm3.service.d └─50-gdm3-$x-display-manager.conf Active: failed (Result: start-limit) since Sun 2014-11-02 10:46:35 AEDT; 14min ago Process: 1405 ExecStartPre=/bin/sh -c [ "$(cat /etc/X11/default-display-manager 2>/dev/null)" = "/usr/sbin/gdm3" ] (code=exited, status=1/FAILURE) Nov 02 10:46:35 niobium systemd[1]: gdm.service start request repeated too quickly, refusing to start. Nov 02 10:46:35 niobium systemd[1]: Failed to start GNOME Display Manager. Nov 02 10:46:35 niobium systemd[1]: Unit gdm.service entered failed state.


The solution:
Either way, I now had enough keywords to start googling, and came across http://forums.debian.net/viewtopic.php?f=10&t=118305

Basically,
sudo apt-get purge nvidia-*
sudo apt-get purge libnvidia-ml1:i386 nvidia-smi:i386
sudo apt-get install glx-alternative-mesa
sudo apt-get --reinstall install gdm3

Launching gnome (standard) from kdm gave me prompts to set up the configuration for an installed extension (I miss the frippery extensions...). Not sure whether the breakage was related to the extension.
 Either way, everything is working properly now.