About "linux" on monperrus.net

by Martin Monperrus
Backup on box.com on Linux (works at KTH)(August 30, 2018)
Backup with LFTP Set up your box.com password: If box.com is configured with SSO (the case for KTH), you must first create an external password, see Creating and using an external password for Enterprise Box for instructions. Save your login information. >>> read more
How to Run BankId on Linux?(February 03, 2018)
Despite being required by a number a state organizations, BankId is based on a proprietary protocol and implementation. This pages summarizes the possibilities to run it on Linux. It complements the pages in Swedish by the Ubuntu Sweden Team. >>> read more
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
Connecting to Microsoft Exchange Calendar from Mozilla Thunderbird(June 10, 2017)
To connect to a calendar hosted on Microsoft Exchange from Mozilla Thunderbird, there are several solutions: ExQuilla, Exchange Calendar, TbSync and DavMail. >>> read more
Notes on connecting to eduroam with networkmanager(October 04, 2016)
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.conf to force the utilization of the reliable wext driver (and not nl80211/802.11 netlink). >>> read more
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");). >>> read more
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
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. >>> read more
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 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
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
What are 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
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
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
Compiling: where is function "_start"?(January 25, 2014)
When linking programs, by convention, function "_start" is the entry point. Hence, the linked has to find it somewhere in the object files or libraries that are linked. >>> read more
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 lightweight libc (as opposed to GNU libc). Using a tiny C compiler and a tiny libc is a kind of software minimalism. Requirements First install dietlibc (apt-get install dietlibc-dev). >>> read more
How to change the priority order of 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
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
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
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. >>> read more
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
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. >>> read more
Fixing UnknownHostException bug for jmdns on linux(August 26, 2011)
Here is a description of a bug I encountered while working with jmdns. >>> read more
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. >>> read more
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). >>> read more
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
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
Heads and sectors for partition alignment(July 01, 2011)
Partition alignment means two things: first that the partition boundaries correspond to physical disk block boundaries (which is straightforward for 512 byte blocks, but not for 128k blocks), second that the partition boundaries correspond to kernel volume blocks. >>> read more
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
ExpandAnimations: Exporting animations to PDF in LibreOffice/OpenOffice(May 22, 2011)
ExpandAnimations is a LibreOffice/OpenOffice.org extension to expand animations before exporting to PDF. The extension adds a menu entry "Tools>>Add-ons>>Expand animations" in Impress. The generated PDF file is in the same folder as the source document. >>> read more
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
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
Linux swap on a regular file (and not a partition)(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
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
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
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
dual head with Intel GM45 on Linux(October 10, 2009)
With a new version of the kernel (2.6.28) and of Xorg (1.6.3), I am able to have a dual screen with my Intel GM45 graphics card. The monitors are plugged on the HDMI-1 and HDMI-2 ports of the docking station. >>> read more
using dejavu fonts with x11-xorg(September 11, 2009)
Add the directory containing the TTF files of Dejavu (''FontPath "/usr/share/fonts/truetype/ttf-dejavu"'' in the section "Files") Create ''fonts.scale'' with ttmkfdir. >>> read more
Martin's misc tips before the stackexchange era(July 02, 2009)
  Why does my screen blink when I'm using Wine?  Why screen captures don't work with Wink?  How to fix "Unable to save my document" when using Samba/CIFS (e.g. >>> read more
using computer modern type1 fonts with openoffice on linux(June 26, 2009)
[[http://www.monperrus.net/martin/fonts-test.pdf|This test document produced with OpenOffice shows how type1 font "CM-super/Computer Modern" looks like]]. However this font is "too rich" for OpenOffice, it contains too many different styles (up to 30, cf. >>> read more
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
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
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
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

(43 results)