UWOT.EU

Interesting read on Samba 4

In the last month or so despite not having much spare time I spent a few hours reading an interesting book: Implementing Samba 4It actually is more than a simple book, it is a well written step-by-step guide on how to install (on Debian 7, not that it makes much difference, the installation is really similar on CentOS for example), configure, manage and even migrate an existing Active Directory domain controller from Windows Server to GNU/Linux. …

Posted on

Elantech touchpad and Mint 16

Today I installed Linux Mint on an Asus X551CA laptop.Everything was fine except Mint being shit and the damn Elantech touchpad being even worse than Mint.I will never understand why the fuckers at Canonical and whoever is in charge of Mint development are always 6 months late with important updates like new kernels with added hardware support.The damn Elantech touchpad is supported since kernel 3.12., too bad Mint is stuck with 3. …

Posted on

Systemd mount volume at boot

Since fstab (even with “nofail” option enabled) doesn’t seem to behave too good when trying to mount at boot something that isn’t actually plugged in (like an USB HDD) I realized it was a good idea to write a small script to run at startup which will be able to handle the situation a bit better.Arch Linux uses Systemd and even though a rc.local file can be created I decided to take the opportunity to understand a little bit of how it works and write a mount script for it. …

Posted on

Avahi on Arch linux ARM

From wikipedia: Avahi is a FLOSS Zero-configuration networking (zeroconf) implementation, including a system for multicast DNS/DNS-SD service discovery.Long story short: Avahi is used to resolve hostnames of LAN devices.I happen to have an ARM box on which runs a pretty minimal Arch Linux installation.Installing Avahi is pretty easy:The latest version of Avahi (0.6.31-11) makes use of SO_REUSEPORT which is a new feature introduced in Linux kernel 3.9, the latest official Arch Linux kernel for my platform is 3. …

Posted on

Nginx and password protected pages

To password protect a directory “xyz” and every file and subdirectory in it open the configuration file (nginx.conf or one of the virtual host configuration files) and add the following two lines:htpasswd file must be encrypted, it can be created using a tool named htpasswd.

Posted on

XenServer 6.2 and fake RAID1

XenServer, like many other bare-metal hypervisors, only supports a small bunch of RAID controllers.The difference between it and for example VMware ESXi is that XenServer is pretty much a CentOS minimal install with some proprietary administration tools and a pretty decent remote manager (only for Windows as long as I know…) while ESXi is a completely proprietary closed source blob.XenServer being based on CentOS makes it possible to do many weird unsupported things, like installing it on a software fake RAID on ICH8R. …

Posted on

FLAC+CUE to multiple tracks

Let’s say we have a big single FLAC file we want to split into multiple files, we are on Fedora and we don’t want to use anything but the command line.First of all:To split the single FLAC file run:This will produce n single files, “-t” parameter is used to specify file name format (in this case: track_number – performer – track_name).To copy metadata from CUE to the single files run:The following script can be used to convert all the single FLAC files in MP3 (bitrate: 320kb/s) and also copying all the metadata. …

Posted on

ZOWIE EC1 eVo CL on Linux

One year ago or so I wrote about my experience using the Logitech G500 on Linux, I like the mouse a lot, especially the scroll wheel, but there were also a couple of issues I couldn’t live with:1. no driver for Linux, tuning DPI settings is a real PITA;2. the fucker doesn’t track on close to every surface, be it a gadget mousepad you got for free at a meeting, a wooden table, a plastic-something table or a 20 € mousepad. …

Posted on