# Freebsd howto collection for: Toshiba L 30 # Date created: 17 January 2009 # Whom: Ammar WK # # $FreeBSD: /home/y3dips/Desktop/freebsd-howto,v 1.1 2009/01/21 08:43:36 y3dips Exp $ # My Machine (Neo-Tarantula) Information [y3dips@ /home/y3dips/Desktop]$ uname -a FreeBSD 7.0-RELEASE FreeBSD 7.0-RELEASE #0: Sun Feb 24 19:59:52 UTC 2008 root@logan.cse.buffalo.edu:/usr/obj/usr/src/sys/GENERIC i386 [y3dips@ /usr/ports/editors/vim]$ pciconf -lv hostb0@pci0:0:0:0: class=0x060000 card=0xff311179 chip=0x5a311002 rev=0x01 hdr=0x00 vendor = 'ATI Technologies Inc' device = 'RS400/133 Host Bridge' class = bridge subclass = HOST-PCI pcib1@pci0:0:1:0: class=0x060400 card=0x5a3f1002 chip=0x5a3f1002 rev=0x00 hdr=0x01 vendor = 'ATI Technologies Inc' device = 'RS480 PCI Bridge' class = bridge subclass = PCI-PCI atapci0@pci0:0:18:0: class=0x01018f card=0xff311179 chip=0x43791002 rev=0x80 hdr=0x00 vendor = 'ATI Technologies Inc' device = 'IXP SB400 Serial ATA Controller' class = mass storage subclass = ATA ohci0@pci0:0:19:0: class=0x0c0310 card=0xff311179 chip=0x43741002 rev=0x80 hdr=0x00 vendor = 'ATI Technologies Inc' device = 'IXP SB400 OHCI USB Controller' class = serial bus subclass = USB ohci1@pci0:0:19:1: class=0x0c0310 card=0xff311179 chip=0x43751002 rev=0x80 hdr=0x00 vendor = 'ATI Technologies Inc' device = 'IXP SB400 OHCI USB Controller' class = serial bus subclass = USB ehci0@pci0:0:19:2: class=0x0c0320 card=0xff311179 chip=0x43731002 rev=0x80 hdr=0x00 vendor = 'ATI Technologies Inc' device = 'IXP SB400 EHCI USB 2.0 Controller' class = serial bus subclass = USB none0@pci0:0:20:0: class=0x0c0500 card=0xff311179 chip=0x43721002 rev=0x82 hdr=0x00 vendor = 'ATI Technologies Inc' device = 'IXP SB400 SMBus' class = serial bus subclass = SMBus atapci1@pci0:0:20:1: class=0x010188 card=0xff311179 chip=0x43761002 rev=0x80 hdr=0x00 vendor = 'ATI Technologies Inc' device = '? Radeo SB400 = RS480 Southbridge/IDE Controller' class = mass storage subclass = ATA none1@pci0:0:20:2: class=0x040300 card=0xff311179 chip=0x437b1002 rev=0x01 hdr=0x00 vendor = 'ATI Technologies Inc' device = 'OEM Intel Corporation& Microsoft UAA Bus Driver for High Definition Audio' class = multimedia isab0@pci0:0:20:3: class=0x060100 card=0xff311179 chip=0x43771002 rev=0x80 hdr=0x00 vendor = 'ATI Technologies Inc' device = 'IXP SB400 PCI-ISA Bridge' class = bridge subclass = PCI-ISA pcib2@pci0:0:20:4: class=0x060401 card=0x00000000 chip=0x43711002 rev=0x80 hdr=0x01 vendor = 'ATI Technologies Inc' device = 'IXP SB400 PCI-PCI Bridge' class = bridge subclass = PCI-PCI vgapci0@pci0:1:5:0: class=0x030000 card=0xff311179 chip=0x5a621002 rev=0x00 hdr=0x00 vendor = 'ATI Technologies Inc' device = 'Radeon Xpress 200M (RS410)' class = display subclass = VGA cbb0@pci0:9:1:0: class=0x060700 card=0xff311179 chip=0x14101524 rev=0x01 hdr=0x02 vendor = 'ENE Technology Inc' device = 'CB-1420 CardBus Controller' class = bridge subclass = PCI-CardBus rl0@pci0:9:2:0: class=0x020000 card=0xff311179 chip=0x813910ec rev=0x10 hdr=0x00 vendor = 'Realtek Semiconductor' device = 'RT8139 (A/B/C/810x/813x/C+) Fast Ethernet Adapter' class = network subclass = ethernet ath0@pci0:9:4:0: class=0x020000 card=0x7094144f chip=0x001a168c rev=0x01 hdr=0x00 vendor = 'Atheros Communications Inc.' device = 'Atheros AR5005G Atheros AR5005G 802.11abg NIC Chipset / TP-Link (TL-WN551G)' class = network subclass = ethernet Post Installation * Changing user default shell to bash : #sysinstall --> user management for bash shell, just point it to (you have to install bash first :P) /usr/local/bin/bash * Adding specific user to root group,for "su" command for user y3dips #pw user mod y3dips -G wheel #groups y3dips *Starting KDE: Failed to load KDE, using "startkde" when im trying to load a KDE with start KDE, got error message kpersonalizer: cannot connect to X server how to solve, Do in your HOME directory $ echo "exec startkde" > ~/.xinitrc $ startx then define the KDE start wizard (personalizer) * Error sound when kde loaded Sound server informational message: Error while initializing the sound driver: device /dev/dsp can't be opened (No such file or directory) The sound server will continue, using the null output device. -- not solved yet, still too lazy :p * Configuring wireless network My home Access point are using WPA, so, to connect to WPA Access point, u need a wpa_spplicant, which is good, because its already install So, just as ussual, made a the configuration files [root@ ~]# vi /etc/wpa_supplicant.conf network={ ssid="ex1a" psk="passwordssidnyaharuskeren" } Then add the ath0 config to /etc/rc.conf [root@ ~]# vi /etc/rc.conf ---- #wifi konfiG ifconfig_ath0="WPA DHCP" ---- [root@ ~]# /etc/rc.d/netif start Starting wpa_supplicant. ath0: no link ..... got link DHCPDISCOVER on ath0 to 255.255.255.255 port 67 interval 3 DHCPDISCOVER on ath0 to 255.255.255.255 port 67 interval 8 DHCPOFFER from 192.168.1.1 DHCPREQUEST on ath0 to 255.255.255.255 port 67 DHCPACK from 192.168.1.1 bound to 192.168.1.100 -- renewal in 43200 seconds. lo0: flags=8049 metric 0 mtu 16384 inet6 fe80::1%lo0 prefixlen 64 scopeid 0x3 inet6 ::1 prefixlen 128 inet 127.0.0.1 netmask 0xff000000 ath0: flags=8843 metric 0 mtu 1500 ether 00:16:e3:a0:c7:b2 inet 192.168.1.100 netmask 0xffffff00 broadcast 192.168.1.255 media: IEEE 802.11 Wireless Ethernet autoselect (OFDM/12Mbps) status: associated ssid ex1a channel 6 (2437 Mhz 11g) bssid 00:1e:e5:5f:05:d3 authmode WPA privacy ON deftxkey UNDEF TKIP 3:128-bit txpower 31.5 bmiss 7 scanvalid 60 bgscan bgscanintvl 300 bgscanidle 250 roam:rssi11g 7 roam:rate11g 5 protmode CTS burst roaming MANUAL [root@ ~]# ping yahoo.com PING yahoo.com (206.190.60.37): 56 data bytes 64 bytes from 206.190.60.37: icmp_seq=0 ttl=46 time=296.738 ms ^C --- yahoo.com ping statistics --- 1 packets transmitted, 1 packets received, 0.0% packet loss round-trip min/avg/max/stddev = 296.738/296.738/296.738/0.000 ms [root@ ~]# *Installing firefox 3.0 ( Kongueror svck it crashes all the time, Use portsnap to install (yeah porting way of life .... yay) #portsnap fetch extract (only for the first use) [root@ /home/y3dips/Desktop]# portsnap fetch extract Looking up portsnap.FreeBSD.org mirrors... 2 mirrors found. Fetching public key from portsnap1.FreeBSD.org... done. Fetching snapshot tag from portsnap1.FreeBSD.org... done. Fetching snapshot metadata... done. Fetching snapshot generated at Sat Jan 17 07:26:54 WIT 2009: 5ea8340e63285ed96223487f5aea3bc633c9233dd40c31100% of 55 MB 24 kBps 00m00s Extracting snapshot... done. Verifying snapshot integrity... --- -trunk ---- (yay... gentoo shows a good example of this :) ) [root@ /home/y3dips/Desktop]# portsnap fetch update Looking up portsnap.FreeBSD.org mirrors... 2 mirrors found. Fetching snapshot tag from portsnap1.FreeBSD.org... done. Ports tree hasn't changed since last snapshot. No updates needed. Ports tree is already up to date. [root@ /home/y3dips/Desktop]#cd /usr/ports/www/firefox3 && make install clean Got an error when compiling firefox3 /usr/bin/ld: cannot find -lgio-2.0 gmake: *** [libgiofam.la] Error 1 *** Error code 2 Stop in /usr/ports/devel/gio-fam-backend. *** Error code 1 Stop in /usr/ports/devel/desktop-file-utils. *** Error code 1 Stop in /usr/ports/www/firefox3. *** Error code 1 Fix: Reinstalling glib20 again , using #cd /usr/ports/devel/glib20 #make && make deinstall & make reinstall Then Compile firefox3 again, Got another error Message configure: error: Library requirements (cairo >= 1.6.0 freetype2 fontconfig) Fix: Reinstallingnew version of cairo (make sure you update the port tree) *** reinstall need pixman, so install pixman first *** #cd /usr/ports/graphics/cairo #make && make deinstall && make reinstall After that install firefox3 again, and Voila ... *Upgrade to 7.1 , as we all know, there are working local root exploit for 7.0 :D #freebsd-update upgrade -r 7.1-RELEASE #freebsd-update install *Installing Flash for Firefox Since there is no flash plugins for firefox freebsd, so we need t use linux wrapper --- install nspluginwrapper & linux flashplayer #cd /usr/ports/www/nspluginwrapper/ #make install clean #cd /usr/ports/linux-flashplugin9/ #make install clean --- then Add this mount entry to fstab files , linproc /usr/compat/linux/proc linprocfs rw 0 0 *Installing SWFDec # cd /usr/ports/www/swfdec-plugin # make install clean check it with typing "about:plugins" in firefox url tab *Installing ATI driver #cd /usr/ports/x11-drivers/xf86-video-ati && make install clean *NTFS-3g support # cd /usr/ports/sysutils/fusefs-kmod # make install clean # cd /usr/ports/sysutils/fusefs-libs # make install clean # cd /usr/ports/sysutils/fusefs-ntfs # make install clean --- add to rc.conf (load the kernel module) fusefs_enable="YES" --- start the module # /usr/local/etc/rc.d/fusefs start --- manually mount or add to fstab # ntfs-3g /dev/device /media/tmp *Installing FreeNX # /usr/local/NX/bin/nxsetup --install ========================================================================== # Disclaimer: Most of the trick are taken from various sites (from google) # and by trial and error ( i mean.. read the error :P) ==========================================================================