Ubuntu:Configuration

From Alexandre Navarro's Wiki

Revision as of 23:57, 31 October 2008 by Anavarro (Talk | contribs)
Jump to: navigation, search

Ubuntu Configuration (intrepid)

Desktop Configuration

  • Task Bar :
  • windows on top, remove shortcuts and bottom task bar, n workspaces and system monitor.
  • change date format
  • Systeme -> Preferences -> Applications Preferees
  • mettre firefox et thunderbird
  • Systeme -> Preferences -> Clavier
  • Touche de la souris
  • Systeme -> Preferences -> Apparence
  • Theme : Human-Clearlooks
  • Interface : Icones seul
  • Effets : Extra
  • Systeme -> Preferences -> Preferences Menus et Barre d'outils
  • mettre icones seulement et detachables

Nautilus

  • GConf /apps/nautilus/preferences/always_use_location/entry = true
  • View in list
  1. apt #
  1. deb cdrom:[Ubuntu 8.10 _Intrepid Ibex_ - Release amd64 (20081029.2)]/ intrepid main restricted
  2. See http://help.ubuntu.com/community/UpgradeNotes for how to upgrade to
  3. newer versions of the distribution.

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

    1. Major bug fix updates produced after the final release of the
    2. distribution.

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

    1. N.B. software from this repository is ENTIRELY UNSUPPORTED by the Ubuntu
    2. team. Also, please note that software in universe WILL NOT receive any
    3. review or updates from the Ubuntu security team.

deb http://fr.archive.ubuntu.com/ubuntu/ intrepid universe deb-src http://fr.archive.ubuntu.com/ubuntu/ intrepid universe deb http://fr.archive.ubuntu.com/ubuntu/ intrepid-updates universe deb-src http://fr.archive.ubuntu.com/ubuntu/ intrepid-updates universe

    1. N.B. software from this repository is ENTIRELY UNSUPPORTED by the Ubuntu
    2. team, and may not be under a free licence. Please satisfy yourself as to
    3. your rights to use the software. Also, please note that software in
    4. multiverse WILL NOT receive any review or updates from the Ubuntu
    5. security team.

deb http://fr.archive.ubuntu.com/ubuntu/ intrepid multiverse deb-src http://fr.archive.ubuntu.com/ubuntu/ intrepid multiverse deb http://fr.archive.ubuntu.com/ubuntu/ intrepid-updates multiverse deb-src http://fr.archive.ubuntu.com/ubuntu/ intrepid-updates multiverse

    1. Uncomment the following two lines to add software from the 'backports'
    2. repository.
    3. N.B. software from this repository may not have been tested as
    4. extensively as that contained in the main release, although it includes
    5. newer versions of some applications which may provide useful features.
    6. Also, please note that software in backports WILL NOT receive any review
    7. or updates from the Ubuntu security team.
  1. deb http://fr.archive.ubuntu.com/ubuntu/ intrepid-backports main restricted universe multiverse
  2. deb-src http://fr.archive.ubuntu.com/ubuntu/ intrepid-backports main restricted universe multiverse
    1. Uncomment the following two lines to add software from Canonical's
    2. 'partner' repository. This software is not part of Ubuntu, but is
    3. offered by Canonical and the respective vendors as a service to Ubuntu
    4. users.

deb http://archive.canonical.com/ubuntu intrepid partner deb-src http://archive.canonical.com/ubuntu intrepid partner

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

    1. Medibuntu

deb http://fr.packages.medibuntu.org/ intrepid free non-free deb-src http://fr.packages.medibuntu.org/ intrepid free non-free

    1. Virtualbox
  1. deb http://www.virtualbox.org/debian intrepid non-free
    1. miro (you tube)
  1. deb http://ftp.osuosl.org/pub/pculture.org/miro/linux/repositories/ubuntu intrepid


  1. Grub #

sudo gedit /boot/grub/menu.lst

  1. menu.lst - See: grub(8), info grub, update-grub(8)
  2. grub-install(8), grub-floppy(8),
  3. grub-md5-crypt, /usr/share/doc/grub
  4. and /usr/share/doc/grub-doc/.
    1. default num
  1. Set the default entry to the entry number NUM. Numbering starts from 0, and
  2. the entry number 0 is the default if the command is not used.
  3. You can specify 'saved' instead of a number. In this case, the default entry
  4. is the entry saved with the command 'savedefault'.
  5. WARNING: If you are using dmraid do not change this entry to 'saved' or your
  6. array will desync and will not let you boot your system.

default 0

    1. timeout sec
  1. Set a timeout, in SEC seconds, before automatically booting the default entry
  2. (normally the first entry defined).

