安装后许多软件都没有,需要进行安装。

官方指南:https://help.ubuntu.com/lts/serverguide/index.html

1.修改网络配置文件

用ifconfig查看本地网卡,获得网卡名称 p2p1,如果只有lo,则执行 dmesg | grep eth。

修改/etc/network/interfaces文件,这个配置更新过,加入了dns的配置

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

文件内容(其中p2p1是通过ifconfig获得的网卡名称,或者是通过第四步获得的网卡名称)

2.配置DNS

Ubuntu 14.04 重启后DNS配置被重写,所以不能直接修改/etc/resolv.conf。

有两种方法:

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

修改好保存,然后执行

resolvconf -u

3.修改主机名

sudo vim /etc/hostname

以上修改完后需要重启系统

sudo reboot

4.更新source.list.

ubuntu官方最新源列表,根据上面提示进行更新

编辑完源source.list后,一定要update:

sudo apt-get update
一些APT命令

修改apt源,即添加APT服务器地址
/etc/apt/sources.list
#apt-get update 使修改生效
检索软件信息
#apt-cache pkgnames 显示所有可以安装的软件
#apt-cache pkgnames | grep g++
#apt-cache policy 软件名称 查看该软件是否安装 安装
#apt-get install 名称
重新安装
#apt-get install --reinstall 名称
卸载
#apt-get remove 名称
清理
#apt-get clean 清楚deb包 获取源码包
#apt-get source 名称 下载并在当前目录下解压
构建编译环境
#apt-get build-dep 名称 安装关联的软件包
编译源码包
#dpkg-buildpackage 生成可执行文件和deb
安装
#dpkg –I *.deb

5.安装openssh

由于我们只是需要服务端,所以只要安装服务端即可。

安装openssh
#sudo apt-get install openssh-server
检查结果
#ps –ef | grep ssh
若未找到, #/etc/init.d/ssh restart
使用SecureCRT连接

更多的关于openssh的内容见:http://os.51cto.com/art/201104/256070.htm

6.安装man

由于ubuntu server 默认没有man,所以需要手动安装。

sudo apt-get install man

我们还要安装一些man的文档:

sudo apt-get install manpages
sudo apt-get install manpages-dev // C API
sudo apt-get install manpages-posix // posix function
sudo apt-get install manpages-posix-dev // posix develop documents
sudo apt-get install glibc-doc // C API
sudo apt-get install stl-manual // STL
sudo apt-get install libstdc++6-4.7-doc // C++ API,建议先安这个试,再试4.1,版本还有4.3等等
sudo apt-get install manpages-zh // 中文文档

7.安装vim

sudo apt-get install vim

8.安装编译环境

sudo apt-get  install  build-essential

9.安装GDB

由于build-essential中没有包含gdb,要独立安装

sudo apt-get install gdb

10.安装valgrind

sudo apt-get install valgrind

11.安装压缩工具zip

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

12.windows和linux互传文件

  • 通过Samba:

参考这三篇文章:

#sudo apt-get install lrzsz
#rz 向Linux服务发送文件
#sz 文件名 Linux服务器向客户端发送文件

13.安装git

参考:https://help.ubuntu.com/lts/serverguide/git.html

安装:
sudo apt-get install git 配置
git config --global user.email "you@example.com"
git config --global user.name "Your Name"

14.安装curl

sudo apt-get install curl

15.安装vim插件(可以百度一下)

懒人必备spf13-vim:https://github.com/spf13/spf13-vim

http://www.wklken.me/posts/2013/06/11/linux-my-vim.html

SHELL配置:https://github.com/robbyrussell/oh-my-zsh

参考这篇文章:

需要安装的插件

  • exuberant-ctags (使用apt)
  • cscope (使用apt)
  • taglist
  • omnicppcomplete
  • a
  • winmanager
  • minibufExplorer
  • grep
安装说明
Ctags,cscope使用apt安装
其他的需要下载,解压到~/.vim即可
分析.vimrc文件(示例)

16.Ubuntu Desktop常用软件

  • http://www.cnblogs.com/bohaoist/p/4967050.html

