Category Archives: Work

Work

Read chm file in opensuse

zypper camo into rescue when I need to read chm file in opensuse :

# zypper install chmsee

Reading installed packages…

The following NEW packages are going to be installed:
chmsee chmlib

Overall download size: 136.0 K. After the operation, additional 295.0 K will be used.
Continue? [YES/no]: y
Downloading package chmlib-0.39-101.9.i586 (1/2), 30.0 K (65.0 K unpacked)
Downloading: chmlib-0.39-101.9.i586.rpm [done (2.8 K/s)]
Installing: chmlib-0.39-101.9 [done]
Downloading package chmsee-1.0.1-1.13.i586 (2/2), 106.0 K (230.0 K unpacked)
Downloading: chmsee-1.0.1-1.13.i586.rpm [done (2.2 K/s)]
Installing: chmsee-1.0.1-1.13 [done]

chmsee, ready to serve me icon smile Read chm file in opensuse

Work

/usr/local/sbin/mysqlblasy.pl Can’t locate Archive/Zip.pm in @INC

# /usr/local/sbin/mysqlblasy.pl

Can’t locate Archive/Zip.pm in @INC (@INC contains:
/usr/local/lib/perl5/5.8.9/

BSDPAN
/usr/local/lib/perl5/site_perl/5.8.9/mach
/usr/local/lib/perl5/site_perl/5.8.9 /usr/local/lib/perl5/5.8.9/mach
/usr/local/lib/perl5/5.8.9 .) at /usr/local/sbin/mysqlblasy.pl line 1340.
BEGIN failed–compilation aborted at /usr/local/sbin/mysqlblasy.pl line 1340.
# cd /usr/ports/archivers/p5-Archive-Zip

# make install

# rehash

# /usr/local/sbin/mysqlblasy.pl
Can’t locate IO/Compress/Base/Common.pm in @INC (@INC contains:
/usr/local/lib/perl5/5.8.9/BSDPAN
/usr/local/lib/perl5/site_perl/5.8.9/mach
/usr/local/lib/perl5/site_perl/5.8.9 /usr/local/lib/perl5/5.8.9/mach
/usr/local/lib/perl5/5.8.9 .) at
/usr/local/lib/perl5/site_perl/5.8.9/Compress/Zlib.pm line 11.
BEGIN failed–compilation aborted at
/usr/local/lib/perl5/site_perl/5.8.9/Compress/Zlib.pm line 11.
Compilation failed in require at
/usr/local/lib/perl5/site_perl/5.8.9/Archive/Zip.pm line 11.
BEGIN failed–compilation aborted at
/usr/local/lib/perl5/site_perl/5.8.9/Archive/Zip.pm line 11.
Compilation failed in require at /usr/local/sbin/mysqlblasy.pl line 1340.
BEGIN failed–compilation aborted at /usr/local/sbin/mysqlblasy.pl line 1340.
# /usr/ports/archivers/p5-IO-Compress-Base

# make install

===>  Installing for p5-IO-Compress-Base-2.015
===>   p5-IO-Compress-Base-2.015 depends on file: /usr/local/bin/perl5.8.9
- found
===>   Generating temporary packing list
===>  Checking if archivers/p5-IO-Compress-Base already installed
===>   p5-IO-Compress-Base-2.015 is already installed
You may wish to “make deinstall” and install this port again
by “make reinstall” to upgrade it properly.
If you really wish to overwrite the old port of
archivers/p5-IO-Compress-Base
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/archivers/p5-IO-Compress-Base.

#make FORCE_PKG_REGISTER=1 install

# rehash

Work

Install download manager for opensuse

Using zypper as front end tool for install download 4 x aka d4x.

# zypper install d4x
Reading installed packages…

The following NEW packages are going to be installed:
d4x-lang d4x

Overall download size: 1.2 M. After the operation, additional 2.8 M will be used.
Continue? [YES/no]: y
Downloading package d4x-2.5.7.1-70.144.i586 (1/2), 1.0 M (2.1 M unpacked)
Downloading: d4x-2.5.7.1-70.144.i586.rpm [done (29.3 K/s)]
Installing: d4x-2.5.7.1-70.144 [done]
Downloading package d4x-lang-2.5.7.1-70.144.i586 (2/2), 162.0 K (702.0 K unpacked)
Downloading: d4x-lang-2.5.7.1-70.144.i586.rpm [done (7.7 K/s)]
Installing: d4x-lang-2.5.7.1-70.144 [done]
#

Yup, my OpenSuse has d4x for sure icon wink Install download manager for opensuse

Work

Step by step wormanup, kido for Win XP