timeout 3

    1. hiddenmenu
  1. Hides the menu by default (press ESC to see the menu)
  2. hiddenmenu
  1. Pretty colours
  2. color cyan/blue white/blue
    1. password ['--md5'] passwd
  1. If used in the first section of a menu file, disable all interactive editing
  2. control (menu entry editor and command-line) and entries protected by the
  3. command 'lock'
  4. e.g. password topsecret
  5. password --md5 $1$gLhU0/$aW78kHK1QfV3P2b2znUoe/
  6. password topsecret
  1. examples
  2. title Windows 95/98/NT/2000
  3. root (hd0,0)
  4. makeactive
  5. chainloader +1
  6. title Linux
  7. root (hd0,1)
  8. kernel /vmlinuz root=/dev/hda2 ro
  1. Put static boot stanzas before and/or after AUTOMAGIC KERNEL LIST
      1. BEGIN AUTOMAGIC KERNELS LIST
    1. lines between the AUTOMAGIC KERNELS LIST markers will be modified
    2. by the debian update-grub script except for the default options below
    1. DO NOT UNCOMMENT THEM, Just edit them to your needs
    1. ## Start Default Options ##
    2. default kernel options
    3. default kernel options for automagic boot options
    4. If you want special options for specific kernels use kopt_x_y_z
    5. where x.y.z is kernel version. Minor versions can be omitted.
    6. e.g. kopt=root=/dev/hda1 ro
    7. kopt_2_6_8=root=/dev/hdc1 ro
    8. kopt_2_6_8_2_686=root=/dev/hdc2 ro
  1. kopt=root=UUID=6cc31c2d-9f2e-4599-93ac-a97c82d926f6 ro
  2. kopt_2_6=root=/dev/sda2 ro
    1. default grub root device
    2. e.g. groot=(hd0,0)
  1. groot=(hd0,1)
    1. should update-grub create alternative automagic boot options
    2. e.g. alternative=true
    3. alternative=false
  1. alternative=true
    1. should update-grub lock alternative automagic boot options
    2. e.g. lockalternative=true
    3. lockalternative=false
  1. lockalternative=false
    1. additional options to use with the default boot option, but not with the
    2. alternatives
    3. e.g. defoptions=vga=791 resume=/dev/hda5
  1. defoptions=quiet splash
    1. should update-grub lock old automagic boot options
    2. e.g. lockold=false
    3. lockold=true
  1. lockold=false
    1. altoption boot targets option
    2. multiple altoptions lines are allowed
    3. e.g. altoptions=(extra menu suffix) extra boot options
    4. altoptions=(recovery) single
  1. altoptions=(recovery mode) single
    1. controls how many kernels should be put into the menu.lst
    2. only counts the first occurence of a kernel, not the
    3. alternative kernel options
    4. e.g. howmany=all
    5. howmany=7
  1. howmany=all
    1. should update-grub create memtest86 boot option
    2. e.g. memtest86=true
    3. memtest86=false
  1. memtest86=true
    1. should update-grub adjust the value of the default booted system
    2. can be true or false
  1. updatedefaultentry=false
    1. ## 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

      1. END DEBIAN AUTOMAGIC KERNELS LIST
  1. This is a divider, added to separate the menu items below from the Debian
  2. ones.

title Other operating systems: root


  1. This entry automatically added by the Debian installer for a non-linux OS
  2. on /dev/sdb1

title Microsoft Windows XP dition familiale root (hd1,0) savedefault makeactive map (hd0) (hd1) map (hd1) (hd0) chainloader +1



  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)


  1. conky #

sudo apt-get install conky

Rajouter conky au demarrage

gedit ~/.conkyrc

    1. UBUNTU-CONKY
  1. A comprehensive conky script, configured for use on
  2. Ubuntu / Debian Gnome, without the need for any external scripts.
  3. Based on conky-jc and the default .conkyrc.
  4. INCLUDES :
  5. - tail of /var/log/messages
  6. - netstat connections to your computer
  7. -- Pengo (conky@pengo.us)
  1. Create own window instead of using desktop (required in nautilus)

own_window yes

  1. own_window_type override

own_window_transparent yes own_window_hints undecorated,below,sticky,skip_taskbar,skip_pager

  1. Use double buffering (reduces flicker, may not work for everyone)

double_buffer yes

  1. fiddle with window

use_spacer yes use_xft no

  1. Update interval in seconds

update_interval 3.0

  1. Minimum size of text area
  2. minimum_size 250 5
  1. Draw shades?

