Ubuntu:Configuration

From Alexandre Navarro's Wiki

(Difference between revisions)
Jump to: navigation, search
(Ubuntu Configuration (intrepid))
Current revision (14:12, 1 May 2012) (edit) (undo)
(Desktop Configuration)
 
(72 intermediate revisions not shown.)
Line 1: Line 1:
-
== Ubuntu Configuration (intrepid) ==
+
= Ubuntu Configuration (intrepid) =
-
=== Desktop Configuration ===
+
== Desktop Configuration ==
 +
* System Settings -> Apparence -> Launch Icon Size
 +
:* 32
-
* Barre de taches :
+
* System Settings -> System Info -> Default Applications
-
:* mettre les fenetres en haut, espaces de travail (mettre sur 2 lignes), lien vers le bureau et moniteur systeme.
+
:* Put chrome (open in a new tab)
-
- changer le format de la date
+
-
* Systeme -> Preferences -> Applications Preferees
+
* System Settings -> Universal Access -> Pointing and Clicking
-
- mettre firefox et thunderbird
+
:* Mouse Keys : On
-
* Systeme -> Preferences -> Clavier
+
* Full screen Dash
-
- Logitech Ultra X
+
gsettings set com.canonical.Unity form-factor 'Netbook'
-
* Systeme -> Preferences -> Economiseur d'ecran
+
* CompizConfig Settings Manager -> Ubuntu Unity Plugin
-
- mettre Matrix View
+
:* Backlight Mode : Backlight Toggles
-
* Systeme -> Preferences -> Effet de bureau
+
* Add Eclipse Application
-
- activer les effets de bureau
+
-
* Systeme -> Preferences -> Preferences Menus et Barre d'outils
+
sudo gedit /usr/share/applications/eclipse.desktop
-
- mettre icones seulement et detachables
+
-
* Systeme -> Preferences -> Notification du courrier
+
[Desktop Entry]
-
- configurer
+
Encoding=UTF-8
 +
Name=Eclipse
 +
Comment=Eclipse IDE
 +
Exec=/home/anavarro/Applications/eclipse/eclipse
 +
Icon=/home/anavarro/Applications/eclipse/icon.xpm
 +
Terminal=false
 +
Type=Application
 +
Categories=GNOME;Application;Development;
 +
StartupNotify=true
-
* Systeme -> Preferences -> Polices
+
* Compiz
-
- mettre lissage sous pixel
+
-
* Systeme -> Preferences -> Raccourcis clavier
+
:* Effects/Animations
-
- mettre WIN + e pour nautilus
+
-
- mettre touches supplementaires
+
-
* Systeme -> Administration -> Fenetre de configuration
+
::* Open Lamp (300ms)
-
- mettre navarroa en login automatique
+
::* Minimize Lamp (300ms)
 +
::* Close Burn (400ms)
-
* Systeme -> Administration -> Impression
+
== Nautilus ==
-
- ajout d'une i560 avec driver CANON BJC-7004
+
 +
* GConf /apps/nautilus/preferences/always_use_location/entry = true
 +
* View in list
 +
* Tree on left
-
############
+
== Apt ==
-
# Nautilus #
+
-
############
+
-
Dans GConf /apps/nautilus/preferences/always_use_location/entry = true
+
sudo gedit /etc/apt/sources.list
 +
#deb cdrom:[Ubuntu 10.04 LTS _Lucid Lynx_ - Release amd64 (20100429)]/ lucid main restricted
 +
# See http://help.ubuntu.com/community/UpgradeNotes for how to upgrade to
 +
# newer versions of the distribution.
 +
 +
deb http://fr.archive.ubuntu.com/ubuntu/ lucid main restricted
 +
deb-src http://fr.archive.ubuntu.com/ubuntu/ lucid main restricted
 +
 +
## Major bug fix updates produced after the final release of the
 +
## distribution.
 +
deb http://fr.archive.ubuntu.com/ubuntu/ lucid-updates main restricted
 +
deb-src http://fr.archive.ubuntu.com/ubuntu/ lucid-updates main restricted
 +
 +
## N.B. software from this repository is ENTIRELY UNSUPPORTED by the Ubuntu
 +
## team. Also, please note that software in universe WILL NOT receive any
 +
## review or updates from the Ubuntu security team.
 +
deb http://fr.archive.ubuntu.com/ubuntu/ lucid universe
 +
deb-src http://fr.archive.ubuntu.com/ubuntu/ lucid universe
 +
deb http://fr.archive.ubuntu.com/ubuntu/ lucid-updates universe
 +
deb-src http://fr.archive.ubuntu.com/ubuntu/ lucid-updates universe
 +
 +
## N.B. software from this repository is ENTIRELY UNSUPPORTED by the Ubuntu
 +
## team, and may not be under a free licence. Please satisfy yourself as to
 +
## your rights to use the software. Also, please note that software in
 +
## multiverse WILL NOT receive any review or updates from the Ubuntu
 +
## security team.
 +
deb http://fr.archive.ubuntu.com/ubuntu/ lucid multiverse
 +
deb-src http://fr.archive.ubuntu.com/ubuntu/ lucid multiverse
 +
deb http://fr.archive.ubuntu.com/ubuntu/ lucid-updates multiverse
 +
deb-src http://fr.archive.ubuntu.com/ubuntu/ lucid-updates multiverse
 +
 +
## Uncomment the following two lines to add software from the 'backports'
 +
## repository.
 +
## N.B. software from this repository may not have been tested as
 +
## extensively as that contained in the main release, although it includes
 +
## newer versions of some applications which may provide useful features.
 +
## Also, please note that software in backports WILL NOT receive any review
 +
## or updates from the Ubuntu security team.
 +
deb http://fr.archive.ubuntu.com/ubuntu/ lucid-backports main restricted universe multiverse
 +
deb-src http://fr.archive.ubuntu.com/ubuntu/ lucid-backports main restricted universe multiverse
 +
 +
## Uncomment the following two lines to add software from Canonical's
 +
## 'partner' repository.
 +
## This software is not part of Ubuntu, but is offered by Canonical and the
 +
## respective vendors as a service to Ubuntu users.
 +
deb http://archive.canonical.com/ubuntu lucid partner
 +
deb-src http://archive.canonical.com/ubuntu lucid partner
 +
 +
deb http://security.ubuntu.com/ubuntu lucid-security main restricted
 +
deb-src http://security.ubuntu.com/ubuntu lucid-security main restricted
 +
deb http://security.ubuntu.com/ubuntu lucid-security universe
 +
deb-src http://security.ubuntu.com/ubuntu lucid-security universe
 +
deb http://security.ubuntu.com/ubuntu lucid-security multiverse
 +
deb-src http://security.ubuntu.com/ubuntu lucid-security multiverse
 +
 +
## Medibuntu # wget -q http://fr.packages.medibuntu.org/medibuntu-key.gpg -O- | sudo apt-key add -
 +
deb http://fr.packages.medibuntu.org/ lucid free non-free
 +
deb-src http://fr.packages.medibuntu.org/ lucid free non-free
-
##########
 
-
# Nvidia #
 
-
##########
 
-
sudo apt-get install linux-restricted-modules-`uname -r`
+
== Conky ==
-
sudo apt-get install nvidia-glx nvidia-kernel-common
+
-
sudo nvidia-glx-config enable
+
-
sudo gedit /etc/X11/xorg.conf
+
sudo apt-get install conky
 +
Add conky at startup
 +
gedit ~/.conkyrc
-
# nvidia-xconfig: X configuration file generated by nvidia-xconfig
 
-
# nvidia-xconfig: version 1.0 (buildmeister@builder26) Mon Feb 26 23:37:58 PST 2007
 
-
# /etc/X11/xorg.conf (xorg X Window System server configuration file)
+
# UBUNTU-CONKY
-
#
+
# A comprehensive conky script, configured for use on
-
# This file was generated by dexconf, the Debian X Configuration tool, using
+
# Ubuntu / Debian Gnome, without the need for any external scripts.
-
# values from the debconf database.
+
#
-
#
+
# Based on conky-jc and the default .conkyrc.
-
# Edit this file with caution, and see the /etc/X11/xorg.conf manual page.
+
# INCLUDES :
-
# (Type "man /etc/X11/xorg.conf" at the shell prompt.)
+
# - tail of /var/log/messages
-
#
+
# - netstat connections to your computer
-
# This file is automatically updated on xserver-xorg package upgrades *only*
+
#
-
# if it has not been modified since the last upgrade of the xserver-xorg
+
# -- Pengo (conky@pengo.us)
-
# package.
+
#
-
#
+
-
# If you have edited this file but would like it to be automatically updated
+
-
# again, run the following command:
+
# Create own window instead of using desktop (required in nautilus)
-
# sudo dpkg-reconfigure -phigh xserver-xorg
+
own_window yes
 +
own_window_transparent yes
 +
own_window_hints undecorated,below,sticky,skip_taskbar,skip_pager
 +
 +
# Use double buffering (reduces flicker, may not work for everyone)
 +
double_buffer yes
 +
 +
# fiddle with window
 +
use_xft no
 +
 +
# Update interval in seconds
 +
update_interval 3.0
 +
 +
 +
# Minimum size of text area
 +
# in order to fix a bug (sometimes, conky appears in the foreground)
 +
minimum_size 350
 +
maximum_width 350
 +
 +
# Draw shades?
 +
draw_shades no
 +
 +
# Text stuff
 +
draw_outline no # amplifies text if yes
 +
draw_borders no
 +
uppercase no # set to yes if you want all text to be in uppercase
 +
 +
# border
 +
border_width 0
 +
 +
# Default colors and also border colors, grey90 == #e5e5e5
 +
default_color grey
 +
own_window_transparent yes
 +
 +
# Text alignment, other possible values are commented
 +
alignment bottom_right
 +
 +
# Gap between borders of screen and text
 +
gap_x 20
 +
gap_y 25
 +
 +
# stuff after 'TEXT' will be formatted on screen
 +
 +
TEXT
 +
