From windows to fc8

Source: Internet
Author: User
It has been a long time since I first came into contact with Linux. This semester, due to team management and project reasons, I have neglected Linux. Recently, for various subjective and objective reasons, I decided to migrate all the major work environments in Windows to Linux. By
As a result, I was not satisfied with the hardware support provided by earlier Linux versions in a laptop-mounted system. Now I am catching up with Fedora Core.
8. It was just released and reflected by netizens, so I couldn't wait to download and install it. Haha, now my laptop hardware is fully compatible, and the error in the NIC driver has been corrected because
This is a perfect system. The following is the migration process of the environment.

I,Install Fedora Core 8 In general, the fc8 installation process is not much different from the RedHat or fc6 previously used, so it was completed smoothly. However, for beginners, although it can be used by default, there are several points to note: 1. Check whether there is an error in the installation media: in this case, fc7 was tried before fc8 was installed. As a result, it prompts that an installation package is corrupt and has to exit after formatting the partitions, what's worse is that the boot zone is gone and Windows cannot be used. So it is best to check to avoid similar situations. 2. LINUX partition: You can view all partitions in windows. However, Windows drive letters (C:, d :) are not used in UNIX, therefore, you must first understand how Linux represents partitions. Depending on the type of the hard disk interface, you may see "hda" under the hard drivers entry. N "Or" SDA N ", Where HD and SD indicate the hard disk interface type; A indicates that the first hard disk can be recognized by Linux, and so on; N Yes
Partition Number. For a hard disk, there can be a maximum of four primary partitions. Therefore, the number of the primary partition is 1 to 4. The next step is to expand the partition. Generally, the hard disk is divided into one primary partition, so what you see behind 1 is 5.
(This indicates drive C and drive D in windows, and so on ). Windows certainly cannot identify Linux partitions. Therefore, if two systems coexist, you must
First, consider deleting the Windows partition. Select create m when partitioning.
Layout. By default, it splits the disks that can be installed into two zones: the numbers of the two zones N Next to the Windows partition, one of which is the/boot Partition
Set the startup information). The other is volgroup00, which is hard.
The LVM entry above the drivers entry is convenient for disk management. You can further segment each partition in it. The following are some suggestions for beginners: One/home partition, which stores all
The size of non-root user information depends on the specific situation. For a swap partition, although Linux suggests two times the memory, it is not necessarily necessary, memory larger than MB can be tuned
A little smaller; A/usr partition, used to install software, should be as big as possible; the last is the/(Root) partition, if the above partition can be effectively used, root partitions do not need to be too large (for beginners only ),
M is enough. 3. Select a software package: if the hard disk space is allowed, select it all to avoid problems during use. The installation requires nearly 12 GB of space. 4. Before the installation is complete, it is best to add some users, such as engineers, for professional work; Researcher, for learning new knowledge; player, for entertainment. This is only a suggestion. It is not mandatory. If no new user is added, you can use the root user to log on. He has the highest permission.

2. customized Linux System determines that the process and results of the
system vary from person to person. It should be noted that Chinese garbled characters may occur during use, and there are many reasons for this problem, it has something to do with the login language you choose, the system library and the Language Processing of the software itself, the more common approach is to select the language single when logging on
Chinese (UTF-8 ), this makes it easier to set the system language environment as Chinese, there are many articles On the Internet. You can modify the/etc/sysconfig/i18n file to solve the Garbled text
, but the effect is not satisfactory; if garbled characters exist, you can adjust the system font. either Chinese or English, there must be at least one font that can display Chinese normally. Other garbled issues need to be analyzed in detail. Decompress the chmview and run the following command:

