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

官方指南: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. kvm网络虚拟化管理

    1. Linux Bridge网桥管理 一个网桥上添加多个虚拟机,虚拟机之间是可以相互通信的的,同时虚拟机也都可以通外网. kvm的网桥管理可以通过brctl命令 [root@localhost ~] ...

  2. mysql:破解MySQL密码的一种方法

    1, 修改mysql配置文件/etc/my.cnf 12 [mysqld]skip_grant_tables 2, 重启mysql后直接用root用户登录(不用输入密码) 1 $ mysql -uro ...

  3. centos7 parted 扩容

    (系统:vmware上的centos7.4 ,使用工具:parted分区命令.) 最近发现磁盘不够用了,需要加点.## WARNING ! 下面是实验过程,不代表生产环境.若有重要数据请操作前备份. ...

  4. centos7中将python2.7.5版本升级到3.x版本

    一.安装gcc源码编译器 yum -y install gcc gcc-c++ pcre-devel zlib-devel openssl-devel 二.下载python软件包 wget https ...

  5. Linux服务器的弱口令检测及端口扫描

    一.弱口令检测--John the Ripper John the Ripper工具可以帮助我们扫描出系统中密码安全性较低的用户,并将扫描后的结果显示出来. 1.安装John the Ripper: ...

  6. pymongo的简单使用

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

  7. 20181121笔记(for,数字类型和字符串类型的内置方法)

    1.for循环 for循环可以遍历任何序列的项目,如一个列表或者一个字符串. for循环字典时默认取出key: dic={'x':111,'y':222,'z:333'}​for k in dic:​ ...

  8. Oracle联合主键

    转https://www.cnblogs.com/king-xg/p/6721272.html alter table tablename add constraint unionkeyname pr ...

  9. Bin Paking Problem:简单的构造性算法

    *本文主要记录和分享学习到的知识,算不上原创 *参考文献见链接 目录 BL和BLF算法 BF算法 HR算法 PH算法

  10. Sort a linked list in O(n log n) time using constant space complexity.

    因为题目要求复杂度为O(nlogn),故可以考虑归并排序的思想. 归并排序的一般步骤为: 1)将待排序数组(链表)取中点并一分为二: 2)递归地对左半部分进行归并排序: 3)递归地对右半部分进行归并排 ...