Running Viber on Debian 10

Usually I work, browse, email on a PC and not on a smartphone. However I use viber and I had it only on the phone. As there is a PC version, I thought I give it a try. On the download page there is of course the windows version, but there are also two packages for linux: one .deb for Ubuntu and .rpm for Fedora. I tried to install the .deb, but it has some dependencies on an older libssl. So what I did, I just unpacked it with
dpkg -x viber.deb out/
and then manually moved to /opt. When trying to start I got some error message that I could not interpret, but using strace to figure out, what was going on, I saw that some libraries were missing. Installing them solved the issue:
apt-get install libxcb-icccm4 libxcb-image0 libxcb-keysyms1 libxcb-randr0 libxcb-render-util0 libxcb-xkb1 libxkbcommon-x11-0
Now it runs, and seems to be working.

Debian Linux on a HP 250 G7

After several years the time has come to replace our aging Thinkpad Edge330. Our choice was a HP 250 G7 with Core i7, 512GB SSD and 16GB RAM. Regarding the OS, there was no question: Debian. At the time of installing it was Debian 10 (“buster”). Below some points regarding the installation:

  1. Installation worked out of the box, even with SecucreBoot enabled, no problems with the netinst image, with two exceptions:
    • Wireless LAN is not working (Realtek RTL8821CE)
    • Brightness control keys are not working
  2. There is a solution for the wireless driver, works as described on several forums:
    • install the tools:
      apt-get install git dkms build-essential
    • get the source:
      git clone https://github.com/tomaspinho/rtl8821ce
    • build the kernel module:
      cd rtl8821ce
      chmod +x dkms-install.sh
      chmod +x dkms-remove.sh
      ./dkms-install.sh
  3. To keep using SecureBoot the driver must be signed as described on https://wiki.debian.org/SecureBoot. Otherwise you get the following error message:
    Apr 24 22:58:55 hp250 kernel: [ 3762.662396] Lockdown: Loading of unsigned modules is restricted; see https://wiki.debian.org/SecureBoot
    You can disable SecureBoot so it will work with the following warning in the kernel log:
    Apr 25 13:22:40 hp250 kernel: [ 3.402154] 8821ce: loading out-of-tree module taints kernel.
    Apr 25 13:22:40 hp250 kernel: [ 3.402917] 8821ce: module verification failed: signature and/or required key missing - tainting kernel

    I suggest to sign the driver, it can be done quickly based on the instructions in the Debian Wiki.
  4. Brightness control works via power settings, or via the battery icon, for the keys I’m looking for a solution. In the kernel log I see these error messages:

Some further notes:
$lspci
00:00.0 Host bridge: Intel Corporation Device 3e34 (rev 0c)
00:02.0 VGA compatible controller: Intel Corporation UHD Graphics 620 (Whiskey Lake) (rev 02)
00:04.0 Signal processing controller: Intel Corporation Skylake Processor Thermal Subsystem (rev 0c)
00:08.0 System peripheral: Intel Corporation Skylake Gaussian Mixture Model
00:12.0 Signal processing controller: Intel Corporation Cannon Point-LP Thermal Controller (rev 30)
00:14.0 USB controller: Intel Corporation Cannon Point-LP USB 3.1 xHCI Controller (rev 30)
00:14.2 RAM memory: Intel Corporation Cannon Point-LP Shared SRAM (rev 30)
00:16.0 Communication controller: Intel Corporation Cannon Point-LP MEI Controller (rev 30)
00:17.0 RAID bus controller: Intel Corporation 82801 Mobile SATA Controller [RAID mode] (rev 30)
00:1d.0 PCI bridge: Intel Corporation Cannon Point-LP PCI Express Root Port (rev f0)
00:1d.1 PCI bridge: Intel Corporation Device 9db1 (rev f0)
00:1d.4 PCI bridge: Intel Corporation Device 9db4 (rev f0)
00:1f.0 ISA bridge: Intel Corporation Cannon Point-LP LPC Controller (rev 30)
00:1f.3 Audio device: Intel Corporation Cannon Point-LP High Definition Audio Controller (rev 30)
00:1f.4 SMBus: Intel Corporation Cannon Point-LP SMBus Controller (rev 30)
00:1f.5 Serial bus controller [0c80]: Intel Corporation Cannon Point-LP SPI Controller (rev 30)
01:00.0 Ethernet controller: Realtek Semiconductor Co., Ltd. RTL8111/8168/8411 PCI Express Gigabit Ethernet Controller (rev 15)
02:00.0 Network controller: Realtek Semiconductor Co., Ltd. RTL8821CE 802.11ac PCIe Wireless Network Adapter
03:00.0 Non-Volatile memory controller: Sandisk Corp WD Black 2018/PC SN520 NVMe SSD (rev 01)

