- 浏览: 297666 次
- 性别:
- 来自: 南京
文章分类
最新评论
-
ggwang:
谢谢分享!
如何释放Ubuntu多余的空间?如何给Ubuntu扩容(install inside windows)? -
allenshao:
只有放枪咯~~~~~
Google Group Android Developers 无法打开的问题 -
malong26:
也打不开~~~
Google Group Android Developers 无法打开的问题 -
songshuang:
一直喂它会一直吃是不?
用你的鼠标逗逗它 -
allenshao:
现在基本上用免费的VPN,缺点是限流量。
如何访问appspot网站?
在外网环境下Ubuntu应该很好配置,但是在OA网络的话,需要设置一些比较繁琐的步骤。
这里我简单写了几个步骤:
首先是跟上网无关的,那就是设置中文输入环境:
1.在CDROM中插入Ubuntu CD,在Ubuntu面板上选择“System->Administration->Software
Sources”,然后选中“Installable from CD-ROM/DVD”
2.选择“System->Administration->Language Support”,选中“Use input
method...”然后单击“Install/Remove Languages...”,Choose "Chinese" and
then apply.
3.“System->Preferences->SCIM Input Method Setup”,在“Global Setup”中,
你会看到中文输入法,设置Hotkey,重启即可。
接下来是设置Office网络:
1.“System->Preferences->Network Connections”,在“Wired”tab中编辑
Connection,“802.1x Security”Authentication选择Protected EAP(PEAP),
里面选项选择“MSCHAPV2”,然后输入你的User name以及Passwd
(和你Windows中的OA Account一致)
接下来设置Internet Proxy,有两个,一个是Firefox,另一个是Terminal:
Firefox:“Edit->Preference->Advanced->Network”,选择“Settings...”,
然后设置Http Proxy(根据你公司的网络)
Terminal:这一步,我们需要cntlm这个插件,如附档。
安装cntlm,然后“sudo gedit /etc/cntlm.conf”,修改Username, Domain,
Password和Proxy;
编辑完后,运行“sudo cntlm -f -v”
最后“System->Preferences->Network Proxy”,选中“Manual proxy
configuration”,HTTP Proxy输入127.0.0.1, Port输入3128
然后按下“Apply System-Wide...”
这些设置完后,可以试下“sudo apt-get update”
做完上面这些设置后,你应该就可以通过Proxy上OA网络,而且可以apt-get了。
补充:内网ssh代理
使用corkscrew sudo apt-get install corkscrew
修改用户目录下的.ssh/config文件,正常情况下没有config文件
Host *
ProxyCommand corkscrew http-proxy.example.com 8080 %h %p
I successfully 'GIT' android source through http proxy. Here is my
steps:
Download a tool corkscrew from http://www.agroman.net/corkscrew/
Create a shell script named 'git-proxy' in ~/bin, include following
content:
Replace ~/bin/ and <...> with your own information.
and then run following command:
========================================================
有可能会出现如下错误
解决办法:
1. make sure your git-proxy has x attribute: chmod +x git-proxy.
2. make sure your git-proxy is correct.
3. try replace ~/bin with the absolute path.
===========================================================
还有一个工具
1. Install socat. For example, on Debian/Ubuntu, just sudo apt-get install socat.
2. Create a script called gitproxy in your bin directory;
#!/bin/sh
# Use socat to proxy git through an HTTP CONNECT firewall.
# Useful if you are trying to clone git:// from inside a company.
# Requires that the proxy allows CONNECT to port 9418.
#
# Save this file as gitproxy somewhere in your path (e.g., ~/bin) and then run
# chmod +x gitproxy
# git config --global core.gitproxy gitproxy
#
# More details at http://tinyurl.com/8xvpny
# Configuration. Common proxy ports are 3128, 8123, 8000.
_proxy=proxy.yourcompany.com
_proxyport=3128
exec socat STDIO PROXY:$_proxy:$1:$2,proxyport=$_proxyport
view raw gitproxy-socat This Gist brought to you by GitHub.
You will need to replace proxy.yourcompany.com with the name of your proxy host and the port with the port used by the proxy (common ports include 3128, 8123 and 8000). (If the javascript is broken, visit Gist 49288 and download the raw file; or use the original commands as reproduced in the comments.)
3. Configure git to use it:
$ git config --global core.gitproxy gitproxy
按照上面的两种方法,我设置git proxy依旧没有能够成功:(
这里,我再介绍我成功设置git proxy的第三种办法
使用socket
step如下:
1 sudo apt-get install socket
2 在你的home/allen/bin(这个在$PATH中)下创建脚本 "proxy-cmd.sh"
#! /bin/bash
(echo "CONNECT $1:$2 HTTP/1.0"; echo; cat ) | socket YOUR_PROXY
YOUR_PROXY_PORT | (read a; read a; cat )
3 chmod +x proxy-cmd.sh
4 export GIT_PROXY_COMMAND=<PATH TO YOUR SCRIPT>/proxy-cmd.sh
这里你可以在~/.bashrc中export GIT_PROXY_COMMAND,就没有必要每次都export了。
至此,你就可以repo init了。
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
怎样远程连接windows share folder
除了ubuntu自带的connect to server外,还有一种办法:
这里我简单写了几个步骤:
首先是跟上网无关的,那就是设置中文输入环境:
1.在CDROM中插入Ubuntu CD,在Ubuntu面板上选择“System->Administration->Software
Sources”,然后选中“Installable from CD-ROM/DVD”
2.选择“System->Administration->Language Support”,选中“Use input
method...”然后单击“Install/Remove Languages...”,Choose "Chinese" and
then apply.
3.“System->Preferences->SCIM Input Method Setup”,在“Global Setup”中,
你会看到中文输入法,设置Hotkey,重启即可。
接下来是设置Office网络:
1.“System->Preferences->Network Connections”,在“Wired”tab中编辑
Connection,“802.1x Security”Authentication选择Protected EAP(PEAP),
里面选项选择“MSCHAPV2”,然后输入你的User name以及Passwd
(和你Windows中的OA Account一致)
接下来设置Internet Proxy,有两个,一个是Firefox,另一个是Terminal:
Firefox:“Edit->Preference->Advanced->Network”,选择“Settings...”,
然后设置Http Proxy(根据你公司的网络)
Terminal:这一步,我们需要cntlm这个插件,如附档。
安装cntlm,然后“sudo gedit /etc/cntlm.conf”,修改Username, Domain,
Password和Proxy;
编辑完后,运行“sudo cntlm -f -v”
最后“System->Preferences->Network Proxy”,选中“Manual proxy
configuration”,HTTP Proxy输入127.0.0.1, Port输入3128
然后按下“Apply System-Wide...”
这些设置完后,可以试下“sudo apt-get update”
做完上面这些设置后,你应该就可以通过Proxy上OA网络,而且可以apt-get了。
补充:内网ssh代理
使用corkscrew sudo apt-get install corkscrew
修改用户目录下的.ssh/config文件,正常情况下没有config文件
Host *
ProxyCommand corkscrew http-proxy.example.com 8080 %h %p
I successfully 'GIT' android source through http proxy. Here is my
steps:
Download a tool corkscrew from http://www.agroman.net/corkscrew/
tar zxvf corkscrew-2.0.tar.gz cd corkscrew-2.0 ./configure make cp corkscrew ~/bin # or to any directory in your $PATH
Create a shell script named 'git-proxy' in ~/bin, include following
content:
#!/bin/sh exec ~/bin/corkscrew <proxy name> <proxy port> $*
Replace ~/bin/ and <...> with your own information.
and then run following command:
git config --global core.gitproxy '~/bin/git-proxy'
========================================================
有可能会出现如下错误
Getting repo ... from git://android.git.kernel.org/tools/repo.git fatal: exec ~/bin/git-proxy failed. fatal: The remote end hung up unexpectedly
解决办法:
1. make sure your git-proxy has x attribute: chmod +x git-proxy.
2. make sure your git-proxy is correct.
3. try replace ~/bin with the absolute path.
===========================================================
还有一个工具
1. Install socat. For example, on Debian/Ubuntu, just sudo apt-get install socat.
2. Create a script called gitproxy in your bin directory;
#!/bin/sh
# Use socat to proxy git through an HTTP CONNECT firewall.
# Useful if you are trying to clone git:// from inside a company.
# Requires that the proxy allows CONNECT to port 9418.
#
# Save this file as gitproxy somewhere in your path (e.g., ~/bin) and then run
# chmod +x gitproxy
# git config --global core.gitproxy gitproxy
#
# More details at http://tinyurl.com/8xvpny
# Configuration. Common proxy ports are 3128, 8123, 8000.
_proxy=proxy.yourcompany.com
_proxyport=3128
exec socat STDIO PROXY:$_proxy:$1:$2,proxyport=$_proxyport
view raw gitproxy-socat This Gist brought to you by GitHub.
You will need to replace proxy.yourcompany.com with the name of your proxy host and the port with the port used by the proxy (common ports include 3128, 8123 and 8000). (If the javascript is broken, visit Gist 49288 and download the raw file; or use the original commands as reproduced in the comments.)
3. Configure git to use it:
$ git config --global core.gitproxy gitproxy
按照上面的两种方法,我设置git proxy依旧没有能够成功:(
这里,我再介绍我成功设置git proxy的第三种办法
使用socket
step如下:
1 sudo apt-get install socket
2 在你的home/allen/bin(这个在$PATH中)下创建脚本 "proxy-cmd.sh"
#! /bin/bash
(echo "CONNECT $1:$2 HTTP/1.0"; echo; cat ) | socket YOUR_PROXY
YOUR_PROXY_PORT | (read a; read a; cat )
3 chmod +x proxy-cmd.sh
4 export GIT_PROXY_COMMAND=<PATH TO YOUR SCRIPT>/proxy-cmd.sh
这里你可以在~/.bashrc中export GIT_PROXY_COMMAND,就没有必要每次都export了。
至此,你就可以repo init了。
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
怎样远程连接windows share folder
除了ubuntu自带的connect to server外,还有一种办法:
#!/bin/sh sudo mount //10.193.77.93/FreeShare /mnt/share/ -o iocharset=utf8,username=wjrt87,password=123,dmask=777,fmask=777,codepage=cp936,uid=0
- cntlm_0.35.1-1_i386.rar (55.8 KB)
- 下载次数: 7
- corkscrew-2.0.tar.gz (55.4 KB)
- 下载次数: 1
发表评论
-
AOSP source code build error: Virtual memory exhausted: Cannot allocate memory
2014-01-02 15:47 1341Sometimes compiling certain thi ... -
Disable Amazon hint in Ubuntu search
2013-12-22 18:07 922Getting bored with Amazon assoc ... -
Remove Ubuntu One
2013-12-08 23:08 840To start, we need to make sure ... -
Get Rid Of “System Program Problem Detected” error in Ubuntu
2013-12-08 22:59 646Remove old crash-reports - reco ... -
error: gnutls_handshake() falied when you sync chip code in ubuntu
2013-11-30 19:47 890gnutls package is broken, worka ... -
unix2dos dos2unix
2013-03-04 20:12 770sudo aptitude install tofrodos ... -
JDK6 installed in Ubuntu
2012-11-10 15:23 815按照网上的方法apt-get并不成功,我这里采用的方法是手工安 ... -
Android source sync问题汇总(since 2012)
2012-11-04 16:00 18061. [repo init] fetch address is ... -
How to develpe Object-C on Ubuntu
2011-11-21 17:08 10971) Install the GNU Objective-C ... -
如何使用USB及wubi安装ubuntu11.10
2011-11-15 17:48 7工具/原料 usb或者usb接口的存储介质(如mp3/4/ ... -
Ubuntu-Studio 11.10下载
2011-11-15 17:46 951http://cdimage.ubuntu.com/ubunt ... -
Ubuntu10.10上怎样安装JDK5
2011-01-04 11:11 1440sudo apt-get install sun-java5- ... -
Hello LUA
2010-12-17 14:08 1308LUA, who are you? Lua是一种轻量级的 ... -
Ubuntu10.04安装后丢失windows启动项解决方法
2010-06-27 16:45 1457先安装的windows,然后安装ubuntu后重启没有了启动选 ... -
更换Ubuntu Java开发环境
2010-05-28 10:31 1095allen@ubuntu:~/jordan/cts05$ su ... -
如何释放Ubuntu多余的空间?如何给Ubuntu扩容(install inside windows)?
2010-05-28 09:06 7455最近发现ubuntu空间老被占满,腾出了5G空间,不过一会儿d ... -
Wubi安装ubuntu10.04
2010-05-25 11:05 928http://www.wubi-installer.org/ ... -
Ubuntu新安装后需要做的事
2010-05-25 09:18 1597其中的某些步骤没有亲自尝试过,遇到问题可以先google ... -
Ubuntu更新源列表(更新到10.10)
2010-05-21 11:29 4364Ubuntu 10.10 #官方的Ubuntu 10.10要 ... -
apt-get提示插入cd的解决办法
2010-05-19 13:26 1656当用apt-get的时候,有时候会出现如下提示 比如sudo ...
相关推荐
对于学习ubuntu 9.04的童鞋很有用滴
在ubuntu 9.04上安装VMWareTools步骤 上海嵌入式家园-开发板商城 联系人:贺工(嵌入式高级系统工程师) 电话: 13917077026 QQ: 844698468 MSN: embedclub@hotmail.com Email:embedclub@vip.qq.com 网址:...
Ubuntu 9.04 ISPconfig设置
ubuntu 9.04 安装配置优化全记录
SimpleScalar是一款经典的CPU模拟器,本文介绍了如何在Ubuntu9.04下安装SimpleScalar。安装中会出现许多问题,文中给出了解答。
Ubuntu9.04服务器配置手册, 关于UBUNTU9.04服务器配置的简明手册,讲述服务器配置的详细步骤。
Ubuntu-9.04-1gb.7z,是colinux下的Ubuntu 9.04的镜像文件~
此教程收录了各个论坛的精华帖子,绝对给你打造一个完美的Ubuntu
OpenERP Installing Ubuntu9.04
新手windows下硬盘安装Ubuntu 9.04 新手windows下硬盘安装Ubuntu 9.04 新手windows下硬盘安装Ubuntu 9.04 新手windows下硬盘安装Ubuntu 9.04 新手windows下硬盘安装Ubuntu 9.04新手windows下硬盘安装Ubuntu 9.04 ...
ubuntu每次装完之后,网络配置经常不成功无法链接到外网,所以做个总结以后可供参考
这个资源是为了给大家提供更快的更新源而上传。其中包含了中科大的貌似最快的源。
NULL 博文链接:https://yuanqixun.iteye.com/blog/427715
Ubuntu 9.04 双网卡双 IP 配置方法 本文将详细介绍 Ubuntu 9.04 双网卡双 IP 配置方法,解决了双线情况下只能 ping 通一个网卡的问题。 在 Ubuntu 9.04 系统中,配置双网卡双 IP 需要解决两个问题:一是配置两个...
NULL 博文链接:https://beyondjhf-2008.iteye.com/blog/403046
ubuntu9.04下的LAMP安装 ubuntu9.04下的LAMP安装 验证OK
NULL 博文链接:https://ironurbane.iteye.com/blog/428080
对Ubuntu 9.04进行极其详细的介绍...
NULL 博文链接:https://zywang.iteye.com/blog/407055