Vim repair, Telnet installation startup, Linux Update software source

Source: Internet
Author: User
Tags syslog

 VimFIX:

Fix the premise that you go to UBUNTU can be networked, or can only be uninstalled, not installed

1.sudo Apt-get Remove Vim-common

2.sudo Apt-get Install Vim

telnet:Opentelnet:

1. First install the necessary telnet

in the terminal input command: sudo apt-get install xinetd telnetd

2. Configuration

1 ) sudo vi/etc/inetd.conf and add the following line

Telnet Stream TCP nowait telnetd/usr/sbin/tcpd/usr/sbin/in.telnetd

2 ) Input sudo vi/etc/xinetd.conf and add content:

# Simple configuration file for xinetd

   #

#Some defaults, and include/etc/xinetd.d/

Defaults

   {

#Please Note that you need a log_type line to being able to use log_on_success

#and log_on_failure. The default is the following:

#log_type = SYSLOG Daemon Info

instances =

log_type = SYSLOG Authpriv

log_on_success = HOST PID

log_on_failure = HOST

cps = +

   }

includedir/etc/xinetd.d

3 ) sudo vi/etc/xinetd.d/telnet and add the following content:

# Default:on

#description: The Telnet server serves Telnet sessions; it uses \

#unencrypted Username/password pairs for authentication.

Service Telnet

   {   

disable = no

flags = Reuse

socket_type = Stream

wait = no

user = root

Server = /usr/sbin/in.telnetd

log_on_failure + = USERID

   }

4 ) Restart the network service sudo/etc/init.d/xinetd Restart

5 ) can be logged on on another client ttelnet the server

Closetelnet:

1.ctrl +] Enter

2.quit Exit

UbuntuUpdate Source:

sudo cp/etc/apt/sources.list/etc/apt/sources.list.backup

sudo gedit/etc/apt/sources.list

Copy the following source to the sources.list can be

Deb Http://mirrors.163.com/ubuntu/precisemain Universe restricted multiverse

DEB-SRC http://mirrors.163.com/ubuntu/precise main Universe restricted multiverse

Deb Http://mirrors.163.com/ubuntu/precise-security Universe main Multiverse restricted

DEB-SRC http://mirrors.163.com/ubuntu/precise-security Universe main Multiverse restricted

Deb Http://mirrors.163.com/ubuntu/precise-updatesuniverse main Multiverse restricted

Deb Http://mirrors.163.com/ubuntu/precise-proposed Universe main Multiverse restricted

DEB-SRC http://mirrors.163.com/ubuntu/precise-proposed Universe main Multiverse restricted

Deb Http://mirrors.163.com/ubuntu/precise-backports Universe main Multiverse restricted

DEB-SRC Http://mirrors.163.com/ubuntu/precise-backports Universe main Multiverse restricted

DEB-SRC Http://mirrors.163.com/ubuntu/precise-updates Universe main Multiverse restricted

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.