打开APP
userphoto
未登录

开通VIP,畅享免费电子书等14项超值服

开通VIP
cygwin how-to
  • 怎么样在内网用Cygwin访问外网?
    • .bash_profile文件中加入一行:
    export http_proxy="yourproxyaddress:port"
    • 对于wget,需要在.wgetrc文件中加入:
    http_proxy=yourproxyaddress:port
    use_proxy=on

  • 我的Cygwin用rxvt做CLI,下面是启动的脚本。
@echo off
C:
chdir C:\Users\Haijiang\tools\cygwin\bin
set EDITOR=vim
set VISUAL=vim
set CYGWIN=codepage:oem tty binmode title
set HOME=C:\Users\Haijiang\tools\cygwin\home
rem ***************************
rem Command to start rxvt than normal Cygwin console
rem
rem +vb turn off visual bell
rem -j use jump scrolling
rem -sr put srollbar on right
rem -sl set scrollback buffer size as N lines
rem -lsp set space between each row as N pixel
rem -b internal margin, unit is pixel
rem -km set multichat encoding
rem -e execute a command with its arguments
rem ****************************
rxvt -bg black -fg yellow -km GB +vb -b 5 -j -sr -sl 500 -lsp 2 -e /usr/bin/bash --login -i

  • rxvt还需要一个脚本.Xdefaults,我用的内容在下面:
Rxvt*geometry: 120x40
Rxvt*background: #000020
Rxvt*foreground: #ffffbf
Rxvt*scrollBar: True
Rxvt*scrollBar_right: True
Rxvt*font: Fixedsys
Rxvt*mfont: Terminal
Rxvt*SaveLines: 2000
Rxvt*loginShell: True
! VIM-like colors
Rxvt*color0: #000000
Rxvt*color1: #FFFFFF
Rxvt*color2: #00A800
Rxvt*color3: #FFFF00
Rxvt*color4: #0000A8
Rxvt*color5: #A800A8
Rxvt*color6: #00A8A8
Rxvt*color7: #D8D8D8
Rxvt*color8: #000000
Rxvt*color9: #FFFFFF
Rxvt*color10: #00A800
Rxvt*color11: #FFFF00
Rxvt*color12: #0000A8

  • 在Windows下完全删除Cygwin的方法:

删除安装用的临时文件夹(在cygwin里输入命令)

$ rm -f /cygdrive/c/你的临时文件夹

停止cron service

$ cygrunsrv --stop cron
$ cygrunsrv --remove cron

停止并删除inetd服务

$ net stop inetd
$/usr/sbin/inetd --remove-as-service

删除安装文件夹,默认是c:\cygwin

删除桌面上的icon,和开始菜单里的启动文件夹

删除注册表里的相关项

HKEY_LOCAL_MACHINE\SOFTWARE\Cygnus Solutions
HKEY_CURRENT_USER\Software\Cygnus Solutions

删除环境变量(PATH, CYGWIN)

环境变量PATH里的c:\cygwin\bin; 还有名叫CYGWIN的变量
本站仅提供存储服务,所有内容均由用户发布,如发现有害或侵权内容,请点击举报
打开APP,阅读全文并永久保存 查看更多类似文章
猜你喜欢
类似文章
【热】打开小程序,算一算2024你的财运
window下cygwin完全卸载办法- 宏霞 - 新浪BLOG
cygwin个性化配置
【推荐】在windows下配置crontab
Cygwin下vim的配置
下载 安装 Cygwin 详细过程
coLinux 0.7.1 配置
更多类似文章 >>
生活服务
热点新闻
分享 收藏 导长图 关注 下载文章
绑定账号成功
后续可登录账号畅享VIP特权!
如果VIP功能使用有故障,
可点击这里联系客服!

联系客服