Chmod A + x chmviewmv chmview/usr/local/binCD/usr/local/bin execute one of the following based on different browsers: MV chmview chmview_opera (opera) mV chmview chmview_fox (Firefox) mV chmview chmview_moz (Mozilla) mV chmview chmview_konq)
Choose "K"> "Control Center"> "KDE component"> "File Association", and search for the chm format. Program Add one of the above files in the association sequence. Double-click the CHM file and you will be able to view it normally. Go to http:
// Download the latest Flash Player and Adobe Reader from www.adobe.com.
Run the following command rpm-IVH in the terminal location to the download directory.
*. Rpm can be used to install the above software, so that you can double-click to view the Chinese PDF and SwF animations. Fc8
Firefox is much slower to start than before, but you can use the following method to increase the speed: Enter about: config in the address bar to bring up its parameter settings page, find
Network. DNS. disableipv6, network. http. pipelining
Network. http. Proxy. pipelining and set all to true.
Network. http. pipelining. maxrequests is set to 30. If the Web server is enabled on the local machine, set the home page to the local address.
It's much faster.

III,Configure the development environment By
All the software has been installed before, so the environment for non-Microsoft languages such as C, C ++, Java, PHP, and Python has been configured, in addition, Linux
It provides powerful development tools, such as VI and kdevelop, And the fc8 software version is basically the latest. So far, we can develop it normally, but from a learning perspective.
You can install the relevant software from the beginning (the installation is based on root ).

1. Install JDK 6 Required knowledge: Linux environment variables Linux Of
In other words, environment variables are constants that are exported using the Export keyword. For example, export java_home defines an environment variable named java_home. Therefore
You can add environment variables for the current user at any time. Since it is a constant, its value will not change by itself, so you only need to export these constants every time you start the system or log on to the user. Of course, this
Does not need to be manually executed. Linux provides some automatic execution scripts to help achieve this goal. The two most commonly used scripts are/etc/profile and/home/ User Name/. Bash_profile, which corresponds to the global execution script and user execution script respectively. In other words, the export variable in profile is a global variable, and the export variable in. bash_profile is a user variable. A. Download the-rpm. Bin corresponding to JDK 6 from the http://www.sun.com (this is the binfile installed through the RPM package), run the file, and install it as prompted. B. Run rpm-QL Java (or rpm-QL JDK) on the terminal to check the JDK 6 installation directory. Then you can get the JDK installation directory and add the global environment variable:
Export java_home =Installation DirectoryExport classpath = $ java_home/lib/dt. jar: $ java_home/lib/tools. jarexport Path = $ java_home/bin: $ path
C. In fact, there are already several Java versions on the system. Therefore, select the default Java program and execute the following command:
Source/etc/profilealternatives--install/usr/bin/Java $ java_home/bin/Java alternatives---config Java#In allJavaSelect the installation path. The following steps are optional.Ln-S/usr/bin/javac $ java_home/bin/javacln-S/usr/bin/javap $ java_home/bin/javapln-S/usr/bin/javah $ java_home/ bin/javah

2. Install myeclipse6 and netbeans6 this step is not necessary, just to continue the tools used in windows. Download the BIND file from http:
// www.myeclipse.org and http://www.sun.com. Open the terminal, locate the downloaded directory, and run the binfile. The following message may be displayed: Java: xcb_xlib.c: 82: xcb_xlib_unlock: assertion 'C-> xlib. lock'
failed. This is the most common problem encountered by Java programs in fc8. The solution is to download libxcb-devel from http://rpm.pbone.net/< br>-1.1-1. fc9.i386. RPMs and libxcb-1.1-1. fc9.i386. rpm, and then install: rpm-uvh
libxcb *. rpm; then add the following row in/etc/profile: Export
libxcb_allow_sloppy_lock = true. After logging out or restarting the system, run the installation program again to install myeclipse6 and
netbeans6. Since
This netbeans6 can be used normally, but myeclipse6 does not work, because fc8 puts the eclipse Startup File under/usr/bin during installation, because
This myeclipse file cannot be found in the main directory of eclipse (/usr/share/eclipse) and cannot be started. There are many such solutions, the simplest
is to copy/usr/bin/eclipse to the eclipse installation directory.

