Installation and development environment configuration of Ubuntu system under Linux

Source: Internet
Author: User

1. Installation system: Nothing else to say, is Ann when the network cable pulled, or to configure apt will be stuck for a long time not to go
2. Configure Network Edit/etc/network/interface
Open/etc/networt/interface Add the following sentence:
Auto Eth0
Iface inet eth0 Static #设置静态IP地址
Address 192.168.1.235
Gateway 192.168.1.1
Save, exit, restart network $/etc/init.d/networking restart
At this time can ping the LAN address, but the network still does not, Internet search, found that Ubuntu settings nameserver is in the/etc/resolv.conf inside. Then just edit this file and add a line:
NameServer 192.168.1.1
And then Ping www.baidu.com.
OK network has the same

3. Configure APT Source vim/etc/apt/sourcelist
4. Install Lrzsz for easy Transfer of files
5.sudo Apt-get Install Unzip
6.sudo Apt-get Install tree
7. Configure Vim+ctags + taglist
Refer to the installation and use of the Http://kelaocai.javaeye.com/blog/105853vim plug-in Ctags and TagList. doc
8. Install g++, GDB, make
9. Install the python2.5 (the system has been installed, but not completely, no Python.h) so I manually download the source installation
sudo./configure--prefix=/usr/local/python
sudo make
sudo make install
10. Installing twisted
(because the readme said to install Zope interface, so http://zope.org/Products/ZopeInterface under the zope.interface-3.3.0.tar.gz
Installation: This tarball (. tgz) contains a standard distutils package; Build it with the command:
$python setup.py Build
You can now install it with
$python setup.py Install) is not installed successfully, it needs python2.4, and my system is 2.5.
There was also an error installing twisted directly. The Python.h file was not found, and then I re-installed the Python installation file and reinstalled the python2.5, see step 9
Install twisted and run sudo python setup.py install directly
One. (MySQL recommended source installation!!!) ) At first I was apt-get install Mysql-server
Mysql-devel not found. Install yourself manually?
Himself under the source http://mysql.mirror.kangaroot.net/Downloads/MySQL-5.0/mysql-5.0.51.tar.gz decompression
Compilation options $CC=GCC cflags= "-o3" CXX=GCC cxxflags= "-o3-felide-constructors-fno-exceptions-fno-rtti"./configure--prefix=/ Usr/local/mysql-
-enable-thread-safe-client--enable-assembler--with-big-tables--with-client-ldflags=-all-static-- With-mysqld-ldflags=-all-static--with-charset=utf8--with-collation=utf8_general_ci--with-extra-charsets= Complex

Result error: Checking for termcap functions Library ... configure:error:No curses/termcap Library found
Then to download ncurses,http://ftp.gnu.org/pub/gnu/ncurses/downloaded ncurses-5.6.tar.gz
Unzip, and then $./configure
$ make
$ sudo make install
Ok

[Email protected]:~/software/mysql-5.0.51$ service mysqld Stop
The program ' service ' can is found in the following packages:
* Debian-helper-scripts
* Sysvconfig
Try:sudo apt-get Install <selected package>
-bash:service:command not found
[Email protected]:~/software/mysql-5.0.51$ sudo apt-get install Sysvconfig
Once installed here, you can start MySQL with service MySQL start
Specific MySQL installation reference http://blog.csdn.net/xiamizy/archive/2008/01/30/2072525.aspx very detailed
I was going to use chkconfig similar to Windows msconfig command
Later search, in Debian and Ubuntu best use UPDATE-RC.D see http://www.blogjava.net/mstar/archive/2008/06/20/update_rc_d_example.html
Attached: Debian Sarge under Update-rc.d detailed
The UPDATE-RC.D command, which is used to automatically upgrade the System V type initialization script, is simply the thing that you want to run when the boot is initialized and what you want to
Stop when you shut down or restart, you can use it to help you set up. The connections to these scripts are in/etc/rcn.d/lnname, and the corresponding scripts are located in/etc/init.d/script-name.
1. Set Startup items that specify the boot order and the RunLevel to specify:
UPDATE-RC.D <service> start <order> <runlevels>
2. Set at the specified run level, stop in the specified order:
UPDATE-RC.D <service> Stop <order> <runlevels>
3. Remove the specified startup items from all RunLevel:
Update-rc.d-f <script-name> Remove
For example:
UPDATE-RC.D script-name Start 90 1 2 3 4 5. Stop 52 0 6.
Start 90 1 2 3 4 5. : 1, 2, 3, 4, 5 of these five runlevel, in order, from small to large, the 90th start to run the script.
Stop 52 0 6. : Indicates that at 0, 6 of these two runlevel, in order, from small to large, 52nd stop this script to run.
If you add a script to the/ETC/INIT.D, you need to make a link
In the/ETC/RC*.D. K-Start is Kill, S-Start is start, digital sequence
Represents the order of the activation. (SysV)
UPDATE-RC.D can help you.
Cases:
Create a script called Zope in the/ETC/INIT.D. , and then
UPDATE-RC.D Zope Defaults
will produce the following links:
Adding system startup For/etc/init.d/zope .../etc/rc0.d/k20zope. /init.d/zope/etc/rc1.d/k20zope. /init.d/zope/etc/rc6.d/k20zope. /init.d/zope/etc/rc2.d/s20zope. /init.d/zope/etc/rc3.d/s20zope. /init.d/zope/etc/rc4.d/s20zope. /init.d/zope/etc/rc5.d/s20zope. /init.d/zope
Other advanced use methods please man UPDATE-RC.D

Valgrind.
For specific use see http://hi.baidu.com/timegoneby/blog/item/ffaad71790bf060dc93d6dd6.html
Apt-get Install OpenSSL ca-certificates openssl-doc
sudo apt-get install LIBXML2

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.