[Original] After installing Ubuntu Server 14.04

Source: Internet
Author: User
Tags posix valgrind nameserver

Many software are not installed and need to be installed.

Official Guide: https://help.ubuntu.com/lts/serverguide/index.html

1. Modify the network configuration file

Use Ifconfig to view the local network card, obtain the network card name P2P1, if only lo, execute DMESG | grep eth.

Modify the/etc/network/interfaces file, this configuration has been updated, added DNS configuration

sudo vim/etc/network/interfaces
Iface eth0 inet static    address 192.168.3.3    netmask 255.255.255.0    Gateway 192.168.3.1    #dns-search example.com    dns-nameservers 223.5.5.5 223.6.6.6

File contents (where P2p1 is the name of the network card obtained through Ifconfig, or the name of the network card obtained through the fourth step)

2. Configure DNS

The DNS configuration is rewritten after the Ubuntu 14.04 restart, so the/etc/resolv.conf cannot be modified directly.

There are two ways of doing this:

sudo vim/etc/resolvconf/resolv.conf.d/base
    NameServer 223.5.5.5    nameserver 223.6.6.6
sudo vim/etc/network/interfacesdns-nameservers 8.8.8.8

Modify the save and then execute

Resolvconf-u

3. Modify Host Name

sudo vim/etc/hostname

Restart the system after the above modifications have been completed

sudo reboot

4. Update Source.list.

Ubuntu official latest source list, according to the above prompts to update.

When you are finished editing the source Source.list, be sure to update:

sudo apt-get update
Some apt commands

Modify apt source, i.e. add APT server address
/etc/apt/sources.list#apt-get Update enables the modification to take effect retrieving software information #apt-cache pkgnames  display all software that can be installed #apt-cache pkgnames | grep g++# Apt-cache Policy software name  see if the software installs installation #apt-get install name reinstall #apt-get Install--reinstall name Uninstall #apt-get remove name Cleanup # Apt-get Clean  Clear Deb package get source package #apt-get Source name  download and unzip in current directory build compilation environment #apt-get BUILD-DEP name Install the associated package compile source package # Dpkg-buildpackage generate executables and Deb install #dpkg–i *.deb

5. Installing OpenSSH

Because we just need the server, so just install the server.

Installing Openssh#sudo apt-get Install openssh-server check Results #ps–ef | grep ssh if not found, #/etc/init.d/ssh restart use SECURECRT connection

For more on OpenSSH, see the following: http://os.51cto.com/art/201104/256070.htm

6. Installing Man

Because Ubuntu server does not have a man by default, it needs to be installed manually.

sudo apt-get install man

We also need to install some man's documentation:

sudo apt-get install manpagessudo apt-get install Manpages-dev          //C API sudo apt-get install manpages-posix        //POS IX Functionsudo apt-get install Manpages-posix-dev//POSIX develop Documentssudo apt-get install Glibc-doc                   //C Apisu Do apt-get install stl-manual                 //stlsudo apt-get Install Libstdc++6-4.7-doc    //C + + API, we recommend this test first, Try 4.1, version and 4.3, and so on. Sudo apt-get install Manpages-zh            //Chinese documents

7. Install Vim

sudo apt-get install vim

8. Install the compilation environment

sudo apt-get  install  build-essential

9. Installing GDB

Since GDB is not included in the build-essential, it should be installed independently

sudo apt-get install gdb

10. Installing Valgrind

sudo apt-get install Valgrind

11. Install the compression tool zip

sudo apt-get install zip or
sudo apt-get install bzip2

12.windows and Linux Mutual transfer files

    • Through Samba:

Refer to these three articles:

    • Http://www.cnblogs.com/bohaoist/p/4813676.html
    • Https://help.ubuntu.com/lts/serverguide/samba-introduction.html
    • Http://www.cnblogs.com/phinecos/archive/2009/06/06/1497717.html
    • by Lrzsz:
#sudo apt-get install Lrzsz#rz                  send files to the Linux service #sz file name      The Linux server sends files to the client

13. Install VIM plug-in (can Baidu a bit)

Refer to this article:

    • http://blog.csdn.net/namecyf/article/details/7787479
    • Http://www.cnblogs.com/zhaoyl/p/4078164.html

Plugins that need to be installed

    • Exuberant-ctags (using APT)
    • Cscope (using APT)
    • TagList
    • Omnicppcomplete
    • A
    • Winmanager
    • Minibufexplorer
    • Grep
Installation Instructions Ctags,cscope use apt to install other need to download, unzip to ~/. Vim to analyze. vimrc Files (example)

[Original] After installing Ubuntu Server 14.04

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.