[原创]安装Ubuntu Server 14.04后的更多相关文章

  1. U盘安装ubuntu server 14.04

    U盘安装ubuntu server 14.04 U盘安装ubuntu server 14.04 1.制作启动u盘 2.开始安装 1 将u盘插入主机,重启后从u盘启动 2 选择语言(随便挑,随便选),我 ...

  2. u盘安装ubuntu server 14.04 以及No CD-ROM drive was detected 错误

    u盘安装ubuntu server 14.04 1:下载ubuntu server14的 iso镜像文件 2:下载 UltraISO U盘镜像制作工具 : 3:使用Ultra iOS 将下载好的 is ...

  3. vmware 10虚拟机安装ubuntu server 14.04

    -開始安装ubuntu server- 1.首先是安装系统时的语言,推荐选择English 然后安装系统 这里选择语言非常重要,我開始选择了中文,安装完毕后会乱码,所以推荐选择英文 由于在中国.所以选 ...

  4. 戴尔PowerEdge R430 机架式服务器 安装ubuntu server 14.04.1 LTS 64 位

    硬件配置: 服务编号:5Z04X72 软件配置 1.Ubuntu 系统下载地址: https://certification.ubuntu.com/certification/hardware/201 ...

  5. ubuntu server 14.04 LTS下搭建LAMP环境之最详细笔记之一U盘安装双系统

    前言: 一直在WIN上使用PHP,不喜欢用WAMP,每次都是手动在windows配置环境,偶尔有一次装了小红帽玩了两天,感觉不是很习惯就换了回来,过了没几天见讨论LAMP环境,于是安装了ubuntu的 ...

  6. Ubuntu Server 14.04在VMware安装的一些事儿

    这几天一直在折腾Ubuntu Server 14.04,故记录下: 安装前的准备: 1.建议安装英文版,像15.04.16.04等安装中文版时存在bug,而且中文版字体显示也有问题. 2.Ubuntu ...

  7. Ubuntu Server 14.04 LTS(64bit)已安装 weblogic Server 12c(12.1.3) Zip Distribution

    这里说的对Ubuntu Server 14.04 LTS(64bit)已安装weblogic Server 12c(12.1.3) Zip Distribution遇到的问题.至于Windows什么好 ...

  8. ubuntu server 14.04 上安装jdk1.8

    ubuntu server 14.04 上安装jdk1.8 1.使用apt-get安装oracle-jdk安装oracle jdk sudo apt-get install python-softwa ...

  9. Ubuntu Server 14.04升级Ubuntu Server 16.04

    Ubuntu Server 14.04升级Ubuntu Server 16.04 :转 http://blog.csdn.net/chszs 1.终端下执行命令 $ sudo apt-get upda ...

随机推荐

  1. dom4j 常用操作

    package com.wanbang.wbyyb.common.util; import com.alibaba.fastjson.JSONObject; import com.wanbang.wb ...

  2. dom事件机制系列

    JS事件流机制 一个完整的JS事件流是从window开始,最后回到window的一个过程,事件流被分为三个阶段: (1~5)捕获过程.(5~6)目标过程.(6~10)冒泡过程. 通过addEventL ...

  3. pymongo的简单使用

    pymongo的使用 首先安装: pip install pymongo 安装好了使用 import pymongo # 链接mongodb,得到一个mongoclient的客户端对象 client ...

  4. BIOM Table-codes

    import numpy from biom.table import Table ========================================================== ...

  5. centos 装 jdk

    1.源码包准备: 首先到官网下载jdk,http://www.oracle.com/technetwork/java/javase/downloads/jdk7- downloads-1880260. ...

  6. E. A Magic Lamp

    E. A Magic Lamp Time Limit: 1000ms Case Time Limit: 1000ms Memory Limit: 32768KB   64-bit integer IO ...

  7. [uiautomator篇]uiwatcher 的使用场景

    http://www.yangyanxing.com/article/use-watcher-in-uiautomator.html   今天在uiautomator中实践了watcher的用法,这个 ...

  8. 【JavaScript 3—基础知识点】:运算符

    导读:其实看到这个运算符的学习,很有一种熟悉感,因为在总体看来,和之前的C++有很多类似的地方,但当时觉得简单,没有总结.所以,这次一定得总结了.其实,知识的罗列,基础的积累,在学习中也很重要. 一. ...

  9. javascript异常cannot read property xx of null 的错误

    一般报这种异常或者错误,是因为试图从null中再读一个属性导致的. 比如:var myAttr=myObj.data.Name; 假如这个时候myObj.data是null,那么再试图读取data的N ...

  10. Codeforces Round #361 (Div. 2)——B. Mike and Shortcuts(BFS+小坑)

    B. Mike and Shortcuts time limit per test 3 seconds memory limit per test 256 megabytes input standa ...