Tuesday, January 20, 2009

FreeBSD Helper (own version)

This helper is for (my) personal use only, and there is no waranty it also work with u, if this helper usefull for some of you, Thats great!
This helper are for post installation phase, for the installation howto itself, u better check this out!
This helper will be updated, (will be syncing with this article , and the best things, i have another choice than the ASCII :P ) .
Last, i dont care if this helper not working for u , suit yourself :)


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.
how to solve, Edit /boot/loader.conf, and add
snd_driver_load="YES"
* 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)

6 comments:

  1. Waktu install FreeBSD-7.1 Release di PC AMD64 Sound card bermasalah...salah satu caranya adalah dengan mengeluarkan module soundcard waktu booting

    Caranya :
    Edit /boot/loader_conf
    $vi /boot/loader_conf

    terus ketik

    snd_driver_load="YES"

    ReplyDelete
  2. @Arie: yup, kudu di load dulu driver soundnya :) .. done

    ReplyDelete
  3. Is this a laptop? Could you show the dmesg? I have ar5005g also but it doesn't work on FS v3515 with FreeBSD 7.0.

    Thanx

    ReplyDelete
  4. Om mau nanya, itu FreeBSDnya punya om suaranya keluar gak? kayaknya laptopnya sama deh. Pake snd_hda drivernya. Suaranya keluar gak?

    ReplyDelete
  5. untuk fix something kenapa harus :
    "make && make deinstall && make reinstall" ??

    cukup ente ketik :
    "make reinstall FORCE_PKG_REGISTER=yes"

    ReplyDelete
  6. @anonymous: ill show you later, sorry for late reply :)
    @phree: suara keluar, coba baca lagi deh, ada diatas buat set suara :), ini aku copas "how to solve, Edit /boot/loader.conf, and add
    snd_driver_load="YES""

    @lamno: nice, gw akan coba itu.. yang gw tulis adlaha berdasarkan yang gw baca di internet (mungkin kungfu searching gw kurang jago), dan juga gw baru install freebsd lagi :).. thxs

    ReplyDelete