Friday 20 December 2013

Find to install Java6 on Ubuntu

STEP 1: DOWNLOAD ORACLE JAVA.

When new versions of Java are released, they are featured on the main Java download page.
If Java 6 update 45 is no longer featured, you can find the download by following the Previous Releases link found on the main download page.
Open the Java download page
in your browser and download both jdk-6u45-linux-i586.bin and jre-6u45-linux-i586.bin
Make a note of the folder to which you downloaded the files.

STEP 2: CREATE THE INSTALLATION FOLDER.

The usr/lib/jvm is the default installation location of the Java JDK and the Java JRE. Enter the following command in your console:

1
sudo mkdir -p /usr/lib/jvm
The –p option ensures that all folders in the mkdir path are created.

STEP 3: NAVIGATE TO THE FOLDER TO WHICH YOU DOWNLOADED THE JAVA INSTALLATION FILES.

If you downloaded the files to your Home folder, you can use the following command:
1 cd ~/

STEP 4: MOVE THE DOWNLOADED FILES TO THE INSTALLATION FOLDER.
1 sudo mv jdk-6u45-linux-i586.bin /usr/lib/jvm
2 sudo mv jre-6u45-linux-i586.bin /usr/lib/jvm

STEP 5: CHANGE TO THE INSTALLATION FOLDER.
1 cd /usr/lib/jvm

STEP 6: MAKE THE DOWNLOADED BINARIES EXECUTABLE.
1 sudo chmod u+x jdk-6u45-linux-i586.bin
2 sudo chmod u+x jre-6u45-linux-i586.bin

STEP 7: EXTRACT BOTH COMPRESSED BINARY FILES.
1 sudo ./jdk-6u45-linux-i586.bin
2 sudo ./jre-6u45-linux-i586.bin

STEP 8: CHECK YOUR EXTRACTED FOLDER NAMES.

1 ls -l
Response:
1 jdk1.6.0_45
2 jre1.6.0_45

STEP 9: INFORM UBUNTU WHERE YOUR JAVA INSTALLATION IS LOCATED.
1 sudo update-alternatives --install "/usr/bin/java" "java" "/usr/lib/jvm/jre1.6.0_45/bin/java" 1
2 sudo update-alternatives --install "/usr/bin/javac" "javac" "/usr/lib/jvm/jdk1.6.0_45/bin/javac" 1

STEP 10: INFORM UBUNTU THAT THIS IS YOUR DEFAULT JAVA INSTALLATION.
1 sudo update-alternatives --set java /usr/lib/jvm/jre1.6.0_45/bin/java
2 sudo update-alternatives --set javac /usr/lib/jvm/jdk1.6.0_45/bin/javac

STEP 11: UPDATE YOUR SYSTEM-WIDE PATH.
Edit your /etc/profile file using:

1 sudo nano /etc/profile
Add the following entries to the bottom of the file:

1 PATH=$PATH:$HOME/bin:$JAVA_HOME/bin
2 export JAVA_HOME
3 export PATH
Save your changes using CTRL + X.

STEP 12: RELOAD YOUR SYSTEM-WIDE PATH.
1 . /etc/profile

STEP 13: REBOOT YOUR UBUNTU SYSTEM.
1 sudo reboot

STEP 14: TEST YOUR NEW INSTALLATION.
1 java –version
Response:
1 java version "1.6.0_45"
2 Java(TM) SE Runtime Environment (build 1.6.0_45-b06)
3 Java HotSpot(TM) Client VM (build 20.12-b01, mixed mode, sharing)

1 javac –version
Response:
1 javac 1.6.0_45

Find to install Java6 on Ubuntu12.04

STEP 1: DOWNLOAD ORACLE JAVA.

When new versions of Java are released, they are featured on the main Java download page.
If Java 6 update 45 is no longer featured, you can find the download by following the Previous Releases link found on the main download page.
Open the Java download page
in your browser and download both jdk-6u45-linux-i586.bin and jre-6u45-linux-i586.bin
Make a note of the folder to which you downloaded the files.

STEP 2: CREATE THE INSTALLATION FOLDER.

The usr/lib/jvm is the default installation location of the Java JDK and the Java JRE. Enter the following command in your console:

1
sudo mkdir -p /usr/lib/jvm
The –p option ensures that all folders in the mkdir path are created.

STEP 3: NAVIGATE TO THE FOLDER TO WHICH YOU DOWNLOADED THE JAVA INSTALLATION FILES.

If you downloaded the files to your Home folder, you can use the following command:
1 cd ~/

STEP 4: MOVE THE DOWNLOADED FILES TO THE INSTALLATION FOLDER.
1 sudo mv jdk-6u45-linux-i586.bin /usr/lib/jvm
2 sudo mv jre-6u45-linux-i586.bin /usr/lib/jvm

STEP 5: CHANGE TO THE INSTALLATION FOLDER.
1 cd /usr/lib/jvm

STEP 6: MAKE THE DOWNLOADED BINARIES EXECUTABLE.
1 sudo chmod u+x jdk-6u45-linux-i586.bin
2 sudo chmod u+x jre-6u45-linux-i586.bin

STEP 7: EXTRACT BOTH COMPRESSED BINARY FILES.
1 sudo ./jdk-6u45-linux-i586.bin
2 sudo ./jre-6u45-linux-i586.bin

STEP 8: CHECK YOUR EXTRACTED FOLDER NAMES.

1 ls -l
Response:
1 jdk1.6.0_45
2 jre1.6.0_45

STEP 9: INFORM UBUNTU WHERE YOUR JAVA INSTALLATION IS LOCATED.
1 sudo update-alternatives --install "/usr/bin/java" "java" "/usr/lib/jvm/jre1.6.0_45/bin/java" 1
2 sudo update-alternatives --install "/usr/bin/javac" "javac" "/usr/lib/jvm/jdk1.6.0_45/bin/javac" 1

