Cmake is a cross-platform automated construction system. It uses a file named cmakelists.txt to describe the building process and generate standard building files, for example, makefile of Unix or projects/workspaces of Windows visual c ++. The file
Computers, including the above software, have always been used as tools and tools. When it comes to problems, we will go to online communism. Now, I want to customize the Linux operating system and use it in mobile phones and mobile phones. The
Use VI to open/etc/udev/rules. d/70-persistent-net.rules,
The content of this file is:
# This file maintains persistent names for network interfaces.# See udev (7) for syntax.## Entries are automatically added by the
Recently, we have been cropping the Linux kernel. Today we try to create a USB flash drive. Instead of using the file system of the original system, we directly use initrd. the file system in img finally obtains a bash without logging on to or
1. to install it under the root user, the installation may fail under other users.
2. If the "floating point exception" is displayed after the installation is successful, it may be your Linux
Generally, you can reinstall another version of Linux
I think every programmer knows the linked list very well. The structure is like a chain, one by one, and the access to it is a bit like a sugar gourd. If you want to eat the second one, you must first eat the first one. This is a one-way linked list.
From: http://www.cic.tsinghua.edu.cn/jdx/book1/CHAPTER3.htm
Add the # include statement to the source file.
Call the WSAStartup () function to initialize Windows Sockets DLL, and call the WSACleanup () function at the end to notify Windows
Was posted on the Baidu space blog. I moved it today.
Linux kernel source code learning (1) memory ing modeFlyliNow I have learned the Linux kernel. I think the best way to learn the kernel is to read the source code. I have been reading it
Different types of Bootlader
Generally, LILO or GRUB is used for x86 PC machines. These systems contain firmware (BIOS), which is used for programs of major system components, such as initializing a RAM controller, protecting the CPU in a specific
From: http://hi.baidu.com/livewithgnome/blog/item/aa7affc64c4c9ca08226ac1d.html
Shows the lihei Pro font effect:The configuration process is as follows:1. Create a folder/usr/share/fonts/Apple/. Download the font and decompress it.Click here to
1.1 file descriptorThe file descriptor (fd) is equivalent to the file handle in windows programming. It enables a non-negative integer to reference an open file.In Unix, the file descriptor 0 (STDIN_FILENO) is the standard output, 1 (STDOUT_FILENO)
Preface:
Svn (subversion) is a version management tool that has emerged in recent years and is the successor of cvs. Currently, most open-source software uses svn as the code version management software.Test environment:
Centos 6.3 + subversion 1.6.1
In Linux, the functions used to implement File locks include lock and fcntl, where lock is used to apply a commit lock to the file, while fcntl can not only apply a mandatory lock, but also apply a commit lock. At the same time, fcntl can lock a
From http://z515256164.blog.163.com/blog/static/32443029201211362335184/
With the support of VFS, user-State processes can use read and write to read and write file systems of any type, but how can we operate files without such a system calling in
# Include # Include # Include # Include # Include # Include
Int main (){Int pipe_fd [2]; // pipeline IDPid_t pid;Char r_buffer [100];Char * w_buffer;Int ret;
Memset (r_buffer, 0, sizeof (r_buffer ));
If (pipe (pipe_fd) {Printf ("pipe create error \
In order to learn the driver of character devices, we have to understand some related structures... So, open the kernel through Source Insight... I browsed important driver structures.
* User-driver relationship: user space read, write, etc. --->
ICMP is an Internet Control Message Protocol. It is a sub-Protocol of the TCP/IP protocol family. It is used to transmit control messages between IP hosts and routers. A message control refers to a message of the network itself, such as network
Common commands and troubleshooting tools:
View Processes
Ps aux | grep named
Start
Service named start (centos)
/Usr/local/bind/sbin/named-4 (redhat)
Kill
Killall named
View port
Netstat-ano | grep 53
Detection
Nslookup
Dig
Dig-x
Change
Usually some daemon services need to be written, so a simple script is written. A simple daemon process can be generated automatically using the template file, including the source file and makefile, and the script is started and stopped, you only
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