La voix d'Absimiliard

To content | To menu | To search

Thursday 25 June 2015

MacBookPro FR, VirtualBox and linux

I have a Macbook Pro Intel with a FR asserted keyboard. When i create linux VM on virtual box I never manage to have the right keyboard layout. Most of the keys work well excepted the §, @ - ... and a few symbol keys like |

Today I starting to find a solution

setxkbmap -model macbook79

this make most of the key fork, excepted |

To make it permanent, I have edit the file /etc/X11/xorg.conf.d/00-keyboard.conf

/// Section "InputClass"

       Identifier "system-keyboard"
       MatchIsKeyboard "on"
       Option "XkbLayout" "mac-fr"
       Option      "XkbModel"       "macbook79"

EndSection ///

that still not perfect, but it's better

Edit : | pipe is working !!! but only with right ALT key :)

Wednesday 24 June 2015

Centos 7 on Virtualbox

To have a development on linux, i decide to install a Centos 7 on VirtualBox 4.3.8 on my Mac. It sound easy, usually it is ... but i don't know why this time have have a lot of issue.

So first i have to disable the Update repository that introduce wrong dependency that disallow me to install Gnome for example. To do that I edit the file /etc/yum.repo.d/CentosOS-Base.repo and at the end of the bloc updates i add enabled=0.

After that i have to install few stuff to have my development environment working.

Continue reading...

Monday 15 June 2015

A Terminal

Now i found how to make two RaspberryPi communicate together using RFCOMM Bluetooth protocol, I have to see how to implement the terminal part.

On server side i will have to execute a login shell and send all its output to the remote device, and read all its input from the client side.

So i have to fin d a way to fork the execution of bash --login and redirect STDIN and STDOUT ... and some all the small issue that make the terminal usable like :

  • reading each keyboard key without waiting a "return"
  • removing ECHO on STDIN
  • removing ICANON on STDIN
  • handling signal to proper ends terminal SIGCHLD
  • handling signal to adjust tty side : SIGWINCH
  • using pselect to manage FD event
  • using forkpid to create the pty

The sample code is available on my github repository