Category Archives: compiz

Fedora 7 Installation Notes on an Acer Ferrari 3400

Fedora 7 came out just before I went for vacation. Therefore, it took me a while to get a chance to try it on my Ferrari 3400.

Extra Yum Repositories

Even though the current Fedora has tons of packages. Some of the necessary ones for functional desktop are not included. There are two nice repositories:livna and freshrpms. To use these two repositories, just type:

rpm -ihv http://rpm.livna.org/livna-release-7.rpm
rpm -ihv http://ftp.freshrpms.net/pub/freshrpms/fedora/linux/7/freshrpms-release/freshrpms-release-1.1-1.fc.noarch.rpm

DVD Player

The default player still doesn’t play DVD video. You need xine for this. Type:

yum -y install xine xine-lib xine-skins

Adobe (Macromedia) Flash Player

Adobe now has a YUM repo for it. To install it, just type

rpm -iph http://linuxdownload.adobe.com/adobe-release/adobe-release-1.0-0.noarch.rpm
yum -y install flash-plugin

Media Player

To view quicktime and wmv files, I need mplayer with the browser plug-in. Both livna and freshrpms have mplayer. I disable livna to prevent conflict.


yum -y install --disablerepo=livna mplayer mplayer-skins mplayer-fonts mplayerplug-in

Note that the mplayerplug-in doesn’t always work. I still haven’t figured out a way to get it to work 100%.

VLC Player

It’s also very easy to install the VLC player.

yum -y --disablerepo=livna install vlc

NTFS Support

If you have a dual boot system, the ability to read/write NTFS file system is a must. Fedora 7 now supports read and write access to NTFS. Unlike FC6, the ntfs-3g package is installed by default. You can use ntfs-3g to mount the NTFS partitions.


mkdir /mnt/c
ntfs-3g /dev/sda2 /mnt/c

Note that you only need to create the /mnt/c mount point once. Note that my hard drive is recognized as sda. It was recognized as hda before.

Enable Compiz (Desktop Effects)

Compiz is installed by default, but it’s not turned on. If you use GNOME desktop, you can just click System -> Preferences -> Look and Feel -> Desktop Effects to bring up the dialog to enable it. If you use KDE, just type

desktop-effects

in a console to bring up the dialog. After you enable compiz, you can try out the new features.

  • Alt + Tab: Switch between applications with preview.
  • Ctl+Alt+Left(Right): Switch between desktop.
  • Ctl+Alt+Down: Show 3 desktops in a strip.
  • Ctl+Alt+Left mouse click and drag: Rotate desktops in 3D.
  • Move mouse to top right corner: Give you preview of all open windows.

If you want to tweak the settings, you can install the gconf-editor . The settings for compiz is in /apps/compiz .

Remote Administration

There are two applications that I use everyday to manage my network: remote desktop and vnc. To install them, type:

yum -y install rdesktop vnc

I usually run rdesktop with these options:

rdesktop -g 1024x768 -a 16  server.domain-name.com

This would connect the rdesktop client to server using a 1024×768 display with 16 bit color depth. The use of vnc is simpler.

vncviewer server2.domain-name.com

One thing about the vncviewer is that there is no menu for you to select on screen. You need to press “F8″ to get the options.

Wireless Card

The installation of the built-in wireless card is the most troublesome. Back in FC5, I used ndiswrapper for the wireless card, because there is no driver for it. When FC6 was released, there is a partial bcm43xx driver. I used the bcm43xx driver and it worked well after trial and error.

Fedora 7 has a different partial driver bcm43xx-mac80211. I tried that and failed. After countless hours of searching for solutions, I decided to try ndiswrapper again. Here are the steps.

First, you’ll need ndiswrapper package. Type this to install it. Note that this package is from Livna repo. If you haven’t added Livna repo, scroll up to see how you can do it.

yum -y install ndiswrapper

Now, you will need to download the Windows wireless driver. I downloaded mine from Acer. Unpack the driver and change directory to where the driver is. Now type the following to install the driver.

ndiswrapper -i bcmwl5.inf

You can use `ndiswrapper -l` to see if the driver got installed correctly. The next step is to modify the file /etc/modprobe.conf and add a line to it.

alias wlan0 ndiswrapper

Now, it’s time to rebuild the modules.dep file and load the kernel module.

depmod -a



modprobe ndiswrapper

To ensure system load the ndiswrapper driver instead of the bcm43xx_mac80211, I blacklisted bcm43xx_mac80211. The file to modify is /etc/modprobe.d/blacklist .

If you want to use WPA, you need to setup wpa_supplicant. Modify /etc/sysconfig/wpa_supplicant so that it looks like the following.

INTERFACES="-iwlan0"



DRIVERS="-Dndiswrapper"

Note that my wireless card is wlan0. If during setup, your wireless card is set up as eth1, you need to change the file accordingly.

