Monday, 29 January 2018

How Break Windows 7,8,8.1,10 Password Using TRK

Please Follow below Steps :-


1. Download TRK iso from the link below:-
http://trinityhome.org/Home/index.php?wpid=112&front_id=12

2. Make USB bootable
3. Plug in USB in Laptop/Desktop having Winsows any version
4. Boot laptop using USB or CD Rom
5. select sdb1 to boot TRK


6. Select Windows password resetting































7. Now select Winpass prompts for username first

































8. enter username "Administrator"

































9. enter 1

10. Select clear Password

11. Reboot

Wednesday, 24 January 2018

Restrict Ftp user to access other directory

Please follow below steps :-

1. # yum update
2. Disable selinux(vi /etc/sysconfig/selinux) for check #sestatus
3.#service iptables stop
4.#useradd akash
5.#passwd akash
#################Now Install Ftp#############################
6.yum install vsftpd -y
7.service vsftpd resart
##################Make directory For user access##################################
8.mkdir /akash1
###############Create file For Chroot_Jail##################
9.  vi /etc/vsftpd/chroot_list (here write the user name and save and exit).
10. vi /etc/vsftpd/vsftpd.conf
Here we add one entry- local_root=/akash1 (You can write here your directory for access via ftp).
and
#chroot_local_user=YES
chroot_list_enable=YES
# (default follows)
chroot_list_file=/etc/vsftpd/chroot_list
and do this than save and exit .
11.service vsftpd restart.

Tuesday, 23 January 2018

How to ssh Without Password

Here we have done send data from one server to another server by using rsync command without password for ssh its also same



    1. Test rsync over ssh (with password):

    rsync -avz -e ssh /home/test/ root@192.168.0.125:/backup/test/

    2. ssh-keygen generates keys.

    $ ssh-keygen

    Enter passphrase (empty for no passphrase):

    3. ssh-copy-id copies public key to remote host

    Use ssh-copy-id, to copy the public key to the remote host.

    ssh-copy-id -i ~/.ssh/id_rsa.pub 192.168.0.125

    4. Perform rsync over ssh without password

    ssh 192.168.0.125

    Perform the rsync again, it should not ask you to enter any password this time.

    rsync -avz -e ssh /home/test/ root@192.168.0.125:/backup/test/

Friday, 19 January 2018

How to set up trapper in zabbix

Steps for setting trapper on items:


Step 1:

create host(trapper_junglee) under the host-group(teenpati-production) for which u need to create trapper. (Eg; 192.168.0.60)

Step 2:

create item under created host(trapper_junglee)
Name  : Maintenance
Type  : Zabbix Trapper
key   : maintenance
rest all as it is & update it

Step 3:

create trigger under created host(trapper_junglee)
Name : Maintenance 00:25 - 00:40
Expression : {trapper_healthkart:maintenance1.time()}>002500 and {trapper_healthkart:maintenance1.time()}<004000
Severity : Information
Enable & update the trigger.

Step 4:

Go to particular machine(192.168.0.70) and select the trigger for which want to add trapper.
    In that go to dependencies and add the trapper time[trigger] by selecting right host-group and host.

Step 5 :

Finally update it.

Friday, 12 January 2018

How to create screen on zabbix Admin

Steps To Create A Screen:

1: First select a particular location or any machine of that location (eg:205.14796.214-a dataweave machine) which you want to create a screen.

2: Select Graph.

3: Select create graph.

4: Give name to the screen which you want to create.

5: Then add number of machine you want in that screen from host filter.

6: Then finally select the add button.

7: Then select Monitoring>screen>Create screen.

8: Give a name and select number of row’s and column’s.

9: Select that screen which you have created.

10 : Select Edit Screen>Change.

11: In graphs select the number of screens which you have created finally select add.

12 : Select slide show.

Thursday, 11 January 2018

How to install DKIM on Ubuntu server

Step 1: Install DKIM package
Use the following command in your terminal to install the DKIM package
sudo apt-get install opendkim opendkim-tools

Step 2: Edit configuration file

After installation of the package, there will be a config file created within the installed directory. Edit the config file  by adding the content given below at the end of the file.
Domain                  test.com
KeyFile                 /etc/postfix/dkim.key
Selector                mail
SOCKET                  inet:8891@localhost
Make sure to replace example.com with your domain name.

