Sunday, February 22, 2009

How to install Compiz on Slackware 12

Who said that linux is not "beautiful"? Who ever said "Windows Vista has the charts effettini has not linux?
Step 1 :
download this pkg :
- ccsm
- Compiz
- compiz-bcop
- compiz-fusion-plugins-extra
- compiz-fusion-plugins-main
- compiz-fusion-plugins-unsupported
- compizconfig-python
- compizconfig-backend-kconfig
- emerald
- emerald-themes
- libcompizconfig
- simple-ccsm
- libwnck
- pygtk
- sexy-python

Step 2:
install pkgs with "installpkg" or " "pkgtool" command

# installpkg *.tgz

Step 3 :

System Configurations

Now we move on to the changes (always valid regardless of the version of compiz) to be made to the system.
Aprite il file /etc/X11/xorg.conf. Open the file / etc/X11/xorg.conf.

Nella Section "Module" abilitate le glx: In Section "Module" glx enabled:

 Load "glx" 

In Section "Device" add the following lines:

Option "RenderAccel" "true"
Option "AllowGLXWithComposite" "true"
Option "XAANoOffscreenPixmaps" "true"
Option "AddARGBGLXVisuals" "true"

In Section "Server Layout" add this line:

Option "AIGLX" "true"

hen you have to activate the composite, and then add the file as follows:

Section "Extensions"
Option "Composite" "Enable"
EndSection EndSection

Step 4:

starting compiz

# compiz --replace ccp & emerald --replace
------------------------------------------------------- or
# vi compiz

#!/bin/bash
# Compiz startup script

LIBGL_ALWAYS_INDIRECT=TRUE \
/usr/bin/compiz --replace png svg decoration annotate water blur clone \
wobbly fade minimize cube rotate zoom scale move resize place switcher & \
/usr/bin/kde-window-decorator &

--------------------------------------------------------------------------------

CommonKeyboardShortcuts compiz


To stop Compiz instead you can use the following:

killall -9 compiz && /usr/bin/kwin --replace &


Saturday, February 21, 2009

MPLAYER

INSTALL:

# cd /usr/src
# wget http://www4.mplayerhq.hu/MPlayer/releases/MPlayer-1.0rc2.tar.bz2
# tar -jxf MPlayer-1.0rc2.tar.bz2
# cd MPlayer-1.0rc2
# ./configure --prefix=/usr/local/mplayer --enable-gui
# make
# make install

Add codecs

# cd /usr/src
# wget http://www4.mplayerhq.hu/MPlayer/releases/codecs/essential-20071007.tar.bz2
# tar -jxf essential-20071007.tar.bz2
# mkdir -p /usr/local/lib/codecs
# cp -rv essential-20071007/* /usr/local/lib/codecs/

gmaplayer: work with X

# wget http://www.mplayerhq.hu/MPlayer/skins/Blue-1.7.tar.bz2

# mkdir /usr/local/mplayer/share/mplayer/skins/default

# tar jxvf Blue-1.7.tar.bz2 -C /usr/local/mplayer/share/mplayer/skins

# cp /usr/local/mplayer/share/mplayer/skins/Blue/* /usr/local/mplayer/share/mplayer/skins/default/

Reading with MPlayer :

# mplayer test.mpg

the options are:

-vo driver_video
-ao driver_sound
-fs : full screen
-zoom: forcing expansion