${color #ffcb48}CPU ${hr 2}$color
 +
${color #98c2c7}Freq :$color ${color #CCCCCC}${freq}MHz ${color #98c2c7}Load :$color ${color #CCCCCC}${loadavg} ${color #98c2c7}Temp :$color ${color #CCCCCC}${acpitemp}
 +
${color #98c2c7}CPU : $color${color #CCCCCC}$cpu%$color
 +
${color #78af78}$cpubar
 +
${color #78af78}${cpugraph 78af78 a3a3a3}
 +
${color #98c2c7}CPU 1 : $color${color #CCCCCC}${cpu cpu1}%$color ${color #78af78}${cpubar cpu1}
 +
${color #98c2c7}CPU 2 : $color${color #CCCCCC}${cpu cpu2}%$color ${color #78af78}${cpubar cpu2}
 +
${color #98c2c7}CPU 3 : $color${color #CCCCCC}${cpu cpu3}%$color ${color #78af78}${cpubar cpu3}
 +
${color #98c2c7}CPU 4 : $color${color #CCCCCC}${cpu cpu4}%$color ${color #78af78}${cpubar cpu4}
 +
 +
${color #98c2c7}NAME PID CPU% MEM MEM%
 +
${color #eeeeee}${top name 1} ${top pid 1} ${top cpu 1} ${top mem_res 1} ${top mem 1}
 +
${color #dddddd}${top name 2} ${top pid 2} ${top cpu 2} ${top mem_res 2} ${top mem 2}
 +
${color #cccccc}${top name 3} ${top pid 3} ${top cpu 3} ${top mem_res 3} ${top mem 3}
 +
${color #bbbbbb}${top name 4} ${top pid 4} ${top cpu 4} ${top mem_res 4} ${top mem 4}
 +
${color #aaaaaa}${top name 5} ${top pid 5} ${top cpu 5} ${top mem_res 5} ${top mem 5}
 +
 +
${color #ffcb48}MEMORY ${hr 2}$color
 +
${color #98c2c7}RAM : $color${color #CCCCCC}$mem / $memmax - $memperc%$color
 +
${color #78af78}${membar 6}${color}
 +
 +
${color #98c2c7}NAME PID CPU% MEM MEM%
 +
${color #eeeeee}${top_mem name 1} ${top_mem pid 1} ${top_mem cpu 1} ${top_mem mem_res 1} ${top_mem mem 1}
 +
${color #dddddd}${top_mem name 2} ${top_mem pid 2} ${top_mem cpu 2} ${top_mem mem_res 2} ${top_mem mem 2}
 +
${color #cccccc}${top_mem name 3} ${top_mem pid 3} ${top_mem cpu 3} ${top_mem mem_res 3} ${top_mem mem 3}
 +
${color #bbbbbb}${top_mem name 4} ${top_mem pid 4} ${top_mem cpu 4} ${top_mem mem_res 4} ${top_mem mem 4}
 +
${color #aaaaaa}${top_mem name 5} ${top_mem pid 5} ${top_mem cpu 5} ${top_mem mem_res 5} ${top_mem mem 5}
 +
 +
${color #ffcb48}DISK ${hr 2}$color
 +
${color #98c2c7}IO : $color${color #CCCCCC}$diskio$color
 +
${color #98c2c7}/ : $color${color #CCCCCC}${fs_used /}/${fs_size /} (${fs_free /} ${fs_free_perc /}% free)$color
 +
${color #78af78}${fs_bar /}$color
 +
${color #98c2c7}/home : $color${color #CCCCCC}${fs_used /home}/${fs_size /home} (${fs_free /home} ${fs_free_perc /home}% free)$color
 +
${color #78af78}${fs_bar /home}$color
 +
${color #98c2c7}/sdc3 : $color${color #CCCCCC}${fs_used /media/a3ff4b9a-e4bb-4542-9080-2fd91e3fa65b}/${fs_size /media/a3ff4b9a-e4bb-4542-9080-2fd91e3fa65b} (${fs_free /media/a3ff4b9a-e4bb-4542-9080-2fd91e3fa65b} ${fs_free_perc /media/a3ff4b9a-e4bb-4542-9080-2fd91e3fa65b}% free)$color
 +
${color #78af78}${fs_bar /media/a3ff4b9a-e4bb-4542-9080-2fd91e3fa65b}$color
 +
${color #98c2c7}/sdb3 : $color${color #CCCCCC}${fs_used /media/a18e1f05-8483-4625-aae9-bdc18f641ca1}/${fs_size /media/a18e1f05-8483-4625-aae9-bdc18f641ca1} (${fs_free /media/a18e1f05-8483-4625-aae9-bdc18f641ca1} ${fs_free_perc /media/a18e1f05-8483-4625-aae9-bdc18f641ca1}% free)$color
 +
${color #78af78}${fs_bar /media/a18e1f05-8483-4625-aae9-bdc18f641ca1}$color
 +
 +
${color #ffcb48}NETWORK (${addr eth0}) ${hr 2}$color
 +
${color #98c2c7}Download :$color ${color #CCCCCC}${downspeed eth0} k/s ${color #98c2c7}Upload :$color ${color #CCCCCC}${upspeed eth0} k/s
 +
${color #888888}${downspeedgraph eth0 25,100 ff0000 0000ff} ${color #888888}${upspeedgraph eth0 25,100 0000ff ff0000}
 +
${color #98c2c7}Total :$color ${color #CCCCCC}${totaldown eth0} ${color #98c2c7}Total :$color ${color #CCCCCC}${totalup eth0}
 +
 +
${color #ffcb48}MUSIC ${hr 2}$color
 +
${color #98c2c7}Playing :$color
 +
${color #CCCCCC}${exec /usr/bin/rhythmbox-client --no-start --no-present --print-playing-format “%at”}$color
-
Section "ServerLayout"
 
-
Identifier "Default Layout"
 
-
Screen "Default Screen" 0 0
 
-
InputDevice "Generic Keyboard"
 
-
InputDevice "Configured Mouse"
 
-
InputDevice "stylus" "SendCoreEvents"
 
-
InputDevice "cursor" "SendCoreEvents"
 
-
InputDevice "eraser" "SendCoreEvents"
 
-
EndSection
 
-
Section "Files"
 
-
# path to defoma fonts
 
-
FontPath "/usr/share/X11/fonts/misc"
 
-
FontPath "/usr/share/X11/fonts/cyrillic"
 
-
FontPath "/usr/share/X11/fonts/100dpi/:unscaled"
 
-
FontPath "/usr/share/X11/fonts/75dpi/:unscaled"
 
-
FontPath "/usr/share/X11/fonts/Type1"
 
-
FontPath "/usr/share/X11/fonts/100dpi"
 
-
FontPath "/usr/share/X11/fonts/75dpi"
 
-
FontPath "/usr/share/fonts/X11/misc"
 
-
FontPath "/var/lib/defoma/x-ttcidfont-conf.d/dirs/TrueType"
 
-
EndSection
 
-
Section "Module"
 
-
Load "i2c"
 
-
Load "bitmap"
 
-
Load "ddc"
 
-
Load "extmod"
 
-
Load "freetype"
 
-
Load "int10"
 
-
Load "type1"
 
-
Load "vbe"
 
-
Load "dbe"
 
-
Load "glx"
 
-
EndSection
 
-
Section "InputDevice"
 
-
Identifier "Generic Keyboard"
 
-
Driver "kbd"
 
-
Option "CoreKeyboard"
 
-
Option "XkbRules" "xorg"
 
-
Option "XkbModel" "pc105"
 
-
Option "XkbLayout" "fr"
 
-
Option "XkbOptions" "lv3:ralt_switch"
 
-
EndSection
 
-
Section "InputDevice"
+
For laptop
-
Identifier "Configured Mouse"
+
-
Driver "mouse"
+
-
Option "CorePointer"
+
-
Option "Device" "/dev/input/mice"
+
-
Option "Protocol" "ExplorerPS/2"
+
-
Option "Emulate3Buttons" "false"
+
-
Option "Buttons" "7"
+
-
Option "ZAxisMapping" "4 5"
+
-
Option "ButtonMapping" "1 2 3 6 7"
+
-
EndSection
+
-
Section "InputDevice"
+
gedit ~/.conkyrc
-
# /dev/input/event
+
-
# for USB
+
# UBUNTU-CONKY
-
Identifier "stylus"
+
# A comprehensive conky script, configured for use on
-
Driver "wacom"
+
# Ubuntu / Debian Gnome, without the need for any external scripts.
-
Option "Device" "/dev/wacom"# Change to
+
#
-
Option "Type" "stylus"
+
# Based on conky-jc and the default .conkyrc.
-
Option "ForceDevice" "ISDV4"# Tablet PC ONLY
+
# INCLUDES :
-
EndSection
+
# - tail of /var/log/messages
 +
# - netstat connections to your computer
 +
#
 +
# -- Pengo (conky@pengo.us)
 +
#
 +
 +
 +
# Create own window instead of using desktop (required in nautilus)
 +
own_window yes
 +
own_window_transparent yes
 +
own_window_hints undecorated,below,sticky,skip_taskbar,skip_pager
 +
 +
# Use double buffering (reduces flicker, may not work for everyone)
 +
double_buffer yes
 +
 +
# fiddle with window
 +
use_xft no
 +
 +
# Update interval in seconds
 +
update_interval 3.0
 +
 +
 +
# Minimum size of text area
 +
# in order to fix a bug (sometimes, conky appears in the foreground)
 +
minimum_size 350
 +
maximum_width 350
 +
 +
# Draw shades?
 +
draw_shades no
 +
 +
# Text stuff
 +
draw_outline no # amplifies text if yes
 +
draw_borders no
 +
uppercase no # set to yes if you want all text to be in uppercase
 +
 +
# border
 +
border_width 0
 +
 +
# Default colors and also border colors, grey90 == #e5e5e5
 +
default_color grey
 +
own_window_transparent yes
 +
 +
# Text alignment, other possible values are commented
 +
alignment bottom_right
 +
 +
# Gap between borders of screen and text
 +
gap_x 20
 +
gap_y 25
 +
 +
# stuff after 'TEXT' will be formatted on screen
 +
 +
TEXT
 +
${color #ffcb48}CPU ${hr 2}$color
 +
${color #98c2c7}Freq $color ${color #CCCCCC}${freq}MHz ${color #98c2c7}Load $color ${color #CCCCCC}${loadavg} ${color #98c2c7}Temp $color ${color #CCCCCC}${acpitemp}
 +
${color #98c2c7}Cpu $color${color #CCCCCC}$cpu$color
 +
${color #78af78}$cpubar
 +
${color #78af78}${cpugraph 78af78 a3a3a3}
 +
${color #98c2c7}Cpu 1 $color${color #CCCCCC}${cpu cpu1}$color ${color #78af78}${cpubar cpu1}
 +
${color #98c2c7}Cpu 2 $color${color #CCCCCC}${cpu cpu2}$color ${color #78af78}${cpubar cpu2}
 +
${color #98c2c7}Cpu 3 $color${color #CCCCCC}${cpu cpu3}$color ${color #78af78}${cpubar cpu3}
 +
${color #98c2c7}Cpu 4 $color${color #CCCCCC}${cpu cpu4}$color ${color #78af78}${cpubar cpu4}
 +
 +
${color #98c2c7}Name Pid Cpu Mem Mem%
 +
${color #eeeeee}${top name 1} ${top pid 1} ${top cpu 1} ${top mem_res 1} ${top mem 1}
 +
${color #dddddd}${top name 2} ${top pid 2} ${top cpu 2} ${top mem_res 2} ${top mem 2}
 +
${color #cccccc}${top name 3} ${top pid 3} ${top cpu 3} ${top mem_res 3} ${top mem 3}
 +
${color #bbbbbb}${top name 4} ${top pid 4} ${top cpu 4} ${top mem_res 4} ${top mem 4}
 +
${color #aaaaaa}${top name 5} ${top pid 5} ${top cpu 5} ${top mem_res 5} ${top mem 5}
 +
 +
${color #ffcb48}MEMORY ${hr 2}$color
 +
${color #98c2c7}Ram $color${color #CCCCCC}$mem / $memmax - $memperc%$color
 +
${color #78af78}${membar 6}${color}
 +
 +
${color #98c2c7}Name Pid Cpu Mem Mem%
 +
${color #eeeeee}${top_mem name 1} ${top_mem pid 1} ${top_mem cpu 1} ${top_mem mem_res 1} ${top_mem mem 1}
 +
${color #dddddd}${top_mem name 2} ${top_mem pid 2} ${top_mem cpu 2} ${top_mem mem_res 2} ${top_mem mem 2}
 +
${color #cccccc}${top_mem name 3} ${top_mem pid 3} ${top_mem cpu 3} ${top_mem mem_res 3} ${top_mem mem 3}
 +
${color #bbbbbb}${top_mem name 4} ${top_mem pid 4} ${top_mem cpu 4} ${top_mem mem_res 4} ${top_mem mem 4}
 +
${color #aaaaaa}${top_mem name 5} ${top_mem pid 5} ${top_mem cpu 5} ${top_mem mem_res 5} ${top_mem mem 5}
 +
 +
${color #ffcb48}DISK ${hr 2}$color
 +
${color #98c2c7}Io $color${color #CCCCCC}$diskio$color
 +
${color #98c2c7}Swap $color${color #CCCCCC}${swap}/${swapmax} (${swapfree} ${swapperc}% free)$color
 +
${color #78af78}${swapbar }$color
 +
${color #98c2c7}/ $color${color #CCCCCC}${fs_used /}/${fs_size /} (${fs_free /} ${fs_free_perc /}% free)$color
 +
${color #78af78}${fs_bar /}$color
 +
${color #98c2c7}/home $color${color #CCCCCC}${fs_used /home}/${fs_size /home} (${fs_free /home} ${fs_free_perc /home}% free)$color
 +
${color #78af78}${fs_bar /home}$color
 +
 +
${color #ffcb48}BATTERY ${hr 2}$color
 +
${color #98c2c7}Status $color${color #CCCCCC}$battery $battery_time$color
 +
${color #98c2c7}Usage $color${color #CCCCCC}$battery_percent%$color
 +
${color #78af78}${battery_bar}${color}
 +
 +
${color #ffcb48}NETWORK (${addr wlan0}) ${hr 2}$color
 +
${color #98c2c7}Bitrate $color ${color #CCCCCC}${wireless_bitrate wlan0}
 +
${color #98c2c7}Quality $color ${color #CCCCCC}${wireless_link_qual_perc wlan0}%
 +
${color #78af78}${wireless_link_bar wlan0}${color}
 +
${color #98c2c7}Download $color ${color #CCCCCC}${downspeed wlan0} k/s ${alignr}${color #98c2c7}Upload $color ${color #CCCCCC}${upspeed wlan0} k/s
 +
${color #888888}${downspeedgraph wlan0 25,100 ff0000 0000ff} ${alignr}${color #888888}${upspeedgraph wlan0 25,100 0000ff ff0000}
 +
${color #98c2c7}Total $color ${color #CCCCCC}${totaldown wlan0} ${alignr}${color #98c2c7}Total $color ${color #CCCCCC}${totalup wlan0}
 +
 +
${color #ffcb48}MUSIC ${hr 2}$color
 +
${color #98c2c7}Playing $color
 +
${color #CCCCCC}${exec /usr/bin/rhythmbox-client --no-start --no-present --print-playing-format “%at”}$color
-
Section "InputDevice"
+
== Freeplayer ==
-
# /dev/input/event
+
* Freeplayer multiposte
-
# for USB
+
-
Identifier "eraser"
+
-
Driver "wacom"
+
-
Option "Device" "/dev/wacom"# Change to
+
-
Option "Type" "eraser"
+
-
Option "ForceDevice" "ISDV4"# Tablet PC ONLY
+
-
EndSection
+
-
Section "InputDevice"
+
sudo apt-get install vlc
-
 
+
-
# /dev/input/event
+
-
# for USB
+
-
Identifier "cursor"
+
-
Driver "wacom"
+
-
Option "Device" "/dev/wacom"# Change to
+
-
Option "Type" "cursor"
+
-
Option "ForceDevice" "ISDV4"# Tablet PC ONLY
+
-
EndSection
+
-
 
+
-
Section "Monitor"
+
-
Identifier "B102035W"
+
-
HorizSync 31.0 - 83.0
+
-
VertRefresh 56.0 - 75.0
+
-
ModeLine "1680x1050" 167.2 1680 1752 2112 2256 1050 1052 1064 1090
+
-
Option "DPMS"
+
-
EndSection
+
-
 
+
-
Section "Device"
+
-
Identifier "NVIDIA Corporation NVIDIA Default Card"
+
-
Driver "nvidia"
+
-
#Option "ConnectedMonitor" "lcd, crt"
+
-
#Option "TwinView" "true"
+
-
#Option "TwinViewOrientation" "Clone"
+
-
#Option "TVOutFormat" "COMPOSITE"
+
-
#Option "TVStandard" "PAL-N"
+
-
#Option "SecondMonitorHorizSync" "30-50"
+
-
#Option "SecondMonitorVertRefresh" "60"
+
-
#Option "MetaModes" "1680x1050,800x600;1024x768,640x480;800x600,640x480;640x480,640x480"
+
-
 
+
-
Option "TwinView" "on"
+
-
Option "TwinViewOrientation" "clone"
+
-
Option "SecondMonitorHorizSync" "30-82"
+
-
Option "SecondMonitorVertRefresh" "60"
+
-
Option "TVStandard" "PAL-N"
+
-
#Option "ConnectedMonitor" "tv"
+
-
Option "ConnectedMonitor" "lcd"
+
-
Option "MetaModes" "lcd : 1680x1050"
+
-
EndSection
+
-
 
+
-
Section "Screen"
+
-
Identifier "Default Screen"
+
-
Device "NVIDIA Corporation NVIDIA Default Card"
+
-
Monitor "B102035W"
+
-
DefaultDepth 24
+
-
Option "AddARGBVisuals" "True"
+
-
Option "AddARGBGLXVisuals" "True"
+
-
#Option "NoLogo" "True"
+
-
SubSection "Display"
+
-
Depth 1
+
-
Modes "1680x1050" "1440x1440" "1280x1024" "1280x960" "1152x864" "1024x768" "832x624" "800x600" "720x400" "640x640" "640x480"
+
-
EndSubSection
+
-
SubSection "Display"
+
-
Depth 4
+
-
Modes "1680x1050" "1440x1440" "1280x1024" "1280x960" "1152x864" "1024x768" "832x624" "800x600" "720x400" "640x640" "640x480"
+
-
EndSubSection
+
-
SubSection "Display"
+
-
Depth 8
+
-
Modes "1680x1050" "1440x1440" "1280x1024" "1280x960" "1152x864" "1024x768" "832x624" "800x600" "720x400" "640x640" "640x480"
+
-
EndSubSection
+
-
SubSection "Display"
+
-
Depth 15
+
-
Modes "1680x1050" "1440x1440" "1280x1024" "1280x960" "1152x864" "1024x768" "832x624" "800x600" "720x400" "640x640" "640x480"
+
-
EndSubSection
+
-
SubSection "Display"
+
-
Depth 16
+
-
Modes "1680x1050" "1440x1440" "1280x1024" "1280x960" "1152x864" "1024x768" "832x624" "800x600" "720x400" "640x640" "640x480"
+
-
EndSubSection
+
-
SubSection "Display"
+
-
Depth 24
+
-
Modes "1680x1050" "1440x1440" "1280x1024" "1280x960" "1152x864" "1024x768" "832x624" "800x600" "720x400" "640x640" "640x480"
+
-
EndSubSection
+
-
EndSection
+
-
 
+
-
 
+
-
 
+
-
 
+
-
#######
+
-
# apt #
+
-
#######
+
-
 
+
-
deb file:/var/cache/apt-build/repository apt-build main
+
-
 
+
-
## Officials
+
-
deb http://fr.archive.ubuntu.com/ubuntu/ gutsy main restricted universe multiverse
+
-
deb-src http://fr.archive.ubuntu.com/ubuntu/ gutsy main restricted universe multiverse
+
-
 
+
-
## Updates
+
-
deb http://fr.archive.ubuntu.com/ubuntu/ gutsy-updates main restricted universe multiverse
+
-
deb-src http://fr.archive.ubuntu.com/ubuntu/ gutsy-updates main restricted universe multiverse
+
-
 
+
-
## Backports
+
-
deb http://fr.archive.ubuntu.com/ubuntu gutsy-backports main restricted universe multiverse
+
-
deb-src http://fr.archive.ubuntu.com/ubuntu gutsy-backports main restricted universe multiverse
+
-
 
+
-
## Security
+
-
deb http://fr.archive.ubuntu.com/ubuntu gutsy-security main restricted universe multiverse
+
-
deb-src http://fr.archive.ubuntu.com/ubuntu gutsy-security main restricted universe multiverse
+
-
 
+
-
## Commercial
+
-
deb http://archive.canonical.com/ubuntu gutsy partner
+
-
deb-src http://archive.canonical.com/ubuntu gutsy partner
+
-
 
+
-
## Medibuntu
+
-
deb http://fr.packages.medibuntu.org/ gutsy free non-free
+
-
deb-src http://fr.packages.medibuntu.org/ gutsy free non-free
+
-
 
+
-
## SWIFTFOX
+
-
deb http://getswiftfox.com/builds/debian unstable non-free
+
-
 
+
-
## E17
+
-
deb http://e17.dunnewind.net/ubuntu gutsy e17
+
-
deb-src http://e17.dunnewind.net/ubuntu gutsy e17
+
-
 
+
-
## Wine
+
-
deb http://wine.budgetdedicated.com/apt gutsy main
+
-
deb-src http://wine.budgetdedicated.com/apt gutsy main
+
-
 
+
-
## Virtualbox
+
-
deb http://www.virtualbox.org/debian gutsy non-free
+
-
 
+
-
## miro (you tube)
+
-
deb http://ftp.osuosl.org/pub/pculture.org/miro/linux/repositories/ubuntu gutsy/
+
-
 
+
-
## Asher256's Repository (xgngeo, epsxe)
+
-
# deb http://asher256-repository.tuxfamily.org edgy main dupdate french
+
-
# deb http://asher256-repository.tuxfamily.org ubuntu main dupdate french
+
-
 
+
-
## KDE
+
-
# deb http://kubuntu.org/packages/kde-latest gutsy main
+
-
# deb-src http://kubuntu.org/packages/koffice-latest/ gutsy main
+
-
 
+
-
## KOffice
+
-
# deb http://kubuntu.org/packages/koffice-latest/ gutsy main
+
-
# deb-src http://kubuntu.org/packages/koffice-latest/ gutsy main
+
-
 
+
-
## Amarok
+
-
# deb http://kubuntu.org/packages/amarok-latest gutsy main
+
-
# deb-src http://kubuntu.org/packages/amarok-latest gutsy main
+
-
 
+
-
 
+
-
 
+
-
########
+
-
# Grub #
+
-
########
+
-
 
+
-
sudo gedit /boot/grub/menu.lst
+
-
 
+
-
# menu.lst - See: grub(8), info grub, update-grub(8)
+
-
# grub-install(8), grub-floppy(8),
+
-
# grub-md5-crypt, /usr/share/doc/grub
+
-
# and /usr/share/doc/grub-doc/.
+
-
 
+
-
## default num
+
-
# Set the default entry to the entry number NUM. Numbering starts from 0, and
+
-
# the entry number 0 is the default if the command is not used.
+
-
#
+
-
# You can specify 'saved' instead of a number. In this case, the default entry
+
-
# is the entry saved with the command 'savedefault'.
+
-
# WARNING: If you are using dmraid do not change this entry to 'saved' or your
+
-
# array will desync and will not let you boot your system.
+
-
default 0
+
-
 
+
-
## timeout sec
+
-
# Set a timeout, in SEC seconds, before automatically booting the default entry
+
-
# (normally the first entry defined).
+
-
timeout 3
+
-
 
+
-
## hiddenmenu
+
-
# Hides the menu by default (press ESC to see the menu)
+
-
#hiddenmenu
+
-
 
+
-
# Pretty colours
+
-
#color cyan/blue white/blue
+
-
 
+
-
## password ['--md5'] passwd
+
-
# If used in the first section of a menu file, disable all interactive editing
+
-
# control (menu entry editor and command-line) and entries protected by the
+
-
# command 'lock'
+
-
# e.g. password topsecret
+
-
# password --md5 $1$gLhU0/$aW78kHK1QfV3P2b2znUoe/
+
-
# password topsecret
+
-
 
+
-
#
+
-
# examples
+
-
#
+
-
# title Windows 95/98/NT/2000
+
-
# root (hd0,0)
+
-
# makeactive
+
-
# chainloader +1
+
-
#
+
-
# title Linux
+
-
# root (hd0,1)
+
-
# kernel /vmlinuz root=/dev/hda2 ro
+
-
#
+
-
 
+
-
#
+
-
# Put static boot stanzas before and/or after AUTOMAGIC KERNEL LIST
+
-
 
+
-
### BEGIN AUTOMAGIC KERNELS LIST
+
-
## lines between the AUTOMAGIC KERNELS LIST markers will be modified
+
-
## by the debian update-grub script except for the default options below
+
-
 
+
-
## DO NOT UNCOMMENT THEM, Just edit them to your needs
+
-
 
+
-
## ## Start Default Options ##
+
-
## default kernel options
+
-
## default kernel options for automagic boot options
+
-
## If you want special options for specific kernels use kopt_x_y_z
+
-
## where x.y.z is kernel version. Minor versions can be omitted.
+
-
## e.g. kopt=root=/dev/hda1 ro
+
-
## kopt_2_6_8=root=/dev/hdc1 ro
+
-
## kopt_2_6_8_2_686=root=/dev/hdc2 ro
+
-
# kopt=root=UUID=6cc31c2d-9f2e-4599-93ac-a97c82d926f6 ro
+
-
# kopt_2_6=root=/dev/sda2 ro
+
-
 
+
-
## default grub root device
+
-
## e.g. groot=(hd0,0)
+
-
# groot=(hd0,1)
+
-
 
+
-
## should update-grub create alternative automagic boot options
+
-
## e.g. alternative=true
+
-
## alternative=false
+
-
# alternative=true
+
-
 
+
-
## should update-grub lock alternative automagic boot options
+
-
## e.g. lockalternative=true
+
-
## lockalternative=false
+
-
# lockalternative=false
+
-
 
+
-
## additional options to use with the default boot option, but not with the
+
-
## alternatives
+
-
## e.g. defoptions=vga=791 resume=/dev/hda5
+
-
# defoptions=quiet splash
+
-
 
+
-
## should update-grub lock old automagic boot options
+
-
## e.g. lockold=false
+
-
## lockold=true
+
-
# lockold=false
+
-
 
+
-
## altoption boot targets option
+
-
## multiple altoptions lines are allowed
+
-
## e.g. altoptions=(extra menu suffix) extra boot options
+
-
## altoptions=(recovery) single
+
-
# altoptions=(recovery mode) single
+
-
 
+
-
## controls how many kernels should be put into the menu.lst
+
-
## only counts the first occurence of a kernel, not the
+
-
## alternative kernel options
+
-
## e.g. howmany=all
+
-
## howmany=7
+
-
# howmany=all
+
-
 
+
-
## should update-grub create memtest86 boot option
+
-
## e.g. memtest86=true
+
-
## memtest86=false
+
-
# memtest86=true
+
-
 
+
-
## should update-grub adjust the value of the default booted system
+
-
## can be true or false
+
-
# updatedefaultentry=false
+
-
 
+
-
## ## End Default Options ##
+
-
 
+
-
title Ubuntu, kernel 2.6.17-10-generic
+
-
root (hd0,1)
+
-
kernel /boot/vmlinuz-2.6.17-10-generic root=/dev/sda2 ro quiet splash
+
-
initrd /boot/initrd.img-2.6.17-10-generic
+
-
quiet
+
-
savedefault
+
-
boot
+
-
 
+
-
title Ubuntu, kernel 2.6.17-10-generic (recovery mode)
+
-
root (hd0,1)
+
-
kernel /boot/vmlinuz-2.6.17-10-generic root=/dev/sda2 ro single
+
-
initrd /boot/initrd.img-2.6.17-10-generic
+
-
boot
+
-
 
+
-
title Ubuntu, memtest86+
+
-
root (hd0,1)
+
-
kernel /boot/memtest86+.bin
+
-
quiet
+
-
boot
+
-
 
+
-
### END DEBIAN AUTOMAGIC KERNELS LIST
+
-
 
+
-
# This is a divider, added to separate the menu items below from the Debian
+
-
# ones.
+
-
title Other operating systems:
+
-
root
+
-
 
+
-
 
+
-
# This entry automatically added by the Debian installer for a non-linux OS
+
-
# on /dev/sdb1
+
-
title Microsoft Windows XP dition familiale
+
-
root (hd1,0)
+
-
savedefault
+
-
makeactive
+
-
map (hd0) (hd1)
+
-
map (hd1) (hd0)
+
-
chainloader +1
+
-
 
+
-
 
+
-
 
+
-
 
+
-
 
+
-
#############
+
-
# Devilspie #
+
-
#############
+
-
 
+
-
sudo apt-get install devilspie
+
-
 
+
-
Rajouter devilspie au demarrage
+
-
 
+
-
mkdir ~/.devilspie
+
-
gedit ~/.devilspie/maximize.ds
+
-
 
+
-
(if
+
-
(or
+
-
(and
+
-
(is (application_name) "File Manager")
+
-
(matches (window_name) ".*Navigateur de fichiers")
+
-
)
+
-
(is (application_name) "Terminal")
+
-
(is (application_name) "gcfilms")
+
-
(matches (application_name) "amaroK$")
+
-
(matches (window_name) "Azureus ")
+
-
)
+
-
(maximize)
+
-
)
+
-
 
+
-
 
+
-
gedit ~/.devilspie/debug.ds
+
-
 
+
-
(debug)
+
-
 
+
-
 
+
-
 
+
-
#########
+
-
# conky #
+
-
#########
+
-
 
+
-
sudo apt-get install conky
+
-
 
+
-
Rajouter conky au demarrage
+
-
 
+
-
gedit ~/.conkyrc
+
-
 
+
-
## UBUNTU-CONKY
+
-
# A comprehensive conky script, configured for use on
+
-
# Ubuntu / Debian Gnome, without the need for any external scripts.
+
-
#
+
-
# Based on conky-jc and the default .conkyrc.
+
-
# INCLUDES :
+
-
# - tail of /var/log/messages
+
-
# - netstat connections to your computer
+
-
#
+
-
# -- Pengo (conky@pengo.us)
+
-
#
+
-
 
+
-
# Create own window instead of using desktop (required in nautilus)
+
-
own_window yes
+
-
#own_window_type override
+
-
own_window_transparent yes
+
-
own_window_hints undecorated,below,sticky,skip_taskbar,skip_pager
+
-
 
+
-
# Use double buffering (reduces flicker, may not work for everyone)
+
-
double_buffer yes
+
-
 
+
-
# fiddle with window
+
-
use_spacer yes
+
-
use_xft no
+
-
 
+
-
# Update interval in seconds
+
-
update_interval 3.0
+
-
 
+
-
# Minimum size of text area
+
-
# minimum_size 250 5
+
-
 
+
-
# Draw shades?
+
-
draw_shades no
+
-
 
+
-
# Text stuff
+
-
draw_outline no # amplifies text if yes
+
-
draw_borders no
+
-
font arial
+
-
uppercase no # set to yes if you want all text to be in uppercase
+
-
 
+
-
# Stippled borders?
+
-
stippled_borders 3
+
-
 
+
-
# border margins
+
-
border_margin 9
+
-
 
+
-
# border width
+
-
border_width 10
+
-
 
+
-
# Default colors and also border colors, grey90 == #e5e5e5
+
-
default_color grey
+
-
 
+
-
own_window_colour brown
+
-
own_window_transparent yes
+
-
 
+
-
# Text alignment, other possible values are commented
+
-
#alignment top_left
+
-
#alignment top_right
+
-
#alignment bottom_left
+
-
alignment bottom_right
+
-
 
+
-
# Gap between borders of screen and text
+
-
gap_x 10
+
-
gap_y 10
+
-
 
+
-
# stuff after 'TEXT' will be formatted on screen
+
-
 
+
-
TEXT
+
-
${color #ffcb48}CPU ${hr 2}$color
+
-
${color #98c2c7}Freq :$color ${color #CCCCCC}${freq}MHz ${color #98c2c7}Load :$color ${color #CCCCCC}${loadavg} ${color #98c2c7}Temp :$color ${color #CCCCCC}${acpitemp}
+
-
${color #98c2c7}CPU : $color${color #CCCCCC}$cpu%$color
+
-
${color #78af78}$cpubar
+
-
${color #78af78}${cpugraph 78af78 a3a3a3}
+
-
${color #98c2c7}CPU 1 : $color${color #CCCCCC}${cpu cpu1}%$color ${color #78af78}${cpubar cpu1}
+
-
${color #98c2c7}CPU 2 : $color${color #CCCCCC}${cpu cpu2}%$color ${color #78af78}${cpubar cpu2}
+
-
${color #98c2c7}CPU 3 : $color${color #CCCCCC}${cpu cpu3}%$color ${color #78af78}${cpubar cpu3}
+
-
${color #98c2c7}CPU 4 : $color${color #CCCCCC}${cpu cpu4}%$color ${color #78af78}${cpubar cpu4}
+
-
 
+
-
${color #98c2c7}NAME PID CPU% MEM%
+
-
${color #e5e5e5}${top name 1} ${top pid 1} ${top cpu 1} ${top mem 1}
+
-
${color #c4c4c4}${top name 2} ${top pid 2} ${top cpu 2} ${top mem 2}
+
-
${color #a3a3a3}${top name 3} ${top pid 3} ${top cpu 3} ${top mem 3}
+
-
${color #828282}${top name 4} ${top pid 4} ${top cpu 4} ${top mem 4}
+
-
 
+
-
${color #ffcb48}MEMORY ${hr 2}$color
+
-
${color #98c2c7}RAM : $color${color #CCCCCC}$mem / $memmax - $memperc%$color
+
-
${color #78af78}${membar 6}${color}
+
-
${color #98c2c7}Swap : $color${color #CCCCCC}$swap / $swapmax - $swapperc%$color
+
-
${color #78af78}${swapbar 6}$color
+
-
 
+
-
${color #98c2c7}NAME PID CPU% MEM%
+
-
${color #e5e5e5}${top_mem name 1} ${top_mem pid 1} ${top_mem cpu 1} ${top_mem mem 1}
+
-
${color #c4c4c4}${top_mem name 2} ${top_mem pid 2} ${top_mem cpu 2} ${top_mem mem 2}
+
-
${color #a3a3a3}${top_mem name 3} ${top_mem pid 3} ${top_mem cpu 3} ${top_mem mem 3}
+
-
${color #828282}${top_mem name 4} ${top_mem pid 4} ${top_mem cpu 4} ${top_mem mem 4}
+
-
 
+
-
 
+
-
${color #ffcb48}DISK ${hr 2}$color
+
-
${color #98c2c7}IO : $color${color #CCCCCC}$diskio$color
+
-
${color #98c2c7}/ : $color${color #CCCCCC}${fs_used /}/${fs_size /} (${fs_free /} ${fs_free_perc /}% free)$color
+
-
${color #78af78}${fs_bar /}$color
+
-
${color #98c2c7}/home : $color${color #CCCCCC}${fs_used /home}/${fs_size /home} (${fs_free /home} ${fs_free_perc /home}% free)$color
+
-
${color #78af78}${fs_bar /home}$color
+
-
${color #98c2c7}/sdb1 : $color${color #CCCCCC}${fs_used /media/sdb1}/${fs_size /media/sdb1} (${fs_free /media/sdb1} ${fs_free_perc /media/sdb1}% free)$color
+
-
${color #78af78}${fs_bar /media/sdb1}$color
+
-
${color #98c2c7}/sdb2 : $color${color #CCCCCC}${fs_used /media/sdb2}/${fs_size /media/sdb2} (${fs_free /media/sdb2} ${fs_free_perc /media/sdb2}% free)$color
+
-
${color #78af78}${fs_bar /media/sdb2}$color
+
-
${color #98c2c7}/sdb3 : $color${color #CCCCCC}${fs_used /media/sdb3}/${fs_size /media/sdb3} (${fs_free /media/sdb3} ${fs_free_perc /media/sdb3}% free)$color
+
-
${color #78af78}${fs_bar /media/sdb3}$color
+
-
 
+
-
${color #ffcb48}NETWORK (${addr eth0}) ${hr 2}$color
+
-
${color #98c2c7}Download :$color ${color #CCCCCC}${downspeed eth0} k/s ${color #98c2c7}Upload :$color ${color #CCCCCC}${upspeed eth0} k/s
+
-
${color #888888}${downspeedgraph eth0 25,100 ff0000 0000ff} ${color #888888}${upspeedgraph eth0 25,100 0000ff ff0000}
+
-
${color #98c2c7}Total :$color ${color #CCCCCC}${totaldown eth0} ${color #98c2c7}Total :$color ${color #CCCCCC}${totalup eth0}
+
-
 
+
-
 
+
-
 
+
-
###########
+
-
# Azureus #
+
-
###########
+
-
 
+
-
wget http://citkit.dl.sourceforge.net/sourceforge/azureus/Azureus_2.4.0.2_linux.tar.bz2
+
-
sudo cp Azureus_2.4.0.2_linux.tar.bz2 /usr/local
+
-
rm -rf Azureus_2.4.0.2_linux.tar.bz2
+
-
cd /usr/local/
+
-
sudo tar -xvjf Azureus_2.4.0.2_linux.tar.bz2
+
-
sudo rm Azureus_2.4.0.2_linux.tar.bz2
+
-
sudo chown -R navarroa azureus
+
-
 
+
-
Pour la version beta
+
-
 
+
-
cd azureus
+
-
sudo wget http://torrents.aelitis.com:88/files/Azureus2403-B37.jar
+
-
sudo rm -rf Azureus2.jar
+
-
sudo mv Azureus2403-B37.jar Azureus2.jar
+
-
cd ..
+
-
sudo chown -R navarroa azureus
+
-
 
+
-
Port Triggering : 8881-8889 (both)
+
-
 
+
-
 
+
-
 
+
-
 
+
-
##############
+
-
# Freeplayer #
+
-
##############
+
-
 
+
-
-Freeplayer multiposte
+
-
 
+
-
sudo apt-get install vlc
+
Port Triggering : 32768-32996 (both)
Port Triggering : 32768-32996 (both)
-
- Homejukebox
+
* Homeplayer
-
 
+
-
sudo apt-get install homeplayer myfreetv
+
Port Forwarding : 8080 (TCP)
Port Forwarding : 8080 (TCP)
 +
== Streamripper ==
 +
sudo apt-get install streamripper
 +
gedit /home/anavarro/bin/streamripper-radio.sh
 +
#!/bin/sh
 +
streamripper http://88.191.11.83:8192 -d /home/anavarro/music/radio/ -s & # Hit Music Station
 +
streamripper http://194.146.227.87:8192 -d /home/anavarro/music/radio/ -s & # Frequence 3
-
################
+
== Samba ==
-
# Streamripper #
+
-
################
+
-
sudo apt-get install streamripper
+
sudo apt-get install samba
-
gedit /home/navarroa/bin/streamripper-radio.sh
+
sudo smbpasswd -a user_name
-
#!/bin/sh
+
And share a directory.
-
streamripper http://88.191.11.83:8192 -d /home/navarroa/mp3/radio/ -s & # Hit Music Station
+
-
streamripper http://194.146.227.87:8192 -d /home/navarroa/mp3/radio/ -s & # Frequence 3
+
 +
== NFS ==
-
#########
+
sudo apt-get install nfs-common nfs-kernel-server
-
# Samba #
+
-
#########
+
-
sudo apt-get install samba
+
sudo gedit /etc/hosts.allow
-
sudo smbpasswd -a user_name
+
# /etc/hosts.allow: list of hosts that are allowed to access the system.
 +
# See the manual pages hosts_access(5), hosts_options(5)
 +
# and /usr/doc/netbase/portmapper.txt.gz
 +
#
 +
# Example: ALL: LOCAL @some_netgroup
 +
# ALL: .foobar.edu EXCEPT terminalserver.foobar.edu
 +
#
 +
# If you're going to protect the portmapper use the name "portmap" for the
 +
# daemon name. Remember that you can only use the keyword "ALL" and IP
 +
# addresses (NOT host or domain names) for the portmapper, as well as for
 +
# rpc.mountd (the NFS mount daemon). See portmap(8), rpc.mountd(8) and
 +
# /usr/share/doc/portmap/portmapper.txt.gz for further information.
 +
#
 +
portmap:192.168.0.3
 +
nfsd:192.168.0.3
 +
mountd:192.168.0.3
-
Puis partager les dossier.
 
-
#########
+
sudo gedit /etc/hosts.deny
-
# NFS #
+
-
#########
+
-
sudo apt-get install nfs-common nfs-kernel-server
+
# /etc/hosts.deny: list of hosts that are _not_ allowed to access the system.
 +
# See the manual pages hosts_access(5), hosts_options(5)
 +
# and /usr/doc/netbase/portmapper.txt.gz
 +
#
 +
# Example: ALL: some.host.name, .some.domain
 +
# ALL EXCEPT in.fingerd: other.host.name, .other.domain
 +
#
 +
# If you're going to protect the portmapper use the name "portmap" for the
 +
# daemon name. Remember that you can only use the keyword "ALL" and IP
 +
# addresses (NOT host or domain names) for the portmapper. See portmap(8)
 +
# and /usr/doc/portmap/portmapper.txt.gz for further information.
 +
#
 +
# The PARANOID wildcard matches any host whose name does not match its
 +
# address.
 +
 +
# You may wish to enable this to ensure any programs that don't
 +
# validate looked up hostnames still leave understandable logs. In past
 +
# versions of Debian this has been the default.
 +
# ALL: PARANOID
 +
portmap:ALL
 +
nfsd:ALL
 +
mountd:ALL
-
sudo gedit /etc/hosts.allow
+
And share a directory.
 +
== .bashrc ==
 +
gedit ~/.bashrc
-
# /etc/hosts.allow: list of hosts that are allowed to access the system.
 
-
# See the manual pages hosts_access(5), hosts_options(5)
 
-
# and /usr/doc/netbase/portmapper.txt.gz
 
-
#
 
-
# Example: ALL: LOCAL @some_netgroup
 
-
# ALL: .foobar.edu EXCEPT terminalserver.foobar.edu
 
-
#
 
-
# If you're going to protect the portmapper use the name "portmap" for the
 
-
# daemon name. Remember that you can only use the keyword "ALL" and IP
 
-
# addresses (NOT host or domain names) for the portmapper, as well as for
 
-
# rpc.mountd (the NFS mount daemon). See portmap(8), rpc.mountd(8) and
 
-
# /usr/share/doc/portmap/portmapper.txt.gz for further information.
 
-
#
 
-
portmap:192.168.0.3
 
-
nfsd:192.168.0.3
 
-
mountd:192.168.0.3
 
 +
# ~/.bashrc: executed by bash(1) for non-login shells.
 +
# see /usr/share/doc/bash/examples/startup-files (in the package bash-doc)
 +
# for examples
 +
 +
# If not running interactively, don't do anything
 +
[ -z "$PS1" ] && return
 +
 +
# don't put duplicate lines in the history. See bash(1) for more options
 +
#export HISTCONTROL=ignoredups
 +
 +
# check the window size after each command and, if necessary,
 +
# update the values of LINES and COLUMNS.
 +
shopt -s checkwinsize
 +
 +
# make less more friendly for non-text input files, see lesspipe(1)
 +
[ -x /usr/bin/lesspipe ] && eval "$(lesspipe)"
 +
 +
# set variable identifying the chroot you work in (used in the prompt below)
 +
if [ -z "$debian_chroot" -a -r /etc/debian_chroot ]; then
 +
debian_chroot=$(cat /etc/debian_chroot)
 +
fi
 +
 +
# set a fancy prompt (non-color, unless we know we "want" color)
 +
case "$TERM" in
 +
xterm-color)
 +
PS1='${debian_chroot:+($debian_chroot)}\[\033[01;32m\]\u@\h\[\033[00m\]:\[\033[01;34m\]\w\[\033[00m\]\$ '
 +
;;
 +
*)
 +
PS1='${debian_chroot:+($debian_chroot)}\u@\h:\w\$ '
 +
;;
 +
esac
 +
 +
# Comment in the above and uncomment this below for a color prompt
 +
#PS1='${debian_chroot:+($debian_chroot)}\[\033[01;32m\]\u@\h\[\033[00m\]:\[\033[01;34m\]\w\[\033[00m\]\$ '
 +
 +
# If this is an xterm set the title to user@host:dir
 +
case "$TERM" in
 +
xterm*|rxvt*)
 +
PROMPT_COMMAND='echo -ne "\033]0;${USER}@${HOSTNAME}: ${PWD/$HOME/~}\007"'
 +
;;
 +
*)
 +
;;
 +
esac
 +
 +
# Alias definitions.
 +
# You may want to put all your additions into a separate file like
 +
# ~/.bash_aliases, instead of adding them here directly.
 +
# See /usr/share/doc/bash-doc/examples in the bash-doc package.
 +
 +
#if [ -f ~/.bash_aliases ]; then
 +
# . ~/.bash_aliases
 +
#fi
 +
 +
# enable color support of ls and also add handy aliases
 +
if [ "$TERM" != "dumb" ]; then
 +
eval "`dircolors -b`"
 +
alias ls='ls --color=auto'
 +
#alias dir='ls --color=auto --format=vertical'
 +
#alias vdir='ls --color=auto --format=long'
 +
fi
 +
 +
# some more ls aliases
 +
alias ll='ls -l'
 +
alias la='ls -A'
 +
alias l='ls -CF'
 +
alias cp="cp -i"
 +
alias mv="mv -i"
 +
alias rm="rm -i"
 +
alias ls="ls --color='always'"
 +
alias dir="dir --color='always'"
 +
alias grep="grep --color='always'"
 +
alias md="mkdir"
 +
alias rd="rmdir"
 +
alias cd..='cd ..'
 +
alias glxgears="glxgears -printfps"
 +
alias cdrom="mount -t iso9660 /dev/cdrom /mnt/cdrom"
 +
alias ll="ls -alh"
 +
alias la="ls -a"
 +
alias rmf='rm -rf'
 +
 +
# Definition variables
 +
export CATALINA_HOME=/usr/local/tomcat
 +
export CATALINA_BASE=/usr/local/tomcat
 +
export JAVA_HOME=/usr/lib/jvm/java-1.6.0-sun
 +
export JAVA_OPTS="-Xmx512m"
 +
export MAVEN_HOME=/usr/local/maven2
 +
export ECLIPSE_HOME=/usr/local/eclipse-3.4
 +
export PATH=/bin:/usr/bin:~/bin:${CATALINA_HOME}/bin:${JAVA_HOME}/bin:${MAVEN_HOME}/bin
 +
 +
 +
# enable programmable completion features (you don't need to enable
 +
# this, if it's already enabled in /etc/bash.bashrc and /etc/profile
 +
# sources /etc/bash.bashrc).
 +
#if [ -f /etc/bash_completion ]; then
 +
# . /etc/bash_completion
 +
#fi
-
sudo gedit /etc/hosts.deny
+
== Canon Ixus ==
 +
sudo apt-get install gtkam
-
# /etc/hosts.deny: list of hosts that are _not_ allowed to access the system.
+
sudo gedit /etc/udev/rules.d/45-libgphoto2.rules
-
# See the manual pages hosts_access(5), hosts_options(5)
+
-
# and /usr/doc/netbase/portmapper.txt.gz
+
-
#
+
-
# Example: ALL: some.host.name, .some.domain
+
-
# ALL EXCEPT in.fingerd: other.host.name, .other.domain
+
-
#
+
-
# If you're going to protect the portmapper use the name "portmap" for the
+
-
# daemon name. Remember that you can only use the keyword "ALL" and IP
+
-
# addresses (NOT host or domain names) for the portmapper. See portmap(8)
+
-
# and /usr/doc/portmap/portmapper.txt.gz for further information.
+
-
#
+
-
# The PARANOID wildcard matches any host whose name does not match its
+
-
# address.
+
-
# You may wish to enable this to ensure any programs that don't
+
Commentez au début
-
# validate looked up hostnames still leave understandable logs. In past
+
-
# versions of Debian this has been the default.
+
-
# ALL: PARANOID
+
-
portmap:ALL
+
-
nfsd:ALL
+
-
mountd:ALL
+
 +
#BUS!="usb*", GOTO="libgphoto2_rules_end"
 +
#ACTION!="add", GOTO="libgphoto2_rules_end"
-
Puis partager les dossier.
+
Puis mettre
 +
BUS!="usb", ACTION!="add", GOTO="libgphoto2_rules_end"
 +
Puis faire
-
###########
+
sudo /etc/init.d/udev restart
-
# .bashrc #
+
-
###########
+
-
gedit ~/.bashrc
 
 +
== Optimisation ==
-
# ~/.bashrc: executed by bash(1) for non-login shells.
+
=== SSD ===
-
# see /usr/share/doc/bash/examples/startup-files (in the package bash-doc)
+
-
# for examples
+
-
# If not running interactively, don't do anything
+
gedit /etc/fstab
-
[ -z "$PS1" ] && return
+
-
# don't put duplicate lines in the history. See bash(1) for more options
+
# /etc/fstab: static file system information.
-
#export HISTCONTROL=ignoredups
+
#
 +
# Use 'blkid -o value -s UUID' to print the universally unique identifier
 +
# for a device; this may be used with UUID= as a more robust way to name
 +
# devices that works even if disks are added and removed. See fstab(5).
 +
#
 +
# <file system> <mount point> <type> <options> <dump> <pass>
 +
proc /proc proc nodev,noexec,nosuid 0 0
 +
/dev/sda1 / ext4 errors=remount-ro,noatime 0 1
 +
# /home was on /dev/sda2 during installation
 +
UUID=7083a664-69db-4885-a1eb-2ae11353818a /home ext4 defaults,noatime 0 2
 +
/dev/fd0 /media/floppy0 auto rw,user,noauto,exec,utf8 0 0
 +
 +
tmpfs /tmp tmpfs defaults 0 0
 +
tmpfs /var/tmp tmpfs defaults 0 0
 +
tmpfs /var/log tmpfs defaults 0 0
-
# check the window size after each command and, if necessary,
 
-
# update the values of LINES and COLUMNS.
 
-
shopt -s checkwinsize
 
-
# make less more friendly for non-text input files, see lesspipe(1)
+
Add to /etc/sysctl.conf swappiness to 0
-
[ -x /usr/bin/lesspipe ] && eval "$(lesspipe)"
+
-
# set variable identifying the chroot you work in (used in the prompt below)
+
gedit /etc/sysctl.conf
-
if [ -z "$debian_chroot" -a -r /etc/debian_chroot ]; then
+
-
debian_chroot=$(cat /etc/debian_chroot)
+
-
fi
+
-
# set a fancy prompt (non-color, unless we know we "want" color)
+
vm.swappiness=0
-
case "$TERM" in
+
-
xterm-color)
+
-
PS1='${debian_chroot:+($debian_chroot)}\[\033[01;32m\]\u@\h\[\033[00m\]:\[\033[01;34m\]\w\[\033[00m\]\$ '
+
-
;;
+
-
*)
+
-
PS1='${debian_chroot:+($debian_chroot)}\u@\h:\w\$ '
+
-
;;
+
-
esac
+
-
# Comment in the above and uncomment this below for a color prompt
+
See http://doc.ubuntu-fr.org/ssd_solid_state_drive
-
#PS1='${debian_chroot:+($debian_chroot)}\[\033[01;32m\]\u@\h\[\033[00m\]:\[\033[01;34m\]\w\[\033[00m\]\$ '
+
-
# If this is an xterm set the title to user@host:dir
+
=== Others ===
-
case "$TERM" in
+
-
xterm*|rxvt*)
+
-
PROMPT_COMMAND='echo -ne "\033]0;${USER}@${HOSTNAME}: ${PWD/$HOME/~}\007"'
+
-
;;
+
-
*)
+
-
;;
+
-
esac
+
-
# Alias definitions.
+
See http://doc.ubuntu-fr.org/optimisation
-
# You may want to put all your additions into a separate file like
+
-
# ~/.bash_aliases, instead of adding them here directly.
+
-
# See /usr/share/doc/bash-doc/examples in the bash-doc package.
+
-
#if [ -f ~/.bash_aliases ]; then
+
== Xmodmap ==
-
# . ~/.bash_aliases
+
-
#fi
+
-
# enable color support of ls and also add handy aliases
+
gedit ~/.Xmodmap
-
if [ "$TERM" != "dumb" ]; then
+
-
eval "`dircolors -b`"
+
-
alias ls='ls --color=auto'
+
-
#alias dir='ls --color=auto --format=vertical'
+
-
#alias vdir='ls --color=auto --format=long'
+
-
fi
+
-
 
+
-
# some more ls aliases
+
-
alias ll='ls -l'
+
-
alias la='ls -A'
+
-
alias l='ls -CF'
+
-
alias cp="cp -i"
+
-
alias mv="mv -i"
+
-
alias rm="rm -i"
+
-
alias ls="ls --color='always'"
+
-
alias dir="dir --color='always'"
+
-
alias grep="grep --color='always'"
+
-
alias md="mkdir"
+
-
alias rd="rmdir"
+
-
alias cd..='cd ..'
+
-
alias glxgears="glxgears -printfps"
+
-
alias cdrom="mount -t iso9660 /dev/cdrom /mnt/cdrom"
+
-
alias ll="ls -alh"
+
-
alias la="ls -a"
+
-
alias rmf='rm -rf'
+
-
 
+
-
# Definition variables
+
-
export CATALINA_HOME=/usr/local/tomcat
+
-
export CATALINA_BASE=/usr/local/tomcat
+
-
export JAVA_HOME=/usr/lib/jvm/java-1.5.0-sun
+
-
export JAVA_OPTS="-Xms512m -Xmx512m"
+
-
export MAVEN2_HOME=/usr/local/maven2
+
-
export AZUREUS_HOME=/usr/local/azureus
+
-
export ECLIPSE_HOME=/usr/local/eclipse-3.2
+
-
export PATH=/bin:/usr/bin:~/bin:${ANT_HOME}/bin:${CATALINA_HOME}/bin:${JAVA_HOME}/bin:${MAVEN2_HOME}/bin:${AZUREUS_HOME}
+
-
 
+
-
 
+
-
# enable programmable completion features (you don't need to enable
+
-
# this, if it's already enabled in /etc/bash.bashrc and /etc/profile
+
-
# sources /etc/bash.bashrc).
+
-
#if [ -f /etc/bash_completion ]; then
+
-
# . /etc/bash_completion
+
-
#fi
+
-
 
+
-
 
+
-
 
+
-
##############
+
-
# Canon Ixus #
+
-
##############
+
-
 
+
-
sudo apt-get install gtkam
+
-
 
+
-
sudo gedit /etc/udev/rules.d/45-libgphoto2.rules
+
-
 
+
-
Commentez au début
+
-
 
+
-
#BUS!="usb*", GOTO="libgphoto2_rules_end"
+
-
#ACTION!="add", GOTO="libgphoto2_rules_end"
+
-
 
+
-
Puis mettre
+
-
 
+
-
BUS!="usb", ACTION!="add", GOTO="libgphoto2_rules_end"
+
-
 
+
-
Puis faire
+
-
sudo /etc/init.d/udev restart
+
keycode 122 = semicolon NoSymbol semicolon NoSymbol semicolon
 +
keycode 123 = Delete NoSymbol Delete NoSymbol Delete
 +
keycode 171 = Next NoSymbol Next NoSymbol Next
 +
keycode 173 = Prior NoSymbol Prior NoSymbol Prior

Current revision

Contents

Ubuntu Configuration (intrepid)

Desktop Configuration

  • System Settings -> Apparence -> Launch Icon Size
  • 32
  • System Settings -> System Info -> Default Applications
  • Put chrome (open in a new tab)
  • System Settings -> Universal Access -> Pointing and Clicking
  • Mouse Keys : On
  • Full screen Dash
gsettings set com.canonical.Unity form-factor 'Netbook'
  • CompizConfig Settings Manager -> Ubuntu Unity Plugin
  • Backlight Mode : Backlight Toggles
  • Add Eclipse Application
sudo gedit /usr/share/applications/eclipse.desktop
[Desktop Entry]
Encoding=UTF-8
Name=Eclipse
Comment=Eclipse IDE
Exec=/home/anavarro/Applications/eclipse/eclipse
Icon=/home/anavarro/Applications/eclipse/icon.xpm
Terminal=false
Type=Application
Categories=GNOME;Application;Development;
StartupNotify=true
  • Compiz
  • Effects/Animations
  • Open Lamp (300ms)
  • Minimize Lamp (300ms)
  • Close Burn (400ms)

Nautilus

  • GConf /apps/nautilus/preferences/always_use_location/entry = true
  • View in list
  • Tree on left

Apt

sudo gedit /etc/apt/sources.list
#deb cdrom:[Ubuntu 10.04 LTS _Lucid Lynx_ - Release amd64 (20100429)]/ lucid main restricted
# See http://help.ubuntu.com/community/UpgradeNotes for how to upgrade to
# newer versions of the distribution.

deb http://fr.archive.ubuntu.com/ubuntu/ lucid main restricted
deb-src http://fr.archive.ubuntu.com/ubuntu/ lucid main restricted

## Major bug fix updates produced after the final release of the
## distribution.
deb http://fr.archive.ubuntu.com/ubuntu/ lucid-updates main restricted
deb-src http://fr.archive.ubuntu.com/ubuntu/ lucid-updates main restricted

## N.B. software from this repository is ENTIRELY UNSUPPORTED by the Ubuntu
## team. Also, please note that software in universe WILL NOT receive any
## review or updates from the Ubuntu security team.
deb http://fr.archive.ubuntu.com/ubuntu/ lucid universe
deb-src http://fr.archive.ubuntu.com/ubuntu/ lucid universe
deb http://fr.archive.ubuntu.com/ubuntu/ lucid-updates universe
deb-src http://fr.archive.ubuntu.com/ubuntu/ lucid-updates universe

## N.B. software from this repository is ENTIRELY UNSUPPORTED by the Ubuntu 
## team, and may not be under a free licence. Please satisfy yourself as to 
## your rights to use the software. Also, please note that software in 
## multiverse WILL NOT receive any review or updates from the Ubuntu
## security team.
deb http://fr.archive.ubuntu.com/ubuntu/ lucid multiverse
deb-src http://fr.archive.ubuntu.com/ubuntu/ lucid multiverse
deb http://fr.archive.ubuntu.com/ubuntu/ lucid-updates multiverse
deb-src http://fr.archive.ubuntu.com/ubuntu/ lucid-updates multiverse

## Uncomment the following two lines to add software from the 'backports'
## repository.
## N.B. software from this repository may not have been tested as
## extensively as that contained in the main release, although it includes
## newer versions of some applications which may provide useful features.
## Also, please note that software in backports WILL NOT receive any review
## or updates from the Ubuntu security team.
deb http://fr.archive.ubuntu.com/ubuntu/ lucid-backports main restricted universe multiverse
deb-src http://fr.archive.ubuntu.com/ubuntu/ lucid-backports main restricted universe multiverse

## Uncomment the following two lines to add software from Canonical's
## 'partner' repository.
## This software is not part of Ubuntu, but is offered by Canonical and the
## respective vendors as a service to Ubuntu users.
deb http://archive.canonical.com/ubuntu lucid partner
deb-src http://archive.canonical.com/ubuntu lucid partner

deb http://security.ubuntu.com/ubuntu lucid-security main restricted
deb-src http://security.ubuntu.com/ubuntu lucid-security main restricted
deb http://security.ubuntu.com/ubuntu lucid-security universe
deb-src http://security.ubuntu.com/ubuntu lucid-security universe
deb http://security.ubuntu.com/ubuntu lucid-security multiverse
deb-src http://security.ubuntu.com/ubuntu lucid-security multiverse

## Medibuntu # wget -q http://fr.packages.medibuntu.org/medibuntu-key.gpg -O- | sudo apt-key add -
deb http://fr.packages.medibuntu.org/ lucid free non-free
deb-src http://fr.packages.medibuntu.org/ lucid free non-free


Conky

sudo apt-get install conky

Add conky at startup

gedit ~/.conkyrc


# UBUNTU-CONKY
# A comprehensive conky script, configured for use on
# Ubuntu / Debian Gnome, without the need for any external scripts.
#
# Based on conky-jc and the default .conkyrc.
# INCLUDES :
# - tail of /var/log/messages
# - netstat connections to your computer
#
# -- Pengo (conky@pengo.us)
# 


# Create own window instead of using desktop (required in nautilus)
own_window yes
own_window_transparent yes
own_window_hints undecorated,below,sticky,skip_taskbar,skip_pager

# Use double buffering (reduces flicker, may not work for everyone)
double_buffer yes 

# fiddle with window
use_xft no 

# Update interval in seconds
update_interval 3.0 


# Minimum size of text area
# in order to fix a bug (sometimes, conky appears in the foreground)
minimum_size 350
maximum_width 350

# Draw shades?
draw_shades no 

# Text stuff
draw_outline no # amplifies text if yes
draw_borders no
uppercase no # set to yes if you want all text to be in uppercase 

# border
border_width 0

# Default colors and also border colors, grey90 == #e5e5e5
default_color grey
own_window_transparent yes

# Text alignment, other possible values are commented
alignment bottom_right

# Gap between borders of screen and text
gap_x 20
gap_y 25 

# stuff after 'TEXT' will be formatted on screen

TEXT
${color #ffcb48}CPU ${hr 2}$color
${color #98c2c7}Freq :$color ${color #CCCCCC}${freq}MHz     ${color #98c2c7}Load :$color ${color #CCCCCC}${loadavg}     ${color #98c2c7}Temp :$color ${color #CCCCCC}${acpitemp}
${color #98c2c7}CPU :      $color${color #CCCCCC}$cpu%$color  
${color #78af78}$cpubar   
${color #78af78}${cpugraph 78af78 a3a3a3}
${color #98c2c7}CPU 1 :   $color${color #CCCCCC}${cpu cpu1}%$color    ${color #78af78}${cpubar cpu1}
${color #98c2c7}CPU 2 :   $color${color #CCCCCC}${cpu cpu2}%$color    ${color #78af78}${cpubar cpu2}    
${color #98c2c7}CPU 3 :   $color${color #CCCCCC}${cpu cpu3}%$color    ${color #78af78}${cpubar cpu3}
${color #98c2c7}CPU 4 :   $color${color #CCCCCC}${cpu cpu4}%$color    ${color #78af78}${cpubar cpu4}

${color #98c2c7}NAME             PID      CPU%      MEM          MEM%
${color #eeeeee}${top name 1} ${top pid 1}   ${top cpu 1}    ${top mem_res 1}    ${top mem 1}
${color #dddddd}${top name 2} ${top pid 2}   ${top cpu 2}    ${top mem_res 2}    ${top mem 2}
${color #cccccc}${top name 3} ${top pid 3}   ${top cpu 3}    ${top mem_res 3}    ${top mem 3}
${color #bbbbbb}${top name 4} ${top pid 4}   ${top cpu 4}    ${top mem_res 4}    ${top mem 4}
${color #aaaaaa}${top name 5} ${top pid 5}   ${top cpu 5}    ${top mem_res 5}    ${top mem 5}

${color #ffcb48}MEMORY ${hr 2}$color
${color #98c2c7}RAM :     $color${color #CCCCCC}$mem / $memmax - $memperc%$color
${color #78af78}${membar 6}${color}

${color #98c2c7}NAME             PID      CPU%      MEM          MEM%
${color #eeeeee}${top_mem name 1} ${top_mem pid 1}   ${top_mem cpu 1}    ${top_mem mem_res 1}    ${top_mem mem 1}
${color #dddddd}${top_mem name 2} ${top_mem pid 2}   ${top_mem cpu 2}    ${top_mem mem_res 2}    ${top_mem mem 2}
${color #cccccc}${top_mem name 3} ${top_mem pid 3}   ${top_mem cpu 3}    ${top_mem mem_res 3}    ${top_mem mem 3}
${color #bbbbbb}${top_mem name 4} ${top_mem pid 4}   ${top_mem cpu 4}    ${top_mem mem_res 4}    ${top_mem mem 4}
${color #aaaaaa}${top_mem name 5} ${top_mem pid 5}   ${top_mem cpu 5}    ${top_mem mem_res 5}    ${top_mem mem 5}

${color #ffcb48}DISK ${hr 2}$color
${color #98c2c7}IO :      $color${color #CCCCCC}$diskio$color 
${color #98c2c7}/ :       $color${color #CCCCCC}${fs_used /}/${fs_size /} (${fs_free /} ${fs_free_perc /}% free)$color
${color #78af78}${fs_bar /}$color
${color #98c2c7}/home :   $color${color #CCCCCC}${fs_used /home}/${fs_size /home} (${fs_free /home} ${fs_free_perc /home}% free)$color
${color #78af78}${fs_bar /home}$color
${color #98c2c7}/sdc3 :   $color${color #CCCCCC}${fs_used /media/a3ff4b9a-e4bb-4542-9080-2fd91e3fa65b}/${fs_size /media/a3ff4b9a-e4bb-4542-9080-2fd91e3fa65b} (${fs_free /media/a3ff4b9a-e4bb-4542-9080-2fd91e3fa65b} ${fs_free_perc /media/a3ff4b9a-e4bb-4542-9080-2fd91e3fa65b}% free)$color
${color #78af78}${fs_bar /media/a3ff4b9a-e4bb-4542-9080-2fd91e3fa65b}$color
${color #98c2c7}/sdb3 :   $color${color #CCCCCC}${fs_used /media/a18e1f05-8483-4625-aae9-bdc18f641ca1}/${fs_size /media/a18e1f05-8483-4625-aae9-bdc18f641ca1} (${fs_free /media/a18e1f05-8483-4625-aae9-bdc18f641ca1} ${fs_free_perc /media/a18e1f05-8483-4625-aae9-bdc18f641ca1}% free)$color
${color #78af78}${fs_bar /media/a18e1f05-8483-4625-aae9-bdc18f641ca1}$color

${color #ffcb48}NETWORK (${addr eth0}) ${hr 2}$color
${color #98c2c7}Download :$color ${color #CCCCCC}${downspeed eth0} k/s              ${color #98c2c7}Upload :$color ${color #CCCCCC}${upspeed eth0} k/s
${color #888888}${downspeedgraph eth0 25,100 ff0000 0000ff}                 ${color #888888}${upspeedgraph eth0 25,100 0000ff ff0000}
${color #98c2c7}Total :$color ${color #CCCCCC}${totaldown eth0}                 ${color #98c2c7}Total :$color ${color #CCCCCC}${totalup eth0}

${color #ffcb48}MUSIC ${hr 2}$color
${color #98c2c7}Playing :$color
${color #CCCCCC}${exec /usr/bin/rhythmbox-client --no-start --no-present --print-playing-format “%at”}$color




For laptop
gedit ~/.conkyrc


# UBUNTU-CONKY
# A comprehensive conky script, configured for use on
# Ubuntu / Debian Gnome, without the need for any external scripts.
#
# Based on conky-jc and the default .conkyrc.
# INCLUDES :
# - tail of /var/log/messages
# - netstat connections to your computer
#
# -- Pengo (conky@pengo.us)
# 


# Create own window instead of using desktop (required in nautilus)
own_window yes
own_window_transparent yes
own_window_hints undecorated,below,sticky,skip_taskbar,skip_pager

# Use double buffering (reduces flicker, may not work for everyone)
double_buffer yes 

# fiddle with window
use_xft no 

# Update interval in seconds
update_interval 3.0 


# Minimum size of text area
# in order to fix a bug (sometimes, conky appears in the foreground)
minimum_size 350
maximum_width 350

# Draw shades?
draw_shades no 

# Text stuff
draw_outline no # amplifies text if yes
draw_borders no
uppercase no # set to yes if you want all text to be in uppercase 

# border
border_width 0

# Default colors and also border colors, grey90 == #e5e5e5
default_color grey
own_window_transparent yes

# Text alignment, other possible values are commented
alignment bottom_right

# Gap between borders of screen and text
gap_x 20
gap_y 25 

# stuff after 'TEXT' will be formatted on screen

TEXT
${color #ffcb48}CPU ${hr 2}$color
${color #98c2c7}Freq  $color ${color #CCCCCC}${freq}MHz     ${color #98c2c7}Load $color ${color #CCCCCC}${loadavg}     ${color #98c2c7}Temp $color ${color #CCCCCC}${acpitemp}
${color #98c2c7}Cpu      $color${color #CCCCCC}$cpu$color  
${color #78af78}$cpubar   
${color #78af78}${cpugraph 78af78 a3a3a3}
${color #98c2c7}Cpu 1    $color${color #CCCCCC}${cpu cpu1}$color    ${color #78af78}${cpubar cpu1}
${color #98c2c7}Cpu 2    $color${color #CCCCCC}${cpu cpu2}$color    ${color #78af78}${cpubar cpu2}    
${color #98c2c7}Cpu 3    $color${color #CCCCCC}${cpu cpu3}$color    ${color #78af78}${cpubar cpu3}
${color #98c2c7}Cpu 4    $color${color #CCCCCC}${cpu cpu4}$color    ${color #78af78}${cpubar cpu4}

${color #98c2c7}Name                  Pid      Cpu       Mem        Mem%
${color #eeeeee}${top name 1}     ${top pid 1}   ${top cpu 1}    ${top mem_res 1}    ${top mem 1}
${color #dddddd}${top name 2}     ${top pid 2}   ${top cpu 2}    ${top mem_res 2}    ${top mem 2}
${color #cccccc}${top name 3}     ${top pid 3}   ${top cpu 3}    ${top mem_res 3}    ${top mem 3}
${color #bbbbbb}${top name 4}     ${top pid 4}   ${top cpu 4}    ${top mem_res 4}    ${top mem 4}
${color #aaaaaa}${top name 5}     ${top pid 5}   ${top cpu 5}    ${top mem_res 5}    ${top mem 5}

${color #ffcb48}MEMORY ${hr 2}$color
${color #98c2c7}Ram      $color${color #CCCCCC}$mem / $memmax - $memperc%$color
${color #78af78}${membar 6}${color} 

${color #98c2c7}Name                  Pid      Cpu       Mem        Mem%
${color #eeeeee}${top_mem name 1}     ${top_mem pid 1}   ${top_mem cpu 1}    ${top_mem mem_res 1}    ${top_mem mem 1}
${color #dddddd}${top_mem name 2}     ${top_mem pid 2}   ${top_mem cpu 2}    ${top_mem mem_res 2}    ${top_mem mem 2}
${color #cccccc}${top_mem name 3}     ${top_mem pid 3}   ${top_mem cpu 3}    ${top_mem mem_res 3}    ${top_mem mem 3}
${color #bbbbbb}${top_mem name 4}     ${top_mem pid 4}   ${top_mem cpu 4}    ${top_mem mem_res 4}    ${top_mem mem 4}
${color #aaaaaa}${top_mem name 5}     ${top_mem pid 5}   ${top_mem cpu 5}    ${top_mem mem_res 5}    ${top_mem mem 5}

${color #ffcb48}DISK ${hr 2}$color
${color #98c2c7}Io       $color${color #CCCCCC}$diskio$color
${color #98c2c7}Swap     $color${color #CCCCCC}${swap}/${swapmax} (${swapfree} ${swapperc}% free)$color
${color #78af78}${swapbar }$color
${color #98c2c7}/        $color${color #CCCCCC}${fs_used /}/${fs_size /} (${fs_free /} ${fs_free_perc /}% free)$color
${color #78af78}${fs_bar /}$color
${color #98c2c7}/home    $color${color #CCCCCC}${fs_used /home}/${fs_size /home} (${fs_free /home} ${fs_free_perc /home}% free)$color
${color #78af78}${fs_bar /home}$color

${color #ffcb48}BATTERY ${hr 2}$color
${color #98c2c7}Status   $color${color #CCCCCC}$battery $battery_time$color
${color #98c2c7}Usage    $color${color #CCCCCC}$battery_percent%$color
${color #78af78}${battery_bar}${color}

${color #ffcb48}NETWORK (${addr wlan0}) ${hr 2}$color
${color #98c2c7}Bitrate  $color ${color #CCCCCC}${wireless_bitrate wlan0}
${color #98c2c7}Quality  $color ${color #CCCCCC}${wireless_link_qual_perc wlan0}%
${color #78af78}${wireless_link_bar wlan0}${color}
${color #98c2c7}Download $color ${color #CCCCCC}${downspeed wlan0} k/s             ${alignr}${color #98c2c7}Upload $color ${color #CCCCCC}${upspeed wlan0} k/s
${color #888888}${downspeedgraph wlan0 25,100 ff0000 0000ff}                 ${alignr}${color #888888}${upspeedgraph wlan0 25,100 0000ff ff0000}
${color #98c2c7}Total    $color ${color #CCCCCC}${totaldown wlan0}                 ${alignr}${color #98c2c7}Total  $color ${color #CCCCCC}${totalup wlan0}

${color #ffcb48}MUSIC ${hr 2}$color
${color #98c2c7}Playing $color
${color #CCCCCC}${exec /usr/bin/rhythmbox-client --no-start --no-present --print-playing-format “%at”}$color

Freeplayer

  • Freeplayer multiposte
sudo apt-get install vlc

Port Triggering : 32768-32996 (both)

  • Homeplayer

Port Forwarding : 8080 (TCP)

Streamripper

sudo apt-get install streamripper
gedit /home/anavarro/bin/streamripper-radio.sh
#!/bin/sh
streamripper http://88.191.11.83:8192  -d /home/anavarro/music/radio/ -s & # Hit Music Station
streamripper http://194.146.227.87:8192  -d /home/anavarro/music/radio/ -s & # Frequence 3

Samba

sudo apt-get install samba
sudo smbpasswd -a user_name

And share a directory.

NFS

sudo apt-get install nfs-common nfs-kernel-server
sudo gedit /etc/hosts.allow
# /etc/hosts.allow: list of hosts that are allowed to access the system.
#                   See the manual pages hosts_access(5), hosts_options(5)
#                   and /usr/doc/netbase/portmapper.txt.gz
#
# Example:    ALL: LOCAL @some_netgroup
#             ALL: .foobar.edu EXCEPT terminalserver.foobar.edu
#
# If you're going to protect the portmapper use the name "portmap" for the
# daemon name. Remember that you can only use the keyword "ALL" and IP
# addresses (NOT host or domain names) for the portmapper, as well as for
# rpc.mountd (the NFS mount daemon). See portmap(8), rpc.mountd(8) and 
# /usr/share/doc/portmap/portmapper.txt.gz for further information.
#
portmap:192.168.0.3
nfsd:192.168.0.3
mountd:192.168.0.3


sudo gedit /etc/hosts.deny
# /etc/hosts.deny: list of hosts that are _not_ allowed to access the system.
#                  See the manual pages hosts_access(5), hosts_options(5)
#                  and /usr/doc/netbase/portmapper.txt.gz
#
# Example:    ALL: some.host.name, .some.domain
#             ALL EXCEPT in.fingerd: other.host.name, .other.domain
#
# If you're going to protect the portmapper use the name "portmap" for the
# daemon name. Remember that you can only use the keyword "ALL" and IP
# addresses (NOT host or domain names) for the portmapper. See portmap(8)
# and /usr/doc/portmap/portmapper.txt.gz for further information.
#
# The PARANOID wildcard matches any host whose name does not match its
# address.

# You may wish to enable this to ensure any programs that don't
# validate looked up hostnames still leave understandable logs. In past
# versions of Debian this has been the default.
# ALL: PARANOID
portmap:ALL
nfsd:ALL
mountd:ALL

And share a directory.

.bashrc

gedit ~/.bashrc


# ~/.bashrc: executed by bash(1) for non-login shells.
# see /usr/share/doc/bash/examples/startup-files (in the package bash-doc)
# for examples

# If not running interactively, don't do anything
[ -z "$PS1" ] && return

# don't put duplicate lines in the history. See bash(1) for more options
#export HISTCONTROL=ignoredups

# check the window size after each command and, if necessary,
# update the values of LINES and COLUMNS.
shopt -s checkwinsize

# make less more friendly for non-text input files, see lesspipe(1)
[ -x /usr/bin/lesspipe ] && eval "$(lesspipe)"

# set variable identifying the chroot you work in (used in the prompt below)
if [ -z "$debian_chroot" -a -r /etc/debian_chroot ]; then
    debian_chroot=$(cat /etc/debian_chroot)
fi

# set a fancy prompt (non-color, unless we know we "want" color)
case "$TERM" in
xterm-color)
    PS1='${debian_chroot:+($debian_chroot)}\[\033[01;32m\]\u@\h\[\033[00m\]:\[\033[01;34m\]\w\[\033[00m\]\$ '
    ;;
*)
    PS1='${debian_chroot:+($debian_chroot)}\u@\h:\w\$ '
    ;;
esac

# Comment in the above and uncomment this below for a color prompt
#PS1='${debian_chroot:+($debian_chroot)}\[\033[01;32m\]\u@\h\[\033[00m\]:\[\033[01;34m\]\w\[\033[00m\]\$ '

# If this is an xterm set the title to user@host:dir
case "$TERM" in
xterm*|rxvt*)
    PROMPT_COMMAND='echo -ne "\033]0;${USER}@${HOSTNAME}: ${PWD/$HOME/~}\007"'
    ;;
*)
    ;;
esac

# Alias definitions.
# You may want to put all your additions into a separate file like
# ~/.bash_aliases, instead of adding them here directly.
# See /usr/share/doc/bash-doc/examples in the bash-doc package.

#if [ -f ~/.bash_aliases ]; then
#    . ~/.bash_aliases
#fi

# enable color support of ls and also add handy aliases
if [ "$TERM" != "dumb" ]; then
    eval "`dircolors -b`"
   alias ls='ls --color=auto'
    #alias dir='ls --color=auto --format=vertical'
    #alias vdir='ls --color=auto --format=long'
fi

# some more ls aliases
alias ll='ls -l'
alias la='ls -A'
alias l='ls -CF'
alias cp="cp -i"
alias mv="mv -i"
alias rm="rm -i"
alias ls="ls --color='always'"
alias dir="dir --color='always'"
alias grep="grep --color='always'"
alias md="mkdir"
alias rd="rmdir"
alias cd..='cd ..'
alias glxgears="glxgears -printfps"
alias cdrom="mount -t iso9660 /dev/cdrom /mnt/cdrom"
alias ll="ls -alh"
alias la="ls -a"
alias rmf='rm -rf' 

# Definition variables
export CATALINA_HOME=/usr/local/tomcat
export CATALINA_BASE=/usr/local/tomcat
export JAVA_HOME=/usr/lib/jvm/java-1.6.0-sun
export JAVA_OPTS="-Xmx512m"
export MAVEN_HOME=/usr/local/maven2
export ECLIPSE_HOME=/usr/local/eclipse-3.4
export PATH=/bin:/usr/bin:~/bin:${CATALINA_HOME}/bin:${JAVA_HOME}/bin:${MAVEN_HOME}/bin


# enable programmable completion features (you don't need to enable
# this, if it's already enabled in /etc/bash.bashrc and /etc/profile
# sources /etc/bash.bashrc).
#if [ -f /etc/bash_completion ]; then
#    . /etc/bash_completion
#fi

Canon Ixus

sudo apt-get install gtkam
sudo gedit /etc/udev/rules.d/45-libgphoto2.rules 

Commentez au début

#BUS!="usb*", GOTO="libgphoto2_rules_end"
#ACTION!="add", GOTO="libgphoto2_rules_end"

Puis mettre

BUS!="usb", ACTION!="add", GOTO="libgphoto2_rules_end"

Puis faire

sudo /etc/init.d/udev restart


Optimisation

SSD

gedit /etc/fstab

# /etc/fstab: static file system information.
#
# Use 'blkid -o value -s UUID' to print the universally unique identifier
# for a device; this may be used with UUID= as a more robust way to name
# devices that works even if disks are added and removed. See fstab(5).
#
# <file system> <mount point>   <type>  <options>       <dump>  <pass>
proc            /proc           proc    nodev,noexec,nosuid 0       0
/dev/sda1       /               ext4    errors=remount-ro,noatime 0       1
# /home was on /dev/sda2 during installation
UUID=7083a664-69db-4885-a1eb-2ae11353818a /home           ext4    defaults,noatime        0       2
/dev/fd0        /media/floppy0  auto    rw,user,noauto,exec,utf8 0       0

tmpfs      /tmp            tmpfs        defaults           0    0
tmpfs      /var/tmp        tmpfs        defaults           0    0
tmpfs      /var/log        tmpfs        defaults           0    0


Add to /etc/sysctl.conf swappiness to 0

gedit /etc/sysctl.conf

vm.swappiness=0

See http://doc.ubuntu-fr.org/ssd_solid_state_drive

Others

See http://doc.ubuntu-fr.org/optimisation

Xmodmap

gedit ~/.Xmodmap
keycode 122 = semicolon NoSymbol semicolon NoSymbol semicolon
keycode 123 = Delete NoSymbol Delete NoSymbol Delete
keycode 171 = Next NoSymbol Next NoSymbol Next
keycode 173 = Prior NoSymbol Prior NoSymbol Prior
Personal tools