[ot] can I have an account on your host? (so that I can edit wikipedia)

2006-12-21 Thread
Hello. I am from China and I'd like to contribute to wikipedia, but this
is not easy / possible because we cannot access wikipedia from inland
(the great firewall) and my usual method accesssing wikipedia (through
ssh -L 80:en.wikipedia.org:80 my_server_in_german) can allow me to visit
wikipedia but do not allow me to edit it (open proxy, your host IP
address is detected to be belonging to a hosting company).

Can I have an account on your host (or maybe not an account, any means
let me access wikipedia from a host that is not in datacenter) so that I
can go on editing wikipedia?

 I. this account don't need to have any privilege but only able to
do TCP port-forward, or if you can set up stunel for me you
don't need to create an account (the connection between your
host and mine must be SSLed because our firewall is context
based;
II. your host better be online most of time, even in the night;
   III. I'll give you my public key so that you don't need to open
password authentication of sshd;
IV. even if IP address is not fixed, if there are dynamic domain
name set up, I can also use that;
 V. If there are better ideas how I can edit wikipedia, please let
me know;

My public-key (long line!):

ssh-dss 
B3NzaC1kc3MAAAEBALM/Ts0BK9LsVgTTnDSdPyKAYpTcdJAq2rdRmaZ+0kfgiwfuMCIGttWqMFigi4IVPziKJYxc+x7ahj3CVRq3CwrjRUr8uxJvJvF8L48odHVy3ZPDac9vQouySaPURLceopXNzK/QK6pIzgOKRVe1wkc2XrE8MFepchD+JynyxnEeY0so4JSJ+P/az2gryVVW0Ci/xvSIguKkAwFsJbfU8AG5HQuIpzjM7FHFE3bjqWEH8YPX9EtdsiiifwhsqTLbT2mvh6Lns3e3j9TrZoikxmJz4Bhb6Ao2VMNL1FJeu7Tq5Qj+R4uwGxbVRNy+rXZCESzguHNGfjLsZpfXKOZ9CTkVAOCOtrSRrPYov3EXjIof11WBc3thAAABAQCStUXSbYDcYgKWoMs/cFDXOjfJn8jDnaDsihZ4tUagc0T701U0aMOM22rBwcZWM+JO7G0K5CJHPC7eEEc49DwBSHLIySTnrgLOwPNsEvfCvNH6oXfvdm1oU/BRd7lPAvq/AQHqJ8upw5KjQ6kTKIRQVnkqy5TVrNkg4FFnNyplqMAuRNF4Oxxvkm9F7fdkHuTlxaoXk/X6etDPGkSb6VeXj5FY+LU2JmUEkF7cGG6t2tAFiCyqMOmgyRDleph7aP5GkCiYEdqcL81peRaA3ACly9EjFYAn8Sk4znVc6ReGWKkvqpTOzovNhw/Gjrhef8c3rjwSw5jp1TStDOai8jgqAAABAAgVAQBYwm8dZlzkUIccPha/YxPfDCpSwD7H4T/jxBqRgL7+JkjDip5KfNPgu1altPD3kVzsLahXo83WJPmOkzaquTDa6DohGa3dcYW5yp24xOaV3LLUMyCECBZbrj053Xk9F1/MusCLpDWBl7CekkucIbxgIr6sCrHibFiC5gFKf/eCCwk0jjpl/HwsQGmBzOmtWGcp6x/2gL2QoFggqcW1vdIvgZ62UykrAvuO/Hq6iBJC147Ri1ivd6P7GMB/Gqq+M03KusUWTgiJdqR8zlouljovafdCwkL00dZwowNe57ufoxg8/UtbDytR7K2/urQEwYBdw/dUEJWg2RlRoHg=
 [EMAIL PROTECTED]

P.S. I use my root to connect because normal user cannot open port 80,
hope this is not a problem. (having a port number like 8080 is not so
convenient for sometimes I need to access it behind restrictive LAN
firewall)


___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to [EMAIL PROTECTED]


network analyse tool? To debug IMAP related problems

2006-12-10 Thread
Hello. I would wish to have a tool that would do this kind of thing:

 1. listen on imap port on localhost, connect to localhost with my
email client;
 2. forward the traffic from/to/between real imap server;
 3. meanwhile, print everything being transfer-ed, so that I can
have a good ovewview of server-client conversation;

