Ubuntu:Edgy th/EyeCandy

From

Contents

Eye Candy

How to install Xgl/Compiz (Nvidia)



sudo cp /etc/X11/xorg.conf /etc/X11/xorg.conf_backup
gksudo gedit /etc/X11/xorg.conf
  • Find this section
Section "Module"
	Load	"i2c"
	Load	"bitmap"
	...
	Load	"type1"
	Load	"vbe"
EndSection
  • Comment out dri and GLcore (if present)
#	Load	"dri"
#	Load	"GLcore"
  • Make sure the glx module is loaded
	Load	"glx"
  • Find this section (your values may vary)
Section "Device"
	Identifier	"NVIDIA Corporation NV34M [GeForce FX Go5200]"
	Driver		"nv"
	BusID		"PCI:1:0:0"
EndSection
  • Replace with the following lines, leaving the Identifier and BusID as it is
Section "Device"
	...
	Driver		"nvidia"
	...
	Option		"RenderAccel"		"true"
	Option		"AllowGLXWithComposite" "true"
EndSection
  • Find this section
Section "Screen"
	Identifier	"Default Screen"
	Device		"NVIDIA Corporation NV34M [GeForce FX Go5200]"
	Monitor		"Generic Monitor"
	DefaultDepth	16
  • Make sure DefaultDepth is set to 24, if it isn't already
	DefaultDepth	24
  • Save the edited file
  • Install Xgl/Compiz
sudo apt-get install compiz xserver-xgl libgl1-mesa xserver-xorg libglitz-glx1 compiz-gnome
sudo cp /etc/gdm/gdm.conf-custom /etc/gdm/gdm.conf-custom-backup
gksudo gedit /etc/gdm/gdm.conf-custom
  • Replace everything with the following lines
# GDM Configuration Customization file.
#
# This file is the appropriate place for specifying your customizations to the
# GDM configuration.   If you run gdmsetup, it will automatically edit this
# file for you and will cause the daemon and any running GDM GUI programs to
# automatically update with the new configuration.  Not all configuration
# options are supported by gdmsetup, so to modify some values it may be
# necessary to modify this file directly by hand.
# 
# To hand-edit this file, simply add or modify the key=value combination in
# the appropriate section in the template below.  Refer to the comments in the
# gdm.conf file for information about each option.  Also refer to the reference
# documentation.
# 
# If you hand edit a GDM configuration file, you should run the following
# command to get the GDM daemon to notice the change.  Any running GDM GUI
# programs will also be notified to update with the new configuration.
#
# gdmflexiserver --command="UPDATE_CONFIG <configuration key>"
#
# For example, the "Enable" key in the "[debug]" section would be specified by
# "debug/Enable".
#
# You can also run gdm-restart or gdm-safe-restart to cause GDM to restart and
# re-read the new configuration settings.  You can also restart GDM by sending
# a HUP or USR1 signal to the daemon.  HUP behaves like gdm-restart and causes
# any user session started by GDM to exit immediately while USR1 behaves like
# gdm-safe-restart and will wait until all users log out before restarting GDM.
# 
# For full reference documentation see the gnome help browser under
# GNOME|System category.  You can also find the docs in HTML form on
# http://www.gnome.org/projects/gdm/
# 
# NOTE: Lines that begin with "#" are considered comments.
# 
# Have fun!

[daemon]

[security]

[xdmcp]

[gui]

[greeter]

[chooser]

[debug]

[servers]# Override display 1 to use Xgl
0=Xgl 

[server-Xgl] 
name=Xgl server 
command=/usr/bin/Xgl :0 -fullscreen -ac -accel glx:pbuffer -accel xv:fbo 
flexible=true
  • Create a script that runs Xgl/Compiz on startup
gksudo gedit /usr/bin/thefuture
  • Insert the following lines into the new file. Replace .us with appropriate keyboard binding for your region. Eg .gb for United Kingdom. For a full list of keyboard bindings, type ls /usr/share/xmodmap in a terminal. If unsure, leave as .us (United States)
#!/bin/bash
gnome-window-decorator &  compiz --replace gconf decoration wobbly fade minimize cube rotate zoom scale move resize place switcher &
xmodmap /usr/share/xmodmap/xmodmap.us
  • Save the file