Our school get annoying worm which cause slow internet connection and make it dificult to access major anti virus website. Finally we found out the name :

  • Worm.Conficker [PCTools]
  • W32.Downadup [Symantec]
  • Net-Worm.Win32.Kido.ih [Kaspersky Lab]
  • W32/Conficker.worm [McAfee]
  • W32/Confick-A [Sophos]
  • Worm:Win32/Conficker.A [Microsoft]
  • Worm.Win32.Conficker [Ikarus]

Scan Infected computers

To detect it from network we use mikrotik tools ‘torch’ and pointing it to port 445 :

445 Step by step wormanup, kido for Win XP

Source address of infected computer easily found using torch.

read more »

Work

nginx proxy and wordpress multi user

WordPress multi user get a for serving blog experince to our student.

The architecture is :

Firewall -> FreeBSD Box -> Jail Box

A lot of jails (around 14) put inside FreeBSD Box to server student with different purpose. One of them is for wordpress muti user.

# jls

JID  IP Address      Hostname                      Path
14  172.88.0.14     blog.digitalfusi.com           /data2/jails/blogcom
13  172.88.0.12     db.digitalfusi.com             /data2/jails/db
12  172.88.0.13     demo.digitalfusi.com           /data2/jails/demoint
11  172.88.0.11     outside.digitalfusi.com        /data2/jails/outside
10  172.88.0.10     mail.rasyid.net           /data/jails/mailserver
9  172.88.0.9      sandbox.digitalfusi.com        /data2/jails/sandbox
8  172.88.0.7      blog.rasyid.net           /data2/jails/blog
7  172.88.0.8      demo2.digitalfusi.com          /data2/jails/demo2
6  172.88.0.6      palembang.digitalfusi.com      /data/jails/palembang
5  172.88.0.5      jambi.digitalfusi.com          /data/jails/jambi
4  172.88.0.4      lahat.digitalfusi.com          /data/jails/lahat
3  172.88.0.3      prabumulih.digitalfusi.com     /data/jails/prabumulih
2  172.88.0.2      linggau.digitalfusi.com        /data/jails/linggau
1  172.88.0.1      baturaja.digitalfusi.com       /data/jails/baturaja

To establish connection to jail box I use this rules in nginx.conf :

For serving *.blog.rasyid.net for end user.

server {
listen 80;
server_name www.blog.rasyid.net   .blog.rasyid.net;
location / {
proxy_pass http://172.88.0.7;
proxy_set_header Host $host;
}
}

I use nginx :

# pkg_info | grep nginx
nginx-devel-0.7.41  Robust and small WWW server

Great, I love nginx icon smile nginx proxy and wordpress multi user

Work

You need to rebuild jls(8) and to use the new features jail(8), jexec(8) and cpuset(1) with a new kernel

Wow, that message is shown when I check UPDATING after latest csup to STABLE.

20090207:
Multi-IPv4/v6/no-IP jail support was merged to STABLE.
You need to rebuild jls(8) and to use the new features
jail(8), jexec(8) and cpuset(1) with a new kernel.
__FreeBSD_version was bumped to 701103.

Try to do that :

# cd /usr/src/usr.sbin/jls/

