Re: A simple question about hebrew in terminal
On Wed, Jun 24, 2009 at 09:32:34AM +0300, Dan Shimshoni wrote: Hello, I have support in hebrew on my Linux desktop (Fedora 10). I can switch to hebrew with the keyboard indicator and it works. Say I want to perform a simple operation in terminal: rename a file named a.txt to קובץ.txt I type: mv a.txt and then, when I type: ק and then ו and then ב and then ץ it shows: ץבוק I can of course write the letters in reverse order, but this is not comfortable to do it for each rename operation. Why not use tab completion? -- Tzafrir Cohen | tzaf...@jabber.org | VIM is http://tzafrir.org.il || a Mutt's tzaf...@cohens.org.il || best ICQ# 16849754 || friend ___ Linux-il mailing list Linux-il@cs.huji.ac.il http://mailman.cs.huji.ac.il/mailman/listinfo/linux-il
Nmap, tty and Perl
Hi, I am trying to get nmap to be a bit more friendly by wrapping it inside a perl script that will cause it to spit out a status by sending it a character: == #!/usr/bin/perl use IPC::Open3; use POSIX :sys_wait_h; use FileHandle; $| = 1; my $nmap = /usr/bin/nmap; my @ips = ('192.168.1.*'); my $cmdline = $nmap $args -v -v -v -sT -p 1-65535 -oX - .(join ' ',@ips); print cmdline: $cmdline\n; my ($readfh, $writefh, $errorfh) = (FileHandle-new(), FileHandle-new(), FileHandle-new()); my $pid = 0; $pid = open3($writefh, $readfh, $errorfh, $cmdline) || die Can't open pipe to $cmdline: $!\n; while($readfh) { print $_; print $writefh A; } print STDERR done\n; == nmap will give out a progress if keyWasPressed is detected the code for this is found inside nmap_tty.cc which basically does: if ((c = tty_getchar()) = 0) { For some reason the above code doesn't do it, is it because its not being sent via tty? if so is there a way to fool it? ___ Linux-il mailing list Linux-il@cs.huji.ac.il http://mailman.cs.huji.ac.il/mailman/listinfo/linux-il
Re: Nmap, tty and Perl
Gabor, Those two are great packages, but they don't get a more frequent progressbar than that which is spit out by Nmap, which is problematic if you want to show it more interactively to the user. BTW: 1) the first one has several bugs, for example it gets stuck as it waits for the IO which never comes :D - but it is easy to fix... just remove the $error join which is found in the Parser 2) the second one is synchronic only (doesn't support asynchronic), which is problematic On Thu, Jun 25, 2009 at 12:10 PM, Gabor Szaboszab...@gmail.com wrote: On Thu, Jun 25, 2009 at 10:59 AM, Noam Rathausno...@beyondsecurity.com wrote: Hi, I am trying to get nmap to be a bit more friendly by wrapping it inside a perl script that will cause it to spit out a status by sending it a character: I don't know much about nmap but have you looked at either of the following modules ? http://search.cpan.org/dist/Nmap-Scanner/ http://search.cpan.org/dist/Nmap-Parser/ Gabor http://www.perl.org.il/ ___ Linux-il mailing list Linux-il@cs.huji.ac.il http://mailman.cs.huji.ac.il/mailman/listinfo/linux-il
Re: Nmap, tty and Perl
Hi Noam! A few comments on your Perl code. On Thursday 25 June 2009 10:59:47 Noam Rathaus wrote: Hi, I am trying to get nmap to be a bit more friendly by wrapping it inside a perl script that will cause it to spit out a status by sending it a character: == #!/usr/bin/perl use IPC::Open3; use POSIX :sys_wait_h; use FileHandle; 1. You should add use strict; and use warnings;. They prevent many common errors. 2. The FileHandle module was largely superseded by IO::File, IO::Socket, etc. You should use them instead. $| = 1; my $nmap = /usr/bin/nmap; my @ips = ('192.168.1.*'); my $cmdline = $nmap $args -v -v -v -sT -p 1-65535 -oX - .(join ' ',@ips); print cmdline: $cmdline\n; Where is $args declared and defined? Also consider using http://search.cpan.org/dist/String-ShellQuote/ . my ($readfh, $writefh, $errorfh) = (FileHandle-new(), FileHandle-new(), FileHandle-new()); This can be more elegantly written as map { IO::Handle-new() } (1 .. 3); my $pid = 0; $pid = open3($writefh, $readfh, $errorfh, $cmdline) || die Can't open pipe to $cmdline: $!\n; while($readfh) { print $_; print $writefh A; } Perhaps read one character at a time here? (Or set $/ ?) print STDERR done\n; == Regards, Shlomi Fish nmap will give out a progress if keyWasPressed is detected the code for this is found inside nmap_tty.cc which basically does: if ((c = tty_getchar()) = 0) { For some reason the above code doesn't do it, is it because its not being sent via tty? if so is there a way to fool it? ___ Linux-il mailing list Linux-il@cs.huji.ac.il http://mailman.cs.huji.ac.il/mailman/listinfo/linux-il -- - Shlomi Fish http://www.shlomifish.org/ Interview with Ben Collins-Sussman - http://xrl.us/bjn8s God gave us two eyes and ten fingers so we will type five times as much as we read. ___ Linux-il mailing list Linux-il@cs.huji.ac.il http://mailman.cs.huji.ac.il/mailman/listinfo/linux-il
Re: Nmap, tty and Perl
On Thu, Jun 25, 2009 at 12:19 PM, Noam Rathausno...@beyondsecurity.com wrote: Gabor, Those two are great packages, but they don't get a more frequent progressbar than that which is spit out by Nmap, which is problematic if you want to show it more interactively to the user. BTW: 1) the first one has several bugs, for example it gets stuck as it waits for the IO which never comes :D - but it is easy to fix... just remove the $error join which is found in the Parser 2) the second one is synchronic only (doesn't support asynchronic), which is problematic Have you reported those bugs (feature request) ? You know it is very easy to report a bug, just send an e-mail to bug-Nmap-Scanner at rt.cpan.org bug-Nmap-Parser at rt.cpan.org with details of what you have encountered. Gabor ___ Linux-il mailing list Linux-il@cs.huji.ac.il http://mailman.cs.huji.ac.il/mailman/listinfo/linux-il
Re: Nmap, tty and Perl
Gabor, I did - but these two packages appear to be left-ware, they haven't been updated it quite a while. Nmap-Scanner = October 29, 2006 Nmap-Parser = 07 Nov 2008 The first appears much more dead then the second one, which is a shame as the first one is more comprehensive than the second one. On Thu, Jun 25, 2009 at 12:32 PM, Gabor Szaboszab...@gmail.com wrote: On Thu, Jun 25, 2009 at 12:19 PM, Noam Rathausno...@beyondsecurity.com wrote: Gabor, Those two are great packages, but they don't get a more frequent progressbar than that which is spit out by Nmap, which is problematic if you want to show it more interactively to the user. BTW: 1) the first one has several bugs, for example it gets stuck as it waits for the IO which never comes :D - but it is easy to fix... just remove the $error join which is found in the Parser 2) the second one is synchronic only (doesn't support asynchronic), which is problematic Have you reported those bugs (feature request) ? You know it is very easy to report a bug, just send an e-mail to bug-Nmap-Scanner at rt.cpan.org bug-Nmap-Parser at rt.cpan.org with details of what you have encountered. Gabor ___ Linux-il mailing list Linux-il@cs.huji.ac.il http://mailman.cs.huji.ac.il/mailman/listinfo/linux-il
Re: Nmap, tty and Perl
On Thu, Jun 25, 2009 at 10:59 AM, Noam Rathausno...@beyondsecurity.com wrote: Hi, I am trying to get nmap to be a bit more friendly by wrapping it inside a perl script that will cause it to spit out a status by sending it a character: I don't know much about nmap but have you looked at either of the following modules ? http://search.cpan.org/dist/Nmap-Scanner/ http://search.cpan.org/dist/Nmap-Parser/ Gabor http://www.perl.org.il/ ___ Linux-il mailing list Linux-il@cs.huji.ac.il http://mailman.cs.huji.ac.il/mailman/listinfo/linux-il
Setting NFS server on Fedora Core 9
I am trying to set an NFS server (for a local network) on fedora 9 I have exported the directory in /etc/exports I have started rpcbind and nfs From another computer (in this case running Ubuntu) I tried mounting the directory. After few seconds I got an error mount.nfs mount system call failed I googled for guides on NFS on fedora and it seems I did everything fine and it still does not work. Does anyone have any idea? -- Ori Idan ___ Linux-il mailing list Linux-il@cs.huji.ac.il http://mailman.cs.huji.ac.il/mailman/listinfo/linux-il
Re: Setting NFS server on Fedora Core 9
On Thursday 25 June 2009, Ori Idan wrote: I am trying to set an NFS server (for a local network) on fedora 9 I have exported the directory in /etc/exports I have started rpcbind and nfs From another computer (in this case running Ubuntu) I tried mounting the directory. After few seconds I got an error mount.nfs mount system call failed I googled for guides on NFS on fedora and it seems I did everything fine and it still does not work. Does anyone have any idea? FW ? # ___ Linux-il mailing list Linux-il@cs.huji.ac.il http://mailman.cs.huji.ac.il/mailman/listinfo/linux-il
Re: Setting NFS server on Fedora Core 9
I have checked again and made sure firewall is disabled and still get the same problem. -- Ori Idan On Thu, Jun 25, 2009 at 2:33 PM, Dotan Shavit do...@shavitos.com wrote: On Thursday 25 June 2009, Ori Idan wrote: I am trying to set an NFS server (for a local network) on fedora 9 I have exported the directory in /etc/exports I have started rpcbind and nfs From another computer (in this case running Ubuntu) I tried mounting the directory. After few seconds I got an error mount.nfs mount system call failed I googled for guides on NFS on fedora and it seems I did everything fine and it still does not work. Does anyone have any idea? FW ? # ___ Linux-il mailing list Linux-il@cs.huji.ac.il http://mailman.cs.huji.ac.il/mailman/listinfo/linux-il
Re: Setting NFS server on Fedora Core 9
2009/6/25 Ori Idan o...@helicontech.co.il I am trying to set an NFS server (for a local network) on fedora 9 I have exported the directory in /etc/exports I have started rpcbind and nfs From another computer (in this case running Ubuntu) I tried mounting the directory. After few seconds I got an error mount.nfs mount system call failed I googled for guides on NFS on fedora and it seems I did everything fine and it still does not work. Does anyone have any idea? -- Ori Idan Maybe dmesg output on both sides to see if there's anything interesting? Of course, we assume that you checked that normal connectivity works (ping, ssh, etc). Note that FW can be on both ends. -- Shimi ___ Linux-il mailing list Linux-il@cs.huji.ac.il http://mailman.cs.huji.ac.il/mailman/listinfo/linux-il
Re: Setting NFS server on Fedora Core 9
On Thursday 25 June 2009, Ori Idan wrote: I have checked again and made sure firewall is disabled and still get the same problem. First try mounting from the same machine. And... check the log files... # ___ Linux-il mailing list Linux-il@cs.huji.ac.il http://mailman.cs.huji.ac.il/mailman/listinfo/linux-il
Re: Setting NFS server on Fedora Core 9
Ori, 1) can you post here the output of your mounting trial with verbose mode: (mount -v) ? (and the exact mount options you are using) 2) Also : can you post /etc/exports ? Best Regards, Rami Rosen On Thu, Jun 25, 2009 at 2:46 PM, Dotan Shavitdo...@shavitos.com wrote: On Thursday 25 June 2009, Ori Idan wrote: I have checked again and made sure firewall is disabled and still get the same problem. First try mounting from the same machine. And... check the log files... # ___ Linux-il mailing list Linux-il@cs.huji.ac.il http://mailman.cs.huji.ac.il/mailman/listinfo/linux-il ___ Linux-il mailing list Linux-il@cs.huji.ac.il http://mailman.cs.huji.ac.il/mailman/listinfo/linux-il
Re: Setting NFS server on Fedora Core 9
Try to see that RPC is working properly the shares are really exported: from the server run: rpcinfo -p 0 (shows RPC) - check for NFS entries showmount -e 0 - check that you see the shares you expect from the client run the same commands just with the IP address of the server instead of 0 sometimes /var/log/messages on the server can be useful as well, for instance when you have permissions problems because of bad DNS configurations. On Thu, Jun 25, 2009 at 3:01 PM, Rami Rosen rosenr...@gmail.com wrote: Ori, 1) can you post here the output of your mounting trial with verbose mode: (mount -v) ? (and the exact mount options you are using) 2) Also : can you post /etc/exports ? Best Regards, Rami Rosen On Thu, Jun 25, 2009 at 2:46 PM, Dotan Shavitdo...@shavitos.com wrote: On Thursday 25 June 2009, Ori Idan wrote: I have checked again and made sure firewall is disabled and still get the same problem. First try mounting from the same machine. And... check the log files... # ___ Linux-il mailing list Linux-il@cs.huji.ac.il http://mailman.cs.huji.ac.il/mailman/listinfo/linux-il ___ Linux-il mailing list Linux-il@cs.huji.ac.il http://mailman.cs.huji.ac.il/mailman/listinfo/linux-il ___ Linux-il mailing list Linux-il@cs.huji.ac.il http://mailman.cs.huji.ac.il/mailman/listinfo/linux-il
Re: Setting NFS server on Fedora Core 9
--- On Thu, 6/25/09, Ori Idan o...@helicontech.co.il wrote: From: Ori Idan o...@helicontech.co.il Subject: Setting NFS server on Fedora Core 9 To: IGLU Mailing list linux-il@cs.huji.ac.il Date: Thursday, June 25, 2009, 2:27 PM I am trying to set an NFS server (for a local network) on fedora 9 I have exported the directory in /etc/exports I have started rpcbind and nfs From another computer (in this case running Ubuntu) I tried mounting the directory. After few seconds I got an error mount.nfs mount system call failed I googled for guides on NFS on fedora and it seems I did everything fine and it still does not work. Does anyone have any idea? Has NFS server anything interesting in it's log files ? Valery -- Ori Idan -Inline Attachment Follows- ___ Linux-il mailing list Linux-il@cs.huji.ac.il http://mailman.cs.huji.ac.il/mailman/listinfo/linux-il ___ Linux-il mailing list Linux-il@cs.huji.ac.il http://mailman.cs.huji.ac.il/mailman/listinfo/linux-il
Re: Why is GNU/Linux so Bloated?
Hi all! On Thursday 11 June 2009 16:59:32 Shlomi Fish wrote: Hi all! Based on the gcc-4.4.0 (with -Os) / x86-Linux shared library sizes here: http://tech.groups.yahoo.com/group/fc-solve-discuss/message/998 And the Visual C++/Win32 (also x86) .dll sizes here: http://tech.groups.yahoo.com/group/fc-solve-discuss/message/999 My question is: why are the Visual C++ generated binaries so much smaller than the equivalent Linux ones? Any insights would be appreciated. Replying to myself, I'd like to note that I recently fixed some build problems in the Freecell Solver distribution, and after I was through, MSVC now generates a larger .dll file, comparable in size to the gcc -Os one - i.e: 40K-50K. I guess it previously wasn't built correctly. Regards, Shlomi Fish -- - Shlomi Fish http://www.shlomifish.org/ Humanity - Parody of Modern Life - http://xrl.us/bkeut God gave us two eyes and ten fingers so we will type five times as much as we read. ___ Linux-il mailing list Linux-il@cs.huji.ac.il http://mailman.cs.huji.ac.il/mailman/listinfo/linux-il
Re: Why is GNU/Linux so Bloated?
Hi Shlomi, On Thu, Jun 25, 2009 at 04:20:00PM +0300, Shlomi Fish wrote: Replying to myself, I'd like to note that I recently fixed some build problems in the Freecell Solver distribution, and after I was through, MSVC now generates a larger .dll file, comparable in size to the gcc -Os one - i.e: 40K-50K. I guess it previously wasn't built correctly. Care to elaborate on those build problems? What build option caused the binary size bloat? baruch -- ~. .~ Tk Open Systems =}ooO--U--Ooo{= - bar...@tkos.co.il - tel: +972.2.679.5364, http://www.tkos.co.il - ___ Linux-il mailing list Linux-il@cs.huji.ac.il http://mailman.cs.huji.ac.il/mailman/listinfo/linux-il
web based email/malling list tool
Hello, I'm looking for a FOSS based tool to manage multiple email groups with the ability to send mass email to people who register for it (that is, not a spam but rather something closer to a malling list). The thing is, that it should contain support for generating using web based app email HTML and text based messages. Does anyone here know of a good tool that does this sort of things ? Please note that I have tried Dada and it contains a lot more then what I need, and it's not that trivial to remove things from it. Thanks, Ido http://ik.homelinux.org/ ___ Linux-il mailing list Linux-il@cs.huji.ac.il http://mailman.cs.huji.ac.il/mailman/listinfo/linux-il
Re: Why is GNU/Linux so Bloated?
On Thursday 25 June 2009 16:52:11 Baruch Siach wrote: Hi Shlomi, On Thu, Jun 25, 2009 at 04:20:00PM +0300, Shlomi Fish wrote: Replying to myself, I'd like to note that I recently fixed some build problems in the Freecell Solver distribution, and after I was through, MSVC now generates a larger .dll file, comparable in size to the gcc -Os one - i.e: 40K-50K. I guess it previously wasn't built correctly. Care to elaborate on those build problems? What build option caused the binary size bloat? Actually, it is the other way around. Some build issues caused MSVC to generate much smaller (and probably mal-functioning) binaries. I fixed several problems now that caused it to fail in the 2.32.0 release. However, with a previous release, the build did not fail (but generated the small binaries). The NEWS file for 2.32.1 reads: { Version 2.32.1: (25-Jun-2009) - 1. Added a #define BUILDING_DLL 1 so fcs_dllexport.h will work fine on Microsoft Visual C++. 2. Normalised the DLLEXPORT modifiers. 3. Some fixes to the CMake build system: - CHECK_C_COMPILER_FLAG now uses a different variable for each flag, since the variable was cached. - tcmalloc is now truly optional. 4. Moved the declaration of the strncasecmp(a,b,c) macro for WIN32 systems to before its first use. 5. All of this was done to fix many build/compilation problems. } Regards, Shlomi Fish baruch -- - Shlomi Fish http://www.shlomifish.org/ Optimizing Code for Speed - http://xrl.us/begfgk God gave us two eyes and ten fingers so we will type five times as much as we read. ___ Linux-il mailing list Linux-il@cs.huji.ac.il http://mailman.cs.huji.ac.il/mailman/listinfo/linux-il
Re: Setting NFS server on Fedora Core 9
On 25.06.2009 Ori Idan wrote: I am trying to set an NFS server (for a local network) on fedora 9 I have exported the directory in /etc/exports I have started rpcbind and nfs From another computer (in this case running Ubuntu) I tried mounting the directory. After few seconds I got an error mount.nfs mount system call failed First let's test the network end-to-end. From the client: $ rpcinfo -t server 15 program 15 version 1 ready and waiting program 15 version 2 ready and waiting program 15 version 3 ready and waiting $ rpcinfo -u server 15 program 15 version 1 ready and waiting program 15 version 2 ready and waiting program 15 version 3 ready and waiting Than repeat the test for the nfs protocol itself (use 13 instead of 15). These tests send a null request and test the result. If they pass: * No need to test connectivity or firewall. * No need to test rpcbind work OK. * No need to test that the service itself is OK. * Just config/permission problems. If they fail, you now have a list of what to test... One last note -- Fedora-9 is EOL in ~two weeks. Better plan your upgrade/replacement path (I already upgraded all my hosts to F11) Cheers, -- Oron Peled Voice: +972-4-8228492 o...@actcom.co.il http://www.actcom.co.il/~oron The speed of light really is too slow nowdays. -- Alan Cox ___ Linux-il mailing list Linux-il@cs.huji.ac.il http://mailman.cs.huji.ac.il/mailman/listinfo/linux-il
Re: A simple question about hebrew in terminal
Herouth Maoz wrote: Quoting Dan Shimshoni danshi...@gmail.com: and if you show it in a BiDi aware application (say, konqueror or whatever file explorer you use), it will show properly. It is true that if I try to browse the contents of this directory with mozilla for example, it shows indeed : File:קובץ.a However, when I try to look at the contents of that directory using midnight commander, it shows garbage. something like: ץ???ק.a And it is important for me to view the contents of directories with hebrew file names properly with midnight commander as it is my daily file management app. seems that midnight commander has an encoding rather than BiDi issue. You should look for a way to set up its encoding, to be aware of UTF-8 file names. Not all MC versions with the the same version number are born equal. Some distros such as RH went as far as writing their own patches to MC for UTF-8 support and better looks. -- Sincerely yours, Michael Vasiliev ___ Linux-il mailing list Linux-il@cs.huji.ac.il http://mailman.cs.huji.ac.il/mailman/listinfo/linux-il
Re: Setting NFS server on Fedora Core 9
It's all working now. The problem was firewall only. -- Ori Idan On Thu, Jun 25, 2009 at 8:55 PM, Oron Peled o...@actcom.co.il wrote: On 25.06.2009 Ori Idan wrote: I am trying to set an NFS server (for a local network) on fedora 9 I have exported the directory in /etc/exports I have started rpcbind and nfs From another computer (in this case running Ubuntu) I tried mounting the directory. After few seconds I got an error mount.nfs mount system call failed First let's test the network end-to-end. From the client: $ rpcinfo -t server 15 program 15 version 1 ready and waiting program 15 version 2 ready and waiting program 15 version 3 ready and waiting $ rpcinfo -u server 15 program 15 version 1 ready and waiting program 15 version 2 ready and waiting program 15 version 3 ready and waiting Than repeat the test for the nfs protocol itself (use 13 instead of 15). These tests send a null request and test the result. If they pass: * No need to test connectivity or firewall. * No need to test rpcbind work OK. * No need to test that the service itself is OK. * Just config/permission problems. If they fail, you now have a list of what to test... One last note -- Fedora-9 is EOL in ~two weeks. Better plan your upgrade/replacement path (I already upgraded all my hosts to F11) Cheers, -- Oron Peled Voice: +972-4-8228492 o...@actcom.co.il http://www.actcom.co.il/~oronhttp://www.actcom.co.il/%7Eoron The speed of light really is too slow nowdays. -- Alan Cox ___ Linux-il mailing list Linux-il@cs.huji.ac.il http://mailman.cs.huji.ac.il/mailman/listinfo/linux-il
Fwd: XenServer is enterprise-ready and free.
Hi, I just received a promotion for Free XenServer through SearchEnterpriseLinux. Can someone explain to me what, if at all, is the advantage of using it? Can it replace the CentOS 5 Dom0's I use now and if so will it run my DomU's more efficiently? Or does it just have a slicker management console? Here is the beginning of the e-mail I received: -- Forwarded message -- From: SearchEnterpriseLinux.com searchenterpriseli...@lists.techtarget.com Date: 2009/6/26 Subject: XenServer is enterprise-ready and free. To: amos.shap...@gmail.com amos.shap...@gmail.com Today, access our featured download, http://go.techtarget.com/r/8152027/6103796 PRODUCT: Free, Enterprise-ready Virtualization COMPANY: Citrix TARGET USER: Managers of IT infrastructure TERMS OF TRIAL LICENSE: Complete, enterprise-ready, no cost server virtualization solution. CLICK HERE TO TRY IT OUT: http://go.techtarget.com/r/8152028/6103796 ___ Linux-il mailing list Linux-il@cs.huji.ac.il http://mailman.cs.huji.ac.il/mailman/listinfo/linux-il