Fedora 21 and MTP

In order to be able to mount a MTP device (in my case it is a Oneplus One) in thunar file manager the following packages are needed: simple-mtpfs libmtp fuse fuse-libs gvfs-mtp. After installing the previous listed packages restart the system. Once installed the device can me be mounted with simple-mtpfs _directory_, unmounted with fusermount -u _directory_ or mounted with thunar/gigolo/etc.

Posted on

Android, Firefox and video corruption

When playing html5 videos with my 1+1 (Cyanogenmod 11 – snapshot M11 – Android 4.4.4 with ART runtime) using Firefox 33.1 (version 34 does not fix the bug either) audio works fine while video is completely corrupted with grey artifacts all over the place. The problem appears to be quite common and is not only circumscribed to 1+1. The best workaround so far is type about:config in the address bar, search for media.stagefright.omxcodec.flags and set its value to 8 to disable video hardware acceleration (0 lets android pick the best option and 16 forces hardware acceleration always on). Firefox 36, which is currently in nightly stage, should come with a patch that will actually solve the issue but I am not comfortable with running a browser in alpha/beta stage so for now I will live without video hardware acceleration. …

Posted on

OnePlus One

Two weeks ago while wasting time on the interwebs I found by accident a couple of OnePlus One invites. To be honest I wasn’t planning on buying a new phone since my previous Nexus 4 is still serving me well but seeing OPO price (299 € for the 64 GB one) and specs I said: well, fuck it. So far I like it very much, the bigger screen makes general usage more enjoyable and battery life is significantly better than Nexus 4, it lasts 2 days without many problems. I can’t really comment on Cyanogenmod OPO edition or whatever the stock ROM is called since I used it for just the bunch of minutes necessarily to enable USB debug, unlock the bootloader and install recovery and stock Cyanogenmod 11 snapshot M11. One thing I for sure don’t like is the unlock screen, stock Cyanogenmod one is way way better but that’s pretty much it, can’t say more. …

Posted on

Get rid of SHA-1 – nginx, TLSv1.2, PFS and SHA-2

Everyone who knows me a little bit knows how much I dislike Google but this time we really should thank them for taking a real step toward a more secure web. They are finally moving away from SHA-1 to the much more secure SHA-2, more info can be found here: http://googleonlinesecurity.blogspot.it/2014/09/gradually-sunsetting-sha-1.html .:. Setup CentOS 6.5 x86_64 nginx/1.6.1 OpenSSL 1.0.1e-fips 11 Feb 2013 Nginx developers provide an up to date repository (http://wiki.nginx.org/Install)for CentOS: …

Posted on

pdnsd automatic startup Arch Linux

I have this Arch Linux based ODROID-U3 I use as DLNA server, local web server…etc…and also as local DNS caching server. For some strange reason pdnsd doesn’t seem to start correctly on Arch Linux. [root@server ~]# systemctl status pdnsd -l ● pdnsd.service - proxy name server Loaded: loaded (/usr/lib/systemd/system/pdnsd.service; enabled) Active: failed (Result: exit-code) since Sat 2000-01-01 20:02:07 CET; 14 years 7 months ago Process: 182 ExecStart=/usr/bin/pdnsd (code=exited, status=3) Main PID: 182 (code=exited, status=3) Jan 01 20:02:06 server systemd[1]: Starting proxy name server... Jan 01 20:02:06 server systemd[1]: Started proxy name server. Jan 01 20:02:06 server pdnsd[182]: Error in config file (line 11): Failed to get IP address of eth0: Cannot assign requested address Jan 01 20:02:07 server systemd[1]: pdnsd.service: main process exited, code=exited, status=3/NOTIMPLEMENTED Jan 01 20:02:07 server systemd[1]: Unit pdnsd.service entered failed state. Adding After=network-online.target and Wants=network-online.target in the Unit section of the startup script doesn’t seem to make any difference. So far the only workaround which really works is adding the line After=multi-user.target in the service script. …

Posted on

Rockbox IPOD Classic mounted as read only

So, I have this big ass fancy IPOD Classic, the stock OS is, like most of the apple stuff, dogshit; I installed Rockbox and gave him new life. Yesterday I had some strange errors during theme installation (RockboxUtility on Fedora X86_64), files extraction failed or something like this. At first I thought of a corrupted Rockbox installation, after a bit of thinkering I found out the thing was just mounted as read only; tried to mount it manually with the rw flag but still a no go. Umount the volume and run fsck.vfat /dev/sd*2 saved the day, now the IPOD is mountable as rw. …

Posted on

ejabberd XMPP server configuration guide

I will be keeping this post up to date to keep track on how to configure and mantain an ejabberd server working efficiently and secure. I strongly advise any reader to read carefully what is written here and not just copy-and-paste the configuration file. My blog also contains a bunch of other posts regarding ejabberd that are worth giving a look at, use the search form. Server CentOS 7.5.1804 x86_64 Erlang/OTP 21.1.1-1 x86_64 ejabberd 18.09 Client LineageOS 15.1 (Android Nougat) Conversations 2.3.5+fcr .:. Installation and initial configuration Download and install erlang (release numbers here may not be up to date): …

Posted on

ODROID-U3 network unreachable

This issue seems to affect not only ODROID-U3 but many other devices and seems to be present on multiple OS too (Arch Linux ARM in my case). What happen is that after some hours/days of intense network traffic (e.g. a torrent client installed on the board) the system logs are flooded with errors and a page allocation error occurs which results in a network disconnection. In my case the tool journalctl report a moltitude of smsc95xx 1-2:1.0 eth0: kevent 2 may have been dropped errors. The workarounds that should (time will tell…) solve the issue consist in creating a file named for example smsc.conf in /etc/modprobe.d and put in it the following string: smsc95xx turbo_mode=N Disabling turbo mode will prevent the network adapter from sending multiple frames at the same time, single file copy performace in my case is invariated (9.4 MB/s ~) with and without turbo mode and the errors from syslogs are completely gone. …

Posted on