sudo chmod 755 /usr/bin/thefuture
  • To run compiz for this session
thefuture
  • To have compiz load on startup
    • System -> Preferences -> Sessions
    • Startup Programs -> Add
/usr/bin/thefuture
  • Troubleshooting
    • If Xgl/Compiz doesn't seem to work, or you get errors, simply restart your machine after adding "thefuture" to Startup programs
    • If moving windows slows down the system, run gconf-editor from the terminal. Find apps/compiz/general/screen0/options. Disable detect_refresh_rate and set refresh rate to 60. Everything should work fine now...
    • If you are using a non default keyboard layout (other language), you might have to change it back to what you need if the keyboard acts funny at System/Settings/Keyboard.
    • You can also set the Super-key to the windows button here.
    • If you don't want "bottom expanded panel", type "killall gnome-panel" in terminal.
  • Tips
    • Switch windows = Alt + Tab
    • Arrange and View All Windows = F12 turns on or off; clicking a window will zoom it to the front
    • Switch desktops on cube = Ctrl + Alt + Left/Right Arrow
    • Switch desktops on cube - with active window following = Ctrl + Shift + Alt + Left/Right Arrow
    • Rotate cube manually = Ctrl + Alt + left-click
    • Make window translucent/opaque = currently only possible with the "transset" utility
    • Zoom-in once = Super-key right-click
    • Zoom-in manually = Super-key + wheel mouse up
    • Zoom-out manually = Super-key + wheel mouse down
    • Move window = Alt + left-click
    • Snap Move window (will stick to borders) = Ctrl + Alt + left-click
    • Resize window = Alt + right-click

วิธีติดตั้ง Xgl/Beryl บนการ์ดจอ ATI

(From Beryl Forums) "(From ubuntuforums.org)"


"ทดสอบบน Ubuntu Feisty version i386 การ์ดจอ onboard ATi Xpress 1100 share 128 MB"

  • เปิดเทอร์มินอล จากเมนู
โปรแกรม > อำนวยความสะดวก > เทอร์มินอล
  • Verify our system is up-to-date:
sudo apt-get update
sudo apt-get upgrade
  • ติดตั้ง Xgl (ในการ์ดจอ ATI cards ไดรเวอร์ fglrx สนับสนุนเฉพาะ Xgl):
sudo apt-get install xserver-xgl
  • สร้างสคริปท์ให้ Xgl รัน:
sudo gedit /usr/local/bin/startxgl.sh
  • พิม์ข้อความด้านล่างแล้วบันทึกดังนี้:
#!/bin/sh
Xgl :1 -fullscreen -ac -accel xv:pbuffer -accel glx:pbuffer &
DISPLAY=:1
exec dbus-launch --exit-with-session gnome-session
  • ถ้ามองไม่เห็นปุ่ม shutdown กับปุ่ม restart ให้แก้เป็น:
#!/bin/sh
Xgl :1 -fullscreen -ac -accel xv:pbuffer -accel glx:pbuffer &
DISPLAY=:1
cookie="$(xauth -i nextract - :0 | cut -d ' ' -f 9)"
xauth -i add :1 . "$cookie"
exec dbus-launch --exit-with-session gnome-session
  • ทำให้สคริปท์สามารถรันเป็นโปรแกรมได้:
sudo chmod a+x /usr/local/bin/startxgl.sh
  • จากนั้นแก้ให้มีตัวเลือก Xgl หน้าจอเข้าระบบบน GDM:
sudo gedit /usr/share/xsessions/xgl.desktop
  • พิม์ข้อความด้านล่างแล้วบันทึกดังนี้:
[Desktop Entry]
Encoding=UTF-8
Name=GNOME with XGL
Comment=
Exec=/usr/local/bin/startxgl.sh
Icon=
Type=Application
  • ทำให้สคริปท์สามารถรันเป็นโปรแกรมได้:
sudo chmod a+x /usr/share/xsessions/xgl.desktop
  • ยกเลิกตัวเลือก universe ใน repositories (Beryl ใน universe ไม่สนับสนุนไดรเวอร์ fglrx).
