Generated by All in One SEO v5.0.1.1, this is an llms.txt file, used by LLMs to index the site. # 6log ~skanx ## Sitemaps - [XML Sitemap](https://www.microkwen.com/sitemap.xml): Contains all public & indexable URLs for this website. ## Posts - [1083 - Jeans et Sneakers fabriqués en France](https://www.microkwen.com/2013/03/29/1083-jeans-et-sneakers-fabriques-en-france/) - Savez-vous qu'un jeans parcourt jusqu’à 65000 km lors de sa fabrication, alors que 1083 km seulement séparent les 2 villes les plus éloignées de l’hexagone ? (Menton au sud-est, et Porspoder un petit village Breton). Je vous propose de relever avec moi ce défi : Fabriquer un jeans et une paire de basket, à moins - [Grepping processes](https://www.microkwen.com/2013/03/05/grepping-processes/) - Grepping ps output will result in grep showing its own process: [skanx@po-sr-nm ~]$ ps -efH|grep bash skanx 28142 8787 0 11:59 pts/6 00:00:00 bash skanx 28346 28142 0 12:01 pts/6 00:00:00 grep --color=auto bash Instead, use ps -efH|grep [b]ash: [skanx@po-sr-nm ~]$ ps -efH|grep [b]ash skanx 28142 8787 0 11:59 pts/6 00:00:00 bash - [Problème de connexion au portail VPN SSL FortiGate](https://www.microkwen.com/2013/01/22/probleme-de-connexion-au-portail-vpn-ssl/) - Sur certains FortiGate, impossible de se connecter au portail VPN depuis Windows. Il semblerait que le problème survienne après l’installation de la KB2585542. Une solution donnée est de désinstaller cette KB, mais cela ne fonctionne pas chez moi. L’autre solution est de changer une entrée de la base de registre, ce qui fonctionne pour moi - [Scan a network to find unused IP addresses](https://www.microkwen.com/2013/01/22/scan-a-network-to-find-unused-ip-addresses/) - ... or list machines responding to ARP queries. Here we use ARP requests to list active machines on the network, so even the machines who block ping requests will respond. nmap -PR -sn 172.16.42.* - [Get the ip address in a shell script](https://www.microkwen.com/2009/10/16/get-the-ip-address-from-a-script/) - Using ifconfig was not a good idea at all. Here is a more distro-agnostic way: ip addr show eth0 | grep "inet "| awk '{ print $2}' | awk -F '/' '{ print $1 }' # set the language to English, to avoid translation problems with ifconfig export LANG=C # get IP address of eth0 - [World IPv6 Day](https://www.microkwen.com/2012/06/06/world-ipv6-day/) - Aujourd'hui 6 juin 2012, c'est le World IPv6 Launch ! Un an après le Wordl IPv6 Day. C'est le moment de s'y mettre, non ? World IPv6 Launch "This time it is for real" Et non, ce blog n'est pas (toujours pas) joignable en IPv6... Source - [ESX / VM Linux : libérer de l'espace disque (thin provisining)](https://www.microkwen.com/2011/03/15/esx-vm-linux-liberer-de-lespace-disque-thin-provisining/) - Je viens de faire quelques tests, et il est possible de récupérer de l’espace disque quand on supprime des fichiers sur une VM Linux dont le disque est en thin provisioning. Bref, je vois deux solutions : - Si on peut utiliser storage vMotion, et qu’on a deux datastore, super, on va pouvoir le faire - [Force apt-get to reinstall config files](https://www.microkwen.com/2008/09/16/force-apt-get-to-reinstall-config-files/) - apt-get -o DPkg::options::=--force-confmiss --reinstall install Update: apt-get only reinstalls missing config files. You can use dpkg --purge to remove the config files before reinstalling the package. - [Recover mysql root password](https://www.microkwen.com/2008/02/25/recover-mysql-root-password/) - - Stop mysql # /etc/init.d/mysql stop - Lauch mysql with --skip-grant-tables (WARNING: your mysql server will launch without any password authentication, so please protect it first with a firewall or something if it's world accessible) # mysqld_safe --skip-grant-tables - Login as root without a password $ mysql -u root - Change the password mysql> use - [Resolving apt-get gpg issues](https://www.microkwen.com/2008/02/25/resolving-apt-get-gpg-issues/) - You run apt-get update, and it complains about some missing key IDs: W: There is no public key available for the following key IDs: B5D0C804ADB11277 W: GPG error: http://volatile.debian.org etch/volatile Release: The following signatures couldn't be verified because the public key is not available: NO_PUBKEY EC61E0B0BBE55AB3 W: You may want to run apt-get update to - [Remove a deleted virtual disk LUN on a Linux system (MD3000i SAN array)](https://www.microkwen.com/2009/10/22/remove-a-deleted-virtual-disk-lun-on-a-linux-system-md3000i-san-array/) - When you delete a Virtual Disk on a MD3000i array, that was previously used by a Linux system, the device is not removed from the system, and Linux will still try to access it (if you use LVM for example, you'll see lots of errors while the system scans the disks to identify PVs). This - [dpkg-reconfigure locales on ubuntu](https://www.microkwen.com/2009/04/10/dpkg-reconfigures-locales-on-ubuntu/) - dpkg-reconfigure locales doesn't seem ask what locales you want to enable anymore (ubuntu 8.10), whatever the priority of questions you set in debconf... The locales to be generated are listed in this file : /var/lib/locales/supported.d/local Just add your locales there, then do a dpkg-reconfigure locales, it should generate you new locales : skanx@tipica:~$ cat /var/lib/locales/supported.d/local - [atl2 bug on the eeepc: txs packet size do not coinsist with txd](https://www.microkwen.com/2009/02/18/atl2-bug-on-the-eeepc-txs-packet-size-do-not-coinsist-with-txd/) - On my eeePC 700 running ubuntu 8.10 (kernel 2.6.27-11-server), I experienced constant network disconnections with the LAN card, and found these messages in the logs : [ 1355.131236] eth0: txs packet size do not coinsist with txd txd_:0x000005ea, txs_:0x20000754! [ 1355.131244] txd read ptr: 0x166c [ 1355.131249] txs-behind:0x000105ea [ 1355.131254] txs-before:0x000105ea [ 1365.041754] atl2: eth0 - [Cleaning Apple Mail's Envelope Index](https://www.microkwen.com/2008/02/25/cleaning-apple-mails-envelope-index/) - Apple Mail keeps a lot of junk in a SQLite database named Envelope Index. Since it's a database, it tends to grow with time, and deleted records are not handled very efficiently. You might want to clean it a bit from time to time, and Mail might even seem a little faster after that. 1. - [Compile packages with rpmbuild](https://www.microkwen.com/2008/09/18/compile-packages-with-rpmbuild/) - source: http://www.city-fan.org/tips/CreateRPMBuildEnvironment ~/.rpmmacros : %_topdir %(echo $HOME)/rpmbuild %_smp_mflags -j2 %packager Nicolas Melin %vendor octant.org # yum install rpm-build $ cd ~ $ mkdir rpmbuild $ cd rpmbuild $ mkdir RPMS SOURCES SPECS SRPMS BUILD $ cd ~ $ rpmbuild --rebuild program.src.rpm - [RPM query output formatting (print your arch!)](https://www.microkwen.com/2008/09/19/rpm-arch-formatting-wip/) - By default, rpm doesn't print a package's arch when you query it with rpm -q. On a x86_64 system, you'll see something like that: [root@earth ~]# rpm -q libselinux libselinux-1.33.4-5.el5 libselinux-1.33.4-5.el5 not very usefult, is it ? To make rpm print the arch, well it's easy, just use the --qf (--queryformat) option, with the ARCH - [Jumpcut: MacOSX clipboard manager](https://www.microkwen.com/2008/11/14/jumpcut-macosx-clipboard-buffer/) - Jumpcut is another very useful menu bar application. This one keeps an history of the text you have copied or cut. You can access it later with a configurable hotkey, even if you've copied another text in between. Jumpcut is open sourced under the MIT License. http://jumpcut.sourceforge.net/ - [Compile a debian kernel with make-kpkg](https://www.microkwen.com/2008/12/17/compile-a-debian-kernel-with-make-kpkg/) - The debian way (etch packages): # apt-get install linux-source-2.6.18 kernel-package build-essential fakeroot libncurses5-dev $ cd /usr/local/src $ tar jxvf /usr/src/linux-source-2.6.18.tar.bz2 $ cp /boot/config-2.6.18-6-686 linux-source-2.6.18/.config $ cd linux-source-2.6.18 $ make menuconfig $ fakeroot make-kpkg --initrd clean $ fakeroot make-kpkg --initrd kernel_image Examples: fakeroot make-kpkg --arch amd64 clean fakeroot make-kpkg --arch amd64 --initrd --append-to-version=-skx.2008082001 kernel_image - [Avez-vous pensé à adhérer à l'April ?](https://www.microkwen.com/2008/12/02/avez-vous-pense-a-adherer-a-lapril/) - L'April a pour but la promotion et la défense des logiciels libres. Je connais l'existence de l'April depuis des années, mais pourtant je n'avais jamais pensé à y adhérer... voilà qui est fait, profitant de la piqûre de rappel administrée par la campagne d'adhésion qui a lieu actuellement : "Objectif 5000 adhérents". L'April défend nos - [Caffeine: don't let your Mac fall asleep](https://www.microkwen.com/2008/11/13/caffeine-dont-let-your-mac-fall-asleep/) - Caffeine is a cute little "menu bar" program that prevents your Mac from going to sleep when you don't want it to, with just a click. No need to change all your screen saver and energy saver preferences any more! Great when you're using a media player or flash movie player that doen't do it - [Disable a Linux module](https://www.microkwen.com/2008/11/10/disable-a-linux-module/) - The RHEL / Centos way: edit /etc/modprobe.conf, and add : alias off The Debian way: Create a file '/etc/modprobe.d/' containing 'blacklist '. Run 'depmod -ae' as root Recreate your initrd with 'update-initramfs -u' /!\ Read http://wiki.debian.org/KernelModuleBlacklisting, then do not use '/etc/modprobe.d/blacklist' and remove '/etc/modprobe.conf' as it supersedes anything in /etc/modprobe.d/*. source : Debian wiki - [iStat menus: Cool menu stats for Mac OS X](https://www.microkwen.com/2008/09/25/istat-cool-menu-stats-for-mac-os-x/) - http://www.islayer.com/apps/istatmenus/ Does most of what Hardware Monitor, Temperature Monitor, MenuMeters and MenuCalendarClock iCal do, but in just one app : mini calendar, memory, disk, network and cpu usage, fan speed and power consumption, tempratures and much more! Easy to install and configure, excellent design, like always from islayer. Screenie: And yes, I configured it to - [Dynamic MMap ran out of room](https://www.microkwen.com/2008/10/13/dynamic-mmap-ran-out-of-room/) - When running apt-get update with a lot of sources in your sources.list, you may encounter this error: Reading package lists... Error! E: Dynamic MMap ran out of room Add this line APT::Cache-Limit "25165824"; to your /etc/apt/apt.conf, and run apt-get update again. - [Lenny, Xen domU and amd64](https://www.microkwen.com/2008/09/30/lenny-xen-domu-and-amd64/) - There is not yet a xen-amd64 domU kernel for Lenny. There might not be one on release day. Discussion here: http://groups.google.com/group/linux.debian.devel/browse_thread/thread/8940430a093bbda5/546883797d0cbdf9 Fortunately, someone builds a 2.6.26-xen-amd64 kernel. Add this to your sources.list: deb http://kernel-archive.buildserver.net/debian-kernel/waldi/xen-extra/ all main Install these packages: linux-image-2.6.26-1-xen-amd64 linux-modules-2.6.26-1-xen-amd64 Fix the "new Xen console" problem (xen now uses hvc0 for its console): If - [Arch Linux: Pacman cheat-sheet](https://www.microkwen.com/2008/10/01/arch-linux-pacman-cheat-sheet/) - I'm returning to this excellent distro: Arch Linux Synchronize the local package database with the remote repositories: pacman -Sy Install a package: pacman -Sy package_name Remove a package: pacman -R package_name Update the system: pacman -Syu - [WordPress search engine optimization](https://www.microkwen.com/2008/09/26/wordpress-search-engine-optimization/) - Well, now that I just had my first non-spam comment, I have to start improving my search engine referencing, right ? ;-) I noticed that I had no description meta tag, and that google just used the beginning of the last post for a description. This is not right (and not sexy). The problem is - [WordPress sitemap plugin](https://www.microkwen.com/2008/09/27/wordpress-sitemap-plugin/) - Someone told me I had to make a sitemap for this blog... This plugins does that all right: Google XML Sitemaps. Easy to install and use. Extremely configurable. Will automatically update the sitemap when you add or modify something, and notify sitemap-aware search engines (Google, MSN, Ask.com and Yahoo are supported). - [Twittering](https://www.microkwen.com/2008/09/25/twittering/) - I had this one in one on my Firefox tabs for a few weeks, and I just took the time to create an account. Let's see where it goes... http://twitter.com/skanx I also installed the Twitter for Wordpress plugin. - [Bash completion problem on lenny (when using sh)](https://www.microkwen.com/2008/09/17/bash-completion-problem-on-lenny-when-using-sh/) - bug: bugs.debian.org #498474 When logged-in with the sh shell, with bash completion installed (on lenny), you'll get something like this whenever you try to use completion: cd -sh: < ( compgen -d -- '' ): No such file or directory Solution: use bash ;-) or wait for (or submit) a fix. Why do I use - [rpmdb: Lock table is out of available object entries](https://www.microkwen.com/2008/09/09/21/) - source: Racker Hacker rpm hangs after printing this error : "rpmdb: Lock table is out of available object entries". First, kill (-9) all hanged rpm processes. Then remove the corrupted databases, and rebuild them. rm /var/lib/rpm/__db.* rpm --rebuilddb Tip: if this happens on a server, check that yum-updatesd is not running. yum-updatesd can be the - [Disable Dashboard](https://www.microkwen.com/2008/09/17/disable-dashboard/) - source: Macworld defaults write com.apple.dashboard mcx-disabled -boolean YES killall Dock - [Wordpress Firefox plugin](https://www.microkwen.com/2008/09/04/wordpress-firefox-plugin/) - Deepest Sender :: Firefox Add-ons:Deepest Sender is a client that will allow you to post to blogs from directly within Firefox. It is primarily a LiveJournal client, although it supports Blogger (GData) and WordPress (metaWeblog) too. - [Arkeia backup fails with "Drive is reserved"](https://www.microkwen.com/2008/02/29/arkeai-backup-fails-with-drive-is-reserved/) - source: support arkeia Drive locked or reserved Question The backup fails with "Drive is locked"? The backup fails with "Drive is reserved"? Answer Arkeia uses lock files to prevent other processes from accessing and obtaining an Arkeia resource that is in use by a running process. The drive defintion file also contains the PID of - [Kill a Windows process](https://www.microkwen.com/2008/02/25/kill-a-windows-process/) - tasklist -> ps taskkill -> kill (taskkill /PID < pid >) - [Redirecting output of the bash keyword time](https://www.microkwen.com/2008/02/28/redirecting-output-of-the-bash-keyword-time/) - time command > timelog doesn't work, because time outputs to stderr time command 2> timelog doesn't work either, because time actually is a bash keyword, and it's always run in a subshell Redirecting the output of time can be achieved by executing the whole command in a block, then redirecting its output: { time command; - [check rootkits](https://www.microkwen.com/2008/02/25/check-rootkits/) - rkhunter, chkrootkit - [Quickly generate a self-signed SSL certificate for Apache](https://www.microkwen.com/2008/02/25/quickly-generate-a-self-signed-ssl-certificate-for-apache/) - quick & dirty... openssl req -new -x509 -days 365 -nodes -out /etc/apache2/ssl/apache.pem -keyout /etc/apache2/ssl/apache.pem hint: to generate a wildcard certificate for multiple name-based virtualhosts, use *.domain.tld as the common name. source - [Flush Leopard's dns cache](https://www.microkwen.com/2008/02/25/flush-leopards-dns-cache/) - sudo dscacheutil -flushcache source - [Lock all MySQL databases](https://www.microkwen.com/2008/02/25/lock-all-mysql-databases/) - Lock a database: $ mysql -u user -p mysql> FLUSH TABLES WITH READ LOCK; This closes all open tables and locks all tables for all databases with a read lock until you execute UNLOCK TABLES. Unlock: mysql> UNLOCK TABLES; (to lock a single table: LOCK TABLES table READ;) - [Convert a pkcs12 to pem (ca crt, crt, key)](https://www.microkwen.com/2008/02/25/convert-a-pkcs12-to-pem-ca-crt-crt-key/) - $ openssl pkcs12 -in pkcs12file.p12 -out pemfile.pem (by default, pkcs12 will ask for an import password, to decrypt the p12 file (just press Enter if you don't have a password), and finally a passphrase to encrypt your key) pemfile.pem now contains your CA certificate, your client certificate, and your (encrypted) key. ## Pages - [About](https://www.microkwen.com/about/) - Mostly technical articles about Mac OS X / Linux / open sources. ## Categories - [Posteet](https://www.microkwen.com/category/posteet/) - [Software](https://www.microkwen.com/category/software/) - [WordPress plugins](https://www.microkwen.com/category/wordpress-plugins/) - [Web apps](https://www.microkwen.com/category/web-apps/) - [Free Software](https://www.microkwen.com/category/free-software/) - [VMware](https://www.microkwen.com/category/vmware/) - [French](https://www.microkwen.com/category/french/) - [IPv6](https://www.microkwen.com/category/ipv6/) - [Fortinet](https://www.microkwen.com/category/fortinet/) ## Tags - [unix](https://www.microkwen.com/tag/unix/) - [security](https://www.microkwen.com/tag/security/) - [mysql](https://www.microkwen.com/tag/mysql/) - [apt-get](https://www.microkwen.com/tag/apt-get/) - [debian](https://www.microkwen.com/tag/debian/) - [gpg](https://www.microkwen.com/tag/gpg/) - [macosx](https://www.microkwen.com/tag/macosx/) - [mail](https://www.microkwen.com/tag/mail/) - [apache](https://www.microkwen.com/tag/apache/) - [ssl](https://www.microkwen.com/tag/ssl/) - [windows](https://www.microkwen.com/tag/windows/) - [bash](https://www.microkwen.com/tag/bash/) - [linux](https://www.microkwen.com/tag/linux/) - [time](https://www.microkwen.com/tag/time/) - [arkeia](https://www.microkwen.com/tag/arkeia/) - [firefox](https://www.microkwen.com/tag/firefox/) - [wordpress](https://www.microkwen.com/tag/wordpress/) - [rpm](https://www.microkwen.com/tag/rpm/) - [kernel](https://www.microkwen.com/tag/kernel/) - [stats](https://www.microkwen.com/tag/stats/) - [social networking](https://www.microkwen.com/tag/social-networking/) - [xen](https://www.microkwen.com/tag/xen/) - [pacman](https://www.microkwen.com/tag/pacman/) - [archlinux](https://www.microkwen.com/tag/archlinux/) - [april](https://www.microkwen.com/tag/april/) - [eeepc](https://www.microkwen.com/tag/eeepc/) - [ubuntu](https://www.microkwen.com/tag/ubuntu/) - [dpkg](https://www.microkwen.com/tag/dpkg/) - [Web apps](https://www.microkwen.com/tag/web-apps/)