Debian learning diary

Source: Internet
Author: User
1. modify network settings. open/etc/network/interfaces and add the following # Theloopbacknetworkinterface (configure the loopback interface) # Auto-boot lo interface autolo # configure the lo interface as the loopback interface ifaceloinetloopback # Theprimary...

 

1. modify network settings

 

Open/etc/network/interfaces and add the following

#

# The loopback network interface (configure The loopback interface)

 

# Automatically activate lo at startup

Auto lo

# Configure the lo interface as a loopback interface

Iface lo inet loopback

 

#

# The primary network interface (configure The primary network interface)

 

# Enable the eth0 interface automatically upon startup

Auto eth0

# Configure the eth0 interface to automatically obtain DHCP

Iface eth0 inet dhcp

 

# Configure the eth0 interface to set static IP addresses

Iface eth0 inet static

Address 10.16.3.99

Netmask 255.255.255.0

Network 10.16.3.0

Broadcast 10.16.3.255

Gateway 10.16.3.1

DNS configuration

Edit/etc/resolv. conf, configure DNS, and add the following information:

Nameserver 219.146.0.130

Restart network configuration

/Etc/init. d/networking restart

Note that if it is a virtual machine, the bridge must be connected to the bridge.

 

2. putty cannot connect to debian

Most of them are because sshserver has no installation problems.

Run the command dpkg-l | grep openssh-server first.

Check if sshserver is installed.

If there is any result, it is best to start it with/etc/init. d/ssh

 

If no installation is available, run apt-cache search ssh.

A series of SSH-related lists will be returned. I chose to install:

Apt-get install openssh-server ssh

You can use these two services.

 

3. modify language settings

Dpkg-reconfigure locales

4. # reboot # Restart

# Shutdown-h now # shutdown

5. ps-ef | grep keyword

Kill-9 process ID

 

Author: wuhaowei12345

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.