根據官網教程編寫,親測可用。
注意必須使用root許可權運行。
#!/bin/bash# This script run the init command for opotimus pc;# Fedora 19;# run as the rootecho 'run as the root'yum -y install vlc#install rpmfusion sourcerpm -ivh http://download1.rpmfusion.org/free/fedora/rpmfusion-free-release-stable.noarch.rpm http://download1.rpmfusion.org/nonfree/fedora/rpmfusion-nonfree-release-stable.noarch.rpmrpm --import http://ATrpms.net/RPM-GPG-KEY.atrpms# install gnome-tweak-tool gnome externtionsyum install gnome-shell-extension* gnome-tweak-tool # install xbacklight yum install xbacklightecho 'updateing .....'yum update# install the VGA drive [https://fedoraproject.org/wiki/Bumblebee#Fedora_19]yum install -y libbsd-devel libbsd glibc-devel libX11-devel help2man autoconf git tar glib2 glib2-devel kernel-devel kernel-headers automake gcc gtk2-develyum -y install VirtualGL VirtualGL.i686 yum -y --nogpgcheck install http://install.linux.ncsu.edu/pub/yum/itecs/public/bumblebee/fedora19/noarch/bumblebee-release-1.0-1.noarch.rpmyum -y install bbswitch bumblebeeyum -y --nogpgcheck install http://install.linux.ncsu.edu/pub/yum/itecs/public/bumblebee-nonfree/fedora19/noarch/bumblebee-nonfree-release-1.0-1.noarch.rpmyum install glibc-develyum -y install bumblebee-nvidiaecho 'reboot the computer to complete the install'sleep 3reboot