Archive for September, 2011

Network Bandwidth & Traffic Monitoring

Posted in FreeBSD on September 29, 2011 by kiranopatil

Go through the steps to install darkstat package on FreeBSD

# cd /usr/ports/net-mgmt/darkstat

# make # make install clean

Enable darkstat at boot time add the following lines to

/etc/rc.conf: darkstat_enable=”YES”

darkstat_interface=”em0″

Change the darkstat_interface to point your network interface Add the following lines to /etc/rc.conf:

darkstat_dir=”/var/run/darkstat”

darkstat_pidname=”darkstat.pid”

darkstat_dropuser=”nobody”

darkstat_flags=””

Now the darkstat installed and configured let’s start it:

# /usr/local/etc/rc.d/darkstat start

To check darkstat daemon status:

# /usr/local/etc/rc.d/darkstat status

By Default it works on 667 port, to check the Network traffic

Here you go

http://localhost:667

Vnc Configuration For Linux

Posted in Linux on September 29, 2011 by kiranopatil

#Yum install vnc-server

Here are my typical steps

1. install vncserver

2. modify /etc/sysconfig/vncservers

——VNCSERVERS=”1:user1″

——VNCSERVERARGS[1]=”-geometry 1024×768″

3. logon as user1

4. run vncpasswd

5. logon as root

6. service vncserver start

7. modify /home/user1/.vnc/xstart and uncomment the following two lines

————unset SESSION_MANAGER

————exec /etc/X11/xinit/xinitrc

8. service vncserver restart

9. chkconfig vncserver on

10. the firewall shouldn’t even be enabled! I turned it off with:

/etc/init.d/iptables stop

chkconfig iptables off will make a persistent change.

 

Enable or Disable Root Login for SSH

Posted in FreeBSD on September 20, 2011 by kiranopatil

Enable or Disable Root Login for SSH

cd/etc/ssh

to enable root login

vi sshd_config

PermitRootLogin yes

to disable root login

vi sshd_config

PermitRootLogin no

After you do the changes, save and exit
Then restart sshd service
/etc/rc.d/sshd restart

On Linux

/etc/init.d/sshd restart

Installing GNOME in FreeBSD

Posted in FreeBSD on September 20, 2011 by kiranopatil

Installing GNOME in FreeBSD
Here is the few steps must follow to install GNOME on Freebsd.
I. Install required packages for gnome
# pkg_add -v -r xorg
# pkg_add -v -r gnome2
II. Add these lines in
/etc/rc.conf:
dbus_enable=”YES”
gnome_enable=”YES”
III. add this line in /etc/fstab:
proc /proc procfs rw 0 0
IV. Reboot.