Tuesday, June 15, 2010

Concurrent Remote Desktop Connection On XP SP2 With Single Login

All you have to do is go to this website, then download the file specifically made for your system, then you'll enable two or more concurrent remote desktop connection to Windows XP Pro SP2 and SP3, as long as you have "fast user switching" active and you're not in a domain.

I need to add something here. This method allow you to be able to do remote desktop connection concurrently using different user account. If you want to use the same user account to concurrently remote desktop, that's another method and I'm not include it in this post :)

Upgrade From 8.04LTS To 10.04LTS Server Edition

This was taken from here, do it for your own risks :)
  1. Install update-manager-core if it is not already installed:
    sudo apt-get install update-manager-core
  2. edit /etc/update-manager/release-upgrades and set Prompt=lts
     
  3. Launch the upgrade tool:
    sudo do-release-upgrade --proposed
  4. Follow the on-screen instructions.
  5. At the end of the upgrade process you will be required to restart the server in order to boot into the new kernel. If you do not have access to the console of the system you are upgrading, you may need to edit /boot/grub/menu.lst and change the default boot kernel to the newly installed 10.04 kernel. If this step is not performed your server may attempt to boot into the 8.04 LTS kernel and will hang.

Tuesday, June 8, 2010

Simple Way to Use WMWifiRouter

Although Windows Mobile already provide Internet Sharing as the feature to share your internet connection as my previous post, sometimes people would like to add more capabilities than just USB and Bluetooth connection. WMWifiRouter providing option to:
1. share Cellphone connection (GPRS, EDGE, 3G, HSDPA) through Wi-Fi, USB, Bluetooh)
2. share Wi-Fi through USB
3. share USB connection through Wi-Fi.

The main page view, press Options -> Configuration -> Wi-Fi network

Follow the steps, Dynamic (Safer) and Ad-hoc (Advised) is the default. You can customize as you need

Type in the AP name and choose WEP/Open (Advised)

Type in WEP encryption key and encryption key index

Choose Wi-Fi channel to use from the avaibility 1 - 13

And you're done! :)

Friday, June 4, 2010

Internet Sharing on Windows Mobile

Sharing internet connection (GPRS, EDGE, 3G, HSDPA) in Windows Mobile platform is never been easier with Internet Sharing application that already include since Windows mobile 6.0. The option available is to connect PC or notebook/ netbook through USB cable (only working on Windows Platform) and Bluetooth PAN (working on all platforms Windows/ Mac/ Linux). You only need to choose PC Connection type, Network Connection you want to use, then click on 'connect' button. And you're done! :)

Wednesday, June 2, 2010

RRDTool & snmpd (net-snmp) on Linux, Windows and Mac

crucial dependencies for Cacti and Zenoss

* snmpd (net-snmp)
linux: snmpd, snmpwalk, snmp

on Ubuntu:
$ sudo apt-get install snmpd snmp
$ sudo vi /etc/snmp/snmpd.conf (configuration file for net-snmp snmp agent)
snmpd.conf#---------------------------------------------------------------
######################################
# Map the security name/networks into a community name.
# We will use the security names to create access groups
######################################

# sec.name               source                      community

com2sec my_sn1     localhost                   my_comnt
com2sec my_sn2     192.168.10.0/24     my_comnt

####################################
# Associate the security name (network/community) to the
# access groups, while indicating the snmp protocol version
####################################

# sec.model sec.name
group MyROGroup v1 my_sn1
group MyROGroup v2c my_sn1
group MyROGroup v1 my_sn2
group MyROGroup v2c my_sn2


group MyRWGroup v1
my_sn1
group MyRWGroup v2c my_sn1
group MyRWGroup v1 my_sn2
group MyRWGroup v2c my_sn2

#######################################
# Create the views on to which the access group will have access,
# we can define these views either by inclusion or exclusion.
# inclusion - you access only that branch of the mib tree
# exclusion - you access all the branches except that one
#######################################

# incl/excl subtree mask (opcional)
view my_vw1 included .1 80
view my_vw2 included .iso.org.dod.internet.mgmt.mib-2.system

#######################################
# Finaly associate the access groups to the views and give them
# read/write access to the views.
#######################################

# context sec.model sec.level match read write notif
access MyROGroup "" any noauth exact my_vw1 none none
access MyRWGroup "" any noauth exact my_vw2 my_vw2 none
# -----------------------------------------------------------------------------


$ sudo vi /etc/default/snmpd

find the line:

SNMPDOPTS='-Lsd -Lf /dev/null -u snmp -I -smux -p /var/run/snmpd.pid 127.0.0.1'
and change it to:

SNMPDOPTS='-Lsd -Lf /dev/null -u snmp -I -smux -p /var/run/snmpd.pid'


win: net-snmp
1. Download the binary of your windows version then install. Usually it will install to c:\usr
2. To check the installation, run this command from command prompt
c:\usr\bin>snmpd -v

3. Run snmp-agent as service
c:\usr>registeragent.bat


4. Create snmpd.conf file on c:\usr\etc\snmp\ and fill with this configuration:

## Of the following Net-SNMP agent features
## NONE are supported on Net-SNMP-5.1.1 Win32 platforms
## Process checks “proc” config token
## Executable scripts “exec” config token
## Disk checks “disk” config token
## Load average checks “load” config token
## Extensible sections “exec” config token with shelltest
## Pass-through control “pass” config token

