tag:blogger.com,1999:blog-52611476204768545452024-03-04T20:25:06.441-08:00Linuxintosh, parce qu'on peut le faire ^^/!\ Ce blog est une sorte de mémento personnel, je ne suis en aucun cas responsable de ce que les manipulations proposées ici peuvent engendrer sur votre {Mac | PC}MaLaGasyhttp://www.blogger.com/profile/13615587620409404188noreply@blogger.comBlogger51125tag:blogger.com,1999:blog-5261147620476854545.post-67704452650306826132015-05-31T13:48:00.003-07:002015-06-04T14:37:49.400-07:00ConkyLe fond d'écran de Debian Jessie est très beau. Mais malgré celà, une petite touche de "je-ne-sais-quoi" ne serait pas de trop. C'est pour cela que j'ai installé le paquet Conky.<br />
<br />
<div class="separator" style="clear: both; text-align: center;">
<a href="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEhbI15At3CtIJJ8jry70lIxxcGjfxiiyk0prWSD1pchyuZulpAG_QngepWiYQQO3C6VkwdtKABRQB9fpJzqfrzQVodVfOZVs-yCNEuKmsNYtzm7euhabNRxtzcAlZxzd4y53js9R1Nwo7KG/s1600/008.jpg" imageanchor="1" style="margin-left: 1em; margin-right: 1em;"><img border="0" height="320" src="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEhbI15At3CtIJJ8jry70lIxxcGjfxiiyk0prWSD1pchyuZulpAG_QngepWiYQQO3C6VkwdtKABRQB9fpJzqfrzQVodVfOZVs-yCNEuKmsNYtzm7euhabNRxtzcAlZxzd4y53js9R1Nwo7KG/s320/008.jpg" width="110" /></a></div>
<br />
<br />
Pour ce faire,<br />
<br />
<blockquote class="tr_bq">
<pre><span class="anchor" id="line-1-1"></span>$ <span style="color: yellow;">sudo apt-get install conky lm-sensors hddtemp</span></pre>
</blockquote>
<br />
Créez ensuite un fichier caché ".conkyrc", à placer dans le dossier home de l'utilisateur. Ci-dessous mon fichier ~/.conkyrc.<br />
<br />
<blockquote class="tr_bq">
<span style="color: #9fc5e8;">## Conky sample configuration</span><br />
<span style="color: #9fc5e8;">#</span><br />
<span style="color: #9fc5e8;"><br /></span>
<span style="color: #9fc5e8;">## Create own window instead of using desktop (required in nautilus)</span><br />
<span style="color: #9fc5e8;">## Own window type:</span><br />
<span style="color: #9fc5e8;">#own_window_type override</span><br />
<span style="color: #9fc5e8;">#own_window_type desktop</span><br />
<span style="color: #9fc5e8;">##'own_window_type normal' if you want a nice shadow to appear around conky</span><br />
<span style="color: #9fc5e8;">## 'own_window_hints below' Set conky on the bottom of all other applications</span><br />
<span style="color: #9fc5e8;">## If 'own_window_transparent no', you can set the background colour with:</span><br />
<span style="color: #9fc5e8;">#own_window_colour hotpink</span><br />
<span style="color: orange;">own_window yes</span><br />
<span style="color: orange;">own_window_type desktop</span><br />
<span style="color: orange;">own_window_transparent yes</span><br />
<span style="color: orange;">own_window_hints undecorated,below,sticky,skip_taskbar,skip_pager</span><br />
<br />
<span style="color: #9fc5e8;">## 'background yes' if you want Conky to be forked in the background</span><br />
<span style="color: orange;">background yes</span><br />
<br />
<span style="color: #9fc5e8;">## Text</span><br />
<span style="color: #9fc5e8;">## 'uppercase yes' all text will be in uppercase</span><br />
<span style="color: orange;">alignment top_right</span><br />
<span style="color: orange;">font Sans:size=8</span><br />
<span style="color: orange;">uppercase no</span><br />
<br />
<span style="color: #9fc5e8;">## Fiddle with window</span><br />
<span style="color: orange;">use_spacer none</span><br />
<span style="color: orange;">use_xft yes</span><br />
<br />
<span style="color: #9fc5e8;">## X font when Xft is disabled, you can pick one with program xfontsel</span><br />
<span style="color: #9fc5e8;">#font 5x7</span><br />
<span style="color: #9fc5e8;">#font 6x10</span><br />
<span style="color: #9fc5e8;">#font 7x13</span><br />
<span style="color: #9fc5e8;">#font 8x13</span><br />
<span style="color: #9fc5e8;">#font 9x15</span><br />
<span style="color: #9fc5e8;">#font *mintsmild.se*</span><br />
<span style="color: #9fc5e8;">#font -*-*-*-*-*-*-34-*-*-*-*-*-*-*</span><br />
<span style="color: #9fc5e8;"><br /></span>
<span style="color: #9fc5e8;">## Text alpha when using Xft</span><br />
<span style="color: #9fc5e8;">## xftfont use example: </span><br />
<span style="color: #9fc5e8;">#xftfont Bitstream Vera Sans Mono:size=8</span><br />
<span style="color: #9fc5e8;">#xftfont HandelGotD:size=8</span><br />
<span style="color: orange;">xftfont DejaVu Sans:size=8</span><br />
<span style="color: orange;">xftalpha 0.8</span><br />
<span style="color: orange;">text_buffer_size 2048</span><br />
<br />
<span style="color: #9fc5e8;">## Minimum size of text area</span><br />
<span style="color: orange;">minimum_size 210 5</span><br />
<span style="color: orange;">maximum_width 211</span><br />
<br />
<span style="color: #6fa8dc;">## Update interval in seconds</span><br />
<span style="color: orange;">update_interval 5.0</span><br />
<br />
<span style="color: #9fc5e8;">## This is the number of times Conky will update before quitting</span><br />
<span style="color: #9fc5e8;">## Set to zero to run forever</span><br />
<span style="color: orange;">total_run_times 0</span><br />
<br />
<span style="color: #9fc5e8;">## Buffers</span><br />
<span style="color: #9fc5e8;">## Use double buffering (reduces flicker, may not work for everyone)</span><br />
<span style="color: #9fc5e8;">## 'no_buffers yes' Subtract file system buffers from used memory</span><br />
<span style="color: orange;">double_buffer yes</span><br />
<span style="color: orange;">no_buffers yes</span><br />
<br />
<span style="color: #9fc5e8;">## Draw</span><br />
<span style="color: #9fc5e8;">## 'draw_outline yes' amplifies text</span><br />
<span style="color: #9fc5e8;">## 'alignment bottom_right' align the box</span><br />
<span style="color: #9fc5e8;"># 'draw_borders yes' Draw borders around text</span><br />
<span style="color: orange;">draw_shades no</span><br />
<span style="color: orange;">draw_outline no</span><br />
<span style="color: orange;">draw_borders no</span><br />
<span style="color: orange;">draw_graph_borders yes</span><br />
<br />
<span style="color: #9fc5e8;">## Border</span><br />
<span style="color: #9fc5e8;">## Stippled borders? Default value seems to be 0</span><br />
<span style="color: #9fc5e8;">#stippled_borders 3</span><br />
<span style="color: #9fc5e8;">## Border margins</span><br />
<span style="color: #9fc5e8;">#border_margin 5</span><br />
<span style="color: #9fc5e8;">## Border width</span><br />
<span style="color: #9fc5e8;">#border_width 1</span><br />
<span style="color: #9fc5e8;"><br /></span>
<span style="color: #9fc5e8;">## Default colors and also border colors, 'grey90 == #E5E5E5'</span><br />
<span style="color: orange;">default_color A4A4A4 </span><br />
<span style="color: orange;">default_shade_color black</span><br />
<span style="color: orange;">default_outline_color grey</span><br />
<br />
<span style="color: #9fc5e8;">## Gap between borders of screen and text</span><br />
<span style="color: #9fc5e8;"># same thing as passing -x at command line</span><br />
<span style="color: orange;">gap_x 12</span><br />
<span style="color: orange;">gap_y 48</span><br />
<br />
<span style="color: #6fa8dc;">## number of cpu/net samples to average</span><br />
<span style="color: #6fa8dc;">## set to 1 to disable averaging</span><br />
<span style="color: orange;">cpu_avg_samples 2</span><br />
<span style="color: orange;">net_avg_samples 1</span><br />
<br />
<span style="color: #6fa8dc;">## Force UTF8? </span><br />
<span style="color: #6fa8dc;">## Note that UTF8 support required XFT</span><br />
<span style="color: orange;">override_utf8_locale no</span><br />
<br />
<span style="color: #9fc5e8;"># Add spaces to keep things from moving about? This only affects certain objects</span><br />
<span style="color: orange;">use_spacer none</span><br />
<br />
<span style="color: #6fa8dc;">## Allow for the creation of at least this number of port monitors (if 0 or not set, default is 16) </span><br />
<span style="color: #6fa8dc;"># min_port_monitors 16</span><br />
<span style="color: #6fa8dc;"><br /></span>
<span style="color: #6fa8dc;">## Allow each port monitor to track at least this many connections (if 0 or not set, default is 256)</span><br />
<span style="color: #6fa8dc;"># min_port_monitor_connections 256</span><br />
<span style="color: #6fa8dc;"><br /></span>
<span style="color: #6fa8dc;">## Variable is given either in format $variable or in ${variable}. Latter</span><br />
<span style="color: #6fa8dc;">## allows characters right after the variable and must be used in network</span><br />
<span style="color: #6fa8dc;">## stuff because of an argument</span><br />
<span style="color: #6fa8dc;"><br /></span>
<span style="color: #6fa8dc;"><br /></span>
<span style="color: #6fa8dc;">## Stuff after 'TEXT' will be formatted on screen</span><br />
<br />
<b><span style="color: red;">TEXT</span></b><br />
<span style="color: #6fa8dc;">${font Bitstream Charter:bold:size=11}${color #AEB404}<span style="color: #f1c232;">Date:</span> ${color }${alignr}$<span style="color: #cccccc;">{time %B %e, %G}</span></span><br />
<span style="color: #6fa8dc;">${color #AEB404}<span style="color: #f1c232;">Time:</span> ${color }${alignr}$<span style="color: #cccccc;">{time %I:%M:%S %P}</span></span><br />
<span style="color: #6fa8dc;">${color #AEB404}<span style="color: #f1c232;">Weekday:</span> ${color }${alignr}$<span style="color: #cccccc;">{time %A}</span></span><br />
<span style="color: #6fa8dc;">${color #AEB404}<span style="color: #f1c232;">Up Time:</span> ${color }${alignr}$<span style="color: #cccccc;">uptime</span></span><br />
<span style="color: #6fa8dc;"> </span><br />
<span style="color: #6fa8dc;">${color #AEB404}<span style="color: #f1c232;">Processes:</span> ${color }$<span style="color: #cccccc;">processes</span> ${alignr}${color #AEB404}<span style="color: #f1c232;">Running:</span> ${color }$<span style="color: #cccccc;">running_processes</span></span><br />
<span style="color: #6fa8dc;"><br /></span>
<span style="color: #6fa8dc;">${font Sans:bold:size=8}${color #AEB404}<span style="color: #f1c232;">CPU</span>$font$color ${hr 1}</span><br />
<span style="color: #6fa8dc;"> $alignc ${color #AEB404}<span style="color: #f1c232;">Intel Core i5</span>$color</span><br />
<span style="color: #6fa8dc;"> $<span style="color: #cccccc;">{freq_g 1}</span>GHz $<span style="color: #cccccc;">{cpu cpu1}</span>% $<span style="color: #cccccc;">{cpubar cpu1}</span></span><br />
<span style="color: #6fa8dc;"> $<span style="color: #cccccc;">{freq_g 2}</span>GHz $<span style="color: #cccccc;">{cpu cpu2}</span>% $<span style="color: #cccccc;">{cpubar cpu2}</span></span><br />
<span style="color: #6fa8dc;"> ${color #AEB404}<span style="color: #f1c232;">Load:</span> $color $<span style="color: #cccccc;">loadavg</span></span><br />
<span style="color: #6fa8dc;"> ${color #AEB404}<span style="color: #f1c232;">Top Processes</span>$alignr <span style="color: #f1c232;">-PID- CPU% MEM%</span>$color</span><br />
<span style="color: #6fa8dc;"> $<span style="color: #cccccc;">{top name 1}</span>$alignr$<span style="color: #cccccc;">{top pid 1}</span>$<span style="color: #cccccc;">{top cpu 1}</span> $<span style="color: #cccccc;">{top mem 1}</span></span><br />
<span style="color: #6fa8dc;"> $<span style="color: #cccccc;">{top name 2}</span>$alignr$<span style="color: #cccccc;">{top pid 2}</span>$<span style="color: #cccccc;">{top cpu 2}</span> $<span style="color: #cccccc;">{top mem 2}</span></span><br />
<span style="color: #6fa8dc;"> $<span style="color: #cccccc;">{top name 3}</span>$alignr$<span style="color: #cccccc;">{top pid 3}</span>$<span style="color: #cccccc;">{top cpu 3}</span> $<span style="color: #cccccc;">{top mem 3}</span></span><br />
<span style="color: #6fa8dc;"> $<span style="color: #cccccc;">{top name 4}</span>$alignr$<span style="color: #cccccc;">{top pid 4}</span>$<span style="color: #cccccc;">{top cpu 4}</span> $<span style="color: #cccccc;">{top mem 4}</span></span><br />
<span style="color: #6fa8dc;"> $<span style="color: #cccccc;">{top name 5}</span>$alignr$<span style="color: #cccccc;">{top pid 5}</span>$<span style="color: #cccccc;">{top cpu 5}</span> $<span style="color: #cccccc;">{top mem 5}</span></span><br />
<span style="color: #6fa8dc;"><br /></span>
<span style="color: #6fa8dc;">${font Sans:bold:size=8}${color #AEB404}<span style="color: #f1c232;">RAM</span>$font $color${hr 1}</span><br />
<span style="color: #6fa8dc;"> ${color #AEB404}<span style="color: #f1c232;">RAM</span>$color $alignc $<span style="color: #cccccc;">mem</span> / $<span style="color: #cccccc;">memmax</span> $alignr$<span style="color: #cccccc;">memperc</span>%</span><br />
<span style="color: #6fa8dc;"> $<span style="color: #cccccc;">membar</span></span><br />
<span style="color: #6fa8dc;"><br /></span>
<span style="color: #6fa8dc;">${font Sans:bold:size=8}${color #AEB404}<span style="color: #f1c232;">HDD</span>$font $color${hr 1}</span><br />
<span style="color: #6fa8dc;"> ${color #AEB404}<span style="color: #f1c232;">ROOT</span> $color $alignc $<span style="color: #cccccc;">{fs_used /}</span> / $<span style="color: #cccccc;">{fs_size /}</span> $alignr$<span style="color: #cccccc;">{fs_used_perc /}</span>%</span><br />
<span style="color: #6fa8dc;"> ${fs_bar /}</span><br />
<span style="color: #6fa8dc;"> ${color #AEB404}<span style="color: #f1c232;">HOME</span> $color $alignc $<span style="color: #cccccc;">{fs_used /home}</span> / $<span style="color: #cccccc;">{fs_size /home}</span> $alignr$<span style="color: #cccccc;">{fs_used_perc /home}</span>%</span><br />
<span style="color: #6fa8dc;"> ${fs_bar /home}</span><br />
<span style="color: #6fa8dc;"> ${color #AEB404}<span style="color: #f1c232;">SWAP</span> $color $alignc $<span style="color: #cccccc;">{swap}</span> / $<span style="color: #cccccc;">{swapmax}</span> $alignr$<span style="color: #cccccc;">{swapperc}</span>%</span><br />
<span style="color: #6fa8dc;"> $<span style="color: #cccccc;">{swapbar}</span></span><br />
<span style="color: #6fa8dc;"><span style="color: #f1c232;"># </span> ${color #AEB404}<span style="color: #f1c232;">HD I/O</span> $color $<span style="color: #cccccc;">{diskiograph 19}</span></span><br />
<span style="color: #6fa8dc;"><br /></span>
<span style="color: #6fa8dc;">${font Sans:bold:size=8}${color #AEB404}<span style="color: #f1c232;">Network</span>$font $color$<span style="color: #cccccc;">{hr 1}</span></span><br />
<span style="color: #6fa8dc;"> ${color #AEB404}<span style="color: #f1c232;">IP: </span>$color$<span style="color: #cccccc;">{addr wlan0}</span>$alignr</span><br />
<span style="color: #6fa8dc;"> ${color #AEB404}<span style="color: #f1c232;">Down:</span> ${color #A4A4A4}$<span style="color: #cccccc;">{downspeed wlan0}</span>k/s ${alignr}${color #AEB404}<span style="color: #f1c232;">Up:</span> ${color #A4A4A4}$<span style="color: #cccccc;">{upspeed wlan0}</span>k/s</span><br />
<span style="color: #6fa8dc;"> $<span style="color: #cccccc;">{downspeedgraph wlan0 25,100}</span> ${alignr}$<span style="color: #cccccc;">{upspeedgraph wlan0 25,100}</span></span><br />
<span style="color: #6fa8dc;"> ${color #AEB404}<span style="color: #f1c232;">Total:</span> ${color #A4A4A4}$<span style="color: #cccccc;">{totaldown wlan0}</span> ${alignr}${color #AEB404}<span style="color: #f1c232;">Total: </span> ${color #A4A4A4}$<span style="color: #cccccc;">{totalup wlan0}</span></span><br />
<span style="color: #6fa8dc;"> ${color #AEB404}<span style="color: #f1c232;">Inbound:</span> ${color #A4A4A4}$<span style="color: #cccccc;">{tcp_portmon 1 32767 count}</span>$alignr${color #AEB404}<span style="color: #f1c232;">Outbound: </span>${color #A4A4A4}$<span style="color: #cccccc;">{tcp_portmon 32768 61000 count}</span></span><br />
<span style="color: #6fa8dc;"><br /></span>
<span style="color: #6fa8dc;"> ${color #AEB404}<span style="color: #f1c232;">IP: </span>$color$<span style="color: #cccccc;">{addr eth0}</span>$alignr</span><br />
<span style="color: #6fa8dc;"> ${color #AEB404}<span style="color: #f1c232;">Down:</span> ${color #A4A4A4}$<span style="color: #cccccc;">{downspeed eth0}</span>k/s ${alignr}${color #AEB404}<span style="color: #f1c232;">Up:</span> ${color #A4A4A4}$<span style="color: #cccccc;">{upspeed wlan0}</span>k/s</span><br />
<span style="color: #6fa8dc;"> $<span style="color: #cccccc;">{downspeedgraph eth0 25,100}</span> ${alignr}$<span style="color: #cccccc;">{upspeedgraph eth0 25,100}</span></span><br />
<span style="color: #6fa8dc;"> ${color #AEB404}<span style="color: #f1c232;">Total:</span> ${color #A4A4A4}$<span style="color: #cccccc;">{totaldown wlan0} </span>${alignr}${color #AEB404}<span style="color: #f1c232;">Total:</span> ${color #A4A4A4}$<span style="color: #cccccc;">{totalup wlan0}</span></span><br />
<span style="color: #6fa8dc;"> ${color #AEB404}<span style="color: #f1c232;">Inbound:</span> ${color #A4A4A4}$<span style="color: #cccccc;">{tcp_portmon 1 32767 count}</span>$alignr${color #AEB404}<span style="color: #f1c232;">Outbound: </span>${color #A4A4A4}$<span style="color: #cccccc;">{tcp_portmon 32768 61000 count}</span></span></blockquote>
<br />
Maintenant que vous avez ce qu'il faut pour l'améliorer, n'hésitez surtout pas à partager vos oeuvres ;). <br />
<br />
Pour le lancer automatiquement à chaque démarrage, il faut ajouter la commande ci-dessous dans "Menu > Preferences > Startup Applications" si vous utilisez Cinnamon. Avec les autres environnement de bureau, çà devrait être plus ou moins pareil.<br />
<br />
<div class="separator" style="clear: both; text-align: center;">
<a href="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEj8kA9t4BTG5GPWB4XpLDJjVM6JV5GEZBryn7MFdvrXoXEUPtR59CvZD-OEtL35cMY7QmyD-CIq8J1ICS_vrp_7FTG0t9rGmsBHc_gh7KG0x4d_PZY695CltlXgBsWTNxKHtO97c7_2tGSi/s1600/007.jpg" imageanchor="1" style="margin-left: 1em; margin-right: 1em;"><img border="0" height="242" src="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEj8kA9t4BTG5GPWB4XpLDJjVM6JV5GEZBryn7MFdvrXoXEUPtR59CvZD-OEtL35cMY7QmyD-CIq8J1ICS_vrp_7FTG0t9rGmsBHc_gh7KG0x4d_PZY695CltlXgBsWTNxKHtO97c7_2tGSi/s320/007.jpg" width="320" /></a></div>
<br />
<br />
<h4>
Les liens qui m'ont donnés les inspirations:</h4>
<h4>
</h4>
<a href="http://ubuntuforums.org/showthread.php?t=867076">HOW TO: A Beginners Guide to Setting up Conky</a><br />
<a href="https://help.ubuntu.com/community/SettingUpConky">Setting Up Conky</a><br />
<a href="http://desktopspotting.com/26/best-conky-configs-for-linux-desktop/">15+ Beautiful Conky Configs for Linux Desktops</a><br />
<br />
<br />MaLaGasyhttp://www.blogger.com/profile/13615587620409404188noreply@blogger.com0tag:blogger.com,1999:blog-5261147620476854545.post-68648042191505941752015-05-26T10:42:00.000-07:002015-05-26T10:44:42.538-07:00Possible missing firmware for module tg3Cette pas n'est pas un scoop, puisqu'il y a plusieurs articles sur internet qui traitent du même sujet. <br />
<br />
Dans ce blog, je vais passer par toutes les étapent qui me permettront de comprendre d'où vient problème, ainsi pour arriver à une résolution.<br />
<br />
<h4>
1. Reproduire les différentes étapes qui conduisent au message d'erreur</h4>
<br />
<blockquote class="tr_bq">
$ <span style="color: yellow;">sudo update-initramfs -u</span><br />
<br />
update-initramfs: Generating /boot/initrd.img-3.16.0-4-amd64<br />
W: Possible <span style="color: #b4a7d6;">missing firmware</span> /lib/firmware/<span style="color: red;">tigon</span>/<span style="color: orange;">tg3_tso5.bin</span> for <span style="color: red;">module tg3</span><br />
W: Possible <span style="color: #b4a7d6;">missing firmware</span> /lib/firmware/<span style="color: red;">tigon</span>/<span style="color: orange;">tg3_tso.bin</span> for <span style="color: red;">module tg3</span><br />
W: Possible <span style="color: #b4a7d6;">missing firmware</span> /lib/firmware/<span style="color: red;">tigon</span>/<span style="color: orange;">tg3.bin</span> for <span style="color: red;">module tg3</span></blockquote>
<br />
Le message dit clairement qu'il manque un pilote. Mais de quel pilote s'agit-il? Nous le saurons plus loin.<br />
<br />
<h4>
2. Les paquets utiles</h4>
<br />
Avant d'aller plus loin, je vous propose d'installer le paquet <a href="https://packages.debian.org/stable/apt-file">apt-file</a>. Cet outil va nous permettre de retrouver à quel paquet appartient un fichier (<a href="https://wiki.ubuntu.com/AptFile">ici</a> pour la documentation en français).<br />
<br />
Les fichiers concernés sont: tg3_tso5.bin, tg3_tso.bin et tg3.bin.<br />
<br />
<blockquote class="tr_bq">
$ <span style="color: yellow;">sudo apt-get install apt-file</span><br />
<br />
!----message tronqué---!The following extra packages will be installed:<br />
libapt-pkg-perl libconfig-file-perl liblist-moreutils-perl<br />
libregexp-assemble-perl<br />
The following NEW packages will be installed:<br />
apt-file libapt-pkg-perl libconfig-file-perl liblist-moreutils-perl<br />
libregexp-assemble-perl<br />
0 upgraded, 5 newly installed, 0 to remove and 0 not upgraded.<br />
Need to get 252 kB of archives.<br />
After this operation, 698 kB of additional disk space will be used.<br />
Do you want to continue? [Y/n] <span style="color: red;">y</span><br />
!----message tronqué---!<span style="color: red;">The system-wide cache is empty. You may want to run 'apt-file update'</span><br />
<span style="color: red;">as root to update the cache. You can also run 'apt-file update' as</span><br />
<span style="color: red;">normal user to use a cache in the user's home directory.</span></blockquote>
<br />
<blockquote class="tr_bq">
$ <span style="color: yellow;">apt-file search tg3</span><br />
<br />
<span style="color: red;">E: The cache is empty. You need to run 'apt-file update' first.</span></blockquote>
<br />
Et oui, on général on se précipite pour aller à l'étape suivante, heureusement qu'il y a un message qui nous indique ce qu'on devrait faire dans un premier temps.<br />
<br />
<blockquote class="tr_bq">
$ <span style="color: yellow;">apt-file update</span><br />
<br />
apt-file is now using the user's cache directory.<br />
<span style="color: red;">If you want to switch back to the system-wide cache directory,</span><br />
<span style="color: red;"> run 'apt-file purge'</span><br />
Downloading complete file http://ftp.ie.debian.org/debian/dists/jessie/main/Contents-amd64.gz<br />
!----message tronqué---!</blockquote>
<br />
<h4>
3. A la recherche du ou des paquets à installer</h4>
<br />
<blockquote class="tr_bq">
$ <span style="color: yellow;">apt-file search tg3</span><br />
<br />
aegis-web: /usr/share/aegis/en/html/proj_hstg3.rpt<br />
allegro4-doc: /usr/share/man/man3/getg32.3alleg4.gz<br />
<span style="color: #93c47d;">firmware-linux-nonfree</span>: /lib/firmware/<span style="color: red;">tigon</span>/<span style="color: orange;">tg3.bin</span><br />
<span style="color: #93c47d;">firmware-linux-nonfree</span>: /lib/firmware/<span style="color: red;">tigon</span>/tg357766.bin<br />
<span style="color: #93c47d;">firmware-linux-nonfree</span>: /lib/firmware/<span style="color: red;">tigon</span>/<span style="color: orange;">tg3_tso.bin</span><br />
<span style="color: #93c47d;">firmware-linux-nonfree</span>: /lib/firmware/<span style="color: red;">tigon</span>/<span style="color: orange;">tg3_tso5.bin</span><br />
gitg: /usr/share/gitg/icons/gitg32x32.png<br />
libgivaro-dev: /usr/include/givaro/givmontg32.h<br />
libgivaro-dev: /usr/include/givaro/givmontg32.inl<br />
libgivaro-doc: /usr/share/doc/libgivaro-doc/givmontg32_8h.html<br />
libgivaro-doc: /usr/share/doc/libgivaro-doc/givmontg32_8h__incl.map<br />
libgivaro-doc: /usr/share/doc/libgivaro-doc/givmontg32_8h__incl.md5<br />
libgivaro-doc: /usr/share/doc/libgivaro-doc/givmontg32_8h__incl.png<br />
linux-headers-3.16.0-4-common: /usr/src/linux-headers-3.16.0-4-common/include/linux/iio/gyro/itg3200.h<br />
linux-image-3.16.0-4-amd64: /lib/modules/3.16.0-4-amd64/kernel/drivers/net/ethernet/broadcom/tg3.ko<br />
linux-image-3.16.0-4-amd64-dbg: /usr/lib/debug/lib/modules/3.16.0-4-amd64/kernel/drivers/net/ethernet/broadcom/tg3.ko<br />
noiz2sa-data: /usr/share/games/noiz2sa/sounds/stg3.ogg<br />
tumiki-fighters-data: /usr/share/games/tumiki-fighters/stage/stg3.stg<br />
ugene-data: /usr/share/ugene/data/position_weight_matrix/UniPROBE/GR09/Rtg3.pwm</blockquote>
<br />
Le pilote qui nous intéresse est un pilote non libre (non free) et, est contenu dans le paquet <b>firmware_linux_nonfree</b>. Cependant, cette information, bien qu'elle soit suffisante pour installer ce qu'il nous faut, ne nous dit pas à quel matériel s'applique le pilote.<br />
<br />
<h4>
4. Information sur le paquet à installer</h4>
<br />
Pour avoir plus d'information concernant le contenu du paquet firmware-linux-nonfree,<br />
<br />
<blockquote class="tr_bq">
$ <span style="color: yellow;">aptitude show firmware-linux-nonfree</span><br />
<span style="color: red;">Package: firmware-linux-nonfree <br />
State: not installed</span><br />
Multi-Arch: foreign<br />
!----message tronqué---!<br />
Description: Binary firmware for various drivers in the Linux kernel<br />
This package contains the binary firmware for various drivers in the Linux<br />
kernel. <span style="color: red;">This is a collection of firmware blobs which are not individually</span><br />
<span style="color: red;"> large enough to warrant a standalone package</span>.<br />
!----message tronqué---!</blockquote>
<br />
On a la confirmation que ce paquet n'est pas installé. Dans la description, il est indiqué que ce paquet contient une collection de pilotes. Ces derniers sont trop petit en taille pour avoir un paquet attribué pour chacun d'eux.<br />
<br />
En limitant la recherche par rapport à tg3,<br />
<br />
<blockquote class="tr_bq">
$ aptitude show <span style="color: #93c47d;">firmware-linux-nonfree</span> | grep tg3<br />
<br />
* Broadcom BCM5703/BCM5704 TSO firmware (<span style="color: red;">tigon</span>/<span style="color: orange;">tg3_tso.bin</span>) <br />
* Broadcom BCM5701A0 firmware (<span style="color: red;">tigon</span>/<span style="color: orange;">tg3.bin</span>) <br />
* Broadcom BCM5705 TSO firmware (<span style="color: red;">tigon</span>/<span style="color: orange;">tg3_tso5.bin</span>) <br />
* Broadcom BCM57766 firmware (<span style="color: red;">tigon</span>/tg357766.bin)</blockquote>
<br />
Nous avons finalement l'information qui nous intéresse. Le pilote manquant est celui de la <a href="https://wiki.debian.org/Firmware">carte ethernet</a>.<br />
<br />
<div class="separator" style="clear: both; text-align: center;">
<a href="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEi2yPLOxg76mr0lV-3IIkacM0Hw1YXRxp0UFUmGxnrp8vIAGHwRPXk1SQajJK_b6zBfMJgOww1FG4XbOdPaSdNTtRxWJS4ZkjZoHBg_XpiCqYFzyHFwO2wyifuZzj0vFyl7WDe5FN0k8R20/s1600/005.jpg" imageanchor="1" style="margin-left: 1em; margin-right: 1em;"><img border="0" height="40" src="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEi2yPLOxg76mr0lV-3IIkacM0Hw1YXRxp0UFUmGxnrp8vIAGHwRPXk1SQajJK_b6zBfMJgOww1FG4XbOdPaSdNTtRxWJS4ZkjZoHBg_XpiCqYFzyHFwO2wyifuZzj0vFyl7WDe5FN0k8R20/s640/005.jpg" width="640" /></a></div>
<br />
<br />
Ce qui est tout à fait normal, puisque je n'ai installé que le pilote de la carte Wifi lors de l'installation de Debian. <br />
<br />
<h4>
5. Résolution</h4>
<br />
De ce fait, pour résoudre ce problème, nous n'allons pas installer le paquet spécifique à la carte ethernet, puisqu'il n'y en a pas. Par contre, on nous propose d'installer le paquet firmware-linux-nonfree.<br />
<br />
Pour rappel, ce paquet contient tous les pilotes non libre. En l'installant, nous allons avoir sur notre système, les pilotes qui nous concernent aussi bien que ceux qui ne nous concernent pas. Notez aussi que, "Non free" être présent dans votre sources.list, comme dans l'exemple ci-dessous, pour pouvoir ensuite installer ce paquet.<br />
<br />
deb http://site.example.com/debian distribution main <span style="color: red;"><span style="background-color: yellow;">non-free</span></span> contrib<br />
<br />
Maintenant, on peut se lancer dans l'installation de ce fameux paquet dont on n'arrête pas d'en parler depuis le début.<br />
<br />
<blockquote class="tr_bq">
$ <span style="color: yellow;">sudo apt-get install firmware-linux-nonfree</span></blockquote>
<br />
Pour vérifier que le paquet a bien été installé.<br />
<br />
<blockquote class="tr_bq">
$ <span style="color: yellow;">sudo aptitude show firmware-linux-nonfree</span><br />
<br />
Package: firmware-linux-nonfree <br />
<span style="color: lime;">State: installed</span><br />
<span style="color: lime;">Automatically installed: no</span><br />
Multi-Arch: foreign<br />
Version: 0.43<br />
Priority: optional<br />
Section: non-free/kernel<br />
Maintainer: Debian Kernel Team <debian-kernel lists.debian.org=""><br />
Architecture: all<br />
Uncompressed Size: 5,128 k<br />
<span style="color: lime;">Suggests: initramfs-tools</span><br />
</debian-kernel></blockquote>
<debian-kernel lists.debian.org=""></debian-kernel><br />
<debian-kernel lists.debian.org=""></debian-kernel><br />
<h4>
<debian-kernel lists.debian.org=""></debian-kernel>Note:</h4>
<br />
<debian-kernel lists.debian.org="">
En général, il y a toutes les chances que vous rencontrerez ce genre de message lorsque vous devriez en mettant à jour le noyaux Linux, et si les bons pilotes n'ont pas été installés.<br />
<br />
Un petit plus pour terminer ce blog. Si vous avez plusieurs noyaux installés, pour tous les mettre à jour, il faut taper la commande:<br />
</debian-kernel><br />
<blockquote>
<debian-kernel lists.debian.org="">
$ <span style="color: yellow;">sudo update-initramfs -u -k all</span></debian-kernel></blockquote>
MaLaGasyhttp://www.blogger.com/profile/13615587620409404188noreply@blogger.com0tag:blogger.com,1999:blog-5261147620476854545.post-66381764758780754152015-05-24T12:56:00.000-07:002015-05-26T14:17:50.825-07:00Comment changer la resolution de l'ecran TTYSi comme moi, vous avez installé les pilotes NVidia au lieu de Nouveau, en vous connectant dans le TTY, vous avez du avoir la surprise de voir que l'écran a changé de résolution, mais en pire.<br />
<br />
J'ai navigué sur internet pour trouver une solution, et celle qui me convient le mieux, c'est celle qui est présentée sur <a href="http://forums.debian.net/viewtopic.php?f=5&t=41881&start=30">http://forums.debian.net</a>. Ci-dessous toutes les étapes que j'ai effectuées.<br />
<br />
<h4>
1. Vérifier les résolutions disponible pour votre écran</h4>
<br />
<blockquote class="tr_bq">
$ <span style="color: yellow;">sudo hwinfo --framebuffer | grep Mode</span><br />
<br />
Model: "NVIDIA GeForce GT 330M"<br />
Mode 0x0300: 640x400 (+640), 8 bits<br />
Mode 0x0301: 640x480 (+640), 8 bits<br />
Mode 0x0303: 800x600 (+800), 8 bits<br />
Mode 0x0305: 1024x768 (+1024), 8 bits<br />
Mode 0x030e: 320x200 (+640), 16 bits<br />
Mode 0x030f: 320x200 (+1280), 24 bits<br />
Mode 0x0311: 640x480 (+1280), 16 bits<br />
Mode 0x0312: 640x480 (+2560), 24 bits<br />
Mode 0x0314: 800x600 (+1600), 16 bits<br />
Mode 0x0315: 800x600 (+3200), 24 bits<br />
Mode 0x0317: 1024x768 (+2048), 16 bits<br />
Mode 0x0318: 1024x768 (+4096), 24 bits<br />
Mode 0x0330: 320x200 (+320), 8 bits<br />
Mode 0x0331: 320x400 (+320), 8 bits<br />
Mode 0x0332: 320x400 (+640), 16 bits<br />
Mode 0x0333: 320x400 (+1280), 24 bits<br />
Mode 0x0334: 320x240 (+320), 8 bits<br />
Mode 0x0335: 320x240 (+640), 16 bits<br />
Mode 0x0336: 320x240 (+1280), 24 bits<br />
Mode 0x033d: 640x400 (+1280), 16 bits<br />
Mode 0x033e: 640x400 (+2560), 24 bits<br />
Mode 0x0360: 1280x800 (+1280), 8 bits<br />
Mode 0x0361: <span style="color: red;">1280x800</span> (+5120), 24 bits</blockquote>
<br />
Si vous ne l'avez pas installé hwinfo, vous pouvez le faire avec la commande apt-get install hwinfo. Le mode qui m'intéresse ici, c'est celui à 1280x800.<br />
<br />
<h4>
2. Modifier le fichier /etc/default/grub</h4>
En ajoutant la ligne:<br />
<br />
<blockquote class="tr_bq">
GRUB_GFXPAYLOAD_LINUX=<span style="color: red;">1280x800</span></blockquote>
<br />
Puis mettez à jour le grub.<br />
<br />
<blockquote class="tr_bq">
$ <span style="color: yellow;">sudo update-grub</span></blockquote>
<br />
<br />
Voici à quoi ressemble mon fichier (en rouge ce que j'ai du ajouté en plus):<br />
<br />
<blockquote class="tr_bq">
# If you change this file, run 'update-grub' afterwards to update<br />
# /boot/grub/grub.cfg.<br />
# For full documentation of the options in this file, see:<br />
# info -f grub -n 'Simple configuration'<br />
<br />
GRUB_DEFAULT=0<br />
GRUB_TIMEOUT=0<br />
GRUB_DISTRIBUTOR=`lsb_release -i -s 2> /dev/null || echo Debian`<br />
GRUB_CMDLINE_LINUX_DEFAULT="quiet"<br />
GRUB_CMDLINE_LINUX=""<br />
<br />
# Uncomment to enable BadRAM filtering, modify to suit your needs<br />
# This works with Linux (no patch required) and with any kernel that obtains<br />
# the memory map information from GRUB (GNU Mach, kernel of FreeBSD ...)<br />
#GRUB_BADRAM="0x01234567,0xfefefefe,0x89abcdef,0xefefefef"<br />
<br />
# Uncomment to disable graphical terminal (grub-pc only)<br />
#GRUB_TERMINAL=console<br />
<br />
# The resolution used on graphical terminal<br />
# note that you can use only modes which your graphic card supports via VBE<br />
# you can see them in real GRUB with the command `vbeinfo'<br />
#GRUB_GFXMODE=640x480<br />
<br />
<span style="color: red;"># Set the framebuffer resolution; used on tty/console [text consoles]</span><br />
<span style="color: red;">GRUB_GFXPAYLOAD_LINUX=1280x800</span><br />
<br />
# Uncomment if you don't want GRUB to pass "root=UUID=xxx" parameter to Linux<br />
#GRUB_DISABLE_LINUX_UUID=true<br />
<br />
# Uncomment to disable generation of recovery mode menu entries<br />
#GRUB_DISABLE_RECOVERY="true"<br />
<br />
# Uncomment to get a beep at grub start<br />
#GRUB_INIT_TUNE="480 440 1"</blockquote>
<br />
Une petite note concernant cet ajout. Sur le site du <a href="https://www.gnu.org/software/grub/manual/html_node/gfxpayload.html">gnu.org</a>, il est marqué:<br />
<br />
<blockquote class="tr_bq">
Depending on your kernel, your distribution, your graphics card, and the phase of the moon, note that using this option may cause GNU/Linux to suffer from various display problems, particularly during the early part of the boot sequence. If you have problems, set this variable to ‘text’ and GRUB will tell Linux to boot in normal text mode. </blockquote>
<br />
En gros, si plus tard vous rencontrerez des problèmes d'affichage à l'écran lors du boot, choisissez l'option 'text' par défaut, ainsi le GRUB va demander au noyau linux de démarrer en mode texte.<br />
<br />
<h4>
3. Modification de la taille de la police dans le TTY</h4>
<br />
Au niveau de la taille des polices, on a le luxe d'avoir quelques choix et qui ne nécessite pas une redémarrage de l'ordinateur. Et je dis, tant mieux, c'est toujours ça de gagné.<br />
<br />
Pour ce faire, lancer la commande 'sudo dpkg-reconfigure console-setup', puis suivez les instructions afichées à l'écran, comme proposé sur la page <a href="http://askubuntu.com/questions/173220/how-do-i-change-the-font-or-the-font-size-in-the-tty-console">askubuntu.com</a>. <br />
<br />
Pour visualiser les modifications, entrez sur l'un des écrans TTY, connectez vous en tant que root, puis entrez la commande:<br />
<br />
<blockquote class="tr_bq">
# <span style="color: yellow;">console-setup</span></blockquote>
<br />
<br />
<br />MaLaGasyhttp://www.blogger.com/profile/13615587620409404188noreply@blogger.com0tag:blogger.com,1999:blog-5261147620476854545.post-25175246875160641142015-05-21T21:11:00.002-07:002015-05-26T14:14:49.416-07:00 II. Installation d'un Debian GNU/Linux en remplacement du Mac OS X Je ne vous fait pas dire que l'installation d'un systeme linux sur un Mac dote d'un processeur Intel, est la partie la moins palpitante dans cette histoire. Par contre, ca peut durer une eternite si vous ne savez pas trop ce que vous voulez faire, et surtout si vous ne l'avez jamais fait auparavent.<br />
<br />
Durant l'installation, les deux moments ou j'ai eu peur que l'installation ne se deroule pas comme prevue, c'etait dans un premier temps lors de l'installation du GRUB, puis apres au niveau demarrage du serveur graphique pour afficher le bureau. Generalement, le probleme d'installation se passe a ces moments la.<br />
<br />
Une fois l'installation terminee, les vraies soucis commencent. Je tiens a noter qu'initialement, j'ai installe a la base, XFCE comme environnement de bureau. Je vous ai propose d'installer Cinnamon pour vous faire gagner du temps, et pour avoir un bureau presque entierement fonctionnel. Cependant, je vous suggere d'installer tous les environements de bureau lors de l'installation de Debian, puis de les essayer un par un, pour trouver ce qu'il vous convient le mieux.<br />
<br />
<h4>
1. Probleme avec le touchpad (ou trackpad)</h4>
Bien qu'avec Cinnamon, le touchpad fonctionne comme je l'ai souhaite (<i>une tape avec un doigt pour un <b>click gauche</b>, deux doigts pour un <b>click droit</b>, trois doigts pour un <b>click du milieu</b>, puis <b>defilement des pages</b> avec deux doigts, etc.</i>), je vous propose tout de meme de jetter un coup d'oeil sur les liens ci-dessous qui, non seulement permettent de resoudre les problemes sous XFCE, mais encore il y a des astuces qui permettent d'ameliorer la gestion du trackpad.<br />
<br />
<a href="http://debian-facile.org/topic-6734-activation-du-taptap-pour-cliquer-via-le-pad-astuce-page-1.html">Activation du TapTap</a> pour cliquer via le pad (Astuce)<br />
Enable <a href="http://crunchbang.org/forums/viewtopic.php?id=11711">righ-click</a> on Macbook<br />
<br />
<br />
Le probleme qui se passe ici, c'est que le touchpad est vu par le systeme comme une souris a un seul bouton. <br />
<br />
Une solution simple pour activer cette fonctionnalite, c'est d'ajouter dans la liste des programme au demarrage (<i>Menu > Settings > Session and Startup</i>), la commande ci-dessous:<br />
<br />
<blockquote class="tr_bq">
<span style="color: red;">synclient VertEdgeScroll=1 & synclient TapButton1=1 & synclient TapButton2=3 & synclient TapButton3=2 &</span></blockquote>
<br />
<h4>
2. Probleme avec la gestion de la luminosite de l'ecran avec les touches F1 et F2 du clavier</h4>
Je n'ai pas encore verifie si le probleme avec XFCE est resolu en utilisant les pilotes proprietaires de NVIDIA, comme indique au paragraphe 5 de cet article. <br />
<br />
Comme le probleme de gestion d'eclairage de l'ecran n'existe pas avec Cinnamon, et que je suis satisfait de mon bureau, je ne vais pas faire de suite des tests supplementaires avec l'environnement XFCE. Par contre, les touches F5, F6, F7-F12 marchent out of the box aussi bien sous XFCE que Cinnamon. (les touches F7-F9 marchent avec Rythmbox et non avec VLC).<br />
<br />
<h4>
3. Ecran blanc pendant 30 secondes lors du reboot</h4>
Le probleme ici, c'est que l'EFI met 30 secondes pour se decider avant de passer la main au GRUB. C'est ici qu'on aura besoin du CD original d'installation du Mac OS X.<br />
<br />
Je vous propose dans un premier temps, de redemarrer le Mac pour <a href="https://support.apple.com/fr-fr/HT204063">re-initialiser la memoire NVRAM</a> (appuyez sur les touche <i><b>CMD+ALT+P+R</b></i> en meme temps juste apres la petite musique de demarrage).<br />
<br />
Apres que l'ordinateur aurait redemarre une deuxieme fois, appuyez sur la <i><b>touche C</b></i> du clavier, juste apres le son du demarrage, comme si vous souhaitez re-installer Mac OS X.<br />
<br />
Suivez les instructions ci-dessous comme precise dans le forum <a href="http://askubuntu.com/questions/480602/bless-doesnt-fix-white-boot-screen-boot-delay-for-single-boot-xubuntu-14-04-on">'Bless doesn't fix white boot screen boot delay for single-boot Xubuntu 14.04 on Macbook 4,1'</a>.<br />
<br />
Dans le menu, choisissez <i><b>Utilitaire > Utilitaire du disque</b></i>, verifiez vos partitions et noter l'identifiant du disque pour le Boot. Dans mon cas, c'est <b>disk0s1</b>.<br />
<span id="goog_502789057"></span><span id="goog_502789058"></span><br />
<div class="separator" style="clear: both; text-align: center;">
<a href="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEhU9Y4KyJknYZRo2d_VZiYdDkEE_yx6-OMdgVAgCLdHgMUjq2yytS1cCjfwbUtaXtfswtGVEikJ5FRNWMSwxBoJl_KZ3oPtYmezsZxg-BFguoVli_CmouElpn3bKD6TfN0noBmbA5ugCeJz/s1600/013.jpg" imageanchor="1" style="margin-left: 1em; margin-right: 1em;"><img border="0" height="133" src="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEhU9Y4KyJknYZRo2d_VZiYdDkEE_yx6-OMdgVAgCLdHgMUjq2yytS1cCjfwbUtaXtfswtGVEikJ5FRNWMSwxBoJl_KZ3oPtYmezsZxg-BFguoVli_CmouElpn3bKD6TfN0noBmbA5ugCeJz/s320/013.jpg" width="320" /></a></div>
<br />
<div class="separator" style="clear: both; text-align: center;">
<a href="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEghxHN0cpoRA8k7mK8dlmjhnAjwbgtwWwbY8Jz-XnZO2rbBOdBI-matJwBzHHFORH7cwYA5WRcrxdNiZVzEojfNGAybndGH1FREh-EPYaML-zhFqW_VCHSjI28adQ0d403IvujKhT44yo5h/s1600/001.jpg" imageanchor="1" style="margin-left: 1em; margin-right: 1em;"><img border="0" height="239" src="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEghxHN0cpoRA8k7mK8dlmjhnAjwbgtwWwbY8Jz-XnZO2rbBOdBI-matJwBzHHFORH7cwYA5WRcrxdNiZVzEojfNGAybndGH1FREh-EPYaML-zhFqW_VCHSjI28adQ0d403IvujKhT44yo5h/s320/001.jpg" width="320" /></a></div>
<br />
<div class="separator" style="clear: both; text-align: center;">
</div>
<div class="separator" style="clear: both; text-align: center;">
</div>
<div class="separator" style="clear: both; text-align: center;">
</div>
<div class="separator" style="clear: both; text-align: center;">
</div>
<div class="separator" style="clear: both; text-align: center;">
</div>
<div class="separator" style="clear: both; text-align: center;">
</div>
Lancer ensuite le terminal a partir du menu <i><b>Utilitaire > Terminal</b></i>.<br />
<br />
<div class="separator" style="clear: both; text-align: center;">
</div>
<div class="separator" style="clear: both; text-align: center;">
<a href="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEhv6JHRYBjCzyINLNPkWmdY3VhA6cuAMIMwZhyDYgnU3bPc4F67UZBUzKmIcvJdv03a5Sb0ScZvtW76w2FdRLFoIGMEUCv9X-o6uIsrlBU3qJ6S99jCWafJJhKj6VYcF21yJuj9fBb9L5uy/s1600/002.jpg" imageanchor="1" style="margin-left: 1em; margin-right: 1em;"><img border="0" height="286" src="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEhv6JHRYBjCzyINLNPkWmdY3VhA6cuAMIMwZhyDYgnU3bPc4F67UZBUzKmIcvJdv03a5Sb0ScZvtW76w2FdRLFoIGMEUCv9X-o6uIsrlBU3qJ6S99jCWafJJhKj6VYcF21yJuj9fBb9L5uy/s320/002.jpg" width="320" /></a></div>
<br />
Taper la commande:<br />
<br />
<blockquote class="tr_bq">
<span style="color: red;"># bless --device /dev/disk0s1 --setBoot --legacy --verbose</span></blockquote>
<br />
<div class="separator" style="clear: both; text-align: center;">
</div>
<div class="separator" style="clear: both; text-align: center;">
<a href="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEiz3EiPtTXO55zAwd8D9fnMdWBaVcyH3-oD-FOy5G6xZICyAIvAYubmyZ4Q3SeCaHC3ajWxml-Zm_sID2Z21qUhErbKWR1_eMDuLhM6YWmp_t4N1-DwKcwN4MTZ53CLS_j8_cAz0GBJbluN/s1600/003.jpg" imageanchor="1" style="margin-left: 1em; margin-right: 1em;"><img border="0" height="204" src="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEiz3EiPtTXO55zAwd8D9fnMdWBaVcyH3-oD-FOy5G6xZICyAIvAYubmyZ4Q3SeCaHC3ajWxml-Zm_sID2Z21qUhErbKWR1_eMDuLhM6YWmp_t4N1-DwKcwN4MTZ53CLS_j8_cAz0GBJbluN/s320/003.jpg" width="320" /></a></div>
<br />
<div class="separator" style="clear: both; text-align: center;">
<a href="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEi1Q8kLHw6lDrh0iFwlZmTe5tuIXIFTpGU8YLWeWf9D3tZRMuEa5XbEnQLZ8qlO7IaekEvVyh2rMRU1QrwVCdCPKxh178DjGknDOncKAe83EtqTrg0KoBLDMaLFoN3ARJme0XtDElIlB5-Q/s1600/004.jpg" imageanchor="1" style="margin-left: 1em; margin-right: 1em;"><img border="0" height="201" src="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEi1Q8kLHw6lDrh0iFwlZmTe5tuIXIFTpGU8YLWeWf9D3tZRMuEa5XbEnQLZ8qlO7IaekEvVyh2rMRU1QrwVCdCPKxh178DjGknDOncKAe83EtqTrg0KoBLDMaLFoN3ARJme0XtDElIlB5-Q/s320/004.jpg" width="320" /></a></div>
<br />
<span id="goog_502789057"></span><span id="goog_502789058"></span><br />
<blockquote class="tr_bq">
<span style="color: red;"><span id="goog_502789057"># reboot</span></span></blockquote>
<br />
Cette commande va redemarrer l'ordinateur. <br />
<span id="goog_502789057"></span><span id="goog_502789058"></span><br />
<span id="goog_502789057">Pour gagner un peu plus de temps pour arriver jusqu'a ma session, j'ai modifie le "timeout" du Grub, en modifiant le fichier <span style="color: red;">/etc/default/grub: GRUB_TIMEOUT=0</span>.</span><br />
<br />
<blockquote class="tr_bq">
<span style="color: red;"><span id="goog_502789057"># update-grub</span></span></blockquote>
<br />
<span id="goog_502789057">Pour valider la modification, puis redemarrer encore une fois l'ordinateur. </span><br />
<br />
<h4>
4. Problemes de freeze de l'ecran</h4>
Il m'arrive parfois d'avoir juste le fond d'ecran qui se met a l'avant de l'ecran, en me bloquant l'access a tout ce qu'il y a derriere. En passant par le mode console en tapant sur le clavier <b><i>FN+CTRL+ALT+Fx</i></b> (x=[1-6]; F7, c'est pour revenir au GUI), j'ai note le message:<br />
<br />
<span style="color: yellow;">[33345.312455] nouveau E [ PFB][0000:01:00.0] trapped read at 0x002041c000 at channel 0x0000fb2a [Xorg [1068]] PGRAPH/TEXTURE/00 reason: PAGE_NOT_PRESENT</span><br />
<br />
Dans ce cas, il est conseille d'utiliser les pilotes proprietaires de NVIDIA au lieu de Nouveau, d'autant plus qu'apres avoir installe les pilotes NVIDIA, ca a regle un autre probleme que j'avais rencontre juste apres m'etre connecte dans ma session avec Cinnamon. J'avais un ecran blanc, et meme parfois je me retrouve avec une page toute pixelisee et tres moche. Maintenant, c'est de l'histoire ancienne.<br />
<br />
Les discussions ci-dessous m'ont permis d'avoir une solution qui marche.<br />
<br />
<a href="https://www.centos.org/forums/viewtopic.php?f=13&t=3833">CentOS - Graphics issues</a><br />
<a href="http://forums.debian.net/viewtopic.php?p=563349">How to use nvidia drive , blacklist nouveau?</a><br />
<br />
Voice les etapes a suivre, pour ceux qui ont un doute sur comment le faire.<br />
<br />
Comme ma carte graphique (GeForce GT 330M), est consideree comme un vieux modele (legacy), j'ai suivi l'installation pour les cartes GeForce 6xxx and 7xxx GPUs.<br />
<br />
i. Verifier que votre <a href="http://us.download.nvidia.com/XFree86/Linux-x86/304.125/README/supportedchips.html">carte graphique</a> est bien compatible avec les pilotes proposes dans les depots, ainsi ca vous evitera de compiler quoi que ce soit, a la main.<br />
<br />
ii. Verifier bien que vous avez "contrib" et "non-free" dans /etc/apt/sources.list, comme dans l'exemple:<br />
<br />
deb http://http.debian.net/debian/ jessie main <b>contrib non-free</b><br />
<pre> </pre>
iii. Installer les paquets ci-dessous<br />
<br />
<blockquote class="tr_bq">
<span style="color: red;"># aptitude update</span><br />
<span style="color: red;"># aptitude -r install linux-headers-$(uname -r|sed 's,[^-]*-[^-]*-,,') nvidia-legacy-304xx-kernel-dkms</span></blockquote>
<br />
Ensuite,<br />
<br />
<blockquote class="tr_bq">
<span style="color: red;"># aptitude nvidia-xconfig</span><br />
<span style="color: red;"># nvidia-xconfig</span><br />
<br />
<div class="separator" style="clear: both; text-align: center;">
<a href="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEi6neeoBK0VTOOks0HH9-g1n1YWeJ6jRpqFrXTwImrmgSfMr5TJE0I0zCUXk1KM-U5em16OWCnvXp6mk2b19KZ-iuhiJ3_KEUxx0nPJF7CjyA5YAbPA4oJatVROBat92sxVefPlvXPPVi-K/s1600/005.jpg" imageanchor="1" style="margin-left: 1em; margin-right: 1em;"><img border="0" height="249" src="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEi6neeoBK0VTOOks0HH9-g1n1YWeJ6jRpqFrXTwImrmgSfMr5TJE0I0zCUXk1KM-U5em16OWCnvXp6mk2b19KZ-iuhiJ3_KEUxx0nPJF7CjyA5YAbPA4oJatVROBat92sxVefPlvXPPVi-K/s320/005.jpg" width="320" /></a></div>
<div class="separator" style="clear: both; text-align: center;">
</div>
</blockquote>
Redemarrer l'ordinateur, et voyez le resultat.<br />
<blockquote class="tr_bq">
<br />
<span style="color: red;"># init 6</span><br />
<br /></blockquote>
<h4>
5. Probleme de gestion d'energie</h4>
Lorsque je rabats l'ecran, l'ordinateur devrait se mettre en veille d'apres mes configurations.<br />
<br />
<div class="separator" style="clear: both; text-align: center;">
<a href="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEjI80tYoBCc2Qda0ADsrUjixx8XcLQEDGRYYCFHTaFtZGwHmHgpcgGDWEREhlfqvSNXjnqaKeSyxDZEKFqBuI8lMYQO8W6PVCOAMnHO_-RY-J2HWEDDUaFtt4-R1xchz_BCZO35brVTk1e3/s1600/006.jpg" imageanchor="1" style="margin-left: 1em; margin-right: 1em;"><img border="0" height="144" src="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEjI80tYoBCc2Qda0ADsrUjixx8XcLQEDGRYYCFHTaFtZGwHmHgpcgGDWEREhlfqvSNXjnqaKeSyxDZEKFqBuI8lMYQO8W6PVCOAMnHO_-RY-J2HWEDDUaFtt4-R1xchz_BCZO35brVTk1e3/s320/006.jpg" width="320" /></a></div>
<div class="separator" style="clear: both; text-align: center;">
</div>
<br />
<br />
Mais ce n'etait pas le cas jusqu'au moment ou j'ai installe les pilotes NVIDIAs de la carte graphique.<br />
<br />
Et voila, j'espere que j'ai pu aider quelques un d'entre vous, qui ont rencontre les memes problemes.<br />
<blockquote class="tr_bq">
</blockquote>
MaLaGasyhttp://www.blogger.com/profile/13615587620409404188noreply@blogger.com0tag:blogger.com,1999:blog-5261147620476854545.post-15286732307179336842015-05-20T09:03:00.003-07:002015-05-26T14:02:21.241-07:00I. Installation d'un Debian GNU/Linux en remplacement du Mac OS XTout est dit dans le titre. Je vais definitivement supprimer Mac OS X de mon ordinateur, pour le remplacer par un Debian GNU/Linux.<br />
<br />
<h3>
<span style="color: red;">Par contre, on risque de ne pas vous le repeter assez souvent, mais n'oubliez pas de tout sauvegarder de votre ordinateur avant de le formater. </span></h3>
<br />
Si ca peut aider certain, voici une petite liste de fichiers que j'ai du sauvegarder avant de formater l'ordinateur:<br />
<br />
<blockquote class="tr_bq">
- Liste des contacts dans Address Book<br />
- Tous mes calendriers dans iCal<br />
- Tous mes emails, en particulier, ceux que j'ai sauvegarde en local<br />
- Les musiques et les videos (iTunes, etc.)<br />
- Les notes des post-it<br />
- Verifier qu'il ne reste pas de fichiers qui trainent dans l'un des dossiers par defaut</blockquote>
<br />
<br />
Dans cet article, je vais essayer de donner le maximum d'information concernant la migration et eventuellement des problemes auxquels j'ai du faire face.<br />
<br />
Avant d'aller plus plus, ci-dessous une petite liste que j'estime qu'il faut avoir au lieu de se lancer "dans le vide":<br />
<br />
<blockquote class="tr_bq">
- Macbook processeur Intel avec lecteur de CD interne/externe<br />
- CD d'installation de Debian (<a href="http://www.debian.org/distrib/">8.0</a> aka <a href="http://www.debian.org/distrib/">Jessie</a>)<br />
- CD d'installation original du Mac OS X (10.6 aka Snow Leopard)<br />
- <a href="http://gparted.org/">GParted</a> en live CD (optionnel)<br />
- Clef USB contenant le pilote de la carte reseau, <a href="https://wiki.debian.org/brcm80211">bcm43xx</a> (<a href="https://packages.debian.org/jessie/all/firmware-brcm80211/download">firmware-brcm80211_0.43_all.deb</a> pour la version stable de Debian; <a href="https://packages.debian.org/search?keywords=firmware-brcm80211">ici</a> pour les autres versions)<br />
- Une souris, puisque le trackpad risque de vous poser quelques soucis</blockquote>
<br />
/!\ Si jamais l'installation ne se passe pas comme souhaite, ou encore si vous pensez avoir regrette de ne plus avoir votre Mac OS, sachez que vous pouvez a tout moment reinstaller Mac OS X a condition d'avoir le CD original.<br />
<br />
Autre chose, avant de supprimer definitivement la partition Mac OS X de votre ordinateur, je vous conseille vivement de <a href="https://support.apple.com/en-us/HT201518">verifier la version de l'EFI</a> puis de le mettre a jour si necessaire.<br />
<br />
Pour rappel, ci-dessous les caracteristiques de mon ordinateur:<br />
<br />
<blockquote class="tr_bq">
Ordinateur: MacBook Pro (15", Mid 2010) <br />
Identifiant: MacBookPro6,2 <br />
EFI: MBP61.0057.B0F (<span style="color: yellow;">EFI 2.6</span>) <br />
SMC: 1.58f17 (SMC 1.7)</blockquote>
<br />
Je pense que tout est dit, maintenant on peut se lancer dans l'aventure. Je ne vais pas detailler le systeme d'installation, mais juste certains points que je pense qu'il est necessaire d'en parler.<br />
<br />
<span style="color: red;">Une petite note au passage, pour forcer le <span style="background-color: yellow;">boot a partir d'un lecteur CD</span>, il faut appuyer pendant quelques secondes sur la <span style="background-color: yellow;">touche C</span> du clavier, juste apres la petite "musique" [appeler le comme vous le voulez, mais ce n'est pas un bip ;)] de demarrage du Mac.</span><br />
<br />
<h4>
1. Installation en mode Expert</h4>
<div class="separator" style="clear: both; text-align: center;">
</div>
<div class="separator" style="clear: both; text-align: center;">
<a href="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEg4AqqTOwLyknVCxo0FFxsOteWztfDwKW5Qog-bf6vo6m3GpwQpF3M4RuZ0uvR3q3KzVPX-iqRjkTytQinOqlKHPk8BYoRNBA1Ujjyqm7XBVLV7lKlrvY6WNY9hmAgbrPP8ZucByKhK81tV/s1600/024.jpg" imageanchor="1" style="margin-left: 1em; margin-right: 1em;"><img border="0" height="164" src="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEg4AqqTOwLyknVCxo0FFxsOteWztfDwKW5Qog-bf6vo6m3GpwQpF3M4RuZ0uvR3q3KzVPX-iqRjkTytQinOqlKHPk8BYoRNBA1Ujjyqm7XBVLV7lKlrvY6WNY9hmAgbrPP8ZucByKhK81tV/s320/024.jpg" width="320" /></a></div>
<br />
<div class="separator" style="clear: both; text-align: center;">
</div>
<br />
<div class="separator" style="clear: both; text-align: center;">
<a href="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEjN__RNADYui9-aRXDWqfWzsHmHtXOAB3p3L-xVe4JS7FCUp2lHN3Mu0EOso7EOUEfXp1_lpeCoZK8QnSxFYHldTcACnk79nS-cwtCGlf03Q0vKY9Z3mwH-2SkEBANdidw8twLp6jBhWKL9/s1600/023.jpg" imageanchor="1" style="margin-left: 1em; margin-right: 1em;"><img border="0" height="134" src="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEjN__RNADYui9-aRXDWqfWzsHmHtXOAB3p3L-xVe4JS7FCUp2lHN3Mu0EOso7EOUEfXp1_lpeCoZK8QnSxFYHldTcACnk79nS-cwtCGlf03Q0vKY9Z3mwH-2SkEBANdidw8twLp6jBhWKL9/s320/023.jpg" width="320" /></a></div>
<div class="separator" style="clear: both; text-align: center;">
</div>
<br />
<h4>
2. Detection de la carte reseau</h4>
C'est a ce moment qu'il faut inserer la clef USB contenant le pilote pour cette carte.<br />
<br />
<div class="separator" style="clear: both; text-align: center;">
</div>
<div class="separator" style="clear: both; text-align: center;">
</div>
<div class="separator" style="clear: both; text-align: center;">
</div>
<div class="separator" style="clear: both; text-align: center;">
</div>
<div class="separator" style="clear: both; text-align: center;">
</div>
<div class="separator" style="clear: both; text-align: center;">
<a href="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEg_ocL92MVUsIDk2y0UokM20GxC7KwbNz0toK6I2f_adleBnzCJQPojtrwNm8BWoC_MLdZGeYwL4pYpHeuJNKGFSmYevnf-KgbPEboLbSv6FYeaq2e635rLAHXv1IJ7Z5bZCyGZCJebfuQP/s1600/022.jpg" imageanchor="1" style="margin-left: 1em; margin-right: 1em;"><img border="0" height="284" src="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEg_ocL92MVUsIDk2y0UokM20GxC7KwbNz0toK6I2f_adleBnzCJQPojtrwNm8BWoC_MLdZGeYwL4pYpHeuJNKGFSmYevnf-KgbPEboLbSv6FYeaq2e635rLAHXv1IJ7Z5bZCyGZCJebfuQP/s320/022.jpg" width="320" /></a></div>
<div class="separator" style="clear: both; text-align: center;">
</div>
<div class="separator" style="clear: both; text-align: center;">
</div>
<br />
<div class="separator" style="clear: both; text-align: center;">
<a href="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEiEkOUuLCVnCi-KsZJGaXWYGctA3841d0zX_w3s-5zlJbDwdPNbTBpRGmw7dl_f1bVw7zfVmg4utBOBOCNsxO6gPmAmxMh6abmzEiVFh-0BX0jKskA8l-BlU3MJ1jYAJU3SRCTgUBRbvQGy/s1600/021.jpg" imageanchor="1" style="margin-left: 1em; margin-right: 1em;"><img border="0" height="82" src="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEiEkOUuLCVnCi-KsZJGaXWYGctA3841d0zX_w3s-5zlJbDwdPNbTBpRGmw7dl_f1bVw7zfVmg4utBOBOCNsxO6gPmAmxMh6abmzEiVFh-0BX0jKskA8l-BlU3MJ1jYAJU3SRCTgUBRbvQGy/s320/021.jpg" width="320" /></a></div>
<br />
<div class="separator" style="clear: both; text-align: center;">
</div>
Selectionner l'adapteur approprie selon votre choix de vous connecter en wifi ou en filaire. Dans mon cas, je me suis connecte en wifi.<br />
<br />
<div class="separator" style="clear: both; text-align: center;">
</div>
<div class="separator" style="clear: both; text-align: center;">
<a href="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEhUx-lEU4MIlsickHK12nc9u8-O3Z8qmI-YTraiLNIOl55RgAS_h9gImwTP3CAS5R8yj31Ga3GiYYldWrgcpAGT37XOHKGCSHmGL2FTanYf9bO7LTjiSr8NDzmaSML3MgxFKIGO8LRv7fvg/s1600/020.jpg" imageanchor="1" style="margin-left: 1em; margin-right: 1em;"><img border="0" height="80" src="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEhUx-lEU4MIlsickHK12nc9u8-O3Z8qmI-YTraiLNIOl55RgAS_h9gImwTP3CAS5R8yj31Ga3GiYYldWrgcpAGT37XOHKGCSHmGL2FTanYf9bO7LTjiSr8NDzmaSML3MgxFKIGO8LRv7fvg/s320/020.jpg" width="320" /></a></div>
<br />
Selectionner votre reseau wifi.<br />
<br />
<div class="separator" style="clear: both; text-align: center;">
</div>
<div class="separator" style="clear: both; text-align: center;">
<a href="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEggcDK1saLTOamgAF3nOgwgV-Rnir5ATKjbKsGBTH048Zf637Xh7-OWn_WH51bi0X0QIT5b_fZSyWhNS-4CNy_ElUZvZWx-jzm60tL4pTZ6_xBqilifqAW1RmVabDtOLMYILbA3ZJU1FxnV/s1600/019.jpg" imageanchor="1" style="margin-left: 1em; margin-right: 1em;"><img border="0" height="158" src="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEggcDK1saLTOamgAF3nOgwgV-Rnir5ATKjbKsGBTH048Zf637Xh7-OWn_WH51bi0X0QIT5b_fZSyWhNS-4CNy_ElUZvZWx-jzm60tL4pTZ6_xBqilifqAW1RmVabDtOLMYILbA3ZJU1FxnV/s320/019.jpg" width="320" /></a></div>
<br />
<div class="separator" style="clear: both; text-align: center;">
<a href="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEgSzF8BWtyrrn6g-6UNMs4wuFgZxyFrEp86bb1MFu11HlVjMb9QUNnmECcUJTjtR6GNLCnTzeEaUkAs1nksUkUWXiIw7z5BdaLTNgnmTrVU3R_QDOQAJIw4wzYMvBXs476QTvdF8tz6DxzS/s1600/018.jpg" imageanchor="1" style="margin-left: 1em; margin-right: 1em;"><img border="0" height="78" src="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEgSzF8BWtyrrn6g-6UNMs4wuFgZxyFrEp86bb1MFu11HlVjMb9QUNnmECcUJTjtR6GNLCnTzeEaUkAs1nksUkUWXiIw7z5BdaLTNgnmTrVU3R_QDOQAJIw4wzYMvBXs476QTvdF8tz6DxzS/s320/018.jpg" width="320" /></a></div>
<br />
<div class="separator" style="clear: both; text-align: center;">
<a href="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEjhyDgQmkXGPVdehGHFWk5q4mnwrOwWu53MIfx8ay57oOEsGDKUxu3j0R4EOOtepgGRkXt-P3vIA4jnYXTfxqWOEQS1H__vG8tFYK5FsoNyvolLpMsH7WPlsc0GFaZQ76A_jVbJ1BtaL1kZ/s1600/017.jpg" imageanchor="1" style="margin-left: 1em; margin-right: 1em;"><img border="0" height="73" src="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEjhyDgQmkXGPVdehGHFWk5q4mnwrOwWu53MIfx8ay57oOEsGDKUxu3j0R4EOOtepgGRkXt-P3vIA4jnYXTfxqWOEQS1H__vG8tFYK5FsoNyvolLpMsH7WPlsc0GFaZQ76A_jVbJ1BtaL1kZ/s320/017.jpg" width="320" /></a></div>
<br />
<div class="separator" style="clear: both; text-align: center;">
</div>
<div class="separator" style="clear: both; text-align: center;">
</div>
<h4>
3. Puis vient ensuite le fameux partionnement du disque</h4>
J'ai choisi le mode manuel, puis j'ai cree 4 partitions:<br />
<br />
*Partition 1: 1MB (BOOT - <span style="background-color: yellow;"><span style="color: red;">format: biosgrub</span></span>, et non pas ext2/3/4)<br />
(Partition vide de 10 MB, au cas ou plus tard, je dois agrandir la partition boot)<br />
*Partition 2: 20 GB (ROOT - format: ext4)<br />
*Partition 3: 8.3 GB (SWAP)<br />
*Partition 4: max (HOME - format: ext4)<br />
<br />
Si vous comptez bien, il y a 5 partitions au total, dont un est vide.<br />
<br />
<div class="separator" style="clear: both; text-align: center;">
</div>
<div class="separator" style="clear: both; text-align: center;">
<a href="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEis3NdlGqeVO3tNyg5mYKr_xL5uJJ7WbQJBK3d8fLtorRtip4lt-EbeQpFgLa94EN9j35JCDmz1pfiffusQY1bufNwj2SlfVl2JkJlHqyKvGNucWV-bP3bDZaIVjmYElulA3tDnx26mZjg_/s1600/016.jpg" imageanchor="1" style="margin-left: 1em; margin-right: 1em;"><img border="0" height="117" src="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEis3NdlGqeVO3tNyg5mYKr_xL5uJJ7WbQJBK3d8fLtorRtip4lt-EbeQpFgLa94EN9j35JCDmz1pfiffusQY1bufNwj2SlfVl2JkJlHqyKvGNucWV-bP3bDZaIVjmYElulA3tDnx26mZjg_/s320/016.jpg" width="320" /></a></div>
<br />
<div class="separator" style="clear: both; text-align: center;">
<a href="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEhySjyAReIdq1TNwBvNDOZEtmLKtin_NzRLq4E_wHAcmF08bYErjtXKjwye_N5rLlqDgYB_UVKRFdZqCcShdHtuXef1Xa-asnrNIa7CQ1PZIrYtA2B1olfp0iacns95yVw7oMRMHaTUiE8_/s1600/015.jpg" imageanchor="1" style="margin-left: 1em; margin-right: 1em;"><img border="0" height="135" src="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEhySjyAReIdq1TNwBvNDOZEtmLKtin_NzRLq4E_wHAcmF08bYErjtXKjwye_N5rLlqDgYB_UVKRFdZqCcShdHtuXef1Xa-asnrNIa7CQ1PZIrYtA2B1olfp0iacns95yVw7oMRMHaTUiE8_/s320/015.jpg" width="320" /></a></div>
<br />
<div class="separator" style="clear: both; text-align: center;">
</div>
<br />
*Ma remarque peut sembler bete, mais n'oubliez pas que vous avez toujours votre clef USB branche a l'ordinateur, et que vous n'etes pas cense le formater!! A moins que ...<br />
<br />
<div class="separator" style="clear: both; text-align: center;">
</div>
<div class="separator" style="clear: both; text-align: center;">
<a href="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEiVOMr5FenegF7NvwDMyaBvgIWtsQBfrO2w3P_i7lQbJAWjCMdrF-TfEfZnI5SeLUDS-FTfXdEMAVPLuFMeVAb4UIUpjf9dKj8RR-Vdcu83RupzrsUfzPCMSca_Se_qHFMAdc0Ysy_9fuud/s1600/004.jpg" imageanchor="1" style="margin-left: 1em; margin-right: 1em;"><img border="0" height="104" src="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEiVOMr5FenegF7NvwDMyaBvgIWtsQBfrO2w3P_i7lQbJAWjCMdrF-TfEfZnI5SeLUDS-FTfXdEMAVPLuFMeVAb4UIUpjf9dKj8RR-Vdcu83RupzrsUfzPCMSca_Se_qHFMAdc0Ysy_9fuud/s320/004.jpg" width="320" /></a></div>
<br />
<div class="separator" style="clear: both; text-align: center;">
<a href="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEipsSNGFIvRjLw1iqw4VmTsWQeglIJYrCKsm_71TvmO2_NJjGHP3FJtH42HL3w-qk2GqpdGPi7gn56sw5R9tK9r1sJGqoxB8OHvQVOT-NQF0TeD0qH3wDPkJ2bALyN9e9T2Eh6i_F5N2tlz/s1600/003.jpg" imageanchor="1" style="margin-left: 1em; margin-right: 1em;"><img border="0" height="126" src="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEipsSNGFIvRjLw1iqw4VmTsWQeglIJYrCKsm_71TvmO2_NJjGHP3FJtH42HL3w-qk2GqpdGPi7gn56sw5R9tK9r1sJGqoxB8OHvQVOT-NQF0TeD0qH3wDPkJ2bALyN9e9T2Eh6i_F5N2tlz/s320/003.jpg" width="320" /></a></div>
<br />
<div class="separator" style="clear: both; text-align: center;">
</div>
<br />
Une remarque que m'a fait un ami, et que je trouve pertinente, c'est d'installer linux sur une carte SD. Il y a deux facon de le faire. Soit en replacant le lecteur CD directement par un disque SSD, soit en branchant sur le cote une carte SSD de tres bonne qualite, et avec 60 Go d'espace disque au minimum.<br />
<br />
<h4>
4. Installation des differents paquets. </h4>
Si vous ne savez pas encore ce que vous voulez avoir exactement sur votre ordinateur, je vous propose d'accepter tous les paquets sans exception pour vous simplifier la tache. Et surtout qu'il n'y en a pas tant que ca, et que vous pouvez vous debrouiller pour les supprimer plus tard s'il le faut.<br />
<br />
<div class="separator" style="clear: both; text-align: center;">
<a href="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEhkefYJEcpdeuw57ZRYAkX2-R0ny88zmx14w8kKlwhUT7mUkz2O6klkNKdyMZszolAbklnwdySDt4VDcWj7rIwTBPMxJN1zJW7dJtJj1-7WncPR4aC7Sqwh6j-GbPpF2miqHp4ac9j4GCB5/s1600/012.jpg" imageanchor="1" style="margin-left: 1em; margin-right: 1em;"><img border="0" height="290" src="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEhkefYJEcpdeuw57ZRYAkX2-R0ny88zmx14w8kKlwhUT7mUkz2O6klkNKdyMZszolAbklnwdySDt4VDcWj7rIwTBPMxJN1zJW7dJtJj1-7WncPR4aC7Sqwh6j-GbPpF2miqHp4ac9j4GCB5/s320/012.jpg" width="320" /></a></div>
<div class="separator" style="clear: both; text-align: center;">
</div>
<br />
Pour les pilotes necessaire a Initrd, je n'ai pas essaye de verifier l'option "targeted", avec des pilotes bien specifiques au systeme, si le noyau arrive a demarrer ou non. Il ne devrait pas y avoir de probleme, mais je n'ai pas assez de temps pour faire le test.<br />
<br />
<div class="separator" style="clear: both; text-align: center;">
<a href="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEgXQPcH6cBDBki8US5sC36jHKI4vAKvU0crgtCyOaMmXShdCuhMmYL96MGdNaUIRnO2Mo-IbF29v6HFKLR_9PUHM83dY6nqofrfhMghbmmG0FqGtklkh8BZO0_LJ65_KHt7kgJ5dRrNImjf/s1600/011.jpg" imageanchor="1" style="margin-left: 1em; margin-right: 1em;"><img border="0" height="108" src="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEgXQPcH6cBDBki8US5sC36jHKI4vAKvU0crgtCyOaMmXShdCuhMmYL96MGdNaUIRnO2Mo-IbF29v6HFKLR_9PUHM83dY6nqofrfhMghbmmG0FqGtklkh8BZO0_LJ65_KHt7kgJ5dRrNImjf/s320/011.jpg" width="320" /></a></div>
<div class="separator" style="clear: both; text-align: center;">
</div>
<br />
Ici pareil, d'apres la description, si vous n'avez pas une bonne connection internet, mieux vaut se passer de l'utilisation d'un mirroir pour l'installation.<br />
<br />
<div class="separator" style="clear: both; text-align: center;">
</div>
<div class="separator" style="clear: both; text-align: center;">
<a href="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEhmDpCrQ5CNCNjIrkcKvvhFtVHV3X7tEjf1Yd5vWhKUWN2ZOBuspyZjwCXQ6F3-CJRVsMdNbNQ8rmWyZi7OLVgkM4kLDB20-Ah574TF2d1FZMiICii7FVOIDmyR26hY70HgWva4cNN5f-cm/s1600/010.jpg" imageanchor="1" style="margin-left: 1em; margin-right: 1em;"><img border="0" height="104" src="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEhmDpCrQ5CNCNjIrkcKvvhFtVHV3X7tEjf1Yd5vWhKUWN2ZOBuspyZjwCXQ6F3-CJRVsMdNbNQ8rmWyZi7OLVgkM4kLDB20-Ah574TF2d1FZMiICii7FVOIDmyR26hY70HgWva4cNN5f-cm/s320/010.jpg" width="320" /></a></div>
<div class="separator" style="clear: both; text-align: center;">
</div>
<br />
Moi je ne suis pas un puriste. Il me faut certains logiciels proprietaires sur mon ordinateur. C'est un choix personnel ;).<br />
<br />
<div class="separator" style="clear: both; text-align: center;">
<a href="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEh-go4S5QlnnS8-I9Jo0DqwVegY15R7eQoPikxxp2HYGuAJLd11G3l9nhMAY0H5YJAebFRLqxvcHXxg09bJj6qD3wCBFErRnPIYYh7Ack7NqgLK3Ql119KHjX8CdL1wj5M_W7SY36Lsv3hU/s1600/009.jpg" imageanchor="1" style="margin-left: 1em; margin-right: 1em;"><img border="0" height="77" src="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEh-go4S5QlnnS8-I9Jo0DqwVegY15R7eQoPikxxp2HYGuAJLd11G3l9nhMAY0H5YJAebFRLqxvcHXxg09bJj6qD3wCBFErRnPIYYh7Ack7NqgLK3Ql119KHjX8CdL1wj5M_W7SY36Lsv3hU/s320/009.jpg" width="320" /></a></div>
<div class="separator" style="clear: both; text-align: center;">
</div>
<br />
Et meme parfois, il me faut des <a href="https://wiki.debian.org/fr/Backports">logiciels un peu plus a jour</a>, par rapport a ceux installe sur une Debian stable. Pour rappel, la Debian stable vient juste de sortir, mais les logiciels qui y sont installes seront loin d'etre a jour d'ici quelques mois, et pire encore dans quelques annees. Cependant, avoir la derniere version d'un logiciel peut etre a double tranchant pour votre systeme. Mais ca ne devrait pas vous poser de problemes si vous savez ce que vous faites.<br />
<br />
<blockquote class="tr_bq">
Une petite note hors sujet, mais on recontre regulierement cette situation ou un utilisateur ayant utilise un OS derive de Debian (Ubuntu, Mint, etc.), pensent que les deux systemes sont compatibles. Et c'est FAUX. </blockquote>
<blockquote class="tr_bq">
Les paquets de Debian peuvent etre compatible avec ceux de l'un des systemes filles. Par contre, l'inverse n'est pas vrai du tout.<br />
<br />
<span style="color: red;">Debian, Ubuntu, Mint, et autre derive de Debian, sont des systemes d'exploitation independants. Ils ne partagent pas les meme depots.</span> </blockquote>
<blockquote class="tr_bq">
<span style="color: red;">N'utilisez jamais de paquets d'un autre depot, autre que ceux proposes dans les <span style="background-color: yellow;">depots <b><span style="background-color: yellow;">o</span>fficiels</b></span> de Debian, si vous ne souhaitez pas avoir des problemes avec votre systeme.</span></blockquote>
<br />
<br />
<div class="separator" style="clear: both; text-align: center;">
<a href="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEjc7bSKPGEkT_zAMW6fWeHTwl-6NK8aiQyXx4iodSsOUf0fZBar2WOkpJPosiSMLevYNP1HCPS6TgHI5w7bqbVJBaNSsMunJc_8rvh_8A2HvCO96VYwn5aaGvnxMKfgBCa46ADMnwpVAt75/s1600/008.jpg" imageanchor="1" style="margin-left: 1em; margin-right: 1em;"><img border="0" height="157" src="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEjc7bSKPGEkT_zAMW6fWeHTwl-6NK8aiQyXx4iodSsOUf0fZBar2WOkpJPosiSMLevYNP1HCPS6TgHI5w7bqbVJBaNSsMunJc_8rvh_8A2HvCO96VYwn5aaGvnxMKfgBCa46ADMnwpVAt75/s320/008.jpg" width="320" /></a></div>
<div class="separator" style="clear: both; text-align: center;">
</div>
<br />
Ici aussi, c'est un choix personnel de vouloir partager a l'equipe des developpeurs, comment j'utilise ce systeme! Si vous aimez les stats, c'est <a href="http://popcon.debian.org/">ici</a> qu'ils rassemblent toutes les donnees receuillies.<br />
<br />
<div class="separator" style="clear: both; text-align: center;">
<a href="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEjQ6RTreOAhUdRjcm-Q_jJRqa1bhKeYMgEBOVoNgUSZZXeN0f_tCDEnbZyZAOd_etbH3rkhtRGZGL1FCiNqOzKZ1p91YaPkkbjyYY_JzMs-elHnnLQdjqqSv9Dafh-BPmH1MaI2S4Y2ugGf/s1600/007.jpg" imageanchor="1" style="margin-left: 1em; margin-right: 1em;"><img border="0" height="103" src="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEjQ6RTreOAhUdRjcm-Q_jJRqa1bhKeYMgEBOVoNgUSZZXeN0f_tCDEnbZyZAOd_etbH3rkhtRGZGL1FCiNqOzKZ1p91YaPkkbjyYY_JzMs-elHnnLQdjqqSv9Dafh-BPmH1MaI2S4Y2ugGf/s320/007.jpg" width="320" /></a></div>
<div class="separator" style="clear: both; text-align: center;">
</div>
<br />
<h4>
5. Installation de l'environnement de bureau</h4>
On arrive presque au bout du tunnel. J'ai fais le choix d'installer <b>Cinnamon</b>, puisque ce dernier convient le mieux a mes criteres qui sont:<br />
<br />
<blockquote class="tr_bq">
- Environnement de bureau leger<br />
- Minimum de recherche et de bidouillage pour pouvoir utiliser les differentes touches speciales du Mac, et plus particulierement les touches F1 et F2 pour gerer l'eclairage de l'ecran.</blockquote>
<br />
<div class="separator" style="clear: both; text-align: center;">
<a href="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEggh62IxrmRsDGtjcXS-MQ2_2FVDq0rkw2ZIpPPxL2PhnOYi4_Em9JHZJv0A0RGDKhxLhCBRakJAY3YvhwYAu7_YUwe6dw9Bvs9hxbJQGo68VtirmLmQUNCpuaLToVOrqaXfl6UsJ9BlsgH/s1600/006.jpg" imageanchor="1" style="margin-left: 1em; margin-right: 1em;"><img border="0" height="137" src="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEggh62IxrmRsDGtjcXS-MQ2_2FVDq0rkw2ZIpPPxL2PhnOYi4_Em9JHZJv0A0RGDKhxLhCBRakJAY3YvhwYAu7_YUwe6dw9Bvs9hxbJQGo68VtirmLmQUNCpuaLToVOrqaXfl6UsJ9BlsgH/s320/006.jpg" width="320" /></a></div>
<div class="separator" style="clear: both; text-align: center;">
</div>
<br />
En gros, il me faut quelque chose qui est compatible 'out-of-the-box' avec un Macbook.<br />
<br />
<h4>
6. Installation du bootloader (chargeur de demarrage) </h4>
Ici on vous demande si vous voulez installer le GRUB dans le MBR.<br />
<br />
<div class="separator" style="clear: both; text-align: center;">
<a href="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEiDpw_FFCQlyUbcIDjHKVFn9nkPyTjzCIOrxjflzbilu7SdXZ-yQRniYH0aTSjcXfK4nEmQzgG7a3BPU8PRHhpfHioYemE6GGuH0iHmXtEGkLlPnMoVFiMI-u-2cwMXiIsgZx3RL5DHEdg8/s1600/005.jpg" imageanchor="1" style="margin-left: 1em; margin-right: 1em;"><img border="0" height="92" src="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEiDpw_FFCQlyUbcIDjHKVFn9nkPyTjzCIOrxjflzbilu7SdXZ-yQRniYH0aTSjcXfK4nEmQzgG7a3BPU8PRHhpfHioYemE6GGuH0iHmXtEGkLlPnMoVFiMI-u-2cwMXiIsgZx3RL5DHEdg8/s320/005.jpg" width="320" /></a></div>
<div class="separator" style="clear: both; text-align: center;">
</div>
<br />
Comme je l'ai precise plus haut, n'oubliez pas que vous avez toujours la clef USB branche sur votre ordinateur, dans la partition /dev/sdc. Et comme, le bootloader, je dois l'installer sur la premiere partition disponible, je n'ai pas d'autre choix que de prendre /dev/sda.<br />
<br />
<div class="separator" style="clear: both; text-align: center;">
<a href="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEiVOMr5FenegF7NvwDMyaBvgIWtsQBfrO2w3P_i7lQbJAWjCMdrF-TfEfZnI5SeLUDS-FTfXdEMAVPLuFMeVAb4UIUpjf9dKj8RR-Vdcu83RupzrsUfzPCMSca_Se_qHFMAdc0Ysy_9fuud/s1600/004.jpg" imageanchor="1" style="margin-left: 1em; margin-right: 1em;"><img border="0" height="104" src="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEiVOMr5FenegF7NvwDMyaBvgIWtsQBfrO2w3P_i7lQbJAWjCMdrF-TfEfZnI5SeLUDS-FTfXdEMAVPLuFMeVAb4UIUpjf9dKj8RR-Vdcu83RupzrsUfzPCMSca_Se_qHFMAdc0Ysy_9fuud/s320/004.jpg" width="320" /></a></div>
<div class="separator" style="clear: both; text-align: center;">
</div>
<br />
J'espere que vous avez lu cet article en entier avant de vous lancer comme un bourrin avec le formatage de votre disque, puis ensuite l'installation de linux! Si tel est le cas, vous devriez certaintement vous poser la question de ce que vous devrez faire a ce niveau.<br />
<br />
Si je m'arrete un peux a ce point, c'est qu'en general,
lorsqu'on vous propose un tutoriel pour installer linux sur votre Mac,
ce qu'il revient souvent c'est comment le faire en dual/triple boot.
Cela implique qu'il vous faut installer un boot manager comme <a href="http://refit.sourceforge.net/">rEFIt</a> ou <a href="http://sourceforge.net/projects/refind/">rEFInd</a> dans la partition Mac OS.<br />
<br />
Cependant, si vous avez ete attentif depuis le debut, je ne vous ai pas parle de cet alternative puisque l'on va supprimer definitivement par partition Mac OS, par contre je vous ai conseille d'avoir le CD d'install original. Je vais vous expliquer un peu plus loin les raisons a cela.<br />
<br />
<div class="separator" style="clear: both; text-align: center;">
<a href="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEipsSNGFIvRjLw1iqw4VmTsWQeglIJYrCKsm_71TvmO2_NJjGHP3FJtH42HL3w-qk2GqpdGPi7gn56sw5R9tK9r1sJGqoxB8OHvQVOT-NQF0TeD0qH3wDPkJ2bALyN9e9T2Eh6i_F5N2tlz/s1600/003.jpg" imageanchor="1" style="margin-left: 1em; margin-right: 1em;"><img border="0" height="126" src="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEipsSNGFIvRjLw1iqw4VmTsWQeglIJYrCKsm_71TvmO2_NJjGHP3FJtH42HL3w-qk2GqpdGPi7gn56sw5R9tK9r1sJGqoxB8OHvQVOT-NQF0TeD0qH3wDPkJ2bALyN9e9T2Eh6i_F5N2tlz/s320/003.jpg" width="320" /></a></div>
<div class="separator" style="clear: both; text-align: center;">
</div>
<br />
<br />
<h4>
7. Re-demarrage du systeme</h4>
C'est le moment fatidique qui vous dira que vous avez bien travaille ou non.<br />
<br />
<div class="separator" style="clear: both; text-align: center;">
</div>
<div class="separator" style="clear: both; text-align: center;">
<a href="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEiXTtVJSdSWAofp8jW3Nuw4B7BaiLwyat6rO3ldNmadUhh17mP1e_Rcq588f3OngEkvOertE1Dz1vEilVbQodUu_50Mr1-NPHSzuNfuY2UiKvomnuGF_NFKQRnPjI0xs_7xZVo1k93ii61h/s1600/002.jpg" imageanchor="1" style="margin-left: 1em; margin-right: 1em;"><img border="0" height="208" src="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEiXTtVJSdSWAofp8jW3Nuw4B7BaiLwyat6rO3ldNmadUhh17mP1e_Rcq588f3OngEkvOertE1Dz1vEilVbQodUu_50Mr1-NPHSzuNfuY2UiKvomnuGF_NFKQRnPjI0xs_7xZVo1k93ii61h/s320/002.jpg" width="320" /></a></div>
<br />
<div class="separator" style="clear: both; text-align: center;">
<a href="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEjE14oZrqqZk14dIAGowleAOoRoWy8R0nT7CXGd2UtwNEX31c2Aq8hVp3M4gHN6ifml0BFRBHFxfx3-SDf3rS9PIUoO50v5FisppSrUVM66VRUSeKZs1mXstAKFmQZBJRq6pDI9a1460I_k/s1600/001.jpg" imageanchor="1" style="margin-left: 1em; margin-right: 1em;"><img border="0" height="208" src="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEjE14oZrqqZk14dIAGowleAOoRoWy8R0nT7CXGd2UtwNEX31c2Aq8hVp3M4gHN6ifml0BFRBHFxfx3-SDf3rS9PIUoO50v5FisppSrUVM66VRUSeKZs1mXstAKFmQZBJRq6pDI9a1460I_k/s320/001.jpg" width="320" /></a></div>
<br />
<div class="separator" style="clear: both; text-align: center;">
</div>
<div class="separator" style="clear: both; text-align: center;">
</div>
<div class="separator" style="clear: both; text-align: center;">
</div>
<br />
Et voila! On est arrive au bout du tunnel, mais ce n'est pas tout. Dans un prochain article, je vais vous parler de ce qu'on peut ameliorer sur notre machine afin d'avoir quelque chose de beaucoup plus agreable a utiliser.<br />
<br />
<div class="separator" style="clear: both; text-align: center;">
</div>
<div class="separator" style="clear: both; text-align: center;">
</div>
<div class="separator" style="clear: both; text-align: center;">
</div>
<div class="separator" style="clear: both; text-align: center;">
</div>
<div class="separator" style="clear: both; text-align: center;">
</div>
<div class="separator" style="clear: both; text-align: center;">
</div>
<div class="separator" style="clear: both; text-align: center;">
</div>
<div class="separator" style="clear: both; text-align: center;">
</div>
<br />
<br />
<br />MaLaGasyhttp://www.blogger.com/profile/13615587620409404188noreply@blogger.com0tag:blogger.com,1999:blog-5261147620476854545.post-65788208049906905892014-05-11T15:20:00.001-07:002014-05-11T15:22:24.129-07:00II. Ubuntu/Debian: Installation et configuration d'un Server LAMP - Suite et Fin<div class="separator" style="clear: both; text-align: center;">
</div>
<h2>
III. Quelques messages d'erreur</h2>
<br />
<h3>
1. Problème d'identification du nom de domaine</h3>
<h3>
</h3>
<h4>
<span style="background-color: #cfe2f3;"><span style="color: purple;"><i>AH00558: apache2: Could not reliably determine the server's fully qualified domain name, using 127.0.1.1. Set the 'ServerName' directive globally to suppress this message</i></span></span></h4>
<br />
Ceci n'est pas message d'erreur, mais juste un message d'avertisement qui nous dit qu'Apache ne peut pas identifier le <a href="https://fr.wikipedia.org/wiki/Fully_qualified_domain_name">nom de domaine</a> du server.<br />
<br />
Pour y remedier, ajouter 'ServerName localhost' en fin de texte dans le fichier de configuration de Apache /etc/apache2/apache2.conf<br />
<br />
<br />
<div class="separator" style="clear: both; text-align: center;">
<a href="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEjmy-4R62UPleYhB5rVUZ0EppamsjWO_6h4jkcuYmNm5SBZHCdFtfrfiDg1iFpl1slhsVJvgdcMmJEfDecDf-4ZslfHpS3yGlqyxfAz_36YJTf6whmrMl6qF8Ro28bUIWvAb3ry0N59Ko9r/s1600/apache2Conf.JPG" imageanchor="1" style="margin-left: 1em; margin-right: 1em;"><img border="0" src="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEjmy-4R62UPleYhB5rVUZ0EppamsjWO_6h4jkcuYmNm5SBZHCdFtfrfiDg1iFpl1slhsVJvgdcMmJEfDecDf-4ZslfHpS3yGlqyxfAz_36YJTf6whmrMl6qF8Ro28bUIWvAb3ry0N59Ko9r/s1600/apache2Conf.JPG" height="212" width="400" /></a></div>
<br />
<br />
Notez bien que l'on peut retrouver les messages d'erreur du serveur Apache dans les logs, /var/log/apache2/error.log<br />
<br />
Sources:<br />
<a href="http://www.garron.me/en/bits/apache2-could-not-reliably-determine-fully-qualified-ServerName.html">Could not reliably determine the server's fully qualified domain name, using 127.0.1.1 for ServerName</a><br />
<a href="http://superuser.com/questions/627441/recent-apache2-update-broke-virtual-host-and-new-error-on-restart-or-starting">Recent Apache2 update broke virtual host and New Error on restart or starting</a><br />
<br />
<h3>
2. Problème de configuration de phpMyAdmin avec Apache</h3>
<h3>
</h3>
<h4>
<span style="color: purple;"><span style="background-color: #cfe2f3;">The requested URL /phpmyadmin was not found on this server.</span></span></h4>
<br />
<div class="separator" style="clear: both; text-align: center;">
<a href="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEjnZS2mpLuafpF0f3IPmYY6d0QWB7ye7QAcRf6hkonctGrfhSGHqopXq0B0xlgueN9NDqtGUGfYgpG74iogkfgKL-T8g0PfpbuPSKaZVQgT4KI2-CnwZgcfBam4UyD6RZmGtzk1ofpC37qM/s1600/phpadminnotfound.JPG" imageanchor="1" style="margin-left: 1em; margin-right: 1em;"><img border="0" src="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEjnZS2mpLuafpF0f3IPmYY6d0QWB7ye7QAcRf6hkonctGrfhSGHqopXq0B0xlgueN9NDqtGUGfYgpG74iogkfgKL-T8g0PfpbuPSKaZVQgT4KI2-CnwZgcfBam4UyD6RZmGtzk1ofpC37qM/s1600/phpadminnotfound.JPG" height="216" width="400" /></a></div>
<br />
C'est tout a fait normal vu que je n'ai choisi aucun serveur associé à phpmyadmin lors de l'installation de ce dernier. Reconfigurons donc phpmyadmin.<br />
<br />
<span style="color: yellow;">sudo dpkg-reconfigure phpmyadmin</span><br />
<br />
<div class="separator" style="clear: both; text-align: center;">
<a href="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEi9hT8DHADzHPAG7cK2lTXIJUNdxv2sPgXhQ7xrFLevKjB-rbOMDLZYWIFap8fO9Ng3PSaxb3WZLx5Ie5uOoz3J6w8NennUL40a2bQ9-m61zZBm2ogSiCNb3DnFbOmxKtokxM1gTcQRpiUB/s1600/reinstallphpmyadmin.JPG" imageanchor="1" style="margin-left: 1em; margin-right: 1em;"><img border="0" src="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEi9hT8DHADzHPAG7cK2lTXIJUNdxv2sPgXhQ7xrFLevKjB-rbOMDLZYWIFap8fO9Ng3PSaxb3WZLx5Ie5uOoz3J6w8NennUL40a2bQ9-m61zZBm2ogSiCNb3DnFbOmxKtokxM1gTcQRpiUB/s1600/reinstallphpmyadmin.JPG" height="225" width="400" /></a></div>
<br />
<div class="separator" style="clear: both; text-align: center;">
<a href="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEjSKdQK_Ref-kq5qTSDiGczhtCvXUNPuaPNxznKeDSgNotqMIstaXfkenubGK8luB5ypqH74iL_6XhQA7L1JaF1G2yx-OhEXspftXLNS6BzfikkIrFPXLHsusgo5U6mE94mfh6NvFCEOPIp/s1600/phpmyadminError.JPG" imageanchor="1" style="margin-left: 1em; margin-right: 1em;"><img border="0" src="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEjSKdQK_Ref-kq5qTSDiGczhtCvXUNPuaPNxznKeDSgNotqMIstaXfkenubGK8luB5ypqH74iL_6XhQA7L1JaF1G2yx-OhEXspftXLNS6BzfikkIrFPXLHsusgo5U6mE94mfh6NvFCEOPIp/s1600/phpmyadminError.JPG" height="231" width="400" /></a></div>
<br />
<br />
<br />
Une autre option, si on ne souhaite pas reconfigurer phpmyadmin, serait d'ajouter 'Include /etc/phpmyadmin/apache.conf' a la fin du fichier /etc/apache2/apache2.conf <br />
<br />
Sources:<br />
<a href="http://stackoverflow.com/questions/8868790/localhost-or-phpmyadmin-not-found-on-server-how-to-fix">Localhost or phpMyAdmin not found on server: How to fix?</a><br />
<a href="http://askubuntu.com/questions/55280/phpmyadmin-is-not-working-after-i-installed-it">phpmyadmin is not working after I installed it</a><br />
<br />
<h3>
3. Accès à phpMyAdmin sans mot de passe</h3>
<h3>
</h3>
<div class="separator" style="clear: both; text-align: center;">
</div>
<h4>
<span style="color: purple;"><span style="background-color: #cfe2f3;">Login without a password is forbidden by configuration</span></span></h4>
<br />
<div class="separator" style="clear: both; text-align: center;">
<a href="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEhEVRqI9BfDufh3QhZ8y60fQFHvETpqSMqPIUmcwczyNxSvvh7ZTNZq2dPAUWLbE5yU86w3cC8yMrVPQQRQDK50pdNX1qPftq12cKUrRU6kxMGkFli_54cBns33DcyyU6ZF5YOt3mwa-f-g/s1600/phpmyadminpassword.JPG" imageanchor="1" style="margin-left: 1em; margin-right: 1em;"><img border="0" src="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEhEVRqI9BfDufh3QhZ8y60fQFHvETpqSMqPIUmcwczyNxSvvh7ZTNZq2dPAUWLbE5yU86w3cC8yMrVPQQRQDK50pdNX1qPftq12cKUrRU6kxMGkFli_54cBns33DcyyU6ZF5YOt3mwa-f-g/s1600/phpmyadminpassword.JPG" height="400" width="303" /></a></div>
<br />
<br />
Et oui, je fais mon rebel, puisqu'il le faut de temps en temps pour ne pas s'ennuyer .. ce serveur n'est utilise qu'en local, pour m'entrainer au language php, donc je me suis permis de ne pas mettre de mot de passe pour acceder a phpmyadmin, ce qui est fortement deconseille.<br />
<br />
Pour se connecter dans phpmyadmin sans mot de passe, il suffit d'editer le fichier<br />
<br />
<span style="color: blue;"><span style="background-color: yellow;">/etc/phpmyadmin/config.inc.php</span></span><br />
<br />
Puis de decommenter la ligne '<span style="color: red;"><span style="background-color: yellow;">$cfg['Servers'][$i]['AllowNoPassword'] = TRUE;</span></span>' <br />
<br />
<br />
<div class="separator" style="clear: both; text-align: center;">
<a href="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEiwWCIhPH3a5_X_N7Sd8ERsVMkixdn6e201atVmSl_l4bpKt69Z6gxJQDQbzj25g36RrBYYLxsIS-4F5yMob7Y8W2k7QUkr5ggJrxdv4mnbe3ol-uv_j433hS6_ITUAfq4ERj5DeIzKT0ax/s1600/loginphpmyadminResolution.JPG" imageanchor="1" style="margin-left: 1em; margin-right: 1em;"><img border="0" src="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEiwWCIhPH3a5_X_N7Sd8ERsVMkixdn6e201atVmSl_l4bpKt69Z6gxJQDQbzj25g36RrBYYLxsIS-4F5yMob7Y8W2k7QUkr5ggJrxdv4mnbe3ol-uv_j433hS6_ITUAfq4ERj5DeIzKT0ax/s1600/loginphpmyadminResolution.JPG" height="121" width="400" /></a></div>
<br />
Source;<br />
<a href="http://docs.oseems.com/general/web/phpmyadmin/enable-login-without-password">How to login without password in phpMyAdmin </a><br />
<br />
<br />
<h2>
VI. Notes supplementaires</h2>
<h3>
1. Afficher les erreurs php</h3>
<br />
Ce qui serait intéressant, lorsqu'on commence à programmer en PHP, c'est d'avoir les messages d'erreur qui s'affiche dans le navigateur. Pour ce faire, il faut editer le fichier <span style="color: red;"><span style="background-color: yellow;">/etch/php5/apache2</span></span>, et de modifier la valeur comme suit: '<span style="color: red;">display_errors = On</span>'.<br />
<br />
<br />
<div class="separator" style="clear: both; text-align: center;">
<a href="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEhvKQ76gW-PNeaZZlgmDXDcvon5IwOYbLLukKo5shPbny8YM3dFkHkuqsBAR_5EUz1NqXjY4Am-AHOxM78wYWSMb77VS6FEB42qh0SFHLhweMXlrgoroI1wEtps6DHCYeNaFRYiUSicWUjw/s1600/Selection_001.png" imageanchor="1" style="margin-left: 1em; margin-right: 1em;"><img border="0" src="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEhvKQ76gW-PNeaZZlgmDXDcvon5IwOYbLLukKo5shPbny8YM3dFkHkuqsBAR_5EUz1NqXjY4Am-AHOxM78wYWSMb77VS6FEB42qh0SFHLhweMXlrgoroI1wEtps6DHCYeNaFRYiUSicWUjw/s1600/Selection_001.png" height="297" width="400" /></a></div>
<br />
<br />
Encore une fois, ceci est une machine pour faire des tests, et qu'il est recommande de garder l'option en '<span style="color: red;">display_errors = Off</span>'.<br />
<br />
Pour afficher les messages d'erreur avec un server MAMP (dans LAMP, il n'y a aucun message d'erreur qui s'affiche, de ce fait j'ai choisi l'option ci-dessus), il suffit d'ajouter le code ci-dessous sur chacune des pages php:<br />
<br />
<blockquote class="tr_bq">
<span style="color: orange;">// Afficher les erreurs à l'écran</span><br /><span style="color: yellow;">ini_set('display_errors', 1);</span><br /><span style="color: orange;">// Enregistrer les erreurs dans un fichier de log</span><br /><span style="color: yellow;">ini_set('log_errors', 1);</span><br /><span style="color: orange;">// Nom du fichier qui enregistre les logs (attention aux droits à l'écriture)</span><br /><span style="color: yellow;">ini_set('error_log', dirname(__file__) . '/log_error_php.txt');</span><br /><span style="color: orange;">// Afficher les erreurs et les avertissements</span><br /><span style="color: yellow;">error_reporting(e_all);</span></blockquote>
<pre class="php"><pre class="php"></pre>
</pre>
<div class="code">
<pre class="php"></pre>
</div>
<br />
<div class="separator" style="clear: both; text-align: center;">
<a href="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEhCO2ygnS6fm7pWSniOsERymhkJ7Udu2WUCdGYfnSgEomSz0Slq0-M5R7HMtf97dfORkTEqnwHmKUp2p-kJvS4cc9PsKEnnbic5JrzZ13Vila57AhuCF7qygjAnl9ngoT3vk2R82k9uY7Zj/s1600/Selection_002.png" imageanchor="1" style="margin-left: 1em; margin-right: 1em;"><img border="0" src="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEhCO2ygnS6fm7pWSniOsERymhkJ7Udu2WUCdGYfnSgEomSz0Slq0-M5R7HMtf97dfORkTEqnwHmKUp2p-kJvS4cc9PsKEnnbic5JrzZ13Vila57AhuCF7qygjAnl9ngoT3vk2R82k9uY7Zj/s1600/Selection_002.png" height="381" width="400" /></a></div>
<br />
<br />
Source:<br />
<a href="http://www.infowebmaster.fr/tutoriel/afficher-erreur-php">Afficher les erreurs PHP</a><br />
<br />
<br />
<h3>
2. Edition des éléments d'une table dans MySQL</h3>
<br />
Voici les deux types de messages que j'ai rencontrés: <br />
<br />
<div class="separator" style="clear: both; text-align: center;">
<a href="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEg-PFQsxHcwRJ66_NpYVrc63erDp_iNHE5cal0Bv6fqP5La4w3z3X4jHmkDXAYH4owYqFqfcEycTz8qY1hP7tEVf7WQc_Pu0cDVvFyzQoXEcQcdfMVjRKbnx9udDlnvo-wWxzh4YqYTZXY/s1600/Screen+Shot+2014-04-19+at+18.45.41.png" style="margin-left: 1em; margin-right: 1em;"><img border="0" src="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEg-PFQsxHcwRJ66_NpYVrc63erDp_iNHE5cal0Bv6fqP5La4w3z3X4jHmkDXAYH4owYqFqfcEycTz8qY1hP7tEVf7WQc_Pu0cDVvFyzQoXEcQcdfMVjRKbnx9udDlnvo-wWxzh4YqYTZXY/s1600/Screen+Shot+2014-04-19+at+18.45.41.png" /></a></div>
<br />
Ou encore:<br />
<br />
<div class="separator" style="clear: both; text-align: center;">
<a href="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEibE-DZ7mHsHvxsbwdfUxj7fyGT-uvxciuTbRdMt8yl_eyPWpJT6YosurgWF-NVHd3oEXQpArhICk42e2Z-jE6anrPJ6Gspflh0oxz2hgqI24y8H4S2Ez06ckXpxwdYwTjVC7yAPwm8BYHn/s1600/Selection_003.png" imageanchor="1" style="margin-left: 1em; margin-right: 1em;"><img border="0" src="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEibE-DZ7mHsHvxsbwdfUxj7fyGT-uvxciuTbRdMt8yl_eyPWpJT6YosurgWF-NVHd3oEXQpArhICk42e2Z-jE6anrPJ6Gspflh0oxz2hgqI24y8H4S2Ez06ckXpxwdYwTjVC7yAPwm8BYHn/s1600/Selection_003.png" height="206" width="400" /></a></div>
<br />
<br />
Pour y remedier, il faut editer 'Columns', cliquer sur 'primary' (en general, c'est au niveau du champs qui s'auto-incremente), puis de valider par 'OK'.<br />
<br />
<div class="separator" style="clear: both; text-align: center;">
<a href="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEgDNX798EZDflrzh5H63zjpwprhVbTV6LtYcvvW3L-5mkn7SPH_jCaUNJ1WxRghVCdWWzO7zqkoa-PInh3pGKmsxmgB5jv1tgj0pUiI-VJvkPRyPL7n3gaONC__cLJLXcEcGKLUGSl7Ic8/s1600/Screen+Shot+2014-04-19+at+18.48.44.png" style="margin-left: 1em; margin-right: 1em;"><img border="0" src="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEgDNX798EZDflrzh5H63zjpwprhVbTV6LtYcvvW3L-5mkn7SPH_jCaUNJ1WxRghVCdWWzO7zqkoa-PInh3pGKmsxmgB5jv1tgj0pUiI-VJvkPRyPL7n3gaONC__cLJLXcEcGKLUGSl7Ic8/s1600/Screen+Shot+2014-04-19+at+18.48.44.png" height="90" width="400" /></a></div>
<br />
<br />
Et voila, tout devrait etre bon maintenant.<br />
<br />
<div class="separator" style="clear: both; text-align: center;">
<a href="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEiXBW3An0E2NqQbAXEdrdXWCQAOk4m3SagWmkWVvFxEARjBHutXMQRNxVIz2vAiuT6cge89GEUDbjvharzdHAkX3irbrlHoJvpImF8BrXijraAtBbFHt80gwXYW4GtKyJt1ZZK5dzHkMG-M/s1600/Selection_004.png" imageanchor="1" style="margin-left: 1em; margin-right: 1em;"><img border="0" src="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEiXBW3An0E2NqQbAXEdrdXWCQAOk4m3SagWmkWVvFxEARjBHutXMQRNxVIz2vAiuT6cge89GEUDbjvharzdHAkX3irbrlHoJvpImF8BrXijraAtBbFHt80gwXYW4GtKyJt1ZZK5dzHkMG-M/s1600/Selection_004.png" height="155" width="400" /></a></div>
<br />
<br />
Source:<br />
<a href="http://forum.sa-mp.com/showthread.php?t=495458"> Scripting Help>phpMyAdmin</a><br />
<a href="https://support.vpsget.com/index.php?/Knowledgebase/Article/View/29/4/mysql-phpmyadmin-error--this-table-does-not-contain-a-unique-column">mySQL (phpMyAdmin) error : This table does not contain a unique column</a><br />
<a href="http://www.php-forum.com/phpforum/viewtopic.php?f=12&t=24168">This table does not contain a unique column.</a><br />
<br />
<h3>
3. MOOC: Massive Open Online Curses</h3>
Pour cloturer cette documentation, voici une petite Liste de MOOCs pour suivre des cours de HTML5, CSS, PHP, JavaScript, etc. Il y en a d'autre sur internet en faisant des petites recherches.<br />
<br />
<a href="http://fr.openclassrooms.com/mooc/apprenez-a-creer-votre-site-web-avec-html5-et-css3">Apprenez à créer votre site web avec HTML5 / CSS3</a><br />
<a href="http://fr.openclassrooms.com/mooc/concevez-votre-site-web-avec-php-et-mysql">Concevez votre site web avec PHP et MySQL</a> <br />
<a href="https://www.fun-mooc.fr/courses/groupeinsa/13001/Trimestre_2_2014/about">Introduction à HTML5 - Animations et jeux </a><br />
<br />MaLaGasyhttp://www.blogger.com/profile/13615587620409404188noreply@blogger.com0tag:blogger.com,1999:blog-5261147620476854545.post-91696271871982875732014-05-11T14:25:00.000-07:002014-05-12T03:18:47.008-07:00I. Ubuntu/Debian: Installation et configuration d'un Server LAMPAvant de commencer cet article, je tiens a preciser que j'ai installe ce server LAMP dans le but de pouvoir suivre les cours sur le language PHP. Les manipulations ci-dessous sont des manipulations basiques pour Ubuntu 13.10 et 14.04, et non optimise pour un server en production.<br />
<br />
<h1>
I. Preparation du server LAMP</h1>
<br />
On va commencer par installer tout betement les paquets necessaire au server LAMP (Linux, Apache, MySQL and PHP):<br />
<br />
<pre class="code bash"><span style="color: yellow;"><span class="kw2">sudo</span> <span class="kw2">apt-get install</span> apache2 php5 mysql-server libapache2-mod-php5 php5-mysql</span></pre>
<br />
Puis configurer le répertoire de travail. (Je reprends ici toutes les manipulation proposees dans la <a href="http://doc.ubuntu-fr.org/lamp">documentation de Ubuntu</a>, mais en y rajoutant ma petite touche personne avec mes preferences.)<br />
<br />
<br />
<h3>
1. Protection de /var/www<b>/html</b></h3>
<br />
<pre class="file"><span style="color: yellow;">sudo vim /etc/apache2/sites-available/000-default.conf</span></pre>
Rajouter en dessous de la ligne <span style="color: red;"><span style="background-color: yellow;">DocumentRoot /var/www/html</span></span> (pour autoriser uniquement les machines avec une adresse IP du type 127.0.0.1 ou 192.168.1.0, à acceder aux dossier dans /var/www/html).<br />
<br />
<span style="color: orange;"><Directory /var/www/html><br /> Options Indexes FollowSymLinks MultiViews<br /> AllowOverride None<br /> <RequireAny><br /> Require ip 127.0.0.1<br /> Require ip 192.168.1<br /> </RequireAny><br /> </Directory></span><br />
<br />
<br />
<h3>
2. Création des répertoires de travail</h3>
<br />
<span style="color: yellow;">sudo mkdir -p /media/www-dev/{public,private}</span><br />
<br />
<br />
<h3>
3. Donner les droits utilisateur aux répertoires de travail</h3>
<br />
<span style="color: yellow;">sudo chown -R $USER:users /media/www-dev</span><br />
<br />
<br />
<h3>
4. Configuration d'alias dans Apache</h3>
<br />
<br />
Éditez en super utilisateur le fichier :<span style="color: red;"><span style="background-color: yellow;"> /etc/apache2/sites-available/000-default.conf</span></span> afin d'y ajouter en dessous de la ligne <span style="color: orange;">DocumentRoot /var/www/html</span><br />
<br />
<span style="color: orange;">## ZONE PUBLIQUE</span><br />
<span style="color: orange;">Alias /public /media/www-dev/public</span><br />
<span style="color: orange;"><Directory /media/www-dev/public></span><br />
<span style="color: orange;"> Options Indexes FollowSymLinks MultiViews</span><br />
<span style="color: orange;"> AllowOverride All</span><br />
<span style="color: orange;"> Require all granted</span><br />
<span style="color: orange;"></Directory></span><br />
<span style="color: orange;"><br /></span>
<span style="color: orange;">## ZONE PRIVEE</span><br />
<span style="color: orange;">Alias /private /media/www-dev/private</span><br />
<span style="color: orange;"><Directory /media/www-dev/private></span><br />
<span style="color: orange;"> Options Indexes FollowSymLinks MultiViews</span><br />
<span style="color: orange;"> AllowOverride All</span><br />
<span style="color: orange;"> <RequireAny></span><br />
<span style="color: orange;"> Require ip 127.0.0.1</span><br />
<span style="color: orange;"> Require ip 192.168.1</span><br />
<span style="color: orange;"> Require host .w3.org</span><br />
<span style="color: orange;"> </RequireAny></span><br />
<span style="color: orange;"></Directory></span><br />
<br />
<br />
<h3>
5. Ajout de liens symboliques</h3>
<br />
<span style="color: yellow;">sudo ln -s /media/www-dev/public /var/www/<b>html/</b>public</span><br />
<span style="color: yellow;">sudo ln -s /media/www-dev/private /var/www/<b>html/</b>private</span><br />
<span style="color: yellow;">sudo rm /var/www/<b>html</b>/index.html</span><br />
<br />
Note: pour supprimer un lien symbolique,<br />
<br />
<span style="color: yellow;">rm /dossier/nom_symbolique</span><br />
<br />
<br />
<div class="separator" style="clear: both; text-align: center;">
<a href="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEinXoAfezpPkTaJBlgZU6LJl3B55418g-DCpdscpBl6k8BuTdWW9u4V37il2x0adfbHkIGnN0pWa3MKlcyMWbig8DARLnAQyz3It7nIvmxMhqfbQdj1VE8MuCN6PmCzvrGHGk8u03BGJMg8/s1600/aliasLinux.JPG" imageanchor="1" style="margin-left: 1em; margin-right: 1em;"><img border="0" src="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEinXoAfezpPkTaJBlgZU6LJl3B55418g-DCpdscpBl6k8BuTdWW9u4V37il2x0adfbHkIGnN0pWa3MKlcyMWbig8DARLnAQyz3It7nIvmxMhqfbQdj1VE8MuCN6PmCzvrGHGk8u03BGJMg8/s1600/aliasLinux.JPG" height="119" width="400" /></a></div>
<br />
<br />
<div class="separator" style="clear: both; text-align: center;">
</div>
<div class="separator" style="clear: both; text-align: center;">
</div>
<div class="separator" style="clear: both; text-align: center;">
</div>
<div class="separator" style="clear: both; text-align: center;">
</div>
<div class="separator" style="clear: both; text-align: center;">
</div>
<div class="separator" style="clear: both; text-align: center;">
</div>
<div class="separator" style="clear: both; text-align: center;">
</div>
<div class="separator" style="clear: both; text-align: center;">
</div>
<div class="separator" style="clear: both; text-align: center;">
</div>
<div class="separator" style="clear: both; text-align: center;">
</div>
<div class="separator" style="clear: both; text-align: center;">
</div>
<h3>
6. Finalisation</h3>
<br />
<span style="color: yellow;">sudo /etc/init.d/apache2 reload</span> <br />
<br />
ou sinon, /etc/init.d/apache2 force-reload<br />
<br />
<br />
<h1>
II. Verification et test sur les differents serveurs</h1>
<br />
Verifions maintenant que tout fonctionne comme il faut:<br />
<br />
<h3>
1. Test du serveur Apache:</h3>
<br />
<span style="color: purple;">http://localhost/</span><br />
<br />
<br />
<div class="separator" style="clear: both; text-align: center;">
<a href="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEiRPf9aKwCQQOXP49YhZDR0pqmgghVuCSkGYSBWTboisnhQ3PKUzkM_8ptLu1XPxiTCLhyphenhyphen9mjYjX42Fx4Uf49I0aFoaLu7J2wsVt-4Nu2SCQLwUZ8Vpv34hiyp6D241-u5gVr8uMpYlrbgJ/s1600/localhost.JPG" imageanchor="1" style="margin-left: 1em; margin-right: 1em;"><img border="0" src="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEiRPf9aKwCQQOXP49YhZDR0pqmgghVuCSkGYSBWTboisnhQ3PKUzkM_8ptLu1XPxiTCLhyphenhyphen9mjYjX42Fx4Uf49I0aFoaLu7J2wsVt-4Nu2SCQLwUZ8Vpv34hiyp6D241-u5gVr8uMpYlrbgJ/s1600/localhost.JPG" height="305" width="400" /></a></div>
<br />
<br />
<h3>
2. Test du serveur PHP </h3>
<br />
<span style="color: yellow;">sudo echo "<?php phpinfo(); ?>" >> /var/www/html/testphp.php</span><br />
<br />
Voici ce que nous renvoie la page localhost/test.php<br />
<br />
<div class="separator" style="clear: both; text-align: center;">
<a href="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEipuvZvuFEZSYl6XvDHIvryPHqdH4bGZXhpqufvGT3MUgDTXI6nSyHVLxFvnw-ccYIGOZVBUWvgVu8I9Y3KVdcZt7zF8-LgwRoRwygr1M4B-I0jUGoG9VdXqgeHe2f4EphEqksWYnbt8EXN/s1600/phpinfo.JPG" imageanchor="1" style="margin-left: 1em; margin-right: 1em;"><img border="0" src="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEipuvZvuFEZSYl6XvDHIvryPHqdH4bGZXhpqufvGT3MUgDTXI6nSyHVLxFvnw-ccYIGOZVBUWvgVu8I9Y3KVdcZt7zF8-LgwRoRwygr1M4B-I0jUGoG9VdXqgeHe2f4EphEqksWYnbt8EXN/s1600/phpinfo.JPG" height="400" width="365" /></a></div>
<br />
Source:<br />
<a href="https://wiki.debian.org/LaMp#Apache2_configuration_file:_.2Fetc.2Fapache2.2Fapache2.conf">Wiki debian.org - LAMP, Linux Apache MySQL PHP</a><br />
<br />
<br />
<h3>
3.Test du serveur MySQL:</h3>
<br />
<span style="color: yellow;">mysql -u root -p</span><br />
<br />
<div class="separator" style="clear: both; text-align: center;">
<a href="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEiozjVPZj3QvNYgLEOHNUR3LIeqooXRU0LYTWnCj6oZ7iEiwJMp0Qbje969GdQ_RHXX8ZVF16nbsW0nI-AKsm5j8XcKgOS_VUqJ-I70nHL1qPYzpwCjUDUco3vBRYO4m4AW_Qnyi2rAYoRG/s1600/mysql.JPG" imageanchor="1" style="margin-left: 1em; margin-right: 1em;"><img border="0" src="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEiozjVPZj3QvNYgLEOHNUR3LIeqooXRU0LYTWnCj6oZ7iEiwJMp0Qbje969GdQ_RHXX8ZVF16nbsW0nI-AKsm5j8XcKgOS_VUqJ-I70nHL1qPYzpwCjUDUco3vBRYO4m4AW_Qnyi2rAYoRG/s1600/mysql.JPG" height="153" width="400" /></a></div>
<br />
<br />
Si vous n'avez pas mis de mot de passe, c'est le moment de le faire.<br />
<br />
mysql> <span style="color: yellow;">SET PASSWORD FOR 'root'@'localhost' = PASSWORD('votre_nouveau_mot_de_passe');</span><br />
<br />
Redemarrer le server Apache:<br />
<span style="color: yellow;">sudo /etc/init.d/apache2 restart</span><br />
<br />
<span style="color: orange;">mysql> <span style="color: yellow;">show databases;</span></span><br />
<span style="color: orange;">+--------------------+</span><br />
<span style="color: orange;">| Database |</span><br />
<span style="color: orange;">+--------------------+</span><br />
<span style="color: orange;">| information_schema |</span><br />
<span style="color: orange;">| <span style="color: red;">mysql </span> |</span><br />
<span style="color: orange;">| performance_schema |</span><br />
<span style="color: orange;">| <span style="color: red;">test </span> |</span><br />
<span style="color: orange;">+--------------------+</span><br />
<span style="color: orange;">4 rows in set (0.49 sec)</span><br />
<span style="color: orange;"><br /></span>
<span style="color: orange;">mysql> <span style="color: yellow;">use test;</span></span><br />
<span style="color: orange;">Database changed</span><br />
<span style="color: orange;">mysql> <span style="color: yellow;">show tables;</span></span><br />
<span style="color: orange;">Empty set (0.00 sec)</span><br />
<br />
<span style="color: orange;">mysql> <span style="color: yellow;">use mysql;</span></span><br />
<span style="color: orange;">Reading table information for completion of table and column names</span><br />
<span style="color: orange;">You can turn off this feature to get a quicker startup with -A</span><br />
<span style="color: orange;"><br /></span>
<span style="color: orange;">Database changed</span><br />
<span style="color: orange;">mysql> <span style="color: yellow;">show tables;</span></span><br />
<span style="color: orange;">+---------------------------+</span><br />
<span style="color: orange;">| Tables_in_mysql |</span><br />
<span style="color: orange;">+---------------------------+</span><br />
<span style="color: orange;">| columns_priv |</span><br />
<span style="color: orange;">| db |</span><br />
<span style="color: orange;">| event |</span><br />
<span style="color: orange;">| func |</span><br />
<span style="color: orange;">| general_log |</span><br />
<span style="color: orange;">| help_category |</span><br />
<span style="color: orange;">| help_keyword |</span><br />
<span style="color: orange;">| help_relation |</span><br />
<span style="color: orange;">| help_topic |</span><br />
<span style="color: orange;">| host |</span><br />
<span style="color: orange;">| ndb_binlog_index |</span><br />
<span style="color: orange;">| plugin |</span><br />
<span style="color: orange;">| proc |</span><br />
<span style="color: orange;">| procs_priv |</span><br />
<span style="color: orange;">| proxies_priv |</span><br />
<span style="color: orange;">| servers |</span><br />
<span style="color: orange;">| slow_log |</span><br />
<span style="color: orange;">| tables_priv |</span><br />
<span style="color: orange;">| time_zone |</span><br />
<span style="color: orange;">| time_zone_leap_second |</span><br />
<span style="color: orange;">| time_zone_name |</span><br />
<span style="color: orange;">| time_zone_transition |</span><br />
<span style="color: orange;">| time_zone_transition_type |</span><br />
<span style="color: orange;">| user |</span><br />
<span style="color: orange;">+---------------------------+</span><br />
<span style="color: orange;">24 rows in set (0.00 sec)</span><br />
<span style="color: orange;"><br /></span>
<span style="color: orange;">mysql> <span style="color: yellow;">quit</span></span><br />
<span style="color: orange;">Bye</span><br />
<span style="color: orange;">malagasy@ubuntu:~/Temp$</span><br />
<br />
<br />
Source:<br />
<a href="http://lamphowto.com/">Building a LAMP Server</a><br />
<a href="http://community.linuxmint.com/tutorial/view/486">Installing LAMP (Linux, Apache, MySQL and PHP) On Linux Mint</a><br />
<a href="http://www.abbeyworkshop.com/howto/lamp/my_testsetup/index.html">MySQL: Testing a MySQL Installation</a><br />
<br />
<br />
<h3>
4. Installation de l’interface de gestion de MySQL</h3>
<br />
Je vous propose ensuite l'installation de phpmyadmin, vu que jongler avec les lignes de commande n'est pas tres pratique - en tout cas, pour moi.<br />
<br />
<span style="color: yellow;">sudo apt-get install phpmyadmin</span><br />
<br />
<br />
<div class="separator" style="clear: both; text-align: center;">
<a href="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEgNhsSb3HlhipPQjhbfW3ORy0r234XhdSZ2tMnF6CSnq71GPfrntDyOapOK6_Apo3yQgiBUZKrNG_PxWZWS5V9jxaFmCrWZ0-QShNdMhIbIIl9gkjUlGEXAChE5OrpZW6HpM2hLZ6AkSJEB/s1600/phpmyadminpic.JPG" imageanchor="1" style="margin-left: 1em; margin-right: 1em;"><img border="0" src="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEgNhsSb3HlhipPQjhbfW3ORy0r234XhdSZ2tMnF6CSnq71GPfrntDyOapOK6_Apo3yQgiBUZKrNG_PxWZWS5V9jxaFmCrWZ0-QShNdMhIbIIl9gkjUlGEXAChE5OrpZW6HpM2hLZ6AkSJEB/s1600/phpmyadminpic.JPG" height="126" width="400" /></a></div>
<br />
<div class="separator" style="clear: both; text-align: center;">
<a href="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEiZKG959II49mL-bFg0pfJpm8CAoapUlAmMK_YucJK17LTdj25onKXGQDF6cxx3kZ-BsSPuSoJj9ecHXbif_ppmbz45ehsRcgnsIOeEcUcQpsMAX6oASweOTZdebtptP5yHJ2ncsD2WacFl/s1600/phpmyadmingpic2.JPG" imageanchor="1" style="margin-left: 1em; margin-right: 1em;"><img border="0" src="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEiZKG959II49mL-bFg0pfJpm8CAoapUlAmMK_YucJK17LTdj25onKXGQDF6cxx3kZ-BsSPuSoJj9ecHXbif_ppmbz45ehsRcgnsIOeEcUcQpsMAX6oASweOTZdebtptP5yHJ2ncsD2WacFl/s1600/phpmyadmingpic2.JPG" height="102" width="400" /></a></div>
<br />
<br />
<h3>
5. Racourci vers le dossier de travail</h3>
<br />
Une fois que tout est bon, vous pouvez ajouter le dossier /media/www-dev comme dans les marques pages de votre navigateur de dossier.<br />
<br />
<div class="separator" style="clear: both; text-align: center;">
<a href="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEhHcWPtmu8Ym9v_gqk63vqIxqS37SMcA0DaozT_7g_7iIBYjsdfm7WbGUq0ZkM16GtI-bN-HQySBkVWzT2cX_VbVTRzEgkFHVmudaNhOI7dwIqUbrBo5_Hxe5TYwiPgZiNuCFEMEszr0dS9/s1600/Capture.JPG" style="margin-left: 1em; margin-right: 1em;"><img border="0" src="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEhHcWPtmu8Ym9v_gqk63vqIxqS37SMcA0DaozT_7g_7iIBYjsdfm7WbGUq0ZkM16GtI-bN-HQySBkVWzT2cX_VbVTRzEgkFHVmudaNhOI7dwIqUbrBo5_Hxe5TYwiPgZiNuCFEMEszr0dS9/s1600/Capture.JPG" height="281" width="320" /></a></div>
<br />
<br />
Et voila, le serveur LAMP est prêt et est fonctionnel.<br />
<br />
Source:<br />
<a href="http://www.howtoforge.com/installing-apache2-with-php5-and-mysql-support-on-ubuntu-13.04-lamp">Installing Apache2 With PHP5 And MySQL Support On Ubuntu 13.04 (LAMP)</a>MaLaGasyhttp://www.blogger.com/profile/13615587620409404188noreply@blogger.com0tag:blogger.com,1999:blog-5261147620476854545.post-18495463339798964282013-12-21T04:05:00.004-08:002013-12-22T14:07:14.242-08:00LFS: Linux From Scratch<span id="goog_368266051"></span><span id="goog_368266052"></span>Avant de commencer, je vous recommande de voir la presentation ci-dessous.<br />
<br />
<div class="separator" style="clear: both; text-align: center;">
<iframe allowfullscreen='allowfullscreen' webkitallowfullscreen='webkitallowfullscreen' mozallowfullscreen='mozallowfullscreen' width='320' height='266' src='https://www.youtube.com/embed/GQI9jBazhaY?feature=player_embedded' frameborder='0'></iframe></div>
<br />
<br />
Pour la suite, je vous propose de vous aidez de support videos, il y en a pas mal sur internet comme <a href="http://www.youtube.com/watch?v=qY6NcLE2xkc">ici</a> par exemple, surtout si vous ne vous sentez pas a l'aise dans les manipulation a faire.<br />
<br />
Honètement, il n'y a rien à rajouter par rapport à ce qui est décrit dans la documentation quoique, la documentation en français est bien faite et bien traduite par la même occasion, mais il y a eu une ou deux passage où j'ai rencontré des approximations au niveau de la traduction qui peut rendre le texte incohérent parfois incompréhensible. Je vous recommande vivement de n'utiliser que le manuel officiel en anglais et de garder celui en français sous le coude au cas où.<br />
<br />
Autre chose, tous les paquets à utiliser au cours des differents chapitres se trouvent <a href="http://www.linuxfromscratch.org/lfs/download.html">ici</a>. Il n'y a besoin d'aller les cherchers ailleurs. Cependant, vu que je vais créer mon système LFS à partir d'une machine virtuelle - VMware Workstation 9 (Pas taper .. :) ), il y a quelques recommandations, non cité dans le manuel, à suivre et que je vais vous partager plus bas.<br />
<br />
Ma dernière recommandation serait: "<span style="color: red;"><span style="background-color: yellow;">FAITES DES SNAPSHOTS SANS MODERATION</span></span>" tant que vous avez assez d'espace disque sur votre ordinateur!<br />
<br />
Je ne vais pas citer tous les problemes que j'ai rencontré durant l'installation de LFS. Je vais juste me limiter aux trois points ci-dessous.<br />
<br />
<h2>
<b>1. "File not found", apres avoir selectionne LFS 7.2 lors du boot.</b></h2>
<br />
Petite mise-au-point: Au niveau du chapitre <a href="http://www.linuxfromscratch.org/lfs/view/stable/chapter08/grub.html">Utilisez GRUB pour paramétrer le processus de démarrage</a>, avec la version 2 du Grub, il n'y a pas besoin de créer le fichier de configuration <i>grub.cfg</i> et encore moins d'écraser celui existant. Par contre, il vous faut revenir dans la console du système hôte à partir duquel vous allez créer votre LFS, Debian dans mon cas, puis de taper la commande<br />
<br />
<blockquote class="tr_bq">
<span style="color: yellow;"># update-grub</span></blockquote>
<br />
Cela mettra a jour la liste dans Grub, et de ce fait vous n'aurez pour le probleme de <a href="http://www.linuxquestions.org/questions/linux-from-scratch-13/file-not-found-error-on-booting-lfs-7-2-a-4175439952/">"File not found"</a>.<br />
<br />
<h2>
<b>2. Système bloqué au niveau de "rest_init+0x60/0x60" lors du demarrage de LFS:</b></h2>
<br />
<div class="separator" style="clear: both; text-align: center;">
<a href="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEgL1Yr5xJ1P7067dw02XaX8vzUht1pOouotO-ky5yOiBtnOUy3l-XdUcjvApMc9JNFKAOHBtBBZts0Ej42ApPC-SjiAQGWG2G-DAi31pgvqmhLsqvUyDb0nzpwHPJpwrsM3PbtIcbMXOqX7/s1600/Capture.JPG" imageanchor="1" style="margin-left: 1em; margin-right: 1em;"><img border="0" src="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEgL1Yr5xJ1P7067dw02XaX8vzUht1pOouotO-ky5yOiBtnOUy3l-XdUcjvApMc9JNFKAOHBtBBZts0Ej42ApPC-SjiAQGWG2G-DAi31pgvqmhLsqvUyDb0nzpwHPJpwrsM3PbtIcbMXOqX7/s1600/Capture.JPG" height="352" width="640" /></a></div>
<span id="goog_398482107"></span><span id="goog_398482108"></span><br />
L'article <a href="http://comments.gmane.org/gmane.linux.lfs.support/37442">ici </a>nous donne plus d'information sur ce qui se passe:<br />
<blockquote class="tr_bq">
<span style="color: yellow;">-----------------------------------------------------<br />CPU: 0 PID: 1 Comm: swapper/0 Not tainted 3.10.10 #1 <br />Hardware name: VMware, Inc. VMware Virtual Platform/440BX Desktop Reference Platform, BIOS 6.00 07/02/2012<br /><br />!---------sortie tronquee----------!<br /><br />ret_from_kernel_thread+Ox1b/0x28 <br />? rest_init+0x60/0x60 <br />------------------------------------------------------</span></blockquote>
Apparement il y a un probleme de driver vmware, et plus precisement c'est un probleme avec le disque dur virtuel en SCSI qui est configure avec LSI Logic comme recommande par VMware.<br />
<br />
Pour resoudre ce probleme ainsi que d'autres problèmes liés à la virtualisation, on doit passer par une <a href="http://www.linuxfromscratch.org/lfs/view/stable/chapter08/kernel.html">recompilation du noyau</a>. Mais avant cela, configurez le fichier <i>.config</i> comme suit:<br />
<br />
<div class="separator" style="clear: both; text-align: center;">
<a href="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEgCkB9SuF8_gOCYgvWvKMhbD-xm-0VBmai9-lzL0Jqp_xutYt0qn3pWLk2y-HsVhGrdGKPpvAs9AU5fPY52H3Jrez0r5L7EVdbrpZSzymyQq6GkgWk-rY7O2C4hcEA4M7zM-tiv3rmAbbvs/s1600/Capture0.JPG" imageanchor="1" style="margin-left: 1em; margin-right: 1em;"><img border="0" src="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEgCkB9SuF8_gOCYgvWvKMhbD-xm-0VBmai9-lzL0Jqp_xutYt0qn3pWLk2y-HsVhGrdGKPpvAs9AU5fPY52H3Jrez0r5L7EVdbrpZSzymyQq6GkgWk-rY7O2C4hcEA4M7zM-tiv3rmAbbvs/s1600/Capture0.JPG" /></a></div>
<br />
<div class="separator" style="clear: both; text-align: center;">
</div>
<div class="separator" style="clear: both; text-align: center;">
<a href="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEhv1VmM1Bwi5LIuh_auVITbBW7Kd_W9NGsx09QtTCrsO2gG1vfviBdCpIm1zr45HF0OR1z9uYE8adKVOLtnwzZCLbuXiJrSgtWZ9V84I5CgVh7DN8iTLbNMn_3pu2mz0XA64oTNPZcTGQ5s/s1600/Capture0_1.JPG" imageanchor="1" style="margin-left: 1em; margin-right: 1em;"><img border="0" src="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEhv1VmM1Bwi5LIuh_auVITbBW7Kd_W9NGsx09QtTCrsO2gG1vfviBdCpIm1zr45HF0OR1z9uYE8adKVOLtnwzZCLbuXiJrSgtWZ9V84I5CgVh7DN8iTLbNMn_3pu2mz0XA64oTNPZcTGQ5s/s1600/Capture0_1.JPG" /></a></div>
<br />
<div class="separator" style="clear: both; text-align: center;">
<a href="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEjZqhXk-z3y3oOxUXxQMQ51lrmKm3EniBZ6mt7rLWHulVl0P4IbkCYw5I_L_9kcwO1_yQi9jSt46xq6Ua32Uf26dYKjWDErFO0HFa6LGCA7aaPzMn2FqnL0B6EGTH4wdWH_yv8aVMH_s209/s1600/Capture0_2.JPG" imageanchor="1" style="margin-left: 1em; margin-right: 1em;"><img border="0" src="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEjZqhXk-z3y3oOxUXxQMQ51lrmKm3EniBZ6mt7rLWHulVl0P4IbkCYw5I_L_9kcwO1_yQi9jSt46xq6Ua32Uf26dYKjWDErFO0HFa6LGCA7aaPzMn2FqnL0B6EGTH4wdWH_yv8aVMH_s209/s1600/Capture0_2.JPG" /></a></div>
<br />
<div class="separator" style="clear: both; text-align: center;">
<a href="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEjWjqiz6bSkTl8huIQwo_47TVEPIIcpGJR8yN4XSBOd4uS5FSoh9J8N7u8Q1GgEkROvV47bn3d9ueznG8AQDlo539NoCUzWz4-Xb994W-RBTYRBQxi6CflW7cRgZE3SFk0EaQkoArwnaq24/s1600/Capture1.JPG" imageanchor="1" style="margin-left: 1em; margin-right: 1em;"><img border="0" src="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEjWjqiz6bSkTl8huIQwo_47TVEPIIcpGJR8yN4XSBOd4uS5FSoh9J8N7u8Q1GgEkROvV47bn3d9ueznG8AQDlo539NoCUzWz4-Xb994W-RBTYRBQxi6CflW7cRgZE3SFk0EaQkoArwnaq24/s1600/Capture1.JPG" /></a></div>
<br />
<div class="separator" style="clear: both; text-align: center;">
<a href="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEhG7-8kwsFWlJlxwibocfuFMGezE5heXt6MUMClksN54Im4OYzQ8LA5TImSNgh13ZTvWDGP5gX_1NBpaVm1LQd5_cQY9hImAGbTvXGqW6vNUdzmj1YAmSAT5aO56JBnOI-SFch0QFL1mirg/s1600/Capture2_0.JPG" imageanchor="1" style="margin-left: 1em; margin-right: 1em;"><img border="0" src="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEhG7-8kwsFWlJlxwibocfuFMGezE5heXt6MUMClksN54Im4OYzQ8LA5TImSNgh13ZTvWDGP5gX_1NBpaVm1LQd5_cQY9hImAGbTvXGqW6vNUdzmj1YAmSAT5aO56JBnOI-SFch0QFL1mirg/s1600/Capture2_0.JPG" /></a></div>
<br />
<a href="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEgEZ2lb4aITao8bHXGqajUzdDONOXAsO3x060H92NevnZeEEwsQGVFFDUcIL4yUfIacQY_q-JfQuTTPvkaPolahmDOYpaCG2anRE7d8ly8YVnknNM6LI6LhME0PRa3f3zF63BdiU0Zgbvhy/s1600/Capture2.JPG" style="margin-left: 1em; margin-right: 1em;"><img border="0" src="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEgEZ2lb4aITao8bHXGqajUzdDONOXAsO3x060H92NevnZeEEwsQGVFFDUcIL4yUfIacQY_q-JfQuTTPvkaPolahmDOYpaCG2anRE7d8ly8YVnknNM6LI6LhME0PRa3f3zF63BdiU0Zgbvhy/s1600/Capture2.JPG" /></a><br />
<br />
<div class="separator" style="clear: both; text-align: center;">
<a href="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEgxbtiCutFeEmdKG5HB61RXpLl6UlcFJghGQ1PtXU2GIqzuOgBWUibinM6_GGJuPoUNu15kVP6Tf6TONNk8gzzEm9mO5-03hvwk3rY8sAEtc7T2KLntHTkYjVZO0xJjsFnL3F7nloZfL2zD/s1600/Capture3.JPG" imageanchor="1" style="margin-left: 1em; margin-right: 1em;"><img border="0" src="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEgxbtiCutFeEmdKG5HB61RXpLl6UlcFJghGQ1PtXU2GIqzuOgBWUibinM6_GGJuPoUNu15kVP6Tf6TONNk8gzzEm9mO5-03hvwk3rY8sAEtc7T2KLntHTkYjVZO0xJjsFnL3F7nloZfL2zD/s1600/Capture3.JPG" /></a></div>
<br />
<div class="separator" style="clear: both; text-align: center;">
<a href="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEjMMN1vTe1Ql9MOH6aoHanYqeuJvDGPuiF5URefvA7owtahZZAXbxUjiTy8Dl6OvRm2xl3L6mXgk1JL078RFyq0yw_7avH9T3pdgGaYAbNKlCEFHdWMQSvbFHPRp18UNgyDkKJPwhPXjyWi/s1600/Capture3_1.JPG" imageanchor="1" style="margin-left: 1em; margin-right: 1em;"><img border="0" src="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEjMMN1vTe1Ql9MOH6aoHanYqeuJvDGPuiF5URefvA7owtahZZAXbxUjiTy8Dl6OvRm2xl3L6mXgk1JL078RFyq0yw_7avH9T3pdgGaYAbNKlCEFHdWMQSvbFHPRp18UNgyDkKJPwhPXjyWi/s1600/Capture3_1.JPG" /></a></div>
<br />
<h2>
<b><span style="font-weight: normal;"><b>3. </b>"<b>Starting system log daemon" fail</b></span></b></h2>
<br />
<div class="separator" style="clear: both; text-align: center;">
<a href="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEgSVAYRJEUeK9regxlE5A2y9tTal7qc3mX_UpPqdq9torVcIWMcT7kojH53v49_78f2-ZydzaI_hzQBeqNt8AEelTsQLu2J2qmfKS9Zso9BOdX0LyRvjtc61Bv7sZYfxycKTmP6Sy-bsdQt/s1600/Capture4.JPG" imageanchor="1" style="margin-left: 1em; margin-right: 1em;"><img border="0" src="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEgSVAYRJEUeK9regxlE5A2y9tTal7qc3mX_UpPqdq9torVcIWMcT7kojH53v49_78f2-ZydzaI_hzQBeqNt8AEelTsQLu2J2qmfKS9Zso9BOdX0LyRvjtc61Bv7sZYfxycKTmP6Sy-bsdQt/s1600/Capture4.JPG" /></a></div>
<br />
Cà y est, on y est presque. Le systeme <a href="http://www.linuxfromscratch.org/lfs/view/stable/chapter06/sysklogd.html">sysklogd</a> doit etre recompilé et tout devrait <a href="http://comments.gmane.org/gmane.linux.lfs.support/37141">rentrer dans l'ordre</a>.<br />
<br />
Pour le problème d'interface eth0, il 'ny a pas besoin de configurer l'interface réseau comme decrit <a href="http://www.linuxfromscratch.org/lfs/view/stable/chapter07/network.html">ici</a>, cela vous evitera d'avoir un probleme avec le fichier "<a href="http://comments.gmane.org/gmane.linux.lfs.support/32812">70-persistent-net.rules" inexistant</a>. <br />
<br />
Et pour fini, le seul compte qui existe est celui de Root. N'oubliez pas de personaliser le mot de passe.<br />
<div class="separator" style="clear: both; text-align: center;">
</div>
<br />
<div class="separator" style="clear: both; text-align: center;">
<a href="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEibvwQYEu5CkMBcPpdSjZjlS_Pak7KnC2he2WHqEuHpfRnEH5GFseBWcyXxU7bFU92IhTanXZaqZT8uUoDIFa6IxuKX7JxGH-gB5f-_l-g7aGMIR8bZElzdAGMIpZf3D4ejDKwScveVPlK4/s1600/Capture4-2.JPG" imageanchor="1" style="margin-left: 1em; margin-right: 1em;"><img border="0" src="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEibvwQYEu5CkMBcPpdSjZjlS_Pak7KnC2he2WHqEuHpfRnEH5GFseBWcyXxU7bFU92IhTanXZaqZT8uUoDIFa6IxuKX7JxGH-gB5f-_l-g7aGMIR8bZElzdAGMIpZf3D4ejDKwScveVPlK4/s1600/Capture4-2.JPG" /></a></div>
<br />
Et voila, j'espère que ce retour d'expérience vous est utile. Bonne chance pour la suite.<br />
<br />
<h3>
<u><b>Note1:</b></u><b> </b></h3>
J'ai installé <span style="color: yellow;">Debian 32 bits</span> comme recommandé dans le manuel, sur un disque de 13Go dont 11Go pour /, 1Go pour /home et
850Mo pour le Swap. (Je ferai d'autres tests avec une architecture 64bits Debian et kFreeBSD).<br />
<br />
Pour LFS , j'ai choisi de l'installer sur un disque dur à part, de 10Go.<br />
<br />
Notez
que la partition /boot (150 MB) est une partition a part et qui sera commune aux deux systèmes d'exploitation.<br />
<br />
<div class="separator" style="clear: both; text-align: center;">
<a href="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEgik8-ZLDHDRT7UsYk-JKg_Yli-n0nX-c5gDI12ptBA58nOQbhH9wcZqyF1bmsACXGQRzm8EhNG3auvhbhDj-T5JjJg3eL1f1LNvtB3AbFgoI4-lTzXS2PZB7UoU_q9Lwd7c01mnVkSwo1x/s1600/Capture5.JPG" imageanchor="1" style="margin-left: 1em; margin-right: 1em;"><img border="0" src="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEgik8-ZLDHDRT7UsYk-JKg_Yli-n0nX-c5gDI12ptBA58nOQbhH9wcZqyF1bmsACXGQRzm8EhNG3auvhbhDj-T5JjJg3eL1f1LNvtB3AbFgoI4-lTzXS2PZB7UoU_q9Lwd7c01mnVkSwo1x/s1600/Capture5.JPG" /></a></div>
<br />
<h3>
<u><b>Note2: </b></u></h3>
<span style="color: red;"><span style="background-color: yellow;">Les commandes pour se connecter en mode chroot sont a noter sur un sticky</span></span>, vous en aurez souvent besoin pour aller jusqu'au bout du manuel, mon petit doigt me le dit.<br />
<br />
Montez les differentes partitions:<br />
<blockquote class="tr_bq">
<span style="color: yellow;">echo $LFS<br />export LFS=/mnt/lfs<br /><br />mount -v -t ext4 /dev/sdb1 $LFS<br /><br />mount -v --bind /dev $LFS/dev<br /><br />mount -vt devpts devpts $LFS/dev/pts -o gid=5,mode=620<br />mount -vt proc proc $LFS/proc<br />mount -vt sysfs sysfs $LFS/sys<br /><br />if [ -h $LFS/dev/shm ]; then<br /> link=$(readlink $LFS/dev/shm)<br /> mkdir -p $LFS/$link<br /> mount -vt tmpfs shm $LFS/$link<br /> unset link<br />else<br /> mount -vt tmpfs shm $LFS/dev/shm<br />fi</span></blockquote>
A partir du chapitre 6.66 et jusqu'a la fin du manuel, se connecter en mode <a href="https://wiki.debian.org/chroot">chroot</a>:<br />
<blockquote class="tr_bq">
<span style="color: yellow;">chroot "$LFS" /usr/bin/env -i \<br /> HOME=/root TERM="$TERM" PS1='\u:\w\$ ' \<br /> PATH=/bin:/usr/bin:/sbin:/usr/sbin \<br /> /bin/bash --login </span></blockquote>
<br />
Demontez les differentes partitions avant de redemarrer le systeme: <br />
<blockquote class="tr_bq">
<span style="color: yellow;">umount -v $LFS/dev/pts<br /><br />if [ -h $LFS/dev/shm ]; then<br /> link=$(readlink $LFS/dev/shm)<br /> umount -v $LFS/$link<br /> unset link<br />else<br /> umount -v $LFS/dev/shm<br />fi<br /><br />umount -v $LFS/dev<br />umount -v $LFS/proc<br />umount -v $LFS/sys<br /><br /><br />umount -v $LFS<br /><br />shutdown -r now</span></blockquote>
<br />
<h3>
<u><b>Note3:</b></u></h3>
Ce n'est pas de la moindre importance, mais on connaît ou on ne connaît pas. Voici les commandes à connaître pour décompresser les différents types de fichiers:<br />
<br />
<b>ZIP: </b> unzip archive_name.zip<br />
<b>TAR: </b> tar -xvf archive_name.tar<br />
<b>TAR.GZ/TGZ:</b> tar -zxvf archive_name.tar.gz<br />
<b>TAR.BZ2: </b> tar -jxvf archive_name.tar.bz2<br />
<b>XZ:</b> tar -Jxvf archive_name.xz<br />
<br />
<br />
<br />MaLaGasyhttp://www.blogger.com/profile/13615587620409404188noreply@blogger.com0tag:blogger.com,1999:blog-5261147620476854545.post-7890021931588918512013-10-21T03:38:00.001-07:002013-10-21T03:41:14.798-07:00Linux: Monter un nouveau disque durEt oui, il faut un debut a tout. Comme je n'ai jamais eu l'occasion d'ajouter un nouveau disque dur sur mes ordinateurs, je ne me suis pas interesse a cette fonctionnalitee jusqu'a present. Et ben, depuis mon interret pour <a href="http://www.linuxfromscratch.org/lfs/view/7.4/index.html">Linux From Scratch</a>, j'avoue que je risquerai de decouvrir plus de choses qui me seraient utile dans ma vie linuxienne.<br />
<br />
<h3>
<b>I. Ajout d'un nouveau disque dur/d'une nouvelle partition</b></h3>
<br />
Verifier que votre nouveau disque est reconnu par l'OS.<br />
<blockquote class="tr_bq">
root@debianlfs:~# <b><span style="color: red;">fdisk -l</span></b><br />
<br />
Disk /dev/sda: 21.5 GB, 21474836480 bytes<br />
255 heads, 63 sectors/track, 2610 cylinders, total 41943040 sectors<br />
Units = sectors of 1 * 512 = 512 bytes<br />
Sector size (logical/physical): 512 bytes / 512 bytes<br />
I/O size (minimum/optimal): 512 bytes / 512 bytes<br />
Disk identifier: 0x000ad7c0<br />
<br />
Device Boot Start End Blocks Id System<br />
/dev/sda1 * 2048 40136703 20067328 83 Linux<br />
/dev/sda2 40138750 41940991 901121 5 Extended<br />
/dev/sda5 40138752 41940991 901120 82 Linux swap / Solaris<br />
<br />
<span style="color: yellow;">Disk /dev/sdb: 10.7 GB, 10737418240 bytes</span><br />
<span style="color: yellow;">255 heads, 63 sectors/track, 1305 cylinders, total 20971520 sectors</span><br />
<span style="color: yellow;">Units = sectors of 1 * 512 = 512 bytes</span><br />
<span style="color: yellow;">Sector size (logical/physical): 512 bytes / 512 bytes</span><br />
<span style="color: yellow;">I/O size (minimum/optimal): 512 bytes / 512 bytes</span><br />
<span style="color: yellow;">Disk identifier: 0x00000000</span><br />
<br />
<span style="color: orange;">Disk /dev/sdb doesn't contain a valid partition table</span><br />
root@debianlfs:~#<br />
<br /></blockquote>
Le disque /dev/sdb n'a pas de partition, comme indique ci-dessus. Nous allons donc lui en creer un. Moi j'ai choisi fdisk pour le faire, sinon vous pouvez trouver une methode un peu plus graphique avec <a href="http://blog.thecodingmachine.com/fr/ajouter-un-nouveau-disque-dur-sous-linux">cfdisk ici</a>.<br />
<blockquote class="tr_bq">
<br />
root@debianlfs:~# <span style="color: red;"><b>fdisk /dev/sdb</b></span><br />
Device contains neither a valid DOS partition table, nor Sun, SGI or OSF disklabel<br />
Building a new DOS disklabel with disk identifier 0x0696187e.<br />
Changes will remain in memory only, until you decide to write them.<br />
After that, of course, the previous content won't be recoverable.<br />
<br />
Warning: invalid flag 0x0000 of partition table 4 will be corrected by w(rite) </blockquote>
<blockquote class="tr_bq">
<span style="color: red;">Command (m for help): <b>m</b></span><br />
<span style="color: yellow;">Command action<br /> a toggle a bootable flag<br /> b edit bsd disklabel<br /> c toggle the dos compatibility flag<br /> d delete a partition<br /> l list known partition types<br /> m print this menu<br /> n add a new partition<br /> o create a new empty DOS partition table<br /> p print the partition table<br /> q quit without saving changes<br /> s create a new empty Sun disklabel<br /> t change a partition's system id<br /> u change display/entry units<br /> v verify the partition table<br /> w write table to disk and exit<br /> x extra functionality (experts only)</span><br />
<br />
<span style="color: red;">Command (m for help): <b>p</b></span><br />
<br />
Disk /dev/sdb: 10.7 GB, 10737418240 bytes<br />
255 heads, 63 sectors/track, 1305 cylinders, total 20971520 sectors<br />
Units = sectors of 1 * 512 = 512 bytes<br />
Sector size (logical/physical): 512 bytes / 512 bytes<br />
I/O size (minimum/optimal): 512 bytes / 512 bytes<br />
Disk identifier: 0x0696187e<br />
<br />
<span style="color: orange;"> Device Boot Start End Blocks Id System</span><br />
<br />
<span style="color: red;">Command (m for help): <b>n</b></span><br />
Partition type:<br />
p primary (0 primary, 0 extended, 4 free)<br />
e extended<br />
<span style="color: red;">Select (default p): <b>p</b></span><br />
Partition number (1-4, default 1): <br />
First sector (2048-20971519, default 2048): <br />
Using default value 2048<br />
Last sector, +sectors or +size{K,M,G} (2048-20971519, default 20971519): <br />
Using default value 20971519<br />
<br />
<span style="color: red;">Command (m for help): <b>p</b></span><br />
<br />
Disk /dev/sdb: 10.7 GB, 10737418240 bytes<br />
255 heads, 63 sectors/track, 1305 cylinders, total 20971520 sectors<br />
Units = sectors of 1 * 512 = 512 bytes<br />
Sector size (logical/physical): 512 bytes / 512 bytes<br />
I/O size (minimum/optimal): 512 bytes / 512 bytes<br />
Disk identifier: 0x0696187e<br />
<br />
<span style="color: orange;"> Device Boot Start End Blocks Id System</span><br />
<span style="color: orange;">/dev/sdb1 2048 20971519 10484736 83 Linux</span><br />
<br />
<span style="color: red;">Command (m for help): <b>w</b></span><br />
The partition table has been altered!<br />
<br />
Calling ioctl() to re-read partition table.<br />
Syncing disks.<br />
root@debianlfs:~# <br />
<br /></blockquote>
Lister la table de partition: <br />
<blockquote class="tr_bq">
<br />
root@debianlfs:~# <span style="color: red;"><b>cat /proc/partitions </b></span><br />
major minor #blocks name<br />
<br />
8 0 20971520 sda<br />
8 1 20067328 sda1<br />
8 2 1 sda2<br />
8 5 901120 sda5<br />
8 16 10485760 sdb<br />
8 17 10484736 sdb1<br />
root@debianlfs:~# <br />
<br />
root@debianlfs:~# <span style="color: red;"><b>fdisk -l</b></span><br />
<br />
Disk /dev/sda: 21.5 GB, 21474836480 bytes<br />
255 heads, 63 sectors/track, 2610 cylinders, total 41943040 sectors<br />
Units = sectors of 1 * 512 = 512 bytes<br />
Sector size (logical/physical): 512 bytes / 512 bytes<br />
I/O size (minimum/optimal): 512 bytes / 512 bytes<br />
Disk identifier: 0x000ad7c0<br />
<br />
Device Boot Start End Blocks Id System<br />
/dev/sda1 * 2048 40136703 20067328 83 Linux<br />
/dev/sda2 40138750 41940991 901121 5 Extended<br />
/dev/sda5 40138752 41940991 901120 82 Linux swap / Solaris<br />
<br />
<span style="color: yellow;">Disk /dev/sdb: 10.7 GB, 10737418240 bytes</span><br />
<span style="color: yellow;">107 heads, 17 sectors/track, 11529 cylinders, total 20971520 sectors</span><br />
<span style="color: yellow;">Units = sectors of 1 * 512 = 512 bytes</span><br />
<span style="color: yellow;">Sector size (logical/physical): 512 bytes / 512 bytes</span><br />
<span style="color: yellow;">I/O size (minimum/optimal): 512 bytes / 512 bytes</span><br />
<span style="color: yellow;">Disk identifier: 0x0696187e</span><br />
<br />
<span style="color: orange;"> Device Boot Start End Blocks Id System</span><br />
<b><span style="color: orange;">/dev/sdb1 2048 20971519 10484736 83 Linux</span></b><br />
root@debianlfs:~# </blockquote>
<br />
<br />
<h3>
<b>II. Creer un systeme de fichiers sur la partition</b></h3>
<blockquote class="tr_bq">
root@debianlfs:~# <span style="color: red;"><b>mkfs -v -t ext4 /dev/sdb1</b></span><br />
mke2fs 1.42.5 (29-Jul-2012)<br />
<span style="color: orange;">fs_types for mke2fs.conf resolution: 'ext4'</span><br />
Filesystem label=<br />
OS type: Linux<br />
Block size=4096 (log=2)<br />
Fragment size=4096 (log=2)<br />
Stride=0 blocks, Stripe width=0 blocks<br />
655360 inodes, 2621184 blocks<br />
131059 blocks (5.00%) reserved for the super user<br />
First data block=0<br />
Maximum filesystem blocks=2684354560<br />
80 block groups<br />
32768 blocks per group, 32768 fragments per group<br />
8192 inodes per group<br />
Superblock backups stored on blocks: <br />
32768, 98304, 163840, 229376, 294912, 819200, 884736, 1605632<br />
<br />
Allocating group tables: done <br />
Writing inode tables: done <br />
Creating journal (32768 blocks): done<br />
Writing superblocks and filesystem accounting information: done <br />
<br />
root@debianlfs:~# </blockquote>
<br />
<br />
<h3>
<b>III. Monter la nouvelle partition</b></h3>
<br />
A partir d'ici, il faut choisir son point de montage. Le mien est celui propose par le livre Linux From Scratch, qui est:<b> /mnt/lfs</b> avec comme format de fichier l'EXT4.<br />
<blockquote class="tr_bq">
root@debianlfs:~# <span style="color: red;"><b>export LFS=/mnt/lfs</b></span><br />
<br />
root@debianlfs:~# <span style="color: red;"><b>mkdir -pv $LFS</b></span><br />
mkdir: created directory `/mnt/lfs'<br />
<br />
root@debianlfs:~# <span style="color: red;"><b>mount -v -t ext4 /dev/sdb1 $LFS</b></span><br />
/dev/sdb1 on /mnt/lfs type ext4 (rw)<br />
root@debianlfs:~# </blockquote>
<br />
Verifier ensuite les droits sur la nouvelle partition.<br />
<blockquote class="tr_bq">
root@debianlfs:~# <span style="color: red;"><b>mount</b></span><br />
sysfs on /sys type sysfs (rw,nosuid,nodev,noexec,relatime)<br />
proc on /proc type proc (rw,nosuid,nodev,noexec,relatime)<br />
udev on /dev type devtmpfs (rw,relatime,size=10240k,nr_inodes=63178,mode=755)<br />
devpts on /dev/pts type devpts (rw,nosuid,noexec,relatime,gid=5,mode=620,ptmxmode=000)<br />
tmpfs on /run type tmpfs (rw,nosuid,noexec,relatime,size=51464k,mode=755)<br />
/dev/disk/by-uuid/e78f726f-6437-4922-8d4c-d04539056d39 on / type ext3 (rw,relatime,errors=remount-ro,data=ordered)<br />
tmpfs on /run/lock type tmpfs (rw,nosuid,nodev,noexec,relatime,size=5120k)<br />
tmpfs on /run/shm type tmpfs (rw,nosuid,nodev,noexec,relatime,size=283140k)<br />
fusectl on /sys/fs/fuse/connections type fusectl (rw,relatime)<br />
vmware-vmblock on /run/vmblock-fuse type fuse.vmware-vmblock (rw,nosuid,nodev,relatime,user_id=0,group_id=0,default_permissions,allow_other)<br />
<span style="color: orange;"><b>/dev/sdb1 on /mnt/lfs type ext4 (rw,relatime,barrier=1,data=ordered)</b></span><br />
root@debianlfs:~# </blockquote>
<br />
Si les droits sur la nouvelle partitions sont trop restrictifs (<b>nosuid</b>, <b>nodev</b> et/ou <b>noatime</b>), cette partition doit etre remontee.<br />
<br />
<br />
<h3>
Source:</h3>
<a href="http://blog.thecodingmachine.com/fr/ajouter-un-nouveau-disque-dur-sous-linux">Ajouter un nouveau disque dur sous linux</a><br />
<a href="http://www.linuxfromscratch.org/lfs/view/7.4/chapter02/creatingpartition.html">Linux from Scratch: Preparing a new partition </a>MaLaGasyhttp://www.blogger.com/profile/13615587620409404188noreply@blogger.com0tag:blogger.com,1999:blog-5261147620476854545.post-50579133135489915662013-08-29T19:55:00.001-07:002013-08-29T19:56:40.184-07:00Debian: Probleme de son sur le PowerMac G5En lancant MPlayer, le message ci-dessous s'affiche a l'ecran.<br />
<br />
<div class="separator" style="clear: both; text-align: center;">
<a href="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEh_INxNCGwLCHqQwmbKmm936rtbwyZxbxND3RD9DdktpfhNBtHKK1dkEkwayRMGzRX8yQIFfvZSpis-EjyEtkrze8WuDWhcn4m5uM16rUinC1QZAM8noyslr1cNnBR9ZTTwZrQwx_jSfSxk/s1600/Selection_001.png" imageanchor="1" style="margin-left: 1em; margin-right: 1em;"><img border="0" height="120" src="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEh_INxNCGwLCHqQwmbKmm936rtbwyZxbxND3RD9DdktpfhNBtHKK1dkEkwayRMGzRX8yQIFfvZSpis-EjyEtkrze8WuDWhcn4m5uM16rUinC1QZAM8noyslr1cNnBR9ZTTwZrQwx_jSfSxk/s320/Selection_001.png" width="320" /></a></div>
<br />
Avec VLC, <br />
<br />
<br />
<div class="separator" style="clear: both; text-align: center;">
<a href="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEiAy3xprA6Wly23SQm1CN5849MD2OeUf9tD5LNH79r_Kv8jDqodeYrD3i2d1pfmWQ8R4tgzDKw1ISM2JvEfk5W9e-kQSJa5aKWxdb6Bjw9Cx7p1y_HjDtAlkbKr-J-k_w28zVtCbsrc7SKT/s1600/Selection_002.png" imageanchor="1" style="margin-left: 1em; margin-right: 1em;"><img border="0" height="207" src="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEiAy3xprA6Wly23SQm1CN5849MD2OeUf9tD5LNH79r_Kv8jDqodeYrD3i2d1pfmWQ8R4tgzDKw1ISM2JvEfk5W9e-kQSJa5aKWxdb6Bjw9Cx7p1y_HjDtAlkbKr-J-k_w28zVtCbsrc7SKT/s320/Selection_002.png" width="320" /></a></div>
<br />
<br />
J'ai commence par ajouter le paquet "<span style="color: yellow;"><b>pulseaudio</b></span>" a partir de synaptic (ou encore, en ligne de commande, <span style="color: yellow;"><i>aptitude install pulseaudio</i></span>), puis de voir ce que ca va donner.<br />
<br />
En faisant quelques recherches, le probleme de son sur les PowerMacs est apparement un bug qui n'a pas encore ete corrige. Pour ce faire, ajouter les module des noyaux snd-aoa puis de mettre en commentaires le contenu du fichier /etc/modprobe.d/blacklist.local.conf.<br />
<blockquote class="tr_bq">
root@debian:~# <span style="color: red;"><b>cat /etc/modules</b></span><br />
<span style="color: orange;">apm_emu<br />loop<br /># snd-powermac<br /><span style="color: yellow;">snd_aoa_i2sbus<br />snd_aoa_fabric_layout</span><br /># snd_aoa_codec_tas<br /><span style="color: yellow;">snd_aoa_codec_onyx</span></span><br />
<br />
<br />
<br />
root@debian:~# <span style="color: red;"><b>cat /etc/modprobe.d/blacklist.local.conf </b></span><br />
<span style="color: orange;"># Local module settings<br /># Created by the Debian installer</span><br />
<br />
<span style="color: orange;"># blacklist snd-aoa-codec-tas<br /># blacklist snd-aoa-fabric-layout<br /># blacklist snd-aoa-i2sbus<br /># blacklist snd-aoa-soundbus<br /># blacklist snd-aoa</span></blockquote>
<br />
Apres redemarrage de l'ordinateur, j'ai du son mais uniquement en sortie casque. Pour avoir le son au niveau des haut-parleurs internes, il faut verifier que toutes les sorties audio ne sont pas muettes.<br />
<br />
<br />
<div class="separator" style="clear: both; text-align: center;">
</div>
<div class="separator" style="clear: both; text-align: center;">
</div>
<div class="separator" style="clear: both; text-align: center;">
</div>
<div class="separator" style="clear: both; text-align: center;">
<a href="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEhT7LyiLFNa6Vg12L6S3DOwyDvs3FJCXQO1bac3zahiq2Cf6f_tT5E7-WQ26zm6Kb87jmxhGwq2fuw6qZaXFEYYUxffQFKyyeKuSPdlDPMSbmYc7YAh_mOZX91av3esHJX-pgDt4fLNXP9j/s1600/Selection_003.png" imageanchor="1" style="margin-left: 1em; margin-right: 1em;"><img border="0" height="167" src="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEhT7LyiLFNa6Vg12L6S3DOwyDvs3FJCXQO1bac3zahiq2Cf6f_tT5E7-WQ26zm6Kb87jmxhGwq2fuw6qZaXFEYYUxffQFKyyeKuSPdlDPMSbmYc7YAh_mOZX91av3esHJX-pgDt4fLNXP9j/s320/Selection_003.png" width="320" /></a></div>
<br />
<div class="separator" style="clear: both; text-align: center;">
<a href="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEh9yhnyDjk4H9JBjP-5EwOG2Oi1Xy0jCUmP06fC67qighD8bXtM5rzHemjqliXU4xmcY_AdoiTlg1Nt2N00xHaidW6Wabo5P9S4pc11bMo9C686AxtxtBf2RioJbEOJ1chUo3TyoBvIct8S/s1600/Selection_004.png" imageanchor="1" style="margin-left: 1em; margin-right: 1em;"><img border="0" height="167" src="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEh9yhnyDjk4H9JBjP-5EwOG2Oi1Xy0jCUmP06fC67qighD8bXtM5rzHemjqliXU4xmcY_AdoiTlg1Nt2N00xHaidW6Wabo5P9S4pc11bMo9C686AxtxtBf2RioJbEOJ1chUo3TyoBvIct8S/s320/Selection_004.png" width="320" /></a></div>
<br />
<div class="separator" style="clear: both; text-align: center;">
<a href="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEhNW7Las8uGalGblm4rF61d6oErIUGa1LOsvNoIljFByqh9SasXYk5YGdacjEEGcCNOqf90gzEJTacTkD0wc9TRNrIIxy9WPb7iARsYQMEkiuvQ3A7LB2ADaQYOgdV4r0jf9o4T5zFX1cOc/s1600/Selection_005.png" imageanchor="1" style="margin-left: 1em; margin-right: 1em;"><img border="0" height="167" src="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEhNW7Las8uGalGblm4rF61d6oErIUGa1LOsvNoIljFByqh9SasXYk5YGdacjEEGcCNOqf90gzEJTacTkD0wc9TRNrIIxy9WPb7iARsYQMEkiuvQ3A7LB2ADaQYOgdV4r0jf9o4T5zFX1cOc/s320/Selection_005.png" width="320" /></a></div>
<br />
<br />
<br />
Voici quelques informations supplementaires qui pourraient etre utile pour verifier les problemes de son.<br />
<br />
<blockquote class="tr_bq">
$ <span style="color: red;"><b>dmesg |grep snd </b></span><br />
<span style="color: orange;">[ 8.726306] <span style="color: yellow;"><b>snd-powermac</b></span> no longer handles any machines with a layout-id property in the device-tree, use <span style="color: yellow;"><b>snd-aoa</b></span>.</span><br />
<br />
$ <span style="color: red;"><b>dpkg -l | egrep "(asound|alsa|puls)" </b></span><br />
<span style="color: orange;">ii alsa-base 1.0.25+3~deb7u1 all ALSA driver configuration files<br />ii
alsa-utils
1.0.25-4 powerpc Utilities for
configuring and using ALSA<br />ii gstreamer0.10-alsa:powerpc 0.10.36-1.1 powerpc GStreamer plugin for ALSA<br />ii gstreamer0.10-pulseaudio:powerpc 0.10.31-3+nmu1 powerpc GStreamer plugin for PulseAudio<br />ii
liballegro4.4-plugin-alsa:powerpc
2:4.4.2-2.1 powerpc ALSA audio plugin for
the Allegro library<br />ii libasound2:powerpc 1.0.25-4 powerpc shared library for ALSA applications<br />ii
libasound2-dev:powerpc
1.0.25-4 powerpc shared library for ALSA
applications -- development files<br />ii libasound2-plugins:powerpc 1.0.25-2 powerpc ALSA library additional plugins<br />ii
libpulse-mainloop-glib0:powerpc
2.0-6.1 powerpc PulseAudio client
libraries (glib support)<br />ii libpulse0:powerpc 2.0-6.1 powerpc PulseAudio client libraries<br />ii pulseaudio 2.0-6.1 powerpc PulseAudio sound server<br />ii pulseaudio-module-x11 2.0-6.1 <br /> powerpc X11 module for PulseAudio sound server<br />ii
pulseaudio-utils
2.0-6.1 powerpc Command line tools for
the PulseAudio sound server<br />ii vlc-plugin-pulse 2.0.3-5 powerpc PulseAudio plugin for VLC</span><br />
<br />
$ <span style="color: red;"><b>lsmod | grep snd </b></span><br />
<span style="color: orange;">snd_seq_dummy 5103 0 <br />snd_powermac 71361 0 <br />snd_pcm 95682 1 snd_powermac<br />snd_seq 65657 1 snd_seq_dummy<br />snd_seq_device 9150 2 snd_seq,snd_seq_dummy<br />snd_timer 26796 2 snd_seq,snd_pcm<br />snd 79176 5 snd_timer,snd_seq_device,snd_seq,snd_pcm,snd_powermac<br />soundcore 9627 1 snd<br />snd_page_alloc 9833 1 snd_pcm</span><br />
<br />
$ <span style="color: red;"><b>cat /proc/asound/cards </b></span><br />
<span style="color: orange;">--- no soundcards ---</span><br />
<br />
$ <span style="color: red;"><b>aplay -l </b></span><br />
<span style="color: orange;">aplay: device_list:252: no soundcards found...</span><br />
<br />
$ <span style="color: red;"><b>id</b></span><br />
<span style="color: orange;">uid=1000(malagasy)
gid=1000(malagasy)
groups=1000(malagasy),24(cdrom),25(floppy),29(audio),30(dip),44(video),46(plugdev),104(scanner),109(bluetooth),110(netdev)</span><br />
$ <span style="color: red;"><b>amixer</b></span><br />
<span style="color: orange;">Simple mixer control 'Master',0<br /> Capabilities: pvolume pswitch pswitch-joined penum<br /> Playback channels: Front Left - Front Right<br /> Limits: Playback 0 - 65536<br /> Mono:<br /> Front Left: Playback 65536 [100%] [on]<br /> Front Right: Playback 65536 [100%] [on]<br />Simple mixer control 'Capture',0<br /> Capabilities: cvolume cswitch cswitch-joined penum<br /> Capture channels: Front Left - Front Right<br /> Limits: Capture 0 - 65536<br /> Front Left: Capture 65536 [100%] [on]<br /> Front Right: Capture 65536 [100%] [on]</span><br />
<br />
$ <span style="color: red;"><b>cat /proc/asound/cards </b></span><br />
<span style="color: orange;"> 0 [SoundByLayout ]: AppleOnbdAudio - SoundByLayout<br /> SoundByLayout</span><br />
<br />
$ <span style="color: red;"><b>cat /proc/asound/version </b></span><br />
<span style="color: orange;">Advanced Linux Sound Architecture Driver Version 1.0.24.</span></blockquote>
<br />
<br />
<br />
<h3>
Source:</h3>
<a href="http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=650588">Debian Bug report logs - #650588 </a><br />
<br />MaLaGasyhttp://www.blogger.com/profile/13615587620409404188noreply@blogger.com2tag:blogger.com,1999:blog-5261147620476854545.post-2841341423059915462013-07-09T19:53:00.004-07:002013-10-21T18:44:36.085-07:00Debian: Aquisition d'un PowerMac G5 - Installation de Debian WheezyL'installation de la version 7.10 de Debian m'a permit de suprimer definitivement l'OS d'origine, Mac OS X 10.5.8 aka Leopard. Je tiens a preciser que l'installation s'est deroulee sans probleme avec cette version, par contre j'ai du m'arracher les cheveux pour installer la version 6.<br />
<br />
<div class="separator" style="clear: both; text-align: center;">
</div>
<br />
<div class="separator" style="clear: both; text-align: center;">
<a href="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEiarghL4M1LhRK59KDoDePfRHIIkpj1x4YaczQpbQmGqXFv_3z0MhTAQU3ZujgegcGH-X97yD9PR-yrjvgt8_NII73ksCVJA9PkSEl9wUZMn3WMSkZYNIgu0B54dxwi2G2oBkTk5pCf5be-/s1600/Screenshot+-+100713+-+03:38:58.png" imageanchor="1" style="margin-left: 1em; margin-right: 1em;"><img border="0" height="512" src="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEiarghL4M1LhRK59KDoDePfRHIIkpj1x4YaczQpbQmGqXFv_3z0MhTAQU3ZujgegcGH-X97yD9PR-yrjvgt8_NII73ksCVJA9PkSEl9wUZMn3WMSkZYNIgu0B54dxwi2G2oBkTk5pCf5be-/s640/Screenshot+-+100713+-+03:38:58.png" width="640" /></a></div>
<br />
<br />
<br />
Pour l'installation, il suffit de recuperer la <a href="http://www.debian.org/CD/http-ftp/">derniere version stable de Debian</a> - je n'ai pas pu installer la version Testing probablement parque que je n'ai pas trop pris le temps de comprendre pourquoi ca ne marchait pas )).<br />
<br />
Au lancement du CDrom, j'ai choisi l'option<br />
<br />
<blockquote class="tr_bq">
<span style="color: yellow;">boot: expert desktop=xfce</span></blockquote>
<br />
<br />
Une fois l'installation terminee, au demarage il faut taper:<br />
<br />
<blockquote class="tr_bq">
<span style="color: yellow;">boot: Linux video=DVI-I-1:d video=DVI-I-2:1280x1024@60 video=TV-1:d</span></blockquote>
<br />
<br />
Pour l'affichage, si je rajoute l'option de profondeur de couleur "-24" dans 1280x1024@60:-24 ou 1280x1024-4@60, j'ai une grosse bande transparente en bas de l'ecran et qui occupe pratiquement le tiers de mon ecran.<br />
<br />
<br />
<br />
<br />
<br />
<br />
Voila ce qu'il en est de l'installation sur un G5. Avant d'eteindre votre machine, et surtout afin d'eviter de retapper la commande ci-dessus, mettez a jour le fichier <b><i>/etc/yaboot.conf</i></b> avec les informations suivantes:<br />
<br />
<blockquote class="tr_bq">
<span style="color: yellow;">image=/boot/vmlinux<br />
label=Linux<br />
read-only<br />
initrd=/boot/initrd.img</span><br />
<span style="color: orange;">#append "quiet splash"<br />
append="video=DVI-I-1:d video=DVI-I-2:1280x1024@60 video=TV-1:d"</span></blockquote>
<br />
<br />
Taper ensuite la commande "<span style="color: yellow;"><i><b>ybin -v</b></i></span>" en tant que root, puis redemarrer l'ordinateur. <br />
<br />
<br />
J'ai note un bug qui fait que, les fenetres que j'ouvrent ne se rafraichissent pas (pour une page web, seuls les quelques premieres lignes qui s'affichent; il faut cliquer sur le bouton raffraichir pour pouvoir voir les informations en bas de la page). La parade que j'ai trouve, c'est de modifier l'affichage de l'ecran, de la valider, puis de revenir a l'affichage qu'on souhaite avoir. C'est penible, mais s'il y a une autre solution, je suis preneur.<br />
<br />
<br />
Pour finir, voici quelques informations concernant la machine:<br />
<br />
<blockquote class="tr_bq">
<b>Hardware Overview:</b><br />
<br />
Model Name: PowerMac G5 <br />
Model Identifier: PowerMac 7,3<br />
Processor Name: PowerPC G5 (2.2)<br />
Processor Speed: 2 GHz<br />
Number Of CPUs: 2<br />
L2 Cache (per CPU): 512 KB<br />
Memory: 8 GB<br />
Bus Speed: 1 GHz<br />
Boot ROM Version: 5.1.8f7<br />
<br />
Model introduced: 2004<br />
Model Code: g5_june_04<br />
<br />
<b>DIMM:</b><br />
<br />
Type: DDR SDRAM<br />
Speed: PC3200U-30330</blockquote>
<br />
<br />
Je rajoute quelques commandes qui pourraient etre utile pour un futur troubleshoot:<br />
<br />
<blockquote class="tr_bq">
<span style="color: #cfe2f3;">$</span> <b><span style="color: red;">lspci | grep VGA</span></b><br />
<span style="color: #cfe2f3;">0000:f0:10.0 VGA compatible controller: NVIDIA Corporation NV34 [GeForce FX 5200 Ultra] (rev a1)</span><br />
<br />
<
<span style="color: #cfe2f3;">$ </span><b><span style="color: red;">cat /proc/cpuinfo </span></b><br />
<span style="color: #cfe2f3;">processor : 0<br />cpu : PPC970, altivec supported<br />clock : 2000.000000MHz<br />revision : 2.2 (pvr 0039 0202)<br /><br />processor : 1<br />cpu : PPC970, altivec supported<br />clock : 2000.000000MHz<br />revision : 2.2 (pvr 0039 0202)<br /><br />timebase : 33333333<br />platform : PowerMac<br />model : PowerMac7,3<br />machine : PowerMac7,3<br />motherboard : PowerMac7,3 MacRISC4 Power Macintosh <br />detected as : 336 (PowerMac G5)<br />pmac flags : 00000000<br />L2 cache : 512K unified<br />pmac-generation : NewWorld</span><br />
<span style="color: #cfe2f3;"><br /></span>
<span style="color: #cfe2f3;"><br /></span>
<span style="color: #cfe2f3;">$</span> <b><span style="color: red;">cat /proc/meminfo </span></b><br />
<span style="color: #cfe2f3;">MemTotal: 8100620 kB<br />MemFree: 7520456 kB<br />Buffers: 33072 kB<br />Cached: 213292 kB<br />SwapCached: 0 kB</span><br />
<span style="color: #cfe2f3;"><br /></span>
<span style="color: #cfe2f3;"><br /></span>
<span style="color: #cfe2f3;">#</span> <b><span style="color: red;">cat /var/log/dmesg</span></b></blockquote>
<br />
Bonne chance et bon courage a tous les amoureux des PowerPC et a ceux qui ne veulent pas laisser mourrir ces machines, pour l'installation de votre distribution linux favorite dessus.<br />
<br />
<br />
<h3>
<b>Source:</b></h3>
<a href="http://ubuntuforums.org/showthread.php?t=2127528&p=12566024#post12566024">[PPC] PowerMac7,2 G5 NVIDIA GeForce FX 5200 Ultra framebuffer working Ubuntu 12.04 </a><br />
<a href="http://mintppc.org/forums/viewtopic.php?f=15&t=810&sid=a4b55236fd05b7b434e8dd98c85fe63b">Solved -Newbie PowerMac G5 - display sleeps on boot </a>MaLaGasyhttp://www.blogger.com/profile/13615587620409404188noreply@blogger.com1tag:blogger.com,1999:blog-5261147620476854545.post-26966572694463128752013-06-18T04:46:00.001-07:002013-06-18T04:53:15.870-07:00VMware Tools: The path "" is not a valid path - MAJ pour Ubuntu 13.04Ceci est une mise a jour de mon fil datant du <a href="http://mbpmultiboot.blogspot.ie/2012/12/vmware-tool-path-is-not-valid-path.html">29 dec 2012</a>, qui ne marche plus avec la version 13.04 d'Ubuntu. J'ai fait quelques recherches sur le net, et la solution qui me convient le mieux est:<br />
<br />
<blockquote class="tr_bq">
<span style="color: yellow;">cd /lib/modules/$(uname -r)/build/include/linux<br />sudo ln -s ../generated/utsrelease.h<br />sudo ln -s ../generated/autoconf.h<br />sudo ln -s ../generated/uapi/linux/version.h </span></blockquote>
<br />
<b>Note</b><br />
Il est a note que le drag-and-drop a l'air de fonctionner correctement pour l'echange de fichiers a partir d'un bureau windows (7, je n'ai pas verifie pour les autres versions) et linux (ubuntu dans mon cas). <br />
<br />
<br />
<b>Source</b><br />
<a href="http://kill-9.me/57/installing-vmware-tools-on-ubuntu-13-04">Installing VMWare tools on Ubuntu 13.04 </a><br />
<br />
<br />MaLaGasyhttp://www.blogger.com/profile/13615587620409404188noreply@blogger.com0tag:blogger.com,1999:blog-5261147620476854545.post-4184172360379331992013-03-24T17:07:00.000-07:002013-03-24T17:07:42.804-07:00Ubuntu: The following signatures were invalid: BADSIGLors d'un update, avec un message d'erreur du type:<br />
<br />
<div style="text-align: center;">
<span style="color: #e69138;">W: GPG error: http://archive.canonical.com oneiric Release: The following signatures were invalid: BADSIG 40976EAF437D05B5 Ubuntu Archive Automatic Signing Key <ftpmaster@ubuntu.com></span></div>
<br />
<br />
Il faut reconstruire le cache avec les commandes ci-dessous:<br />
<br />
<blockquote class="tr_bq">
<span style="color: yellow;">$ sudo -i</span><br />
<span style="color: yellow;"># apt-get clean</span><br />
<span style="color: yellow;"># cd /var/lib/apt</span><br />
<span style="color: yellow;"># mv lists lists.old</span><br />
<span style="color: yellow;"># mkdir -p lists/partial</span><br />
<span style="color: yellow;"># apt-get clean</span><br />
<span style="color: yellow;"># apt-get update</span></blockquote>
<br />
<h2>
Source</h2>
<a href="http://askubuntu.com/questions/88378/update-manager-fails-to-update-badsig-errors-displayed-in-synaptic">Update manager fails to update - badsig errors displayed in synaptic </a><br />
<a href="https://bugs.launchpad.net/ubuntu/+source/ubuntu-extras-keyring/+bug/893743">Bug #893743 </a><br />
<br />
<br />
<br />
<br />
<br />
<br />
<br />
<br />MaLaGasyhttp://www.blogger.com/profile/13615587620409404188noreply@blogger.com0tag:blogger.com,1999:blog-5261147620476854545.post-32754978065496234242013-01-15T06:10:00.001-08:002013-01-15T06:10:36.050-08:00Mac: Smartphone Android - Pilote Modem USB pour Mac OS XHoRNDIS est le paquet à installer pour pouvoir utiliser un smartphone sous Android comme modem USB sur un Mac avec comme OS, 10.6.8 (Snow Leopard) - 10.8.2 (Mountain Lion), <br />
<br />
<blockquote class="tr_bq">
<span style="color: orange;"><b>Mes configurations:</b></span><br />
<br />
<span style="color: orange;">Samsung Galaxy Mini 2</span><br />
<span style="color: orange;">Android version <span style="color: yellow;">2.3.6 </span></span><br />
<span style="color: orange;">Kernel version <span style="color: yellow;">2.6.38.6-1187685</span></span></blockquote>
<br />
Après installation du paquet <a class="urlextern" href="http://joshuawise.com/downloads/HoRNDIS-rel3.pkg" title="http://joshuawise.com/downloads/HoRNDIS-rel3.pkg">HoRNDIS-rel3.pkg (60488 bytes)</a>, connecter le smarphone au Mac et vérifier que tout est OK. La configuration se fait automatiquement lors de l'installation du paquet.<br />
<br />
<div class="separator" style="clear: both; text-align: center;">
<a href="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEj9KZm8IWh43nmGcj6WD7WqfV7cFzp11jRXb3mZCmaZTybFxIOZuu6oXBkXiTiw8pUSfopB-KoY4f47rI7iC3KgePz9_l7yGYvLbUf13B-OYHYES0Cv0imE5LyyIrY-I6qnlgjfH_k35WdW/s1600/Screen+Shot+2013-01-15+at+13.50.38.png" imageanchor="1" style="margin-left: 1em; margin-right: 1em;"><img border="0" height="280" src="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEj9KZm8IWh43nmGcj6WD7WqfV7cFzp11jRXb3mZCmaZTybFxIOZuu6oXBkXiTiw8pUSfopB-KoY4f47rI7iC3KgePz9_l7yGYvLbUf13B-OYHYES0Cv0imE5LyyIrY-I6qnlgjfH_k35WdW/s1600/Screen+Shot+2013-01-15+at+13.50.38.png" width="320" /></a></div>
<br />
<br />
<h3>
<span style="font-size: large;">Source</span></h3>
<a href="http://joshuawise.com/horndis">HoRNDIS: USB tethering driver for Mac OS X</a>MaLaGasyhttp://www.blogger.com/profile/13615587620409404188noreply@blogger.com0tag:blogger.com,1999:blog-5261147620476854545.post-91807908842010755472012-12-29T20:33:00.000-08:002012-12-29T20:38:59.434-08:00VMware Tools: The path "" is not a valid pathSi vous aussi, avez rencontré un message comme ceci: <br />
<br />
<blockquote class="tr_bq">
<span style="color: orange;"><b>Searching for a valid kernel header path...</b></span><br />
<span style="color: orange;"><b>The path "" is not a valid path to the 3.5.0-17-generic kernel headers.</b></span><br />
<span style="color: orange;"><b>Would you like to change it? [yes]</b> ^C
Execution aborted.</span></blockquote>
<br />
Il vous faut installer<br />
<br />
<pre class="alt2" dir="ltr" style="border: 1px inset; height: 34px; margin: 0px; overflow: auto; padding: 6px; text-align: left; width: 640px;"><span style="color: yellow;">sudo apt-get install build-essential linux-headers-`uname -r` psmisc</span></pre>
<br />
<br />
Source<br />
<a href="http://ubuntuforums.org/showthread.php?t=1561822"><b>10.04 (as Guest) and VMware Tools</b></a>MaLaGasyhttp://www.blogger.com/profile/13615587620409404188noreply@blogger.com0tag:blogger.com,1999:blog-5261147620476854545.post-59552639843767938402012-02-14T19:05:00.000-08:002012-02-15T02:06:02.826-08:00Ubuntu: Enter password for keyring ‘Default’ to unlockOS: Ubuntu 11.10<br />
<br />
<div class="separator" style="clear: both; text-align: center;">
<a href="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEiejIYIyBComq5cbc0ZWug3ZxRR0m1yGcJTY_uoXRd-TxmWhS-Pa9LXyKMdfRNMkrj-AW-hafOnAUIaRCYbnTec403ov7k7sxM4iusz6GDMdrwwGE3-sY1T4fnly9_ct6dcc4tb7Gds6v-a/s1600/Screen+Shot+2012-02-15+at+02.31.02.png" imageanchor="1" style="margin-left: 1em; margin-right: 1em;"><img border="0" height="127" src="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEiejIYIyBComq5cbc0ZWug3ZxRR0m1yGcJTY_uoXRd-TxmWhS-Pa9LXyKMdfRNMkrj-AW-hafOnAUIaRCYbnTec403ov7k7sxM4iusz6GDMdrwwGE3-sY1T4fnly9_ct6dcc4tb7Gds6v-a/s320/Screen+Shot+2012-02-15+at+02.31.02.png" width="320" /></a></div>
<br />
Pour ne plus avoir à entrer le mot de passe root à chaque nouvelle connection, il suffit juste de désactiver le mot de passe via l'application "<span style="color: orange;">Passwords and Keys</span>", que l'on peut lancer en tapant ALT + F2, puis de lancer une recherche sur: <b style="color: orange;">seahorse</b><br />
<br />
<div class="separator" style="clear: both; text-align: center;">
<a href="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEidHFaoCeh2tN4Gb_bLaJSIZIimh7T27q64GeCiUC79WImi5NRBAka_fGZ5U1-u5DX8pH-vaboJhfZWQHJE39c2rj_0zWobjRe1s9bRsahZpXq_6Q8NXArMb16XuGIAQVH9OvIYOT2aDbOP/s1600/Screen+Shot+2012-02-15+at+02.41.00.png" imageanchor="1" style="margin-left: 1em; margin-right: 1em;"><img border="0" height="202" src="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEidHFaoCeh2tN4Gb_bLaJSIZIimh7T27q64GeCiUC79WImi5NRBAka_fGZ5U1-u5DX8pH-vaboJhfZWQHJE39c2rj_0zWobjRe1s9bRsahZpXq_6Q8NXArMb16XuGIAQVH9OvIYOT2aDbOP/s320/Screen+Shot+2012-02-15+at+02.41.00.png" width="320" /></a></div>
<br />
Faites un click droit sur le fichier contenant le mot de passe, puis de choisir de le modifier. <br />
<br />
<div class="separator" style="clear: both; text-align: center;">
<a href="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEjklH1met1tvacErF2cLsFKjXZE6OLupcqPt4z5DY5Jv0FRKdXp58KdFHetb7fY-fEsH-QJMIlkQa2iiYqB2Eg3Vv6rVFhMq7ghcZwT1CyNVhRhfKKWifyCqHK1N8GLzzI5GBtozN8yjMFD/s1600/Screen+Shot+2012-02-15+at+02.46.17.png" imageanchor="1" style="margin-left: 1em; margin-right: 1em;"><img border="0" height="320" src="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEjklH1met1tvacErF2cLsFKjXZE6OLupcqPt4z5DY5Jv0FRKdXp58KdFHetb7fY-fEsH-QJMIlkQa2iiYqB2Eg3Vv6rVFhMq7ghcZwT1CyNVhRhfKKWifyCqHK1N8GLzzI5GBtozN8yjMFD/s320/Screen+Shot+2012-02-15+at+02.46.17.png" width="307" /></a></div>
<br />
Laissez vide le champ pour le nouveau mot de passe <br />
<br />
<div class="separator" style="clear: both; text-align: center;">
<a href="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEht7dpOHZnCmnQ55L8JD8stvGJERMScnLa8LPFxM3U_CAf2pVmkSpEfuLE1xbZKUxytCxZkH0bOjQrjHOe4XU02XjgRBovFXEWf6TvQXxV3YB6QvB612AYzfXGbzJaPzTgaVGOKHuS_Uaf7/s1600/Screen+Shot+2012-02-15+at+02.47.31.png" imageanchor="1" style="margin-left: 1em; margin-right: 1em;"><img border="0" height="145" src="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEht7dpOHZnCmnQ55L8JD8stvGJERMScnLa8LPFxM3U_CAf2pVmkSpEfuLE1xbZKUxytCxZkH0bOjQrjHOe4XU02XjgRBovFXEWf6TvQXxV3YB6QvB612AYzfXGbzJaPzTgaVGOKHuS_Uaf7/s320/Screen+Shot+2012-02-15+at+02.47.31.png" width="320" /></a></div>
<br />
<div class="separator" style="clear: both; text-align: center;">
<a href="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEhVhrdXkcwasStHfZ6yIAtrJFHXjazE-8gGXA_g1ZeRCGdcK6OL3tJ5snd9JT7T5e-UORhJo-JfoW8QEK-iWxtr9wWmJgC1569wROx6Vmfb6nKWgn6KDP9nCIds4opYV0fYodpfyosXaHYh/s1600/Screen+Shot+2012-02-15+at+02.47.52.png" imageanchor="1" style="margin-left: 1em; margin-right: 1em;"><img border="0" height="89" src="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEhVhrdXkcwasStHfZ6yIAtrJFHXjazE-8gGXA_g1ZeRCGdcK6OL3tJ5snd9JT7T5e-UORhJo-JfoW8QEK-iWxtr9wWmJgC1569wROx6Vmfb6nKWgn6KDP9nCIds4opYV0fYodpfyosXaHYh/s320/Screen+Shot+2012-02-15+at+02.47.52.png" width="320" /></a></div>
<br />
Sources<br />
<a href="http://askubuntu.com/questions/68292/how-to-auto-unlock-keyring-manager">How to auto-unlock Keyring Manager?</a><br />
<a href="http://maketecheasier.com/auto-unlock-keyring-manager-in-ubuntu-intrepid/2009/03/14">Auto-Unlock Keyring Manager In Ubuntu Intrepid</a><br />
<a href="http://ubuntu-help.blogspot.com/2011/01/ubuntu-enter-password-for-keyring.html">Ubuntu - Enter password for keyring ‘Default’ to unlock </a>MaLaGasyhttp://www.blogger.com/profile/13615587620409404188noreply@blogger.com0tag:blogger.com,1999:blog-5261147620476854545.post-31526389948175935442012-02-14T18:23:00.000-08:002012-02-15T06:37:54.499-08:00Ubuntu: waiting for network configuration<div class="separator" style="clear: both; text-align: center;">
<a href="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEjCy_7dAGk-CjPsS3gGU86yAt6A2kN6wRrG52gXpKKRGA6t8x7OiNuFHmvLBFFazLbxENJ68TLx_bylGfC70fGThJ0sdb1scw0gOBdI19SXnLbHC7T3Hjvz2aApJ7e__5ROnYCsdlE1fZd6/s1600/Screen+Shot+2012-02-15+at+02.05.16.png" imageanchor="1" style="margin-left: 1em; margin-right: 1em;"><img border="0" height="173" src="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEjCy_7dAGk-CjPsS3gGU86yAt6A2kN6wRrG52gXpKKRGA6t8x7OiNuFHmvLBFFazLbxENJ68TLx_bylGfC70fGThJ0sdb1scw0gOBdI19SXnLbHC7T3Hjvz2aApJ7e__5ROnYCsdlE1fZd6/s320/Screen+Shot+2012-02-15+at+02.05.16.png" width="320" /></a></div>
<br />
<div class="separator" style="clear: both; text-align: center;">
<a href="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEiPjGZXIBnVWJIvH0fXfsHFtu9Twojj3tP5ghjSVBy4a5qYwZj35nwR7_4tMCGvZo8m4LgPwoo0490UWlRhukHRQirW7VglaUwtu3k5aLjzlcoeDV4_SdJOwJkf5PP835eDc90fLnzpsbSA/s1600/Screen+Shot+2012-02-15+at+02.05.44.png" imageanchor="1" style="margin-left: 1em; margin-right: 1em;"><img border="0" height="146" src="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEiPjGZXIBnVWJIvH0fXfsHFtu9Twojj3tP5ghjSVBy4a5qYwZj35nwR7_4tMCGvZo8m4LgPwoo0490UWlRhukHRQirW7VglaUwtu3k5aLjzlcoeDV4_SdJOwJkf5PP835eDc90fLnzpsbSA/s320/Screen+Shot+2012-02-15+at+02.05.44.png" width="320" /></a></div>
<div class="separator" style="clear: both; text-align: center;">
<br /></div>
<br />
Si vous rencontrez les messages ci-dessous lors du démarrage d'Ubuntu:<br />
<blockquote class="tr_bq">
<div style="color: orange;">
Waiting for network configuration ... </div>
</blockquote>
<blockquote class="tr_bq">
<div style="color: orange;">
Waiting up to 60 more seconds for network configuration ... </div>
</blockquote>
<blockquote class="tr_bq">
<div style="color: orange;">
Booting system without full network configuration ...</div>
</blockquote>
<br />
Pour y remédier, j'ai supprimé toutes lignes du fichier <b>/etc/network/interfaces</b> et de ne garder que:<br />
<div class="container">
<blockquote class="tr_bq" style="color: yellow;">
<div class="line number1 index0 alt2">
<code class="plain plain">auto lo</code></div>
<div class="line number2 index1 alt1">
<code class="plain plain">iface lo inet loopback</code></div>
</blockquote>
<div class="line number2 index1 alt1">
</div>
</div>
Ensuite de lancer la commande<br />
<blockquote class="tr_bq" style="color: yellow;">
# sudo chattr +i /etc/network/interfaces</blockquote>
<br />
<span style="font-size: large;"><b>Source</b></span><br />
<a href="http://www.codewhirl.com/2011/10/ubuntu-11-10-waiting-up-to-60-more-seconds-for-network-configuration/">Ubuntu 11.10 Waiting up to 60 more seconds for network configuration… </a>MaLaGasyhttp://www.blogger.com/profile/13615587620409404188noreply@blogger.com2tag:blogger.com,1999:blog-5261147620476854545.post-13518906348038954932012-02-13T19:05:00.000-08:002012-02-16T04:18:00.494-08:00Debian: activation des couleurs dans shell en mode RootComme vous l'avez certainement remarqué, la coloration des différents fichiers dans le shell en mode Root n'est pas activée par défaut. Pour le faire, il suffit de dé-commenter (supprimer les <b style="color: orange;">#</b>), dans le fichier <b>/root/.bashrc</b>, les lignes suivantes<br />
<blockquote class="tr_bq" style="color: orange;">
export LS_OPTIONS='--color=auto'<br />eval "`dircolors`"<br />
alias ls='ls $LS_OPTIONS'<br />
alias ll='ls $LS_OPTIONS -l'<br />
alias l='ls $LS_OPTIONS -lA'</blockquote>
<br />
<div class="separator" style="clear: both; text-align: center;">
<a href="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEjAA_R4FvSJUh3wypvNzLU898O0LXDGyxHgrwPvpbNXCDrSajnSdTbM3Dwqwav8DGZQ1XZ-T74lK_jIF3rD1JuS_yAOJlke3qqANdEw6e009Z8EIpBrIlkzoseAvB2P0KLgZ9HSVD1MTQ4O/s1600/Screenshot-malagasy@debian:+%7E.png" imageanchor="1" style="margin-left: 1em; margin-right: 1em;"><img border="0" height="223" src="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEjAA_R4FvSJUh3wypvNzLU898O0LXDGyxHgrwPvpbNXCDrSajnSdTbM3Dwqwav8DGZQ1XZ-T74lK_jIF3rD1JuS_yAOJlke3qqANdEw6e009Z8EIpBrIlkzoseAvB2P0KLgZ9HSVD1MTQ4O/s320/Screenshot-malagasy@debian:+%7E.png" width="320" /></a></div>
<br />
Ensuite, relancer le shell avec la commande<br />
<blockquote class="tr_bq">
# <span style="color: yellow;">cd /root
</span><br />
#<span style="color: yellow;">. .bashrc</span></blockquote>
<div class="separator" style="clear: both; text-align: center;">
<a href="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEggffTxkWKG4cvXFUOzecG3DC1RLRDYZXAeYf6s4kcH-I0IpLm8-B6fEgmZTH7Za1WKcGFexO_jvKS1S1YYF2UmB4B2zF-TNTBIoXR9VIu1Q5vxGhUyzzK3r0Wcp0vcNZ1rmTzB23FMFD2s/s1600/Screenshot-malagasy%2540debian%253A+%257E-1.png" imageanchor="1" style="margin-left: 1em; margin-right: 1em;"><img border="0" height="170" src="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEggffTxkWKG4cvXFUOzecG3DC1RLRDYZXAeYf6s4kcH-I0IpLm8-B6fEgmZTH7Za1WKcGFexO_jvKS1S1YYF2UmB4B2zF-TNTBIoXR9VIu1Q5vxGhUyzzK3r0Wcp0vcNZ1rmTzB23FMFD2s/s320/Screenshot-malagasy%2540debian%253A+%257E-1.png" width="320" /></a></div>
<br />
<br />MaLaGasyhttp://www.blogger.com/profile/13615587620409404188noreply@blogger.com0tag:blogger.com,1999:blog-5261147620476854545.post-88133388872718871282012-01-24T15:57:00.000-08:002012-01-30T03:03:04.351-08:00Debian: Lecture de video impossibleMessage d'erreur<br />
<br />
<blockquote class="tr_bq">
<span style="color: orange;">[swscaler @ 0x3450020] pal8 is not supported as output pixel format</span><br />
<span style="color: orange;">[0x27f15e0] swscale scale error: could not init SwScaler and/or allocate memory</span><br />
<br />
<span style="color: orange;">[0x7f7428029e80] xcb_xv generic error: no available XVideo adaptor</span></blockquote>
<br />
<div class="separator" style="clear: both; text-align: center;">
<a href="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEg9UmfldFE08nqTcGy89gw_2xJ9oTDKCX7b4WeHcLJEie4jc4yuNm6nV7pTsBj3XVQtdCTtGj491Gh4c3VqtzUQMDXjwQjI8q321bzl91DpQPOn0QGv-0t-9Gc3djGxnZUJ04EArBpcJGAZ/s1600/Screenshot.png" imageanchor="1" style="margin-left: 1em; margin-right: 1em;"><img border="0" height="266" src="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEg9UmfldFE08nqTcGy89gw_2xJ9oTDKCX7b4WeHcLJEie4jc4yuNm6nV7pTsBj3XVQtdCTtGj491Gh4c3VqtzUQMDXjwQjI8q321bzl91DpQPOn0QGv-0t-9Gc3djGxnZUJ04EArBpcJGAZ/s320/Screenshot.png" width="320" /></a></div>
<br />
<br />
Ce problème est surement arrivé depuis que j'ai ajouté le lien vers le dépot multimedia dans /etc/apt/sources.list, qu'il faut absolument supprimer avant de suivre les étapes ci-dessous:<br />
<br />
Le contenu de mon fichier <b> /etc/apt/sources.list</b>, sans rien ajouter de plus<br />
<br />
<blockquote class="tr_bq" style="background-color: #38761d; color: #ead1dc;">
###### Debian Main Repos<br />
deb http://ftp.fr.debian.org/debian/ squeeze main contrib non-free<br />
<br />
###### Debian Update Repos<br />
deb http://security.debian.org/ squeeze/updates main contrib non-free<br />
deb http://ftp.fr.debian.org/debian/ squeeze-proposed-updates main contrib non-free</blockquote>
<br />
Ensuite<br />
<blockquote class="tr_bq" style="color: yellow;">
<div>
# aptitude update</div>
# aptitude remove libavutil* vlc<br />
# aptitude install vlc</blockquote>
<br />
<div style="color: #f3f3f3;">
<span style="font-size: large;"><b>Source</b></span></div>
<a href="http://forum.videolan.org/viewtopic.php?t=70719&f=13">The VideoLAN project strongly advises that you do not use the Debian Multimedia repository under any circumstances</a>MaLaGasyhttp://www.blogger.com/profile/13615587620409404188noreply@blogger.com0tag:blogger.com,1999:blog-5261147620476854545.post-7763051902166739592012-01-23T01:38:00.000-08:002012-01-24T15:59:16.826-08:00Debian: Message d'erreur après avoir choisi un clavier Mac dans les préférencesEn voulant choisir le clavier Mac dans les préférences de Gnome, je suis invité à rapporter le message d'erreur ci-dessous<br />
<blockquote class="tr_bq" style="color: orange;">
Error activating XKB configuration.<br />
It can happen under various circumstances:<br />
- a bug in libxklavier library<br />
- a bug in X server (xkbcomp, xmodmap utilities)<br />
- X server with incompatible libxkbfile implementation</blockquote>
<br />
<div class="separator" style="clear: both; text-align: center;">
</div>
<div class="separator" style="clear: both; text-align: center;">
</div>
<div class="separator" style="clear: both; text-align: center;">
</div>
<div class="separator" style="clear: both; text-align: center;">
</div>
<br />
<div class="separator" style="clear: both; text-align: center;">
<a href="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEgvqtACiBSGKN69S27rch7ywqnYxRtl94xOGydkloLUavQjCHNug_Bnd2CxYNPNc8P8TDgaNnQEV-DDiCzooI5vrWCCa69SrRIt6TzGGuGjf6luI8osMdJNostaO55MOG17kJGZP-1Z9S7i/s1600/Screenshot-Untitled+Window.png" imageanchor="1" style="margin-left: 1em; margin-right: 1em;"><img border="0" height="252" src="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEgvqtACiBSGKN69S27rch7ywqnYxRtl94xOGydkloLUavQjCHNug_Bnd2CxYNPNc8P8TDgaNnQEV-DDiCzooI5vrWCCa69SrRIt6TzGGuGjf6luI8osMdJNostaO55MOG17kJGZP-1Z9S7i/s320/Screenshot-Untitled+Window.png" width="320" /></a></div>
<br />
<br />
<br />
Ce qu'il ne faut pas faire, c'est de choisir dans Layout un clavier de type Macintosh.<br />
<br />
<div class="separator" style="clear: both; text-align: center;">
<a href="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEhn7MlPIF7AaVe1BiOD5T2jY46rFlqFoztZ_PwdxwRik8qEC21DO4D-yr6_mAUa69l2h39kHBgqcibkfoMwQt9MLNtAAiuTWJrEQFGWSLyUxSaXyaTAKiC4FEgOOjtRB8FXTsemMHWIKj_N/s1600/Screenshot-Keyboard+Preferences.png" imageanchor="1" style="margin-left: 1em; margin-right: 1em;"><img border="0" height="320" src="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEhn7MlPIF7AaVe1BiOD5T2jY46rFlqFoztZ_PwdxwRik8qEC21DO4D-yr6_mAUa69l2h39kHBgqcibkfoMwQt9MLNtAAiuTWJrEQFGWSLyUxSaXyaTAKiC4FEgOOjtRB8FXTsemMHWIKj_N/s320/Screenshot-Keyboard+Preferences.png" width="296" /></a></div>
<br />
<br />
Mais de le faire uniquement dans Keyboard Model.<br />
<br />
<div class="separator" style="clear: both; text-align: center;">
<a href="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEjM4jAxBjeydeXRtqARXWSx0kQ4witd2Hy4DKidGpyMO8A-aQ9e6F7Edq8kmJa7dD76L2nScxl3Zk1qiFv-R07mHkUDTVOn5LRiW3R13pCkaYHEMePCPl1Yg-6Lp89aTxXn9B578uqT9AlO/s1600/Screenshot-Keyboard+Preferences-1.png" imageanchor="1" style="margin-left: 1em; margin-right: 1em;"><img border="0" height="320" src="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEjM4jAxBjeydeXRtqARXWSx0kQ4witd2Hy4DKidGpyMO8A-aQ9e6F7Edq8kmJa7dD76L2nScxl3Zk1qiFv-R07mHkUDTVOn5LRiW3R13pCkaYHEMePCPl1Yg-6Lp89aTxXn9B578uqT9AlO/s320/Screenshot-Keyboard+Preferences-1.png" width="296" /></a></div>
<br />
<br />
<div style="color: #f3f3f3;">
<span style="font-size: large;"><b>Source</b></span></div>
<a href="http://ubuntuforums.org/showthread.php?t=1729522"><span style="font-size: small;">Error activating XKB configuration </span></a>MaLaGasyhttp://www.blogger.com/profile/13615587620409404188noreply@blogger.com0tag:blogger.com,1999:blog-5261147620476854545.post-42789840718649169392012-01-22T18:45:00.000-08:002012-01-30T02:58:52.709-08:00Debian: Problème de mise-à-jour après l'installation de VMWareMessage d'erreur<br />
<br />
<div style="color: orange; padding-left: 30px;">
<span style="font-family: 'courier new',courier;">insserv: Starting vmware-USBArbitrator depends on rmnologin and therefore on system facility `$all' which can not be true!</span></div>
<br />
<br />
<div class="separator" style="clear: both; text-align: center;">
<a href="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEgCKWHxxZLYAaFtsVRN3xHEw50d3N95K6RI5iJloE5wxHbc7FyHiazx1l8zRzwZpfVLAc17llE7NlHiiL6dce5IzswtQd7bP8yZdI78Blfb1D-1R2JfXeYkcEbxZ9fg0ilyOja4VTipaKtp/s1600/0.png" imageanchor="1" style="margin-left: 1em; margin-right: 1em;"><img border="0" height="166" src="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEgCKWHxxZLYAaFtsVRN3xHEw50d3N95K6RI5iJloE5wxHbc7FyHiazx1l8zRzwZpfVLAc17llE7NlHiiL6dce5IzswtQd7bP8yZdI78Blfb1D-1R2JfXeYkcEbxZ9fg0ilyOja4VTipaKtp/s320/0.png" width="320" /></a></div>
<br />
<br />
Pour y remédier, il faut créer deux fichiers <i>/etc/insserv/overrides/vmware</i>, puis <i>/etc/insserv/overrides/vmware-USBArbitrator</i> et les rendre exécutables:<br />
<br />
Contenu du fichier<b><i> /etc/insserv/overrides/vmware</i></b><br />
<blockquote class="tr_bq" style="color: #ead1dc;">
<div id="_mcePaste">
### BEGIN INIT INFO</div>
<div id="_mcePaste">
# Provides: vmware</div>
<div id="_mcePaste">
# Required-Start: $remote_fs $syslog</div>
<div id="_mcePaste">
# Required-Stop: $remote_fs $syslog</div>
<div id="_mcePaste">
# Default-Start: 2 3 5</div>
<div id="_mcePaste">
# Default-Stop: 2 3 5</div>
<div id="_mcePaste">
# Short-Description: VMware VMX service for virtual machines</div>
<div id="_mcePaste">
# Description: Allows running of VMware virtual machines. </div>
<div id="_mcePaste">
### END INIT INFO</div>
</blockquote>
<div style="height: 8pt; min-height: 8pt; padding: 0px;">
<br /></div>
Contenu du fichier<b><i> /etc/insserv/overrides/vmware-USBArbitrator</i></b><br />
<div style="height: 8pt; min-height: 8pt; padding: 0px;">
<br /></div>
<blockquote class="tr_bq" style="color: #ead1dc;">
### BEGIN INIT INFO<br />
# Provides: vmware-USBArbitrator<br />
# Required-Start: $remote_fs $syslog vmware<br />
# Required-Stop: $remote_fs $syslog vmware<br />
# Default-Start: 2 3 5<br />
# Default-Stop: 2 3 5<br />
# Short-Description: Start daemon when vmware starts<br />
# Description: Enable service provided by daemon.<br />
### END INIT INFO</blockquote>
<div style="height: 8pt; min-height: 8pt; padding: 0px;">
<br /></div>
Lancer ensuite les commandes<br />
<blockquote class="tr_bq" style="color: yellow;">
# chmod +x /etc/insserv/overrides/vmware*<br />
# cd /etc/insserv/overrides <br />
# ./vmware<br />
# ./vmware-USBArbitrator</blockquote>
<br />
<span style="font-size: large;"><b>Source</b></span><br />
<a href="http://communities.vmware.com/message/1870110#1870110">Vmware Player Prevents Aptitude from Installing Debian Packages</a>MaLaGasyhttp://www.blogger.com/profile/13615587620409404188noreply@blogger.com0tag:blogger.com,1999:blog-5261147620476854545.post-49115960573662351072012-01-21T07:53:00.000-08:002012-01-30T03:45:20.691-08:00Debian: Installation de VMWare Player<span style="font-size: large;"><span style="font-size: small;">Il est temps d'essayer un autre outil de virtualisation. Pourquoi pas VMWare?</span><b> </b></span><br />
<br />
<span style="font-size: large;"><b>Installation</b></span><br />
<br />
Après avoir récupéré le fichier <a href="http://www.vmware.com/products/player/overview.html">VMware-Player-3.1.1-282343.x86_64.bundle</a>, l'installation se fait tout simplement avec la commande<br />
<br />
<div style="color: yellow; font-family: Times,"Times New Roman",serif;">
<span style="font-size: small;"># sh VMware-Player-3.1.1-282343.x86_64.bundle</span></div>
<br />
<div class="separator" style="clear: both; text-align: center;">
<a href="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEisdDwysjXUvdRcTKNQ9iGjsEB9xnSnN2ARlTyf-KPHQIT6xot1v73qxpoAAnI8T9-Wg_GOc_cOxcBzOINjvhQWjZJQYAdR5k54XJFGrYrkcxYLatTwAVaSU6rkvmhPV20-PzbDglbHyI-J/s1600/1.png" imageanchor="1" style="margin-left: 1em; margin-right: 1em;"><img border="0" height="250" src="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEisdDwysjXUvdRcTKNQ9iGjsEB9xnSnN2ARlTyf-KPHQIT6xot1v73qxpoAAnI8T9-Wg_GOc_cOxcBzOINjvhQWjZJQYAdR5k54XJFGrYrkcxYLatTwAVaSU6rkvmhPV20-PzbDglbHyI-J/s320/1.png" width="320" /></a></div>
<br />
<div class="separator" style="clear: both; text-align: center;">
<a href="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEit8ycbq20C1rK6QFZLaOpdRVrXJj30BG76WBeLUfCazcn9f5PGfJL2NKKgPwQciSdd_M7qweJv6JE0w6bn9zxfm7yPxNdpbpoOkkSpDforGqHBG90qEDE4Ge2bBLIRPvcPqd5KHIlODdy1/s1600/2.png" imageanchor="1" style="margin-left: 1em; margin-right: 1em;"><img border="0" height="250" src="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEit8ycbq20C1rK6QFZLaOpdRVrXJj30BG76WBeLUfCazcn9f5PGfJL2NKKgPwQciSdd_M7qweJv6JE0w6bn9zxfm7yPxNdpbpoOkkSpDforGqHBG90qEDE4Ge2bBLIRPvcPqd5KHIlODdy1/s320/2.png" width="320" /></a></div>
<br />
<div class="separator" style="clear: both; text-align: center;">
<a href="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEhlyymJys0A89hgsbEJP9H2EY7861tT8ZA3SxoVBm6lCa-d3OHkVJHg0u6tMVgHlNd_DkFX_NgN7GHjIWYC9auxJIYyaA1ws7G5HEdapMpgm4iAQCrvFFN4xRTXT-_fFw6k6F3Xf5m2Ech2/s1600/3.png" imageanchor="1" style="margin-left: 1em; margin-right: 1em;"><img border="0" height="239" src="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEhlyymJys0A89hgsbEJP9H2EY7861tT8ZA3SxoVBm6lCa-d3OHkVJHg0u6tMVgHlNd_DkFX_NgN7GHjIWYC9auxJIYyaA1ws7G5HEdapMpgm4iAQCrvFFN4xRTXT-_fFw6k6F3Xf5m2Ech2/s320/3.png" width="320" /></a></div>
<br />
Installer ensuite les paquets suivants:<br />
<div style="color: yellow; font-family: Times,"Times New Roman",serif;">
<span style="font-size: small;"><br /></span></div>
<pre style="color: yellow; font-family: Times,"Times New Roman",serif;"><span style="font-size: small;"># aptitude install linux-headers-`uname -r` libx11-6 libx11-dev x-window-system-core x-window-system xspecs libxtst6 psmisc build-essential ia32-libs</span></pre>
<pre style="color: yellow; font-family: Times,"Times New Roman",serif;"><span style="font-size: small;"># apt-get update</span></pre>
<pre style="color: yellow; font-family: Times,"Times New Roman",serif;"><span style="font-size: small;"> </span><span style="font-size: small;"># apt-get install linux-headers-$(uname -r)</span></pre>
<pre> </pre>
<pre></pre>
Et voilou,<br />
<br />
<div class="separator" style="clear: both; text-align: center;">
<a href="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEg-BYJysDZ-hzAV3jE0lrPD6yc89EptADF7f5YdMwYgaDZTPChPgOdm0yPEFuxJnLd0GxIQwHMFAkeg-7CTPGx0BXfsBECjMqWq9a2xvTr785_QdlcTNHyH-2oF9ORYqqz5hqrfwlLW75nB/s1600/4.png" imageanchor="1" style="margin-left: 1em; margin-right: 1em;"><img border="0" height="82" src="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEg-BYJysDZ-hzAV3jE0lrPD6yc89EptADF7f5YdMwYgaDZTPChPgOdm0yPEFuxJnLd0GxIQwHMFAkeg-7CTPGx0BXfsBECjMqWq9a2xvTr785_QdlcTNHyH-2oF9ORYqqz5hqrfwlLW75nB/s320/4.png" width="320" /></a></div>
<br />
<div class="separator" style="clear: both; text-align: center;">
<a href="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEihQLOEhFmVGCbBq1bliYIrjC33OXcyU8pp30rS4FmnWgbfGY0kRQDUktRNW88xg5vE-4nDiWyfL8K5NQAj0xI8Flt2GWOjMN8OhUMk21SoLJqjLZgRjiF_R632YfTgHfJtM3jdPhm4qy5L/s1600/5.png" imageanchor="1" style="margin-left: 1em; margin-right: 1em;"><img border="0" height="280" src="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEihQLOEhFmVGCbBq1bliYIrjC33OXcyU8pp30rS4FmnWgbfGY0kRQDUktRNW88xg5vE-4nDiWyfL8K5NQAj0xI8Flt2GWOjMN8OhUMk21SoLJqjLZgRjiF_R632YfTgHfJtM3jdPhm4qy5L/s320/5.png" width="320" /></a></div>
<br />
<div class="separator" style="clear: both; text-align: center;">
</div>
<div class="separator" style="clear: both; text-align: center;">
</div>
<div class="separator" style="clear: both; text-align: center;">
<a href="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEgslFKeaAmRlVhnGmcrd0o-cPh9y60T2eAki3Z5GOzlJEqxk3iaVQl4nuO1gBMuHZ5fvMl1rlMss4z_y3FmbDiP2B_n08f7WcapqcwZeC5QxBoLAIGN1CeztA5Z8r2dATUwAp-sNbL3LR2x/s1600/6.png" imageanchor="1" style="margin-left: 1em; margin-right: 1em;"><img border="0" height="280" src="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEgslFKeaAmRlVhnGmcrd0o-cPh9y60T2eAki3Z5GOzlJEqxk3iaVQl4nuO1gBMuHZ5fvMl1rlMss4z_y3FmbDiP2B_n08f7WcapqcwZeC5QxBoLAIGN1CeztA5Z8r2dATUwAp-sNbL3LR2x/s320/6.png" style="cursor: move;" width="320" /></a></div>
<div class="separator" style="clear: both; text-align: center;">
</div>
<br />
<div class="separator" style="clear: both; text-align: center;">
<a href="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEiydPrsCyZNlofOKGW5S3Wgq94wHtDFizQkOwRNhldlElc3Y5upYdLH8eO7Ynf4rtCnIjLOvvlpT_oDZxOABsP0XZGls2xA_AhGOkP50aq6z8ysHsAzhupNWDRoZg0zcR9dnLHq9iLQxzr2/s1600/7.png" imageanchor="1" style="margin-left: 1em; margin-right: 1em;"><img border="0" height="260" src="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEiydPrsCyZNlofOKGW5S3Wgq94wHtDFizQkOwRNhldlElc3Y5upYdLH8eO7Ynf4rtCnIjLOvvlpT_oDZxOABsP0XZGls2xA_AhGOkP50aq6z8ysHsAzhupNWDRoZg0zcR9dnLHq9iLQxzr2/s320/7.png" width="320" /></a></div>
<br />
<span style="font-size: large;"><b>Mode plein écran </b></span><br />
<br />
Pour l'utilisation en plein écran, il suffit dans un premier temps de cliquer dans la barre de menu "Virtual Machine > Install VMware tool".<br />
<br />
Une fois c'est fait, il faut monter le lecteur CD si ce n'est pas fait automatiquement, puis de lancer l'installation de l'outil VMWare:<br />
<blockquote class="tr_bq" style="color: yellow;">
<div>
<span style="font-family: Times,"Times New Roman",serif;"># cat /etc/fstab</span></div>
<div>
<span style="font-family: Times,"Times New Roman",serif;">/dev/scd0 /media/cdrom0 udf,iso9660 user,noauto 0 0</span></div>
<div>
<br /></div>
<div>
<span style="font-family: Times,"Times New Roman",serif;"># mount -t iso9660 /dev/scd0 /media/cdrom0</span></div>
<div>
<br /></div>
<div>
<span style="font-family: Times,"Times New Roman",serif;"># cp /media/cdrom0/VMWareTools<VERSION>.tar.gz ~/</span></div>
<div>
<span style="font-family: Times,"Times New Roman",serif;"># cd ~</span></div>
<div>
<br /></div>
<div>
<span style="font-family: Times,"Times New Roman",serif;"># tar -zxvf VMWareTools<VERSION>.tar.gz</span></div>
<div>
<br /></div>
<div>
<span style="font-family: Times,"Times New Roman",serif;"># cd vmware-tools-distrib </span></div>
<div>
<span style="font-family: Times,"Times New Roman",serif;"># ./vmware-install.pl</span></div>
</blockquote>
Il ne vous reste plus qu'a appuyer sur Entrée pour valider et accepter les réponses par défaut aux questions posées.<br />
<br />
Une fois terminée, vous pouvez redémarrer la machine virtuelle et le lancer en mode plein ecran.<br />
<br />
<span style="font-size: large;"><b>Partage de fichiers</b></span><br />
<br />
Déception, puisqu'il n'est pas possible de le faire avec la version de VMWare Player. Il faut donc <a href="http://serveuretreseau.blogspot.com/">passer par un serveur FTP</a>.<br />
<br />
Une autre solution est proposée sur <a href="http://www.visoracle.com/vm/debian40/sharedfolders.html">cette page [1]</a> en manipulant directement sur le fichier .vmx. <br />
<br />
<div style="color: #eeeeee;">
<span style="font-size: large;"><b>Source</b></span></div>
<a href="http://wiki.debian.org/VMware">VMWare - Debian Wiki</a><br />
<br />MaLaGasyhttp://www.blogger.com/profile/13615587620409404188noreply@blogger.com0tag:blogger.com,1999:blog-5261147620476854545.post-24491450291649201352011-12-29T04:51:00.000-08:002012-02-17T01:08:55.704-08:00Mac: Partage de dossier avec comme invité Ubuntu et Debian<div style="color: cyan;">
<b>Host</b>: Mac OS X 10.7</div>
<div style="color: cyan;">
<b>Guest1</b>: Ubuntu 11.10<br />
<b>Guest2</b>: Debian 6.0</div>
<br />
<br />
<span style="font-size: large;"><b>I. Message d'erreur</b></span><br />
<br />
La commande à utiliser pour monter un dossier de partage est la suivante:<br />
<blockquote class="tr_bq">
# mount -t vboxsf -o uid=1000,gid=1000,umask=0 DOSSIER_A_PARTAGER /media/PARTAGE<span style="font-size: small;"><b> </b></span></blockquote>
Si vous rencontrez le message d'erreur suivant:<br />
<blockquote class="tr_bq" style="color: orange;">
"/sbin/mount.vboxsf: mounting failed with the error: No such file or directory"
</blockquote>
Il vous faut taper dans une console la commande<br />
<blockquote class="tr_bq" style="color: yellow;">
# aptitude install build-essential linux-headers-`uname -r`</blockquote>
Puis de réinstaller le GuestAddition <br />
<blockquote class="tr_bq" style="color: yellow;">
# sh /media/cdrom0/VBoxLinuxAdditions.run install</blockquote>
<br />
<br />
<span style="font-size: large;"><b>II. Accès automatique au dossier de partage</b></span><br />
<br />
Il semblerait que la seule méthode pour pouvoir partager automatiquement un dossier entre l'hôte et l'invité serait d'ajouter la commande ci-dessous dans un script, et plus précisément au niveau de /etc/rc.local<br />
<blockquote class="tr_bq" style="color: yellow;">
mount -t vboxsf -o uid=1000,gid=1000,umask=0 DOSSIER_A_PARTAGER /media/PARTAGE</blockquote>
Voici donc le nouveau contenu de mon fichier <b>/etc/rc.local</b><br />
<blockquote class="tr_bq">
<span style="color: #fff2cc;">#!/bin/sh -e</span><br />
<span style="color: #fff2cc;">#</span><br />
<span style="color: #fff2cc;"># rc.local</span><br />
<span style="color: #fff2cc;">#</span><br />
<span style="color: #fff2cc;"># This script is executed at the end of each multiuser runlevel.</span><br />
<span style="color: #fff2cc;"># Make sure that the script will "exit 0" on success or any other</span><br />
<span style="color: #fff2cc;"># value on error.</span><br />
<span style="color: #fff2cc;">#</span><br />
<span style="color: #fff2cc;"># In order to enable or disable this script just change the execution</span><br />
<span style="color: #fff2cc;"># bits.</span><br />
<span style="color: #fff2cc;">#</span><br />
<span style="color: #fff2cc;"># By default this script does nothing.</span><br />
<br />
<div style="color: orange;">
mount -t vboxsf -o uid=1000,gid=1000,umask=0 shared /media/shared</div>
<span style="color: #fff2cc;">exit 0</span></blockquote>
<br />
<span style="font-size: large;"><b>Source</b></span><br />
<a href="https://help.ubuntu.com/community/VirtualBox/SharedFolders">VirtualBox Shared Folders</a><br />
<a href="http://doc.ubuntu-fr.org/virtualbox">Documentation de VirtualBox sur Ubuntu-fr </a><br />
<a href="http://migrationversubuntu.blogspot.com/2010/04/virtualisation-avec-virtualbox-puel_26.html">Virtualisation avec Virtualbox </a>MaLaGasyhttp://www.blogger.com/profile/13615587620409404188noreply@blogger.com0tag:blogger.com,1999:blog-5261147620476854545.post-52276427425658111582011-12-21T12:26:00.000-08:002012-01-24T16:00:43.617-08:00Mac: Restauration impossible avec LibreOffice<div class="separator" style="clear: both; text-align: center;">
<a href="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEi7mHntB0XcfQqjWlawCZzkRcUO2g6izgInJZqcV-seM-e1AxeKAVGbdFOBNaVGphLKRVfJCGHdQgTZqAFTnMhzqe8JPChvyCyyPO4xFHgBHEdERRtaGaxQH3WazKGiHw6WcAElpzDFHSBr/s1600/Screen+Shot+2011-12-21+at+19.57.28.png" imageanchor="1" style="margin-left: 1em; margin-right: 1em;"><img border="0" height="215" src="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEi7mHntB0XcfQqjWlawCZzkRcUO2g6izgInJZqcV-seM-e1AxeKAVGbdFOBNaVGphLKRVfJCGHdQgTZqAFTnMhzqe8JPChvyCyyPO4xFHgBHEdERRtaGaxQH3WazKGiHw6WcAElpzDFHSBr/s320/Screen+Shot+2011-12-21+at+19.57.28.png" width="320" /></a></div>
<br />
Voici un message persistant qui ne veut pas partir, malgré le fait d'avoir réinstallé l'application LibreOffice, et aussi après avoir effectué un Force-quit. La seule solution pour s'en débarrasser, c'est de taper la commande ci-dessous dans une console:<br />
<br />
<blockquote class="tr_bq" style="color: yellow;">
<pre class="bz_comment_text">rm -fr ~/Library/Saved\ Application\ State/org.libreoffice.script.savedState/</pre>
</blockquote>
<pre class="bz_comment_text"> </pre>
<span style="font-size: large;"><b>Source</b></span><br />
<a href="https://bugs.freedesktop.org/show_bug.cgi?id=39007">Bug 39007 - Persistent "Restore Windows" dialog won't disappear, disables key functionality </a>MaLaGasyhttp://www.blogger.com/profile/13615587620409404188noreply@blogger.com0tag:blogger.com,1999:blog-5261147620476854545.post-86680978554387289952011-12-18T01:12:00.000-08:002012-01-26T01:01:00.114-08:00Modifier la taille d'un disque virtuel dans VirtualboxEffectuez avant tout une copie de sauvegarde de votre fichier .vdi avant d'effectuer cette manipulation ; )<br />
<br />
Pour modifier la taille d'un disque virtuel dans Virtualbox, ou plutôt l'agrandir dans mon cas, il suffit sur d'accéder jusqu'au fichier .vdi du disque à modifier en mode console puis de taper la commande ci-dessous (système invité type Linux):<br />
<blockquote class="tr_bq">
<span style="color: yellow;">$ VBoxManage modifyvdi <span style="color: red;">HD_to_resize.vdi </span>--resize <span style="color: red;">SIZE</span></span></blockquote>
SIZE: 10000 pour 10Go, 20000 pour 20Go, 31000 pour 31Go, etc.<br />
<blockquote class="tr_bq" style="color: yellow;">
$ ls<br />
ubuntu.vbox <span style="color: red;">ubuntu.vdi</span><br />
ubuntu.vbox-prev Logs<br />
<br />
$ VBoxManage modifyvdi ubuntu.vdi --resize <span style="color: red;">15000</span><br />
0%...10%...20%...30%...40%...50%...60%...70%...80%...90%...100%<br />
<br />
$ </blockquote>
Une fois ceci fait, il ne vous suffit plus qu'à ajuster la taille de votre partition avec <a href="http://doc.ubuntu-fr.org/gparted">gparted</a>, ou un autre outil plus approprié selon l'OS de l'invité.<br />
<br />
<span style="font-size: large;"><b>Source</b></span><br />
<a href="http://pierrelachance.net/blog/post/2010/11/04/510-augmenter-la-taille-d-un-disque-virtualbox">Augmenter la taille d'un disque VirtualBox</a>MaLaGasyhttp://www.blogger.com/profile/13615587620409404188noreply@blogger.com0