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

官方指南: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. 四:SQL语句介绍

    前言:介绍SQL语句及其大致的分类 一:SQL语句介绍(Structured SQL Lanage) 结构化的查询语言 是一种特殊的编程语言 是一种数据库查询和程序设计语言 用于存取数据及查询.更新和 ...

  2. H5移动端触摸事件:touchstart、touchend、touchmove

    第一部分代码事例: <html><head> <meta charset="utf-8"> <style> #main,#main1 ...

  3. 【转发】【composer】composer 命令行介绍

    首页 入门 下载 安装包列表 中国镜像 命令行 你已经学会了如何使用命令行界面做一些事情.本章将向你介绍所有可用的命令. 为了从命令行获得帮助信息,请运行 composer 或者 composer l ...

  4. Python数据分析库之pandas,你该这么学!No.1

    写这个系列背后的故事 咦,面试系列的把基础部分都写完啦,哈哈答,接下来要弄啥嘞~ pandas吧 外国人开发的 翻译成汉语叫 熊猫 厉害厉害,很接地气 一个基于numpy的库 干啥的? 做数据分析用的 ...

  5. Educational Codeforces Round 32:E. Maximum Subsequence(Meet-in-the-middle)

    题目链接:E. Maximum Subsequence 用了一个Meet-in-the-middle的技巧,还是第一次用到这个技巧,其实这个技巧和二分很像,主要是在dfs中,如果数量减小一半可以节约很 ...

  6. eclipse去除js(JavaScript)验证错误

    第一步: 去除eclipse的JS验证: 将windows->preference->Java Script->Validator->Errors/Warnings-> ...

  7. spring的自动装配,骚话@Autowired的底层工作原理

    前言 开心一刻 十年前,我:我交女票了,比我大两岁.妈:不行!赶紧分! 八年前,我:我交女票了,比我小两岁,外地的.妈:你就不能让我省点心? 五年前,我:我交女票了,市长的女儿.妈:别人还能看上你?分 ...

  8. python基础学习笔记——开发规范

    > 编码 1 2 3 4 5 所有的 Python 脚本文件都应在文件头标上     # -*- coding:utf-8 -*- 用于设置编辑器,默认保存为 utf-8 格式. > 注释 ...

  9. 关于logging模块重复问题

    logger对象配置 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 import logging # 获取一个新日志logger = ...

  10. js php 互调

    1 JS方式调用PHP文件并取得php中的值 举一个简单的例子来说明: 如在页面a.html中用下面这句调用: <! DOCTYPE HTML><html><head&g ...