Thursday, April 23, 2009

Installing snmpd

1. # sudo apt-get install snmpd
2. # sudo cp /etc/snmp/snmpd.conf /etc/snmp/snmpd.conf.bak
3. # snmpconf

-- a. Read in which: choose ALL (default) for configuration file
-- b. Select file to create: snmpd.conf
-- c. Choose 1: Trap Destinations
-- d. Choose 1: A SNMPv1 trap receiver
-- -- host name that should receive the trap: localhost [or any server in your network]
-- -- the community to be used in the trap sent: public [or whatever you want]
-- -- the port number the trap should be sent to: 161 [most used]
-- -- then type: finished
-- e. Choose 6: Access Control Setup
-- f. Choose 3: a SNMPv1/SNMPv2c read-only access community name or
-- 4: a SNMPv1/SNMPv2c read-write access community name
-- -- the community name to add read-only access for: public
-- -- the hostname or network address to accept this community name from [RETURN for all]: RETURN
-- -- the OID that this community should be restricted to [RETURN for no-restriction]: RETURN
-- -- then type: finished
-- g. finished

4. # sudo cp /etc/snmp/snmpd.conf /usr/share/snmp/snmpd.conf
5. # sudo vi /etc/default/snmpd

Change from:

# snmpd options (use syslog, close stdin/out/err).
SNMPDOPTS='-Lsd -Lf /dev/null -u snmp -I -smux -p /var/run/'


# snmpd options (use syslog, close stdin/out/err).
# SNMPDOPTS='-Lsd -Lf /dev/null -u snmp -I -smux -p /var/run/'
SNMPDOPTS='-Lsd -Lf /dev/null -u snmp -I -smux -p /var/run/ -c /etc/snmp/snmpd.conf'

6. restart snmpd:
# /etc/init.d/snmpd restart

7. try your snmp:
# snmpwalk -v [snmp version] -c [snmp community name] [host] -O a

if you receive any reply, then you done it! :)

Improving Font On Linux

Although this documentation specifically created for Ubuntu Linux, I have tried this method with both Ubuntu and Gentoo. The difference only on package (portage on Gentoo) and where the system put font files.

Fonts you need: artwiz-aleczapka, ttf-bitstream-vera and corefonts

1. artwiz-aleczapka and ttf-bitstream-vera
just Google these 2 fonts, and download it, then:
# tar xvjf artwiz-*.tar.bz2
# sudo mv artwiz-* /usr/share/fonts/X11/misc

# sudo dpkg -i ttf-bitstream-vera*.deb

2. corefonts
luckily, the corefonts package already available from ubuntu default repository, just execute:
# sudo apt-get install msttcorefonts

After done with all three fonts, run this:
# sudo fc-cache -f -v
# sudo dpkg-reconfigure fontconfig
# sudo dpkg-reconfigure fontconfig-config, and follow this options:
-- 1. native
-- 2. automatic
-- 3. yes

And you can add it to your /etc/X11/xorg.conf file (I put adding line in bold):

Section "Files"
FontPath "/usr/share/fonts/local"
FontPath "/usr/share/fonts/misc"
FontPath "/usr/share/fonts/Type1"
FontPath "/usr/share/fonts/TTF"
FontPath "/usr/share/fonts/75dpi"
FontPath "/usr/share/fonts/100dpi"
FontPath "/usr/share/fonts/X11/misc"
FontPath "/usr/share/fonts/truetype/ttf-bitstream-vera/"
FontPath "/usr/share/fonts/truetype/msttcorefonts/"
End Section

Upgrading Treo 750v to WM 6.1

Please do it at your own risk!

