|
From BZR |
|
Caution: this version is regarded as unstable and can present some bugs : Use at your own risk
And stay updated
Não esqueça de remover as demais versões de Cairo-dock de sua máquina antes de instalá-lo pelo BZR
Se houver qualquer erro : por favor, não seja tímido e abra um tópico em BZR forum
Com BZR no Launchpad, você pode nos ajudar rapidamente !
Se você programa em C (ou em outra linguagem usando o applet DBus), é muito fácil propor suas modificações num branch pessoal no Launchpad
Para mais informações, leia isto : Help us with BZR
Endereço do bazaar
Para mais informações sobre o endereço ou como navegar pelos arquivos fonte, vá em : https://code.edge.launchpad.net/cairo-dock
Método Genérico
Se você não está no Debian, Ubuntu ou qualquer outro Fork, Fedora ou ArchLinux, esta seção é feita para você! Para os demais, vá para as próximas seções.
- Instalar todas as dependências. Cuidado : a nomenclatura pode variar segundo a distribuição (dev pode ser chamado devel, etc.)
bzr libtool build-essential automake1.9 autoconf m4 autotools-dev pkg-config zenity intltool gettext libcairo2-dev libgtk2.0-dev librsvg2-dev libdbus-glib-1-dev libgnomeui-dev libvte-dev libxxf86vm-dev libx11-dev libalsa-ocaml-dev libasound2-dev libxtst-dev libgnome-menu-dev libgtkglext1-dev freeglut3-dev glutg3-dev libetpan-dev libxklavier-dev libwebkit-dev libexif-dev curl E libthunar-vfs-1-dev para XCFE ou libgnomevfs2-dev para os outros.
- Baixe o último código fonte com bzr em um diretório de sua escolha:
bzr checkout --lightweight lp:cairo-dock-core
bzr checkout --lightweight lp:cairo-dock-plug-ins Se você não tem o plug-in Launchpad do bzr, o endereço completo é: bzr://bazaar.launchpad.net/~cairo-dock-team/cairo-dock-core/
bzr://bazaar.launchpad.net/~cairo-dock-team/cairo-dock-plug-ins/
- Compile Cairo-Dock and depois seus plug-ins:
cd cairo-dock-core
autoreconf -isvf && ./configure --prefix=/usr
make -j $(grep -c ^processor /proc/cpuinfo) ## se ocorrer um erro, veja se você instalou todas as dependências, ou crie um tópico no fórum
# make install ## em modo de root
cd ../cairo-dock-plug-ins/
autoreconf -isvf && ./configure --prefix=/usr
make -j $(grep -c ^processor /proc/cpuinfo)
# make install ## como root e caso você não tenha tido erros previamente Dicas: com "make -j $(grep -c ^processor /proc/cpuinfo)" a compilação usa todos os núcleos de seu compilador.
- Atualize com este comando em ambos diretórios (cairo-dock-core and cairo-dock-plug-ins) Compile com os mesmos comandos como dito na caixa anterior.
- Dicas: Se você quiser em quer versão está:
Debian / Ubuntu
Mav (with the help of matttbe ) wrote a script for Debian/Ubuntu users (cairo-dock_bzr.sh) which allows the installation and the update via BZR and avoids the tiresome steps for the recovery of the sources and the installation. Moreover, the script will automatically install all the packages necessary for the compilation (the same ones as those described in the part "By compilation").
If you are on Debian or Ubuntu (or Linux Mint) you can also install Cairo-Dock with DEB packages from our 'Weekly Build' PPA.
You can also add this PPA to your sources.list with Mav' script. Or look there : ppa Weekly
First installation
Open a Terminal, start by creating a specific directory (for example /opt/cairo-dock_bzr) and use it without administrator right:
sudo mkdir /opt/cairo-dock_bzr
sudo chown $USER:$USER /opt/cairo-dock_bzr
cd /opt/cairo-dock_bzr
Then get the script, make it executable and launch it:
wget http://bzr.glx-dock.org/cairo-dock_bzr.sh
sudo chmod u+x cairo-dock_bzr.sh
./cairo-dock_bzr.sh REM: For Debian users, you need to install the 'sudo' package.
After that, you have this menu :
1 --> Mettre à jour la version BZR installée
2 --> Installer la version BZR pour la première fois
3 --> Reinstaller la version BZR actuelle
4 --> Désinstaller la version BZR
5 --> A propos
And the translation is :
1 --> Update (your BZR release)
2 --> Install (your BZR release)
3 --> Reinstall (your BZR release)
4 --> Uninstall (your BZR release)
5 --> About
After pressing "2" menu, you can downloading sources by http or https (proxy).
To finish, enter your own password when the script requires it of you in order to proceed to the installation.
A message is posted with each installation of modules and the final message indicates if everything went well. If not please post in our forum the error messages (or consult the log.txt). It can be helpful !
Update it
Open a Terminal, in the specific file which you had created with the first installation (in our /opt/cairo-dock_bzr example) and start the script again:
cd /opt/cairo-dock_bzr
./cairo-dock_bzr.sh
Press "1" to start the update.
If an update is found, enter your own password, otherwise the message “No update available” will appear and the script will exit.
Note: Mav's script “auto-updates”, therefore each time you launch it, it will seek the last version of script available…
Tips
You can create a launcher in Cairo-Dock to execute the script… For that, create a new launcher (Right Click on the dock and select “Add a launcher”). Click on “New” and Enter this:
- Name of the launcher (example) : Cairo BZR Update
- Command to execute at the click :
gnome-terminal --working-directory=/opt/cairo-dock_bzr/ -e "./cairo-dock_bzr.sh"
(change your "working-directory" if necessary
- Directory of the picture :
(your most beautiful icon !)
Validate!!! and just click on your new icon to update your BZR version.
ArchLinux
It's easy with Yaourt !
On root mode, add arlinuxfr repositories in your file /etc/rc.conf
[archlinuxfr]
Server = http://repo.archlinux.fr/i686/
or
[archlinuxfr]
Server = http://repo.archlinux.fr/x86_64/
Install yaourt if you have do that before.
sudo pacman -S yaourt
yaourt -Syu
Now, install cairo-dock and its plug-ins !
yaourt -S cairo-dock-bzr cairo-dock-plug-ins-bzr
Remember to check the plugins' PGKBUILD and remove the plugins you want from the blacklist line.
Fedora
- Install this kit
su -
yum -y groupinstall buildsys-build
- After that, install all dependences with yum install:
yum install bzr alsa-lib-devel automake dbus-glib-devel desktop-file-utils gettext gnome-menus-devel gnome-vfs2-devel gtk2-devel gtkglext-devel intltool libXcomposite-devel libXinerama-devel libXrender-devel libXtst-devel libXxf86vm-devel libetpan-devel libexif-devel libgnomeui-devel librsvg2-devel libtool libxklavier-devel libxml2-devel vte-devel perl WebKit-gtk-devel curl Install Thunar-devel instead of gnome-vfs2-devel if you uses XFCE
- After that go to a new repertory to download sources (for example /opt/ with user right)
bzr checkout --lightweight lp:cairo-dock-core
bzr checkout --lightweight lp:cairo-dock-plug-ins
- Compile Cairo-Dock and its plug-ins:
cd cairo-dock-core
autoreconf -isvf && ./configure --prefix=/usr && make
su -
make install # If you haven't any error before that
exit
cd ../cairo-dock-plug-ins/
autoreconf -isvf && ./configure --prefix=/usr && make
su -
make install # If you haven't any error before that
exit
- Update with this command in the two repertories (cairo-dock-core and cairo-dock-plug-ins) Compile with the same commands as the box before this.
Gentoo
For more precision go here.
openSUSE KDE 64-bits optimized
- This is an almost exhaustive list of the required dependencies. Install before compiling:
automake
autoconf
libtool
m4
pkg-config
zenity
intltool
gettext
cairo and possibly cairo-devel
gtk2-devel
librsvg-devel
dbus-1-glib-devel
vte-devel
xorg-x11-libx11-devel
libasound2
xorg-x11-libs
gnome-menus-devel
libgnome-menu2
libgnomeui-devel
gtkglext
freeglut-devel
libetpan-devel
libxklavier-devel
libwebkit-devel
libexif-devel
curl
libgnomevfsmm-2_6-1
It is possible other dependencies are required. If the compilation asks for it, verify the following (names might differ, they come from Fedora):
alsa-lib-devel
libXcomposite-devel
libXinerama-devel
libXrender-devel
libXtst-devel
libxml2-devel
perl
They should be already included in xorg-x11, alsa and xml packages.
- After go to a new repertory to download sources (with user right):
bzr checkout --lightweight lp:cairo-dock-core
bzr checkout --lightweight lp:cairo-dock-plug-ins
- Compile Cairo-Dock and its plug-ins:
cd cairo-dock-core
autoreconf -isvf && ./configure --prefix=/usr
make -j $(grep -c ^processor /proc/cpuinfo)
sudo make install
cd ../cairo-dock-plug-ins/
**if you are running 32-bits, skip this line: sudo cp /usr/lib/pkgconfig/cairo-dock.pc /usr/lib64/pkgconfig/
autoreconf -isvf && ./configure --prefix=/usr
make -j $(grep -c ^processor /proc/cpuinfo)
sudo make install
- Update with this command in the two repertories (cairo-dock-core and cairo-dock-plug-ins) Compile with the same commands as the box before this.
Tips
ATOM Feed
An atom feed is available in order to know when there is an update (every day ) .
http://bazaar.launchpad.net/%7Ecairo-dock-team/cairo-dock-core/cairo-dock/atom
http://bazaar.launchpad.net/%7Ecairo-dock-team/cairo-dock-plug-ins/plug-ins/atom
Conky
You can use the Atom feed on conky with a script.
- You need curl :
sudo apt-get install curl (or yum install curl, sudo pacman -S yaourt, emerge -av net-misc/curl, etc. depending of your distribution)
- Save these line on your computer (for example '~/.conky-rss' ; a file hidden in your home)
uri=$1 lines=$2 titlenum=$3
if [[ "$uri" == "" ]]; then
echo "No URI specified, cannot continue!" >&2
echo "Please read script for more information" >&2
else
if [[ $lines == "" ]]; then lines=5 ; fi
if [[ $titlenum == "" ]]; then titlenum=2 ; fi
curl -s --connect-timeout 30 $uri |\
sed -e 's/<\/title>/\n/g' |\
grep -o '.*' |\
sed -e 's///' |\
head -n $(($lines + $titlenum)) |\
tail -n $(($lines))
fi
- This script needs +x right
chmod u+x CHEMIN/NAME_OF_YOUR_FILE.sh (~/.conky-rss.sh)
- Modify your ~/.conkyrc with, for example
${color white}Cairo-Dock${color} ${hr 2}
${color lightgrey}Core : ${execi 900 ~/.conky-rss.sh http://bazaar.launchpad.net/%7Ecairo-dock-team/cairo-dock-core/cairo-dock/atom 2 1}
Plug-ins : ${execi 900 ~/.conky-rss.sh http://bazaar.launchpad.net/%7Ecairo-dock-team/cairo-dock-plug-ins/plug-ins/atom 2 1} (modify every 2 in order to have more or less lines and change the path of the script (~/.conky-rss.sh)
|
|