# make clean && make depend && make && make install
rm -f jls jls.o jls.8.gz jls.8.cat.gz
rm -f .depend
mkdep -f .depend -a    -DSUPPORT_OLD_XPRISON /usr/src/usr.sbin/jls/jls.c
echo jls: /usr/lib/libc.a  >> .depend
cc -O2 -fno-strict-aliasing -pipe  -DSUPPORT_OLD_XPRISON -Wsystem-headers -Wall -Wno-format-y2k -W -Wno-unused-parameter -Wstrict-prototypes -Wmissing-prototypes -Wpointer-arith -Wreturn-type -Wcast-qual -Wwrite-strings -Wswitch -Wshadow -Wcast-align -Wunused-parameter -Wchar-subscripts -Winline -Wnested-externs -Wredundant-decls -Wno-pointer-sign -c /usr/src/usr.sbin/jls/jls.c
/usr/src/usr.sbin/jls/jls.c: In function ‘print_xprison_v1′:
/usr/src/usr.sbin/jls/jls.c:56: error: invalid application of ‘sizeof’ to incomplete type ‘struct xprison_v1′
/usr/src/usr.sbin/jls/jls.c:62: error: dereferencing pointer to incomplete type
/usr/src/usr.sbin/jls/jls.c:62: error: dereferencing pointer to incomplete type
/usr/src/usr.sbin/jls/jls.c:62: error: dereferencing pointer to incomplete type
/usr/src/usr.sbin/jls/jls.c:66: error: dereferencing pointer to incomplete type
/usr/src/usr.sbin/jls/jls.c:70: error: dereferencing pointer to incomplete type
/usr/src/usr.sbin/jls/jls.c:70: error: dereferencing pointer to incomplete type
/usr/src/usr.sbin/jls/jls.c:70: error: dereferencing pointer to incomplete type
/usr/src/usr.sbin/jls/jls.c:73: error: invalid use of undefined type ‘struct xprison_v1′
/usr/src/usr.sbin/jls/jls.c: In function ‘print_xprison_v3′:
/usr/src/usr.sbin/jls/jls.c:92: error: ‘struct xprison’ has no member named ‘pr_state’
/usr/src/usr.sbin/jls/jls.c:92: error: ‘struct xprison’ has no member named ‘pr_state’
/usr/src/usr.sbin/jls/jls.c:93: error: ‘prison_states’ undeclared (first use in this function)
/usr/src/usr.sbin/jls/jls.c:93: error: (Each undeclared identifier is reported only once
/usr/src/usr.sbin/jls/jls.c:93: error: for each function it appears in.)
/usr/src/usr.sbin/jls/jls.c:93: error: invalid application of ‘sizeof’ to incomplete type ‘struct prison_state’
/usr/src/usr.sbin/jls/jls.c:96: error: ‘struct xprison’ has no member named ‘pr_state’
/usr/src/usr.sbin/jls/jls.c:101: error: ‘struct xprison’ has no member named ‘pr_ip4s’
/usr/src/usr.sbin/jls/jls.c:104: error: ‘struct xprison’ has no member named ‘pr_ip6s’
/usr/src/usr.sbin/jls/jls.c:117: error: ‘struct xprison’ has no member named ‘pr_name’
/usr/src/usr.sbin/jls/jls.c:117: error: ‘struct xprison’ has no member named ‘pr_name’
/usr/src/usr.sbin/jls/jls.c:122: error: ‘struct xprison’ has no member named ‘pr_cpusetid’
/usr/src/usr.sbin/jls/jls.c:127: error: ‘struct xprison’ has no member named ‘pr_ip4s’
/usr/src/usr.sbin/jls/jls.c:131: error: ‘struct xprison’ has no member named ‘pr_ip4s’
/usr/src/usr.sbin/jls/jls.c:139: error: ‘struct xprison’ has no member named ‘pr_ip6s’
/usr/src/usr.sbin/jls/jls.c:142: error: ‘struct xprison’ has no member named ‘pr_ip6s’
*** Error code 1

Whoaa….

Checking Version

# uname -v
FreeBSD 7.1-STABLE #0: Wed Feb  4 10:20:35 WIT 2009

I see, I’ll need new kernel icon smile You need to rebuild jls(8) and to use the new features jail(8), jexec(8) and cpuset(1) with a new kernel

Unix Work

Install ocsinventory-ng and glpi on FreeBSD

Recent search for finding solution for inventory computer in the school lead me to interesting url :

http://www.ocsinventory-ng.org/

From their architecture page :

“OCS Inventory NG uses an agent, which runs the inventory on client computers, and a management server, which centralizes inventory results, allow viewing inventory results and creating deployment packages.”

arsitektur ocs Install ocsinventory ng and glpi on FreeBSD

Very interesting software. After think a little bit I decide to try to install it on one of FreeBSD jail.

Here’s the steps :

1. Install database server

cd /usr/ports/databases/mysql50-server/ && make install

2. Install ocsinventory-ng

cd /usr/ports/net-mgmt/ocsinventory-ng/ && make install

3. Install logrotate

cd /usr/ports/sysutils/logrotate && make install

mkdir /etc/logrotate.d

mkdir /etc/logrotate.d/ocsinventory-NG

cd /usr/ports/net-mgmt/ocsinventory-ng/work/OCSNG_LINUX_SERVER_1.01

./setup.sh

That step will initiate checking screen.

read more »

Work

Standard operating procedure for clicker, downadup etc

I don’t know what kind of things that entering our network that behave strangely.
Fill up all communication line and make Internet connection plus print sharing don’t work as usually.

After looking around solution out there, I came up with my standard operating procedure :

1. Install Removal tools (f-downadup.zip)

This tool will clean all variant : clicker, downadup, recycler that might already stay in your computer.

2. Install USB Firewall (USB_FW.zip)

This tool will deactivate autorun.inf . Source of this problem.

3. Patch your windows, check your windows first:

- For Windows XP SP2 or SP3, install WindowsXP-KB958644-x86-ENU.exe
- For Windows Vista 32 bit, install Windows6.0-KB958644-x86.msu
- For Vista 64 bit, install Windows6.0-KB958644-x64.msu

