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 »

Cisco

Simple Way to Find Cisco IOS

Dynagen already accomodate dynamips,with last version of dyangen is 0.9.2 I’m ready to learn ciso router in our lab. While waiting for real cisco router I must practise first icon smile Simple Way to Find Cisco IOS After following video tutorial on installing dynagen I found that I need more thing : Cisco IOS From Wikipedia:

Cisco IOS (originally Internetwork Operating System) is the software used on the vast majority of Cisco Systems routers and all current Cisco network switches. IOS is a package of routing, switching, internetworking and telecommunications functions tightly integrated with a multitasking operating system. The first IOS was written by William Yeager. Cisco IOS has a characteristic command line interface (CLI), whose style has been widely copied by other networking products. The IOS CLI provides a fixed set of multiple-word commands — the set available is determined by the “mode” and the privilege level of the current user. “Global configuration mode” provides commands to change the system’s configuration, and “interface configuration mode” provides commands to change the configuration of a specific interface. A typical command may be “show interface fa0/48” or “no ip cef traffic-statistics“. All commands are assigned a privilege level, from 0 to 15, and can only be accessed by users with the necessary privilege. Through the CLI, the commands available to each privilege level can be defined.

read more »

Unix

Ignore port on FreeBSD

After update ports collection and find old port, need to upgrade. I found that port status : ‘Ignored

bow# portversion -v | grep ‘<'

XFree86-libraries-4.3.0_7 < needs updating (port has 4.4.0_3)

bow# portupgrade XFree86-libraries-4.3.0_7

** Port marked as IGNORE: x11/XFree86-4-libraries:
is part of XFree86-4

doh, new commit for this port icon sad Ignore port on FreeBSD

Try to update it’s makefile a bit

bow# cd /usr/ports/x11/XFree86-4-libraries/

bow# ee Makefile

find these lines:
.if ${X_WINDOW_SYSTEM:L} != xfree86-4
IGNORE= is part of XFree86-4
.endif

jadikan :

#.if ${X_WINDOW_SYSTEM:L} != xfree86-4
#IGNORE= is part of XFree86-4
#.endif

try to portupgrade once again :

bow# portupgrade XFree86-libraries-4.3.0_7

—>Upgrading ‘XFree86-libraries-4.3.0_7′ to ‘XFree86-libraries-4.4.0_3′ (x11/XFree86-4-libraries)
—>Building ‘/usr/ports/x11/XFree86-4-libraries’
===>Cleaning for libiconv-1.9.2_1
===>Cleaning for gettext-0.14.4_1
bla..bla…bla…

done, upgrading to newest program
I love FreeBSD ports

Software

explorer.exe error, time to fix or replace with freecommander ?

sigh….another error message telling me that my explorer.exe error

 explorer.exe error, time to fix or replace with freecommander ?

I can’t imagine it working without explorer till I found this link, 5 windows explorer replacements

other solution not satisfy me :

reinstall my windows, no..no…no

after testing 5 windows explorer replacment, i think i like the other icon smile explorer.exe error, time to fix or replace with freecommander ?

read more »

Unix

Update FreeBSD with freebsd-update

After fresh install freebsd 4.11 in old machine I need to update it right away since many security advisories. Quick way to do that using freebsd-update :

Installing freebsd-update

dns# whereis freebsd-update
freebsd-update: /usr/ports/security/freebsd-update
dns# cd /usr/ports/security/freebsd-update/
dns# make install

===> Vulnerability check disabled, database not found
=> freebsd-update-1.6.tar.gz doesn’t seem to exist in /usr/ports/distfiles/.
=> Attempting to fetch from http://www.daemonology.net/freebsd-update/.
freebsd-update-1.6.tar.gz 100% of 30 kB 6810 Bps
Configuration

dns# cp /usr/local/etc/freebsd-update.conf.sample /usr/local/etc/freebsd-update.conf

read more »

Unix

Install list for new FreeBSD server

Some thought on configuration and install list for new FreeBSD server :