STEP 10: INFORM UBUNTU THAT THIS IS YOUR DEFAULT JAVA INSTALLATION.
1 sudo update-alternatives --set java /usr/lib/jvm/jre1.6.0_45/bin/java
2 sudo update-alternatives --set javac /usr/lib/jvm/jdk1.6.0_45/bin/javac

STEP 11: UPDATE YOUR SYSTEM-WIDE PATH.
Edit your /etc/profile file using:

1 sudo nano /etc/profile
Add the following entries to the bottom of the file:

1 PATH=$PATH:$HOME/bin:$JAVA_HOME/bin
2 export JAVA_HOME
3 export PATH
Save your changes using CTRL + X.

STEP 12: RELOAD YOUR SYSTEM-WIDE PATH.
1 . /etc/profile

STEP 13: REBOOT YOUR UBUNTU SYSTEM.
1 sudo reboot

STEP 14: TEST YOUR NEW INSTALLATION.
1 java –version
Response:
1 java version "1.6.0_45"
2 Java(TM) SE Runtime Environment (build 1.6.0_45-b06)
3 Java HotSpot(TM) Client VM (build 20.12-b01, mixed mode, sharing)

1 javac –version
Response:
1 javac 1.6.0_45

Find to install Tomcat6 on Ubuntu 12.04

STEP 1: INSTALL THE ORACLE JDK, IF YOU HAVE NOT DONE SO ALREADY
Follow the installation instructions in How to Install Oracle Java 6 update 37 on Ubuntu 12.04 Linux.

STEP 2: INSTALL THE TOMCAT6 PACKAGE
During this step, Tomcat and OpenJDK will be installed. We will configure Tomcat in a later step to use the Oracle JDK instead.
Run the following commands in your console:
1 sudo apt-get update
2 sudo apt-get install tomcat6

STEP 3: STOP THE TOMCAT6 SERVICE
Run the following command in your console to stop the tomcat6 service:
1 sudo service tomcat6 stop
Response:
1 Stopping Tomcat servlet engine tomcat6 [ OK ]

STEP 4: EDIT THE TOMCAT6 DEFAULT START-UP CONFIGURATION FILE
Run the following command in your console to edit the default tomcat6 start-up configuration file:
1 sudo nano /etc/default/tomcat6

Change the JAVA_HOME option to the following and remove the starting #:
1 JAVA_HOME=/usr/lib/jvm/jdk1.6.0_45
Save the file and you are done. Tomcat will now start using the Oracle JDK instead of the OpenJDK.

STEP 5: START THE TOMCAT6 SERVICE
Run the following command in your console to start the tomcat6 service:
1 sudo service tomcat6 start

STEP 6: OPEN THE DEFAULT TOMCAT PORT IN YOUR FIREWALL
You only need to run this command if you have a firewall enabled:
1 sudo iptables -A INPUT -p tcp --dport 8080 -j ACCEPT

STEP 7: DOWNLOAD THE FILES AND COPY THE FILES

Tomcat 6 Downloads link
http://tomcat.apache.org/download-60.cgi

extract that tar file copy all files into /var/lib/tomcat6/webapps
1.examples
2.host-manager
3.manager
4.ROOT

STEP:8 ADD the Fallowing Lines in tomcat-users.xml

<tomcat-users>


<role rolename="manager"/>

<user username="Admin" password="tomcat" roles="manager"/>

</tomcat-users>

STEP 8: TEST YOUR INSTALLATION
Navigate your browser to http://localhost:8080. If you see “It works!”, the installation was successful.



STEP 9: REBOOT YOUR SYSTEM
This step is necessary to test whether your tomcat6 server automatically starts when Ubuntu starts:
1 sudo reboot

STEP 10: TEST YOUR INSTALLATION

Navigate your browser to http://localhost:8080. If you see “It works!”, you have confirmed that the installation was successful.

Find to install Tomcat6 on Ubuntu

STEP 1: INSTALL THE ORACLE JDK, IF YOU HAVE NOT DONE SO ALREADY
Follow the installation instructions in How to Install Oracle Java 6 update 37 on Ubuntu 12.04 Linux.

STEP 2: INSTALL THE TOMCAT6 PACKAGE
During this step, Tomcat and OpenJDK will be installed. We will configure Tomcat in a later step to use the Oracle JDK instead.
Run the following commands in your console:
1 sudo apt-get update
2 sudo apt-get install tomcat6

STEP 3: STOP THE TOMCAT6 SERVICE
Run the following command in your console to stop the tomcat6 service:
1 sudo service tomcat6 stop
Response:
1 Stopping Tomcat servlet engine tomcat6 [ OK ]

STEP 4: EDIT THE TOMCAT6 DEFAULT START-UP CONFIGURATION FILE
Run the following command in your console to edit the default tomcat6 start-up configuration file:
1 sudo nano /etc/default/tomcat6

Change the JAVA_HOME option to the following and remove the starting #:
1 JAVA_HOME=/usr/lib/jvm/jdk1.6.0_45
Save the file and you are done. Tomcat will now start using the Oracle JDK instead of the OpenJDK.

STEP 5: START THE TOMCAT6 SERVICE
Run the following command in your console to start the tomcat6 service:
1 sudo service tomcat6 start

STEP 6: OPEN THE DEFAULT TOMCAT PORT IN YOUR FIREWALL
You only need to run this command if you have a firewall enabled:
1 sudo iptables -A INPUT -p tcp --dport 8080 -j ACCEPT

STEP 7: DOWNLOAD THE FILES AND COPY THE FILES

Tomcat 6 Downloads link
http://tomcat.apache.org/download-60.cgi

extract that tar file copy all files into /var/lib/tomcat6/webapps
1.examples
2.host-manager
3.manager
4.ROOT

STEP:8 ADD the Fallowing Lines in tomcat-users.xml

<tomcat-users>


