2009/08/23

Slow SSH Authentication FreeBSD

make sure /etc/resolv.conf exist :D

2009/07/29

FreBSD ports, switch from fetch to wget

The FreeBSD ports system uses fetch to download the files from the distfiles
i stand behind "i-can't-guess" firewall and proxy
many fetch options don't give me solutions
someday i try wget, and it works perfectly
and i want to switch ports system from "fetch" to "wget"

First

install wget
( by ports, by package, or anything you can install )

Second
[root@ ~]# cd /usr/ports/Mk
[root@ /usr/ports/Mk]# vi bsd.port.mk


edit to
.if exists(/usr/bin/fetch)
#FETCH_BINARY?= /usr/bin/fetch
#FETCH_ARGS?= -ApRr
#FETCH_REGET?= 1

.if !defined(DISABLE_SIZE)
#FETCH_BEFORE_ARGS+= $${CKSIZE:+-S $$CKSIZE}
.endif
.else
FETCH_BINARY?= /usr/bin/ftp
FETCH_ARGS?= -R
FETCH_REGET?= 0
.endif
FETCH_CMD?= /usr/local/bin/wget
#FETCH_CMD?= ${FETCH_BINARY} ${FETCH_ARGS}


wget configuration

/usr/local/etc/wgetrc

2009/06/29

FreeBSD mount iso image

Mount iso image to your local hardrive

[root@ ~/bsd/FreeBSD7]# ls *.iso
7.0-RELEASE-i386-disc1.iso
[root@ ~/bsd/FreeBSD7]# mdconfig -a -t vnode -f 7.0-RELEASE-i386-disc1.iso
md0
[root@ ~/bsd/FreeBSD7]# mkdir satu
[root@ ~/bsd/FreeBSD7]# mount -t cd9660 /dev/md0 satu/


to unmount, simply
[root@ ~/bsd/FreeBSD7]# umount satu
[root@ ~/bsd/FreeBSD7]# mdconfig -d -u /dev/md0

2009/05/10

Mount FTP to local directory

mount ftp server to your local directory
using fuse and curlftpfs

First, install curlftpfs

niyala ~ # curlftpfs ftp://10.14.200.126 /ftp
niyala ~ # curlftps -o user=anonymoususer:anonymouspassword ftp://10.14.200.126 /ftp

2009/03/20

Gentoo GNS3

Install GNS3 Graphical Network Simulator on gentoo linux

1. Setting Up your local portage

niyala # mkdir /usr/local/portage
niyala # echo "PORTDIR_OVERLAY="/usr/local/portage" >> /etc/make.conf


2. Prepare the ebuild
niyala # mkdir /usr/local/portage/app-emulation/
niyala # cd /usr/local/portage/app-emulation/
niyala # mkdir gns3 dynamips


3. Download and the ebuild
niyala # cd gns3
niyala # mkdir files
niyala # cd files
niyala # wget http://www.ittelkom.ac.id/pinguin/gentoo/PORTDIR_OVERLAY/app-emulation/gns3/files/gns3-0.6_set_dynamips_path.patch
niyala # wget http://www.ittelkom.ac.id/pinguin/gentoo/PORTDIR_OVERLAY/app-emulation/gns3/files/gns3-0.6_set_pemu_path.patch
niyala # cd ..
niyala # wget http://www.ittelkom.ac.id/pinguin/gentoo/PORTDIR_OVERLAY/app-emulation/gns3/gns3-0.6.ebuild
niyala # ebuild gns3-0.6ebuild digest
niyala # cd ../dynamips
niyala # wget http://www.ittelkom.ac.id/pinguin/gentoo/PORTDIR_OVERLAY/app-emulation/dynamips/dynamips-0.2.8_rc2.ebuild
niyala # ebuild dynampis-0.2.8_rc2.ebuild


4. Emerge
niyala # echo "=app-emulation/gns3-0.6 ~x86" >> /etc/portage/package.keywords
niyala # echo "=app-emulation/dynamips-0.2.8_rc2 ~x86" >> /etc/portage/package.keywords
niyala # emerge -avp gns3

2009/02/28

Internal compiler error: Segmentation fault

internal compiler error: Segmentation fault
Please submit a full bug report,
with preprocessed source if appropriate.
See http://bugs.gentoo.org/> for instructions.


ahh, finally solved
the fact :
  1. my memory card is not broken ( checked using memtest86+ )
  2. i wash my heatsink using "sunlight"
  3. and everything goes well

alhamdulillah

2008/12/04

OpenBSD disable usb and isa port

just curious why superkayak can't boot default OpenBSD /bsd kernel
always stuck at hardware detection
it's also happen with installation kernel

and then know the culprit
i have to disable usb and isa port first before boot
by using "boot -c" at boot time and disabling them
after you can login to your box
lets edit the kernel (to disable usb and isa port )

# config -e -o /bsd.sip /bsd
OpenBSD 4.4 (GENERIC) #1021: Tue Aug 12 17:16:55 MDT 2008
    deraadt@i386.openbsd.org:/usr/src/sys/arch/i386/compile/GENERIC
Enter 'help' for information
ukc> disable usb
348 usb* disabled
ukc> disable isapnp
314 isapnp0 disabled
ukc> quit
Saving modified kernel.