We want to run wpa_supplicant with wheel group. So, we need to modify the sudoer configuration file. Edit /etc/sudoers , uncomment the line for wheel group so that it looks like this.

%wheel ALL=(ALL)       NOPASSWD: ALL

Start the wpa_supplicant service by using this command.

service wpa_supplicant start

If you want wpa_supplicant to start at boot time, type this.

chkconfig --level 5 wpa_supplicant on

The last step is to turn on NetworkManager service. Like wpa_supplicant, you can start the service by typing.

service NetworkManager start

If you NetworkManager to start at boot time, type this.

chkconfig --level 5 NetworkManager on

NetworkManager simplifies the process of connecting to wireless network. It’s easier for user to establish new connection. I recommend any one to try it out. I found that sometimes NetworkManager interferes with the static wired connection. You might need to stop NetworkManager service and restart network service to use your wired connection again.

x-click-but04.gif

Compiz Key Combinations List

Here is a list of default compiz key combinations list for Fedora Core 6. Remember that you can always use gconf-editor to change the default key combinations if you don’t like them.

Legends:

  • Button1: Mouse left button
  • Button2: Mouse middle button
  • Button3: Mouse right button
  • Button4: Mouse wheel up
  • Button5: Mouse wheel down
  • Button6: Mouse wheel left
  • <Super>: Windows key
General
main_menu_key <Alt>F1 Open up the Gnome main menu.
run_key <Alt>F2 Bring up a dialog to run application.
close_window_key <Alt>F4 Close window.
unmaximize_window_key <Alt>F5 Restore a maximized window to original size.
minimize_window_key <Alt>F9 Minimize window.
maximize_window_key <Alt>F10 Maximize window.
slow_animations_key <Shift>F10 Show the animation in slow motion.
window_menu_button <Alt>Button3 Bring up window menu.
opacity_increase_button <Alt>Button4 Increase opacity of a window.
opacity_decrease_button <Alt>Button5 Decrease opacity of a window (More translucent)
run_command_screenshot_key Print Take screenshot of whole screen.
toggle_window_shaded_key <Control><Alt>s Shade/unshade a window.
show_desktop_key <Control><Alt>d Show desktop.
run_command_window_screenshot_key <Alt>Print Take screenshot of a window.
window_menu_key <Alt>space Bring up window menu.
lower_window_button <Alt>Button6 Lower active window.
     
Cube
unfold_key <Control><Alt>Down Unfold the cube (show 3 desktops in a row).
next_slide_key space Next desktop. (I don’t know how to activate this)
prev_slide_key BackSpace Previous desktop.
     
Rotate
rotate_right_key <Control><Alt>Right Switch to the right desktop.
rotate_right_window_key <Shift><Control><Alt>Right Switch to the right desktop with the active window.
initiate_button <Control><Alt>Button1 Rotate the desktops in 3D.
rotate_left_window_key <Shift><Control><Alt>Left Switch to the left desktop.
rotate_left_key <Control><Alt>Left Switch to the left desktop with the active window.
     
Resize
initiate_button <Alt>Button2 Resize window using mouse.
initiate_key <Alt>F8 Resize window using keyboard (press Enter to quit)
     
Move
initiate_button <Alt>Button1 Move window using mouse.
initiate_key <Alt>F7 Move window using keyboard (press Enter to quit)
     