<role rolename="manager"/>

<user username="Admin" password="tomcat" roles="manager"/>

</tomcat-users>

STEP 8: TEST YOUR INSTALLATION
Navigate your browser to http://localhost:8080. If you see “It works!”, the installation was successful.



STEP 9: REBOOT YOUR SYSTEM
This step is necessary to test whether your tomcat6 server automatically starts when Ubuntu starts:
1 sudo reboot

STEP 10: TEST YOUR INSTALLATION

Navigate your browser to http://localhost:8080. If you see “It works!”, you have confirmed that the installation was successful.

Find to install Tomcat6 on Ubuntu12.10

STEP 1: INSTALL THE ORACLE JDK, IF YOU HAVE NOT DONE SO ALREADY
Follow the installation instructions in How to Install Oracle Java 6 update 37 on Ubuntu 12.04 Linux.

STEP 2: INSTALL THE TOMCAT6 PACKAGE
During this step, Tomcat and OpenJDK will be installed. We will configure Tomcat in a later step to use the Oracle JDK instead.
Run the following commands in your console:
1 sudo apt-get update
2 sudo apt-get install tomcat6

STEP 3: STOP THE TOMCAT6 SERVICE
Run the following command in your console to stop the tomcat6 service:
1 sudo service tomcat6 stop
Response:
1 Stopping Tomcat servlet engine tomcat6 [ OK ]

STEP 4: EDIT THE TOMCAT6 DEFAULT START-UP CONFIGURATION FILE
Run the following command in your console to edit the default tomcat6 start-up configuration file:
1 sudo nano /etc/default/tomcat6

Change the JAVA_HOME option to the following and remove the starting #:
1 JAVA_HOME=/usr/lib/jvm/jdk1.6.0_45
Save the file and you are done. Tomcat will now start using the Oracle JDK instead of the OpenJDK.

STEP 5: START THE TOMCAT6 SERVICE
Run the following command in your console to start the tomcat6 service:
1 sudo service tomcat6 start

STEP 6: OPEN THE DEFAULT TOMCAT PORT IN YOUR FIREWALL
You only need to run this command if you have a firewall enabled:
1 sudo iptables -A INPUT -p tcp --dport 8080 -j ACCEPT

STEP 7: DOWNLOAD THE FILES AND COPY THE FILES

Tomcat 6 Downloads link
http://tomcat.apache.org/download-60.cgi

extract that tar file copy all files into /var/lib/tomcat6/webapps
1.examples
2.host-manager
3.manager
4.ROOT

STEP:8 ADD the Fallowing Lines in tomcat-users.xml

<tomcat-users>


<role rolename="manager"/>

<user username="Admin" password="tomcat" roles="manager"/>

</tomcat-users>

STEP 8: TEST YOUR INSTALLATION
Navigate your browser to http://localhost:8080. If you see “It works!”, the installation was successful.



STEP 9: REBOOT YOUR SYSTEM
This step is necessary to test whether your tomcat6 server automatically starts when Ubuntu starts:
1 sudo reboot

STEP 10: TEST YOUR INSTALLATION

Navigate your browser to http://localhost:8080. If you see “It works!”, you have confirmed that the installation was successful.

Find to install NGINX on Centos

Install nginx
Pre-Requirements:
1.Install MySQL
2.Install Php

Install dependencies for nginx

yum -y install gcc gcc-c++ make zlib-devel pcre-devel openssl-devel

 we will install nginx on our virtual private server using yum:
sudo yum install nginx

nginx does not start on its own. To get nginx running, type:
sudo /etc/init.d/nginx start

You can confirm that nginx has installed on your virtual private server by directing your browser to your IP address. You can run the following command to reveal your server’s IP address.
ifconfig eth0 | grep inet | awk '{ print $2 }'

Install PHP
The php-fpm package is located within the REMI repository, which, at this point, is disabled. The first thing we need to do is enable the REMI repository and install php and php-fpm:
sudo yum --enablerepo=remi install php-fpm php-mysql

Configure php
We need to make one small change in the php configuration. Open up php.ini:
 sudo vi /etc/php.ini

Find the line, cgi.fix_pathinfo=1, and change the 1 to 0.
cgi.fix_pathinfo=0

If this number is kept as a 1, the php interpreter will do its best to process the file that is as near to the requested file as possible. This is a possible security risk. If this number is set to 0, conversely, the interpreter will only process the exact file path—a much safer alternative. Save and Exit.

Configure nginx
Open up the default nginx config file:
sudo vi /etc/nginx/nginx.conf

Raise the number of worker processes to 4 then save and exit that file.

Now we should configure the nginx virtual hosts. In order to make the default nginx file more concise, the virtual host details are in a different location.
sudo vi /etc/nginx/conf.d/default.conf

The configuration should include the changes below (the details of the changes are under the config information):
#
# The default server
#
server {
    listen       80;
    server_name example.com;

  
    location / {
        root   /usr/share/nginx/html;
        index index.php  index.html index.htm;
    }

    error_page  404              /404.html;
    location = /404.html {
        root   /usr/share/nginx/html;
    }

    error_page   500 502 503 504  /50x.html;
    location = /50x.html {
        root   /usr/share/nginx/html;
    }

    # pass the PHP scripts to FastCGI server listening on 127.0.0.1:9000
    #
    location ~ \.php$ {
        root           /usr/share/nginx/html;
        fastcgi_pass   127.0.0.1:9000;
        fastcgi_index  index.php;
        fastcgi_param  SCRIPT_FILENAME   $document_root$fastcgi_script_name;
        include        fastcgi_params;
    }
}


Here are the details of the changes:
Add index.php within the index line.

Change the server_name to your domain name or IP address (replace the example.com in the configuration)

Change the root to /usr/share/nginx/html;

Uncomment the section beginning with "location ~ \.php$ {",

Change the root to access the actual document root, /usr/share/nginx/html;

