mentohust连接校园网
linux版的锐捷不稳定,有时候即使认证成功也上不了网。找了半天没发现问题在哪里,遂放弃。
下了个mentohust。要在google code上下载哦,所以我昨天重装系统的努力今天就有收获了。下好了再摆弄了好一会才把参数调对,不过也没有花在linux版锐捷上的时间多啦。
认证成功之后,能上网了,结果过了一会再次连接的时候又上不了... 出现了和linux版锐捷一样的情况。后来随便搞了搞,发现把右上角的网络连接给turn off就可以了...也不知道是什么原因。linux版锐捷运行的时候好像也是有这一步的。
运行命令:
sudo mentohust -u<username>@'有线1x上网' -p<passwd> -neno1 -a1 -d1 -b1
设置开机启动
sudo mv ./mentohust /etc/init.d/
sudo update-rc.d mentohust defaults 90
#移除开机脚本
sudo update-rc.d -f mentohust remove
不用进入脚本所在目录运行
alias tbtools='bash /home/lch/Software/TBtools-master/tbtools'
- 把脚本软连接到/usr/bin/等已经再环境变量下的目录中,要先添加可执行权限。
vim插件管理工具vundle安装
首先要安装vim。ubuntu自带的是vi,和vim不一样。
然后安装git:
sudo apt install git
安装vundle:
git clone http://github.com/gmarik/vundle.git ~/.vim/bundle/vundle.vim
把一下内容复制到~/.vimrc中,保存
syntax on
" tab宽度和缩进同样设置为4
set tabstop=4
set softtabstop=4
set shiftwidth=4
set nocompatible
" 你在此设置运行时路径
set rtp+=~/.vim/bundle/Vundle.vim
call vundle#begin()
" 在这里面输入安装的插件
" Vundle 本身就是一个插件
Plugin 'gmarik/Vundle.vim'
" 所有插件都应该在这一行之前
call vundle#end()
filetype off
filetype plugin indent on
在vim的命令中输入:PluginInstall
完成。
为vim安装python代码补全插件pydiction
在~/.vimrc文件里面加入:
Plugin 'rkulla/pydiction' #添加在call vundle#begin()和call vundle#end()之间。
filetype plugin on
let g:pydiction_location = '~/.vim/bundle/pydiction/complete-dict'
let g:pydiction_menu_height = 20
然后在vim命令行运行:
:PluginUpdate
完成之后就可以使用了。
网友评论