---
title: "新装linux 系统后 基本的设置(ubuntu)"
author: "malixxx"
date: "2010-05-13T14:55:49Z"
tags: []
categories: ["操作系统"]
slug: "linux-ubuntu"
draft: false
lastmod: "2015-09-18T13:02:17Z"
id: 665649
url: "https://malixxx.iteye.com/blog/665649"
---

网络配置：
sudo vi /etc/network/interfaces

auto lo
iface lo inet loopback
auto eth0
iface eth0 inet static
address 192.168.1.132
netmask 255.255.255.0
gateway 192.168.1.1

dns-nameservers 192.168.20.254
dns-nameservers 8.8.8.8

sudo /etc/init.d/networking restart

无线网卡用wlan0

查看DNS设置
vi /etc/resolv.conf
如果能看到 nameserver xxx.xxx.xxx.xxx

sudo apt-get update
openssh安装配置：
sudo apt-get install openssh-server

sudo vi /etc/ssh/sshd_config

sudo /etc/init.d/ssh restart


gcc安装：
sudo apt-get install build-essential

安装man手册：
sudo apt-get install manpages
sudo apt-get install manpages-posix
sudo apt-get install manpages-posix-dev

sudo apt-get install manpages-dev
sudo apt-get install manpages-zh

安装gdb：
sudo apt-get install gdb

开启root：
sudo passwd

嗅探工具：
sudo apt-get install ksniffer
sudo aptitude install wireshark