1. Install minimal (pick minimal or developer)

 Install list for new FreeBSD server
2. Configure ethernet card

defaultrouter=”10.10.12.9″
gateway_enable=”YES”
hostname=”alamster.rasyid.net”
ifconfig_em0=”inet 192.168.1.2 netmask 255.255.255.0″
ifconfig_em0_alias0=”inet 10.10.12.1 netmask 255.255.255.240″

3. Time synchronize

-bash-2.05b$ rdate time.nist.gov

read more »

Linux

Linux Distro, Choose DVD or CD?

Many distro nowadays give alternative media for installation, like newest release of Centos
4.5 available in DVD and CD. The other side, VectorLinux 5.6 soho come with CD option. I
just remember when I must install Redhat 9 that require 3 cds, my friend forgot to return
the last cd, make my installation process never complete. Mandrake (now mandriva) has option to skip package that not available. What a convenient why, at that time I just thinking about iso file for DVD for following reason:

  • No more interruptible installation process.
  • Full package for home user who has slow internet connection or not even have it. Like DVD repository in ubuntu.

read more »

Software

Install SSH Server in Windows XP

Being sick, no internet access available plus no new movie to watch, my friend ask me for shell account in freebsd box. He said for education purpose, wanna learn about ssh. Why not try it in windows? thats my question after see his Acer notebook. Is it possible? he reply
I don’t know, need to ask google first.

During search, I stumble upon of cygwin plus ssh solution.
Is there any easier solution for newbie like me?

Google pointing other soilution : sshd for windows

Download latest version from here, choose Binary Installer Releases
Quick install steps :

 Install SSH Server in Windows XP

read more »

Unix

Install program in FreeBSD; ports, package or source?

FreeBSD supports three methods for installing program :

  1. Ports
  2. Package
  3. Source

Every method has its advantage and disadvantage :

  • Ports, till time of writing, already reach 16984, wow. Supports many option, my favorite since beginning icon smile Install program in FreeBSD; ports, package or source? . Simply type make install .
  • Package, for time consuming ports like cvsup I prefer use package for its small size. Package not provide option.
  • Source, everything begin with source. If no ports or package available I use source.

Like debian or ubuntu ports make life easier, every dependency handling automatically as long you got internet connection icon smile Install program in FreeBSD; ports, package or source?

Pretty impressive list of ports number 16984, I don’t know all of them. Only related ports to sytem administration like apache, php, mysql etc.

Maybe I should explore the ports more for better understanding on how FreeBSD work.

Full list of FreeBSD ports to date :

read more »

Blog

Install Local FTP server in Windows XP

At previous post about install wordpress in localhost, I got new question :

What about FTP server, is it possible to install local FTP server to make simulation like upload to real server?

The answer is : Yes

Just install FTP server in computer and point it’s shared folder, for example :

C:\appserv\www

Here’s the steps :

1. Download latest version from here

 Install Local FTP server in Windows XP

2. Download FTP client, for example coreftp from here

3. Install FTP server and FTP client

4. Add any password you want, like 123456

5. Add user and password for accessing folder in FTP server, I use : alamster and password : 123456

6. Add shared folder, this folder is destination folder like ‘public_html’ or www in real production server

7. Try login to FTP server with defined user and password at previous step.
For more detail illustration , see this video

Unix

FreeBSD snapshots

I have noticed that FreeBSD mini iso no longer distributed but I found interesting link : FreeBSD snapshots From FreeBSD site :

As part of an ongoing effort to improve the overall release process before a release actually slips out the door with problems, we are now periodically producing interim test releases called snapshots. These snapshots will be very similar to full releases, except that they might not include all the bits included in a full release (such as packages and updated documentation).

for example tracking status for ZFS in FreeBSD current available in snapshots, also stable version of FreeBSD 6.2, cool  FreeBSD snapshots I click on 200705 for latest snapshots :  FreeBSD snapshots wget time icon smile FreeBSD snapshots