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

官方指南: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. hosts设置本地虚拟域名

    C:\Windows\System32\drivers\etc hosts 需要用管理员运行

  2. perl学习之:localtime

    Perl中localtime()函数以及sprintf (2011-4-25 19:39)localtime函数 localtime函数,根据它所在的上下文,可以用两种完全不同的方法来运行.在标量上下 ...

  3. Python9-面对对象2-day23

    #计算正方形的周长和面积 class Square: def __init__(self,side_len): self.side_len = side_len def perimeter(self) ...

  4. I2C驱动框架(二)

    参考:I2C子系统之I2C bus初始化——I2C_init() 在linux内核启动的时候最先执行的和I2C子系统相关的函数应该是driver/i2c/i2c-core.c文件中的i2c_init( ...

  5. FX3 DMA生产者消费者ID代表的含义

    在开发FX3的时候,觉得赛普拉斯的库注释太少,很多时候无法理解代码含义.由于使用DMA,需要理解DMA生产者消费者代表的含义,经过多方查找,决定记录下来. 在cyu3dma.h中对SocketID进行 ...

  6. PAT Basic 1034

    1034 有理数四则运算 本题要求编写程序,计算2个有理数的和.差.积.商. 输入格式: 输入在一行中按照“a1/b1 a2/b2”的格式给出两个分数形式的有理数,其中分子和分母全是整型范围内的整数, ...

  7. Java-终止应用程序

    参考了:http://www.cnblogs.com/xwdreamer/archive/2011/01/07/2297045.html 理论在上面链接中有详细的解释 package com.tj; ...

  8. 利用Node.js调用Elasticsearch

    1. 下载elasticsearch库 npm install elasticsearch --save 2.在脚本里导入模块,如下所示 const elasticsearch = require(' ...

  9. Eclipse安装以及安装时遇到的问题解决办法

    1, 首先要安装JDK(最好使用最新版本),注意区分32位于64位 2, 安装程序,双击打开安装即可 3, 安装包下载:http://developer.android.com/sdk/index.h ...

  10. BZOJ-1507 文本编辑器(Editor)

    一道极其相似的题...http://hi.baidu.com/8361101/item/5b149103cbf4007cbee97e5f 就多了个区间查找,少了个翻转... 少了翻转的话貌似可以不用S ...