PDA

View Full Version : HOWTO :: Setup new Prestigio X20 with Fedora 7


royong
16-07-2007, 13:24
Bought a new notebook - 20070712 - details as follows

S$800 before GST (includes delivery)
Prestigio X20DWG-CM430-512-40
12.1” WXGA TFT (1280 x 800)
1.73GHz 533Mhz FSB 1MB L2 Cache
Intel Graphics Media Accelerator
512MB DDR2 RAM, Expandable up to 2GB
40GB SATA Hard Drive
DVD Writer Super-Multi
3 x USB
1 x CRT port
1 x RJ45
1 xRJ11
1 x IEEE1394
1 x headphone
1 x microphone
1 x DC in jack
1 x card reader module (SD/MMC/MS/MS Pro)
1 x power adapter
1 x battery
1 x casing case
No OS


decided to install Fedora 7
boot up using the Fedora 7 rescue-cd and pointed it to my external usb-hard disk which contained the Fedora 7 DVD iso
i will skip the details of the install but essentially, i did the following:

Fedora 7 Installation
firewall off
selinux off
/dev/sda
/boot 100MB
swap 1024MB
/ <the rest>


first up, do some basic stuff - install screen, install updates and add a new user

yum -y install screen
yum -y update
useradd roy
passwd roy


now for the wireless, i need to do a ndiswrapper around the windows driver as follows

<insert windows wirless cd-rom>
mkdir /home/roy/addons/
cp -r /media/Wireless/ /home/roy/addons/
yum install gcc
rpm -ivh http://ftp.freshrpms.net/pub/freshrpms/fedora/linux/7/freshrpms-release/freshrpms-release-1.1-1.fc.noarch.rpm
yum install dkms dkms-ndiswrapper
sed -i s/enabled=1/enabled=0/g /etc/yum.repos.d/freshrpms.repo
rm -rf /lib/modules/2.6.21-1.3228.fc7/kernel/drivers/net/wireless/mac80211/rt2x00; depmod
ndiswrapper -i /home/roy/addons/Wireless/broadcom1390/bcmwl5.inf
ndiswrapper -l
rmmod bcm43xx
modprobe ndiswrapper
echo "blacklist bcm43xx_mac80211" >> /etc/modprobe.d/blacklist
chkconfig NetworkManager on
chkconfig NetworkManagerDispatcher on
echo "# Added By Roy" >> /etc/rc.d/rc.local
echo "modprobe ndiswrapper" >> /etc/rc.d/rc.local
echo "ifconfig wlan0 up" >> /etc/rc.d/rc.local
reboot


now to disable some of the unused services

chkconfig autofs off
chkconfig cups off
chkconfig ip6tables off
chkconfig isdn off
chkconfig kudzu off
chkconfig anacron off
chkconfig nfslock off
chkconfig gpm off
chkconfig rpcgssd off
chkconfig rpcidmapd off
chkconfig netfs off
chkconfig rpcsvcgssd off
chkconfig microcode_ctl off
chkconfig yum-updatesd off
chkconfig avahi-daemon off
chkconfig bluetooth off
chkconfig firstboot off
chkconfig hidd off
chkconfig mcstrans off
chkconfig mdmonitor off
chkconfig pcscd off
chkconfig restorecond off
chkconfig restorecond off
chkconfig setroubleshoot off


modify my grub to inclue the vga parameter

vi /etc/grub.conf
timeout=3
kernel /vmlinuz-2.6.21-1.3228.fc7 ro root=LABEL=/ rhgb quiet vga=791
kernel /vmlinuz-2.6.21-1.3194.fc7 ro root=LABEL=/ rhgb quiet vga=791


mmm, realized that we don't have sound ... so we need to do the following

echo "options snd-hda-intel model=uniwill-m31" >> /etc/modprobe.conf


here come the addons - first up - realplayer

cd /home/roy/addons
wget http://www.gagme.com/greg/linux/RealPlayer-10.1.0.3114-20070503.i586.rpm
rpm -ivh RealPlayer-10.1.0.3114-20070503.i586.rpm


acrobat reader

cd /home/roy/addons
wget http://ardownload.adobe.com/pub/adobe/reader/unix/7x/7.0.9/enu/AdobeReader_enu-7.0.9-1.i386.rpm
rpm -ivh AdobeReader_enu-7.0.9-1.i386.rpm


flash plugin