draw_shades no

  1. 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

  1. Stippled borders?

stippled_borders 3

  1. border margins

border_margin 9

  1. border width

border_width 10

  1. Default colors and also border colors, grey90 == #e5e5e5

default_color grey

own_window_colour brown own_window_transparent yes

  1. Text alignment, other possible values are commented
  2. alignment top_left
  3. alignment top_right
  4. alignment bottom_left

alignment bottom_right

  1. Gap between borders of screen and text

gap_x 10 gap_y 10

  1. 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}


  1. 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)



  1. Freeplayer #

-Freeplayer multiposte

sudo apt-get install vlc

Port Triggering : 32768-32996 (both)

- Homejukebox

sudo apt-get install homeplayer myfreetv

Port Forwarding : 8080 (TCP)



  1. Streamripper #

sudo apt-get install streamripper

gedit /home/navarroa/bin/streamripper-radio.sh

  1. !/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


  1. Samba #

sudo apt-get install samba

sudo smbpasswd -a user_name

Puis partager les dossier.

  1. NFS #

sudo apt-get install nfs-common nfs-kernel-server

sudo gedit /etc/hosts.allow


  1. /etc/hosts.allow: list of hosts that are allowed to access the system.
  2. See the manual pages hosts_access(5), hosts_options(5)
  3. and /usr/doc/netbase/portmapper.txt.gz
  4. Example: ALL: LOCAL @some_netgroup
  5. ALL: .foobar.edu EXCEPT terminalserver.foobar.edu
  6. If you're going to protect the portmapper use the name "portmap" for the
  7. daemon name. Remember that you can only use the keyword "ALL" and IP
  8. addresses (NOT host or domain names) for the portmapper, as well as for
  9. rpc.mountd (the NFS mount daemon). See portmap(8), rpc.mountd(8) and
  10. /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


  1. /etc/hosts.deny: list of hosts that are _not_ allowed to access the system.
  2. See the manual pages hosts_access(5), hosts_options(5)
  3. and /usr/doc/netbase/portmapper.txt.gz
  4. Example: ALL: some.host.name, .some.domain
  5. ALL EXCEPT in.fingerd: other.host.name, .other.domain
  6. If you're going to protect the portmapper use the name "portmap" for the
  7. daemon name. Remember that you can only use the keyword "ALL" and IP
  8. addresses (NOT host or domain names) for the portmapper. See portmap(8)
  9. and /usr/doc/portmap/portmapper.txt.gz for further information.
  10. The PARANOID wildcard matches any host whose name does not match its
  11. address.
  1. You may wish to enable this to ensure any programs that don't
  2. validate looked up hostnames still leave understandable logs. In past
  3. versions of Debian this has been the default.
  4. ALL: PARANOID

portmap:ALL nfsd:ALL mountd:ALL


Puis partager les dossier.


  1. .bashrc #

gedit ~/.bashrc


  1. ~/.bashrc: executed by bash(1) for non-login shells.
  2. see /usr/share/doc/bash/examples/startup-files (in the package bash-doc)
  3. for examples
  1. If not running interactively, don't do anything

[ -z "$PS1" ] && return

  1. don't put duplicate lines in the history. See bash(1) for more options
  2. export HISTCONTROL=ignoredups
  1. check the window size after each command and, if necessary,
  2. update the values of LINES and COLUMNS.

shopt -s checkwinsize

  1. make less more friendly for non-text input files, see lesspipe(1)

[ -x /usr/bin/lesspipe ] && eval "$(lesspipe)"

  1. 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

  1. 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

  1. Comment in the above and uncomment this below for a color prompt
  2. PS1='${debian_chroot:+($debian_chroot)}\[\033[01;32m\]\u@\h\[\033[00m\]:\[\033[01;34m\]\w\[\033[00m\]\$ '
  1. 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

  1. Alias definitions.
  2. You may want to put all your additions into a separate file like
  3. ~/.bash_aliases, instead of adding them here directly.
  4. See /usr/share/doc/bash-doc/examples in the bash-doc package.
  1. if [ -f ~/.bash_aliases ]; then
  2. . ~/.bash_aliases
  3. fi
  1. 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

  1. 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'

  1. 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}


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


  1. Canon Ixus #

sudo apt-get install gtkam

sudo gedit /etc/udev/rules.d/45-libgphoto2.rules

Commentez au début

  1. BUS!="usb*", GOTO="libgphoto2_rules_end"
  2. ACTION!="add", GOTO="libgphoto2_rules_end"

Puis mettre

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

Puis faire

sudo /etc/init.d/udev restart

Personal tools