« npm -g » do not install with sudo

NPM by default is really dumb and has its default prefix set to /usr/local (or /usr). This is the best configuration to mess up with your distribution package manager. You can check with :

npm conf get prefix

To change this, create a directory in your home to store npm package.

For example :

mkdir ~/.npm_user_pkg

Change npm prefix to :

npm config set prefix '~/.npm_user_pkg/'

And add this to your ~/.profile to change your $PATH env variable:

export PATH="${HOME}/.npm_user_pkg/bin:$PATH"

And now, you can install npm package globally (with -g) without sudo, for your $USER.

For example :

npm install -g eslint

Import contacts on old Bluetooth Phones

Few weeks ago, my smartphone died. Someone lent me an old Nokia phone (6021) and I was looking for a way to send all my contacts and phone numbers to it.

The Nokia phone supports Bluetooth connectivity and seems to understand the vCard standard (rfc6350). All contacts can be exported as vCard file using Mozilla Thunderbird "Export" features in Address Book.

We will see that Nokia phone does not follow the vCard standard and we will need to hack the vCard information to be understandable by the phone. I use Python with module vobject to do that.

Continue reading

Nginx & Letsencrypt: HTTPS for all

[object Object]

Why HTTPS?

Securing a web server using HTTPS not only gives you encryption but also guarantees that the request reaches the destination without being compromised.

The request crosses over a lot of network paths to reach the destination, and if not secured (using HTTP), its content can be changed or it can be redirected to another server without knowing it.

With a well configured HTTPS server, using a public Web-Of-Trust, you have this assurance.

This post will briefly cover how Letsencrypt works, and how to configure Nginx to handle the ACME challenge protocol. Also, we will see how to tell Nginx to redirect all HTTP traffic to HTTPS, and will use safe SSL/TLS Ciphers parameters.

Continue reading

Nouveau Serveur gonflé aux chroot LXC

On dépoussière le blog, ni vu ni connu ! (Et oui, ça faisait une éternité que je n’avez pas posté de billet…) Nous sommes passé de OVH (Kimsufi, sans trop de patates) à Online (Dedibox en édition limité) qui nous offre un peu plus de souplesse niveau ressources. Tellement d’ailleurs, que je me suis  […]

Continue reading

im.beneth.fr -> Ouverture d'un serveur Jabber

Pourquoi Jabber ?

Imaginer tout simplement, que depuis une adresse MSN vous puissiez rajouter un contact sur ICQ ? Une seule adresse pour joindre des contacts connectés sur des serveurs complètement différents. C’est exactement le principe d’XMPP (Jabber). Avec une adresse Gmail, en utilisant Gtalk qui utilise en fait le protocole Jabber, vous pouvez ajouter des contacts de serveurs différents comme "@jabber.fr" ou bien maintenant "@im.beneth.fr" ou tant d’autres !

Continue reading

Les artistes unis contre le téléchargement

[object Object]

Étienne Daho, Christophe Maé, Kery James, Sinik, Francis Cabrel, Patrick Bruel, Jean-Jacques Goldman, Jenifer, Stanislas, Raphaël, M Pokora, Keren Ann, Thomas Dutronc, Eddy Mitchell, Isabelle Boulay, Maxime Le Forestier, Martin Solveig, Marc Lavoine, Calogero, Gérard Darmon, Pascal Obispo, Jacob  […]

Continue reading

ATI Radeon X1700 sous linux ( Debian Etch )

J’ai fais très récemment l’acquisition d’un ordinateur Portable muni d’une carte graphique Radeon Mobility X1700.

Je me suis empressé d’installer mon OS favoris, mais j’ai eu beaucoup de mal à installer correctement le driver propriétaire de ATI.

Pourquoi le propriétaire ? Tout simplement parce que pour ce type de carte, le driver libre ne marche pas, il ne semble pas supporter le chipset X1700; en revance, le driver propriétaire, bien que cela ne soit pas mentionné sur le site, le supporte.

Voilà donc la marche à suivre pour installer ce fameux driver et sortir du très sobre mode VESA ...

Petit recommandation:
(Je pense que cela ne marche pas avec xorg 7.2, la version stable de etch étant dans les 7.1.x , il y a surement des astuces qui devraient figurer dans les liens à la fin du billet. Mon noyau est un 2.6.21-1 fraichement compilé.)
Up : Cela marche très bien avec xorg 7.2 depuis les drivers 8.37.6. Le driver fonctionne et se compile parfaitement sous une debian Sid.


Continue reading

Page top