Unix

Dynagen in FreeBSD

After ports unfreeze, I do some directory ports walking ( wanna analogy it as blogwalking icon smile Dynagen in FreeBSD ), find dynagen and dynamips ports. I thought dynagen not available in FreeBSD but I’m wrong icon smile Dynagen in FreeBSD

su-2.05b# whereis dynamips

dynamips: /usr/ports/emulators/dynamips

su-2.05b# whereis dynagen

dynagen: /usr/ports/emulators/dynagen

su-2.05b# ls /usr/ports/emulators | grep dyna

dynagen
dynamips
dynamips-devel

wow, try dynagen first icon smile Dynagen in FreeBSD

su-2.05b# cd /usr/ports/emulators/dynagen/

See version

su-2.05b#ee Makefile

# New ports collection makefile for: dynagen
# Date created: 2006-11-07
# Whom: trasz

#
# $FreeBSD: ports/emulators/dynagen/Makefile,v 1.6 2007/04/13 13:03:46 trasz Exp $
#PORTNAME= dynagen
PORTVERSION= 0.9.0
CATEGORIES= emulators
MASTER_SITES= ${MASTER_SITE_SOURCEFORGE}
MASTER_SITE_SUBDIR= dyna-gen

MAINTAINER= trasz@freebsd.org
COMMENT= Text-based front end for Dynamips

RUN_DEPENDS= dynamips:${PORTSDIR}/emulators/dynamips

Version 0.9, no time for installation but prepare the file is OK

su-2.05b# make fetch

On FreeBSD before 6.2 ports system unfortunately can not set default X11BASE by itself so please help it a bit by setting X11BASE=${LOCALBASE} in make.conf.
On the other hand, if you do wish to use non-default X11BASE, please set variable USE_NONDEFAULT_X11BASE.
*** Error code 1

Sigh, this box is 4.11 not 6.2, try add more option in ‘make’

su-2.05b# make USE_NONDEFAULT_X11BASE=1 fetch

===> Vulnerability check disabled, database not found
=> dynagen-0.9.0.tar.gz doesn’t seem to exist in /usr/ports/distfiles/.
=> Attempting to fetch from http://heanet.dl.sourceforge.net/sourceforge/dyna-gen/.
fetch: http://heanet.dl.sourceforge.net/sourceforge/dyna-gen/dynagen-0.9.0.tar.gz: Not Found
=> Attempting to fetch from http://nchc.dl.sourceforge.net/sourceforge/dyna-gen/.
dynagen-0.9.0.tar.gz 100% of 230 kB 2598 Bps 00m00s

ready to install, make install clean

P.S : I should learn about how to modifiy ports, dynagen has reach 0.9.2 but ports still 0.9 icon smile Dynagen in FreeBSD

Unix

php4-gd and xorg7.2

Try to upgrade php4-gd from ports, but still not work icon sad php4 gd and xorg7.2

kongja# portupgrade php4-gd

—>  Upgrading ‘php4-gd-4.4.6′ to ‘php4-gd-4.4.7′ (graphics/php4-gd)
—>  Building ‘/usr/ports/graphics/php4-gd’
===>  Cleaning for php4-4.4.7
===>  Cleaning for autoconf-2.59_2
===>  Cleaning for xorg-libraries-7.2
………………….
………………….
===>  Cleaning for php4-gd-4.4.7
===>  Found saved configuration for php4-gd-4.3.10
===>  Extracting for php4-gd-4.4.7
=> MD5 Checksum OK for php-4.4.7.tar.bz2.
=> SHA256 Checksum OK for php-4.4.7.tar.bz2.
===>  Patching for php4-gd-4.4.7
===>  Applying FreeBSD patches for php4-gd-4.4.7
===>   php4-gd-4.4.7 depends on executable in : phpize – found
===>   php4-gd-4.4.7 depends on file: /usr/local/bin/autoconf259 – found
===>   php4-gd-4.4.7 depends on file: /usr/local/libdata/xorg/libraries – not found
===>    Verifying install for /usr/local/libdata/xorg/libraries in /usr/ports/x11/xorg-libraries
Read /usr/ports/UPDATING for the procedure to upgrade or install xorg 7.2.
*** Error code 1
read more »