I don't know what such kind of tool is usually called and thus difficult
to do an effective google search. I tried a few tools in ports/net but
none of them seems to be working in this way... (admit that I didn't
look into pkg-descr of every package)

___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to [EMAIL PROTECTED]


tip(1) connect to another host with serial cable: vim display junk text

2006-12-09 Thread
Hello List.

This is another stupid frequent question that might already get answered
a thousand times, but I cannot do effective googles because the word
'tip' is too general.

Local host is freebsd 6.1, remote host is Gentoo Linux. Both connected
through serial cable on COM1. Now I wish to control Linux with my
FreeBSD. This command can let me login to the Linux host

$ tip com1

But after I logged in I found using VIM would create junk text. It seems
VIM do not know my terminal is very wide (more then 130 characters per
line).

So, how do I fix it? Google did give me a lot of 'tips' but none of them
is related to my problem...

Best Regards

___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to [EMAIL PROTECTED]


has ANYONE used FreeBSD read Chinese directories from a Windows Share? (was: Re: (repost) cannot read windows share)

2006-12-09 Thread
If our understanding to the current problem is correct (that FreeBSD
kernel iconv currently have problem with double-bit character-set), then
there should have never been FreeBSD users that can actually mount and
access a Windows Share that:
 I. is using GB2312 locale (that is, Windows Simplified Chinese
version);
II. have Chinese character in folder names

在 2006-12-05二的 17:36 +1100,Antony Mawer写道:
 On 5/12/2006 5:28 PM, 张韡武 wrote:
  在 2006-12-04一的 21:54 -0800,Garrett Cooper写道:
 Also, I'm not sure if FreeBSD has been configured to run the particular 
  character set you need (nor am I sure where any documentation may be 
  regarding how to set that up), but you also want to explore getting that 
  solved in tandem with the mount_smbfs item.
  
  I read carefully with mount_smbfs and as far as I can tell mount_smbfs
  is using iconv lib which compiled as kernel module. After I run
  mount_smbfs I checked and made sure libiconv.ko is automatically loaded.
  According to documents, mount_smbfs automatically load this kernel
 ...
 
 I don't know if this is at all useful, but I have come across the 
 following patches, which appear to have been ported from Darwin, to 
 improve handling of multibyte character sets:
 
  http://people.freebsd.org/~imura/kiconv/
 
 It would be interesting to see these committed (if they are valuable), 
 as I know there are issues with FreeBSD mount_smbfs when operating 
 against the Mac OSX samba implementation, which (I am told) only speaks 
 UCS2.
 
 Given the work already gone into these, it would be nice to see them 
 finished off and committed... I wonder how many other smbfs-related 
 improvements may exist in Darwin that might be worth looking at?
 
  http://www.opensource.apple.com/darwinsource/10.4.8.x86/smb-217.18/
 
 Cheers
 Antony

___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to [EMAIL PROTECTED]


Re: access wikipedia (walk through the great firewall of China)

2006-12-08 Thread
在 2006-12-08五的 06:53 +,Matthew Seaman写道:
 ??? wrote:
  Hello. My office use this method to access wikipedia behind the great
  firewall of China:
  
  1) we have a server in europ, let's call it server;
  2) I run this command on my desktop:
  $ ssh -L 80:en.wikipedia.org:80 server;
  3) everybody in the office edit /etc/hosts, add this line:
  [my_ip_addr] en.wikipedia.org
  
  So my computer become a 'proxy'.
  
  The trouble is I have to keep the ssh running there. The 'proxy' will
  not automatically set up next time I reboot my computer.
  
  Is it possible to install some software to run as a daemon and do this
  proxy?
  
  I think of stunnel, but I have too few knowledge to know if stunnel can
  do this.
 
 There are two general possibilities here:
 
   a) A Web cache/proxy -- squid is the canonical example, but you can
  do this sort of stuff in apache very readily.  I think apache 
  would be a good place for you to start, as most sysadmins have
  at least a passing acquaintance with its configuration.
 
  You'ld need set up a proxy on your European server to redirect
  any web traffic to en.wikipedia.org -- your users would use the
  service exactly as they do at the moment, but they'd put the
  IP of the European server into their hosts file, rather than
  your desktop.  If that is a problem, then you can chain together
  a series of proxies starting with your desktop machine, then
  the European server -- but performance may be a tad slow.

