Ubuntu Linux, ubuntu desktop, Linux operating system, ubuntu guide

Archive for March, 2010

xorg.conf file create on ubuntu 9.10

by on Mar.15, 2010, under Ubuntu 9.10

One of the changes on the Ubuntu 9.10 is that xorg.conf is missing. The reason for this is that the configuration to be done on user level. The file xorg.conf will be in use only if it exists.

In order to generate xorg.conf you need to switch to one virtual console using the key combination CTRL + ALT + F1.

Now execute the following commands:

# sudo service gdm stop
This command will stop the X.
Now we need to generate the xorg.conf file:
# sudo Xorg -configure
This has generated the file in ~/xorg.conf.new.
We need to make the X using it so we have to put this file inside /etc/X11/
# sudo mv ~/xorg.conf.new /etc/X11/xorg.conf
After moving this file to the proper location you can start the X again and see what happens:
# sudo service gdm start


Leave a Comment more...

Snmp server setup and configuration on Rhel5 (step by step)

by on Mar.13, 2010, under RHEL5

First Download and Install following packages

net-snmp-5.3

net-snmp-utils

#rpm -vih net-snmp-5.3.1-24.el5_2.2.x86_64.rpm

#rpm -ivh net-snmp-utils-5.3.1-24.el5_2.2.x86_64.rpm

# cd /etc/snmp/
# cp -rp snmpd.conf snmpd.conf.bak

open the the snmpd.conf and add below entry at the end of the line
to set the Read Only community string to testuser

rocommunity testuser 127.0.0.1

Now, configure the SNMP services on each reboot
with the following chkconfig  command:

# chkconfig snmpd on

Restart SNMP to load the new configuration file:

# service snmpd restart

Test the localhost with the following two commands.

#snmpwalk -v 1 -c testuser localhost system
#snmpwalk -v 1 -c testuser localhost interface

after that i have checked the server , the port of
snmp and snmptrap 161,162 are running using nmap and netstat.

#nmap localhost
#netstat -an|grep 161|grep LISTEN

But the port is not listed there. After that I have added
following entry in /etc/snmp/snmpd.conf

agentaddress tcp:161

and restart the snmpd for listen the net-snmp port

netstat -an|grep 161|grep LISTEN
tcp        0      0 0.0.0.0:161    0.0.0.0:*         LISTEN

nmap localhost

Starting Nmap 4.11 ( http://www.insecure.org/nmap/ ) at 2010-03-13 14:59 IST
Interesting ports on localhost.localdomain (127.0.0.1):
Not shown: 1671 closed ports
PORT    STATE SERVICE
22/tcp  open  ssh
25/tcp  open  smtp
80/tcp  open  http
111/tcp open  rpcbind
161/tcp open  snmp
199/tcp open  smux
443/tcp open  https
631/tcp open  ipp
808/tcp open  ccproxy-http

2 Comments more...

Looking for something?

Use the form below to search the site:

Still not finding what you're looking for? Drop a comment on a post or contact us so we can take care of it!