#############################################################
#
# EXAMPLE.conf:
# An example configuration file for configuring the ucd-snmp snmpd agent.
#
#############################################################
#
# This file is intended to only be an example. If, however, you want
# to use it, it should be placed in c:/usr-mingw/etc/share/snmp/snmpd.conf.
# When the snmpd agent starts up, this is where it will look for it.
#
# You might be interested in generating your own snmpd.conf file using
# the “snmpconf” program (perl script) instead. It’s a nice menu
# based interface to writing well commented configuration files. Try it!
#
# Note: This file is automatically generated from EXAMPLE.conf.def.
# Do NOT read the EXAMPLE.conf.def file! Instead, after you have run
# configure & make, and then make sure you read the EXAMPLE.conf file
# instead, as it will tailor itself to your configuration.

# All lines beginning with a ‘#’ are comments and are intended for you
# to read. All other lines are configuration commands for the agent.

#
# PLEASE: read the snmpd.conf(5) manual page as well!
#

####################################################################
# Access Control
####################################################################

# YOU SHOULD CHANGE THE “COMMUNITY” TOKEN BELOW TO A NEW KEYWORD ONLY
# KNOWN AT YOUR SITE. YOU *MUST* CHANGE THE NETWORK TOKEN BELOW TO
# SOMETHING REFLECTING YOUR LOCAL NETWORK ADDRESS SPACE.

# By far, the most common question I get about the agent is “why won’t
# it work?”, when really it should be “how do I configure the agent to
# allow me to access it?”
#
# By default, the agent responds to the “public” community for read
# only access, if run out of the box without any configuration file in
# place. The following examples show you other ways of configuring
# the agent so that you can change the community names, and give
# yourself write access as well.
#
# The following lines change the access permissions of the agent so
# that the COMMUNITY string provides read-only access to your entire
# NETWORK (EG: 10.10.10.0/24), and read/write access to only the
# localhost (127.0.0.1, not its real ipaddress).
#
# For more information, read the FAQ as well as the snmpd.conf(5)
# manual page.

####
# First, map the community name (COMMUNITY) into a security name
# (local and mynetwork, depending on where the request is coming
# from):

# sec.name source community —-> **edit this part to match your requirement** com2sec local localhost [comm name]
com2sec mynetwork 192.168.13.0/24 [comm name]

####
# Second, map the security names into group names:

# sec.model sec.name
group MyRWGroup v1 local
group MyRWGroup v2c local
group MyRWGroup usm local
group MyROGroup v1 mynetwork
group MyROGroup v2c mynetwork
group MyROGroup usm mynetwork

####
# Third, create a view for us to let the groups have rights to:

# incl/excl subtree mask
view all included .1 80

####
# Finally, grant the 2 groups access to the 1 view with different
# write permissions:

# context sec.model sec.level match read write notif
access MyROGroup “” any noauth exact all none none
access MyRWGroup “” any noauth exact all all none

# —————————————————————–
##################################################################
# System contact information
#

# It is also possible to set the sysContact and sysLocation system
# variables through the snmpd.conf file. **PLEASE NOTE** that setting
# the value of these objects here makes these objects READ-ONLY
# (regardless of any access control settings). Any attempt to set the
# value of an object whose value is given here will fail with an error
# status of notWritable.

syslocation Solo.
syscontact Tunggul

# Example output of snmpwalk:
# % snmpwalk -v 1 -c public localhost system
# system.sysDescr.0 = “Windows NT 2000 SP4″
# system.sysObjectID.0 = OID: enterprises.ucdavis.ucdSnmpAgent.win32
# system.sysUpTime.0 = Timeticks: (595637548) 68 days, 22:32:55
# system.sysContact.0 = “Me
# system.sysName.0 = “name”
# system.sysLocation.0 = “Right here, right now.”
# system.sysServices.0 = 72

# —————————————————————
#################################################################
# Subagent control
#

# The agent can support subagents using a number of extension mechanisms.
# From the 4.2.1 release, AgentX support is being compiled in by default.
# However, this is still experimental code, so should not be used on
# critical production systems.
# Please see the file README.agentx for more details.
#
# If having read, marked, learnt and inwardly digested this information,
# you decide that you do wish to make use of this mechanism, simply
# uncomment the following directive.
#
# master agentx
#
# I repeat - this is *NOT* regarded as suitable for front-line production
# systems, though it is probably stable enough for day-to-day use.
# Probably.
#
# No refunds will be given.

############################################################
# Further Information
#
# See the snmpd.conf manual page, and the output of “snmpd -H”.
# MUCH more can be done with the snmpd.conf than is shown as an
# example here.



mac: net-snmp - through macports

Details installation and configuration on Mac OS X are on separate post.


* RRDTool
linux: rrdtool

win
We all have an impressions that it is very difficult to install RRDTool on a Windows Server (including Windows XP, Windows Vista, Windows NT and Windows 2003/ 2008 Server) but that is not the case. There are few very Simple Steps to install RRDTool:
1. Create a Folder on any of your drives with name RRDTool.
2. Download the latest version of RRDTool from here
3. Extract the ZIP in RRDTool folder.
4. Open START >> Run >> type cmd to open Windows command prompt.
5. Type following command on prompt to use the RRDTool.
cd C:\RRDTool\

mac: rrdtool - through macports

Tuesday, June 1, 2010

Nimbuzz On iChat

Actually the concept is similar to my other posting about using Nimbuzz account through Chatopus in PalmOS. First, you have to create nimbuzz account, then all you need is setting up the nimbuzz parameter in iChat.

Create new account in iChat:
Account Type: Jabber Account
Account Name: [your-username]@nimbuzz.com
Password: [your-password]
Server Options
Server: 194.229.27.7
Port: 5222


then, click 'Done'. After that, check 'Automatically discover server & port' in Server Settings under Account preferences.


And now you can chat with whatever protocol you've registering in your nimbuzz account (even if iChat doesn't support it).. Yahoo Messenger, Live Messenger and Facebook Chat :))