Ubuntu:Configuration
From Alexandre Navarro's Wiki
(→Conky) |
(→Conky) |
||
Line 150: | Line 150: | ||
Add conky at startup | Add conky at startup | ||
- | gedit ~/.conkyrc | + | gedit ~/.conkyrc |
# UBUNTU-CONKY | # UBUNTU-CONKY |
Revision as of 02:23, 1 November 2008
Contents |
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
apt
sudo gedit /usr/apt/sources.list
# deb cdrom:[Ubuntu 8.10 _Intrepid Ibex_ - Release amd64 (20081029.2)]/ intrepid 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/ intrepid main restricted deb-src http://fr.archive.ubuntu.com/ubuntu/ intrepid main restricted ## Major bug fix updates produced after the final release of the ## distribution. deb http://fr.archive.ubuntu.com/ubuntu/ intrepid-updates main restricted deb-src http://fr.archive.ubuntu.com/ubuntu/ intrepid-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/ 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 ## 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/ 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 ## 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/ intrepid-backports main restricted universe multiverse # deb-src http://fr.archive.ubuntu.com/ubuntu/ intrepid-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 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 ## Medibuntu # wget -q http://fr.packages.medibuntu.org/medibuntu-key.gpg -O- | sudo apt-key add - deb http://fr.packages.medibuntu.org/ intrepid free non-free deb-src http://fr.packages.medibuntu.org/ intrepid free non-free ## Openoffice 3.0 deb http://ppa.launchpad.net/openoffice-pkgs/ubuntu intrepid main deb-src http://ppa.launchpad.net/openoffice-pkgs/ubuntu intrepid main ## Sources du logiciel ## Virtualbox #deb http://www.virtualbox.org/debian intrepid non-free ## miro (you tube) #deb http://ftp.osuosl.org/pub/pculture.org/miro/linux/repositories/ubuntu intrepid
Devilspie
sudo apt-get install devilspie
Add devilspie at startup
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") (is (application_name) "emacs") (is (application_name) "emacs22-gtk") (matches (application_name) "amaroK$") (matches (window_name) "Azureus ") ) (maximize) )
gedit ~/.devilspie/debug.ds
(debug)
gedit ~/.devilspie/conky.ds
(if (matches (window_name) ".*Conky.*") (begin (pin) (skip_pager) (skip_tasklist) (below) (wintype "dock") ) )
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_type override own_window_transparent yes #own_window_transparent no own_window_hints undecorated,below,sticky,skip_taskbar,skip_pager #own_window_hints undecorated,above,sticky,skip_taskbar,skip_pager #own_window_colour white # 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 # 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_margin 0 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% ${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} ${color #ffcb48}MUSIC ${hr 2}$color ${color #98c2c7}Playing :$color ${color #CCCCCC}${exec listen --current}$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/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
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.5.0-sun export JAVA_OPTS="-Xms512m -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