Ubuntu:EdgyNL/EyeCandy

From

Jump to: navigation, search

Contents

Eye Candy

Hoe kan ik Xgl/Compiz (Nvidia) installeren



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 en 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 met the following lines, leaving the Identifier en 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
  • Bewaar het bewerkte bestand
  • 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 met the following lines
# GDM Configuration Customization file.
#
# This file is the appropriate place voor specifying your customizations to the
# GDM configuration.   If you run gdmsetup, it will automatically edit this
# file voor you en will cause the daemon en any running GDM GUI programs to
# automatically update met 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 voor information about each option.  Also refer to the reference
# documentation.
# 
# If you hand edit een 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 met the new configuration.
#
# gdmflexiserver --command="UPDATE_CONFIG <configuration key="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
# een HUP or USR1 signal to the daemon.  HUP behaves like gdm-restart en causes
# any user session started by GDM to exit immediately while USR1 behaves like
# gdm-safe-restart en 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 met "#" 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 een script that runs Xgl/Compiz op startup
gksudo gedit /usr/bin/thefuture
  • Voeg de volgende regels toe in het nieuwe bestand. Replace .us met appropriate keyboard binding voor your region. Eg .gb voor United Kingdom. For een full list of keyboard bindings, type ls /usr/share/xmodmap in een 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 voor this session
thefuture
  • To have compiz load op startup
    • System -> Preferences -> Sessions
    • Startup Programs -> Add
/usr/bin/thefuture
  • Probleemoplossen
    • 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 en set refresh rate to 60. Everything should work fine now...
    • If you are using een 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 en View All Windows = F12 turns op or off; kliking een window will zoom it to the front
    • Switch desktops op cube = Ctrl + Alt + Left/Right Arrow
    • Switch desktops op cube - met active window following = Ctrl + Shift + Alt + Left/Right Arrow
    • Rotate cube manually = Ctrl + Alt + left-klik
    • Make window translucent/opaque = currently only possible met the "transset" utility
    • Zoom-in once = Super-key right-klik
    • Zoom-in manually = Super-key + wheel mouse up
    • Zoom-out manually = Super-key + wheel mouse down
    • Move window = Alt + left-klik
    • Snap Move window (will stick to borders) = Ctrl + Alt + left-klik
    • Resize window = Alt + right-klik

Hoe kan ik Xgl/Beryl (ATI) installeren

(From Beryl Forums)

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

  • Update your system
sudo apt-get update
sudo apt-get dist-upgrade
  • Prepare en update repositories
sudo gedit /etc/apt/sources.list
  • Add quinstorms' en 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
  • Download en import the gpg key voor 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 een startup script voor 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 een xgl session voor 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 en select the startup programs tab )

  • Reboot
  • In the login manager you can now choose een session named Xgl
  • Answer to following question that you want to use Xgl voor 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 een normal gnome session if you want.
  • If you own an x series radeon en have problems met lockups, read this post:

http://ubuntuforums.org/showthread.php?t=150854

Note voor all cards: glxinfo will show that direct rendering is not working , dont worry thats normal when you are running xgl.

Hoe kan ik Beryl/AIGLX (Nvidia) installeren

(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
  • Voeg de volgende regels toe aan het einde van dit bestand:
deb http://dev.realistanew.com/beryl edgy beryl
deb http://beryl-mirror.lupine.me.uk/beryl edgy beryl

(If you need the 64bit beryl add this to the repository list)

deb http://ubuntu.lupine.me.uk/ edgy main-amd64
  • Bewaar het bewerkte bestand
sudo apt-get update
  • Install Beryl
sudo apt-get install beryl-core beryl-plugins beryl-plugins-data emerald beryl-settings beryl-manager beryl beryl-dev 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 met this
# option, or you will get een blank screen after
# starting compiz:
    Option "DisableGLXRootClipping" "True"
  • Add this to xorg.conf "Device" section
Option          "TripleBuffer" "true"
  • Restart X met ctrl+alt+backspace
  • Start Beryl
beryl-start

or

beryl-manager

Hoe kan ik alternate boot splash screen installeren

  • Lees #Algemene Opmerkingen
  • This installs een minimalistic splash screen that appears when the computer is booting up en 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)
Personal tools
Sponsor
LinuCity