Debian Environment Settings

Source: Internet
Author: User
Debian environment settings-Linux Release Technology-Debian information. The following is a detailed description. Set the environment for the newly installed Debian:

1) Modify/etc/apt/sources. list to set the mirror source.

# [Packages] ---------------------------------
Deb http://ftp.tw.debian.org/debian/ etch main contrib non-free
Deb-src http://ftp.tw.debian.org/debian/ etch main contrib non-free
# [Security Update] ------------------------
Deb http://security.debian.org/etch/updates main contrib non-free
Deb-src http://security.debian.org/etch/updates main contrib non-free

2) install the sudo suite and change the/etc/sudoers permission.

# User privilege specification
Root ALL = (ALL) ALL
User ALL = (ALL) ALL

3) install openssh-server and change/etc/ssh/sshd_config

# What ports we listen for (change the default port)
Port 5566
# Authentication (remote root login prohibited)
PermitRootLogin no

4) Check the Host Name settings

A) configuration file/etc/hosts

# [IP] [FQDN] [hostname]
127.0.0.1 localhost. localdomain localhost
192.168.1.10 debian.domain.net debian

B) configuration file/etc/hostname

Debian.domain.net

5) install common kits

Build-essential, binutils, automake, unzip, unrar, screen, vim, dstat, ntpdate

6) Calibration System Time

Ntpdate time.stdtime.gov.tw
Hwclock-w

7) if you use ping to test network conditions, the following results are displayed:

Kcw @ server :~ $ Ping www.debian.org
Ping: unknown host www.debian.org

If the DNS settings are incorrect, the website cannot be resolved to an IP Address. In this case, check the DNS server settings/etc/resolv. conf.

Nameserver 168.95.1.1
Related Article

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.