August 16 2015, 00:00#

Setup Wake On Lan on Debian 7

Wake On Lan (WOL) is a standard which allow to wake up remotely a sleeping machine by sending a magic packet.

WOL on the server side

Check the WOL support

Before all, it's necessary to ensure that your network controller supports the WOL and it is enabled in the BIOS. This part is not covered by this post.

The next step is to check on the OS level.

Install ethtool

As root user

aptitude install ethtool

Get the informations

As root user

ethtool eth0 | grep 'Wake-on:'

If the command does not return any result, consider that the WOL is not supported by your network controller.

In my case, I got a positive result:

Supports Wake-on: pg
Wake-on: d

The first line indicates what is supported on my network controller. The expected value is g for WOL.

The second line indicates what is activated. The d value seems tell that the WOL is disabled.

To be more clear, in my case WOL seems to be supported, but disabled. So, I need to enable it now.

Enable WOL

As root user

ethtool -s eth0 wol g

Checking

ethtool eth0 | grep 'Wake-on:'
  Supports Wake-on: pg
  Wake-on: g

WOL is now enabled on eth0 of my remote machine.

Get the MAC address

Before configuring the client, I need to get the MAC address of eth0.

As root user

ifconfig eth0 | grep 'HWaddr'
eth0      Link encap:Ethernet  HWaddr 0b:f1:a0:25:74:9b

WOL on the client side

How to wake up the remote machine?

Install wakeonlan

As root user

aptitude install wakeonlan

Send a magic packet

To wake up the remote machine, I send it a magic packet. To do it, I call the wakeonlan command and pass it the IP and MAC address of the remote machine.

As a normal user

wakeonlan -i 10.0.0.10 0b:f1:a0:25:74:9b

Be sure that the UDP port 9 is open on the remote machine.

Tags : unix linux debian network

August 12 2015, 00:00#

Install Jekyll on Manjaro Linux using rubygems

This website is built using Jekyll, a powerful static website generator. I will explain how to install it on Manjaro Linux.

At the time of this writing, the installation of the ruby-jekyll package does not work because the dependency ruby-kramdown is missing.

A possible workaround is to install it with rubygems.

Install the dependencies as root user

pacman -Sy ruby nodejs

Install Jekyll as a normal user

gem install jekyll

Setting up

Edit your .bashrc file and add the gems binaries into the $PATH environment variable, like this:

# Add gems binaries to my PATH
export PATH=${PATH}:${HOME}/.gem/ruby/2.2.0/bin

Tags : unix linux manjaro ruby

June 16 2015, 08:47#

Citizenfour
Le #film #documentaire qui nous fait revivre l'affaire Snowden, mais cette fois-ci, de l'autre côté de l'écran.. A voir et à revoir !

June 15 2015, 13:05#

Jamendo
Jamendo, la #musique indépendante en libre diffusion.

June 10 2015, 07:10#

"Dites-moi et j’oublierai. Montrez-moi et je me souviendrai. Impliquez-moi et je comprendrai" Confucius

June 05 2015, 11:24#

Smartphone Jolla
Jolla ne serait pas dans l’idée d’annoncer un nouveau smartphone, mais un fabricant semble être intéressé par Sailfish OS.

June 04 2015, 19:58#

Coup de coeur pour ce #wallpaper..
mini-Wallpaper

September 27 2014, 00:00#

Bash - Faille Shellshock

Une importante vulnérabilité de Bash a été découverte par Stéphane Chazelas. Elle concerne quasiment toutes les versions de Bash (1.14 à 4.3) des systèmes d'exploitation de type Unix (Unix, Linux et OS X).

Cette faille réside dans la manière dont Bash interprète les variables d'environnement et peut être utilisée dans un large éventail de contextes : requêtes web, applications exécutant des scripts Bash, Telnet, etc.

Il faut savoir qu'à ce jour la majorité des grandes distributions a déjà contourné ce problème de sécurité en appliquant un correctif.

Vous pouvez faire le test suivant pour savoir si votre système est vulnérable :

env X="() { :;} ; echo Système vulnérable" /bin/sh -c "echo Test complété"

Si votre terminal renvoi "Système vulnérable" c'est pas bon signe. Mettez à jour votre distribution sans tarder.

Sources

Tags : unix linux cybersécurité bash shell

September 02 2014, 00:00#

Vlad Gerasimov partage son imaginaire au travers de magnifiques fonds d'écran disponibles sur son site Vladstudio.

De quoi embellir chaleureusement son bureau.

Tags : halloween wallpaper