Change the fastcgi_param line to help the PHP interpreter find the PHP script that we stored in the document root home.

Save and Exit

Open up the php-fpm configuration:
sudo vi /etc/php-fpm.d/www.conf

Replace the apache in the user and group with nginx:
[...]
; Unix user/group of processes
; Note: The user is mandatory. If the group is not set, the default user's group
;    will be used.
; RPM: apache Choosed to be able to access some dir as httpd
user = nginx
; RPM: Keep a group allowed to write in log dir.
group = nginx
[...]

Finish by restarting php-fpm.
sudo service php-fpm restart

Step Seven—RESULTS: Create a php info page
Although LEMP is installed, we can still take a look and see the components online by creating a quick php info page

To set this up, first create a new file:
sudo vi /usr/share/nginx/html/info.php

Add in the following line:
<?php
phpinfo();
?>

Then Save and Exit.

Restart nginx so that all of the changes take effect:
sudo service nginx restart

Finish up by visiting your php info page (make sure you replace the example ip address with your correct one): http://IPAddress/info.php

It should look similar to this.

Set Up Autostart
You are almost done. The last step is to set all of the newly installed programs to automatically begin when the VPS boots.
sudo chkconfig --levels 235 mysqld on
sudo chkconfig --levels 235 nginx on
sudo chkconfig --levels 235 php-fpm on

Install Adobe Acrobat Reader in Ubuntu

Install Adobe Acrobat Reader in Ubuntu

sudo add-apt-repository "deb http://archive.canonical.com/ precise partner"
sudo apt-get update
sudo apt-get install acroread

install adobe flash player in ubuntu

install adobe flash player in ubuntu

sudo add-apt-repository "deb http://archive.canonical.com/ precise partner"
sudo apt-get update
sudo apt-get install flashplugin-installer




Find to install Openpanel on Centos

Installation
To install OpenPanel, add the following lines to your /etc/apt/sources.list:

deb http://download.openpanel.com/deb/ precise main
deb-src http://download.openpanel.com/deb/ precise main

where <distribution> should be replaced by the code name for your distribution. e.g. lenny, squeeze or wheezy for Debian, or lucid, maverick, natty, oneiric or precise for Ubuntu.
Then start the installation with the following commands. Make sure you execute these commands as user root. If you’re not root, type sudo -i first.

apt-key adv --keyserver keyserver.ubuntu.com --recv-keys 4EAC69B9
apt-get update
aptitude install openpanel-suggested

If exim4 is currently installed on your system, aptitude will suggest removing it. If so, aptitude will ask you to confirm this. Enter y when asked to do so.
During installation, you may be asked about the configuration for postfix. Set it to ‘internet site’ with all defaults.
If the apt-key step fails, try:

 wget -O- http://openpa.nl/key | apt-key add -

If the install-step fails, try repeating aptitude install -f to resolve iffy dependencies.
After installation you will need to set the password for the openpanel-admin user before you can log in through the gui. The installation procedure may ask you for a password. If not, start openpanel-cli (as root) and enter the following command:

When the setup is done, you need to set the admin password (without brackets):

sudo openpanel-cli
update user openpanel-admin password=< YOURPASS >
exit

If the above step fails, try the following (due to a bug) (also log in with these credentials afterwards, not openpanel ;) ):

openpanel-cli
create user username password=password name_customer="Full Name" emailaddress="emailaddress"
exit

Please note that the "create" line is on 2 lines, it ends with the emailaddress!

Now you can launch OpenPanel in your browser (Accept the untrusted certificate, as there is no SSL certificate for this machine):
https://< IP OF NAS >:4089
login: openpanel-admin
pass: < YOURPASS >

How to install Openpanel on linux

Installation
To install OpenPanel, add the following lines to your /etc/apt/sources.list:

deb http://download.openpanel.com/deb/ precise main
deb-src http://download.openpanel.com/deb/ precise main

where <distribution> should be replaced by the code name for your distribution. e.g. lenny, squeeze or wheezy for Debian, or lucid, maverick, natty, oneiric or precise for Ubuntu.
Then start the installation with the following commands. Make sure you execute these commands as user root. If you’re not root, type sudo -i first.

apt-key adv --keyserver keyserver.ubuntu.com --recv-keys 4EAC69B9
apt-get update
aptitude install openpanel-suggested

If exim4 is currently installed on your system, aptitude will suggest removing it. If so, aptitude will ask you to confirm this. Enter y when asked to do so.
During installation, you may be asked about the configuration for postfix. Set it to ‘internet site’ with all defaults.
If the apt-key step fails, try:

 wget -O- http://openpa.nl/key | apt-key add -

If the install-step fails, try repeating aptitude install -f to resolve iffy dependencies.
After installation you will need to set the password for the openpanel-admin user before you can log in through the gui. The installation procedure may ask you for a password. If not, start openpanel-cli (as root) and enter the following command:

When the setup is done, you need to set the admin password (without brackets):

sudo openpanel-cli
update user openpanel-admin password=< YOURPASS >
exit

If the above step fails, try the following (due to a bug) (also log in with these credentials afterwards, not openpanel ;) ):

openpanel-cli
create user username password=password name_customer="Full Name" emailaddress="emailaddress"
exit

Please note that the "create" line is on 2 lines, it ends with the emailaddress!

Now you can launch OpenPanel in your browser (Accept the untrusted certificate, as there is no SSL certificate for this machine):
https://< IP OF NAS >:4089
login: openpanel-admin
pass: < YOURPASS >

Prevent copying of files to USB drive on windows

Prevent copying of files to USB drive
There are times when you want to prevent others from copying your data but you still need them to be able to view it on your computer. The following tip will help you do exactly that.
As always it is the registry that comes to your rescue. Open the Registry Editor by typing regedit in RUN (WIN+R) dialog (more keyboard shortcuts). Go to th key
HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Control\StorageDevicePolicies

