Posts

Showing posts from February, 2014

How to configure the VNC server in Linux and Centos

How to configure the VNC server in Linux and Centos? We can configure the VNC server and can be automatically started when the system boots or restart. Before this service we will have to work with some commands and script needs to be done. Firstly, need to edit the   /etc/sysconfig/vncservers file to include the users in this file you want to run VNC servers . Append a line to that file as follows: Step 1 :-   VNCSERVERS="N:user" Where N is the number of users want to use the VNC server   sessions to run on where the user is the username you want the server to run as. Here below are the example for the same VNCSERVERS="N:user1 Y:user2" Example :- VNCSERVERS="1:root 2:root" Step 2 :- $ vncpasswd    Password:     Verify: If you want to have the full Linux environment, create   ~username/.vnc/xstartup and include the following lines: Step 3 :- #!/bin/bash unset SESSION_MANAGER exec /etc/X11/xinit/xinitrc

Monitoring of Linux Server & Asterisk Server.

Image
MONITORING OF   LINUX SYSTEM [1 ] top : top is a command that neatly list all processes with valuable info sort by CPU and memory usage. 'top' provides lots of information on the processes running, including the percentage of the cpu and the memory being consumed by that process, who 'owns' the process and it's pid (Process ID), it also shows the output of 'uptime' and a summary of memory usage, similar to 'free'. The output of 'top' is full screen, and refreshes itself frequently (or at user definable intervals). #top [2] To see last shut down time Of RHEL System: #last -x|grep shutdown | head -1 [3 ] To see last reboot history of RHEL System. #last reboot [4] W command is use to see the Login Linux user time. It shows the uptime of the linux system #w #w root [5] netstat -tulpn command to display listening sockets/ports and associated program. #netstat -tulpn