vim修复:

修复前提,你到UBUNTU能够联网。否则仅仅能卸载,不能安装

1.sudo apt-get remove vim-common

2.sudo apt-get install vim

telnet:

开启telnet:

1.首先安装必要telnet

在终端输入命令:sudo apt-get install xinetd telnetd

2.配置

1)sudo
vi/etc/inetd.conf 并增加下面一行

telnet stream tcp nowait telnetd/usr/sbin/tcpd /usr/sbin/in.telnetd

2)输入sudo
vi/etc/xinetd.conf并增加内容:

# Simple configuration file for xinetd

#

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

defaults

{

#Please note that you need a log_type line to be able to use log_on_success

#and log_on_failure. The default is the following :

#log_type = SYSLOG daemon info

instances = 60

log_type = SYSLOG authpriv

log_on_success = HOST PID

log_on_failure = HOST

cps = 25 30

}

includedir /etc/xinetd.d

3)sudo
vi/etc/xinetd.d/telnet并增加下面内容:

# 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)重新启动网络服务sudo/etc/init.d/xinetd
restart

5)就可以在还有一台client上登录开启TTELNET的server

关闭telnet:

1.ctrl + ]
回车

2.quit退出

ubuntu更新源:

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

sudo gedit /etc/apt/sources.list

将以下源拷贝到sources.list就可以

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

vim修复,telnet安装启动,linux更新软件源的更多相关文章

  1. kali linux 更新软件源,安装中文输入法,修复Linux与windows引导菜单解决windows引导丢失

    1. 更新软件源打开sources.list文件,进行添加更新源:leafpad /etc/apt/sources.list 2. 添加软件源#官方源 deb http://http.kali.org ...

  2. adb安装启动Touch校正软件

    /********************************************************************************* * adb安装启动Touch校正软 ...

  3. 在Win7环境下安装启动Linux

    在Win7环境下安装启动Linux 在Win7系统下,安装启动Linux特别的不方便,由于XP下的boot.ini配置文件不在了,要加入�一下启动选项的话, 仅仅能使用专门的工具,这或多或少给人带来不 ...

  4. ubuntu安装R时候增加软件源到sources.list,sudo apt-get update不能更新

    http://forum.ubuntu.org.cn/viewtopic.php?t=401717 ubuntu安装R时候增加软件源到sources.list,sudo apt-get update不 ...

  5. ubuntu安装软件失败,出现404错误,更新软件源

    更新源方法 备份原来的源 首先备份原来的源,用来出错后进行恢复 sudo cp /etc/apt/sources.list/etc/apt/sources.list_backup 1 如果更新源后出错 ...

  6. ubuntu 更新软件源

    ubuntu 更新软件源 修改文件sources.list 位于/etc/apt/sources.list,并备份原文件为sources.list.bak deb http://mirrors.163 ...

  7. CentOS使用安装光盘建立本地软件源

    本实验的目的是使用CentOS的两张DVD安装光盘作为本地软件源,避免执行yum安装命令时每次都要从网络重新下载. 安装createrepo软件包 createrepo是制作软件源所需要的一个工具,默 ...

  8. Debian更新软件源提示There is no public key available for the following key IDs的解决方法

    今天装了的debian7.0 但是更新软件源的时候出错 提示 W: There is no public key available for the following key IDs: 9D6D8F ...

  9. 笔记:Linux下软件的安装、CentOS更新yum源、LAMP环境搭建、kali软件管理

    一.Linux下软件的安装 方式:yum源 / rpm /源码安装 1.yum:(帮助管理员解决依赖关系) yum是通过分析rpm的包头数据后,根据各种软件的相关性质做出属性相对应的解决方案,然后可以 ...

随机推荐

  1. 2017国家集训队作业[agc006e]Rotate 3x3

    2017国家集训队作业[agc006e]Rotate 3x3 题意: ​ 给你一个\(3*N\)的网格,每次操作选择一个\(3*3\)的网格,旋转\(180^\circ\).问可不可以使每个位置\(( ...

  2. tree ---树状显示

    tree命令以树状图列出目录的内容. 语法 tree(选项)(参数) 选项 -a:显示所有文件和目录: -A:使用ASNI绘图字符显示树状图而非以ASCII字符组合: -C:在文件和目录清单加上色彩, ...

  3. chsh---更换登录系统时使用的shell

    chsh命令   chsh命令用来更换登录系统时使用的shell.若不指定任何参数与用户名称,则chsh会以应答的方式进行设置. 语法 chsh(选项)(参数) 选项 -s<shell 名称&g ...

  4. Django项目之Web端电商网站的实战开发(三)

    说明:该篇博客是博主一字一码编写的,实属不易,请尊重原创,谢谢大家! 接着上一篇博客继续往下写 :https://blog.csdn.net/qq_41782425/article/details/8 ...

  5. python版 百度签到

    经常玩贴吧,刚学python ,所以自己弄了一个python版的签到程序.自己的东西总是最好的. 登陆模块参考的http://www.crifan.com/emulate_login_website_ ...

  6. CODEVS——T1183 泥泞的道路

    时间限制: 1 s  空间限制: 128000 KB 题目等级 : 钻石 Diamond 题解  查看运行结果 题目描述 Description CS有n个小区,并且任意小区之间都有两条单向道路(a到 ...

  7. Android开发之经常使用开源库直接拿来用

    1.from  代码家 整理比較好的源代码连接 **************************************************************************** ...

  8. javaEE之------Spring-----》 AspectJ注解

    前面介绍了下Spring中的切面技术.如今说下採用注解的方式进行切面 首先肯定和之前的一样.须要一个自己主动代理的注解类 AnnotationAwareAspectJAutoProxyCreator ...

  9. jQ-多选按钮实现单选按钮的功能以及input按钮的优化

    css: .displayN{display: none;} label {font-size:12px;cursor:pointer;} label i {font-size:12px;font-s ...

  10. 前端项目中常用es6知识总结 -- let、const及数据类型延伸

    项目开发中一些常用的es6知识,主要是为以后分享小程序开发.node+koa项目开发以及vueSSR(vue服务端渲染)做个前置铺垫. 项目开发常用es6介绍 1.块级作用域 let const  2 ...