We have a lot of problems accessing any sort of proxy outside China, the
latest technology in the great firewall of China, if you had read the
newspaper, is content-based filtering. 443 port of many foreign servers
are also being blocked.

 
   b) IPsec or other VPN tunnel between your server in Europe and a
  local firewall -- preferably your local firewall should be on
  the egress path from your LAN.  Then you can arrange routing
  so that packets to destinations in Europe pass through the 
  tunnel and use your European server as the gateway to the
  internet.  In this case, there shouldn't be any need for your
  users to have to spoof the address of en.wikipedia.org in 
  their hosts files.  IPSec comes standard with FreeBSD, but
  you'ld probably want to combine it with pf(4) or other firewall
  software which you can use to control redirecting appropriate
  packets through your tunnel.  If IPSec is too mind-mangling
  for you, OpenVPN (in ports) is a pretty good alternative.
 
  You'll almost definitely want to configure a NAT gateway on
  the European server.
  
 Either of these solutions will run automatically on system startup, if
 so configured.  Option (a) will send your web traffic across the net
 in clear-text unless you can chain two proxies together and get creative
 about using HTTPS.  Or you can combine both approaches: use a local HTTP
 proxy with a VPN tunnel to your European server.

Thank you very much for your detailed explanation, I believe me and many
other people on the list is going to benefit from it.

Currently the only website we want very much but being blocked is
wikipedia. Other websites being blocked are mostly about politics and
news, which we are not interested (I think most people in China are not
interested what foreign news says, and getting used to ignore 3rd party
politic information). Wikipedia is an exception because it has a lot of
useful information, not just politics. So basically if wikipedia is
accessible, we are happy. Your general solution looks really complicated
to me that I would like to do it as weekend fun, but probably not going
to be able to maintain it.

Information is like this: you don't need to block all information in
order to prevent people knowing them, you only need to put barrier
higher. There are many ways to workaround (walk-through) the Great
Firewall, but every time when I look into different complicated
solutions, I say to myself is it worthy to spend so much time on it? And
ends up saying to myself, save the time, let's just don't read these
news.

___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to [EMAIL PROTECTED]


ask to borrow 6.1-RELEASE /etc/ttys

2006-12-08 Thread
As every careless stupid user would do, today I have destroyed
my /etc/ttys. Luckily I didn't reboot after I destroyed this file. (Yes
I know I should backup before editing /etc/ttys, the fact is I didn't
try to edit it at all, it's a typo that made me pipe the output of some
app to this file)

Can someone send his /etc/ttys ? I don't have another FreeBSD to recover
this file.

Thank you!

___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to [EMAIL PROTECTED]


how do I do this special proxy?

2006-12-07 Thread
Hello. I know this question must have been asked on the list, I simply
don't know how to describe my problem with good English so that I can
start a google search.

We got a Windows file server in the next office, I have a FreeBSD host
in my office. I wish to let it listen on 135/139 port (I am not sure
which one is used for Windows file sharing), and forward any request to
the Windows file server as if this FreeBSD is accessing the windows
share itself. Also it forward the packet from Windows share server to
client. To the client, the FreeBSD host IS the windows share server.
However the Windows share server always think the FreeBSD host is the
client. So this is a proxy I guess.

Is it possible?

I ask this because I wish to access these files at home, but my home ISP
block access to the Windows share server for ISP competition reason.
Luckily I have a FreeBSD server in my office connected to both competing
ISP. I think I can configure this FreeBSD act as a proxy to access the
Windows share.

P.S. Complain to these governmental ISP won't work. This is in China.

___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to [EMAIL PROTECTED]


access wikipedia (walk through the great firewall of China)

2006-12-07 Thread
Hello. My office use this method to access wikipedia behind the great
firewall of China:

1) we have a server in europ, let's call it server;
2) I run this command on my desktop:
$ ssh -L 80:en.wikipedia.org:80 server;
3) everybody in the office edit /etc/hosts, add this line:
[my_ip_addr] en.wikipedia.org

So my computer become a 'proxy'.

The trouble is I have to keep the ssh running there. The 'proxy' will
not automatically set up next time I reboot my computer.

Is it possible to install some software to run as a daemon and do this
proxy?

I think of stunnel, but I have too few knowledge to know if stunnel can
do this.

___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to [EMAIL PROTECTED]


Re: access wikipedia (walk through the great firewall of China)

