McGivrer's Home

life of french web developer

  • Box.com en davfs sur Ubuntu !

    • 26 Jan 2012
    • 0 Responses
    •  views
    • box.com dav linux ubuntu
    • Edit
    • Delete
    • Tags
    • Autopost

    Connaissez vous le  site www.box.com qui propose du stockage en ligne gratuit à hauteur de 5Go ?

    Si non, courrez vous créer un compte pour stocker tous les fichiers qui vous sont vitaux.

    Donc, un fois votre compte en main, vous allez pouvoir le monter comme un disque local sous linux avec les informations suivantes !

    Tout d'abord,  commençezs par installer l'outil magique qui va permettre d'accèder au repertoire DAV distant sur box.com

      #> sudo apt-get install davfs2

    Maintenant, créez un répertoire box.com dans votre répertoire personnel:

      #> mkdir ~/box.com

    Ensuite, éditez le fichier fstab décrivant les volumes monté au démarrage (vos disques connus de linux):

      #> sudo gedit /etc/fstab

    Et ajouter la ligne ci-dessous:

      https://www.box.com/dav /home/frederic/box.com davfs rw,user,noauto 0 0

    Ensuite, créons l'espace de stockage de nom / password pour le nouveau point de montage DAV.

    Créez un répertoire .davfs2 dans votre $HOME

      #> mkdir  ~/.davfs2
      #> cp /etc/davfs2/davfs2.conf ~/.davfs2
      #> sudo cp /etc/davfs2/secrets ~/.davfs2
      #> sudo chown $USER ~/.davfs2/secrets

    Et éditez le fichier ~/.davfs2/secrets  pour ajouter une ligne de la forme:

      https://www.box.com/dav    [box.username]    [box.password]

    Maintenant la commande magique:

      #> mount ~/box.com

    Et voila, vous avez accès à vos fichiers présents sur votre compte box.com !

    Pour démonter le lecteur box.com, simple:

      #> umount ~/box.com

    Encore plus fort, sous Nautilus, une nouvelle entrée de volume est disponible, un seul click sur l'icone et le lecteur est monté.  Un click sur le petit bouton de démontage, à droite et le lecteur est démonté.

    Nautilus-drive-box-com
    Note:

    Si comme moi, vous êtes confrontés à l'impossibilité de monter un volume DAVFS en tant que simple utilisateur (non root) vous devez passer la commande suivante:


      #> sudo chmod u+s /sbin/mount.davfs 

     Merci à launchpad https://bugs.launchpad.net/ubuntu/+source/davfs2/+bug/46995

    facile, non ?

    • Tweet
  • Plymouth: the Theme manager at Ubuntu Boot

    • 24 Mar 2011
    • 0 Responses
    •  views
    • alternatives install plymouth theme ubuntu
    • Edit
    • Delete
    • Tags
    • Autopost

    During ubuntu boot phase, a beatiful Logo appear on screen, indicate you are soon starting your desktop. What about changing this default screen ? Yes all is possible on Ubuntu and mainly on Linux ;)

    OK, first, try to install a new plymouth theme in the proposed list.

    frederic@nostromo64:~$ aptitude search plymouth-theme
    v   plymouth-theme                    -
    i   plymouth-theme-fade-in            - graphical boot animation and logger - fade-in theme
    i   plymouth-theme-glow               - graphical boot animation and logger - glow theme
    p   plymouth-theme-kubuntu-logo       - graphical boot animation and logger - kubuntu-logo theme
    p   plymouth-theme-kubuntu-text       - graphical boot animation and logger - kubuntu-text theme
    p   plymouth-theme-lubuntu-logo       - plymouth theme for Lubuntu
    p   plymouth-theme-sabily             - plymouth theme for Sabily
    p   plymouth-theme-script             - graphical boot animation and logger - script theme
    i   plymouth-theme-solar              - graphical boot animation and logger - solar theme
    p   plymouth-theme-spinfinity         - graphical boot animation and logger - spinfinity theme
    p   plymouth-theme-text               - graphical boot animation and logger - text theme
    i   plymouth-theme-ubuntu-logo        - graphical boot animation and logger - ubuntu-logo theme
    i   plymouth-theme-ubuntu-text        - graphical boot animation and logger - ubuntu-logo theme
    p   plymouth-theme-ubuntustudio       - Ubuntu Studio Plymouth theme
    p   plymouth-theme-xubuntu-logo       - graphical boot animation and logger - xubuntu-logo theme
    p   xubuntu-plymouth-theme            - Plymouth theme for Xubuntu

    Then, select the one you want and execute the following command lines:

    frederic@nostromo64:~$ sudo update-alternatives --config default.plymouth

    Select in proposed list one of the theme installed :

    frederic@nostromo64:~$ sudo update-alternatives --config default.plymouth
    
    There are 4 choices for the alternative default.plymouth (providing/lib/plymouth/themes/default.plymouth).
    
    Sélection   Chemin                                                 Priorité  État
    ------------------------------------------------------------
    * 0            /lib/plymouth/themes/ubuntu-logo/ubuntu-logo.plymouth   100       mode automatique
      1            /lib/plymouth/themes/fade-in/fade-in.plymouth           10        mode manuel
      2            /lib/plymouth/themes/glow/glow.plymouth                 10        mode manuel
      3            /lib/plymouth/themes/solar/solar.plymouth               10        mode manuel
      4            /lib/plymouth/themes/ubuntu-logo/ubuntu-logo.plymouth   100       mode manuel
    Appuyez sur  pour conserver la valeur par défaut[*] ou choisissez le numéro sélectionné :

    And install this theme on boot sequence

    frederic@nostromo64:~$ sudo sudo update-initramfs -u

    You can verify it with the command line

    sudo plymouthd ; sudo plymouth --show-splash ; sleep 10 ; sudo plymouth --quit

    And then, reboot and enjoy !

    (sorry for french screenshot... I run a french installation of Ubuntu ;)

    • Tweet
  • Tomcat6 and the Play!framework on Ubuntu (for newbie!)

    • 3 Jan 2011
    • 1 Response
    •  views
    • deploy install newbie playframework tomcat6 ubuntu war
    • Edit
    • Delete
    • Tags
    • Autopost

    Playframework-logo

    I have just installed a brand new Ubuntu 10.10 on my laptop, and one of my first need was to deploy a Playframework java application.

    So I need a Tomcat 6 instance for "Java Runable" purpose.

    Tomcat installation
    So, just read this guide: ubuntu-fr tomcat installation and click this "click-to-install" link: tomcat6,tomcat6-admin,tomcat6-example. If the APT protocol is not installed on your ubuntu linux, just try :

    frederic@nostromo6:~$ sudo apt-get install tomcat6,\
                          tomcat6-admin,tomcat6-examples

    if you try to access the http://localhost:8080/

    you will must obtain the following page :
    Capture-apache_tomcat_-_chromium-1
    figure 1 -Tomcat 6 is now installe dand ready to use.
    User Tomcat path
    To be able to isolate your own work from the Tomcat server instance, you have to install with the following link apt://tomcat6-user  the  "by-user-instance" oriented package for Apache Tomcat server.

    If not PAT protocole is installed, just use  the good old command line:

    frederic@nostromo6:~$ sudo apt-get install tomcat6-user

    Then in your prefered shell command terminal, execute the following command:

    frederic@nostromo6:~$ tomcat6-instance-create ~/tools/tomcat6 \
                          -p 8088 -w 8008

    Then you are able to start  this Tomcat 6 instance with a 

    ~/tools/tomcat6/bin/startup.sh

    To start your own tomcat on port 8088. (note: the control port will be 8008).

    To ask tomcat server to stop, send a "SHUTDOWN" ASCII string to port 8008.

    Conclusion
    Yes, Tomcat 6 is now installed on your computer. you are ready to deploy your Play! Framework based application:

    play war myplayapp -o myplayapp.war

    Just copy the produced myplayapp.war to the [tomcat_server_path]/webapps/ directory, Tomcat cat will auto deploy the war and you will just have to open your stared browser to http://localhost:8080/myplayapp/.
     
    Capture-your_application_is_ready__-_chromium
    figure 2 - Your first empty Play!framework application deployed on Tomcat

    Job done !
    Have good time with the fabulous Play!framework.
    to be continued...
    • Tweet
  • Samsung R580, Ubuntu 10.04 and Brightness control

    • 1 Aug 2010
    • 5 Responses
    •  views
    • 10.04 R580 brightness control samsung ubuntu
    • Edit
    • Delete
    • Tags
    • Autopost

    For unknown (anyway, for my side) reason, the NVIDIA driver is not well configured after installation on the Samsung R580. In fact, brightness control does not work, with Fn+Keys or using the brightness applet, telling back to you that "Brightness status can not be read in Bios side".

    So, in only one line, the issue can be solved: just edit the /etc/X11/xorg.conf file and add the following line (the bold one)  into the Device section:

    Section "Device"

      Identifier "Default Device"

      Driver "nvidia"

      Option "NoLogo" "True"

      Option "RegistryDwords" "EnableBrightnessControl=1"

    EndSection

    And that's it ! Brightness control with Fn+keys is working great.

    thanks to this forum entry (end of page) : http://ubuntuforums.org/archive/index.php/t-1357776.html
     

    Have fun !

    (download)
    Click here to download:
    samsung-r580-ubuntu-10-04-and-brightness-control-jBykGqzdnxsvcCozAaEF.zip (990 KB)

    • Tweet
  • Gnome-Do and Docky, or the user oriented interface

    • 11 Jul 2010
    • 0 Responses
    •  views
    • design do docky gnome ubuntu ui usability
    • Edit
    • Delete
    • Tags
    • Autopost
    Logo for Gnome-Do, a simple gear on a light star purple background.
    Logo for Docky, an anchor on ligth star blue background.

    You know how you have some automated behaviour when you are working on a computer: how to open a file, how to launch any tool, etc...  So you know how Microsoft Windows contribute to open Computer to people, but also how it contributes to format "User" usage about User interface and behaviour !

    So, in the Linux world, during years, the goal was to bring to Linux user a User Interface oriented free Operating System. And during the few 2 or 3 last years, big evolution are drop in the pipe of Gnome evolution. First tries were gnome-shell and gnome-zeitgheist. But these tools are not matue for People.
    Screenshots?action=AttachFile&do=get&target=Screenshot-gnome-shell-overview.png
    Gnome Shell, The new Gnome Desktop approach
    So , Gnome Do and Docky are some of these beautiful tools design for easy life ! Gnome Do will enable you to launch any tools, docs, contacts just with one key shortcut and keying the first letters of the action you want to do!  Docky is another MacOSX Dock Icon clone. But a well integrated one for the Gnome Desktop.
    So launching an application or accessing one of the last docuemnt you've just write have never been so easy !
    Gnome Do
    Launching an application :
    ubuntu-gnome-do-1.png
    Mail to one of your contact:
    ubuntu-gnome-do-2.png
    And just retreiving one of your Google Docs:
    ubuntu-gnome-do-3.png
    Anyway, you are able to configure any interaction between Gnome-DO and your desktop enviroment, thanks to numerous plugins already existing which are able to connect to all the main applications you use everyday.
    ubuntu-gnome-do-preferences.png 
    Docky
    More as usual in our desktop, the docked toolbar at bottom screen is one of the most popular way to start an application. Docky is one of the most integrated to Gnome with a lot of customization for geeks :)
    Very easy to use and configure, just drag and drop icon of applications you want to be able to include in the dock bar. 
    Multiple skin exists for the Dock bar appearance, so just choose the one that's feat better to your own desire. 
    And start apps !
    ubuntu-gnome-docky.png
    Gnome Docky - The Gnome Desktop Dock Bar by excellence !
    And a lot of docklets (greffons in french) are available to enhanced your user experience, adding Weather, GMail state icon, Time, Battery life, Processor performance, and so on ...
    Also exists Plugins (greffons in french language), to connect Docky to other application like liferay, Gajim, Rythmbox, etc...
    Docklets preferences tab :
    ubuntu-gnome-docky-prefs-docklets.png
    Plugins preferences tab :
    ubuntu-gnome-docky-prefs-plugins.png
    So now, just Start Apps and enjoy ;)
    • Tweet
  • Ubuntu 10.04 LTS on my Samsung R580

    • 12 Jun 2010
    • 2 Responses
    •  views
    • 10.04 R580 laptop linux samsung ubuntu
    • Edit
    • Delete
    • Tags
    • Autopost

    Capture

    I have just received my new laptop, and have already installed Ubuntu as my default OS. Only one thing remain unreachable, the Brigthness control :(

    But, thanks to the voria (https://launchpad.net/~voria/+archive/ppa) PPA , I am able to use, network, Wifi, and all other features as suspend, hibernate and so on.
     
    Ubuntu needed cheat sheet for this PPA:
     
    • deb http://ppa.launchpad.net/voria/ppa/ubuntu YOUR_UBUNTU_VERSION_HERE main
    • deb-src http://ppa.launchpad.net/voria/ppa/ubuntu YOUR_UBUNTU_VERSION_HERE main
    • Tweet
  • Ubuntu 10.04: a social edition

    • 4 May 2010
    • 0 Responses
    •  views
    • 10.04 button linux metacity ubuntu window
    • Edit
    • Delete
    • Tags
    • Autopost

    Ubuntu 10.04 bring a lot of interesting features on social side, twitter, facebook, and so on. But...
    The new Look of the gnome interface contains a strange choice about User interface:  The window buttons side !

    Left side for window size and action management is, IMHO, a wrong choice.

    Right side is what human kind is usefull with.

    So to bring back old uses :

    Start gconf-editor, and go to the apps/metacity/general configuration to edit the button_layout key, and set:


    menu:maximize,minimize,close

     
    (full story and guide here: http://www.howtogeek.com/howto/13535/move-window-buttons-back-to-the-right-in-ubuntu-10.04/).

    and get your window with the right side ;)

    • Tweet
  • Gnome Shell

    • 18 Oct 2009
    • 0 Responses
    •  views
    • desktop gnome shell ubuntu
    • Edit
    • Delete
    • Tags
    • Autopost
    One of the next best evolution of gnome 3 has a name:  Gnome Shell
    It's a great change in the desktop concept. On the same screen, you are able to launch application, find last document, create, delete, select a virtual desktop in an all-in-on full integrated 3D interface.

    Welcome in the next generation of the Linux Desktop.

    (download)
    Click here to download:
    ubuntu-gnome-shell.zip (845 KB)

    • Tweet
  • How to install rmagick extension to ruby on Ubuntu ?

    • 26 Jan 2009
    • 0 Responses
    •  views
    • file_column imagemagick rails rmagick ruby ubuntu
    • Edit
    • Delete
    • Tags
    • Autopost
    That's a very good question as the rubygems embedded in the debian package is a limited edition where you are not able to make an "update --system".

    So first thing to do:

     sudo apt-get remove rubygems

    Then, from www.rubyonrails.com, follow the rubygems installation tutorial:
    - download the archive delivered from rubyforge,
    - tar -zxvf rubygems-1.3.1.tgz

    and:
     cd /rubygems-1.3.1
     sudo ruby setup.rb

    and follow with a :
     sudo gem update --system

    OK, rubygems is now up to date.

    Go on installation of rmagick:

     sudo apt-get install ruby1.8-dev
     sudo apt-get install g++ automake autoconf
     sudo apt-get install libmagick++10
     sudo apt-get install libmagick++9-dev
     sudo gem install rmagick

    and then you will get the following console output:

    frederic@nostromo2:~/Logiciels/development/ruby/rubygems-1.3.1$ sudo gem install rmagick
    Building native extensions.  This could take a while...
    Successfully installed rmagick-2.9.0
    1 gem installed

    And now, you will be able to use the Rails plugin named file_column; cd into your rails project:
     cd myprojectsrails

     script/plugin install http://opensvn.csie.org/rails_file_column/plugins/file_column/trunk

    And enjoy !

    • Tweet
  • Ubuntu 8.10 on EeePC 900 : easy mode !

    • 27 Nov 2008
    • 0 Responses
    •  views
    • 8.10 eeepc installation intrepid ibex linux ubuntu
    • Edit
    • Delete
    • Tags
    • Autopost

    Note:
    First thing to get it working is to be sure you will be able to connect your netbook to ethernet in wire mode.

    ----

    Installation of Ubuntu 8.10 Live on a USB key.

    The best way to do rule this part is to use the famous UnetBootIn. this tool will allow you to install easily your prefered Linux Distro, here we will choose Ubuntu 8.10 live, on a USB key. Please choose a 1Gb sized k

    The best way to do rule this part is to use the famous UnetBootIn. this tool will allow you to install easily your prefered Linux Distro, here we will choose Ubuntu 8.10 live, on a USB key. Please choose a 1Gb sized key to be quiet.

    So just download unetbootin (twin versions exists : a windows and a linux version), and run it. If you are on Linux, you will be asked to install another debian package containing 7z. You will find a page on the official french Ubuntu site, on in the Ubuntu-eee site explaining how to use it.

    EeePC 900: get it work !

    Now the easiest part of this how-to: install Ubuntu 8.10 on your EeePC. Just click on the Install icon the Desk after booting on just prepared before USB Key. To boot on it, push the ESC key and choose the USB Device, while your Eee PC is just switch on and you get the grey screen with the EeePC logo.

    After installing this, connect your Ethernet wire and update your just installed Ubuntu. now you are ready to customize your netbook OS accordingly to the EeePC capacities (Wifi, CPU frequency tools, Energy saving, etc...)

    Wifi

    We will have 2 steps to do:

    1. - remove existing ATH modules
    2. - install backported from Hardy Heron the ath5k module.

    Remove the existing modules:

    sudo modprobe -r ath_pci
    sudo modprobe -r ath_hal

    Add to the balck list these 2 modules:

    edit the file /etc/modprobe.d/blacklist and add the 2 following lines at the end:

    blacklist ath_pci
    blacklist ath_hal

    Connect to the internet through ethernet (get wired !) and backport modules from Hardy Heron:

    sudo apt-get install linux-backports-modules-intrepid-generic

    Now, just reboot, and you will get the wifi running, and will be able to configure your wireless connection via NetworkManager.

    CPU frequency managing

    To activate the cpu frequency selector, you will have to install the following:

    sudo apt-get install gnome-cpufreq-selector

    And now edit /etc/modules and add this line at the end:

    load p4-clockmod

    Energy Saving

    To enable the cpu frequency adaptor following energy mode, you will have to modify registry with gconf-editor.

    dpkg --reconfigure gnome-applets

    powertop will could easily help you reducing energy consumption by analyzing actual energy wasts and give you useful tips on how to save.

    sudo apt-get install powertop

    For more information on the Gnome Power management, see this page.

    And that's all folk !

    to be continued ....

    • Tweet
  • « Previous 1 2 Next »
  • About

    Java/J2EE Expert
    Technical Manager
    Web Standard evangelizer

    114907 Views
  • Archive

    • 2012 (4)
      • January (4)
    • 2011 (53)
      • December (5)
      • November (1)
      • September (4)
      • August (4)
      • July (5)
      • June (2)
      • May (11)
      • April (11)
      • March (5)
      • February (3)
      • January (2)
    • 2010 (51)
      • December (2)
      • November (2)
      • October (1)
      • September (3)
      • August (8)
      • July (4)
      • June (15)
      • May (3)
      • April (2)
      • March (5)
      • February (5)
      • January (1)
    • 2009 (29)
      • December (1)
      • November (5)
      • October (6)
      • August (1)
      • July (4)
      • June (2)
      • May (1)
      • April (4)
      • March (2)
      • February (1)
      • January (2)
    • 2008 (39)
      • December (1)
      • November (5)
      • October (8)
      • September (8)
      • August (8)
      • July (9)

    Get Updates

    Follow this Space »
    You're following this Space (Edit)
    You're a contributor here (Edit)
    This is your Space (Edit)
    Follow by email »
    Get the latest updates in your email box automatically.
    Loading...
    Subscribe via RSS
    FacebookFlickrPicasametaweblog