Step 3: Install and configure Postfix

(Skip to next step if already installed and configured). Postfix is the standard Mail Transfer Agent for Ubuntu. Use the command below to install Postfix.
sudo apt-get install postfix
Follow the instructions on the screen and complete the installation process. Open the postfix config file using the following command and edit as follows.
vim /etc/postfix/main.cf
Add the following lines towards the end of the file, then save and exit by pressing ESC key followed by typing :wq! and then hit the Enterkey.
DKIM
milter_default_action = accept
milter_protocol = 2
smtpd_milters = inet:localhost:8891
non_smtpd_milters = inet:localhost:8891

Step 4: DKIM key generation

Generate the DKIM key using the command
opendkim-genkey -t -s mail -d test.com
This command will generate mail.private and mail.txt file. mail.private is private key that will be used to sign outgoing emails. Move it to /etc/opendkim.conf
cp mail.private /etc/postfix/dkim.key

Step 5: Setting DNS records

Open the mail.txt file using cat command
cat mail.txt
The result will look similar to this
mail._domainkey    IN    TXT    ( "v=DKIM1; k=rsa; t=y; "
      "p=MIGfMA0GCSqGSIb3DQEBAQUAA4GNADCBiQKBgQDny/XOYgwb+zaDh/HNvrYVDIF5xRsVmKM4BKRyq4+3LVKvTtqtKG56wld1/xbBVRRtJKczYCjZPmDrepz7mXw+TSqYX5nURJdV+lxhHOK85c78ua4twI4XFfCrwr3q/kj4HuQLJ2ceN9VqRO5CoE5kPTunopNOB1Nv3TolP5wkKQIDAQAB" )  ; ----- DKIM key mail for test.com
Use the data available to set up your DNS records for your corresponding domain name.

Step 6: Setting up and testing

Start your DKIM service using the command
sudo service opendkim start
Restart the postfix service once before testing your setup
sudo service postfix restart
Now its time to set your DKIM setup. There are a few ways to test the setup out of which use the following.

Magento Installation on Linux






Please follow the below procedure to install Magento on linux machines


1. Download the latest magento tar file in your local machine by signing up on offical website.
2. Now using sftp or rsync copy the magento.tar file from local machine to server.
3. Extract Magento package file .
tar xvzf magento-1.9.1.1.tar-2015-04-30-12-56-57.gz
4. Copy all magento files/directories to domain root folder i.e,  /home/domainname/public_html
rsync -ravP magento/ /home/domainname/public_html/
5. We need to change the ownership of the files located in /publichtml
chown -R domainame:domainname public_html/
6. Now we need to change the permissions for the both Folder in /home/domainname/public_html
chmod -R 775 app/
chmod -R 775 media/
Magento configuration setup:
Now Open your browser and type your domain name, Now you’ll see the welcome/first page of domain.
1
Now start by continue button and give the concerned Local setting( time zone and currency )
2







Now go with continue button
Next page will be Database Configuration page. provide the database details
3
NOTE : If you added  domain through virtualmin by selecting mysql, it creates new MySql database and user, you can use the same details in magento Database connection
Now In the Web Access Options section, selcet skip the baseurl validation.
4
Now in the next page Create Admin Account page.
5
We need to an Encryption key.
If every thing is done correctly then following page displays to indicate a successful installation.
6
Backend will take you to admin login page
Backend
To login to Admin Dashboard of Magento, please go to the url http://ip-address or domain /index.php/admin and enter the required credentials created while installation Magento through web interface. We’ll see something like this.
Frontend will be the main site veiw
Frontend
Magento Installation is done.

Magento Patching
After logging in through admin panel you will be seeing critical,warning messages, which means we need to do patch for concerned messages
The details of the patch will be given in the messages itself
Download the patches from the offical website and upload them in server through Sftp/Filezila
NOTE : If Patch is applied/removed the following message will be shown



Patch was applied/reverted successfully.
Thank you ! Enjoy Magento.

Step-by-step OpenLDAP Installation and Configuration on server

This tutorial describes how to install and configure an OpenLDAP server and also an OpenLDAP client. Step by Step Installation and Conf...