2006-12-07 Thread
在 2006-12-08五的 14:25 +0800,张韡武写道:
 Hello. My office use this method to access wikipedia behind the great
 firewall of China:
 
 1) we have a server in europ, let's call it server;
 2) I run this command on my desktop:
 $ ssh -L 80:en.wikipedia.org:80 server;
 3) everybody in the office edit /etc/hosts, add this line:
 [my_ip_addr] en.wikipedia.org
 
 So my computer become a 'proxy'.
 
 The trouble is I have to keep the ssh running there. The 'proxy' will
 not automatically set up next time I reboot my computer.
 
 Is it possible to install some software to run as a daemon and do this
 proxy?
 
 I think of stunnel, but I have too few knowledge to know if stunnel can
 do this.

Forgot to mention another requirement is to be able to automatically
re-connect if the ssh connection drops. It's difficult to maintain a
connection the whole day..

___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to [EMAIL PROTECTED]


urxvt arrow keys do not work in ncurse?

2006-12-06 Thread
Hello. I am running urxvt and I have this problem:
 I. run sysinstall;
II. press down arrow key on my keyboard;
   III. sysinstall quits;

urxvt send escape sequence to applications run inside it, is it true
that some application like sysinstall in freebsd are configured to
ignore escape sequence?

sysinstall probably think it received an ESC and decide to quit, for
normal ncurse application they usually quit after received ESC for one
second but no other keystroke are following. Can I configure FreeBSD to
act this way too?

___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to [EMAIL PROTECTED]



(repost) cannot read windows share

2006-12-04 Thread
This is a re-post, I am getting desperate because my work
require me to connect to this share and my colleague can mount
the share on Debian. I will have to move to install Debian if I
wish to go on working... But I am already used to my BSD. It's
too strange to move to another OS for such a tiny problem! Could
what I mention below be a bug of FreeBSD mount_smbfs?

Using FreeBSD 6.1, I can mount a windows share but the Chinese
characters in folder and file names look junk text to me. Charset
conversion (-E parameter of mount_smbfs) do not work at all. If I do
ls(1) to a directory that has Chinese character in its name, the process
'ls' will take about 80% CPU resource and hang there forever. Ctrl+C
cannot stop it (kill -KILL can). If I run other command that read any
file in the directory that has Chinese character in its name, that
application hangs there taking about 80% CPU resource too.

This process is better illustrated with this screenshot:
gopher://sdf.lonestar.org/I/users/weiwu/mount_chinese_smbshare.png

In the screenshot, I do have mounted the share with -E parameter which
should convert GB18030 folder names to UTF-8 but 
actually no conversion is done (see the ls | iconv which shows what it
should be looking like if the conversion is done)

Actually I have never successfully done charset conversion with
mount_smbfs, what did I do wrong?

___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to [EMAIL PROTECTED]


Re: (repost) cannot read windows share

2006-12-04 Thread
在 2006-12-04一的 21:54 -0800,Garrett Cooper写道:
   Also, I'm not sure if FreeBSD has been configured to run the particular 
 character set you need (nor am I sure where any documentation may be 
 regarding how to set that up), but you also want to explore getting that 
 solved in tandem with the mount_smbfs item.

I read carefully with mount_smbfs and as far as I can tell mount_smbfs
is using iconv lib which compiled as kernel module. After I run
mount_smbfs I checked and made sure libiconv.ko is automatically loaded.
According to documents, mount_smbfs automatically load this kernel
module for charset conversion.

My charset specified in commandline is CP936 which is supported by
iconv. iconv can also support GB18030 GB2312 GBK which are
equivalents of CP936. I tried all these equivalents but none of them
works.

I also tried to specify -E UTF-8:junkjunk and got an error message says
junkjunk is not supported, this shows if I don't get such error message,
the charset I specified should be supported. Well, I didn't get such
error message with GB18030 GB2312 GBK...

 Regardless of whether or not you specify the right character code for 
 smbmount, if the character set isn't available to the system or setup 
 properly, your specifying the character set with mount_smbfs is pretty 
 much moot; I know because I use Japanese in Linux and was having similar 
 issues until I got everything setup on the machine for Japanese reading 
 and writing. FreeBSD China http://www.freebsd.org.cn/ probably holds 
 the answers to your problem, if your system isn't setup to read/write 
 Chinese.