Web Server

No more 192.168.1.1, avoid it in your network!

Sigh… I hate 192.168.1.1

Since a lot of router or access point built in ip configured for 192.168.1.1 by default

Same ip make ipconflict and make my day ruined

Message for other newbie

don’t use 192.168.1.1 as ip for your server

use other ip like : 192.168.1.112 or 192.168.1.252 it’s safer from 192.168.1.1

get it out from your master plan icon smile No more 192.168.1.1, avoid it in your network!

Software

Opening port remote desktop on firewall

Due to change of branch location make my friend need to remote his computer (windows xp) office for efficiency, we discussing about using remote desktop in reality.

Remote desktop use port 3389 so the schema to remote is :

outside –> port 500 –> firewall forward –> 3389

Since load balancing policy, specific address need to remote desktop, e.g :

123.456.789.1011:500

then firewall will forward that request to port 3389

what if no firewall involve then direct public address accessible :

123.456.789.1011:3389

doh, no firewall ? Consider install zonealarm for free icon smile Opening port remote desktop on firewall

In general :

Windows XP Remote Desktop PORT : 3389

80? no it’s web server

21? no, it’s ftp

25? no, it’s email

no more question please icon wink Opening port remote desktop on firewall

Cisco

Learn cisco router with dynamips, know my router

Doh, additional stuff needed to run cisco router that just arrived in the lab. Its Cisco router 2801 series. Before handling it in “real world” I must know it first via cyber world icon smile Learn cisco router with dynamips, know my router

I think I must know the features, googling it, resulted this link :

Interactive Model of the Cisco 2801 Integrated Services Router

Product Spesifications

Key Features of the Cisco 2801 Integrated Services Router

Models comparison

Wow, frankly I no nothing around this stuff, but thats the challenge icon smile Learn cisco router with dynamips, know my router

From zero to one.

With 2801 IOS in my hand, ready to explore!

cisco2801 Learn cisco router with dynamips, know my router

Ok, start learning :
1. I copy cisco 2801 to C:\Program Files\Dynamips\images

read more »

Cisco Virtualization

Install Dynamips using dynagen in Windows XP

For end user like me, dynamips isn’t easy to install. I remember first time install of Redhat 5.0 make my HD crash and die with honor icon smile Install Dynamips using dynagen in Windows XP

Dynagen provide click next and next method, easy to follow and make installation step is not more nightmare. To install dynamips using dynagen require three things :

  1. Winpcap 4.0, click here to download
  2. Latest dynagen, click here to download
  3. Windows XP SP2

After download those files, I can start installation :

I. Winpcap install

Double click installer

read more »

PHP

Operation is not allowed when the object is closed

New problem come with javascript icon smile Operation is not allowed when the object is closed

php and mysql script that proven to work suddenly pop error message and entire editing process get stuck icon sad Operation is not allowed when the object is closed

Error message :

” Operation is not allowed when the object is closed “

line 94
char 11
code 0

file display.php

a few suspect come after :

xmlchapter.php

xmlsubchapter.php

xmlpage.php

read more »

Software

Powerfull Windows XP CD

Common job for technician is installing operating system. All packs contain with all CD, CD windows xp for example, cd for photoshop, cd adobe reader and others program in separate CD. When installation job become routine I need little tool to help me for making my windows slim.

I got the answer : nlite

nlite will produce smaller file iso that ready to install to new computer, with unattended install process, no more license key,faster install mean less time.

OK nlite me a lot, my other question :

Can I use existing windows iso created by nlite ( 206 MB) spare room for other program like photoshop, winzip, winrar, pdf reader etc in that iso file.