I’ll update this post if I have found other interesting solution icon smile Standard operating procedure for clicker, downadup etc

Step By Step Unix Work

Install havp (HTTP Antivirus Proxy) in FreeBSD 7.1

Many of us still using internet explorer as main browser due to many factor, but much more related to our worksheet display. It’s in progress to make it more compliance to other browser such firefox and opera.

Another problem came up when spyware and virus spread more easier using IE. To prevent it from spread to other host I decide to install havp in junction with installed squid.

Squid already run in port 3128 and I want to install havp in recent FreeBSD 7.1 RC1

Here’s my steps :

1.  Update ports to latest version using csup and install havp

cd /usr/ports/www/havp && make install

2. Install clamav

/usr/ports/security/clamav && make install

3. Edit rc.conf, add these lines :

clamav_freshclam_enable=”YES”

clamav_clamd_enable=”YES”

havp_enable=”YES”

read more »

Work

Recover Your Windows 98, NT, XP, Vista Password

Using same password for many computer isn’t save but remembering too many password can be lead to disaster. Can’t login to our desktop icon smile Recover Your Windows 98, NT, XP, Vista Password

Some utility that exist on internet that might be helpfull to help you to recover your windows xp password or create a new one :

But the only tool that I every try myself is 0phrack, follow this guide carefully and I can see my password icon smile Recover Your Windows 98, NT, XP, Vista Password

Unix Work

Detect RB44GV on FreeBSD 7

New ethernet card we order arrived yesterday, its RB44GV from mikrotik. I just curious to see if its work with my FreeBSD box icon smile Detect RB44GV on FreeBSD 7

materibasuki# ifconfig -a
em0: flags=8843<UP,BROADCAST,RUNNING,SIMPLEX,MULTICAST> metric 0 mtu 1500
options=19b<RXCSUM,TXCSUM,VLAN_MTU,VLAN_HWTAGGING,VLAN_HWCSUM,TSO4>
ether 00:1a:92:b3:db:c2
inet 172.88.1.7 netmask 0xfffff000 broadcast 172.88.15.255
media: Ethernet autoselect (1000baseTX <full-duplex>)
status: active
em1: flags=8802<BROADCAST,SIMPLEX,MULTICAST> metric 0 mtu 1500
options=19b<RXCSUM,TXCSUM,VLAN_MTU,VLAN_HWTAGGING,VLAN_HWCSUM,TSO4>
ether 00:1a:92:b3:db:c3
media: Ethernet autoselect
status: no carrier
vge0: flags=8802<BROADCAST,SIMPLEX,MULTICAST> metric 0 mtu 1500
options=1b<RXCSUM,TXCSUM,VLAN_MTU,VLAN_HWTAGGING>
ether 00:0c:42:1a:26:48
media: Ethernet autoselect (none)
status: no carrier
vge1: flags=8802<BROADCAST,SIMPLEX,MULTICAST> metric 0 mtu 1500
options=1b<RXCSUM,TXCSUM,VLAN_MTU,VLAN_HWTAGGING>
ether 00:0c:42:1a:26:49
media: Ethernet autoselect (none)
status: no carrier
vge2: flags=8802<BROADCAST,SIMPLEX,MULTICAST> metric 0 mtu 1500
options=1b<RXCSUM,TXCSUM,VLAN_MTU,VLAN_HWTAGGING>
ether 00:0c:42:1a:26:4a
media: Ethernet autoselect (none)
status: no carrier
vge3: flags=8802<BROADCAST,SIMPLEX,MULTICAST> metric 0 mtu 1500
options=1b<RXCSUM,TXCSUM,VLAN_MTU,VLAN_HWTAGGING>
ether 00:0c:42:1a:26:4b
media: Ethernet autoselect (none)
status: no carrier
plip0: flags=108810<POINTOPOINT,SIMPLEX,MULTICAST,NEEDSGIANT> metric 0 mtu 1500
lo0: flags=8049<UP,LOOPBACK,RUNNING,MULTICAST> metric 0 mtu 16384
inet6 fe80::1%lo0 prefixlen 64 scopeid 0×8
inet6 ::1 prefixlen 128
inet 127.0.0.1 netmask 0xff000000

Another question from my friend. Is it real gigabit card?

Hmmm, I dunno but after few moment :

edp# cd /sys/i386/conf/
edp# ls
.cvsignore GENERIC MAC NOTES XBOX
DEFAULTS GENERIC.hints Makefile PAE

edp# cat GENERIC | grep vge
device vge # VIA VT612x gigabit Ethernet
edp#

Yes, its gigabit ethernet card icon wink Detect RB44GV on FreeBSD 7

rb44gv Detect RB44GV on FreeBSD 7