Friday, April 13, 2012

djbdns (TinyDns) not starting in Kloxo (Solved / fixed)

After switching from named to tinyDNS in kloxo. The djbdns is not working.
# /etc/init.d/djbdns restart
Stopping Djbdns:
Starting Djbdns:
# /etc/init.d/djbdns status
tinydns is stopped
Also tried to stop and start but still no luck.
 #service djbdns stop
Stopping Djbdns:
# service djbdns start
Starting Djbdns:
service djbdns status
tinydns is stopped

Check if the ip is entered correctly in the following file.
# echo "xxx.xxx.x.xx" >> /var/tinydns/env/IP; chattr +i /var/tinydns/env/IP
# cat /var/tinydns/env/IP
  xxx.xxx.x.xx

Also check if the path is correct in the files /usr/local/lxlabs/kloxo/file/djbdns.init and /etc/init.d/djbdns. Open each file and check the line
Qmailtcp=/usr/local/bin/tcpserver
In my case the location of tcpserver was /usr/bin/tcpserver. Hence i changed this to
Qmailtcp=/usr/bin/tcpserver
Note: Change this is both files.

Now login to kloxo and take Administration --> Servers --> localhost --> Services. Everything should be in green. :)


Installing LAMP on Linux --> The easy way

What is LAMP? Its actually a short form the expansion of LAMP is
L --> Linux
A --> Apache
M --> Mysql
P --> Php {{ P can be perl or python too }}
These are the basic things which are needed for a web server to work. The steps for installation are for red hat flavoured Linux systems or servers.
Login as root to the server where LAMP is to be installed.

  • APACHE
# yum install httpd httpd-devel
# /etc/init.d/httpd start
Now the apache will be installed and its running. You can verify the installation by giving the command.
# telnet localhost 80 which should give the output silimilar to this
--------------------------------------------------------------
telnet localhost 80
Trying 127.0.0.1...
Connected to localhost (127.0.0.1).
Escape character is '^]'.
--------------------------------------------------------------
To configure apache you will have to edit the configuration file /etc/httpd/conf/httpd.conf. Please make sure to restart apache after editing configuration file for changes to take effect.
#/etc/init.d/httpd restart
  • MYSQL
# yum install mysql mysql-server mysql-devel
# /etc/init.d/mysqld start
Now Mysql is started. We will perform a quick basic setup of mysql now.
Note: For fedora 16/17 users
systemctl start mysqld.service
systemctl enable mysqld.service
# mysql
Welcome to the MySQL monitor.  Commands end with ; or \g.
Your MySQL connection id is 349034 to server version: 4.1.22-standard
Type 'help;' or '\h' for help. Type '\c' to clear the buffer.
mysql>
Set the mysql root password now:
mysql>USE mysql;
(Replace 'yourpass with your required password' in the command below)
mysql> UPDATE user SET Password=PASSWORD('yourpass') WHERE user='root';
mysql> FLUSH PRIVILEGES;
mysql> quit
Bye
Now to login with new details:
mysql -u root -p
Enter Password:

  • PHP
# yum install php php-mysql php-common php-gd php-mbstring php-mcrypt php-devel php-xml
# /etc/init.d/httpd restart
To verify the php installation type the command below:
# php -v
We can also create a php info page to test this.

Tuesday, April 10, 2012

Playing With ISO File

An ISO file, often called an ISO image is an "image" of an entire CD, DVD, or BD. The entire contents of a disc can be perfectly represented in a single ISO file. An ISO image is an archive file of an optical disc, composed of the data contents of every written sector of an optical disc, including the optical disc file system. When using an ISO file you have three options:

Copy it to a CD/DVD
Mount it to a 'Virtual CD/DVD Drive'
Extract the contents of it to your hard-drive

In this post, i will show how to create an iso of a CD/DVD rom and also to burn a CD/DVD using an ISO image in linux.

CREATE AN ISO OF A CD OR DVD.

Insert the CD or DVD whose image is to be taken.
Do not mount the CD/DVD. You can check if its already mounted using the command mount. Som linux versions have auto mount which automatically mounts CD/DVD.
# mount

If the CD is mounted please unmount it.

