Verifying Cisco IPSEC VPN Connections
The following two commands can be used to verify Cisco VPN connections:
Router#show crypto ipsec sa
This command displays the settings used by the current Security Associations (SAs).
Router#show crypto isakmp sa
This command displays current IKE Security Associations.
Troubleshooting VPN Connections:
After confirming physical connectivity, audit both ends of the VPN connection to ensure they mirror each other.
Use debugging to analyze VPN connection difficulties:
Router#debug crypto isakmp
This command allows you to observe Phase 1 ISAKMP negotiations.
Router#debug crypto ipsec
This command allows you to observe Phase 2 IPSec negotiations.
Resetting the mySQL root user’s password
Follow the process, to Set the root user’s password for mySQL Which is different from the root (system) user:
#/usr/bin/mysqladmin -u root password ‘new-password-here’
If you get “Access denied” for root@localhost try this method:
Stop mysqld:
#service mysqld stop
or
#/etc/init.d/mysqld stop
Start it with:
#/usr/libexec/mysqld –skip-grant-tables –user=mysql
Log onto another terminal or SSH session and run:
#mysql -u root mysql
Enter password:
#mysql> UPDATE user SET Password=PASSWORD(‘newpasswordhere)
-> WHERE User=’root’;#mysql> FLUSH PRIVILEGES;
#mysql> exit
Then test with:
#mysql -u root -p
Creating an archive using the ‘tar’ command
Using the tar command
To tar all .a and .b files into a tar file named ab.tgz use:
tar -cvzf ab.tgz *.a *.b
This creates (c) a compressed (z) tar file named ab.tgz (f) and shows the files being stored into the tar file (v). The .tgz suffix is a convention for gzipped tar files.
To archive a full directory testdir into test.tgz:
tar -cvzf testdir.tgz testdir
tar command options
- c — to create a tar file, writing the file starts at the beginning.
- t — table of contents, see the names of all files or those specified in other command line arguments.
- x — extract (restore) the contents of the tar file.
- f — specifies the filename (which follows the f) used to tar into or to tar out from; see the examples below.
- z — use zip/gzip to compress the tar file or to read from a compressed tar file.
- v — verbose output, show, e.g., during create or extract, the files being stored into or restored from the tar file.
Creating mysql database and granting user access
$ mysql -u root -p
Enter password:
Welcome to the MySQL monitor. Commands end with ; or \g.
Your MySQL connection id is 1 to server version: 3.22.32
Type ‘help’ for help.
mysql>
mysql> create database dbname;
Query OK, 1 row affected (0.00 sec)
mysql>show databases;
mysql> GRANT ALL ON dbname.* TO username@localhost IDENTIFIED BY “password”;
Query OK, 0 rows affected (0.00 sec)
Error compiling qmail-1.03: [qmail-remote.o] Error 1
If you get the following error while compiling qmail-1.03
./compile qmail-remote.c
qmail-remote.c:36:25: openssl/ssl.h: No such file or directory
………………………..
………………………..
qmail-remote.c:590: warning: return type of `main’ is not `int’
make: *** [qmail-remote.o] Error 1
For debian try this
# apt-get install libssl-dev
Troubel with .docx?
Many of you may be using MS Office version older than 2007. The 2007 Office has a trendy extension for .doc which is .docx and similarly .xlsx for excel documents and .pptx for powerpoint presentation. Now what happens when you receive a document from someone in the new format and your old MS Office simply doesn’t know what to do. Well of course you can upgrade to Office 2007 but as a temporary, quick a, easy and cost-free solution you can download a converter from Microsoft’s site and install it in your computer and your done! Here is the link below:
Microsoft Office Compatibility Pack for Word, Excel, and PowerPoint 2007 File Formats
Here are the file details:
| File Name: | FileFormatConverters.exe |
| Version: | 3 |
| Date Published: | 4/22/2009 |
| Language: | English |
| Download Size: | 27.5 MB |
A good place to find stock photo
I was looking for some still photos for a friends presentation and found this site pretty much helpful.
http://www.istockphoto.com/index.php
iStockphoto is the internet’s original member-generated image and design community. Find your inspiration on the world’s leading royalty-free stock destination. Search for over 4 million photographs, vector illustrations, video footage, audio tracks and Flash files.
The new debian (Lenny) repository list
The new debian (Lenny) repository lists are given below. You may replace the ‘fr’ with your nearby mirror country code.
deb http://ftp.fr.debian.org/debian/ lenny main
deb-src http://ftp.fr.debian.org/debian/ lenny main
deb http://security.debian.org/ lenny/updates main
deb-src http://security.debian.org/ lenny/updates main
deb http://volatile.debian.org/debian-volatile lenny/volatile main
deb-src http://volatile.debian.org/debian-volatile lenny/volatile main
You can easily keep your debian Clamav updated by using apt-get. All you need to do is enter the volatile repository in your /etc/apt/source-list file. Please only use either etch/volatile or lenny/volatile with
deb http://volatile.debian.org/debian-volatile etch/volatile main contrib non-free
or
deb http://volatile.debian.org/debian-volatile lenny/volatile main contrib non-free
After adding the entry run:
# apt-get update
# apt-get install clamav-daemon
# apt-get install clamav-freshclam
Once all the installation is successfully done you may enter-
# freshclam
# clamd -V
to see everything is up2date.
While running apt-get update or aptitude update you may come across the following error
W: There is no public key available for the following key IDs:
4D270D06F42584E6
W: You may want to run apt-get update to correct these problems
Run the following command to resolve this:
# apt-get install debian-archive-keyring