Create a new DWORD named WriteProtect (Right Click on right pane and select New»DWORD). Edit the value and make it 1. Just restart Windows explorer and you are done. Next time somebody tries to copy data to the external storage device they will see

If you need to copy something just make the stored value of WriteProtect to 0

Prevent Copy or Cut File From Computer to stick
Here I give a tips to prevent ther etrieval of data from computer you to a flash in the sense that one can not retrieve data from computers you to inserted into flash person, but you can still retrieve data
of flash to put into your computer.
Here are the steps:
1. Go to Regedit (Press Windows key + R and type regedit)
2. Sign in to HKEY_LOCALMACHINE \ SYSTEM \ CurrentControlSet \ Control \
3. Right-click on the Control folder and select New-> Key
4. Name the new folder with "StorageDevicePolicies"
5. Then right click on the folder with the name "StorageDevicePolicies",
and select New-> Dword
6. Give it the name "WriteProtect"
7. 2x click Dword with the name "WriteProtect", and replace Value Data into a
8. Restart your Computer
Here's a message that appears when someone tries to copy / cut data from a computer
you to be included in the flash


windows interview quations and answers

1. Q: What does Active Directory mean?
A: The active Directory means a service that identifies and handles resources, making them visible for different groups or members that are authorized. It has the role of an object store. The Active directory sees as objects workstations, people, servers devices or documents and they all have their own characteristics and access control list or ACL.

2.Q: What is the meaning of Global Catalog?
A: A Global Catalog is something that each domain has, and it is used for authenticating the user on the network, on windows 2000 network logon’s were protected from failures by assigning a Global Catalog to every site.

3.Q: What is the use for DHCP?
A: DHCP is used for the DHCP servers, personal computers can get their configuration from a DHCP server on an IP configuration. The server knows nothing about the personal computers until they make a request for information. Usually the most common information sent is IP address and DHCP is used to make a large network administration easier.

4.Q: What does a Super Scope do in DHCP?
A: The Super Scope gives the DHCP server the possibility to have leases to multiple clients on the same physical network. The leases come from multiple scopes. All scopes must be defined using DHCP manager before the Super Scope creation and they are named member scopes. The DHCP problems can be resolved by the Super Scope in different ways like the following:
a) on a physical network like a LAN network where multiple logical IP networks exist Super Scope is very useful here. These types of networks are also named multinets.
b) there is also need for a Super Scope when the address pool for the current scope becomes empty and there is a need for new computers on the physical network.
c) when clients have to move on another scope.
d) when DHCP clients from the other side of the relay agents (BOOTP) or the network has many logical subnets.
e) when standard networks are limited to leasing addresses for the clients.

5.Q: How can we switch the roles in an Active Directory?
A: Switching or transferring roles in an Active Directory can be made with the use of Ntdsutil.exe.

6.Q: What is the purpose of a Stub zone DNS?
A: The copy of a zone that has only the needed resources for finding the authoritative DNS servers in that specific zone (DNS= Domain Name Servers) is called a Stub zone. It also resolves names for DNS namespaces, thing required when names must be resolved from two different DNS namespaces. The Stub zone contains: the master server’s IP that is used for updating the Stub zone and the SOA (Start of Authority), the NS (name server) and the glue A delegated zone records.

5.Q: What main file is used for Active Directory backup and how it is made?
A: Active Directory backup is made using NTbackup utility. The backup is made once with the system state and they are restored also together because they depend on each other. The system state has different components like:
a) The registry
b) Boot files or startup files (files required by the operating system to start).
c) The component services
d) The system volume or the SYSVOL folder this is a folder that contains files that are shared on a domain.
e) The Active Directory

6.Q: Does a windows administrator have to be critical?
A: Yes and I can explain how. A system administrator is responsible for an entire network which means he/she must take care of multiple things in the same time which is not an easy task. In order to achieve this, an administrator must have high organization skills and a high technical knowledge and he/she must prevent the problems from happening so that he/she won’t have to be forced to fix them.

7.Q: In what way is forward lookup zone different from the reverse lookup zone in NDS?
A: There is one difference between these two: the forward lookup means name to IP and reverse lookup means IP to name.

8.Q: As a system administrator can you make backup and recovery of data?
A: This is a responsibility that any system administrator must have assume as a basic skill. Of course there are many types of backup that can be made but all must be known for a successful career.

9.Q: What is the meaning of DHCP and what is the port used by it to work?
A: DHCP or Dynamic Host Configuration Protocol has the ability to assign an IP automatically, this is done in fact by the server and has a number range. When the system starts an IP is assigned automatically. The DHCP server has port number 68, while the client has 67.

10.Q: Can you ensure an updated system all the time and perform market research?
A: Staying up-to-date is another strong point of a professional administrator, technology evolves and we must keep up with the flow, otherwise we can’t do our job in a professional way. Market research is the key to an up-to –date work.

11.Q: Is it possible for a computer to be able to browse the internet without having a default gateway?
A: Yes it is as long as we use a public IP address. The gateway is required as a router or firewall when using an intranet address.

12.Q: What are the advantages or disadvantages of using DHCP?
A: The advantage is that the DHCP server configures all IP’s automatically and the disadvantage is that when you receive a new IP address the machine name remains the same because of its association with the IP. It’s not a real problem but when somebody tries to access the machine by its name it become one.

13.Q: Are you familiar with monitoring?
A: Yes, monitoring is a base activity of a system administrator, he/she manages all the access rights and the server space, security of the user accounts is one of the most important things here. Also an administrator must make sure that the user’s activity doesn’t affect in any way the integrity of the server.

14.Q: How can we create a SRV record in DNS?
A: To do this we must open the DNS then we must select the abc.local domain the right click and we must go to Other New Records and the SRV ( choose location).

15.Q: In how much time are the security changes applied on the domain controllers?
A: Including policies for personal and public lockout, the changes apply immediately. The changes also include passwords and LSA or Local Security Authority.

