zoukankan      html  css  js  c++  java
  • Debian初始化配置

    1、解决中文显示乱码
    windows的宋体文件上传到debian的字体目录,并运行dpkg-reconfigure locales命令来设置系统的字体
    root@debian:~# mv simsun.ttc /usr/share/fonts/truetype/
    root@debian:~# dpkg-reconfigure locales

    2、开启root用户登陆
    root@debian:~# nano /etc/ssh/sshd_config
    SyslogFacility AUTH
    LogLevel INFO
    # Authentication:
    LoginGraceTime 120
    #PermitRootLogin without-password #注消该行开启root用户ssh登陆
    StrictModes yes

    3、更换为163镜像源
    root@debian:~# cp /etc/apt/sources.list{,.bak}
    root@debian:~# echo >/etc/apt/sources.list
    root@debian:~# nano /etc/apt/sources.list
    deb http://mirrors.163.com/debian/ jessie main non-free contrib
    deb http://mirrors.163.com/debian/ jessie-updates main non-free contrib
    deb http://mirrors.163.com/debian-security/ jessie/updates main non-free contrib
    root@debian:~# apt-get update          #使更换的源生效
    root@debian:~# apt-get upgrade       #升级系统和软件
    root@debian:~# cat /etc/debian_version       #查看debian的版本
    root@debian:~# apt-get -y install bash-completion lrzsz nmap tree net-tools curl wget vim tcpdump chkconfig

    4、debian配置网桥
    root@debian:~# apt-get install bridge-utils #安装依赖包
    root@debian:~# nano /etc/network/interfaces
    # The loopback network interface
    auto lo
    iface lo inet loopback
    auto br0
    # The primary network interface
    allow-hotplug eth0
    iface eth0 inet manual
    iface br0 inet static
    address 10.47.39.30
    netmask 255.255.255.0
    network 10.47.39.0
    broadcast 10.47.39.255
    gateway 10.47.39.254
    # dns-* options are implemented by the resolvconf package, if installed
    dns-nameservers 223.5.5.5
    bridge_ports eth0
    root@debian:~# reboot

  • 相关阅读:
    HTML5-Input
    在安装搜狗输入法的时候找到的一个安装手动下载软件的包
    IP结构与操作之__inet_insert_ifa/__inet_del_ifa
    IP结构与操作之inet_addr_onlink
    IP结构与操作之inet_confirm_addr && confirm_addr_indev
    IP结构与操作之inet_select_addr
    IP结构与操作之inetdev_init && inetdev_destroy
    IP结构与操作之in_device结构和in_ifaddr结构
    网络模块初始化
    网络设备之uc_promisc
  • 原文地址:https://www.cnblogs.com/xwupiaomiao/p/8795727.html
Copyright © 2011-2022 走看看