Yes, thank you for pointing out this link, I actually checked that link
before coming to this list. From the documents on www.freebsd.org.cn
they did mentioned another problem related to Chinese share but I am
pretty sure it's not my problem...

   Isn't cross-language communication fun =\?

In reality, yes. In computer world, I hope I never had these
problems.

 -Garrett
 ___
 freebsd-questions@freebsd.org mailing list
 http://lists.freebsd.org/mailman/listinfo/freebsd-questions
 To unsubscribe, send any mail to [EMAIL PROTECTED]

___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to [EMAIL PROTECTED]


Re: (repost) cannot read windows share

2006-12-04 Thread
在 2006-12-04一的 19:46 -0600,Lane写道:

 weiwu,
 
 One thing comes to mind:  Try your question here:
...
 Your question is specific to samba, and probably not related to 
 FreeBSD-specific issues.

My question is DIRECTLY freebsd-related because:
 I. samba itself don't have this problem (tried on SuSE, Debian and
Gentoo). mount -t cifs on Linux works fine.
II. mount_smbfs is a freebsd native tool
   III. charset conversion options of samba (iocharset and codepage) do
not work for mount_smbfs because mount_smbfs do not have these
options;
IV. mount_smbfs's charset option (-E) do not work for samba because
samba don't have this option
 V. samba's charset conversation is not using kernel module,
freebsd's mount_smbfs use kernel libiconv.ko module for
conversion;
VI. I tried to install samba from ports, and end up having samba
installed WITHOUT 'smbmount' command-line utility, it seems this
command is carefully removed for FreeBSD's port, forcing people
to use FreeBSD's mount_samba

Other strange thing:

I changed my locale to GB18030 and now I can list the Chinese
directories, but if I enter a Chinese directory then the application who
tries to enter the directory (e.g. ls) hangs. So it is strange for
me ... to understand.

 
 lane
 P.S.  I note that the hosts in the links above are mostly us1.  That's 
 probably something to do with the language specification on my system, but 
 may be different for you.  Check out www.samba.org for better links.
 ___
 freebsd-questions@freebsd.org mailing list
 http://lists.freebsd.org/mailman/listinfo/freebsd-questions
 To unsubscribe, send any mail to [EMAIL PROTECTED]

___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to [EMAIL PROTECTED]


Re: (repost) cannot read windows share

2006-12-04 Thread
在 2006-12-05二的 17:36 +1100,Antony Mawer写道:
[snip]
 I don't know if this is at all useful, but I have come across the 
 following patches, which appear to have been ported from Darwin, to 
 improve handling of multibyte character sets:
 
  http://people.freebsd.org/~imura/kiconv/
 
 It would be interesting to see these committed (if they are valuable), 
 as I know there are issues with FreeBSD mount_smbfs when operating 
 against the Mac OSX samba implementation, which (I am told) only speaks 
 UCS2.

Thank you very much for this very informative article. Here is what I
quoted from that article:
However, there are some limitations.
- unable to handle over 3 byte characters at all.
- tolower/toupper conversion is only possible for single byte
characters.
For example,  UTF-8 has 1-4 byte characters. GB18030 has 1,2,4
byte characters. At this time, we're unable to handle them.

So it is clear I will have problem, because it's being said, UTF-8 is
not possible. But UTF-16/USC2 should be possible and GB2312 should be
possible too because both are 2-bytes (UTF-16 are mostly 2-bytes).

Thus I should be able to:
1) adjust system locale to UTF-16 or USC2
2) use mount_smbfs -E UTF-16:GB2312

GB2312 is the stripped version of GB18030 that remove all GB18030 4-byte
characters from GB18030 (by discarding them).

But I think FreeBSD-6.1 do not include this nice person's work! Thus
even mount_smbfs -E UTF-16:GB2312 won't work for me.

Now I am really interested if I can get smbmount (part of samba)
working, if so, problem solved, otherwise there is no way to go.

 
 Given the work already gone into these, it would be nice to see them 
 finished off and committed... I wonder how many other smbfs-related 
 improvements may exist in Darwin that might be worth looking at?
 
  http://www.opensource.apple.com/darwinsource/10.4.8.x86/smb-217.18/
 
 Cheers
 Antony
 ___
 freebsd-questions@freebsd.org mailing list
 http://lists.freebsd.org/mailman/listinfo/freebsd-questions
 To unsubscribe, send any mail to [EMAIL PROTECTED]

___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to [EMAIL PROTECTED]