≡ Menu

ports

Linux / UNIX: Smartctl Check Hard Disk Behind 3Ware RAID Card

I‘ve CentOS Linux and FreeBSD based server running using 3Ware (9650SE-2LP) RAID card. I know how to check hard disk behind Adaptec raid controllers, but how do I look at ATA / SATA disks behind 3ware SCSI RAID controllers using smartctl command?
[click to continue…]

Sysadmin because even developers need heroes!!!

HowTo: Upgrade Debian 5.0 (Lenny) To Debian 6.0 (Squeeze)

Debian 6.0 “Squeeze” has been released and how do I upgrade to Debian GNU/Linux 6.0 from the previous release, Debian GNU/Linux 5.0 (“Lenny”) using command prompt?
[click to continue…]

Linux: Check Network Connection Command

How do I check network connections under Linux using command line options?
[click to continue…]

KVM Guest: Shared Physical Network Device With Host (bridging configuration)

The NAT based connectivity is useful for easy deployments. However I want to use full bridging, where the guest is connected directly to the LAN. How do setup and share physical network with host and rest of the LAN under Linux?
[click to continue…]

UNIX / Linux: HowTo Use unison File Synchronizer

I know how to use rsync for Unix systems which synchronizes files and directories from one location to another while minimizing data transfer. However, I would like to synchronizing files between two directories, either on one computer, or between a computer and another server. How do I maintain the same version of files on multiple servers?
[click to continue…]

FreeBSD: Permanently Delete / Remove Files With Shred

I‘m going to upgrade my FreeBSD 7.x server hard disks and going to send back the original 73GB hard disk to my vendor. I wanted to make sure that no one should able to use my personal data from old hard disk, especially files stored in /home/you/projects directory. I know how to use sDelete under MS-Windows to delete a file permanently. How do I permanently erase files under FreeBSD operating systems?
[click to continue…]

tcpdump: Monitor ALL eth1 Traffic Except My Own SSH Session

I‘m using tcpdump to dump, debug and monitor traffic on a network. However, there is lots of noise and I would like to exclude ssh from my dumps. How do I monitor all traffic except my ssh session?
Answer to

Linux iptables: Port Redirection Example

How do I redirect 80 port to 8123 using iptables?
[click to continue…]

Macbook Shell / MacbookPro shell: Protective Leather Shell

Do you recommend protective leather shell for Macbook systems?
[click to continue…]

Q. I’m trying to upgrade my PHP version from 5.2.6 to 5.2.8 using portupgrade command. But I’m getting following errors:

*** Error code 1

Stop in /usr/ports/lang/php5.
*** Error code 1

Stop in /usr/ports/lang/php5.
*** Error code 1

Stop in /usr/ports/lang/php5.
** Command failed [exit code 1]: /usr/bin/script -qa /tmp/portupgrade.42275.0 env UPGRADE_TOOL=portupgrade UPGRADE_PORT=php5-pcre-5.2.6_2 UPGRADE_PORT_VER=5.2.6_2 make reinstall
—> Restoring the old version
pkg_add: warning: package ‘php5-pcre-5.2.6_2’ requires ‘php5-5.2.8’, but ‘php5-pcre-5.2.6_2’ is installed
** Fix the installation problem and try again.
[Updating the pkgdb in /var/db/pkg … – 62 packages found (-0 +1) . done]
** Listing the failed packages (-:ignored / *:skipped / !:failed)
! lang/php5 (php5-pcre-5.2.6_2) (install error)

How do I fix this problem and upgrade php5-pcre?
[click to continue…]