# umount /dev/cd--rom  or  # umount /mount/cdrom

Now the final step, create iso by using the dd command.
# dd if=/dev/cd--rom of=/tmp/cdimage.iso

In the above command,
if=source --> /dev/xxx
of=destination  --> file name of ISO
                                                                                     
BURN ISO TO CD.

Requirement: Need a cd rom attached to the system and a plain cd .. lol
First step is to find the inquiry strings of the CD ROM. You can find it by giving the command below:

# cdrecord -scanbus

From the output of the above command find the line similar to this. This depends on the type of cd rom attached your pc.

1,0,0 100) 'LG' 'CD-Writer' '1.0g'
Hence the inquiry string of your device is 1,0,0.

Now we can use the cdrecord command to burn the disk.
# cdrecord -v -dao dev=1,0,0 file.iso
If you need to specify the burning speed then modeify the above command.
# cdrecord -v -dao dev=1,0,0 speed=16 file.iso

Friday, March 30, 2012

How to Reset / Recover Forgotten Windows 7/Vista/XP/2003 Administrator Password

 Many times we face this problem when we or our friends forget Windows XP password and can't log into Windows. So here we are posting a few methods / utilities which can be used to recover Windows password:

    1st Method: The first thing which you check if you forget login password. When we install Windows, it automatically creates an account ""Administrator"" and sets its password to blank. So if you have forget your user account password then try this:

    Start system and when you see Windows Welcome screen / Login screen, press ctrl+alt+del keys twice and it'll show Classic Login box. Now type ""Administrator"" (without quotes) in Username and leave Password field blank. Now press Enter and you should be able to log in Windows.

    Now you can reset your account password from ""Control Panel -> User Accounts"".

    Same thing can be done using Safe Mode. In Safe Mode Windows will show this in-built Administrator account in Login screen.

    2nd Method: Windows XP and further versions also provide another method to recover forgotten password by using ""Reset Disk"". If you created a Password Reset Disk in past, you can use that disk to reset the password.

    3rd Method:In fact, there are some convenience ways to help us to be far from that nightmare, as long as you paste "windows password", "xp password", "administrator password", "vista password", "windows xp password", "forgot windows password", "windows administrator password", "windows password recovery", "windows password reset", "windows password Recovery", ect to google, there would be many related results. One of the most reliable way is to take use of windows password Recovery which is a current windows tool for empty or reset windows password for PC users even computer freshman. With windows password Recovery, just a few steps, you can re-login your PC without any data loss.

    Step1. Download Spower Windows Password Reset and save it to your hard disk. Take note of what folder you saved the file in.

    Step2. Burn the downloaded ISO file onto a CD. * To burn your CD, you'll need a blank CD-R . * If you are familiar with burning .iso image files you may use any software you already have such as Nero, Sonic, Roxio etc.

    Step 3. Put in your newly created CD and remove your Windows password.

Tuesday, March 20, 2012

Repairing Database and Tables

MyISAM was the default storage engine for the MySQL. It is based on the older ISAM code but has many useful extensions. The major deficiency of MyISAM is the absence of transactions support. Versions of MySQL 5.5 and greater have switched to the InnoDB engine to ensure referential integrity constraints, and higher concurrency.

Each MyISAM table is stored on disk in three files. The files have names that begin with the table name and have an extension to indicate the file type. MySQL uses a .frm file to store the definition of the table, but this file is not a part of the MyISAM engine; instead it is a part of the server. The data file has a .MYD (MYData) extension. The index file has a .MYI (MYIndex) extension.

I will now show how to repair the corrupted databases and tables. Usually the mysql files are stored in /var/lib/mysql. Hence navigate your way to the this location.


$ cd /var/lib/mysql
You can find all the databases in the server as folders in this location and enter the folder of the corrupted database.
$ cd db_name
To check and automatically repair all tables
$  myisamchk --silent --force --fast --update-state *.MYI.

If you only want to repair a specific table give the command below:
$ myisamchk -r table_name.MYI

Twitter Delicious Facebook Digg Stumbleupon Favorites More

 
Design by Free WordPress Themes | Bloggerized by Lasantha - Premium Blogger Themes | Affiliate Network Reviews