Basic CentOS Setup Before Building A Working Server

2:32:00 AM 0
Basic Centos Setup Before Building A Working Server
All important issues you need to do within the first time to construct an online server on CentOS 6. You might merely straight ahead to set up Apache, Nginx, Lighthttpd, or any internet server you need however it's strongly beneficial to firstly comply with some fundamental and customary practices of preliminary server setup. That is aimed to tweak and apply some primary safety safety in your server and make it actual non-public. As an illustration, to vary default root login, change default SSH port and so forth.

Following all steps on this preliminary CentOS server setup just isn't a should however strongly beneficial. Nonetheless the choice is as much as you. I assumed you will have both VPS or Devoted server already so you may observe this information.

On this instance, I exploit a VPS with 512Mb of RAM operating CentOS 6.three x32 positioned in Amsterdam hosted by DigitalOcean.

Step 1 – Login to your distant server by way of SSH connection. You should utilize both use Terminal (Mac / Linux) or Putty in Home windows. You need to login as root.

Throughout your first login, Putty (or Terminal) will ask you to cache server’s host key within the registry and keep in mind server’s ras2 key fingerprint. Don’t panic and easily hit Yes.

remember server’s ras2 key fingerprint

Step 2 – Change default password for root. Generally a VPS or server is created utilizing random password generated by the supplier’s administration software program. It's good apply to alter it to one thing simpler to recollect by you however exhausting to crack or guess by others. Use this command syntax:
passwd
You’ll then be asked to enter your new password twice.

Ensure you use sturdy phrases and numbers mixture but in addition ensure you can simply bear in mind it.

Step 3 – Create new user. This new user can be used so that you can login to your server within the subsequent time as a result of you must additionally disable root login (I’ll inform you within the subsequent steps) as a result of “root” is admittedly a regular username hackers can simply guess. It’s similar to “admin” or “administrator” in Home windows. Use command under to create new username:
/usr/sbin/adduser newuser
*change “newuser” above with your own new username. In this example I use my name “sawiyati”,

Then issue this command to setup password for that user:
passwd newuser
Upon hitting Enter on your keyboard your server will ask you to type the password for that user.
Step 4 – Setup root privileges to that user so once you logged in to your server using that new user you will still be able to perform any root only tasks. To do that simply issue this command:
/usr/sbin/visudo

then look for the line / section called:
# User privilege specification
root    ALL=(ALL)       ALL

or in different CentOS release it may also like this:
## Allow root to run any commands anywhere
root    ALL=(ALL)        ALL

Then add this line right after the root line:
## Allow root to run any commands anywhere
root      ALL=(ALL)        ALL
newuser   ALL=(ALL)        ALL

it should look like this:
Tips on how to edit? If you happen to don’t have Nano editor put in but, merely hit “a” (with out quotes). As soon as finished including new line, merely hit Esc key to exit enhancing mode. Now press Shift key + ZZ to save lots of and exit vi editor.

Step 5 – Change SSH default port and disable root login. That is what I imply in step three above. On this case you’ll must edit “sshd_config” file which is the primary configuration file of SSH service in your server. You may both use vi or Nano to edit it. On this instance I exploit Nano editor:
nano /etc/ssh/sshd_config

Then fine following lines:
#port 22

Remove the # symbol and change the “22” (it is default port) to to any number between 1025 and 65536, For example is port 22000. Example:
port 22000
Next, also find:
#PermitRootLogin yes

Remove the # symbol and change yes to no
PermitRootLogin no

So it will look like this:
Next, find this line as well:
#UseDNS yes

Remove the # symbol and change yes to no
UseDNS no

It may look like this:
Don’t close Nano editor just yet, now proceed to the next step:

Step 6 – Allow new user to login via SSH to your server. Simply add this line in the very bottom of that file:
AllowUsers newuser

Of course you have to replace “newuser” with your own username created in the step 3 above. Example:
Once done, hit Control+O to save then Control+X to exit Nano editor.

Step 7 – Reload SSH service. To make sure the new configuration is used by the service, simply reload SSH by using this command:
/etc/init.d/sshd reload
It should return with the OK message.

Step 8 – Give it a attempt! I assumed presently you might be nonetheless logging in as root. Don’t shut that SSH session but earlier than you take a look at it and ensure all of the settings you outlined in SSH config file actually works. Now launch one other Terminal window or launch one other Putty occasion then login utilizing new SSH port, new username, and naturally new password.