ไปที่ ระบบ > ดูแลระบบ > แหล่งของซอฟแวร์
คลิกไม่เลือก ที่ Community-maintained Open Source software (universe)
คลิกปิด
เปิดเทอร์มินอล:
  • เพิ่ม repository key:
sudo wget http://ubuntu.beryl-project.org/root@lupine.me.uk.gpg -O- | sudo apt-key add -
  • เพิ่ม repository ลงใน apt source list:
sudo gedit /etc/apt/sources.list
เพิ่มบรรทัด deb http://ubuntu.beryl-project.org/ feisty main
บันทึกแล้วปิด gedit
  • อัปเดท apt sources:
sudo apt-get update
  • ติดตั้ง Beryl :
sudo apt-get install beryl emerald-themes

Apt จะเลือกติดตั้ง plug-ins and libraries ให้อัตโนมัติ

  • วิธีติดตั้งไดรเวอร์การ์ดจอ ATI (ถ้ายังไม่ติดตั้ง):
Go to System > Administration > Restricted Drivers Manager
Check the Enable check box for your ATI graphics card

You will need to reboot to enable the card.

  • After a reboot and choosing Xgl from your sessions list at your login screen, test Beryl. In a terminal:
beryl-manager
emerald --replace

You should see the Beryl diamond next to your clock, and you should try moving a window. You may need to right-click on the diamond, select "Beryl" from the "Select Window Manager" flyout, and select "Standard Beryl Decorator (Emerald)" from the "Select Window Decorator" flyout. You may also need to click Reload for each one of these under the same menu.

  • If you are using ATI with XGL, you'll get an error that beryl-xgl is missing. Solution is not elegant, but it's working:
Download beryl-core deb from http://ubuntu.beryl-project.org/pool/feisty/main/0.2.0/beryl-core_0.2.0~0beryl1_i386.deb
Unpack beryl-xgl from archive to ie. ~/Desktop
From terminal run: sudo cp ~/Desktop/beryl-xgl /usr/bin/beryl-xgl

  • If everything seems to work OK, add Beryl and the Emerald themes to your start-up programs:
Go to System > Preferences > Sessions
Click the New button
Type "Beryl" (no quotes) for the Name text box
Type "beryl-manager" (no quotes) for the Command text box
Click the OK button

Click the New button
Type "Emerald Themes" (no quotes) for the Name text box
Type "emerald --replace" (no quotes) for the Command text box
Click the OK button

Congratulations! Hopefully, you have Beryl working now. You can now re-enable your universe repositories, but make sure you do not let it update anything related to Beryl. Hopefully, the Beryl apps in the universe repositories will soon work with the ATI cards without Xgl.

How to install Beryl/AIGLX (Nvidia)

(From Ubuntu Forums)

  • Ensure all packages up to date
Install your *ubuntu-desktop metapackage specific to your DE, e.g. sudo apt-get install ubuntu-desktop
sudo apt-get update
sudo apt-get upgrade
sudo apt-get dist-upgrade
  • Add repositories
gksudo gedit /etc/apt/sources.list
  • Add the following line at the end of this file (x86 and amd64):
deb http://ubuntu.beryl-project.org/ edgy main
  • Add key
wget http://ubuntu.beryl-project.org/root@lupine.me.uk.gpg -O- | sudo apt-key add -
  • Save the edited file then update package lists
sudo apt-get update
  • Install Beryl
sudo apt-get install beryl emerald-themes
  • Back up xorg.conf
sudo cp /etc/X11/xorg.conf /etc/X11/xorg.conf_backup
gksudo gedit /etc/X11/xorg.conf
  • Add this to xorg.conf "Screen" section
# Enable 32-bit ARGB GLX Visuals
    Option "AddARGBGLXVisuals" "True"

# If you are using an older version of compiz that
# does not support rendering into the Composite
# Overlay Window, you will need to disable clipping
# of GLX rendering to the X Root window with this
# option, or you will get a blank screen after
# starting compiz:
    Option "DisableGLXRootClipping" "True"
  • Add this to xorg.conf "Device" section
