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. 「HAOI2018」字串覆盖

    「HAOI2018」字串覆盖 题意: ​ 给你两个字符串,长度都为\(N\),以及一个参数\(K\),有\(M\)个询问,每次给你一个\(B\)串的一个子串,问用这个字串去覆盖\(A\)串一段区间的最 ...

  2. 压状态bfs

    一般地图很小,状态不多,可以装压或者hash,构造压缩或hash的函数,构造还原地图的函数,然后就无脑bfs(感觉就是SPFA) 题目: 1.玩具游戏:二进制压缩状态 #include<cstd ...

  3. logrotate---日志分割

    logrotate命令用于对系统日志进行轮转.压缩和删除,也可以将日志发送到指定邮箱.使用logrotate指令,可让你轻松管理系统所产生的记录文件.每个记录文件都可被设置成每日,每周或每月处理,也能 ...

  4. python +uiautomator 安卓UI控件操作

    一.搭建环境 准备:win7.JDK.androidSDK(adt-bundle-windows-x86_64-20140702\sdk).Appium.安卓模拟器(真机也可以),可以到这个地址下载h ...

  5. Android 多线程下载,断点续传,线程池

    你可以在这里看到这个demo的源码: https://github.com/onlynight/MultiThreadDownloader 效果图 这张效果图是同时开启三个下载任务,限制下载线程数量的 ...

  6. c#的中英文混合字符串截取指定长度,startidx从0开始

    //c#的中英文混合字符串截取指定长度,startidx从0开始 by gisoracle@126.com public string getStrLenB(string str, int start ...

  7. 银行测试 http://blog.csdn.net/stillming/article/details/42275251

    从一家工作了五年的软件公司的测试管理者跳槽到**银行做软件测试,短短两个月,对银行测试有了初步认识,总结和记录下来,加深个人的理解,同时也共享给各位. 银行作为大家的理财顾问,对金钱非常敏感,频繁甚至 ...

  8. 【Codeforces Round #452 (Div. 2) A】 Splitting in Teams

    [链接] 我是链接,点我呀:) [题意] 在这里输入题意 [题解] 贪心 1优先和2组队. 如果1没有了 就结束. 如果1还有多余的. 那么就自己3个3个组队 [代码] #include <bi ...

  9. log4j.properties配置与加载应用

    log4j.properties总结:   一.介绍 Log4j是Apache的一个开放源代码项目,通过使用Log4j,我们可以控制日志信息输送的目的地是控制台.文件.GUI组件.甚至是套接口服务 器 ...

  10. 【Todo】Zookeeper系列文章

    http://nileader.blog.51cto.com/1381108/1068033