# mv bsd bsd.old
# mv bsd.sip bsd
# reboot



Linux Tv Tuner card

Just note
nak ono sing tekak tekok kari ngelink mrene


TV tuner info
niyala ~ # lspci -v
01:08.0 Multimedia controller: Philips Semiconductors SAA7130 Video Broadcast Decoder (rev 01)
Subsystem: Animation Technologies Inc. LifeView FlyVIDEO2000
Flags: bus master, medium devsel, latency 32, IRQ 20
Memory at e3001000 (32-bit, non-prefetchable) [size=1K]
Capabilities: [40] Power Management version 1

make sure, line out from tv tuner plugged into soundcard line input
make sure, you have compiled the driver modules
make sure, you know your card and tuner options

i'am a gentoo user, i use udev to manage the hardware
udev also support for coldplugging ( hardware detection at boot )
from this i have a problem,
because i don't know how to insert module option to load tv tuner module into the kernel
finally i use blacklist from udev,
first do not load automatically ( using udev coldplug ) by blacklisting the module
and then use modules autoload to load the modules
niyala ~ # echo "blacklist saa7134" >> /etc/modprobe.d/blacklist
niyala ~ # echo "options saa7134 card=3 tuner=25" > /etc/modules.d/saa7134
niyala ~ # echo "saa7134" > /etc/modules.autoload.d/kernel-2.6
niyala ~ # echo "tuner" > /etc/modules.autoload.d/kernel-2.6
when your computer reboot, the driver module ready to go ...

i use xawtv for tv viewer and qqradio for radio tuner



2008/08/31

View only configuration lines ( uncomment lines )

Linux configuration files using comment and uncomment lines ( # )
and sometimes we don't need the comment lines, we only need the uncomment lines ( usable configuration files )

here is the script to view only configuration lines / uncommment lines
example squid.conf
superkayak # cat /etc/squid/squid.conf.default | grep -v "^#" | sed '/^$/d'

2008/08/20

Logitech Quickcam IM and Debian 4.0 (etch)

Logitech Quickcam IM and Debian 4.0 (etch)

as simply as usual

1. Cek kernel version
h15net200:~# uname -a
Linux h15net200 2.6.18-4-686 #1 SMP Mon Mar 26 17:17:36 UTC 2007 i686 GNU/Linux

2. Choose your module ( using compiled modules or by source ) , using gspca linux webcam driver
h15net200:~# apt-cache search gspca
gspca-modules-2.6-686 - gspca video for linux (v4l) driver modules for Linux 2.6 on PPro/Celeron/PII/PIII/P4
gspca-modules-2.6.18-4-k7 - gspca video for linux (v4l) driver modules for Linux 2.6.18 on AMD K7
gspca-modules-2.6.18-4-amd64 - gspca video for linux (v4l) driver modules for Linux 2.6.18 on AMD64
gspca-modules-2.6.18-4-486 - gspca video for linux (v4l) driver modules for Linux 2.6.18 on x86
gspca-modules-2.6-k7 - gspca video for linux (v4l) driver modules for Linux 2.6 on AMD K7
gspca-modules-2.6-amd64 - gspca video for linux (v4l) driver modules for Linux 2.6 on AMD64
gspca-modules-2.6-486 - gspca video for linux (v4l) driver modules for Linux 2.6 on x86
gspca-modules-2.6.18-4-xen-686 - gspca video for linux (v4l) driver modules for Linux 2.6.18 on i686
gspca-modules-2.6.18-4-vserver-686 - gspca video for linux (v4l) driver modules for Linux 2.6.18 on PPro/Celeron/PII/PIII/P4
gspca-modules-2.6.18-4-xen-vserver-686 - gspca video for linux (v4l) driver modules for Linux 2.6.18 on i686
gspca-modules-2.6.18-4-vserver-k7 - gspca video for linux (v4l) driver modules for Linux 2.6.18 on AMD K7
gspca-modules-2.6-vserver-k7 - gspca video for linux (v4l) driver modules for Linux 2.6 on AMD K7
gspca-modules-2.6-vserver-686 - gspca video for linux (v4l) driver modules for Linux 2.6 on PPro/Celeron/PII/PIII/P4
gspca-modules-2.6.18-4-686-bigmem - gspca video for linux (v4l) driver modules for Linux 2.6.18 on PPro/Celeron/PII/PIII/P4
gspca-modules-2.6-xen-vserver-686 - gspca video for linux (v4l) driver modules for Linux 2.6 on i686
gspca-modules-2.6-xen-686 - gspca video for linux (v4l) driver modules for Linux 2.6 on i686
gspca-modules-2.6-686-bigmem - gspca video for linux (v4l) driver modules for Linux 2.6 on PPro/Celeron/PII/PIII/P4
gspca-source - source for the gspca v4l kernel module
gspca-modules-2.6.18-4-686 - gspca video for linux (v4l) driver modules for Linux 2.6.18 on PPro/Celeron/PII/PIII/P4

3. Install modules
h15net200:~# apt-get install gspca-modules-2.6.18-4-686

4. Install camera viewer
h15net200:~# apt-get install camorama xawtv

5. Loading module in to the kernel
h15net200:~# modprobe gspca

6. Voila