1, how to upgrade, compile the kernel?
If you don't want to change the kernel version, go directly to step fourth below.
1 in any subdirectory (but usually under/usr/src/) Untar unlock the new kernel source program:
Tar xvfz linux-x.x.xx.tar.gz (e.g. linux-2.0.35.tar.gz)
or a patch (patch): GZIP-CD patch-2.0.35.gz | Patch-p0
Skip the patch and jump straight to step fourth.
2) Rm/usr/src/linux This is usually a symbolic connection.
3 Create a symbol to connect to your new kernel directory under/usr/src/.
Ln-s/usr/src/linux.2.x.xx/usr/src/linux
The older version of the kernel may also have to do the work:
Cd/usr/include
RM-RF ASM Linux SCSI
Ln-s/usr/src/linux/include/asm-i386 ASM
Ln-s/usr/src/linux/include/linux Linux
Ln-s/USR/SRC/LINUX/INCLUDE/SCSI SCSI
4 The current directory into/usr/src/linux
Cd/usr/src/linux
5 becomes Superuser su
6) Configure the kernel
If you are under X window and want to have a graphical interface, use: Make Xconfig
(Note: The TK/TCL package needs to be installed and the resolution of X server is above 800x600)
If you are not under X window or do not want to use the graphical interface, use:
Make config or make menuconfig (recommended), after answering the question one by one, wait a moment, wait for a prompt to appear or the graphical interface disappears, configure the system.
7 to generate a new kernel, with:
Make DEP; Make clean
Make zimage (or further compress the kernel with make bzimage)
(Note that there are case sensitive)
There are also make Zlilo/make install and so on to choose from.
8 If you use a module, you also need to build and install the module
Make modules
Make Modules-install
Depmod-a
9 Check/etc/lilo.conf, the use of the directory, that file as image. Example: Image =/boot/vmlinuz (Slackware version is/vmlinuz)
Copy the/usr/src/linux/system.map to the/boot directory,
Copy the/usr/src/linux/arch/i386/boot/zimage to the/boot directory and rename it to Vmlinuz
Copy the new kernel to the appropriate directory with a new file name, such as
Cp/usr/src/linux/arch/i386/boot/zimage/boot/zimage2
Then edit the/etc/lilo.conf file and copy the section that is related to the original kernel, such as
Image =/boot/vmlinuz
root =/dev/hda1
label = Linux
After copying the image into/boot/zimage2 to change the label to Newlinux.
This allows the new kernel to coexist with the old kernel, and when the new kernel does not start, there are backups. Note Where to place the copy and, if default is not set, who is the first item and who is the default startup item.
10 Install the new kernel and reboot.
Lilo
Shutdown-r now
(Hint: When starting Lilo, when "Lilo:" Prompts, press the TAB key to display all bootable items (defined by label)
2, Linux In addition to Emacs, there are those who write programs with editing software?
Character mode has WPE (Window programming environment), very similar to Borland c++3.1 for DOS. There are xwpe under X windows, if you have this on the Redhat,cdrom, and code-crusader you can try it, joe,jed/xjed,nedit,kde band Kedit, The ksrcedit of Kbuilder band can be used for reference. Where Xjed, Ksrcedit is color text editing, Joe/jstar hotkey and Turbo C are basically the same. You can also download C-FORGE,SOURCENAVIGATOR,SN to 166.111.68.98 is commercial software.
3. Introduce the narrative language provided by Shell in Linux?
In DOS, we can write a long list of commands. BAT file in order to automate a series of actions, which can be done by setting the alias in profile or. profiles, when. Bat is too complex to write with the narrative language (scripting language) provided by the shell: it's powerful and easy to use. , you can use variables, there are while,for,case if. Then.. else, the grammatical structure, and can be used as a substitute for programming language.
To write a script, like writing a. bat in DOS, just write an ASCII file that contains the instructions you want, and then save it. The system's default editor, called VI, is not easy to use, and other editors such as Joe or X's Emacs can be used. The following is the VI common operation method:
1 To add a paragraph of text to the article: Press ' I ';
2 Leave VI but do not store article: Press ESC, then key q!
3 Leave and Save: Press ESC, then key Wq
Here are some shell script examples:
EXAMPLE 1:first_script
#!/bin/sh
# I am a comment
# don ' t change the ' the ' the ' the ' the ' line-it ' got to be there
echo "Today is ' Date '"
echo "My name is" $
echo "You gave me the following" $# "Parameters:" $*
echo "parameter is" $
echo "Have you grasped the trick?"
EXAMPLE 2:2exe
#!/bin/sh
echo "Making" $ executable ... "
chmod u+x $
EXAMPLE 3:backup
#!/bin/sh
echo "Copying files in ~/bak ... "
For name in $*
Todo
CP ${name} ~/bak
Done
Use this command: $ chgmod u+x to execute the script, and when you want to execute it, type its filename.
4, where has the Linux C language library function manual?
See Chapter three with xman command
5, does Linux have database management software? (for example, like Informix)
Linux has several DBMS, where Ingres may be closest to Informix, but it needs to be compiled on its own, and its maintenance and further development seems less active. At present it seems PostgreSQL better, Redhat-5.0 with this DBMS and its development system. mSQL and MySQL are also good. Informix and Sybase's for Linux versions have come out and can go to their site for a look.
OPEN link:http://www.openlinksw.com/(provides a large amount of ODBC JDBC, charged)
postodbc:http://logical.thought.net/postodbc/this for free;
perl:http://www.perl.com/
php:http://www.php.net/Mature Database Interface provider Perl.module
6. How to debug a CGI script?
For some simple perl-cgi, can be required to enter the variables in the program, and then su Nobody run debugging, the results are correct, and then the scheduled variables removed, put into the HTTP server, generally can be.
7, Linux under the Motif programming software package?
Motif because it is not free, slow to run, not recommended, now has KDE. If you really want to develop motif interface, it is best to use TCL/TK to do so, which can greatly save the development time, but also developed the program to run efficiency. Simply use Tcl, or you can write scripts in Perl, and then use the TK Toolkit for bonding. Both Tcl and Perl have the ability to work in concert with C + + programs. In this way, parts of the program with high speed requirements are written in C + + and then embedded in Tcl or Perl scripts.