rpm -ihv http://linuxdownload.adobe.com/adobe-release/adobe-release-1.0-0.noarch.rpm
rpm --import /etc/pki/rpm-gpg/RPM-GPG-KEY-adobe-linux
yum install flash-plugin
sed -i s/enabled=1/enabled=0/g /etc/yum.repos.d/adobe-linux.repo
grep enabled=1 /etc/yum.repos.d/*


some miscellaneous stuff - including the ntfs reader

yum install grip
yum install ntfs-3g-devel ntfs-config
yum install testdisk
yum install cups-pdf
yum install thunderbird


install for livna repos

rpm -ivh http://rpm.livna.org/livna-release-7.rpm
rpm --import /etc/pki/rpm-gpg/RPM-GPG-KEY-livna


install all the 3rd party viewers from livna

yum install xmms xmms-mp3 xmms-faad2 gstreamer-plugins-ugly gstreamer-plugins-bad libmad libid3tag
yum install videolan-client
yum install xine xine-lib xine-skins xine-lib-extras-nonfree libdvdcss
yum install mplayer mplayer-gui mplayer-skins mplayer-fonts mplayerplug-in


disable livna repos so that we will not have a conflict when we run yum updates

sed -i s/enabled=1/enabled=0/g /etc/yum.repos.d/livna.repo
grep enabled=1 /etc/yum.repos.d/*


set xine as the atuo DVD player

gconftool-2 --set /desktop/gnome/volume_manager/autoplay_dvd_command 'xine --auto-play --auto-scan dvd' --type='string'


tell mplayer to use our alsa soundcard

vi ~/.mplayer/config
<add the following line>
ao=alsa


now for java
yes, i know that fedora does not encourage use of java from java.com but i guess we need them for dbs internet banking etc.

yum -y install compat-libstdc++-33
cd /home/roy/addons
<download the java rpm from http://java.com/en/download/linux_manual.jsp?locale=en&host=java.com>
sh ./jre-6u2-linux-i586-rpm.bin
ln -s /usr/java/jre1.6.0_02/plugin/i386/ns7/libjavaplugin_oji.so /usr/lib/mozilla/plugins
/usr/sbin/alternatives --install /usr/bin/java java /usr/java/jre1.6.0_01/bin/java 1601
/usr/sbin/alternatives --config java
java -version
java version "1.6.0_02"
Java(TM) SE Runtime Environment (build 1.6.0_01-b06)
Java HotSpot(TM) Client VM (build 1.6.0_01-b06, mixed mode, sharing)


thats all for now - i will try and update this whenever possible

royong
01-09-2007, 12:44
there seems to be a problem with acrobat reader 7.0.9 and 7.0.8 - you will need to perform the following to rectify
more information about the problem is located at http://www.adobeforums.com/cgi-bin/webx/.3bc14512

cp -a /usr/local/Adobe/Acrobat7.0/bin/acroread /usr/local/Adobe/Acrobat7.0/bin/acroread.original
vi /usr/local/Adobe/Acrobat7.0/bin/acroread
<make the following changes ...>

Line ~418:
From:
echo $mfile| sed 's/libgtk-x11-\([0-9]*\).0.so.0.\([0-9]\)00.\([0-9]*\)\|\(.*\)/\1\2\3/g'
To:
echo $mfile| sed 's/libgtk-x11-\([0-9]*\).0.so.0.\([0-9]*\)00.\([0-9]*\)\|\(.*\)/\1\2\3/g'

Line ~643:
From:
MIN_GTK_VERSION="240"
To:
MIN_GTK_VERSION="2040"

royong
01-09-2007, 13:03
installing vmware server
beware that natively, the fedora 7 kernel is not supported
therefore we need to run a patch to vmware before we can install
cd /home/roy/addons/
wget http://download3.vmware.com/software/vmserver/VMware-server-1.0.3-44356.i386.rpm
rpm -ivh VMware-server-1.0.3-44356.i386.rpm
yum install gcc kernel-devel yum-utils gcc-c++ xinetd
yumdownloader --source kernel
mkdir -p /usr/src/redhat/
rpm -ivh kernel-2.6.22.4-65.fc7.src.rpm
wget http://knihovny.cvut.cz/ftp/pub/vmware/vmware-any-any-update113.tar.gz
tar xzfv vmware-any-any-update113.tar.gz
cd vmware-any-any-update113
./runme.pl
/usr/bin/vmware-config.pl
reboot