16.Q: What do you do if a an end user states that a file is gone?
A: Files are deleted constantly by end users but the backup can restore them. Anyhow before using the backup we must check if the user didn’t move the file by mistake in another place.

17.Q: Where is the storage place of the environmental settings and documents from the roaming profile?
A: These documents and settings are deposited locally until the user’s log off, when they are moved into the shared folder from the server so the log on at a fresh system may take a while because of this.

18.Q: What are the classes that we can find in the Active Directory of Windows Server 2003?
A: We can find:
a) the abstract class which can be made to look like a template and create other templates, no matter if they are abstract, auxiliary or structural.
b) the structural class is the important type of class that is made from multiple abstract classes or an existing structural class. They are the only ones that can make Active Directory objects.
c) the auxiliary class is used as a replace for many attributes of a structural class, it is a list of attributes.
d) The 88 class is used for objects classes that were defined before 1993 and it is not a common class, it doesn’t use abstract, structural or auxiliary classes.

19.Q: When is a good time for creating a forest?
A: Certain companies that have different bases require different trees and separate namespaces. And unique names sometimes give birth to different identities of DNS. Also companies are sometimes acquired and get under other influences but the continuity must be preserved for the names.

20.Q: Can you explain to us about you experience in the past regarding windows administration?
A: I have ten years of experience in this field, I was passionate about computers since childhood and I installed many operating systems at home and inside organizations including these versions of windows: 95, 98, 98 SE, NT, Millenium, 2000, 2003 Server, XP, Seven, Vista. I also managed these systems and performed maintenance, I worked with different applications from the windows environment.

21.Q: How can you handle a situation in which for instance if you have an application that is not running on Windows 2003 because it’s older?
A: In this situation the application has to be started in the compatibility mode with a previously windows operating system. This is made by right clicking the application icon and choosing another Windows from the compatibility menu.

22.Q: What is the meaning of Repadmin.exe from Windows Server 2008?
A: Repadmin.exe means Replication Diagnostics Tool and helps for the diagnostic of domain controllers in the Windows system. This tool is used by administrators to see the replication topology from the perspective of every domain controller. The active Directory forest can also be supervised by Repadmin.exe and replication problems can be tracked.

23.Q: What difference can we find in the usage of CSVDE versus LDIFDE?
A: CSVDE and LDIFDE are both commands and are used for importing and exporting objects but they are different in the way that CSVDE uses the format CSV (Comma Separated Value) which is an Excel file for files and LDIFDE uses LDIF (LDAP Data Interchange Format) file type which can be viewed with a simple text editor. LDIFDE can be also used for editing or deleting objects unlike CSVDE.

24.Q: What big differences exist between these two operating systems: Windows 2000 and Windows XP?
A: Windows 2000 has more capabilities than Windows XP especially regarding features like DHCP, Terminal Services or DNS. It has all the advantages for server usage. Windows 2000 is a little more professional than XP, but they are both coming with different versions for every user taste. While XP has Home version, Professional or Enterprise, Windows 2000 has Professional and Server editions. The Home version of XP comes with minimal features because the target clients are beginners.

25.Q: What are the things that make Unix different from Windows?
A: The code loading runtime of Unix is different from the one that Windows has. We must become aware of how the system exactly works before we make a dynamically loading module. Unix has the shared objects with the .so extension that encapsulate lines of code that the programs will use and the functions names. These function names become the references of those functions in the memory of the program when the file is combined with the program. In Windows the .dll file (dynamic-link library file) doesn’t have references and the code of the files does not link to the memory of the program but they get through a lookup table which points to data or functions. Unix has just one type of library file, with the .a extension and the code of many object file is contained within with the .o extension. When the link is created for a shared object file the definition of the identifier may not be found, so the object code from the library will be included.

How to create Pure-FTPd Account on Ubuntu12.04

Pre-Installation

Install Pure-FTPd

  1. In a Linux shell run the following:
#apt-get install pure-ftpd-common pure-ftpd

  1. Now we need to create a new system group for pureftpd:
#groupadd ftpgroup

  1. Now we add a user for the group and give that user no permission to a home directory or a shell:
#useradd -g ftpgroup -d /dev/null -s /etc ftpuser

Create a new user

Lets create our first FTP user. In this example our user will be "Ramesh":
#pure-pw useradd Ramesh -u ftpuser -g ftpgroup -d
/home/pubftp/Ramesh -N 10

  1. In the above command we gave him a limit of 10 MB disk space with the option "-N 10". Now you have to enter Ramesh's new password twice.
  2. By default your users will be saved in /etc/pure-ftpd/pureftpd.passwd, but first we have to update the pureftpd Database:
#pure-pw mkdb

  1. The "Database" here is simply a binary file but it is ordered and has an index for quick access.

User Information

  1. To get some user details enter the following to get a complete list of all pureftpd users:
#pure-pw list

  1. If you want to show information about a specific user:
#pure-pw showRamesh

  1. This will show you detailed information about the user "Ramesh".
  2. You will notice that the line "Directory: /home/pubftp/Ramesh/./" has a trailing ./ but you shouldn't worry as this is simply the chroot for the user, which means he can't go "above" his directory.

Resetting a password

  1. If you forget the password for a user, you can reset it as follows:
#pure-pw passwdRamesh

  1. After a password reset update your database:
#pure-pw mkdb



Find to create Pure-FTPd Account on Ubuntu

Pre-Installation

Install Pure-FTPd

  1. In a Linux shell run the following:
#apt-get install pure-ftpd-common pure-ftpd

  1. Now we need to create a new system group for pureftpd:
#groupadd ftpgroup

  1. Now we add a user for the group and give that user no permission to a home directory or a shell:
#useradd -g ftpgroup -d /dev/null -s /etc ftpuser

Create a new user

