The first step: the completion of the file-sharing LINUX and WINDOWS
If LINUX and WINDOWS to file sharing function, so must their IP addresses must be in the same network segment, you enter the command in a virtual machine: ifconfig, will be displayed
eth0 Link encap: Ethernet HWaddr 00:0 C: 29: F2: 62: D2
inet addr: 192.168.76.18 Bcast: 192.168.76.255 Mask: 255.255.255.0
UP BROADCAST RUNNING MULTICAST MTU: 1500 Metric: 1
RX packets: 52 errors: 0 dropped: 0 overruns: 0 frame: 0
TX packets: 63 errors: 0 dropped: 0 overruns: 0 carrier: 0
collisions: 0 txqueuelen: 100
RX bytes: 6997 (6.8 Kb) TX bytes: 7359 (7.1 Kb)
Interrupt: 10 Base address: 0x1400
You can find a virtual machine on my LINUX above IP address: 192.168.76.18, and we installed a virtual machine when the windows will be found in two of the above will be more virtual network card, and one above my WINDOWS a virtual network card IP address: 192.168.76.1.
So both of our cards on the same network segment soon had. Some people may ask, how old my ifconfig command shows no eth0 network card configuration information?
That is eth0 is not activated by default!
Step two: start eth0 network card
Enter the command above in the virtual machine setup, the menu that appears select the Network configuration menu inside, and then configure your IP address, configuration is complete, restart your LINUX operating system.
The third step: file transfer to achieve WINDOWS and LINUX
Are we going to use the land to the SAMBER servers do not work, is now generally realized between WINDOWS and LINUX file transfer, using VSFTP, first of all we have to start linux in the vsftp server, enter the command service vsftpd start. And it is set to default boot, use the command
chkconfig vsftpd on. This opens the vsftp server.
Jump back to the WINDOWS, enter the cmd command ping + LINUX ip address, if the ping unreasonable, then there may be problems linux firewall, enter the command service iptables stop. ping through later, indicating a successful information exchange WINDOWS and LINUX.
For safety considerations, root user is forbidden ftp server login using vi editing / etc / vsftpd.ftpusers this file, found a root, then it commented out, / etc / vsftpd.user_list this file which also has a root, it commented. Well, we can use the root user in windows platform to pass up the paper. I'm using leapFtp software.
End of this software to set the IP address of LINUX, you can find it listed in the file directory LINUX.
Step four: Install tomcat6, mysql5, jdk6.
The tomcat.tar.gz, jdk.bin, mysql.rpm upload to your linux on virtual machine. First install JDK6, my software is jd6.bin, then use the command ./jdk6.bin, the system is installed by default, if permission is not enough, then use the command chmod u + x jdk6.bin.
Installed jdk6, we have to configure the java environment variables. Modify / etc / profile file, set the java environment variable Vi / etc / profile in its last line with JAVA_HOME = / usr/java/jdk1.6.