About "linux" on monperrus.net

by Martin Monperrus
#45 Linux on a HP Elitebook Folio G1 (July 02, 2017)
Tips and tricks to run Linux on Hewlett-Packard "HP EliteBook Folio G1" (from ''dmidecode | grep -i Product''). Considered distribution: Debian. Bios By default, the function keys f1 .. are disabled, which is an issue for Alt-F4 (close window), etc. >>> read more
#44 Connecting to Microsoft Exchange Calendar from Mozilla Thunderbird (June 10, 2017)
To connect to a calendar hosted on Microsoft Exchange, there are three solutions: ExQuilla, DavMail and Exchange Calendar. ExQuilla ExQuilla for Microsoft Exchange is a registered Thunderbird addon. >>> read more
#43 How to index FODT and FODP files with recoll (March 02, 2017)
It is possible to index the new file formats FODT and FODP of LibreOffice with recoll. Those files are plain XML files, usable in Git. You have to add to $HOME/.recoll/mimeconf: [index] application/vnd.oasis.opendocument.text-flat-xml = execm rclxml.py application/vnd.oasis.opendocument. >>> read more
#42 Notes on connecting to eduroam with networkmanager (October 04, 2016)
Do you have problems to connect to eduroam with networkmanager? (some error messages below) One potential issue is that wpa_supplicant's driver fails, one solutions is to set, wifi-wext-only=true in section [main] of /etc/NetworkManager/NetworkManager. >>> read more
#41 How to use recoll to index maildir folders (September 18, 2016)
The Recoll desktop search tool can be used to index a maildir directory, for instance that comes from Thunderbird when the maildir format has been activated -- user_pref("mail.server.server2.storeContractID", "@mozilla.org/msgstore/maildirstore;1");). Here is how. >>> read more
#40 SSH over VPN with openconnect and ocproxy (September 10, 2016)
I have a VPN access that uses the openconnect stack. I want to access a machine on the private network via SSH. However, I don't want to route all my traffic network through VPN. Here is the solution. >>> read more
#39 Accessing STMP on port 443 using SSLH (January 23, 2016)
In order to use my Thunderbird everywhere, I want to access a SMTP server on HTTPS port 443, which is open in many networks and proxy. The solution I use sslh, an applicative protocol multiplexer. The idea is that the SSL traffic to myserver. >>> read more
#38 One million files on Git and Github (September 29, 2015)
I want to create a Github repository with 1,700,000 files. Yes, more than one million files on Git. Even worse, I want them to put them in the same directory. Why? Well for creating a scientific dataset of software engineering data: a dataset of all commits of the Apache Repository. >>> read more
#37 How-to backup your data on hubic using duplicity (June 24, 2015)
Here is a small how-to to backup your data on hubic using a backup tool called duplicity. Done on a Debian box. Your mileage may vary. Howto 1. Install duplicity aptitude install duplicity python-pip # the hubic backend of duplicity requires pyrax pip install pyrax 2. >>> read more
#36 Notes on Thunderbird MSF files (May 10, 2015)
I have recently dig into the *.MSF file of the Mozilla Thunderbird email client. What is the MSF file format? It's simply a file-based Mork database. Mork is a database format that has been invented by Netscape. >>> read more
#35 Notes on troubleshooting BTRFS (April 25, 2015)
I've recently come across a hard file-system error: BTRFS critical (device sda2): corrupt leaf, slot offset bad: block=43231330304,root=1, slot=47 It was on my BTRFS file system on top of an SSD (Solid-state drive). >>> read more
#34 Linux on a HP Elitebook 820 (December 17, 2014)
I run GNU/Linux on my HP Elitebook 820. Hardware name: Hewlett-Packard HP EliteBook 820 G1/1991, BIOS L71 Ver. 01.20 07/28/2014 (from dmidecode) Graphics Graphics works with the "intel" driver of xorg and the "i915" kernel module. >>> read more
#33 Compiling: where is function "_start"? (January 25, 2014)
When linking programs, by convention, function "_start" is the entry point. Hence, it has to somewhere in the object files or libraries that are linked. >>> read more
#32 Compiling C code with dietlibc and tcc (January 05, 2014)
Tcc (aka Tiny C Compiler, or tinycc) is a very lightweight C compiler. Dietlibc is lighweight libc (as opposed to GNU libc). Using a tiny C compiler and a tiny libc is a kind of software minimalism. First download tcc and install dietlibc (apt-get install dietlibc-dev). Then compile tcc as follows. >>> read more
#31 Installing Dillinger on Nodejs and Debian (April 05, 2013)
To install Dillinger on Debian (the markdown editor) Procedure ######### AS ROOT ############### # Install libv8 aptitude install libv8-3.8.9.20 # download and install nodejs curl -O https://launchpad.net/~chris-lea/+archive/node.js/+files/nodejs_0.10.3-1chl1%7Elucid1_i386. >>> read more
#30 Some notes on shared libraries with ld (October 09, 2012)
On Linux, shared libraries (aka dynamically linked libraries) are handled with the ld* set of tools from libc-bin. I've recently encountered some bugs related to this, here are some raw notes on this technology. >>> read more
#29 Installing a Samsung ML-2525W on Linux (February 14, 2012)
I've just successfully installed a printer Samsung ML-2525W on two Linux machines (Debian and Ubuntu). Here is what I did. >>> read more
#28 Running mldonkey-server in headless server and bittorrent mode (February 11, 2012)
Here is a small howto (for Linux/Debian/Ubuntu) to set up mldonkey to serve large files (to "seed" files on a "seedbox" in the P2P terminology), for instance to seed scientific datasets . >>> read more
#27 Backing-up a Gmail IMAP account (January 23, 2012)
To backup an IMAP account (e.g. Gmail on imap.gmail.com), mbsync (from the isync software package) is a very good solution. It backs-up all emails in a Maildir directory. Prerequisite Install isync: $ aptitude install isync Configuration file Create a file .mbsyncrc in your home directory. >>> read more
#26 Lightweight estimation of disk misalignment performance penalty (January 16, 2012)
Modern disks have a physical sector size that is larger than 512B, but the software chain (BIOS, OS, partitioning tools) generally assumes a sector size of 512B. As a result, first, I/O requests that are smaller than the physical sector size are actually translated to larger requests. >>> read more
#25 Notes on network printing with cups (December 01, 2011)
Cups is a printing software system that supports network printing. For instance, if a machine Timoleon is connected to a USB printer, one can access Timoleon over the network to print on the USB printer. The network printing facility also holds for network printers. >>> read more
#24 Installing Debian on Amazon EC2 (November 05, 2011)
It is not straightforward to install a Debian server on Amazon EC2. Indeed, Amazon provides as quick start Red Hat Linux, Suse Linux and their own Amazon Linux but not Debian linux. Fortunately, RightScale provides a very good public AMI image of Debian Squeeze (the latest stable version of Debian). >>> read more
#23 Fixing UnknownHostException bug for jmdns on linux (August 26, 2011)
Here is a description of a bug I encountered while working with jmdns. Problem Aug 26, 2011 12:16:52 AM javax.jmdns.impl.HostInfo newHostInfo WARNING: Could not intialize the host network interface on nullbecause of an error: beethoven: beethoven java.net. >>> read more
#22 Linux on a DELL Latitude E4200 (August 02, 2011)
I run GNU/Linux (Debian/Ubuntu) on my DELL Latitude E4200. =====Graphics===== Graphics works perfectly with the "intel" driver of xorg. I have a nice WXGA widescreen (1280x800), I am able to use a docking station and can switch to a video projector with [[http://www.thinkwiki. >>> read more
#21 Precisely measuring the maximal disk latency (July 12, 2011)
See also http://www.monperrus.net/martin/performance-of-amazon-elastic-block-store The maximal end-to-end latency of a hard-drive is achieved with accessing a random sector (it includes transfer time). The program seeker.c published at http://www.linuxinsight.com/how_fast_is_your_disk. >>> read more
#20 Scheduler queue size and resilience to heavy IO (July 11, 2011)
My server regularly stalled, freezed and sometimes crashed under heavy write accesses (open-iscsi on root filesystem). I solved the problem by changing the scheduler and increasing the maximal I/O queue size (nr_requests). >>> read more
#19 I/O Scheduling for SAN and Virtualization (July 10, 2011)
I recently encountered performance and reliability problems using iSCSI. One of the most efficient solutions was to set the I/O scheduler to "noop". Noop is the simplest elevator/scheduler in Linux. It is based on FIFO -- first request in, first out. >>> read more
#18 Heads and sectors for partition alignment (July 01, 2011)
There are many cases where [[http://www.ibm.com/developerworks/linux/library/l-4kb-sector-disks/index.html?ca=dgr-lnxw074KB-Disksdth-LX|aligning the disk partitions yields better perfomance]], for instance for database partitions, solid-state disks (SSD), and SAN storage with iSCSI. >>> read more
#17 Performance of read-write throughput with iscsi (June 14, 2011)
I recently encountered some performance issues using iSCSI. I use the open-iscsi implementation on the client side. After hours of googling and trial and errors, here are some points related to the performance of iSCSI. >>> read more
#16 ExpandAnimations: Exporting animations to PDF in LibreOffice/OpenOffice (May 22, 2011)
No preview available >>> read more
#15 troubleshooting gnome-power-manager and gnome-power-preferences (March 26, 2011)
On a Gnome desktop on Linux, [[http://projects.gnome.org/gnome-power-manager/|gnome-power-manager]] is responsible for handling battery events and physical events (laptop lid closed, power button pressed, etc). The tool ''gnome-power-preferences'' configures it. >>> read more
#14 Performance of key-value databases with php (August 03, 2010)
I discovered recently the old key-value database paradigm and I am quite convinced. But what about the performance of different implementations? This document presents a comparison in the context of PHP. >>> read more
#13 Linux swap space on a regular file (June 22, 2010)
1/ creating the swap file of 512M (the size is set by parameter "count") ''$ dd if=/dev/zero of=/swap count=1000000'' 2/ configuring as swap ''$ mkswap /swap'' 3/ Adding "/swap none swap loop 0 0" to the file ''/ect/fstab'' 4/ Mounting the swap file. >>> read more
#12 Inquiry into a complex bug involving Xorg-Intel-Linux (June 21, 2010)
This document is a complete analysis of a challenging bug related to Xorg, an Intel graphics card and Linux. >>> read more
#11 backup from ext3 to vfat with qcow2 images (November 28, 2009)
It's difficult to backup data if the target filesystem of your backup is vfat (e.g. on the external hard drive of your sister), and the source is ext3. The reason is that vfat has much less features compared to ext3 (e.g. the group information). >>> read more
#10 Backup from ext3 to vfat with rsync (November 16, 2009)
Rsync is great for backuping data. However, it requires some advanced options to get a smooth backup from an ext3 filesystem to a vfat/fat16/fat32 one (e.g. >>> read more
#9 using dejavu fonts with x11-xorg (September 11, 2009)
This document presents how to use DejaVu fonts with x11: Ensure that the freetype module is loaded by X (''Load "freetype"'' in the section "Module" of xorg. >>> read more
#8 using computer modern type1 fonts with openoffice on linux (June 26, 2009)
You may want to use "Computer Modern" fonts with OpenOffice.org on Linux for several reasons: * to have a latex look'n'feel * to produce PDF files that only contain Type1 fonts (see [[http://cadlab.cs.ucla.edu/~kohcc/sigdacdrom/instruct/fonts.html]]) [[http://www.monperrus. >>> read more
#7 report on using kvm for virtualization on linux (March 31, 2009)
I use kvm for running Windows XP on Linux and I am very happy :-) For me, it is the first fully satisfying virtualization experience. First KVM is extremely fast, from the viewpoint of the virtual system (i.e. >>> read more
#6 lightweight powersave on linux with udev and cpufreq-set (March 28, 2009)
There is a number of tools to save power on Linux by throttling the CPU(s). Some are daemon based for example cpufreqd, powernowd, powersaved, cpudyn. Some are desktop based for example kpowersave or gnome-power-manager. >>> read more
#5 uploading files with curl and php (February 05, 2009)
To upload files with PHP from the command-line, you can use curl as follows. ''curl -v -F filepassword=(???) http://www.domain.com/upload.php'' The equivalent HTML form is: <form method="post" enctype="multipart/form-data" action="upload. >>> read more
#4 automounting usb flash drives on linux with udev and pmount (December 12, 2008)
Here is a solution for automounting usb flash drives / memory sticks on linux using only udev and pmount. add a file ''automount.rules'' in ''/etc/udev/rules.d''. >>> read more
#3 Desktop search - a comparison of tools that crawl and extract and index your personal data on Linux (November 29, 2008)
I have been needing a desktop search software for a long time. There are many tools for that, but I could not figure out which one is the best. That's why I made this comparison. I mainly found that beagle is the best one. >>> read more
#2 Linux on a DELL Latitude E5400 (November 22, 2008)
I currently have a Dell Latitude E5400, and run Linux on it. =====Graphics===== (OK with default installation of Ubuntu 8.1 Intrepid) Graphics works perfectly with the "intel" driver of xorg (at least as of X.Org version 1.4.2). >>> read more
#1 How to make any tunnel via any proxy (August 23, 2007)
Table of Contents Problem Motivations Scheme of resolution Tools used Parameters Solutions 6.1. Assistantless 6.2. With assistant 6.2.1. SSH access on assistant (you do not need to be root) 6.2.2. Root access on assistant 6.2.3. >>> read more