XBMC and Natty

I also upgraded Ubuntu on our media PC. After the upgrade XBMC started to act strangely. When I tried to move up or down in the menu, it jumped two for each keypress. During the playback, sometimes the video froze for a fraction of the second, while the sound was continuing normally, then the video fast forwarded and caught up with the audio. The third issue was that the OSD wasn’t visible. It appeared for a quick moment, but then it disappeared. It was still there, but it wasn’t visible.
Continue reading XBMC and Natty

OpenStreetMap

Not long ago I was talking to a friend, and I mentioned OpenStreetMap. I was surprised to learn that he had never heard of it before.

OpenStreetMap is a freely available online map, similar to Bing maps or Google maps. The big difference is that OpenStreetMap is editable. Just like Wikipedia, it is edited by the online community. Everybody can upload GPS tracks, define roads, mark buildings, and so on. Even if you don’t have a GPS, you can help, for example by entering street names.
Continue reading OpenStreetMap

HTML5 video

There is a nice article about HTML5 video: http://diveintohtml5.org/video.html

XMBC, Lucid and PulseAudio

After I have upgraded our media PC to Ubuntu 10.4 (Lucid Lynx) audio stopped working in XBMC. Upgrading to the latest XBMC ubuntu packages from PPA didn’t help. After some experimenting, I have figured out that pulseaudio had to be started. I have the XBMC session file (/usr/share/xsessions/XBMC.desktop), and it turned out that it simply starts xbmc-standalone, which in turn starts pulse-session. But only if it exists. On Lucid it does not.

Fortunately we can use pulseaudio –start instead. So I just modified the startup script and now it works fine.


For the records /usr/bin/xbmc-standalone before:
#!/bin/sh
if which pulse-session; then
pulse-session xbmc --standalone "$@"
else
xbmc --standalone "$@"
fi

And after:
if which pulseaudio; then
pulseaudio --start
fi
xbmc --standalone "$@"

Links 2010-05-06

Reading material 😉
– http://blog.drinsama.de/erich/en/20100504-facebook-tracking-via-like.html [en]
– http://www.eff.org/deeplinks/2010/04/facebook-timeline [en]
– http://index.hu/tudomany/2010/05/06/meghataroztak_a_kvarkok_tomeget/ [hu]
– http://fedor.blog.hu/2010/05/06/a_lo_tulso_oldala_1 [hu]
– http://www.portfolio.hu/cikkek.tdp?h=1&k=3&i=132686 [hu]

Fine tuning FS

During the flight I mentioned in my last entry, I realised that I had forgotten to install and setup some stuff. So I installed them today. These were:

  • Service Pack 3 for the Flight 1 ATR 72
  • Latest navitational database for the ATR 72, available from navigraph.com

I also had to set up my microphone. It wasn’t easy. Windows 7 detects two microphones for some reason. I had to disable the first one in the list. Furthermore I had to increase the volume to 100% and boost to +20.0 dB (66%). We tested the microphone with a fellow pilot so now it should be ok. 🙂 By the way, it was the same pilot as yesterday, let’s call him BCY007 Lotfi 😉

The engines were too loud, so I changed the sound settings as well. First in the ATR 72 configurator. Ambient sounds are set to 50%, everything else is set to 90%. Unfortunately, I cannot hear some less important sounds using these settings, but I cannot set the ambient sounds higher to 50%, otherwise I get a terrible noise in the cockpit.

I have also changed the Flight Simulator sound settings as follows: 2, 30, 20, 10, 80, 80. As you see I have set the engines to very low. Now it’s fine. I can still hear them so I notice how the engines react on changing the throttle.

Finally I did a short flight from EIDW (Dublin) to EINN (Shannon), and everything went fine.

Fokker F50 and DAAG sceenery

Yesterday I have installed a Fokker F50 for FS2004. It was made by DreamWings Design, and it contains a CityJet livery by Mathieu Vos. It is available from flightsim.com: http://www.flightsim.com/kdl.php?fid=139789

Installation is straightforward, just copy the extracted directory in the Aircraft directory of FS2004. There is also a panel for the F50 from the Fokker Panel Project, but I haven’t installed it yet.

Today I did a flight with a fellow pilot from CityJet VA from DTTA (Tunis) to DAAG (Algiers). There is a very nice sceenery available for DAAG that I installed before the flight. Just unrar to Addon Sceeneries, add as usually, and it works. Available from http://riadg.free.fr/

As the DAAG sceenery is in a rar file, I had to install winrar as well. However, I set it to be the default application for rar files only. Windows 7 can handle zip files, so I’m glad I don’t have to use winzip. And I will use winrar only when really necessary.