Ubuntu:Edgy ja/EyeCandy

From

Contents

派手な画面効果

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
  • Click Ok, then Close
  • #How to restart GNOME without rebooting computer を読んでください。
  • 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)

First make sure you have 3d acceleration available in a normal gnome session.There are lots of howtos for this , Google if you need any help with that.So if glxinfo shows direct rendering: yes , then you are good to go. If not xgl and Beryl wont work!

  • Update your system
sudo apt-get update
sudo apt-get dist-upgrade
  • Prepare and update repositories
sudo gedit /etc/apt/sources.list
  • Add quinstorms' and reggaemanus' repositories to /etc/apt/sources.list
deb http://www.beerorkid.com/compiz/ dapper main
deb http://xgl.compiz.info/ dapper main
deb-src http://xgl.compiz.info/ dapper main

The xgl.compiz.info site appears to not be working any longer - also, should this be Edgy instead of dappper?

  • Download and import the gpg key for quinnstorms repository
 wget http://www.beerorkid.com/compiz/quinn.key.asc -O - | sudo apt-key add -
  • Update your sources
sudo apt-get update
  • Install needed packages
sudo apt-get install xserver-xgl libgl1-mesa xserver-xorg libglitz-glx1 beryl beryl-core beryl-manager beryl-plugins beryl-plugins-data beryl-settings emerald emerald-themes
  • Make a startup script for xgl
sudo gedit /usr/bin/startxgl.sh
  • Add to script
Xgl -fullscreen :1 -ac -accel glx:pbuffer -accel xv:pbuffer & sleep 2 && DISPLAY=:1 
# Start GNOME
exec gnome-session
  • Make the script executable
sudo chmod 755 /usr/bin/startxgl.sh
  • Make a xgl session for the login manager
sudo gedit /usr/share/xsessions/xgl.desktop
  • Add to session
[Desktop Entry]
Encoding=UTF-8
Name=XGl
Exec=/usr/bin/startxgl.sh
Icon=
Type=Application
  • add
beryl
emerald

to gnome session startup programs. ( go to system , preferences , sessions and select the startup programs tab )

  • Reboot
  • In the login manager you can now choose a session named Xgl
  • Answer to following question that you want to use Xgl for this session only (if something went wrong you are logged in next time using standard session)
  • If everything works fine , you can set it as the default session , remember you can always login a normal gnome session if you want.
  • If you own an x series radeon and have problems with lockups, read this post:

http://ubuntuforums.org/showthread.php?t=150854 Note for all cards: glxinfo will show that direct rendering is not working , dont worry thats normal when you are running xgl.

Beryl/AIGLX (Nvidia) をインストールするには

(From Ubuntu Forums)

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.

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.

Beryl起動後、タイトルバーが表示されない場合

赤いダイヤを右クリック、berylのより高度なオプションから、パスの描画、コピーを選択。それでもだめなら、設定をいろいろいじること。

compiz-freedesktop without XGL / AIGLX utilising the latest Nvidia BETA drivers をインストールするには

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

別のブートスプラッシュスクリーンをインストールするには

  • #全体に共通する注意事項を読んでください。
  • ここでは、コンピュータの起動やシャットダウンの時に表示される最小限のスプラッシュスクリーンをインストールします。テキストメッセージがまったくありません。
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
  • 該当する番号を入力して、minimalisticの方(/usr/local/lib/usplash/minimalastic.so)を選択します。元のスプラッシュに戻したくなったら、default(/usr/lib/usplash/usplash-default.so)を選択してください。
  • 効果を見るにはコンピュータを再起動してください。
  • カスタマイズの詳細は公式のUSplash Customization HOWTOを参照してください。