debian配置网络及apt-get源
来源:互联网 发布:漫威电影宇宙知乎 编辑:程序博客网 时间:2024/06/05 22:35
1 简介
初始安装完debian 7.7.0时,需要首先配置网络及apt-get源,才能正常使用。
2 debian各个版本配置
2.1 debian 7.7.0配置网络及apt-get源
2.1.1 配置网络-静态IP
修改文件/etc/network/interfaces
使网络配置生效
修改文件/etc/network/interfaces
使网络配置生效
2.2.1 默认从cd介质安装
2.2.2 更改为网络源
然后添加列表到sources.list文件里
****************************************************************************************
原文地址:http://blog.csdn.net/jesseyoung/article/details/41387393
博客主页:http://blog.csdn.net/jesseyoung
****************************************************************************************
初始安装完debian 7.7.0时,需要首先配置网络及apt-get源,才能正常使用。
2 debian各个版本配置
2.1 debian 7.7.0配置网络及apt-get源
2.1.1 配置网络-静态IP
修改文件/etc/network/interfaces
vi /etc/network/interfaces# This file describes the network interfaces available on your system# and how to activate them. For more information, see interfaces(5).# The loopback network interfaceauto loiface lo inet loopback增加如下选项
iface eth0 inet staticaddress 192.168.1.18netmask 255.255.255.0gatway 192.168.1.1配置完成后文件信息为
使网络配置生效
root@debian:~# ifdown eth0root@debian:~# ifup eth02.1.2 配置网络-DHCP方式(访问外网)
修改文件/etc/network/interfaces
vi /etc/network/interfaces# This file describes the network interfaces available on your system# and how to activate them. For more information, see interfaces(5).# The loopback network interfaceauto loiface lo inet loopback增加如下选项
allow-hotplug eth0iface eth0 inet dhcp配置完成后文件信息为
使网络配置生效
root@debian:~# ifdown eth0root@debian:~# ifup eth02.2 配置apt-get源
2.2.1 默认从cd介质安装
2.2.2 更改为网络源
root@debian:~# vi /etc/apt/sources.list首先屏蔽掉本地源
deb cdrom:[Debian GNU/Linux 7.7.0 _Wheezy_ - Official amd64 DVD Binary-1 20141018-13:06]/ wheezy contrib main
然后添加列表到sources.list文件里
#在配置文件中增加163软件源。deb http://mirrors.163.com/debian wheezy main non-free contribdeb-src http://mirrors.163.com/debian wheezy main non-free contrib#在配置文件中增加163软件更新源。deb http://mirrors.163.com/debian wheezy-updates main non-free contribdeb-src http://mirrors.163.com/debian wheezy-updates main non-free contrib#在配置文件中增加163安全软件更新源。deb http://security.debian.org/ wheezy/updates maindeb-src http://security.debian.org/ wheezy/updates main更新配置
root@debian:~# apt-get update测试安装一个htop组件
root@debian:~# apt-get install htopReading package lists... DoneBuilding dependency tree Reading state information... DoneSuggested packages: strace ltraceThe following NEW packages will be installed: htop0 upgraded, 1 newly installed, 0 to remove and 0 not upgraded.Need to get 63.7 kB of archives.After this operation, 209 kB of additional disk space will be used.Get:1 http://mirrors.163.com/debian/ squeeze/main htop amd64 0.8.3-1 [63.7 kB]Fetched 63.7 kB in 0s (99.9 kB/s)Selecting previously unselected package htop.(Reading database ... 25847 files and directories currently installed.)Unpacking htop (from .../htop_0.8.3-1_amd64.deb) ...Processing triggers for man-db ...Setting up htop (0.8.3-1) ...修改网络源成功!
****************************************************************************************
原文地址:http://blog.csdn.net/jesseyoung/article/details/41387393
博客主页:http://blog.csdn.net/jesseyoung
****************************************************************************************
0 0
- debian配置网络及apt-get源
- Debian上关于网络、apt-get、用户的一些配置
- Debian 配置apt-get源安装SSH服务
- debian/ubuntu设置apt-get源
- debian修改apt-get安装源
- Debian apt-get 使用指南
- Debian apt-get 用法
- Debian apt-get用法
- Debian apt-get详解
- Debian下如何配置apt-get源以在线安装文件
- debian中的apt-get代理
- Debian Oracle apt-get 安装
- Debian apt-get 安装 GTK+
- linux apt-get 源配置
- Ubuntu配置apt-get源
- debian apt 源
- Debian Linux 之 Apt-get / dpkg
- 类Debian系统apt-get命令大全
- 使用Azure上的Azure AD服务管理Office 365账户(无缝打通Azure和Office 365)
- 编写最简单的内核:HelloWorld
- 机器学习之旅---奇异值分解
- undefined reference to `cvCreateCameraCapture_V4L(int)'
- Spirng基础知识之基于属性文件链接MySQL数据库的配置
- debian配置网络及apt-get源
- linux驱动工程面试必问知识点
- 全能冠军:Linux系统性能和使用活动监控工具 sysstat
- 细说linux IPC(四):posix 共享内存
- 第四章 字符串 和多维数组
- js拿到本月初日期,拿到上个月的日期(上个月的同一天)
- 位示图算法实现大数据的存储
- 细说linux IPC(三):mmap系统调用共享内存
- 盒子游戏