Lets create our first FTP user. In this example our user will be "Ramesh":
#pure-pw useradd Ramesh -u ftpuser -g ftpgroup -d
/home/pubftp/Ramesh -N 10

  1. In the above command we gave him a limit of 10 MB disk space with the option "-N 10". Now you have to enter Ramesh's new password twice.
  2. By default your users will be saved in /etc/pure-ftpd/pureftpd.passwd, but first we have to update the pureftpd Database:
#pure-pw mkdb

  1. The "Database" here is simply a binary file but it is ordered and has an index for quick access.

User Information

  1. To get some user details enter the following to get a complete list of all pureftpd users:
#pure-pw list

  1. If you want to show information about a specific user:
#pure-pw showRamesh

  1. This will show you detailed information about the user "Ramesh".
  2. You will notice that the line "Directory: /home/pubftp/Ramesh/./" has a trailing ./ but you shouldn't worry as this is simply the chroot for the user, which means he can't go "above" his directory.

Resetting a password

  1. If you forget the password for a user, you can reset it as follows:
#pure-pw passwdRamesh

  1. After a password reset update your database:
#pure-pw mkdb



Find to create Pure-FTPd Account on Ubuntu12.10

Pre-Installation

Install Pure-FTPd

  1. In a Linux shell run the following:
#apt-get install pure-ftpd-common pure-ftpd

  1. Now we need to create a new system group for pureftpd:
#groupadd ftpgroup

  1. Now we add a user for the group and give that user no permission to a home directory or a shell:
#useradd -g ftpgroup -d /dev/null -s /etc ftpuser

Create a new user

Lets create our first FTP user. In this example our user will be "Ramesh":
#pure-pw useradd Ramesh -u ftpuser -g ftpgroup -d
/home/pubftp/Ramesh -N 10

  1. In the above command we gave him a limit of 10 MB disk space with the option "-N 10". Now you have to enter Ramesh's new password twice.
  2. By default your users will be saved in /etc/pure-ftpd/pureftpd.passwd, but first we have to update the pureftpd Database:
#pure-pw mkdb

  1. The "Database" here is simply a binary file but it is ordered and has an index for quick access.

User Information

  1. To get some user details enter the following to get a complete list of all pureftpd users:
#pure-pw list

  1. If you want to show information about a specific user:
#pure-pw showRamesh

  1. This will show you detailed information about the user "Ramesh".
  2. You will notice that the line "Directory: /home/pubftp/Ramesh/./" has a trailing ./ but you shouldn't worry as this is simply the chroot for the user, which means he can't go "above" his directory.

Resetting a password

  1. If you forget the password for a user, you can reset it as follows:
#pure-pw passwdRamesh

  1. After a password reset update your database:
#pure-pw mkdb



Find to create Pure-FTPd Account on Centos

Pre-Installation

Install Pure-FTPd

  1. In a Linux shell run the following:
#apt-get install pure-ftpd-common pure-ftpd

  1. Now we need to create a new system group for pureftpd:
#groupadd ftpgroup

  1. Now we add a user for the group and give that user no permission to a home directory or a shell:
#useradd -g ftpgroup -d /dev/null -s /etc ftpuser

Create a new user

Lets create our first FTP user. In this example our user will be "Ramesh":
#pure-pw useradd Ramesh -u ftpuser -g ftpgroup -d
/home/pubftp/Ramesh -N 10

  1. In the above command we gave him a limit of 10 MB disk space with the option "-N 10". Now you have to enter Ramesh's new password twice.
  2. By default your users will be saved in /etc/pure-ftpd/pureftpd.passwd, but first we have to update the pureftpd Database:
#pure-pw mkdb

  1. The "Database" here is simply a binary file but it is ordered and has an index for quick access.

User Information

  1. To get some user details enter the following to get a complete list of all pureftpd users:
#pure-pw list

  1. If you want to show information about a specific user:
#pure-pw showRamesh

  1. This will show you detailed information about the user "Ramesh".
  2. You will notice that the line "Directory: /home/pubftp/Ramesh/./" has a trailing ./ but you shouldn't worry as this is simply the chroot for the user, which means he can't go "above" his directory.

Resetting a password

  1. If you forget the password for a user, you can reset it as follows:
#pure-pw passwdRamesh

  1. After a password reset update your database:
#pure-pw mkdb



Find to create Pure-FTPd Account on Linux

Pre-Installation

Install Pure-FTPd

  1. In a Linux shell run the following:
#apt-get install pure-ftpd-common pure-ftpd

  1. Now we need to create a new system group for pureftpd:
#groupadd ftpgroup

  1. Now we add a user for the group and give that user no permission to a home directory or a shell:
#useradd -g ftpgroup -d /dev/null -s /etc ftpuser

Create a new user

Lets create our first FTP user. In this example our user will be "Ramesh":
#pure-pw useradd Ramesh -u ftpuser -g ftpgroup -d
/home/pubftp/Ramesh -N 10

  1. In the above command we gave him a limit of 10 MB disk space with the option "-N 10". Now you have to enter Ramesh's new password twice.
  2. By default your users will be saved in /etc/pure-ftpd/pureftpd.passwd, but first we have to update the pureftpd Database:
#pure-pw mkdb

  1. The "Database" here is simply a binary file but it is ordered and has an index for quick access.

User Information

  1. To get some user details enter the following to get a complete list of all pureftpd users:
#pure-pw list

  1. If you want to show information about a specific user:
#pure-pw showRamesh

  1. This will show you detailed information about the user "Ramesh".
  2. You will notice that the line "Directory: /home/pubftp/Ramesh/./" has a trailing ./ but you shouldn't worry as this is simply the chroot for the user, which means he can't go "above" his directory.

Resetting a password

  1. If you forget the password for a user, you can reset it as follows:
#pure-pw passwdRamesh

  1. After a password reset update your database:
#pure-pw mkdb