3. Install flex builder for LinuxNow Adobe has finally begun to consider the use of Flex by our Linux users, so I am sorry for those units fighting Microsoft if I don't install flex builder for Linux. However, this process is quite painful. However, it was successfully installed with the help of a foreigner. A. Make sure that eclipse3.3, JDK 5 or JDK 6 are installed and Java environment variables are configured. Do not directly use the system JDK 7. B. Download the BIND file from the http://labs.adobe.com and execute it. C.
Because the previous installation is continued, an error is prompted during the installation of the Eclipse plug-in. View/usr/share/Eclipse/configuration/
Some plug-ins conflict with myeclipse plug-ins. The solution is to rename the links folder and reinstall the plug-ins. Do not forget to change the name back. D. because the current flex builder for Linux plug-in is installed, you can start eclipse from adobe_flex_builder.sh in the root directory of the installation for normal use, or move the variables in the script to the environment variables.

4. Install Oracle 10g for Linux Although I have heard that installing oracle in Linux is quite painful, I decided to migrate Oracle to Linux, finally, Oracle 10g for Linux was successfully installed in two days without any help. In fact, the installation CD contains the installation manual. Minimum System Configuration Requirements: A. Hardware Ram : 512 m; Swap : 1g; /Tmp : 400 m Software : 2.5 GB Data : 1.2 GB B. Operating System Redhat-2.1; Redhat-3; SuSE-8; SuSE-9; UnitedLinux-1.0 C. Software Package Gcc-3.2.3-34; Gcc-C ++-3.2.3-34; Glibc-2.3.2-95.20; Make-3.79.1; Openmotif21-2.1.30-8; Setarch-1.3-1; Compat-db-4.0.14-5; Compat-gcc-7.3-2.96.128; Compat-gcc-C +++-7.3-2.96.128; Compat-libstdc ++-7.3-2.96.128; Compat-libstdc ++ devel-7.3-2.96.128 Installation Process:.
Search Oracle 10g for Linux to get Oracle 10g
1.0.3. The file name is basically the same, which contains the fields that identify the ISO content. DB corresponds to the server tool, client corresponds to the client tool, and two other files are
Optional. html for CCD
DB, CRS corresponds to CRS. Some people say that 10 Gbit/s has been reduced from 3 CDs to 1 for 9i, but this is actually a DB. Therefore, to manage oracle in a graphic interface, such as an OEM
No. You must download the client tool. B. In the/etc/RedHat-release file, the Red Hat Enterprise Linux as Release 3 (taroon) spoofs the installer. Otherwise, the installer cannot be installed because the operating system is inconsistent. C. Check the hardware configuration:
GRepMemtotal/Proc/meminfo Grep SwapTotal/Proc/meminfoDF-H/tempDF-H
D. Check the software configuration.
CAT/etc/issue # If the operating system is not supported, add Red Hat Enterprise Linux as Release 3 (taroon) to the file/etc/RedHat-release rpm-QPackage name# If RPM package is not installed, you can go to the http://www.pbone.net to download again rpm-uvhPackage*. Rpm.
E. Create oracle users, groups, related folders, and Environment Variables
Groupadd oracleinstallergroupadd incluledbauseradd-G oracleinstaller-G oracledba wargreymkdir/usr/local/wargrey/oraclemkdir/usr/local/wargrey/oradatachown grey: oracledba-r/usr/local/wargreyexport oracle_base =/usr/local/wargrey/oracleexport ORACLE_HOME = $ oracle_base/product/10.1.0/db_1export oracle_sid = wargreyexport Path = $ ORACLE_HOME/bin: $ path
F. edit/etc/sysctl. conf to modify Kernel Parameters
Kernel. Shmall = 2097152 # total available shared memory. Kernel. shmmax = 2147483648 # maximum size of shared memory segments. Kernel. shmmni = 4096 # maximum number of shared memory segments of the entire system. Kernel. SEM = 250 32000 100 128 # maximum number of signal objects in each signal object set; Maximum number of signal objects in the system range; Maximum number of operations supported by each signal object; the maximum number of signal objects in the system range. FS. File-max = 65536 # maximum number of file handles allowed in the system. Net. ipv4.ip _ local_port_range = 1024 65000 # IPv4 port range available for applications. Net. core. rmem_default = 1048576 # default net. core. rmem_max = 1048576 # maximum size of the socket receiving buffer. net. core. wmem_default = 262144 # default net. core. wmem_max = 262144 # maximum size of the socket sending Buffer
G. Set Kernel Parameters
Edit the/etc/sysctl. conf fileKernel. shmall= 2097152 # Total available shared memory. Kernel. shmmax = 2147483648 # Maximum size of shared memory segments. Kernel. shmmni = 4096 # The maximum number of shared memory segments of the entire system. Kernel. SEM = 250 32000 100 128 # The maximum number of signal objects in each signal object set; the maximum number of signal objects in the system range; the maximum number of operations supported by each signal object; and the maximum number of signal object sets in the system range. FS. File-max = 65536 # The maximum number of file handles allowed in the system. Net. ipv4.ip _ local_port_range = 1024 65000 # Applicable applications IPv4 Port range. Net. Core. rmem_default = 1048576 # Default Value of the socket receiving buffer size Net. Core. rmem_max = 1048576 # Maximum size of the socket receiving buffer Net. Core. wmem_default = 262144 # Default Value of the buffer size sent by the socket Net. Core. wmem_max = 262144 # Maximum size of the socket sending Buffer Edit/etc/security/limits. conf File * Soft nproc 2047 * Hard nproc 16384 * Soft nofile 1024 * Hard nofile 65536 Edit the/etc/PAM. d/login file Session required/lib/security/pam_limits.so
H. Log On As A wargrey user, mount the installation media, run the runinstaller file under the root directory of the media on the terminal, and select "Advanced installation" to install the database software step by step as prompted. The installation sequence is BD. À Client. I. Run netca and dbca to install the database. J.
Check whether/etc/oratab or/var/opt/Oracle/oratab exists (only one exists), create or open it, and change it to $ oracle_sid:
$ ORACLE_HOME: Y, modify $ ORACLE_HOME/dbstart, find the oratab variable, and change its value to the full path of the above file. K. Add the Oracle service and create the file/etc/init. d/oracle. Add the following Code :
#! /Bin/sh # Chkconfig 2345 50 50 # Description manager the Oracle 10g instances and tools such as LSNRCTL and isqlplusctl Export ORACLE_HOME =/usr/local/wargrey/Oracle/product/10.1.0/db_1 Export oracle_own = wargrey ./Etc/init. d/functions Export path =$ {path}: $ ORACLE_HOME/bin Start (){ Echo "starting the Oracle 10g" Su-L $ oracle_own-c "$ ORACLE_HOME/bin/dbstart" Su-L $ oracle_own-c "$ ORACLE_HOME/bin/LSNRCTL start" Su-L $ oracle_own-c "$ ORACLE_HOME/bin/isqlplusctl start" Touch/var/lock/subsys/Oracle10g } Stop (){ Echo "shutting down the Oracle 10g" Su-L $ oracle_own-c "$ ORACLE_HOME/bin/isqlplusctl stop" Su-L $ oracle_own-c "$ ORACLE_HOME/bin/LSNRCTL stop" Su-L $ oracle_own-c "$ ORACLE_HOME/bin/dbshut" Rm-F/var/lock/subsys/Oracle10g } Case $1 in 'Start ') Start ;; 'Stop ') Stop ;; 'Restart ') Stop Start ;; *) Echo "Usage: $0 {START | stop | restart }" Exit ;; Esac Exit $?
Run the following command:
Chmod A + x/etc/init. d/oraclechkconfig -- add oraclechkconfig -- level 06 Oracle off
Now, the development environment configuration is complete.
Related Article

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.