Yes, iso modification software need to accomplish that job

One of the software for this job : winiso

I have made new custom iso cd contain windows xp and other useful program into single cd, here’s the steps :

1. Install winiso and register it .

2. Right click on iso file to bring winiso windows

 Powerfull Windows XP CD

read more »

Unix

FreeBSD ports unfreeze

Fiuh, finally ports unfreeze

I thought my system is crash when I try to update ports, until I red about Xorg 7.2 ports committed icon smile FreeBSD ports unfreeze

Yeah, big ports

Today,

kongja# csup -g -L2 ports-supfile -h cvsup12.freebsd.org

Parsing supfile “ports-supfile”
Connecting to cvsup12.freebsd.org
Cannot connect to 2001:468:902:201:209:3dff:fe11:442c: No route to host
Connected to 128.205.32.21
Server software version: SNAP_16_1h
Negotiating file attribute support
Exchanging collection information
Establishing multiplexed-mode data connection
Running
Updating collection ports-all/cvs

……………………
read more »

Database

Mysql 4.0 and Mysql 4.1 Compability

My friend install serendipity (blog engine) in his laptop with mysql version 4.1.21 and dumping sql of his blog. When I try to restore sql file in his PC I got error message :

Microsoft Windows XP [Version 5.1.2600]
(C) Copyright 1985-2001 Microsoft Corp.

C:\Documents and Settings\Administrator>cd c:\appserv\mysql\bin

C:\AppServ\mysql\bin>mysql -uroot -p alam < blog.sql
Enter password:
ERROR 1064 at line 21: You have an error in your SQL syntax. Check the manual t
hat corresponds to your MySQL server version for the right syntax to use near ‘DEFAULT CHARSET=latin1′ at line 12

C:\AppServ\mysql\bin>

Then I realize that mysql server in my friend pc using 4.0.16, DEFAULT CHARSET=latin1 is everywhere in his sql file , this part not needed in mysql 4.0.16

 Mysql 4.0 and Mysql 4.1 Compability

Quick Solution is delete that part.

Still open sql file in wordpad, I choose replace, find DEFAULT CHARSET=latin1 with nothing . Press ‘Replace All’ button. Save the file and try to restore new sql file.

 Mysql 4.0 and Mysql 4.1 Compability

Success icon smile Mysql 4.0 and Mysql 4.1 Compability

Unix

Overwrite FreeBSD ports

Upgrade ports is easy, using portupgrade. Even portupgrade can upgrade it’s own program icon smile Overwrite FreeBSD ports

The problem come with error message ‘xxxx already installed’, how to overcome this problem?

Answer: read the guide icon smile Overwrite FreeBSD ports

kongja# portupgrade p5-libwww-5.79_1

—> Upgrading ‘p5-libwww-5.79_1′ to ‘p5-libwww-5.803′ (www/p5-libwww)
—> Building ‘/usr/ports/www/p5-libwww’
===> Cleaning for p5-Compress-Zlib-1.33
bla…bla..bla

===> Checking if net/p5-URI already installed
===> p5-URI-1.35 is already installed
You may wish to “make deinstall” and install this port again
“make reinstall” to upgrade it properly.
If you really wish to overwrite the old port of net/p5-URI
without deleting it first, set the variable “FORCE_PKG_REGISTER”
in your environment or the “make install” command line.
*** Error code 1
Stop in /usr/ports/net/p5-URI.
*** Error code 1
Stop in /usr/ports/www/p5-libwww.
** Command failed [exit code 1]: /usr/bin/script -qa /tmp/portupgrade30900.0 make
** Fix the problem and try again.
** Listing the failed packages (*:skipped / !:failed)
! www/p5-libwww (p5-libwww-5.79_1) (unknown build error)
—> Packages processed: 0 done, 0 ignored, 0 skipped and 1 failed

wow, check if the ports already installed

read more »