Creating an Pure-FTPd Account on Linux

Pre-Installation

Install Pure-FTPd

  1. In a Linux shell run the following:
#apt-get install pure-ftpd-common pure-ftpd

  1. Now we need to create a new system group for pureftpd:
#groupadd ftpgroup

  1. Now we add a user for the group and give that user no permission to a home directory or a shell:
#useradd -g ftpgroup -d /dev/null -s /etc ftpuser

Create a new user

Lets create our first FTP user. In this example our user will be "Ramesh":
#pure-pw useradd Ramesh -u ftpuser -g ftpgroup -d
/home/pubftp/Ramesh -N 10

  1. In the above command we gave him a limit of 10 MB disk space with the option "-N 10". Now you have to enter Ramesh's new password twice.
  2. By default your users will be saved in /etc/pure-ftpd/pureftpd.passwd, but first we have to update the pureftpd Database:
#pure-pw mkdb

  1. The "Database" here is simply a binary file but it is ordered and has an index for quick access.

User Information

  1. To get some user details enter the following to get a complete list of all pureftpd users:
#pure-pw list

  1. If you want to show information about a specific user:
#pure-pw showRamesh

  1. This will show you detailed information about the user "Ramesh".
  2. You will notice that the line "Directory: /home/pubftp/Ramesh/./" has a trailing ./ but you shouldn't worry as this is simply the chroot for the user, which means he can't go "above" his directory.

Resetting a password

  1. If you forget the password for a user, you can reset it as follows:
#pure-pw passwdRamesh

  1. After a password reset update your database:
#pure-pw mkdb



How to create FTP Account on Ubuntu



Create a FTP user group. eg: ftpaccounts
#/usr/sbin/groupadd ftpaccounts

Add a new user to this group, and set the default path of that user to /home/user/.
#/usr/sbin/adduser -g ftpaccounts -d /home/user/ testuser

Set a password for the newley created user.
#passwd testuser

Set ownership of /home/user to the testuser and ftpaccounts.
#chown testuser:ftpaccounts /home/user

Give Read/Write access to testuser and all members in ftpaccounts
#chmod 775 /home/user

Edit /etc/vsftpd/vsftpd.conf file and make sure 'local_enable=YES' is uncommented.

Restart the vsftpd service.
#/etc/init.d/vsftpd restart

How to create FTP Account on Ubuntu12.04



Create a FTP user group. eg: ftpaccounts
#/usr/sbin/groupadd ftpaccounts

Add a new user to this group, and set the default path of that user to /home/user/.
#/usr/sbin/adduser -g ftpaccounts -d /home/user/ testuser

Set a password for the newley created user.
#passwd testuser

Set ownership of /home/user to the testuser and ftpaccounts.
#chown testuser:ftpaccounts /home/user

Give Read/Write access to testuser and all members in ftpaccounts
#chmod 775 /home/user

Edit /etc/vsftpd/vsftpd.conf file and make sure 'local_enable=YES' is uncommented.

Restart the vsftpd service.
#/etc/init.d/vsftpd restart

Find to create FTP Account on Ubuntu12.10



Create a FTP user group. eg: ftpaccounts
#/usr/sbin/groupadd ftpaccounts

Add a new user to this group, and set the default path of that user to /home/user/.
#/usr/sbin/adduser -g ftpaccounts -d /home/user/ testuser

Set a password for the newley created user.
#passwd testuser

Set ownership of /home/user to the testuser and ftpaccounts.
#chown testuser:ftpaccounts /home/user

Give Read/Write access to testuser and all members in ftpaccounts
#chmod 775 /home/user

Edit /etc/vsftpd/vsftpd.conf file and make sure 'local_enable=YES' is uncommented.

Restart the vsftpd service.
#/etc/init.d/vsftpd restart

Find to create FTP Account on Centos



Create a FTP user group. eg: ftpaccounts
#/usr/sbin/groupadd ftpaccounts

Add a new user to this group, and set the default path of that user to /home/user/.
#/usr/sbin/adduser -g ftpaccounts -d /home/user/ testuser

Set a password for the newley created user.
#passwd testuser

Set ownership of /home/user to the testuser and ftpaccounts.
#chown testuser:ftpaccounts /home/user

Give Read/Write access to testuser and all members in ftpaccounts
#chmod 775 /home/user

Edit /etc/vsftpd/vsftpd.conf file and make sure 'local_enable=YES' is uncommented.

Restart the vsftpd service.
#/etc/init.d/vsftpd restart

How to create FTP Account on Linux.



Create a FTP user group. eg: ftpaccounts
#/usr/sbin/groupadd ftpaccounts

Add a new user to this group, and set the default path of that user to /home/user/.
#/usr/sbin/adduser -g ftpaccounts -d /home/user/ testuser

Set a password for the newley created user.
#passwd testuser

Set ownership of /home/user to the testuser and ftpaccounts.
#chown testuser:ftpaccounts /home/user

Give Read/Write access to testuser and all members in ftpaccounts
#chmod 775 /home/user

Edit /etc/vsftpd/vsftpd.conf file and make sure 'local_enable=YES' is uncommented.

Restart the vsftpd service.
#/etc/init.d/vsftpd restart

Creating an FTP Account on Linux



Create a FTP user group. eg: ftpaccounts
#/usr/sbin/groupadd ftpaccounts

Add a new user to this group, and set the default path of that user to /home/user/.
#/usr/sbin/adduser -g ftpaccounts -d /home/user/ testuser

Set a password for the newley created user.
#passwd testuser

Set ownership of /home/user to the testuser and ftpaccounts.
#chown testuser:ftpaccounts /home/user

Give Read/Write access to testuser and all members in ftpaccounts
#chmod 775 /home/user

Edit /etc/vsftpd/vsftpd.conf file and make sure 'local_enable=YES' is uncommented.

Restart the vsftpd service.
#/etc/init.d/vsftpd restart