Water
initiate_key <Control><Super> Turn on water effect. (My card doesn’t support it :( )
toggle_wiper_key <Shift>F8 Toggle wiper.
toggle_rain_key <Shift>F9 Toggle rain.
     
Switcher
next_all_key <Control><Alt>Tab Switch to next window for all desktops.
next_key <Alt>Tab Switch to next window for current desktop.
prev_key <Shift><Control><Alt>Tab Switch to previous window.
     
Zoom
zoom_in_button <Super>Button4 Zoom in manually .
initiate_button <Super>Button3 Zoom in once.
zoom_out_button <Super>Button5 Zoom out manually.
     
Scale
initiate_edge [TopRight] Show previews of all windows using mouse.
initiate_key Pause Show previews of all windows using keyboard.
     
Wobbly
snap_key <Shift> Snap window to the grid.

x-click-but04.gif


Find deals on Amazon.com

Notebook Computers Electronics iPod MacBook MacPro

Fedora Core 6 Installation Notes on an Acer Ferrari 3400

[Note] Click here for Fedora 7 installation Notes.

I spent a good chunk of my time trying to upgrade my previous FC5 on an Acer Ferrari 3400. After the upgrade, I got tons of problems of my system. In the end, I decided to do a fresh installation. Here are the notes.

Extra Yum Repositories

Even though the current Fedora has tons of packages. Some of the necessary ones for functional desktop are not included. There are two nice repositories:livna and freshrpms. To use these two repositories, just type:

rpm -ihv http://rpm.livna.org/livna-release-6.rpm
rpm -ihv http://ftp.freshrpms.net/pub/freshrpms/fedora/linux/6/freshrpms-release/freshrpms-release-1.1-1.fc.noarch.rpm

DVD Player

The default player still doesn’t play DVD video. You need xine for this. Type:

yum -y install xine xine-lib xine-skins

Adobe (Macromedia) Flash Player

Go to Adobe’s site to download the player. Extract the file and install it to /usr/lib/mozilla .


tar zxvf install_flash_player_7_linux.tar.gz
cd install_flash_player_7_linux
./flashplayer-installer

Media Player

To view quicktime and wmv files, I need mplayer with the browser plug-in. Both livna and freshrpms have mplayer. I disable livna to prevent conflict.


yum -y install --disablerepo=livna mplayer mplayer-skins mplayer-fonts mplayerplug-in

Note that the mplayerplug-in doesn’t always work. I still haven’t figured out a way to get it to work 100%.

NTFS Support

If you have a dual boot system, the ability to read/write NTFS file system is a must. FC6 now supports read and write access to NTFS. To enable it, just use:


yum -y install ntfs-3g

After the package is installed, you can use ntfs-3g to mount the NTFS partitions.


mkdir /mnt/c
ntfs-3g /dev/hda2 /mnt/c

Note that you only need to create the /mnt/c mount point once.

Wireless Card

I used ndiswrapper on FC5 to get the wireless card to work. FC6 now includes support for bcm43xx, but the support is only partial. You still need to extract firmware files from the Windows driver. First, install firmware cutter for bcm43xx package.


yum -y install bcm43xx-fwcutter

If you have a dual boot system, the Windows driver is in C: drive. You can use a USB key to move the file to FC6. Or if you have enabled NTFS support, the file (BCMWL5.SYS) is in


/mnt/c/WINDOWS/system32/drivers

Now change directory to where BCMWL5.SYS is and do


bcm43xx-fwcutter -w /lib/firmware BCMWL5.SYS
depmod -a
modprobe bcm43xx

If everything goes well, there should be no output from modprobe command. I use wpa_supplicant for WPA support. Modify the file /etc/sysconfig/wpa_supplicant so that it look like:


INTERFACES="-ieth1"

DRIVERS="-Dwext"

Note that during the installation, the eth1 interface was created by the installer. If your wireless card has a different interface (like wlan0) edit the line accordingly. Next, modify /etc/wpa_supplicant/wpa_supplicant.conf :


ctrl_interface=/var/run/wpa_supplicant

ctrl_interface_group=wheel



network={

        ssid="any"

        key_mgmt=NONE

}



network={

        ssid="YOUR_SSID_HERE"

        key_mgmt=WPA-PSK

        psk="YOUR_PSK_PHRASE_HERE"

}

We want to run wpa_supplicant with wheel group. So, we need to modify the sudoer configuration file. Edit /etc/sudoers , uncomment the line for wheel group so that it looks like this.

%wheel ALL=(ALL)       NOPASSWD: ALL

The wpa_supplicant service is not on by default, type this to enable it at run level 5.


chkconfig --level 5 wpa_supplicant on

wpa_supplicant service starts later than network service, therefore the network service would fail when trying to bring up eth1 inferface at startup. We can change the order of wpa_supplicant. I did this to change the order.


mv /etc/rc5.d/S12wpa_supplicant /etc/rc5.d/S09wpa_supplicant

Now if you reboot the system, the wireless card eth1 should connect to the access point specified in your wpa_supplicant.conf . Additinally, you can install the wpa_supplicant-gui package and use wpa_gui to manage the wireless connections.

Enable Compiz (Desktop Effects)

Compiz is installed by default, but it’s not turned on. If you use GNOME desktop, you can just click System -> Preferences -> Desktop Effects to bring up the dialog to enable it. If you use KDE, just type

desktop-effects

in a console to bring up the dialog. After you enable compiz, you can try out the new features.

  • Alt + Tab: Switch between applications with preview.
  • Ctl+Alt+Left(Right): Switch between desktop.
  • Ctl+Alt+Down: Show 3 desktops in a strip.
  • Ctl+Alt+Left mouse click and drag: Rotate desktops in 3D.
  • Move mouse to top right corner: Give you preview of all open windows.

If you want to tweak the settings, you can install the gconf-editor . The settings for compiz is in /apps/compiz . I have compiled a list of key combinations list for compiz. Click here to see it.

Remote Administration

There are two applications that I use everyday to manage my network: remote desktop and vnc. To install them, type:

yum -y install rdesktop

yum -y install vnc

I usually run rdesktop with these options:

rdesktop -g 1024x768 -a 16  server.domain-name.com

This would connect the rdesktop client to server using a 1024×768 display with 16 bit color depth. The use of vnc is simpler.

vncviewer server2.domain-name.com

One thing about the vncviewer is that there is no menu for you to select on screen. You need to press “F8″ to get the options.

x-click-but04.gif