Tuesday, March 15, 2016

Splunk Installation on centOS minimal server


CentOS setup :


1. Download CentOS minimal from mirrors at
    http://isoredirect.centos.org/centos/7/isos/x86_64/CentOS-7-x86_64-Minimal-1511.iso

2. Perform regular installation using iso file.
3. Setup network commands tools by executing : 
    yum install net-tool

4. Update all the packages using command  : 
    yum update

5. Download splunk rpm from below site. You may need to create account .
    https://www.splunk.com/en_us/download/splunk-enterprise.html
6. Install splunk by executing command : 
    rpm -ivh

7. This package will be installed at path /opt/splunk
8. Start splunk by executing below command  
    /opt/splunk/bin/splunk start
9. Accept the License and type y --> this is only for the first time.
10. Execute the below command to open port 8000 so that splunk can be accessed from outside
      firewall-cmd --zone=public --add-port=80/tcp --permanent
      firewall-cmd --reload
11. Verify the setting :
       iptables-save | grep 80

      Output should match like : 
     -A IN_public_allow -p tcp -m tcp --dport 8000 -m conntrack --ctstate NEW -j ACCEPT

12. Try accessing splunk console URL from outside


Tuesday, March 24, 2009

Installation of Cygwin

Cygwin is a Linux-like environment for Windows. It consists of two parts:
  • A DLL (cygwin1.dll) which acts as a Linux API emulation layer providing substantial Linux API functionality.
  • A collection of tools which provide Linux look and feel.
The Cygwin DLL currently works with all recent, commercially released x86 32 bit and 64 bit versions of Windows, with the exception of Windows CE.

Installation :

1. Download the cygwin openssh installer from http://www.cygwin.com
2. Start the insttalation process


3. Select default "Install from Internet" option and click Next.


4. Give the path of the directory where the software is to be installed. By default it comes "C:\cygwin".
Select options "All users" & "Unix/binary" as shown below.



5. Specify the path to download the binaries.
Here it is "C:\Documents and Settings\Administrator\Desktop"


6. Specify the internet setting as shown below.



7. Select mirror site to download the binaries nearest to your location.



8. Installation Setup :)



9. select the openssh packages as shown below and othe required packages from list.


10. Click next to initiate the installation.



11. Installation is over. Click Ok to finish the installation.
Post Installation process :

12. Double click the cygwin icon on the desktop & execute the following commands.

13. Right click My Computer, Properties, Advanced, Environment Variables. Select the Path variable and click the "Edit" button:
append ;c:\cygwin\bin to the end of the existing variable string.
Add a variable as “cygwin” with values “ntsec tty”

14. Run ssh-host-config
When the script asks you about "privilege separation", answer yes
When the script asks about "create local user sshd", answer yes
When the script asks you about "install sshd as a service", answer yes
When the script stops and asks you for "CYGWIN=" your answer is ntsec tty

15. start the sshd service
net start sshd
or
cygrunsrv --start sshd

16. Make sure every Windows user has a password set, if not, go to Control Panel....User Accounts and create a password

17. Harmonize Windows user information with cygwin, otherwise they cannot login
mkpasswd -cl > /etc/passwd
mkgroup --local > /etc/group

18. Connect to the host using WinSCP or Putty.

Tuesday, February 24, 2009

TeamViewer

A nice tool to share desktop for over internet, its helpful while troubleshooting. I used this tool many times to help my wife, today I used this tool with my friend sitting in Singapore to help in troubleshooting. He was struggling with this issue from last 1 week, but today collaborative work resolved this issue mere in 30 minutes.. .. WOW !!

My friend was so happy and I am glad .. I was able to help him fixing the issue.

This tool can be used free for commercial use, not for business use. Click to reach the home page for this tool.

How this tool works

Once you install this tool on your system, this will generate a unique ID for system. and the password changes every time you start/restart this tool.
To use this tool make sure this tool is started on other end (similar to netmeeting). If you want to see you friends screen, he will provide you his unique ID for teamviewer and password and vice versa or both. Enter the unique ID, select Remote Support and click Next. Enter the password provided by friend and this is done, now you can see his desktop and can take control as well.

This tool can be used for more options :
  • Remote Support
  • Presentation
  • File Transfer
  • VPN

Monday, February 2, 2009