Upgrading to WM 6.1 will give you more snappy and powerful Treo 750v (at least that's what I felt :D ), especially with newer version of Mobile Office that have capabilities to open Microsoft Office version 2007 files. You feel it yourself later on :)

Nevertheless, you will loose Remote Desktop Client, Voice Command and Windows Live, because this WM 6.1 ROM is made to be thin.

What you need is blank miniSD (real one, not microSD with adapter), formatted with FAT32 (you can use card reader and format it from your PC):

1. Make sure you have this 3 file (I will add the link later):
a. CheetahUnlocker.rar
b. Treo750_OS5_2_19199WWE_STD.rar
c. Treo750Radio1.54.07.00.rar

2. Before running CheetahUnlocker, make sure you already:
a. Install Microsoft .NET Framework version 2.0 (
b. Close all other program (especially Anti Virus and Firewall) to avoid any disruption.
c. Plugin your USB cable and ActiveSync/ WMDC run smoothly

3. On CheetahUnlocker, just run Step 1 if your Treo already unlocked. Make sure it running smoothly and your Treo can do normal boot.

4. Prepare your already-formatted FAT32 miniSD, copy CHEEIMG.nbh (radio), put it in slot. While press and hold PTT (the one below up-down volume button), press "reset" button. Wait until the screen display "SUCCESS..."

5. After that, copy CHEEIMG.nbh (OS) to miniSD, put it in slot. And do the press-hold PTT and press "reset" button again. Wait till "SUCCESS..." appear.

6. Do soft reset!

7. Enjoy your more snappy and powerful Treo 750v :)

CLI Networking Tools on Windows XP

1. ARP: display and modifies the IP-to-Physical address translation table used by ARP
parameter: ARP -s inet_addr eth_addr [if_addr]
ARP -d inet_addr [if_addr]
ARP -a [inet_addr] [-N if_addr]

2. Netstat: display protocol statistic and current TCP/IP networking connection
parameter: netstat [-a] [-b] [-e] [-n] [-o] [-p proto] [-r] [-s] [-v] [interval]

3. Route: manipulates network routing tables
parameter: route [-f] [-p] [command[dest][MASK netmask][gateway]
[METRIC metric][IF interface]


4. Net User: create and modifies user accounts (only on server)
parameter: net user

5. Ipconfig: display IP addr, subnet mask, default gateway for each adapter bound to TCP/IP
parameter: ipconfig [/?|/all|/renew[adapter]|/release[adapter]|
/showclassid adapter|
/setclassid adapter [classid]]

6. Nbtstat: display protocol statistics & current TCP/IP connection using NBT (netBIOS over TCP/IP)
parameter: nbtstat [[-a RemoteName][-A IP addr][-C][-n][-r][-R][-RR][-s][-S][interval]]

7. Tracert
parameter: tracert [-d][-h max_hops][-j host-list][-w timeout] target

8. Ping
parameter: ping [-t][-a][-n count][-l size][-f][-i TTL][-v TOS]
[-r count][-s count][[-j host-list]|[-K host-list]][-w timeout] target

9. Telnet
parameter: telnet [-a][-e escape char][-f logfile][-l user][-t term][host[port]]

10. Netsh: interactive CLI utility, allow you to list & change network layer

11. Nslookup: tools for query DNS
> set type=any/mx/ns
> server [name]|[IP]

12. Pathping: combine ping and tracert
parameter: pathping [-g host-list][-h max_hops][-i addr][-n][-p period]
[-q num_queries][-w timeout]
[-P][-R][-T][-4][-6] target

Thursday, April 16, 2009

SSMTP - sending email from terminal

I just installing this application to sent email from command line/ terminal, it's call ssmtp. For ubuntu/ debian distro, you can trigger this command:
# sudo apt-get install ssmtp

After that you can edit /etc/ssmtp/ssmtp.conf:
AuthUser=[email address]
AuthPass=[email password]
mailhub=[smtp server]:[port]

And you can test it by typing this simple script:
$ echo "This is a test" | ssmtp -s "Test" [destination email address]

Wednesday, April 15, 2009

WM 6.5 for Treo 750

About two weeks ago, I had a chance to injecting Windows Mobile 6.5 (cooked ROM) to my old phone Palm Treo 750v :) Although it says that the specification of Palm Treo 750v is not qualified for this new OS from Microsoft, I just can't hold on to the temptation to see much more new features offered by it.

After a short time of trial, I decided to go back to Windows Mobile 6.1 (also a cooked ROM). It is not that I don't like WM 6.5, but it's more that this cooked ROM doesn't fit well to Palm device. It just lost all the simplicity and features that Palm devices have (I feel it when using my Palm Treo with WM 5.0, WM 6.0 and now WM 6.1). The major problem is I cannot use my Palm Treo without stylus on WM 6.5, I have to pull out my stylus everytime. That's never happened on WM 5.0 to 6.1 :D

Honestly, new Home UI, hexagon-like (without grid line) Program list, and excited feeling that my old gadget was able injected with this brand new OS is so great! Of course I'm still waiting that this cooked ROM will be available to be compatible with Palm device especially Palm Treo 750 :D Can't wait!

*For references and download this cooked ROM, you can go here