After the changes, you’ll see your new username instead of root:
And enjoy...

How to activate Windows 7 & 8 Using CMD | Free VPS

2:15:00 AM 0

To enter your MAK on Windows 8 and successfully activate, you can complete one of the following steps:

NOTE: You will need the license key given to you when you downloaded Windows 8 from the software page

Command Line option:

Step 1 -  Open administrative level command prompt by typing in cmd on the search tab, right click on the command promt and select Run as administrator.

Step 2 - Type in the following command and hit Enter:
    Example:
    slmgr.vbs /ipk 00000-00000-00000-00000-00000

Step 3 - Click OK on the Installed product key successfully screen.

Step 4 - Reboot the machine and check.


GUI option:

Step 1 - Hit the Windows+R hotkeys to open the Run box and run the following command:

     slui.exe 3

This command will open the following Dialog Box in which you can manually enter your MAK. Enter your MAK in the �Product Key� field, click on the �Activate� button.



That's it...

How to install and Configure MySql Server on Windows system. | Free VPS

4:12:00 AM 1

MySQL being the world�s most popular open source database, providing great features and being fully supported in Microsoft Windows environment.



Step 1 - Download and install the MySql Server in windows system.


Step 2 - Start the MySql server installation.
 
 
 
 
 

Step 3 - If you have selected the checkbox 'Configure the MySQL Server now' in the last step when installing MySQL 5.1, the configuration wizard should start automatically when you click the Finish button. 

Step 4 - Configuration Type:- Select Detailed Configuration here. If this is the only MySQL server installed on your computer.

Step 5 -  Server Type:- As this MySQL server is running on a development box.

Step 6 - Database Usage:- Depends on the purpose of your development box, you can select either Multifunctional Database or Transactional Database Only. Here I select Multi-functional Database.

Step 7 - InnoDB table space settings:- InnoDB table type is the storage engine for a transnational database. Use the default settings here.

Step 8 - Database engine's concurrent connections option.Here I Selected Decision Support.

    => Online Transaction Processing (OLTP) as it is the most common use of MySQL server.

    => If the MySQL server on your development machine is used for decision support such as data warehousing or data mining, select the first option.

 Step 9 - Networking options:- By default selection we can use. If port 3306 has been used by another instance of MySQL server, you can select port 3307 or a different port. And also need to enable mysql port on firewall.

Step 10 - Default Character Set:- By default, the Standard Character Set is selected.
 
But you may want to select the second option - Best Support For Multilingualism. This allows our database to store text in many different languages.
Step 11 - Install MySQL server as a Windows service.

You might also want to check Include Bin Directory in Windows PATH if you want to operate MySQL from command line.
Step 12 - Set a new password to the root account. Enter the same password to all three boxes.
Don't select the Create An Anonymous Account checkbox. This can lead to an insecure system.
Step 13 - Now everything is ready to execute, click Execute button.
 

That's it...

| Free VPS

9:00:00 AM 0
SARG is a tool that analyses the proxy log files and creates beautiful reports out of it. It is handy to see how much bandwidth is used by individual machines on the network and one can check on which websites the network's users are surfing.

Server Descriptions :

     � Hostname   = proxy.reubro.com
     � Services      = DNS, Squid Proxy and SARG.
     � Eth0           = Connected to Internet  
     � Eth1           = Connected to LAN

Please remember without the Squid and DNS setup, no use of installing sarg on the system it will won�t work at all. Before installing Sarg we must configure DNS and Squid as Transparent Proxy. DNS for the name resolution in caching mode.


Step 1 - Installation of required packages for SARG.

Step 2 - Download SARG package, here I am go to my software folder.

Step 3 - Extract sarg package, using below command.

Step 4 -  Compile SARG package using below Commands.

Step 5 - Now, time to edit SARG main configuration file. It has lots of option to edit you should go through all of them before edit anything. However, we will editing only the ones that we need.

Step 6 - After that restart the service.

Step 7 - Configuring firewall, open port 80 for accessing web server.

      iptables �I INPUT �p tcp �dport 80 �j ACCEPT

Step 8 - Now finally you can generate SARG reports.

The above command will generate reports in mentioned directory "/var/www/html/access_reports" which can be accessed from the web browser using the address http://IP-Address/access_reports

Step 9 - SARG Main Page

Step 10 - To automate the process of generating sarg report in given span of time via cron jobs. For example, let�s assume you want to generate reports on hourly basis automatically, to do this, you need to configure a Cron job.

That's it...