Ubuntu:Configuration
From Alexandre Navarro's Wiki
- Configuration d'une Ubuntu (feisty) #
- Configuration du Desktop #
- Barre de taches :
- mettre les fenetres en haut, espaces de travail (mettre sur 2 lignes), lien vers le bureau et moniteur systeme. - changer le format de la date
- Systeme -> Preferences -> Applications Preferees
- mettre firefox et thunderbird
- Systeme -> Preferences -> Clavier
- Logitech Ultra X
- Systeme -> Preferences -> Economiseur d'ecran
- mettre Matrix View
- Systeme -> Preferences -> Effet de bureau
- activer les effets de bureau
- Systeme -> Preferences -> Preferences Menus et Barre d'outils
- mettre icones seulement et detachables
- Systeme -> Preferences -> Notification du courrier
- configurer
- Systeme -> Preferences -> Polices
- mettre lissage sous pixel
- Systeme -> Preferences -> Raccourcis clavier
- mettre WIN + e pour nautilus - mettre touches supplementaires
- Systeme -> Administration -> Fenetre de configuration
- mettre navarroa en login automatique
- Systeme -> Administration -> Impression
- ajout d'une i560 avec driver CANON BJC-7004
- Nautilus #
Dans GConf /apps/nautilus/preferences/always_use_location/entry = true
- Nvidia #
sudo apt-get install linux-restricted-modules-`uname -r` sudo apt-get install nvidia-glx nvidia-kernel-common sudo nvidia-glx-config enable
sudo gedit /etc/X11/xorg.conf
- 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)
- This file was generated by dexconf, the Debian X Configuration tool, using
- values from the debconf database.
- Edit this file with caution, and see the /etc/X11/xorg.conf manual page.
- (Type "man /etc/X11/xorg.conf" at the shell prompt.)
- 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
- package.
- If you have edited this file but would like it to be automatically updated
- again, run the following command:
- sudo dpkg-reconfigure -phigh xserver-xorg
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"
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"
# /dev/input/event # for USB
Identifier "stylus" Driver "wacom" Option "Device" "/dev/wacom"# Change to Option "Type" "stylus" Option "ForceDevice" "ISDV4"# Tablet PC ONLY
EndSection
Section "InputDevice"
# /dev/input/event # for USB
Identifier "eraser" Driver "wacom" Option "Device" "/dev/wacom"# Change to Option "Type" "eraser" Option "ForceDevice" "ISDV4"# Tablet PC ONLY
EndSection
Section "InputDevice"
# /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)
- Homejukebox
sudo apt-get install homeplayer myfreetv
Port Forwarding : 8080 (TCP)
- Streamripper #
sudo apt-get install streamripper
gedit /home/navarroa/bin/streamripper-radio.sh
- !/bin/sh
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
- Samba #
sudo apt-get install samba
sudo smbpasswd -a user_name
Puis partager les dossier.
- 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
Puis partager les dossier.
- .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.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