Option          "TripleBuffer" "true"
  • Restart X with ctrl+alt+backspace
  • Start Beryl (if it doesn't start on its own)
beryl-manager
  • Start Emerald (if it doesn't start on its own)
emerald --replace
  • Have Beryl and Emerald load on login
    • System -> Preferences -> Sessions
    • Startup Programs -> Add
beryl-manager

and

emerald --replace
    • If, on reboot, program menus aren't displaying in the correct layer (you can't see them when you select them because they are displaying behind the window) then right click on the 'Beryl Manager' icon in the panel (the red gem icon) and select 'Reload Window Manager'. The problem should be solved the next time you reboot.

How to install Beryl/AIGLX (Intel i915)

Follow the how-to on beryl project wiki.

If that does not work, check if you have direct rendering enabled (type into the terminal):

glxinfo | grep direct

The output should be:

direct rendering: Yes

If the output says No, check you have direct rendering manager loaded:

lsmod|grep 915

The output should be:

i915   21632  3
drm    74644  4 i915
tsdev   9152  0

If it shows only tsdev line, you can try to configure xorg.conf to driver i810, restart, CTRL-ALT-F1 to terminal session and configure xorg.conf back to use i915. That helped me.

How to install compiz-freedesktop without XGL / AIGLX utilising the latest Nvidia BETA drivers

  • Ensure that all packages are up to date
sudo apt-get update
sudo apt-get upgrade
sudo apt-get dist-upgrade
  • Add repositories
gksudo gedit /etc/apt/sources.list
  • Add the following line at the end of this file for the edgy stable repos
## compiz-freedesktop stable
deb http://gandalfn.club.fr/ubuntu edgy stable
  • Or add the following line at the end of this file for the edgy dev repos
## compiz-freedesktop dev
deb http://gandalfn.club.fr/ubuntu edgy stable dev

Note for compiz-freedesktop git repos: these packages are considered experimental and unstable by nature

  • Or add the following line at the end of this file for the edgy git repos
## compiz-freedesktop git
deb http://gandalfn.club.fr/ubuntu edgy stable dev git
  • Add the GPG key
gpg --keyserver hkp://wwwkeys.eu.pgp.net --recv-keys 0x483170E9 ; \
gpg --export -a 0x483170E9 | sudo apt-key add -
  • Save the edited file then update package lists
sudo apt-get update
  • Install compiz-freedesktop
sudo apt-­get install compiz-­freedesktop compiz­-freedesktop-­gnome gnome-­compiz-­manager
  • Back up xorg.conf
sudo cp /etc/X11/xorg.conf /etc/X11/xorg.conf_backup
gksudo gedit /etc/X11/xorg.conf
  • Find this section
Section "Screen"
    Identifier     "Default Screen"
    Device         "NVIDIA Corporation NVIDIA Default Card"
    Monitor        "Generic Monitor"
    DefaultDepth    16
  • Make sure DefaultDepth is set to 24, if it isn't already
    DefaultDepth    24
  • Enable 32-bit ARGB GLX Visuals
    Option "AddARGBGLXVisuals" "True"
  • Save the edited file
  • Restart X with Ctrl+Alt+Backspace
  • Logon
  • Press Alt-F2 to open the Run Application window and enter the following in the text box:
compiz­-tray-­icon
  • Click Run to execute
  • Locate the compiz-tray-icon in your system tray, typically in the top right-hand corner of your screen, right-click mouse button and select the GL Desktop option
  • To customize preferences, locate the compiz-tray-icon in your system tray, typically in the top right-hand corner of your screen, right-click mouse button and select the Preferences option

How to install alternate boot splash screen

  • Read #General Notes
  • This installs a minimalistic splash screen that appears when the computer is booting up and shutting down. It is devoid of any text messages.
wget -c http://www.users.on.net/~stubby/usplash-minimalistic_0.1.deb
sudo dpkg -i usplash-minimalistic_0.1.deb
sudo update-alternatives --config usplash-artwork.so
  • Select the minimalistic alternative (/usr/local/lib/usplash/minimalastic.so) by entering the corresponding number. If you ever want to revert back to the original splash, select the default (/usr/lib/usplash/usplash-default.so)