Debian 基本设置

在此作一下记录,免得之后再总是去搜索了linux

个人debian版本v:8.1.0网络

 

我是在Hyper-V中装的,启动后一直ping不通网址,后来才知道Debian不能直接ping域名,只能ping IP。。。oop

 

没法自动获取IP,这里只能手动指定了,具体方法:post

  以root用户登录,在控制台输入:nano /etc/network/interfacesspa

  # The loopback network interface
      auto lo
      iface lo inet loopback.net


     # The primary network interface
     allow-hotplug eth0
     auto eth0
     iface eth0 inet static
     address 192.168.1.199
     netmask 255.255.255.0
     gateway 192.168.1.1 #路由器的IPrest

    Ctrl+X,输入y保存,而后输入:/etc/init.d/networking restart  重启网络配置

orm

修改系统语言,安装时选择中文,可是在Shell下会有乱码的状况,因此仍是改成默认的英文utf-8

  输入:dpkg-reconfigure locales路由

  在en-us utf-8按空格选中,选中后前面会有个*,把中文的*给去掉,而后保存

自动获取最新的源:http://linuxfocus.net/post/176

相关文章
相关标签/搜索