Re: Easy to use hex editor?
On Thu, 07 May 2015 09:16:20 +0300, geoffrey mendelson wrote: I have a DOS program I need to modify. I need to be able to load an DOS EXE file, and hopefully using a gui, search for ascii text and 8 byte floating point numbers in INTEL format and modify them. Then when I write the file it still needs to be be executable. If it has a patch mode, where I can compare the patched version to the original and get a diff type output, I would really be happy. You can use `hexl-mode' in Emacs. To hex-edit a file use the `hexl-find-file' Emacs command. To compare the 2 files use `cmp' or `diff' on the output of `od -t x1 file`. Ehud. -- Ehud Karni Tel: +972-3-7966-561 /\ Mivtach - Simon Fax: +972-3-7976-561 \ / ASCII Ribbon Campaign Insurance agencies (USA) voice mail and X Against HTML Mail http://www.mvs.co.il FAX: 1-815-5509341 / \ GnuPG: 98EA398D http://www.keyserver.net/Better Safe Than Sorry ___ Linux-il mailing list Linux-il@cs.huji.ac.il http://mailman.cs.huji.ac.il/mailman/listinfo/linux-il
Re: NTP
Hi All, There are applications to update the time by GPS - e.g. Smart Time Sync It needs root access. It does sync periodically (at most twice an hour). Such an application together with NTP server application (there are a few) makes a stratum 1 time server. Ehud. -- Ehud Karni Tel: +972-3-7966-561 /\ Mivtach - Simon Fax: +972-3-7976-561 \ / ASCII Ribbon Campaign Insurance agencies (USA) voice mail and X Against HTML Mail http://www.mvs.co.il FAX: 1-815-5509341 / \ GnuPG: 98EA398D http://www.keyserver.net/Better Safe Than Sorry ___ Linux-il mailing list Linux-il@cs.huji.ac.il http://mailman.cs.huji.ac.il/mailman/listinfo/linux-il
Re: running script after sftp upload
On Mon, 13 Jun 2011 17:38:26 Hetz Ben Hamo wrote: I'm trying to find a solution to this issue: I'm running an sftp-server in ubuntu. Users can login and upload files. What I want to do is to run a script (on the server side) that after user logged in and uploaded a file. sftp-server man pages don't give any help about this issue. The `sftp-server' is a free program, so you can take the source and fix it any way you want. I wanted to check this so I downloaded the openssh source tar ball and looked at sftp-server.c . I found out that without any change, you can get a log message when the `sftp-server' close a file, this message include the file name and the number of bytes read and written. By watching this log you can do whatever you want after each action. Since these are informative messages, You must change the `sftp-server' logging level to INFO, by adding -l INFO arguments to the `Subsystem' command in the /etc/ssh/sshd_config file. If don't want the messages in the SYSLOG, you can add the -e argument and redirect the stderr (i.e ... -l INFO -e 2/dir/.../log-file). You can use a FIFO file when redirecting so you can read the messages by a program or script directly. (please note, every time the sftp session ends, there is an EOF on the reading side, so you must restart to read). I did not check what happens when more then one `sftp-server' is running, I leave it to you. The messages from a short session: session opened for local user ehud from [192.168.3.6] open /var/tmp/chk-ip.sh flags WRITE,CREATE,TRUNCATE mode 0770 close /var/tmp/chk-ip.sh bytes read 0 written 1326 remove name /var/tmp/chk-ip.sh session closed for local user ehud from [192.168.3.6] Ehud. -- Ehud Karni Tel: +972-3-7966-561 /\ Mivtach - Simon Fax: +972-3-7976-561 \ / ASCII Ribbon Campaign Insurance agencies (USA) voice mail and X Against HTML Mail http://www.mvs.co.il FAX: 1-815-5509341 / \ GnuPG: 98EA398D http://www.keyserver.net/Better Safe Than Sorry ___ Linux-il mailing list Linux-il@cs.huji.ac.il http://mailman.cs.huji.ac.il/mailman/listinfo/linux-il
Re: Cell phone to send SMSs?
On Tue, 17 May 2011 23:12:05, geoffrey mendelson wrote: Does anyone know the cheapest (or just a cheap one) GSM phone with a USB interface that is supported by a Linux program to send SMSs? In other words, I want to write a program to monitor various conditions and then send me an SMS if they out of the proper range. I'm looking to spend as little money as possible. We use a bluetooth phone (An old Nokia 6230) with the gnokii software for receiving and sending SMSs (and also tracking incoming Rings). For sending SMSs only, I think a cheaper solution is to use an Internet SMS gateway (We use UNICELL). Check sms gateway israel in google. Ehud. -- Ehud Karni Tel: +972-3-7966-561 /\ Mivtach - Simon Fax: +972-3-7976-561 \ / ASCII Ribbon Campaign Insurance agencies (USA) voice mail and X Against HTML Mail http://www.mvs.co.il FAX: 1-815-5509341 / \ GnuPG: 98EA398D http://www.keyserver.net/Better Safe Than Sorry ___ Linux-il mailing list Linux-il@cs.huji.ac.il http://mailman.cs.huji.ac.il/mailman/listinfo/linux-il
Re: The riddle of atomic data transfer from process A to process B
On Wed, 13 Apr 2011 16:40:55, Ori Berger wrote: A full fledged queue would force the consuming process (process A) to read and process all data written by the producing process (process M) even when process A needs only the most recent value whenever it reads process M's data. I forgot how this scheme is called, but assuming you have some shared memory between the processes, what you do is: have value variable (e.g. value) and counter variable (counter) also shadow_value and shadow_counter initialize counter to 0 (any even number will do) in process M: atomic_increase counter; (or follow with memory_barrier()) write value; atomic_increase counter; (or follow with memory_barrier()) in process A: pre_counter = atomic_read counter; (or precede with memory_barrier()) new_value = read value; post_counter = atomic_read counter; (or precede with memory_barrier()) if (pre_counter == post_counter) (pre_counter%2 == 0), new_value has been safely read; write it to shadow_value, use that as value, (and for good measure store pre_counter in shadow_counter). if pre_counter != post_counter, use shadow_value - and be aware that your value is actually up to date only for shadow_counter. This scheme has some flows as Omer has noted. Let me propose somewhat different scheme based on the same principle that I think will work. Use shared memory segment that include: an index (byte or word) First array of N (N = 2) values to pass. Second array of N (N = 2) values to pass. Process A (the sending process) write the K (K=0...N-1) value to the 1st and 2nd array than it updates the index to K. Process B does: Reads the index save it (I). Reads the value I from the 1st array and save it (V1). Reads the value I from the 2nd array and save it (V2). Reads the index again (I2). if V1 = V2 and I = I2, use the value, otherwise redo from the top. This process ensures that B never gets a wrong value, but if A is too fast, B will never get a value. Ehud. -- Ehud Karni Tel: +972-3-7966-561 /\ Mivtach - Simon Fax: +972-3-7976-561 \ / ASCII Ribbon Campaign Insurance agencies (USA) voice mail and X Against HTML Mail http://www.mvs.co.il FAX: 1-815-5509341 / \ GnuPG: 98EA398D http://www.keyserver.net/Better Safe Than Sorry ___ Linux-il mailing list Linux-il@cs.huji.ac.il http://mailman.cs.huji.ac.il/mailman/listinfo/linux-il
Re: Relocatable linking on x86-64 for i386
On Mon, 4 Apr 2011 23:19:43 -0700, Valery Reznic wrote: --- On Mon, 4/4/11, Ehud Karni e...@unix.mvs.co.il wrote: In fact you can do: gcc -m32 file1.o file2.o -o output.o I vaguely remember that I tried to use gcc instead of ld long time ago, but gcc gave me some trouble - may be link failed after that, may be run-time problems. Just to state the facts. I use `gcc -m32' regularly to create 32 bit programs on 64 bit systems. I checked the ld replacement command specifically, and it worked without any problems. Ehud. -- Ehud Karni Tel: +972-3-7966-561 /\ Mivtach - Simon Fax: +972-3-7976-561 \ / ASCII Ribbon Campaign Insurance agencies (USA) voice mail and X Against HTML Mail http://www.mvs.co.il FAX: 1-815-5509341 / \ GnuPG: 98EA398D http://www.keyserver.net/Better Safe Than Sorry ___ Linux-il mailing list Linux-il@cs.huji.ac.il http://mailman.cs.huji.ac.il/mailman/listinfo/linux-il
Re: Relocatable linking on x86-64 for i386
On Mon, 4 Apr 2011 13:15:39 Gleb Natapov wrote: On 04/04/11 10:15, Valery Reznic wrote: Hello. I am trying to make relocatable linking on x86-64 box for objects in format i386 ld -m elf_i386 -r file1.o file2.o -o output.o If you use gcc for compiling you can do gcc -m32 arguments to compile and link. In fact you can do: gcc -m32 file1.o file2.o -o output.o instead of calling ld directly. Ehud. -- Ehud Karni Tel: +972-3-7966-561 /\ Mivtach - Simon Fax: +972-3-7976-561 \ / ASCII Ribbon Campaign Insurance agencies (USA) voice mail and X Against HTML Mail http://www.mvs.co.il FAX: 1-815-5509341 / \ GnuPG: 98EA398D http://www.keyserver.net/Better Safe Than Sorry ___ Linux-il mailing list Linux-il@cs.huji.ac.il http://mailman.cs.huji.ac.il/mailman/listinfo/linux-il
Re: Unused WesternDigital Passport 320GB USB exterrnal HD for sale
On Sun, 20 Mar 2011 23:30:35 Stan Goodman wrote: The manual has a chapter about converting the drive to use with Mac boxes, how to reformat, and how to opt out of the smart software. What it says one cannot do is avoid the need for a password. I am rethinking my offer of sale, reformating, and giving the smart software the deep six. If the hidden partitions won't bother me, I can pretend that they aren't there. I think you are wrong here. My understanding is that the SmartWare software is erased and you can reload it. My experience with other WD usb disks (not Passport) is that formatting it with fdisk (I did it on 1.5 TB disks) to 1 partition does work as expected - nothing is protected. Ehud. -- Ehud Karni Tel: +972-3-7966-561 /\ Mivtach - Simon Fax: +972-3-7976-561 \ / ASCII Ribbon Campaign Insurance agencies (USA) voice mail and X Against HTML Mail http://www.mvs.co.il FAX: 1-815-5509341 / \ GnuPG: 98EA398D http://www.keyserver.net/Better Safe Than Sorry ___ Linux-il mailing list Linux-il@cs.huji.ac.il http://mailman.cs.huji.ac.il/mailman/listinfo/linux-il
Re: mail issues questions
On Mon, 28 Feb 2011 13:46:10 +0200, Dima (Dan) Yasny wrote: DKIM is a method of publishing a public key in a txt DNS record, with which the subject line of every email sent, is signed. When yahoo MTA's receive an email, they don't just check the PTR record, they also check the subject line signature, with the public key available in the DNS records. If the signatures match - email goes through, otherwise it's dropped. And as for SPF: http://en.wikipedia.org/wiki/Sender_Policy_Framework Thank you for your explanations. 2011/2/28 Hetz Ben Hamo het...@gmail.com: [ use of DKIM and SPF for sending mail to Yahoo and Hotmail] This mail server - unix.mvs.co.il - does not have/use SPF/DKIM. The mail sent from it (or by it - it is used as remailer too) is not rejected from Yahoo, Gmail and many other mail servers (I did not check Hotmail, but as no mail returns from it, I assume it works too). I did get some rejects from revers DNS checker that don't do it right. I think Hetz's email rejection is either because of improper setting of its SPF, or because his IP is in some mail blacklist (you can use http://www.dnsbl.info/dnsbl-database-check.php to check). Ehud. -- Ehud Karni Tel: +972-3-7966-561 /\ Mivtach - Simon Fax: +972-3-7976-561 \ / ASCII Ribbon Campaign Insurance agencies (USA) voice mail and X Against HTML Mail http://www.mvs.co.il FAX: 1-815-5509341 / \ GnuPG: 98EA398D http://www.keyserver.net/Better Safe Than Sorry ___ Linux-il mailing list Linux-il@cs.huji.ac.il http://mailman.cs.huji.ac.il/mailman/listinfo/linux-il
[r...@gnu.org: Speeches in Israel?]
I got this request from RMS through Eli Zaretskii. I think one of the Israeli Linux forums (TELUX, HAIFUX) is appropriate I think the forum mangers should contact RMS directly and coordinate the speech. Ehud. From: Richard Stallman r...@gnu.org To: e...@gnu.org Subject: Speeches in Israel? Reply-to: r...@gnu.org Date: Wed, 12 Jan 2011 22:05:32 -0500 I think I will be in Israel in July. Do you know of any place that would like a speech about free software? -- Richard Stallman President, Free Software Foundation 51 Franklin St Boston MA 02110 USA www.fsf.org, www.gnu.org -- Ehud Karni Tel: +972-3-7966-561 /\ Mivtach - Simon Fax: +972-3-7976-561 \ / ASCII Ribbon Campaign Insurance agencies (USA) voice mail and X Against HTML Mail http://www.mvs.co.il FAX: 1-815-5509341 / \ GnuPG: 98EA398D http://www.keyserver.net/Better Safe Than Sorry ___ Linux-il mailing list Linux-il@cs.huji.ac.il http://mailman.cs.huji.ac.il/mailman/listinfo/linux-il
Re: WINE and Hebrew
On Sat, 11 Sep 2010 11:21:04 Amichai Rotman wrote: I am trying to install a Hebrew Win32 app (Lupa) using Wine - but the Hebrew letters show up as Gibberish... How do I add Hebrew support? I don't know what is `Lupa', but I have some experience with Wine. My suggestion is to copy all the (Hebrew) M$Windows fonts to the /usr/share/wine/fonts/ directory. Ehud. -- Ehud Karni Tel: +972-3-7966-561 /\ Mivtach - Simon Fax: +972-3-7976-561 \ / ASCII Ribbon Campaign Insurance agencies (USA) voice mail and X Against HTML Mail http://www.mvs.co.il FAX: 1-815-5509341 / \ GnuPG: 98EA398D http://www.keyserver.net/Better Safe Than Sorry ___ Linux-il mailing list Linux-il@cs.huji.ac.il http://mailman.cs.huji.ac.il/mailman/listinfo/linux-il
Re: WINE and Hebrew
On Mon, 13 Sep 2010 21:28:33 Amichai Rotman wrote: Is't there a way to make Wine Hebrew Enabled? Wine is Hebrew enabled but you have to tell it that you want Hebrew to be your default language by using environment variables. I use the following (text files): wine-LANG - #!/bin/sh set -a ## LANG=he_IL.utf8 LANG=he_IL.iso8859-8 LC_CTYPE=$LANG LC_NUMERIC=C LC_TIME=C LC_COLLATE=$LANG LC_MONETARY=$LANG LC_MESSAGES=$LANG LC_PAPER=$LANG LC_NAME=$LANG LC_ADDRESS=$LANG LC_TELEPHONE=C LC_MEASUREMENT=C LC_IDENTIFICATION=$LANG LC_ALL=$LANG set +a end of wine-LANG (by Ehud) -- wine-lang-exec (modification of wineboot) -- #!/bin/sh # # Wrapper script to start a Winelib application once it is installed # # Copyright (C) 2002 Alexandre Julliard # # This library is free software; you can redistribute it and/or # modify it under the terms of the GNU Lesser General Public # License as published by the Free Software Foundation; either # version 2.1 of the License, or (at your option) any later version. # # This library is distributed in the hope that it will be useful, # but WITHOUT ANY WARRANTY; without even the implied warranty of # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU # Lesser General Public License for more details. # # You should have received a copy of the GNU Lesser General Public # License along with this library; if not, write to the Free Software # Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301, USA # # determine the app Winelib library name appname=`basename $0 .exe`.exe set LANG environment for wine programs (Ehud Karni) . wine-LANG # first try explicit WINELOADER if [ -x $WINELOADER ]; then exec $WINELOADER $appname $@; fi # then default bin directory if [ -x /usr/bin/wine ]; then exec /usr/bin/wine $appname $@; fi # now try the directory containing $0 appdir= case $0 in */*) # $0 contains a path, use it appdir=`dirname $0` ;; *) # no directory in $0, search in PATH saved_ifs=$IFS IFS=: for d in $PATH do IFS=$saved_ifs if [ -x $d/$0 ]; then appdir=$d; break; fi done ;; esac if [ -x $appdir/wine ]; then exec $appdir/wine $appname $@; fi # finally look in PATH exec wine $appname $@ end of wine-lang-exec (by Ehud) Both files should be in /usr/bin, you should replace the following scripts by (hard) linking it to `wine-lang-exec': winepath winemine winefile winedbg wineconsole winecfg wineboot winebrowser uninstaller regsvr32 regedit progman notepad msiexec Where will I find those M$ Hebrew fonts? Copy it from a M$Windows installation. Ehud. -- Ehud Karni Tel: +972-3-7966-561 /\ Mivtach - Simon Fax: +972-3-7976-561 \ / ASCII Ribbon Campaign Insurance agencies (USA) voice mail and X Against HTML Mail http://www.mvs.co.il FAX: 1-815-5509341 / \ GnuPG: 98EA398D http://www.keyserver.net/Better Safe Than Sorry ___ Linux-il mailing list Linux-il@cs.huji.ac.il http://mailman.cs.huji.ac.il/mailman/listinfo/linux-il
Re: comparing two directory structures
On Mon, 6 Sep 2010 09:03:52 Gabor Szabo wrote: Very nice. I could not find it out from the archive, has it been accepted? No. I got no reply from the diffutil maintainer. Ehud. -- Ehud Karni Tel: +972-3-7966-561 /\ Mivtach - Simon Fax: +972-3-7976-561 \ / ASCII Ribbon Campaign Insurance agencies (USA) voice mail and X Against HTML Mail http://www.mvs.co.il FAX: 1-815-5509341 / \ GnuPG: 98EA398D http://www.keyserver.net/Better Safe Than Sorry ___ Linux-il mailing list Linux-il@cs.huji.ac.il http://mailman.cs.huji.ac.il/mailman/listinfo/linux-il
Re: comparing two directory structures
On Sat, 4 Sep 2010 12:21:40, Gabor Szabo wrote: I guess there is an obvious command for this, I just don't know it. How can I compare two directory structures if the content is the same *disregarding* actual file content, or comparing that only if the file names and sizes are the same? As I understand diff -r would do it but it would also compare files line by line. I had the same problem, so I patched diff to do it. I added 2 switches -Z: compare by siZe only, -M: different Modification time is a difference. For a full description with the patches see: http://www.mail-archive.com/bug-diffut...@gnu.org/msg00023.html As these are images and movies, I don't want to compare them line by line or event byte by byte. Seems very common these days. Ehud. -- Ehud Karni Tel: +972-3-7966-561 /\ Mivtach - Simon Fax: +972-3-7976-561 \ / ASCII Ribbon Campaign Insurance agencies (USA) voice mail and X Against HTML Mail http://www.mvs.co.il FAX: 1-815-5509341 / \ GnuPG: 98EA398D http://www.keyserver.net/Better Safe Than Sorry ___ Linux-il mailing list Linux-il@cs.huji.ac.il http://mailman.cs.huji.ac.il/mailman/listinfo/linux-il
Re: [Fwd: Re: Can there be an Ethernet Switch that doesn't work with Linux???]
On Sun, 29 Aug 2010 16:21:32 Nadav Har'El wrote: On Sun, Aug 29, 2010, shimi wrote I personally take TP-Link and Edimax at about the same grade... Thanks, good to know... It appears that every 3 years when I go shopping for computer parts, half these companies have come and gone, and I no longer know which one has which reputation... My 10 year-old-hub that I mentioned was from Intel, and it still works. First, Did you tried a fixed IP for the Linux ? I don't have much experience (only 2 Edimax and 2 TP-link switch routers). The companies are Chines/Taiwanese, in the market for at least 5 years. I had more trouble with the Edimaxes (one died after 5 years, the other does not fully comply with its advertised properties). I did not have any problems with the TP-link. On the other hand I have 3COM that had problems less than a year after I used it. Both the 3COM and Edimax had problems with the routing side, none with the switching. BTW. Regarding DHCP, I moved it from the router to my Linux server because I have more flexibility on the server. Ehud. -- Ehud Karni Tel: +972-3-7966-561 /\ Mivtach - Simon Fax: +972-3-7976-561 \ / ASCII Ribbon Campaign Insurance agencies (USA) voice mail and X Against HTML Mail http://www.mvs.co.il FAX: 1-815-5509341 / \ GnuPG: 98EA398D http://www.keyserver.net/Better Safe Than Sorry ___ Linux-il mailing list Linux-il@cs.huji.ac.il http://mailman.cs.huji.ac.il/mailman/listinfo/linux-il
Re: official way to load aoe module?
On Sat, 21 Aug 2010 01:30:58 Lior Kaplan wrote: The RedHat way: http://docs.redhat.com/docs/en-US/Red_Hat_Enterprise_Linux/5/html/Deployment_Guide/s1-kernel-modules-persistant.html I think this is the OLD RedHat way. Look at snippet from /etc/rc.sysinit of CentOS 5.5: # Load other user-defined modules for file in /etc/sysconfig/modules/*.modules ; do [ -x $file ] $file done # Load modules (for backward compatibility with VARs) if [ -f /etc/rc.modules ]; then /etc/rc.modules fi So, the new way is to have a /etc/sysconfig/modules/my.modules file. I think this is better because unrelated modules are not in the same file (like xinetd.d/ vs xinetd.conf). One of the advantage of this approach is the ability to have such a file included in an RPM (e.g. for AoE). Ehud. -- Ehud Karni Tel: +972-3-7966-561 /\ Mivtach - Simon Fax: +972-3-7976-561 \ / ASCII Ribbon Campaign Insurance agencies (USA) voice mail and X Against HTML Mail http://www.mvs.co.il FAX: 1-815-5509341 / \ GnuPG: 98EA398D http://www.keyserver.net/Better Safe Than Sorry ___ Linux-il mailing list Linux-il@cs.huji.ac.il http://mailman.cs.huji.ac.il/mailman/listinfo/linux-il
Re: How do you calculate?
On Thu, 20 May 2010 14:55:23 Nadav Har'El wrote: For years, I've been wondering: How do other Unix or Linux users do simple calculations? I use my Emacs package compute.el (www.t-e-k.biz/els/compute.el) for all computations. Since I'm doing everything through Emacs, it is just 1 keystroke (Alt-C) away. Bellow are some examples. Ehud. Compute: 2/3 result: 0.67. Compute: 2./3 result: 0.67. Compute: 2+3*4+5 result: 19, \x13. Compute: (2+3)*4+5 result: 25, \x19. Compute: @atan(1)*4 result: 180, \xb4. Compute: @d2r(180) result: 3.141593. Compute: 2/3*6 result: 4, \x4. Compute: 2/(3*6) result: 0.11. Compute: 2**10 result: 1024, \x400. Compute: A=2**10 A set to 2 result: 1024, \x400. Compute: A=(2**10) A set to 1024 result: 1024, \x400. Compute: A=(A/3) A was 1024A set to 341.333 result: 341.33. Compute: A=(A/3) A was 341.333A set to 113.778 result: 113.78. -- Ehud Karni Tel: +972-3-7966-561 /\ Mivtach - Simon Fax: +972-3-7976-561 \ / ASCII Ribbon Campaign Insurance agencies (USA) voice mail and X Against HTML Mail http://www.mvs.co.il FAX: 1-815-5509341 / \ GnuPG: 98EA398D http://www.keyserver.net/Better Safe Than Sorry ___ Linux-il mailing list Linux-il@cs.huji.ac.il http://mailman.cs.huji.ac.il/mailman/listinfo/linux-il
Re: Client recovery of NFS mount
On Wed, 12 May 2010 10:28:13 Tom Rosenfeld wrote: Is there a way in RHEL 5 for NFS clients to recover automatically after a server reboot? There is the hard (and intr that can go with it) option for NFS mounts: hard If an NFS file operation has a major timeout then report server not responding on the console and continue retrying indefinitely. This is the default. intr If an NFS file operation has a major timeout and it is hard mounted, then allow signals to interupt the file operation and cause it to return EINTR to the calling program. The default is to not allow file operations to be interrupted. Note that hard is the default, but the option soft (or nohard) cancels it. I use hard,intr and it solve the problem you describe in most case but not all (I did not find the reasons for the different behavior). Every time my server goes down, even for just a few minutes the clients get stuck with STALE nfshandles and the only way for me to recover is to umount and then mount again. Try my suggestion above. Ehud. -- Ehud Karni Tel: +972-3-7966-561 /\ Mivtach - Simon Fax: +972-3-7976-561 \ / ASCII Ribbon Campaign Insurance agencies (USA) voice mail and X Against HTML Mail http://www.mvs.co.il FAX: 1-815-5509341 / \ GnuPG: 98EA398D http://www.keyserver.net/Better Safe Than Sorry ___ Linux-il mailing list Linux-il@cs.huji.ac.il http://mailman.cs.huji.ac.il/mailman/listinfo/linux-il
Problems with kvm virtualization on Intel CPU with CentOS
: [80008d84] __handle_mm_fault+0x5f2/0xf99 Oct 10 10:00:11 cvhlnx kernel: [8014d83d] __next_cpu+0x19/0x28 Oct 10 10:00:11 cvhlnx kernel: [80097baf] __dequeue_signal+0x12d/0x193 Oct 10 10:00:11 cvhlnx kernel: [8008be71] default_wake_function+0x0/0xe Oct 10 10:00:11 cvhlnx kernel: [80097667] recalc_sigpending+0xe/0x25 Oct 10 10:00:11 cvhlnx kernel: [800420a5] do_ioctl+0x21/0x6b Oct 10 10:00:11 cvhlnx kernel: [800302ce] vfs_ioctl+0x457/0x4b9 Oct 10 10:00:11 cvhlnx kernel: [800a2d1a] sys_futex+0x10d/0x12d Oct 10 10:00:11 cvhlnx kernel: [8004c766] sys_ioctl+0x59/0x78 Oct 10 10:00:11 cvhlnx kernel: [8005d116] system_call+0x7e/0x83 Oct 10 10:00:11 cvhlnx kernel: -- Ehud Karni Tel: +972-3-7966-561 /\ Mivtach - Simon Fax: +972-3-7976-561 \ / ASCII Ribbon Campaign Insurance agencies (USA) voice mail and X Against HTML Mail http://www.mvs.co.il FAX: 1-815-5509341 / \ GnuPG: 98EA398D http://www.keyserver.net/Better Safe Than Sorry ___ Linux-il mailing list Linux-il@cs.huji.ac.il http://mailman.cs.huji.ac.il/mailman/listinfo/linux-il
Re: Adding Wireless to Cable Connection
On Thu, 08 Oct 2009 23:05:02 Aharon Schkolnik wrote: OK, looks like I can get a Edimax BR6204WG for NIS 160, or a TP-Link TL- WR641G for NIS 130. Anyone want to recommend for against either of these, or suggest something else ? First, buy a switch-router, you don't want do deal with dialing or NATTing (and all such devices has a crude firewall). Over the years, I had experience with Edimax, 3com and TP-link. I did find big differences, all work for few years (at least 5) and then have problems (usually they don't die completely). I suggest to buy the latest model (and cheapest). When performance degrade (which will happen), just replace it. Ehud. -- Ehud Karni Tel: +972-3-7966-561 /\ Mivtach - Simon Fax: +972-3-7976-561 \ / ASCII Ribbon Campaign Insurance agencies (USA) voice mail and X Against HTML Mail http://www.mvs.co.il FAX: 1-815-5509341 / \ GnuPG: 98EA398D http://www.keyserver.net/Better Safe Than Sorry ___ Linux-il mailing list Linux-il@cs.huji.ac.il http://mailman.cs.huji.ac.il/mailman/listinfo/linux-il
Re: How to do grub-install on a (non loading) virtual guest
On Mon, 21 Sep 2009 07:05:48 +1000, Amos Shapira amos.shap...@gmail.com wrote: I'm not sure why you have to create the device files, though - unless the vm filesystem is too screwed up for chroot (which it doesn't appear in your case), you shlould be able to (after your kpartx command): 1. Mount the vm's root partition (e.g. On /mnt/root). 2. mount -bind /$x /mnt/root/$x for $x in dev, sys and proc 3. Chroot /mnt/root 4. Do your stuff 5. Reverese the above. That'a how, for instance, I used to install Ubuntu desktop version with LVM2 (which didn't support setting up LVM2 in its installation disk). Your above recipe differ from mine just by using the host devices as is (i.e. not creating different devices on the non-running guest /dev). Did you try it ? I don't think this will work, because what I'm really doing is mapping the HOST /dev/loop7 into the GUEST /dev/hda, and (HOST) /dev/mapper/loop7p1 into (GUEST) /dev/hda1. I don't have /dev/hda in the host /dev but I need it the guest /dev. You can use mount -bind of /dev if you also create the right sym-links e.g. ln -s /dev/loop7 /dev/hda and ln -s /dev/mapper/loop7p1 /dev/hda1 but then you may have problems if the host have a real /dev/hda. You may skip the sym-linking and change the grub device map (/boot/grub/device.map) to have the line: (hd0) /dev/loop7 but then you may have other problems (grub-install want find /dev/loop71, you would not be able to run grub-install from within the guest itself without restoring the device.map . Ehud. -- Ehud Karni Tel: +972-3-7966-561 /\ Mivtach - Simon Fax: +972-3-7976-561 \ / ASCII Ribbon Campaign Insurance agencies (USA) voice mail and X Against HTML Mail http://www.mvs.co.il FAX: 1-815-5509341 / \ GnuPG: 98EA398D http://www.keyserver.net/Better Safe Than Sorry ___ Linux-il mailing list Linux-il@cs.huji.ac.il http://mailman.cs.huji.ac.il/mailman/listinfo/linux-il
How to do grub-install on a (non loading) virtual guest
I had problems with repeated virtual guest crashing and the grub boot loader destroyed. I found a way of doing grub-install to the virtual guest (a file, not a partition) on Centos5 host. I hope it may help anyone with a similar problem. 0) Ensure the virtual machine is not working (use `xm list' to check). 1) Mount the virtual disk (cooked file) on loop device. I use the `loop7' device because other loop devices may be used by working virtual guests. losetup /dev/loop7 virtual-guest-file 2) Add all the partitions to the device mapper: kpartx -a /dev/loop7 3) Mount the virtual root partition: mkdir -p /mnt/virt mount /dev/mapper/loop7p1 /mnt/virt 4) Check the Major/Minor values of the mounted devices ls -l /dev/loop7* /dev/mapper/loop7* 5) Work in as root partition: chroot /mnt/virt 6) create /dev/hda and /dev/hda1 devices: mknod dev/hda b 7 7- Major/minor of /dev/loop7 mknod dev/hda1 b 253 0 - Major/Minor of /dev/mapper/loop7p1 7) Fix the grub by re-install: grub-install /dev/hda 8) Exit the `chroot' jail exit 9) Unmount the virtual root partition: umount /mnt/virt rmdir /mnt/virt 10) Clear the /dev/mapper partitions: kpartx -d /dev/loop7 11) Release the loop device: losetup -d /dev/loop7 Now you can restart the virtual guest: xm create virtual-guest-name Ehud -- Ehud Karni Tel: +972-3-7966-561 /\ Mivtach - Simon Fax: +972-3-7976-561 \ / ASCII Ribbon Campaign Insurance agencies (USA) voice mail and X Against HTML Mail http://www.mvs.co.il FAX: 1-815-5509341 / \ GnuPG: 98EA398D http://www.keyserver.net/Better Safe Than Sorry ___ Linux-il mailing list Linux-il@cs.huji.ac.il http://mailman.cs.huji.ac.il/mailman/listinfo/linux-il
Re: Reading RTF files
On Fri, 10 Jul 2009 09:38:45 Micha Silver wrote: Ehud Karni wrote: I use `catdoc' which works quiet good (for both *doc and *rtf). `catdoc' is available as a package for Centos and Debian. Thanks for the tip, but I can't get any sensible output. I ran: catdoc -a -d8859-8 invoice150711.rtf | fribidi --charset ISO8859-8 --width=80 --rtl and I get 188 empty lines. :-( After Micha sent me his RTF file, I found out that it contain text boxes, not plain text. Using open office does not help, It shows empty (almost) page. Filter your RTF with the sed command bellow, it will drop the boxes. Than run catdoc as above or use open office (I used `ooviewdoc') both will show you the data (ooviewdoc saves more of the original layout). BTW. When viewed with M$word, the filtered file show empty boxes. Ehud. sed -e s/{...do.dobxpage.dobypara.dodhgt8192.dptxbx.dptxbxmar0{/{/g \ -e s/}.dpx[0-9]*.dpy[0-9]*.dpxsize[0-9]*.dpysize[0-9]*.dplinehollow0}/}/g -- Ehud Karni Tel: +972-3-7966-561 /\ Mivtach - Simon Fax: +972-3-7976-561 \ / ASCII Ribbon Campaign Insurance agencies (USA) voice mail and X Against HTML Mail http://www.mvs.co.il FAX: 1-815-5509341 / \ GnuPG: 98EA398D http://www.keyserver.net/Better Safe Than Sorry ___ Linux-il mailing list Linux-il@cs.huji.ac.il http://mailman.cs.huji.ac.il/mailman/listinfo/linux-il
Re: Reading RTF files
On Thu, 9 Jul 2009 10:12:23 ik wrote: If you do not afraid from some programming (not a lot of it), I can suggest you Lazarus and some 3rd party component that allow you to display RTF files. It's cross platform solution, so it can also work with Linux. I use `catdoc' which works quiet good (for both *doc and *rtf). `catdoc' is available as a package for Centos and Debian. Here is a script I use: catdoc -d8859-8 $1 | \ fribidi --charset ISO8859-8 --width 90 --rtl ${1}_h_txt nohup xmessage \ -background yellow -foreground Black -center\ -file ${1}_h_txt -title $1 -xrm $1.Scroll:whenNeeded \ -font -misc-fixed-medium-r-normal--13-120-75-75-c-80-iso8859-8 \ -buttons $SPC E x i t $SPC ס י ו ם $SPC /dev/null sleep 1# allow xmessage to start rm ${1}_h_txt# remove if not used Ehud. -- Ehud Karni Tel: +972-3-7966-561 /\ Mivtach - Simon Fax: +972-3-7976-561 \ / ASCII Ribbon Campaign Insurance agencies (USA) voice mail and X Against HTML Mail http://www.mvs.co.il FAX: 1-815-5509341 / \ GnuPG: 98EA398D http://www.keyserver.net/Better Safe Than Sorry ___ Linux-il mailing list Linux-il@cs.huji.ac.il http://mailman.cs.huji.ac.il/mailman/listinfo/linux-il
Re: OT: Where to find Xine compatible Hebrew subtitle files?
On Mon, 29 Jun 2009 14:38:54 sara fink wrote: http://code.google.com/p/subflip/ this is a script that will convert subtitles to work with xine From the help I understand it works for UTF-8 only (i.e. not for ISO-8859-8). Most Hebrew subtitles use the ISO-8859-8 encoding, of course you can covert (with iconv) but why bother ? You can use the VLC player which works very well on UBUNTU - http://www.videolan.org/vlc/download-ubuntu.html . It does show Hebrew (if you have a Hebrew font), both UTF-8 and ISO-8859-8, with bidi reordering. If you use ISO-8859-8 subtitle you should set it in the VLC options and NOT let it auto detect it. The auto detection works, but many times the first and last characters are not displayed. As for web sites to download subtitles in hebrew (maybe they won't work with xine and you will need to convert them) take a look at these good sites: http://subscene.com/subtitles/hebrew.aspx This is a good pointer for English subtitles, but the number of Hebrew subtitles is not impressive. Two Israeli sites (both have roughly the same reservoir of Hebrew subtitles, I like the 1st): http://www.sratim.co.il/movies/subtitles/ http://www.torec.net/movies.asp Another international subtitle site I use - http://www.allsubs.org/ Ehud. -- Ehud Karni Tel: +972-3-7966-561 /\ Mivtach - Simon Fax: +972-3-7976-561 \ / ASCII Ribbon Campaign Insurance agencies (USA) voice mail and X Against HTML Mail http://www.mvs.co.il FAX: 1-815-5509341 / \ GnuPG: 98EA398D http://www.keyserver.net/Better Safe Than Sorry ___ Linux-il mailing list Linux-il@cs.huji.ac.il http://mailman.cs.huji.ac.il/mailman/listinfo/linux-il
Re: Help - can anyone explain this segfault?
On Fri, 19 Jun 2009 19:10:33 Shachar Shemesh wrote: Dotan Shavit wrote: From man vfork: behavior is undefined if the process created by vfork() returns from the function in which vfork() was called... Well done, you nailed it. Placing an explicit call to exit for the child process solves the segfault. I hope you used _exit() and NOT exit(). The man page on my system for vfork says (read carefully, at least 3 catch you): vfork() differs from fork() in that the parent is suspended until the child makes a call to execve(2) or _exit(2). The child shares all memory with its parent, including the stack, until execve() is issued by the child. The child must not return from the current function or call exit(), but may call _exit(). Also note that vfork on GNU/Linux stops the parent until it exit by either calling _exit() or executing execve(). Normally (in older systems) it was used solely to execute another program. BTW. On linux, If you do execute a program right away, vfork is not really better than fork. On older systems (e.g. DG/UX) fork copied the whole memory before continuing, and vfork changed the shared (read: parent) memory. On linux fork use copy on write so it does not copy (almost) any memory before doing its work. Ehud. -- Ehud Karni Tel: +972-3-7966-561 /\ Mivtach - Simon Fax: +972-3-7976-561 \ / ASCII Ribbon Campaign Insurance agencies (USA) voice mail and X Against HTML Mail http://www.mvs.co.il FAX: 1-815-5509341 / \ GnuPG: 98EA398D http://www.keyserver.net/Better Safe Than Sorry ___ Linux-il mailing list Linux-il@cs.huji.ac.il http://mailman.cs.huji.ac.il/mailman/listinfo/linux-il
Re: Desktop search tools for Linux
On Sun, 24 May 2009 02:01:43 Omer Zak wrote: What search tool would you recommend for use today? My tradeoffs: - Ability to retrieve all results of a search, rather than say the 100 most recent ones. - Plenty of hard disk space, so it need not be economized. - After initial indexing, the daemon (or whatever) for handling new material should not load the PC too much. What's wrong with `locate' (beside it is not being updated during the day ?). You can wrap it any way you want, it has regular expression search, and it is fast. I use it both in work (over 3.5M files in 69K directories) and at home (~900K files) and it works fine. For example, here is the function I use to search my home media: lct () { RSRC=`echo $@ | tr .`; echo locate -i -b -r '$RSRC'; locate -i -b -r $RSRC | grep -E (/media/[msf][oui][vbl])|(/ehud/tmp) } The above can be written without the extended grep: lct () { RSRC=`echo $@ | tr .`; echo locate -i '$RSRC'; locate -i --regex ((/media/[msf][oui][vbl])|(/ehud/tmp)).*${RSRC}[^/]*$ } Ehud. -- @@ @@@ @@ @@ Ehud Karni אהוד קרני @@ @ @@ @ Senior System Support תמיכה במערכות מחשב @@ @@ @ @@Mivtach - Simon מבטח - סימון @@ @@ @@ Insurance agencies סוכנויות לבטוח Better Safe Than SorryTel: 03-7966-561 :טל Fax: 03-7966-667 :פקס http://www.mvs.co.il mailto:e...@unix.mvs.co.il :דואל ___ Linux-il mailing list Linux-il@cs.huji.ac.il http://mailman.cs.huji.ac.il/mailman/listinfo/linux-il
Re: Ditching ubuntu
On Wed, 20 May 2009 18:21:01 Meir Michanie wrote: What do you think about using CENTOS with livna as a home desktop? I want to install it and forget about it. For Grandma, I need skype, im, flash, video camera. It depends on your needs. If you want just some very common tasks - like browsing, spreadsheet etc, then you can use CentOS (I do). Beware that many media application won't work, or you won't be able to install them with yum. Just last week I needed to rip a DVD, to my surprise there was a package for CentOS: DVDRIP-0.98.10-6.el5, I installed it just to find out it does not work. Googling around, I found it is a known problem but without a solution (the same package works on Fedora 10). CentOS is very stable OS when used as server, not as media center. For desktop use, I'll stick with Fedora, not necessarily the last one. You have about 1.5 years maintenance from the distribution of a new version. Fedora 11 will be available sometime in June. Ehud. -- Ehud Karni Tel: +972-3-7966-561 /\ Mivtach - Simon Fax: +972-3-7966-667 \ / ASCII Ribbon Campaign Insurance agencies (USA) voice mail and X Against HTML Mail http://www.mvs.co.il FAX: 1-815-5509341 / \ GnuPG: 98EA398D http://www.keyserver.net/Better Safe Than Sorry ___ Linux-il mailing list Linux-il@cs.huji.ac.il http://mailman.cs.huji.ac.il/mailman/listinfo/linux-il
Re: Computer recommendation for Linux server.
On Thu, 7 May 2009 19:40:14 Josh Roden wrote: I need to setup a Linux Centos Samba file server. The server should have Raid 1 or 5 with a high storage capability (up to 4 or 8 TB). The budget is around 3,000 shekels so an HP or IBM machine probably won't be relevant. Last, but not least, the machine should be Linux compatible at least from your experiences if not in writing. I have just such a server at home. It serves 4 clients. It has 1.5TBx4 RAID5 (4.1 TB net) and runs samba. This is my 2nd server. It is active for 3 month now. The 1st server (still active) had only 1.5 TB and ran out of space. It is about 2 years old (serving from 20/7/2007). Besides using it as a server it is used as a desktop. The budget was about the same for both machines and is: Box: Dual CPU E2200, 2GB memory, 160 GB disk, RW DVD 1060 [1] Disks - 4 * 1.5 TB 2130 [2] SATA2 card, 4 ports (2 will suffice)150 [3] some cables and fans 60 3400 [1] - Bought in a sale in Mega (yes, the supermarket). [2] - Bought in the USA in 1/09 [3] - STLAB, on both machine Of course you should have a UPS (I do). Here are some data about it: Filesystem 1M-blocks Used Available Use% Mounted on /dev/sda119376 5248 13129 29% / /dev/md/d0p2 2830775 1388674 1442102 50% /RAID /dev/md/d0p1 1394262223326 1170937 17% /RAID-small old-fs:/LCL-RAID 1408361 1377580 30781 98% /OLD-RAID # cat /proc/mdstat Personalities : [raid6] [raid5] [raid4] md_d0 : active raid5 sdb1[0] sde1[3] sdd1[2] sdc1[1] 4395407808 blocks level 5, 64k chunk, algorithm 2 [4/4] [] # uname -a Linux ekc-fs 2.6.18-92.1.22.el5.centos.plus #1 SMP Wed Dec 17 10:49:19 EST 2008 x86_64 x86_64 x86_64 GNU/Linux Samba version 3.0.33-3.7.el5 Last, but not least, the machine should be Linux compatible at least from your experiences if not in writing. To this day, I installed Linux on many machines (brand names and white boxes, but not laptops), I have found all the machines to be Linux compatible. Ehud. -- Ehud Karni Tel: +972-3-7966-561 /\ Mivtach - Simon Fax: +972-3-7966-667 \ / ASCII Ribbon Campaign Insurance agencies (USA) voice mail and X Against HTML Mail http://www.mvs.co.il FAX: 1-815-5509341 / \ GnuPG: 98EA398D http://www.keyserver.net/Better Safe Than Sorry ___ Linux-il mailing list Linux-il@cs.huji.ac.il http://mailman.cs.huji.ac.il/mailman/listinfo/linux-il
Re: finding which public key was used to login to ssh
On Mon, 19 Jan 2009 12:06:59 +1100, Amos Shapira wrote: Is there a way to get the identity of the private/public key pair which was used to login to ssh? The log on the server (/var/log/secure) says things like: Jan 19 12:05:14 xen02 sshd[3960]: Accepted publickey for root from 192.168.0.81 port 43442 ssh2 Is there a way to make it include ID of ssh key used? This is on CentOS 5. Did you have a line like: Jan 19 14:45:50 mvs-s1 sshd[6153]: Found matching DSA key: a6:af:c4:f6:1e:6d:12:f9:e7:35:cf:e6:c7:58:5c:52 just preceding the Accepted publickey ? This is fingerprint of the corresponding key. You can check the fingerprint of a key by `ssh-keygen -l -f the_key_file'. Also, if you change the debug level of sshd by changing the LogLevel to DEBUG (instead of the default INFO, in /etc/ssh/sshd_config) you'll have an added line: Jan 19 14:45:50 mvs-s1 sshd[6153]: debug1: matching key found: file /home/ehud/.ssh/authorized_keys, line 3 So you know the exact match. Ehud. -- Ehud Karni Tel: +972-3-7966-561 /\ Mivtach - Simon Fax: +972-3-7966-667 \ / ASCII Ribbon Campaign Insurance agencies (USA) voice mail and X Against HTML Mail http://www.mvs.co.il FAX: 1-815-5509341 / \ GnuPG: 98EA398D http://www.keyserver.net/Better Safe Than Sorry = To unsubscribe, send mail to linux-il-requ...@cs.huji.ac.il with the word unsubscribe in the message body, e.g., run the command echo unsubscribe | mail linux-il-requ...@cs.huji.ac.il
Re: bash q -substitution
On Sun, 28 Dec 2008 13:21:59 Erez D wrote: On Sun, Dec 28, 2008 at 12:00 AM, Oleg Goldshmidt wrote: $ basename ${foo/*input_/} .txt this is a solution speceific to the .txt being preceided by the 000. (it will not work on path/input_000_xyz.txt). i just wanted to know if i can do that in one line in bash without any external programs (like sed ) the answer is - it can't be done. that's good enough for me, i'll use a temp var and two lines. It can be done with bash ONLY in 2 lines. 1st solution (simple extraction): FL=/GIBUY/abc_input_000_xyz.txt NUM=${FL:${#FL}-11:3} 2nd solution - use IFS to break the file name into parts: IFS=_. PRTS=($FL) # you can use the file name directly now you have the 000 in ${PRTS[2]} you can check it with: echo ${PRTS[0]} ${PRTS[1]} ${PRTS[2]} ${PRTS[3]} ${PRTS[4]} echo ${PRTS[2]} Ehud. -- Ehud Karni Tel: +972-3-7966-561 /\ Mivtach - Simon Fax: +972-3-7966-667 \ / ASCII Ribbon Campaign Insurance agencies (USA) voice mail and X Against HTML Mail http://www.mvs.co.il FAX: 1-815-5509341 / \ GnuPG: 98EA398D http://www.keyserver.net/Better Safe Than Sorry = To unsubscribe, send mail to linux-il-requ...@cs.huji.ac.il with the word unsubscribe in the message body, e.g., run the command echo unsubscribe | mail linux-il-requ...@cs.huji.ac.il
Re: silly bash scripting question
On Fri, 5 Dec 2008 09:58:34 +1100, Amos Shapira wrote: I've been doing shell programming for years but this got me stomped (simplified version): rsync=/usr/bin/rsync -navHz --delete --delay-updates --bwlimit=256 -e 'ssh -i /root/rsync.id' local=/mnt/data/html/minicpan copyto=test01:$local $rsync $local/ $copyto/ When I execute this script with sh -vx the final lines are: $rsync $local/ $copyto/ + /usr/bin/rsync -navHz --delete --delay-updates --bwlimit=256 -e ''\''ssh' -i '/root/rsync.id'\''' /mnt/data/html/minicpan/ test01:/mnt/data/html/minicpan/ Missing trailing-' in remote-shell command. rsync error: syntax or usage error (code 1) at main.c(361) [sender=3.0.4] It looks like the shell splits the value of $ssh into words and adds quoting around them. The rsync command line I'd like to see is: /usr/bin/rsync -navHz --delete --delay-updates --bwlimit=256 -e ''ssh -i /root/rsync.id'' /mnt/data/html/minicpan/ test01:/mnt/data/html/minicpan/ I don't think you want double apostrophes but a single quote. 1. You can solve your problem by putting the ssh command in RSYNC_RSH like this export RSYNC_RSH=ssh -i /root/rsync.id instead of using -e. 2 You can put the ssh command in a variable (no eval or functions): SSH=ssh -i /root/rsync.id rsync=/usr/bin/rsync -navHz --delete --delay-updates --bwlimit=256 -e local=/mnt/data/html/minicpan copyto=test01:$local $rsync $SSH $local/ $copyto/ ## note the quotes around $SSH 3. You can change the IFS variable to use : (or another character) instead of space, something like this (try it, I did): rsync=/usr/bin/rsync:-navHz:--delete:--delay-updates:--bwlimit=256:-e:ssh -i /root/rsync.id local=/mnt/data/html/minicpan copyto=test01:$local IFS=:# use only : (not space) to separate tokens $rsync $local/ $copyto/# you can use : or space for extra arguments Note. Be warned not to change the IFS. If you must do it (like in my 3rd solution), remember to set it back to what it was as soon as possible (its default - not be changed - value is \t\n). So do: SVIFS=$IFS IFS=new-value commands with changed IFS IFS=$SVIFS # the quotes are essential Ehud. -- Ehud Karni Tel: +972-3-7966-561 /\ Mivtach - Simon Fax: +972-3-7966-667 \ / ASCII Ribbon Campaign Insurance agencies (USA) voice mail and X Against HTML Mail http://www.mvs.co.il FAX: 1-815-5509341 / \ GnuPG: 98EA398D http://www.keyserver.net/Better Safe Than Sorry = To unsubscribe, send mail to [EMAIL PROTECTED] with the word unsubscribe in the message body, e.g., run the command echo unsubscribe | mail [EMAIL PROTECTED]
Re: silly bash scripting question - minor error correction
I had an error, I did not notice that one of your variable includes :. Change my separator character to % in the 3rd solution like this: rsync=/usr/bin/rsync%-navHz%--delete%--delay-updates%--bwlimit=256%-e%ssh -i /root/rsync.id local=/mnt/data/html/minicpan copyto=test01:$local # here you use : IFS=%# use only % (not space) to separate tokens $rsync $local/ $copyto/# you can use % or space for extra arguments Ehud. -- Ehud Karni Tel: +972-3-7966-561 /\ Mivtach - Simon Fax: +972-3-7966-667 \ / ASCII Ribbon Campaign Insurance agencies (USA) voice mail and X Against HTML Mail http://www.mvs.co.il FAX: 1-815-5509341 / \ GnuPG: 98EA398D http://www.keyserver.net/Better Safe Than Sorry = To unsubscribe, send mail to [EMAIL PROTECTED] with the word unsubscribe in the message body, e.g., run the command echo unsubscribe | mail [EMAIL PROTECTED]
Re: Telling libtool/automake to be less anal
On Sun, 21 Sep 2008 17:24:49 Shachar Shemesh wrote: Case in point: You want to develop a mozilla plugin. It is harmless but makes no sense to have the plug-in's name begin with lib. Also, if the plugin's name does not end in .so, Mozilla will refuse to load it. Worse, Mozilla explicitly resolves symbolic links, so merely putting the file name as libtool created it (libplugin.so.0.1.2) and placing a symbolic link to it will not work. The file has to actually be called libplugin.so. will adding a simple rule to make a real link, something like ln -f libplugin.so.0.1.2 plugin.so work for you ? Ehud. -- Ehud Karni Tel: +972-3-7966-561 /\ Mivtach - Simon Fax: +972-3-7966-667 \ / ASCII Ribbon Campaign Insurance agencies (USA) voice mail and X Against HTML Mail http://www.mvs.co.il FAX: 1-815-5509341 / \ GnuPG: 98EA398D http://www.keyserver.net/Better Safe Than Sorry = To unsubscribe, send mail to [EMAIL PROTECTED] with the word unsubscribe in the message body, e.g., run the command echo unsubscribe | mail [EMAIL PROTECTED]
Re: Telling libtool/automake to be less anal
On Mon, 22 Sep 2008 20:28:18 Shachar Shemesh wrote: Ehud Karni wrote: will adding a simple rule to make a real link, something like ln -f libplugin.so.0.1.2 plugin.so work for you ? Right now I'm not working on a Mozilla plugin (I'm writing a plugin for net-snmp agent, which is less anal about such things), so a link is neither necessary nor particularly important. When writing Mozilla plugins, the problem is not creating the links (running make install create those links with no extra work). The problem is that mozilla does, roughly, the following: - Scan all files in the plugin directory - For each file: As long as the type is symlink, resolve where it points to. - Check whether the file name ends with .so So the above plan (link from .so to the real name) will simply not work. Please don't ask me why that is what Mozilla does. Shachar, I suggested a real (hard) link, not a symbolic link. The -f was to ensure re-linking even if the target exist. Ehud. -- Ehud Karni Tel: +972-3-7966-561 /\ Mivtach - Simon Fax: +972-3-7966-667 \ / ASCII Ribbon Campaign Insurance agencies (USA) voice mail and X Against HTML Mail http://www.mvs.co.il FAX: 1-815-5509341 / \ GnuPG: 98EA398D http://www.keyserver.net/Better Safe Than Sorry = To unsubscribe, send mail to [EMAIL PROTECTED] with the word unsubscribe in the message body, e.g., run the command echo unsubscribe | mail [EMAIL PROTECTED]
Re: [Telux] Next OSDClub Tel Aviv Meeting: Puppet on 7-September
On Sun, 07 Sep 2008 19:38:44 Shlomi Fish wrote: The presentation is about Puppet. And it has been taking place today from 18:30. The Tel Aviv Linux Club (also now known as OSDClub Tel Aviv - Open Source Developers' Club) will hold a presentation by Ohad Levy on Sunday, 07-September-2008 about Puppet - the Central Management Tool. I attended Ohad's lecture and it was very good. It fully presented and covered the subject. Ohad started with somewhat theoretical aspects, but the questions from the audience directed him to a more practical approach. He has a lot of experience with Puppet on a large number of servers (3000). I enjoyed it (and learned from it) very much. Ehud. -- Ehud Karni Tel: +972-3-7966-561 /\ Mivtach - Simon Fax: +972-3-7966-667 \ / ASCII Ribbon Campaign Insurance agencies (USA) voice mail and X Against HTML Mail http://www.mvs.co.il FAX: 1-815-5509341 / \ GnuPG: 98EA398D http://www.keyserver.net/Better Safe Than Sorry = To unsubscribe, send mail to [EMAIL PROTECTED] with the word unsubscribe in the message body, e.g., run the command echo unsubscribe | mail [EMAIL PROTECTED]
Re: Byte per month?
On Mon, 8 Sep 2008 20:46:41 Geoffrey S. Mendelson wrote: How do I keep track of the number of bytes sent and received per month? To be exact I'm running a 2.4.34 kernel, and the interface is ppp0 using the old pptp-linux user space driver. Being able to resolve it to the something like every 10 minutes would be fine, I can save the results to a file and tabulate them later. Look at /proc/net/dev. I think that if the ppp0 link is up, you have a line with ppp0 statistics there (I can't check because I don't have ppp0 connection on any machine). Ehud. -- Ehud Karni Tel: +972-3-7966-561 /\ Mivtach - Simon Fax: +972-3-7966-667 \ / ASCII Ribbon Campaign Insurance agencies (USA) voice mail and X Against HTML Mail http://www.mvs.co.il FAX: 1-815-5509341 / \ GnuPG: 98EA398D http://www.keyserver.net/Better Safe Than Sorry = To unsubscribe, send mail to [EMAIL PROTECTED] with the word unsubscribe in the message body, e.g., run the command echo unsubscribe | mail [EMAIL PROTECTED]
Stephen Fry wishes GNU a Happy 25th Birthday
Date: Tue, 02 Sep 2008 15:26:59 -0400 From: John Sullivan [EMAIL PROTECTED] To: [EMAIL PROTECTED] Subject: Stephen Fry wishes GNU a Happy 25th Birthday Sender: [EMAIL PROTECTED] The GNU operating system is turning 25 this year, and the Free Software Foundation (FSF) has kicked off its month-long celebration of the anniversary by releasing Happy Birthday to GNU, a short film featuring the English humorist, actor, novelist and filmmaker Stephen Fry. In the five-minute film, Fry compares the free software operating system to good science and contrasts it with the kind of tyranny imposed by the proprietary software produced by companies like Microsoft and Apple that it replaces. He encourages people to use free GNU/Linux distributions like gNewSense (http://gnewsense.org) and free software generally, for freedom's sake. Help us kick off this celebration of the GNU anniversary: * Watch the video at: http://www.gnu.org/fry/happy-birthday-to-gnu.html * Digg the story about the video at: http://digg.com/linux_unix/Mr_Stephen_Fry_introduces_you_to_free_software_Video * Blog and share the video -- you can use the images and files at: http://www.gnu.org/fry/happy-birthday-to-gnu-download.html You can read the full press release at http://www.fsf.org/news/freedom-fry/. Thanks, Stephen! And Happy Birthday, GNU. - -- John Sullivan Manager of Operations GPG Key: AE8600B6 = To unsubscribe, send mail to [EMAIL PROTECTED] with the word unsubscribe in the message body, e.g., run the command echo unsubscribe | mail [EMAIL PROTECTED]
Re: stability of exitcodes
On Mon, 7 Jul 2008 16:36:37 Gabor Szabo wrote: Given the following commands: $ ls -l /nosuch ls: /nosuch: No such file or directory $ echo $? 2 On one Linux system I get the value 2 as above. On another Linux system I get the value 1. (The first is a relatively new Ubuntu, the other one is some old Red Hat) So am I doing something incorrectly or can I just assume that the exit codes can change even between Linuxes? It seems a change in the `ls' program. If you check the `ls' man page you see an added line (on a newer `ls'): Exit status is 0 if OK, 1 if minor problems, 2 if serious trouble. I check with various version of `ls': on versions 5.21 or below you get exit 1, on the current version (5.97) you get exit 2. Ehud. -- @@ @@@ @@ @@ Ehud Karni אהוד קרני @@ @ @@ @ Senior System Support תמיכה במערכות מחשב @@ @@ @ @@Mivtach - Simon מבטח - סימון @@ @@ @@ Insurance agencies סוכנויות לבטוח Better Safe Than SorryTel: 03-7966-561 :טל Fax: 03-7966-667 :פקס http://www.mvs.co.il mailto:[EMAIL PROTECTED] :דואל To unsubscribe, send mail to [EMAIL PROTECTED] with the word unsubscribe in the message body, e.g., run the command echo unsubscribe | mail [EMAIL PROTECTED]
Re: Grub weirdness [solved]
On Thu, 3 Jul 2008 16:00:11 +0300, Noam Rathaus [EMAIL PROTECTED] wrote: The problem is solved, the error still there if I do it from the rescue disk, but it boots if I do it manually from the grub prompt. Once it booted, I re-run grub-install and now it works without doing it from the prompt :) You can run the grub-install from the rescue disk by the following commands (assume you have the root partition mounted on /mnt/newroot) ## 1st, you need to create /dev/sdaxxx or /dev/hdaxxx devices ## (depending on your kernel and hard disk) on /mnt/newroot/dev ## sda mknod /mnt/newroot/dev/sda b 8 0 mknod /mnt/newroot/dev/sda1 b 8 1 ## hda mknod /mnt/newroot/dev/hda b 3 0 mknod /mnt/newroot/dev/hda1 b 3 1 ## 2nd, chroot to the installed root grub-install chroot /mnt/newroot mount /sys ## I'm not sure if you really need this command ## Anyway, You should have sysfs in your fstab if you need to make init ram disk: ## /sbin/mkinitrd -f /boot/initrd-kernel-name.img kernel-name /sbin/grub-install /dev/sda I did it several times to duplicate a Fedora installation. I have a script that does all the needed operation: fdisk, mkfs, mkswap mount and untarring, fix some etc files (motd, mail) and grub install. I advise you to at least delete the /etc/ssh/ssh_host* files (they will be recreated - i.e. new keys - when you run sshd). Ehud. -- Ehud Karni Tel: +972-3-7966-561 /\ Mivtach - Simon Fax: +972-3-7966-667 \ / ASCII Ribbon Campaign Insurance agencies (USA) voice mail and X Against HTML Mail http://www.mvs.co.il FAX: 1-815-5509341 / \ GnuPG: 98EA398D http://www.keyserver.net/Better Safe Than Sorry = To unsubscribe, send mail to [EMAIL PROTECTED] with the word unsubscribe in the message body, e.g., run the command echo unsubscribe | mail [EMAIL PROTECTED]
Re: New network device causes 'jump' from eth0 to eth1
On Thu, 3 Jul 2008 16:41:20 Baruch Siach wrote: On Thu, Jul 03, 2008 at 04:27:29PM +0300, Noam Rathaus wrote: Hi, Or basically, where is it written that eth0 is 'thismodule' while eth1 is 'thisothermodule'? udev takes care of this. On Debian machines the relevant configuration file is /etc/udev/rules.d/z25_persistent-net.rules. I guess there is something similar for other distributions. On Fedora/Centos the file /etc/sysconfig/network-scripts/ifcfg-ethN can have the line: HWADDR=xx:xx:xx:xx:xx:xx (mac address) to assign the ethN to specific network card. Ehud. -- Ehud Karni Tel: +972-3-7966-561 /\ Mivtach - Simon Fax: +972-3-7966-667 \ / ASCII Ribbon Campaign Insurance agencies (USA) voice mail and X Against HTML Mail http://www.mvs.co.il FAX: 1-815-5509341 / \ GnuPG: 98EA398D http://www.keyserver.net/Better Safe Than Sorry = To unsubscribe, send mail to [EMAIL PROTECTED] with the word unsubscribe in the message body, e.g., run the command echo unsubscribe | mail [EMAIL PROTECTED]
Re: LVM2 and other snapshots to emulate Netapp Filer's?
On Wed, 21 May 2008 12:24:01 +0300, Ira Abramov wrote: problem is that the CAD tools running here dictate that we stick to RHEL4 (damn you, Cadence! how hard is it to support RHEL5?!), and snapshots are problematic at 2.6.9 (some problems were solved only at 2.6.16) The more I read about ZumaStor I like it more, but the big boon in LVM2 is that I don't have to recompile RHEL's kernel. so any production-env experiance shared will be appreciated. That's a big advantage if you ask me. What's a killer argument against LVM2? instability in the old kernels, multiple snapshots mean multiple COWs (which zumastor is built to solve). people here wanted hourly0,1,2 and daily0,1,2 AND weekly0,1,2. that means 9 growing snapshots at any given moment, and that is one very serious disk handicap. snapshots in LVM2 are not really designed for that, they were mainly meant to be for hot backups of file systems, so you can freeze the FS just long enough to snap the state to a tarball and remove the snapshot. You don't want many snapshots because of the heavy load penalty (each write is multiplied by the number of snapshots). If you have enough disk space you can create pseudo snapshots by using hardlinks between the snapshots so only changed file takes space. It really depends on the file size distribution - few large files that change constantly will defeat this concept, while many small files is ideal for this scenario. I use this approach and keep more than 60 snapshots of 350 GB disk on a 700 GB disk. The whole process is very simple: Initiation: copy the whole disk (or an LVM snapshot of it) to the destination disk in a SUBDIRECTORY (eg `cp -a'). For each snapshot: 1. Check the size left on the snapshot disk and remove old snapshots until you have predefined minimum space. 2. Copy the subdir (hardlink only) to a new subdir (I use `cp -al'). 3. Create an LVM snapshot of the original system. 4. Sync the copied subdir with the real LVM snapshot (`rsync'). 5. Remove the LVM snapshot. I can send you a script we use on our system but most of it is our specific details. Ehud -- Ehud Karni Tel: +972-3-7966-561 /\ Mivtach - Simon Fax: +972-3-7966-667 \ / ASCII Ribbon Campaign Insurance agencies (USA) voice mail and X Against HTML Mail http://www.mvs.co.il FAX: 1-815-5509341 / \ GnuPG: 98EA398D http://www.keyserver.net/Better Safe Than Sorry = To unsubscribe, send mail to [EMAIL PROTECTED] with the word unsubscribe in the message body, e.g., run the command echo unsubscribe | mail [EMAIL PROTECTED]
Re: LVM2 and other snapshots to emulate Netapp Filer's?
On Wed, 21 May 2008 15:15:51 +0300, Erez D [EMAIL PROTECTED] wrote: If you have enough disk space you can create pseudo snapshots by using hardlinks between the snapshots so only changed file takes space. It really depends on the file size distribution - few large files that change constantly will defeat this concept, while many small files is ideal for this scenario. using hard links as snapshot is works only if you ensure people do not open new files with append mode. if they do, they will modify your file as well as it's snapshot ... This is not the case with my suggestion. The hard link is between snapshots, there is no hard link to the original files. I forgot to add (it seems trivial) that the pseudo snapshots are mounted read-only. Ehud. -- Ehud Karni Tel: +972-3-7966-561 /\ Mivtach - Simon Fax: +972-3-7966-667 \ / ASCII Ribbon Campaign Insurance agencies (USA) voice mail and X Against HTML Mail http://www.mvs.co.il FAX: 1-815-5509341 / \ GnuPG: 98EA398D http://www.keyserver.net/Better Safe Than Sorry = To unsubscribe, send mail to [EMAIL PROTECTED] with the word unsubscribe in the message body, e.g., run the command echo unsubscribe | mail [EMAIL PROTECTED]
Re: LVM2 and other snapshots to emulate Netapp Filer's?
On Wed, 21 May 2008 16:13:16 +0300, Erez D [EMAIL PROTECTED] wrote: On Wed, May 21, 2008 at 4:06 PM, Ehud Karni [EMAIL PROTECTED] wrote: On Wed, 21 May 2008 15:15:51 +0300, Erez D [EMAIL PROTECTED] wrote: If you have enough disk space you can create pseudo snapshots by using hardlinks between the snapshots so only changed file takes space. It really depends on the file size distribution - few large files that change constantly will defeat this concept, while many small files is ideal for this scenario. using hard links as snapshot is works only if you ensure people do not open new files with append mode. if they do, they will modify your file as well as it's snapshot ... This is not the case with my suggestion. The hard link is between snapshots, there is no hard link to the original files. you mean you utilize something like rsnapshot ? this is a great solution. however it is not a real snapshot solution like LVM (version whatever) this is neither 'create snapshot in zero time' nor 'in zero space', contrary to LVM. total disk space is at least twice the size of your data in LVM is only once + size of changes. It is exactly like rsnapshot (pointed out by Didi). Ehud. -- Ehud Karni Tel: +972-3-7966-561 /\ Mivtach - Simon Fax: +972-3-7966-667 \ / ASCII Ribbon Campaign Insurance agencies (USA) voice mail and X Against HTML Mail http://www.mvs.co.il FAX: 1-815-5509341 / \ GnuPG: 98EA398D http://www.keyserver.net/Better Safe Than Sorry = To unsubscribe, send mail to [EMAIL PROTECTED] with the word unsubscribe in the message body, e.g., run the command echo unsubscribe | mail [EMAIL PROTECTED]
Re: LVM2 and other snapshots to emulate Netapp Filer's?
On Wed, 21 May 2008 16:43:23 Ira Abramov wrote: I can send you a script we use on our system but most of it is our specific details. you are not scaring me, sounds delicious :-) Thanks in advance! Below is the script (with minor changes). You should also look at the rsnapshot - http://www.rsnapshot.org/ which does the same (with much more options) in perl. Ehud /bin/sh -ex # Compile by: /bin/sh -ex $* # -- get_size ()# size left on $1 in MB { # for deleting snapshots set +x df -m $1 | tail -n 1 | sed -e s/ [ ]*/ /g | cut -d -f4 set -x } # -- HOUR=`date +%H`# hour, HH (10, 13, 16, 22) case $HOUR in# check hour (22/23 or else) 2? ) MAXPRC=20;; # No. of rsync processes * ) MAXPRC=4 ;; # Only 4 processes of rsync at noon esac DIRS=/fs-gib/snapshots # snapshots are here SNAP=`date +%Y%m%d_%H%M` # snapshot directory name PRV=`ls -1atd $DIRS/2*_ | head -n 1` # latest snapshot (update source) ORG=/snap-$SNAP # source (lvm2 snapshot) name DST=$DIRS/.NXT # target (temp name) DSNP=$DIRS/$SNAP # target (final name) lvcreate -v -L60G -pr -s -n $SNAP ulvm/nfs # creates /dev/ulvm/$SNAP mkdir -p $ORG # mount point for snapshot ## mount -t xfs -o ro,nouuid /dev/ulvm/$SNAP $ORG# mount it read-only, nouuid check (for xfs) mount -t ext3 -o ro /dev/ulvm/$SNAP $ORG # mount it read-only if [ ! -d $DST ] ; then# copy of last saved snapshot df -m /fs-gib # NOT exist, show size copy cp -al $PRV $DST # copy latest snap by Hard links chmod 700 $DST # ONLY root has access to the snapshot fi touch -r / $DST# Set time of snapshot (to last change of /) ## ## rsync-snapshot.sh is our rsync enhanced script ## ## ## ## you should use something like: ## ##OPTIONS=--verbose --archive --delete --whole-file ## ##rsync $OPTIONS $ORG $DST $LIST 21 ## ## rsync-snapshot.sh $ORG $DST $MAXPRC ON IGN # update snapshot by rsyncing (keep lst files) touch -t ${SNAP:0:8}${SNAP:9:4} $DST $DST/bru/SNAP-DATE# Set time of snapshot (to creation time) sleep 10 umount $ORG# unmount it rmdir $ORG# remove temp dir lvdisplay lvremove -f ulvm/$SNAP # remove snapshot mv $DST $DSNP # rename to destination name chmod 755 $DSNP# allow normal users to see it cp -al $DSNP $DST # copy (by hard linking) to .NXT touch -t 200102030405 $DST # make it somewhere in the past chmod 700 $DST # .NXT should be non reachable df -m $DST # show disk statistics SIZE=`get_size $DST` # get size left on /ldsk while [ $SIZE -lt 25000 ] # less than 15 GB do LAST=`ls -a1td $DIRS/20* | tail -n 1` # oldest snapshot rm -rf $LAST df -m $DST # show after snapshot delete SIZE=`get_size $DST` done df -m # show all mounts again ## end of create-snapshot.job ## -- Ehud Karni Tel: +972-3-7966-561 /\ Mivtach - Simon Fax: +972-3-7966-667 \ / ASCII Ribbon Campaign Insurance agencies (USA) voice mail and X Against HTML Mail http://www.mvs.co.il FAX: 1-815-5509341 / \ GnuPG: 98EA398D http://www.keyserver.net/Better Safe Than Sorry = To unsubscribe, send mail to [EMAIL PROTECTED] with the word unsubscribe in the message body, e.g., run the command echo unsubscribe | mail [EMAIL PROTECTED]
Re: Replacing kernel 2.4 - 2.6
On Sat, 5 Apr 2008 21:08:44 Muli Ben-Yehuda wrote: On Fri, Apr 04, 2008 at 08:14:10AM +0300, Shachar Shemesh wrote: Sh Replace the entire hardware with a new one (optional), install a Sh fairly recent version of Linux, and Xen 2 on it. Copy your entire Sh current RedHat 7.2 distro to the Xen image, and replace the kernel Sh with a 2.4 kernel of your compiling which has the Sh para-virtualization patch from the Xen 2 source tree (that's the Sh reason you cannot use Xen 3). Hell, if might actually work on the Sh same hardware you currently have. I wouldn't recommend Xen 2 to anyone who cares about their bits. I do think it's a good idea to buy a new machine which has Intel VT-x or AMD SVM and run the old machine's image under Xen (possible) or KVM (recommended). You get the best of both worlds. I had a similar problem (FC4 did not recognized new disks). I installed Centos 5.1 (2.6.18-53.el5xen) and built on it a guest OS (FC4, 2.6.11) with full virtualization. I had a few problems on the way - 1. Setting a fixed IP (not NAT) on the same network as the host. This required changing the network definition on the host so all machines (real and virtual) used a common bridge. 2. The application (not the OS) did not perform well - I changed the guest OS from 64 bit to 32 bit - and it solved it. Added benefit for using guest OS is that backup (which I don't need - no data is saved on the machine) and duplicating it (which I did) is a snap. Ehud. -- Ehud Karni Tel: +972-3-7966-561 /\ Mivtach - Simon Fax: +972-3-7966-667 \ / ASCII Ribbon Campaign Insurance agencies (USA) voice mail and X Against HTML Mail http://www.mvs.co.il FAX: 1-815-5509341 / \ GnuPG: 98EA398D http://www.keyserver.net/Better Safe Than Sorry = To unsubscribe, send mail to [EMAIL PROTECTED] with the word unsubscribe in the message body, e.g., run the command echo unsubscribe | mail [EMAIL PROTECTED]
Re: things left out of RHEL5 - and where to get them from
On Tue, 8 Apr 2008 19:49:31 Ira Abramov wrote: Before I get into endless tests of dependencies of those important bits of the toolchains from RPMs intended for Fedora 5,6,7,8 or even OpenSuSE, does anyone have a recommendation? Which RPMs (or debs! I don't mind!) will work best with the base libraries of CentOS 5.1 and still feature the latest versions? Would Etch match? Could Fedora fit? Should Gutsy be considered? (tools they want, and most are not in CentOS, are vlc, OOO, kmtrace, kompare, kregexpeditor, kate, kdesvn, doxygen, colorgcc and many other such toys and tools) I checked the status of VLC (for my home machine) and you can build it yourself (it takes a lot of work, I did not try it myself. see: http://andcher.homeip.net/tiki-index.php?page=VlcBuild ). Another (easier) way is to search for the right repository - you can try Dag Wieers repository at: http://dag.wieers.com/rpm/ . He has an RPM for VLC but some of libraries are mismatched (VLC requires older libraries). I'll wait for the next VLC RPM. Ehud. -- Ehud Karni Tel: +972-3-7966-561 /\ Mivtach - Simon Fax: +972-3-7966-667 \ / ASCII Ribbon Campaign Insurance agencies (USA) voice mail and X Against HTML Mail http://www.mvs.co.il FAX: 1-815-5509341 / \ GnuPG: 98EA398D http://www.keyserver.net/Better Safe Than Sorry = To unsubscribe, send mail to [EMAIL PROTECTED] with the word unsubscribe in the message body, e.g., run the command echo unsubscribe | mail [EMAIL PROTECTED]
Re: Yum cache for a cluster of clients
On Mon, 28 Jan 2008 13:00:06 Tom Rosenfeld wrote: Hi Guys, I assume there is a simple answer to this. How do I get all of my linux workstation (all running the same version of CentOS 4) to use the same yum cache? Hetz gave you the better, school solution. I have a simpler solution that does not require you to build a yum server. What I do: 1. In /etc/yum.conf change the keepcache option to: keepcache=1 2. Make the cache common to all machine (on an NFS disk) You can do it by changing the cachedir line in /etc/yum.conf to point to the NFS directory, or you can symlink /var/cache/yum to the NFS directory (I prefer this way, as this is the standard place for the cached files). Now, you can run the update on each machine whenever it is convenient the headers and RPMs will be loaded only once. One drawback (?) is the filling of the cache with old packages, You'll have to clear it yourself. Ehud. -- Ehud Karni Tel: +972-3-7966-561 /\ Mivtach - Simon Fax: +972-3-7966-667 \ / ASCII Ribbon Campaign Insurance agencies (USA) voice mail and X Against HTML Mail http://www.mvs.co.il FAX: 1-815-5509341 / \ GnuPG: 98EA398D http://www.keyserver.net/Better Safe Than Sorry = To unsubscribe, send mail to [EMAIL PROTECTED] with the word unsubscribe in the message body, e.g., run the command echo unsubscribe | mail [EMAIL PROTECTED]
Re: upgrade to Centos 5 question
On Mon, 28 Jan 2008 16:38:21 Hetz Ben Hamo wrote: I'm using Fedora Core 6 on my main web server, and today I found out that the security updates are no longer available for Fedora Core 6. Worse: ATRPMS, FreshRPMS are no longer maintained for FC6 which means that if I want the latest security stuff, I need to roll my own RPMS or fix things manually.. So I decided I want to upgrade from FC6 to Centos 5. I was wondering if anyone did it and if so, what method? what are the gotchas that I need to be careful of, or is it simply better to keep my data out, format the machine and install centos 5 from scratch? (Centos 5 does not recognize Fedora stuff, so the upgrade option is not given). Think twice before you go the Centos way. I use both FC (now Fedora without `Core') and Centos in the office. Both work fine and I don't update the production machines (there is no access from the Internet except for mail and ssh). I installed Centos 5 on my home server and I update it frequently. But Centos 5 is not for home use - its distribution does not have media programs (like LVM, I wanted it for media streaming). So for home/media use, may be Fedora (now 8) is better for your needs (few RPMs are available for Centos on ATRPMS, FreshRPMS does not support RHEL/Centos at all). Ehud. BTW. If you go the Centos way, start with Centos 5.1. -- Ehud Karni Tel: +972-3-7966-561 /\ Mivtach - Simon Fax: +972-3-7966-667 \ / ASCII Ribbon Campaign Insurance agencies (USA) voice mail and X Against HTML Mail http://www.mvs.co.il FAX: 1-815-5509341 / \ GnuPG: 98EA398D http://www.keyserver.net/Better Safe Than Sorry = To unsubscribe, send mail to [EMAIL PROTECTED] with the word unsubscribe in the message body, e.g., run the command echo unsubscribe | mail [EMAIL PROTECTED]
Re: upgrade to Centos 5 question
On Mon, 28 Jan 2008 19:00:50 +0200, Oren Held [EMAIL PROTECTED] wrote: Myself: But Centos 5 is not for home use - its distribution does not have media programs (like LVM, I wanted it for media streaming). So for home/media use, may be Fedora (now 8) is better for your needs (few RPMs are available for Centos on ATRPMS, FreshRPMS does not support RHEL/Centos at all). I agree that CentOS is usually not good for home. (I use it as home server, but run debian-unstable VMs inside :) ) Still, many RPMs are available through the amazing DAG repository: http://dag.wieers.com/rpm/packages/ Also there is the new EPEL project, but it's 'limping' a little.. http://fedoraproject.org/wiki/EPEL I use the EPEL repository (highly recommended) and also the RPMforge (http://rpmforge.net/) maintained by Dag. When I researched the LVM for Centos5 issue, I found that Dag had about 40% of the libraries needed, but still there was a lot of work to do to compile LVM for Centos5. Ehud. -- Ehud Karni Tel: +972-3-7966-561 /\ Mivtach - Simon Fax: +972-3-7966-667 \ / ASCII Ribbon Campaign Insurance agencies (USA) voice mail and X Against HTML Mail http://www.mvs.co.il FAX: 1-815-5509341 / \ GnuPG: 98EA398D http://www.keyserver.net/Better Safe Than Sorry = To unsubscribe, send mail to [EMAIL PROTECTED] with the word unsubscribe in the message body, e.g., run the command echo unsubscribe | mail [EMAIL PROTECTED]
Re: Yum cache for a cluster of clients
On Mon, 28 Jan 2008 19:12:34 Tom Rosenfeld wrote: Hi Ehud, This sounds great and simple! Can I use this to combine the existing cache from several machines, or will it only work if I do it from scratch? Yes, you can. Just copy all the sub directories from /var/cache/yum to a common directory (this will merge all your kept headers and RPMs). After that symlink this directory to /var/cache/yum on each computer. I doubt that you have much headers and RPMs saved (unless you changed your keepcache to 1 long ago). Ehud -- Ehud Karni Tel: +972-3-7966-561 /\ Mivtach - Simon Fax: +972-3-7966-667 \ / ASCII Ribbon Campaign Insurance agencies (USA) voice mail and X Against HTML Mail http://www.mvs.co.il FAX: 1-815-5509341 / \ GnuPG: 98EA398D http://www.keyserver.net/Better Safe Than Sorry = To unsubscribe, send mail to [EMAIL PROTECTED] with the word unsubscribe in the message body, e.g., run the command echo unsubscribe | mail [EMAIL PROTECTED]
Is there a course for sysadmin for Debian
My daughter boyfriend is working for small Internet company. Part of his job is system administrating of the Linux server (Debian). He wants to learn more about it, He does not need the certification, but prefers a class (with a teacher), something like the RHCE for Red Hat. So, is there such a class in Israel for Debian ? Ehud. -- Ehud Karni Tel: +972-3-7966-561 /\ Mivtach - Simon Fax: +972-3-7966-667 \ / ASCII Ribbon Campaign Insurance agencies (USA) voice mail and X Against HTML Mail http://www.mvs.co.il FAX: 1-815-5509341 / \ GnuPG: 98EA398D http://www.keyserver.net/Better Safe Than Sorry = To unsubscribe, send mail to [EMAIL PROTECTED] with the word unsubscribe in the message body, e.g., run the command echo unsubscribe | mail [EMAIL PROTECTED]
Re: Find process id of background ssh?
On Wed, 26 Dec 2007 17:50:44 +0200, Oded Arbel wrote: On Wed, 2007-12-26 at 16:02 +0200, Tom Rosenfeld wrote: pgrep ssh |tail -1 they way I read it ... ... it looks like there will be a race condition here. Maybe I could filter on session id or process group id if I would know how to set it. Here is a little trick that will solve the race condition - create a unique name for the ssh you run. Example of use in bash: SSH=`which ssh`# locate ssh on PATH NSSH=my_ssh_$$ # unique ssh name (you can add $USER, time ...) TSSH=/tmp/$NSSH# abs name rm -f $TSSH# may be we have leftovers ln -s $SSH $TSSH # create it on /tmp $TSSH command parameters # run the ssh in BG rm -f $TSSH# remove symbolic link (not needed any more) PID=`pgrep $NSSH` # find pid of MY ssh Ehud. -- Ehud Karni Tel: +972-3-7966-561 /\ Mivtach - Simon Fax: +972-3-7966-667 \ / ASCII Ribbon Campaign Insurance agencies (USA) voice mail and X Against HTML Mail http://www.mvs.co.il FAX: 1-815-5509341 / \ GnuPG: 98EA398D http://www.keyserver.net/Better Safe Than Sorry = To unsubscribe, send mail to [EMAIL PROTECTED] with the word unsubscribe in the message body, e.g., run the command echo unsubscribe | mail [EMAIL PROTECTED]
Re: HTML email question
On Wed, 28 Nov 2007 18:38:42 +0200, Hetz Ben Hamo wrote: No idea, but as others suggested - I'd do this with a P-language, not sh. Usually their builtin MIME etc. library functions are much easier to work with. Google for your favourite one plus 'mime mail tutorial' and I think you'll get some good intros. Yeah, I'm looking at PHP right now. Thanks for the help Didi, Oded, Lior :) I have written a bash script that sends emails and do mime attachments, but why invent the wheel when you can use something like mutt to send your mail (and attachments) from the command line ? mutt is available for Debian/Fedora (other Linuxes ?). See: http://www.cyberciti.biz/tips/sending-mail-with-attachment.html Disclaimer: I have not used mutt myself. Ehud. -- Ehud Karni Tel: +972-3-7966-561 /\ Mivtach - Simon Fax: +972-3-7966-667 \ / ASCII Ribbon Campaign Insurance agencies (USA) voice mail and X Against HTML Mail http://www.mvs.co.il FAX: 1-815-5509341 / \ GnuPG: 98EA398D http://www.keyserver.net/Better Safe Than Sorry = To unsubscribe, send mail to [EMAIL PROTECTED] with the word unsubscribe in the message body, e.g., run the command echo unsubscribe | mail [EMAIL PROTECTED]
Re: [OT] Online privacy, police to have free access to IP addresses
On Mon, 20 Aug 2007 18:59:17 Oded Arbel wrote: slightly less [OT] - read to the end. On Mon, 2007-08-20 at 02:22 +0200, Moshe Leibovitch wrote: I'm wonder if the Israeli law allows you to encrypt your communications over public channels. I wouldn't shock me to find out the even this discussion is illegal :) Some relevant links: http://www.mod.gov.il/pages/encryption/tzofen.asp http://www.law.co.il/showarticles.php?d=harticle=58 http://www.law.co.il/showarticles.php?d=harticle=132 http://www.law.co.il/showarticles.php?d=harticle=133 http://www.law.co.il/showarticles.php?d=harticle=134 List of encryption means that can be legally (ab)used by the public without the need for a specific license: http://www.mod.gov.il/pages/encryption/docs/Free-means.xls (Microsoft Excel format) Note that this list contains specific products (including stuff I wasn't aware had encryption in it), and - as much as I can see - doesn't include any open source software. Note that it can be argued that any open source software by its nature cannot be declared a free encryption mean according to its definition in the encryption law (see: http://www.mod.gov.il/encryption/#6 ) as it can be modified and combined, so any open source software has to be relicensed per version or compilation or something. I have an (official ?) email from the IMOD Encryption Control Director that exempt any individual or company that uses e-mail encryption for its own needs, as long as the user or company is not in encryption business. Ehud. -- - Yoram Cohen e-mail - -- From: Yoram Cohen - IMOD Encryption Control Director [EMAIL PROTECTED] To: Ehud Karni [EMAIL PROTECTED] Cc: Gil Mor - IMOD [EMAIL PROTECTED] References: [EMAIL PROTECTED] X-Received-Date: 19:13:27 16/07/06 +0300 (on sw-gib) Subject: Re: Use of PGP and GnuPG for mail encryption Date: Sun, 16 Jul 2006 18:11:28 +0200 MIME-Version: 1.0 ,שלום אהוד .בהמשך לשיחתנו הטלפוני מהיום ולשאלתך בנושא שימוש באמצעי הצפנה .ללא קשר למוצר או לתקן הצפנה מסויים .מדיניות משרד הביטחון הינה שניתן לעשות שימוש באמצעי הצפנה לצורך הגנה על מידע של אדם פרטי או חברה, כל זמן שמדובר בשימוש עצמי .שימוש עצמי משמעותו שימוש באמצעי ההצפנה לצרכים פנימיים של חברה ועובדיה או לשימש אישי בלבד של אדם פרטי .כל זמן שאלו (החברה או האדם הפרטי) אינם מפתחים, מוכרים, מפיצים, או עוסקים ביצוא מסחרי של אמצעי הצפנה - לא נדרש לכך רשיון עיסוק בהצפנה http://www.mod.gov.il/encryption/hakdama.asp :במדיניות הפיקוח תוכל לעיין באתר http://www.mod.gov.il/encryption/rishuy.asp :ספציפית שימוש עצמי .לעיתים התרחיש הטכנולוגי אינו חד משמעי ולא ברור לחברה האם הינו נופל בגדר שימוש עצמי או שדרוש רשיון לפעילות לכן אנו ממליצים לפנות בכל שאלה בנושא או ספק למשרדנו ,בברכה יורם -- Yoram Cohen Encryption Control Director - Ministry of Defense - Israel Department of Defense Export Controls D.D.E.C 6977499 - 3 - 972 Tel: 972 - 3 - 6977458 Fax: http://www.mod.gov.il/encryption/ mailto: [EMAIL PROTECTED] Mail: P.O.B 7093, Hakirya, Tel-Aviv 61070 Israel -- - Original Message - From: Ehud Karni To: יורם כהן Sent: Sunday, July 16, 2006 4:22 PM Subject: Use of PGP and GnuPG for mail encryption ,שלום יורם .ראשית, תודה על תשובתך המהירה לפנייתי הטלפונית להצפנה (GnuPG או) PGP-הייתי רוצה לקבל ממך אשור (כפי שמסרת לי בטלפון) ששימוש ב .של דואר מותרת על פי צו ההצפנה ואינה מצריכה אשור מיוחד .כיון שאני יועץ לחברות שונות אבקש במיוחד התיחסות האם אשור זה חל גם לגבי חברות מסחריות הבעיה לוחצת מאוד כיון שהחברות בהן מדובר מעבירות נתונים פיננסים לגבי עובדיהן (נתונים המוגנים על פי חוק הפרטיות). כמו כן קיימת דרישת סודיות עי רואי החשבון בעיקר בגלל תנאי סרביאנס-אוקסלי .הנכפים עלינו ,בכבוד רב ,אהוד קרני מומחה ויועץ למערכות יוניקס -- Ehud Karni Tel: +972-3-7966-561 /\ Mivtach - Simon Fax: +972-3-7966-667 \ / ASCII Ribbon Campaign Insurance agencies (USA) voice mail and X Against HTML Mail http://www.mvs.co.il FAX: 1-815-5509341 / \ GnuPG: 98EA398D http://www.keyserver.net/Better Safe Than Sorry To unsubscribe, send mail to [EMAIL PROTECTED] with the word unsubscribe in the message body, e.g., run the command echo unsubscribe | mail [EMAIL PROTECTED]
Re: CentOs 5 DVD
On Tue, 26 Jun 2007 09:41:28 Yonah Russ wrote: Is there anywhere in Israel to download the CentOs 5 DVD iso directly (not via torrent)? Why do you need Israeli mirror ? On 29/5/07 I downloaded the CentOS-5.0-x86_64-bin-DVD.iso from ftp://ftp-stud.fht-esslingen.de . It took 3:51 hours (303 KB/s). I know for sure that there are other mirrors that have similar speed. Ehud. -- Ehud Karni Tel: +972-3-7966-561 /\ Mivtach - Simon Fax: +972-3-7966-667 \ / ASCII Ribbon Campaign Insurance agencies (USA) voice mail and X Against HTML Mail http://www.mvs.co.il FAX: 1-815-5509341 / \ GnuPG: 98EA398D http://www.keyserver.net/Better Safe Than Sorry = To unsubscribe, send mail to [EMAIL PROTECTED] with the word unsubscribe in the message body, e.g., run the command echo unsubscribe | mail [EMAIL PROTECTED]
Re: CentOs 5 DVD
On Tue, 26 Jun 2007 22:43:17 Geoffrey S. Mendelson wrote: On Tue, Jun 26, 2007 at 06:41:32PM +0300, Ehud Karni wrote: On 29/5/07 I downloaded the CentOS-5.0-x86_64-bin-DVD.iso from ftp://ftp-stud.fht-esslingen.de . It took 3:51 hours (303 KB/s). I know for sure that there are other mirrors that have similar speed. I tried it and got a peak under 80k with an average of 50k before I gave up. If there was an Israeli mirror, I would get close to 450k. So, what is your explanation ? I'm also on Israeli net and I got an average of 303 KB/s (3Mb). Ehud. -- Ehud Karni Tel: +972-3-7966-561 /\ Mivtach - Simon Fax: +972-3-7966-667 \ / ASCII Ribbon Campaign Insurance agencies (USA) voice mail and X Against HTML Mail http://www.mvs.co.il FAX: 1-815-5509341 / \ GnuPG: 98EA398D http://www.keyserver.net/Better Safe Than Sorry = To unsubscribe, send mail to [EMAIL PROTECTED] with the word unsubscribe in the message body, e.g., run the command echo unsubscribe | mail [EMAIL PROTECTED]
Re: Ripping Hebrew CDs
On Mon, 23 Apr 2007 16:24:17 Yedidyah Bar-David wrote: On Mon, Apr 23, 2007 at 02:41:51PM +0300, Ehud Karni wrote: I prefer the file name to be in ISO-8859-8 (8 bits) and not UTF-8. Then I can see the Hebrew in Emacs and xterm, but not in Gnome or KDE Any reason not to use utf-8 with xterm/emacs? I admit I do not use emacs so I do not know how comfortable it is, but in xterm/vim it's fine, tab completion and everything. The real problem is that you can't have both ISO-8859-8 (8 bit Hebrew) and UTF-8 Hebrew displayed correctly together. My company have a LOT of files encoded in ISO-8859-8 and it won't be changed in the near (and, I believe, also in the far[1]) future. I use many simple UNIX tools ( cat, more, sed, etc.) to manipulate and view file names and content, on both X and tty terminals. So, ISO-8859-8 it is. Ehud. [1] Unless the company somehow becomes international and has to have many languages simultaneously, and even then, I think they will use fixed wide characters (16 bits) and not UTF-8. -- Ehud Karni Tel: +972-3-7966-561 /\ Mivtach - Simon Fax: +972-3-7966-667 \ / ASCII Ribbon Campaign Insurance agencies (USA) voice mail and X Against HTML Mail http://www.mvs.co.il FAX: 1-815-5509341 / \ GnuPG: 98EA398D http://www.keyserver.net/Better Safe Than Sorry = To unsubscribe, send mail to [EMAIL PROTECTED] with the word unsubscribe in the message body, e.g., run the command echo unsubscribe | mail [EMAIL PROTECTED]
Re: Ripping Hebrew CDs
On Tue, 24 Apr 2007 11:56:38 +0300, יובל האגר wrote: Ehud Karni: נכתב על ידי ,15:46 ,2007 אפריל 23 ביום שני: You have to re-encode the file name to Hebrew UTF-8 like this: NEWNM=`echo $NM | iconv -futf8 -tlatin1 | iconv -fhebrew -tutf8` Thanks! I've been looking for some time how to do this.. I didn't think there could even be a latin1/hebrew in a UTF-8 encoding.. Anyway, that solves my problem too with file names, but how should I handle ID3 tags? You can use the id3lib package ( http://sourceforge.net/projects/id3lib/ ) to extract the should be Hebrew names, try to convert it using something like the command above, and, if successful, replace the original names. You can then write a script that will do it to all your songs. I'm sure you can get this package for any Linux distribution. But also read this: https://bugs.launchpad.net/debian/+source/id3lib3.8.3/+bug/54136 There are other (using simpler tools) ways to extract the tag and replace it but you'll have to do it with your own scripts. Ehud. -- @@ @@@ @@ @@ Ehud Karni אהוד קרני @@ @ @@ @ Senior System Support תמיכה במערכות מחשב @@ @@ @ @@Mivtach - Simon מבטח - סימון @@ @@ @@ Insurance agencies סוכנויות לבטוח Better Safe Than SorryTel: 03-7966-561 :טל Fax: 03-7966-667 :פקס http://www.mvs.co.il mailto:[EMAIL PROTECTED] :דואל To unsubscribe, send mail to [EMAIL PROTECTED] with the word unsubscribe in the message body, e.g., run the command echo unsubscribe | mail [EMAIL PROTECTED]
Re: Find the usb device pragmatically
On Tue, 24 Apr 2007 20:37:12 ik wrote: I have a serial usb device, that from time to time disconnect according to the kernel (dmesg): usb 1-1: FTDI USB Serial Device converter now attached to ttyUSB1 ftdi_sio ttyUSB0: FTDI USB Serial Device converter now disconnected from ttyUSB0 And then as you can see, the kernel assign it to a new address. I'm looking either at a hint of what should I be looking on what causing it to disconnect, or for a bash/perl (or C) way to find what is the active usb /dev/ device to use. The kernel I'm using is 2.6 (at the moment 2.6.20) on Fedora Core 6. Any hints and tips on the subject are more then welcome I read the answers on this list and they look relevant but not to the point. If you have only one such usb device you can do something like this (in bash): DEV=`echo /dev/ttyUSB?` and you'll get your device. You can do this within a C program by readdir(). If you have more than 1, you can get all the devices names, but you'll have to research a way to find which is which. Ehud. -- Ehud Karni Tel: +972-3-7966-561 /\ Mivtach - Simon Fax: +972-3-7966-667 \ / ASCII Ribbon Campaign Insurance agencies (USA) voice mail and X Against HTML Mail http://www.mvs.co.il FAX: 1-815-5509341 / \ GnuPG: 98EA398D http://www.keyserver.net/Better Safe Than Sorry = To unsubscribe, send mail to [EMAIL PROTECTED] with the word unsubscribe in the message body, e.g., run the command echo unsubscribe | mail [EMAIL PROTECTED]
Re: Ripping Hebrew CDs
On Mon, 23 Apr 2007 12:24:54 Geoffrey S. Mendelson wrote: On Mon, Apr 23, 2007 at 11:38:35AM Hadar wrote: I'm encoding audio CDs into FLAC files using Sound Juicer. The albums are automatically recognized and the songs names are downloaded. When ripping Hebrew albums, the songs names are sometimes malformed (a.k.agibberish - certainly not Hebrew characters). They are Hebrew characters, but not in a charcter set you expect them to be. I prefer the file name to be in ISO-8859-8 (8 bits) and not UTF-8. Then I can see the Hebrew in Emacs and xterm, but not in Gnome or KDE applications. I assume you get your Hebrew name in either ISO-8859-8 or in PC DOS (CP856). I have 2 small shell scripts (below) that converts ALL Hebrew names in a directory tree to ISO-8859-8 / UTF-8. Ehud. #! /bin/sh -e # Translate all file names in this directory tree to iso-8859-8 # - chk_nm () { echo \n\n now working on `pwd` for DFL in * do case $DFL in *�* )# 0xD7 is a sign for Hebrew UTF-8 NDFL=`echo $DFL | iconv -futf8 -thebrew` ;; * ) # NOT UTF-8, DOS Hebrew is 0x80-0x9A NDFL=`echo $DFL | tr [-] [ת-א]` ;; esac if [ $DFL != $NDFL ] ; then# name has changed ? mv $DFL $NDFL # rename echo $DFL == $NDFL # show to user DFL=$NDFL# for recursive checking fi if [ ! -L $DFL -a -d $DFL ] ; then ( cd $DFL ; chk_nm ) fi done } chk_nm # start scanning ## trns-utf-2-heb.sh ## #! /bin/sh -e # Translate all file names in this directory tree to utf-8 # chk_nm () { echo \n\n now working on `pwd` for DFL in * do case $DFL in *�* );; # 0xD7 is a sign for Hebrew UTF-8 * )# NOT UTF-8, DOS Hebrew is 0x80-0x9A NDFL=`echo $DFL | tr [-] [ת-א] | iconv -fhebrew -tutf8` if [ $DFL != $NDFL ] ; then# had any Hebrew ? mv $DFL $NDFL # rename echo $DFL == $NDFL # show to user DFL=$NDFL# for recursive checking fi ;; esac if [ ! -L $DFL -a -d $DFL ] ; then ( cd $DFL ; chk_nm ) fi done } chk_nm # start scanning ## trns-heb-2-utf.sh ## -- Ehud Karni Tel: +972-3-7966-561 /\ Mivtach - Simon Fax: +972-3-7966-667 \ / ASCII Ribbon Campaign Insurance agencies (USA) voice mail and X Against HTML Mail http://www.mvs.co.il FAX: 1-815-5509341 / \ GnuPG: 98EA398D http://www.keyserver.net/Better Safe Than Sorry To unsubscribe, send mail to [EMAIL PROTECTED] with the word unsubscribe in the message body, e.g., run the command echo unsubscribe | mail [EMAIL PROTECTED]
Re: Ripping Hebrew CDs
On Mon, 23 Apr 2007 15:25:48 Hadar wrote: Thanks for the scripts! If I understand you correctly, trns-heb-2-utf.sh is what I need. When I tried it on a directory, it simply wiped down the Hebrew characters. Here's some debugging info: + for DFL in '*' + case $DFL in ++ echo '01 - �§�£�¹�¥�÷ �®�¤�©�¸�§.ogg' ++ tr '[�-�]' '[א-ת]' ++ iconv -fhebrew -tutf8 iconv: illegal input sequence at position 5 Looks like the input text is not iso-8859-8 (HEBREW) encoded. I played with iconv a little but couldn't find the appropriate encoding Any suggestion? First Hadar - are you boy or a girl ? Good that you sent the list with the file name. It is encoded in UTF-8 but in latin1 not Hebrew (the song name is: Chadashot Meha-Yareach - News from the Moon, Right ?). You have to re-encode the file name to Hebrew UTF-8 like this: NEWNM=`echo $NM | iconv -futf8 -tlatin1 | iconv -fhebrew -tutf8` Ehud. -- Ehud Karni Tel: +972-3-7966-561 /\ Mivtach - Simon Fax: +972-3-7966-667 \ / ASCII Ribbon Campaign Insurance agencies (USA) voice mail and X Against HTML Mail http://www.mvs.co.il FAX: 1-815-5509341 / \ GnuPG: 98EA398D http://www.keyserver.net/Better Safe Than Sorry To unsubscribe, send mail to [EMAIL PROTECTED] with the word unsubscribe in the message body, e.g., run the command echo unsubscribe | mail [EMAIL PROTECTED]
Re: New dumb question: how to USB
On Wed, 18 Apr 2007 14:08:56, Dan Bar Dov wrote: I inserted a USB flash drive to the USB slot. man -k usb told me about lsusb, and the device is recognized. How do I access it (mount it)? [I don't think hotplugging is set up, but I want to do it manually, so please, don't teach me how to set up hotplugging]. I don't see how lsusb helps you - It only shows that a real device is attached to the usb hub - not how the system (device-mapper ?) added it to /dev directory. A better way is to check the /var/log/messages. Do something like: grep -C 7 SCSI emulation for USB /var/log//messages The relevant result (kernel 2.6.11) I got are: date+id kernel: usb 1-2: new high speed USB device using ehci_hcd and address 5 date+id kernel: scsi5 : SCSI emulation for USB Mass Storage devices date+id kernel: Vendor: WDC WD25 Model: 00JS-60NCB1 Rev: 2E02 date+id kernel: Type: Direct-Access ANSI SCSI revision: 02 date+id kernel: SCSI device sdc: 488397168 512-byte hdwr sectors (250059 MB) date+id kernel: sdc: assuming drive cache: write through date+id kernel: SCSI device sdc: 488397168 512-byte hdwr sectors (250059 MB) date+id kernel: sdc: assuming drive cache: write through Which means - an uninitialized disk attached as /dev/sdc After initializing and making an fs, I mount it by: mount /dev/sdc1 /GIBUY (this disk is for backup). I did not use flash memory, but AFAIK it is FAT device so you should mount it by: mount -t vfat /dev/sdX1 your-mount-dir Note. Don't count on the scsi device being always the same, I've seen changing even when only 1 USB device was attached. Ehud. -- Ehud Karni Tel: +972-3-7966-561 /\ Mivtach - Simon Fax: +972-3-7966-667 \ / ASCII Ribbon Campaign Insurance agencies (USA) voice mail and X Against HTML Mail http://www.mvs.co.il FAX: 1-815-5509341 / \ GnuPG: 98EA398D http://www.keyserver.net/Better Safe Than Sorry = To unsubscribe, send mail to [EMAIL PROTECTED] with the word unsubscribe in the message body, e.g., run the command echo unsubscribe | mail [EMAIL PROTECTED]
Re: dynamically configuring ssh ip address
On Fri, 13 Apr 2007 21:51:59 +1000, Amos Shapira wrote: Also, my question was less about how to get the data - ssh with a special identiy and a limited command looks easier and more secure - but more on how to get the ip address used by the ssh client at work. It is very VERY simple, just use the SSH_CLIENT env variable. Here is a script I use to have my HOME IP saved: #! /bin/sh -ex # # Saves IP of ssh caller (use env var: SSH_CLIENT) to file ip_no # # -- IP=`echo $SSH_CLIENT | cut -d -f1` if [ $IP != ] ; then echo $IP ip_no fi date +%Y-%m-%d %H:%M ip set on $SYS ip_log ## save-ssh-ip.sh ## Ehud. -- Ehud Karni Tel: +972-3-7966-561 /\ Mivtach - Simon Fax: +972-3-7966-667 \ / ASCII Ribbon Campaign Insurance agencies (USA) voice mail and X Against HTML Mail http://www.mvs.co.il FAX: 1-815-5509341 / \ GnuPG: 98EA398D http://www.keyserver.net/Better Safe Than Sorry = To unsubscribe, send mail to [EMAIL PROTECTED] with the word unsubscribe in the message body, e.g., run the command echo unsubscribe | mail [EMAIL PROTECTED]
Re: dynamically configuring ssh ip address
On Sat, 14 Apr 2007 16:18:20 +1000, Amos Shapira wrote: That said, I'm not sure that I can trust SSH_CLIENT/SSH_CONNECTION since they are passed from the client. Maybe a getpeername(2) on stdin/stdout can be used as a more secure way to obtain the client's IP. You are mistaken. You can trust the SSH_CLIENT/SSH_CONNECTION, it is taken from the TCP stack, not from the client (same as getpeername). Ehud. -- Ehud Karni Tel: +972-3-7966-561 /\ Mivtach - Simon Fax: +972-3-7966-667 \ / ASCII Ribbon Campaign Insurance agencies (USA) voice mail and X Against HTML Mail http://www.mvs.co.il FAX: 1-815-5509341 / \ GnuPG: 98EA398D http://www.keyserver.net/Better Safe Than Sorry = To unsubscribe, send mail to [EMAIL PROTECTED] with the word unsubscribe in the message body, e.g., run the command echo unsubscribe | mail [EMAIL PROTECTED]
Re: Fedora core 6 RPM repository mirror in ISRAEL?
On Wed, 21 Mar 2007 21:06:08 Geoffrey S. Mendelson wrote: AFAIK no, what you have to do is to pick the mirror that you want to use and turn off the one that it mirrors. [snip] What you loose is the automatic switching if it's not available, and obviously there is a delay in the packages showing up. On the other hand, if I can download the packages at 400k bytes per second instead of 20k, or on a really good day 100k, I'll be happy. I really don't care if it is 20K or 400K, I run yum in a script in the background to update several machines. Only the 1st update REALLY loads the headers and RPMs - they are stored on a common NFS disk. I run the script and just checks that all was done successfully later. Ehud. -- Ehud Karni Tel: +972-3-7966-561 /\ Mivtach - Simon Fax: +972-3-7966-667 \ / ASCII Ribbon Campaign Insurance agencies (USA) voice mail and X Against HTML Mail http://www.mvs.co.il FAX: 1-815-5509341 / \ GnuPG: 98EA398D http://www.keyserver.net/Better Safe Than Sorry = To unsubscribe, send mail to [EMAIL PROTECTED] with the word unsubscribe in the message body, e.g., run the command echo unsubscribe | mail [EMAIL PROTECTED]
Re: extract attachments from mail messages
On Tue, 20 Mar 2007 16:36:06 Nahum Mizrahi wrote: I am looking for a command line program that can extract attachments from mail messages and save them as files. I tried mutt, tnef and fetchmail but could not get any of them to do the job. The only program I know that can do that is metamail. It is a very old program and it is not updated any more. it is included with the Debian Sarge (see: http://packages.debian.org/stable/mail/metamail ) It has some limitation, and you'll have to wrap it with a script to do what you want, but it DOES work (on any UNIX/Linux and even other OSs). I've written several scripts that use metamail to extract the content of received mail (even mail encrypted with GnuPG) and auto answer it. (If you want an example send email to [EMAIL PROTECTED] ). Ehud. -- Ehud Karni Tel: +972-3-7966-561 /\ Mivtach - Simon Fax: +972-3-7966-667 \ / ASCII Ribbon Campaign Insurance agencies (USA) voice mail and X Against HTML Mail http://www.mvs.co.il FAX: 1-815-5509341 / \ GnuPG: 98EA398D http://www.keyserver.net/Better Safe Than Sorry = To unsubscribe, send mail to [EMAIL PROTECTED] with the word unsubscribe in the message body, e.g., run the command echo unsubscribe | mail [EMAIL PROTECTED]
Re: find -mtime and wrong data return
On Thu, 15 Mar 2007 14:38:30 ik [EMAIL PROTECTED] wrote: I wish to use the find command in order to find all the files that were created prior to specific file. So I tried to use the following command: find -type f -mtime -7 In order to get all the files that where modified prior to a week ago, but it only gives me files that where last changed a week ago, and not prior to that at all. I can't find any other way to get such data without using some bash magic. Am I missing something here, or can't I get files prior to what I specy on -mtime ? You used the wrong format. Instead of -7 you should use +7. From find man page: +n for greater than n, -n for less than n, n for exactly n. You need the greater than n (greater = older). Ehud. -- Ehud Karni Tel: +972-3-7966-561 /\ Mivtach - Simon Fax: +972-3-7966-667 \ / ASCII Ribbon Campaign Insurance agencies (USA) voice mail and X Against HTML Mail http://www.mvs.co.il FAX: 1-815-5509341 / \ GnuPG: 98EA398D http://www.keyserver.net/Better Safe Than Sorry = To unsubscribe, send mail to [EMAIL PROTECTED] with the word unsubscribe in the message body, e.g., run the command echo unsubscribe | mail [EMAIL PROTECTED]
Re: renaming or removing a file that start with minus
On Sun, 4 Mar 2007 15:43:54 ido wrote: How can I rename and/or delete a file that starts with minus ? For example: mv --test test will end up with the error: mv: unrecognized option `--test' Try `mv --help' for more information. The same error will exists if I'll use the asterisk wildcard instead. Please note that I'm looking for a mv and rm based solutions and not the use (for example) midnight commander. The problem is that the name is interpreted as an option because it begins with - . You must cause `mv'/`rm' to know that -test is not an option. You can do it in some ways: 1. You can add -- before the file name, this signals mv/cp/ln/rm that all the options has been processed, and file name(s) follow. This is the prefered way - that's why it was built into the file commands. e.g. mv -- --test test to delete a file named -- do: rm -- -- 2. You can add directory specification to the file name and so it won't start with -, any file can be written as ./file . e.g. mv ./--test test Any way that will make the 1st file name NOT to start with - will work. e.g. rm -f dummy-name -file-1 --file-2 Ehud. -- @@ @@@ @@ @@ Ehud Karni אהוד קרני @@ @ @@ @ Senior System Support תמיכה במערכות מחשב @@ @@ @ @@Mivtach - Simon מבטח - סימון @@ @@ @@ Insurance agencies סוכנויות לבטוח Better Safe Than SorryTel: 03-7966-561 :טל Fax: 03-7966-667 :פקס http://www.mvs.co.il mailto:[EMAIL PROTECTED] :דואל Ehud Karni Tel: +972-3-7966-561 /\ Mivtach - Simon Fax: +972-3-7966-667 \ / ASCII Ribbon Campaign Insurance agencies (USA) voice mail and X Against HTML Mail http://www.mvs.co.il FAX: 1-815-5509341 / \ GnuPG: 98EA398D http://www.keyserver.net/Better Safe Than Sorry To unsubscribe, send mail to [EMAIL PROTECTED] with the word unsubscribe in the message body, e.g., run the command echo unsubscribe | mail [EMAIL PROTECTED]
Re: Faking out YUM
On Sun, 4 Mar 2007 23:32:04 Geoffrey S. Mendelson wrote: YUM downloaded and installed almost 900 packages. I would like to do the same upgrade and update to another system. Is there a way to back the packages up to a DVD or other medium and put them on the other system so I don't have to download them again? I assume there are other files (headers?) I need to copy too. What do I save and where do I put it to use it. You have to do 2 things. 1st, you have to change /etc/yum.conf `keepcache' option to 1. For full description read the man page for yum.conf . 2nd you'll find the yum cache in the above file at the `cachedir' option (default to /var/cache/yum), just copy the whole directory, it includes all the headers and rpms loaded. Since I have many machines, I symlinked the cache (on each machine) to a common nfs disk. I do the update (by a script) on one machine (which will download and store the updates) and then run the same update on all other machines. On a related note, is there an FC6 (x86) YUM repository? Sure is. How else would the yum work and find the 900 packages it added for you ? Anyway, bellow are the repositories I use. The 4 standard (you already have them) FC repositories are: fedora-core.repo fedora-updates.repo fedora-extras.repo fedora-legacy.repo I highly recommend the livna.repo - http://rpm.livna.org/ (e.g. vlc, the all media player is kept there). These (and some more) are automatically configured by: rpm -Uvh http://www.fedorafaq.org/yum \ http://rpm.livna.org/livna-release-6.rpm (see: http://www.fedorafaq.org/#yumconf ). I disabled the atrpms and freshrpms repos, because they were problematic (some of their packages were out of sync with the main repos and caused collisions). Just one more hint. Some times the update will hang at the very beginning. Ensure there is no other yum running (ps -ef | grep yum) and if so, do rm /var/lib/rpm/__db.00? and rerun the update. Ehud. -- Ehud Karni Tel: +972-3-7966-561 /\ Mivtach - Simon Fax: +972-3-7966-667 \ / ASCII Ribbon Campaign Insurance agencies (USA) voice mail and X Against HTML Mail http://www.mvs.co.il FAX: 1-815-5509341 / \ GnuPG: 98EA398D http://www.keyserver.net/Better Safe Than Sorry = To unsubscribe, send mail to [EMAIL PROTECTED] with the word unsubscribe in the message body, e.g., run the command echo unsubscribe | mail [EMAIL PROTECTED]
Entering Hebrew (2nd round) - VNC with twm
Hello gang, After reading the 1st round of entering hebrew? I have similar problem for the gurus of this list. I'm interfacing with Linux through VNC, i.e. I have a virtual screen created by VNC, with twm as the windows manager. The OS is as old as RH7.3 or new as FC6. I connect to the Linux box by ssh (from anywhere, mostly my home or office), which has a tunnel for the VNC. Most of the time I run only one application - Emacs - which is run as full screen without border or title. I don't need any Hebrew support for the Emacs - it is all done from within (by my hebeng.el). From time to time I need to run a Firefox or OO (to read HTML mail and documents), sometimes I'd like to run/test some legacy programs that run on xterm/rxvt. For the Firefox/OO I need UTF-8 Hebrew, for the legacy programs I need ISO-8859-8 Hebrew. So it all come to this: How I can manage the keyboard to produce English (upper lower case), Hebrew (UTF-8 and ISO-8859-8) with twm ? I prefer to have all those together (modifiers for Hebrew - like shift and lock for upper case). I have my practical solution, but I wanted to here from the list gurus their suggestions. Ehud. -- Ehud Karni Tel: +972-3-7966-561 /\ Mivtach - Simon Fax: +972-3-7966-667 \ / ASCII Ribbon Campaign Insurance agencies (USA) voice mail and X Against HTML Mail http://www.mvs.co.il FAX: 1-815-5509341 / \ GnuPG: 98EA398D http://www.keyserver.net/Better Safe Than Sorry = To unsubscribe, send mail to [EMAIL PROTECTED] with the word unsubscribe in the message body, e.g., run the command echo unsubscribe | mail [EMAIL PROTECTED]
Re: Quickest way to list content of directory(s)
On Mon, 12 Feb 2007 20:21:46 Peter wrote: Is there some utility that can do this very simple search efficiently? Why not use a find predicate for that? Why not write a COBOL application that uses a FORTRAN subroutine to do that ? Actually (and I'm speaking with a LOT of experience) a COBOL program (with or without FORTRAN or C subs) runs at exactly same speed as a C program. BTW, you can call systemcall (like readdir()) directly from COBOL, you don't need any wrapping subroutines. You can try it with the free (and incomplete) GNU tiny COBOL (see: http://tinycobol.org/ ) or with an old (one that compiles to standalone program) MicroFucos COBOL. Ehud. -- Ehud Karni Tel: +972-3-7966-561 /\ Mivtach - Simon Fax: +972-3-7966-667 \ / ASCII Ribbon Campaign Insurance agencies (USA) voice mail and X Against HTML Mail http://www.mvs.co.il FAX: 1-815-5509341 / \ GnuPG: 98EA398D http://www.keyserver.net/Better Safe Than Sorry = To unsubscribe, send mail to [EMAIL PROTECTED] with the word unsubscribe in the message body, e.g., run the command echo unsubscribe | mail [EMAIL PROTECTED]
Re: set xemacs window title
[sorry for top posting, but I follow the thread ] You can add this little snippet to your .emacs: (defun set-title-to-buffer-name () (modify-frame-parameters (selected-frame) (list (cons 'name (buffer-name) (add-hook 'find-file-hook 'set-title-to-buffer-name) This works in FSF emacs, I'm quiet sure it will work in xemacs. What it does: whenever you open (find-file) a new file, it will change the title of the working frame. Ehud. On Wed, 7 Feb 2007 16:18:55 wrote: Thanks Jason for the quick reply! I checked it now on my local machine it works perfectly! But I use xemacs on a remote machine, and I've already tried this with no success. Running xemacs with -user-init-file and such things doesn't work either. But, running it with the -no-init-file fix up the problem! However, all the other options I need are not available. I tried a brand new config file containing only the line you suggested, but with no success. Can there be a global config file that overrides mine? Any ideas? Thanks, Yoni -Original Message- From: Jason Friedman [mailto:[EMAIL PROTECTED] Sent: Wednesday, February 07, 2007 3:46 PM To: Couriel, Yoni; linux-il@linux.org.il Subject: Re: set xemacs window title We would very much like to see only the filename in the taskbar, and if possible, to keep the full path name in the title of the window. In your configuration file, put the following line: (setq frame-title-format %S:%b) or (setq frame-title-format %b) if you just want the filename and not emacs before it. What you have now I think is this: (setq frame-title-format %f) while shows the full path. Jason (another xemacs fan) -- Jason Friedman Ph.D. Student Department of Computer Science and Applied Mathematics Weizmann Institute of Science, Rehovot, Israel. Home page: http://www.wisdom.weizmann.ac.il/~jason -- Ehud Karni Tel: +972-3-7966-561 /\ Mivtach - Simon Fax: +972-3-7966-667 \ / ASCII Ribbon Campaign Insurance agencies (USA) voice mail and X Against HTML Mail http://www.mvs.co.il FAX: 1-815-5509341 / \ GnuPG: 98EA398D http://www.keyserver.net/Better Safe Than Sorry = To unsubscribe, send mail to [EMAIL PROTECTED] with the word unsubscribe in the message body, e.g., run the command echo unsubscribe | mail [EMAIL PROTECTED]
Re: New line in bash variables pain
On Tue, 14 Nov 2006 11:56:18 Maxim Vexler wrote: I'm having the most annoying issue with bash, one related to space delimited variables. [snip] Here's an example: san-svn:/var/lib/svn# cat passwd.fake [users] user1 = password1 user2 = password2 [snip] I'd like to automate this the import from this file into something like san-svn:# htpasswd -b passwd.real user1 password1 Your using the awk/bash/xarg combination in a wrong way. You can do in bash ALONE very simply like this: PWF=your-fake-pass-file cat $PWF | ( while read USR EQ PAS REST do if [ $EQ = = ] ; then ## echo $USR $PAS# just to get pairs htpasswd -b passwd.real $USR $PAS # what you really want fi done ) Or, you can do by awk ALONE like this: PWF=your-fake-pass-file awk '/^[^[].+[^\n]$/ { system( \ htpasswd -b passwd.real $1 $3 ) }' $PWF Ehud. -- Ehud Karni Tel: +972-3-7966-561 /\ Mivtach - Simon Fax: +972-3-7966-667 \ / ASCII Ribbon Campaign Insurance agencies (USA) voice mail and X Against HTML Mail http://www.mvs.co.il FAX: 1-815-5509341 / \ GnuPG: 98EA398D http://www.keyserver.net/Better Safe Than Sorry = To unsubscribe, send mail to [EMAIL PROTECTED] with the word unsubscribe in the message body, e.g., run the command echo unsubscribe | mail [EMAIL PROTECTED]
Re: sata sadder
On Wed, 08 Nov 2006 04:44:29 Aaron wrote: my old computer died and I got a new one which has a sata drive. The sata drive isn't recognized by ubuntu. I modprobed the sata_sis module but it didn't help. I don't know if it will help you, but the modules that support the sata drives on some of my machines are: ata_piix, sata_nv and sata_sil (depending on the chipset). In any case you also need libata and scsi_mod. I would try: modprobe -l *ata* to see all the ata modules (they are all under VERSION/kernel/drivers/scsi/). Ehud. -- Ehud Karni Tel: +972-3-7966-561 /\ Mivtach - Simon Fax: +972-3-7966-667 \ / ASCII Ribbon Campaign Insurance agencies (USA) voice mail and X Against HTML Mail http://www.mvs.co.il FAX: 1-815-5509341 / \ GnuPG: 98EA398D http://www.keyserver.net/Better Safe Than Sorry = To unsubscribe, send mail to [EMAIL PROTECTED] with the word unsubscribe in the message body, e.g., run the command echo unsubscribe | mail [EMAIL PROTECTED]
Re: Time Change Problem
On Thu, 5 Oct 2006 21:06:10 Oron Peled wrote: Specific to RedHat/CentOS/Fedora, they copy the local timezone file (/usr/share/zoneinfo/Asia/Jerusalem) into /etc/localtime Just a very minor correction, the zoneinfo file is not copied, it is symlinked, to /etc/localtime. Ehud. -- Ehud Karni Tel: +972-3-7966-561 /\ Mivtach - Simon Fax: +972-3-7966-667 \ / ASCII Ribbon Campaign Insurance agencies (USA) voice mail and X Against HTML Mail http://www.mvs.co.il FAX: 1-815-5509341 / \ GnuPG: 98EA398D http://www.keyserver.net/Better Safe Than Sorry = To unsubscribe, send mail to [EMAIL PROTECTED] with the word unsubscribe in the message body, e.g., run the command echo unsubscribe | mail [EMAIL PROTECTED]
Re: Backup advice
On Mon, 21 Aug 2006 16:37:03, Eli Marmor [EMAIL PROTECTED] wrote: Try rsnapshot (http://www.rsnapshot.org) To the best of my knowledge, and correct me if I'm wrong, none of the common filesystems (including ext2) support snapshots. Nothing, you were correct in what you said. rsnapshot does not do real snapshots. It's just a very comfortable frontend to rsync. If you need real snapshots in linux you can use lvm. Not as convenient I did not know about rsnapshot. So I built a system that does exactly that (system of snapshots) with a simple sh script and use of rsync. I freeze the source file system by using the LVM2 snapshot (I need only 1 snapshot, which you can do with LVM1 too, for the duration of the rsync). I do this twice daily. An FS of about 250GB has about 90 snapshots on a 600 GB space. The snapshot process is very simple: 1. Copy the the latest snapshot to a new directory by `cp -al'. That is the real trick, it takes about 200 MB for the 250 GB FS (less then 1/1000), this takes about 8 minutes here. 2. Freeze the source by making an LVM snapshot, and mount the snapshot. 3. Use rsync to sync from the mounted frozen source to the new created destination dir (this takes about 20-25 minutes). 4. Unmount the LVM snapshot and remove it. That's it ! In real life I do steps 2, 3, 4, 1 so I don't have to wait at the start of the process. Step 3 is really many rsync parallel processes. The advantage of this approach is that you can have as many snapshots as you want (and have space for them) and the OS don't serv them. The LVM snapshots are very expensive to the OS, a single write can be multiplied by the number of active snapshots, if the overwritten block is in all of them. Ehud. -- Ehud Karni Tel: +972-3-7966-561 /\ Mivtach - Simon Fax: +972-3-7966-667 \ / ASCII Ribbon Campaign Insurance agencies (USA) voice mail and X Against HTML Mail http://www.mvs.co.il FAX: 1-815-5509341 / \ GnuPG: 98EA398D http://www.keyserver.net/Better Safe Than Sorry = To unsubscribe, send mail to [EMAIL PROTECTED] with the word unsubscribe in the message body, e.g., run the command echo unsubscribe | mail [EMAIL PROTECTED]
Re: Are there non-free versions of Linux?
On Mon, 31 Jul 2006 01:20:22 paul wrote: Matan Ziv-Av wrote: Even if your license quibble for MS-Windows is reasonable, you theory still allows for buying a single copy of a music CD or a DVD, and copying it for all members of your company. I am sure AKUM will not accept that. You seem confused. A store-bought music CD is likely to be copyrighted. Both of you seems to miss a basic principle: the copyright holder (the creator of the work or the one the creator has given ownership) can dictate the use of the work. e.g. The music composer can let anybody copy his music, or he can forbid it. There are some limitations to the copyright holder restrictions by low (i.e. fair use). The EULA is a way of the large corporations to overcome these limitations (i.e. limiting the number of times you can play a disk). Ehud. -- Ehud Karni Tel: +972-3-7966-561 /\ Mivtach - Simon Fax: +972-3-7966-667 \ / ASCII Ribbon Campaign Insurance agencies (USA) voice mail and X Against HTML Mail http://www.mvs.co.il FAX: 1-815-5509341 / \ GnuPG: 98EA398D http://www.keyserver.net/Better Safe Than Sorry = To unsubscribe, send mail to [EMAIL PROTECTED] with the word unsubscribe in the message body, e.g., run the command echo unsubscribe | mail [EMAIL PROTECTED]
Re: SpamAssassin eating up my CPU
On Tue, 25 Jul 2006 14:43:28 Abramov wrote: Everything mail is under nice, I limited qmail to 10 concurent incoming (plus it is checking 3 RBLs), I have a long list of badmailto and badmailfrom, I added a lot of domains to the SA's whitelist, and still I have spamassassin choking up. I removed many of the rules from SARE and even some of the base. the problems continue, for the sheer load on SA. my mail log rotated at 5am and since then (9 hours) SA has rejected 5800 spams. this is NUTS. it means barely 5% are legitimates and false negatives (I still have those). My statistics is 690 out of 2277 real mail - 30% spam. I managed to get the checking time of each mail item from 15-25 to 6-12 seconds, but it's still quite long. the problem is that legitimate mail can't compete with the zealous spammer cannons, and either gets in late or worse - 5-6 times since the remote relay gives up on getting the 250 OK from the SMTP since the test time is still long (I reject mail at the SMTP with simscan). I did time statics on my spamassassin checking: time in secondsno. of mails precent 0 - 1.0 962 27.4% 1.1 - 2.0 1530 43.5% 2.1 - 5.0 915 26.0% 5.1 - 10.0 842.4% 10.0 (max=60) 260.7% so it is much less time than yours. I suggest you accept the mails and then SILENTLY drop the spam. That way, you actually lower the bandwidth and accepts all good mails. I found that when I rejected the spam, most of it returned to me with some kind of Returned mail. I think that behavior caused the huge spam amount you detected. Ehud. -- Ehud Karni Tel: +972-3-7966-561 /\ Mivtach - Simon Fax: +972-3-7966-667 \ / ASCII Ribbon Campaign Insurance agencies (USA) voice mail and X Against HTML Mail http://www.mvs.co.il FAX: 1-815-5509341 / \ GnuPG: 98EA398D http://www.keyserver.net/Better Safe Than Sorry = To unsubscribe, send mail to [EMAIL PROTECTED] with the word unsubscribe in the message body, e.g., run the command echo unsubscribe | mail [EMAIL PROTECTED]
Re: diff regexps
On Wed, 12 Jul 2006 10:57:35 Oleg Goldshmidt wrote: Gilad Ben-Yossef writes: The problem is that I tried various combiniations and none worked: diff -X ti_dontdiff -pBbNaur -X dontdiff this-kernel/ that-kernel/ -I '\$Id' -I '\$Header' -I '\$Date' -I '\$Source' -I '\$Auther' Try double quotes? Here is diffing a file from two different branches of CVS: $ diff -Nur {prototype,exceptions}/src/clone.cc | grep \$Id - $Id: clone.cc,v 1.27 2006/07/10 08:30:21 olegg Exp $; + $Id: clone.cc,v 1.25.2.1 2006/07/10 08:16:40 olegg Exp $; $ diff -Nur -I\$Id {prototype,exceptions}/src/clone.cc | grep \$Id $ In bash you can use \$VAR or '$VAR' (i.e. you need not escape the $ when it is between apostrophes). There is even more exotic form: $'string' which does interpret the string by bash (NOT by the calling application). Run the following script to see the differences: #! /bin/bash -ex VAR=example 1 \\ \$ \' \ \134 \044 \047 \042 echo -E $VAR echo -E '$VAR' echo -E $'$VAR' echo -E '$''$VAR' eval echo -E '$''$VAR' eval UNESC1='$''$VAR'# unescaped var echo -E $UNESC1 | $UNESC2 echo -E $UNESC echo -E \$VAR echo -E '\$VAR' echo -E $'\$VAR' On Wed, 12 Jul 2006 11:23:02 Shachar Shemesh wrote: Try double quotes? It makes no sense: $ echo '\$Id' \$Id $ echo \$Id $Id You really want the former, as $ has special meaning in a regexp, and therefor is supposed to need a backslash before it if used literally. I'm not saying you are not right, just that it's strange that this is the case. Shachar, you wrong. Gilad wants the `diff' program to see $ID not \$ID which is what '\$ID' gives to the application (diff does not substitute $ID with its environment value, bash does it). Ehud. -- Ehud Karni Tel: +972-3-7966-561 /\ Mivtach - Simon Fax: +972-3-7966-667 \ / ASCII Ribbon Campaign Insurance agencies (USA) voice mail and X Against HTML Mail http://www.mvs.co.il FAX: 1-815-5509341 / \ GnuPG: 98EA398D http://www.keyserver.net/Better Safe Than Sorry = To unsubscribe, send mail to [EMAIL PROTECTED] with the word unsubscribe in the message body, e.g., run the command echo unsubscribe | mail [EMAIL PROTECTED]
Re: diff regexps
On Wed, 12 Jul 2006 12:11:40 +0300, Shachar Shemesh wrote: Ehud Karni wrote: Shachar, you wrong. Gilad wants the `diff' program to see $ID not \$ID which is what '\$ID' gives to the application (diff does not substitute $ID with its environment value, bash does it). Last time I checked, $ in regexp meant match end of line. '$Id' would mean, if I understand this correctly, an Id coming AFTER the end of the line (an impossible combination, I know, but still). If I want grep to understand a literal $, I need to pass it a \$, which I can do either by doing \\\$Id or '\$Id'. I stand by my original statement. You are right. I'll say it again: YOU ARE RIGHT ! I take my statement back. I think a better way to pass the $Id would be '[$]Id' then you don't have to mess up with who is eating the backslash (and how many of them). Ehud. -- Ehud Karni Tel: +972-3-7966-561 /\ Mivtach - Simon Fax: +972-3-7966-667 \ / ASCII Ribbon Campaign Insurance agencies (USA) voice mail and X Against HTML Mail http://www.mvs.co.il FAX: 1-815-5509341 / \ GnuPG: 98EA398D http://www.keyserver.net/Better Safe Than Sorry = To unsubscribe, send mail to [EMAIL PROTECTED] with the word unsubscribe in the message body, e.g., run the command echo unsubscribe | mail [EMAIL PROTECTED]
Re: vi q
On Wed, 12 Jul 2006 14:15:39, Andre Bar'yudin wrote: Who would think it was possible... On 7/12/06, Erez D [EMAIL PROTECTED] wrote: if anyone is interested, here is the solution: :%s/\([0-9]*\)+\([0-9]*\)/\=submatch(1)+submatch(2)/g 8+9 to 20 1+7 to 29 and i want to change it to: 17 to 20 8 to 29 (i.e. do the math) I don't want to start a religious war, BUT, May be it is a formidable task for VI. In Emacs I have a package (written purely in lisp of course) that computes a full algebraic sentence and have some simple functions (abs, log/exp, trigonometric) included in it. You can mark an algebraic expression and evaluate it. e.g. @sqrt(1+(1+3)*2) == 3 a=3== 3 (+message a set to 3) a-a**2/2 == -1.50 ((+messages: a was 3a was 3) There is one drawback - you must not use names with `-' (hyphen), otherwise the `-' is taken to be minus. The algebraic package is here: http://t-e-k.biz/els/compute.el The marks package is here: http://t-e-k.biz/els/ekmarks.el Ehud. -- Ehud Karni Tel: +972-3-7966-561 /\ Mivtach - Simon Fax: +972-3-7966-667 \ / ASCII Ribbon Campaign Insurance agencies (USA) voice mail and X Against HTML Mail http://www.mvs.co.il FAX: 1-815-5509341 / \ GnuPG: 98EA398D http://www.keyserver.net/Better Safe Than Sorry = To unsubscribe, send mail to [EMAIL PROTECTED] with the word unsubscribe in the message body, e.g., run the command echo unsubscribe | mail [EMAIL PROTECTED]
Re: Text processing
On Wed, 05 Jul 2006 09:42:44 yahav Biran wrote: I'm trying to analyze a CSV file that was converted from xls file. It contains weird characters. I had lots of '\n' characters that were interrupting the parsing but I still left with other that looks like end of line but they are not (it do not changed with tr nor sed). In any case I attached two lines from the file. I think the problem is with the xls -- csv conversion, How do you achieve this ? By your attached lines it seems you work with Hebrew xls files. You may need to translate the UTF-8 Hebrew to ISO8599-8 Hebrew. I convert Hebrew xls files like this: xlHtml -te hebrew.xls | iconv -futf8 -thebrew hebrew.csv Ehud. -- Ehud Karni Tel: +972-3-7966-561 /\ Mivtach - Simon Fax: +972-3-7966-667 \ / ASCII Ribbon Campaign Insurance agencies (USA) voice mail and X Against HTML Mail http://www.mvs.co.il FAX: 1-815-5509341 / \ GnuPG: 98EA398D http://www.keyserver.net/Better Safe Than Sorry = To unsubscribe, send mail to [EMAIL PROTECTED] with the word unsubscribe in the message body, e.g., run the command echo unsubscribe | mail [EMAIL PROTECTED]
Re: Text processing
On Wed, 05 Jul 2006 16:22:45 yahav Biran wrote: Thanks ehud Where did you download the xlHtml utility? It seems you did not pay attention to my yesterday response to your original mail. You can search it at the Linux-IL archives, or you can try googling with xlhtml linux your-distro, I'm sure you'll find a suitable package among the first 20 results. Ehud. BTW. I'm CC'ing the list. I don't answer on private channel. -- Ehud Karni Tel: +972-3-7966-561 /\ Mivtach - Simon Fax: +972-3-7966-667 \ / ASCII Ribbon Campaign Insurance agencies (USA) voice mail and X Against HTML Mail http://www.mvs.co.il FAX: 1-815-5509341 / \ GnuPG: 98EA398D http://www.keyserver.net/Better Safe Than Sorry = To unsubscribe, send mail to [EMAIL PROTECTED] with the word unsubscribe in the message body, e.g., run the command echo unsubscribe | mail [EMAIL PROTECTED]
Re: convert Microsoft Excel xls To CSV
On Tue, 04 Jul 2006 16:16:06 yahav Biran wrote: It's nightmare to process an xls file. An external system is generating it and I need to process it. Is there any way to convert Microsoft Excel xls To CSV using a shell script. Is there any linux util that can help? There is the xlhtml package (sources at: http://chicago.sourceforge.net/xlhtml/ RPM package at Fedora extras). I use it for several years now. I have written a very simple wrapper script. It works quite well. Ehud. -- Ehud Karni Tel: +972-3-7966-561 /\ Mivtach - Simon Fax: +972-3-7966-667 \ / ASCII Ribbon Campaign Insurance agencies (USA) voice mail and X Against HTML Mail http://www.mvs.co.il FAX: 1-815-5509341 / \ GnuPG: 98EA398D http://www.keyserver.net/Better Safe Than Sorry = To unsubscribe, send mail to [EMAIL PROTECTED] with the word unsubscribe in the message body, e.g., run the command echo unsubscribe | mail [EMAIL PROTECTED]
Re: Upgrading from samba2 to samba3 - Hebrew issues
On Thu, 15 Jun 2006 11:20:31 +0300, Noam Meltzer wrote: Hi, Recently, we decided to upgrade the samba server at our office from samba2 to samba3. If this were a modern Linux installation, we wouldn't have so many obstacles in our way. But since we are using Solaris9 on our server, we faced some ugly quirks. So here's the story, and the solution. If anybody will ever need to do so as well. The problem begins with the fact that Samba2 is not Unicode aware, thus, when you saved a file with an Hebrew name from a windows machine - the real file name on the storage was with the same character set as of the windows (CP862). When upgraded to Samba3 - the engine of samba3 in the back end expects the file to be in Unicode. With a modern Linux the solution is simple: add the statement unix charset = cp862 to the [global] section of smb.conf [Solaris vs. Linux discussion and solution snipped] Bellow is my Samba (3.0.4 soon to be upgraded) configuration. Unix use ISO8559-8 (Hebrew can be seen on terminals, not just X). M$Windows (98, XP, 2000) using either CP862 or Unicode. Ehud. # Specifies the charset that samba will use to print messages to stdout # and stderr and SWAT will use. Should generally be the same as the unix # charset. display charset = ISO8859-8 # Specifies the charset the unix machine Samba runs on uses. Samba needs # to know this in order to be able to convert text to the charsets other # SMB clients use. unix charset = ISO8859-8 # Specifies whether Samba should try to use unicode on the wire by # default. Note: This does NOT mean that samba will assume that the unix # machine uses unicode!Default: unicode = yes # unicode = no## not recognized # DOS SMB clients assume the server has the same charset as they do. This # option specifies which charset Samba should talk to DOS clients. # # The default depends on which charsets you have installed. Samba tries to # use charset 850 but falls back to ASCII in case it is not available. Run # testparm(1) to check the default on your system. dos charset = CP862 -- Ehud Karni Tel: +972-3-7966-561 /\ Mivtach - Simon Fax: +972-3-7966-667 \ / ASCII Ribbon Campaign Insurance agencies (USA) voice mail and X Against HTML Mail http://www.mvs.co.il FAX: 1-815-5509341 / \ GnuPG: 98EA398D http://www.keyserver.net/Better Safe Than Sorry = To unsubscribe, send mail to [EMAIL PROTECTED] with the word unsubscribe in the message body, e.g., run the command echo unsubscribe | mail [EMAIL PROTECTED]
CC FC Open Video Contest
CREATIVE COMMONS ANNOUNCES OPEN VIDEO CONTEST WITH THE FEDORA PROJECT The contest promotes flexible copyright, open media formats and the Fedora Project. Entries must be 30 seconds or less, in OGG Theora (see: http://theora.org/ ) format, promote freedom and openness. Go to http://creativecommons.org/video/openvideocontest/ for more information. Ehud. -- Ehud Karni Tel: +972-3-7966-561 /\ Mivtach - Simon Fax: +972-3-7966-667 \ / ASCII Ribbon Campaign Insurance agencies (USA) voice mail and X Against HTML Mail http://www.mvs.co.il FAX: 1-815-5509341 / \ GnuPG: 98EA398D http://www.keyserver.net/Better Safe Than Sorry = To unsubscribe, send mail to [EMAIL PROTECTED] with the word unsubscribe in the message body, e.g., run the command echo unsubscribe | mail [EMAIL PROTECTED]
Re: Preventing email spoofing
On Mon, 19 Jun 2006 04:44:25 -0700 (PDT), E Leibovich wrote: Is there any automated tool to bounce email not from the original server? That is, is there a tool that bounces back emails claiming they're from hostA (their from:[EMAIL PROTECTED]) however they're really from hostB (that is, recieved: from hostB...). This seems a good way to prevent many spam messages that claim to originate from your server. Is it a good idea? Is there any written script that does so? This is NOT a good way. Many mailing lists and other sources (e.g. small offices sending their mail through their ISP) will bounce. Even your email - from: [EMAIL PROTECTED] - had come from [EMAIL PROTECTED] Remember - all the headers (except the last Received:, created by your computer) may be forged. Ehud. -- Ehud Karni Tel: +972-3-7966-561 /\ Mivtach - Simon Fax: +972-3-7966-667 \ / ASCII Ribbon Campaign Insurance agencies (USA) voice mail and X Against HTML Mail http://www.mvs.co.il FAX: 1-815-5509341 / \ GnuPG: 98EA398D http://www.keyserver.net/Better Safe Than Sorry = To unsubscribe, send mail to [EMAIL PROTECTED] with the word unsubscribe in the message body, e.g., run the command echo unsubscribe | mail [EMAIL PROTECTED]
Re: the PAIN that is Adaptec
On Mon, 5 Jun 2006 08:20:17 +0300, Marc A. Volovic [EMAIL PROTECTED] wrote: [snip] 1. LSI Logic - both SCSI controllers and SATA/SCSI Raid controllers 2. Mylex - RAID controllers 3. Cough, sputter, wash mouth with carbolic - HP ICCS RAID 4. ICP Vortex - RAID controllers I have good experience with 3ware (the 9550SX SATA-RAID). It installs out of the box (all Linux distributions have a driver for it), You can download sources from their site. They have a webby RAID management tool that works on linux. Ehud. -- Ehud Karni Tel: +972-3-7966-561 /\ Mivtach - Simon Fax: +972-3-7966-667 \ / ASCII Ribbon Campaign Insurance agencies (USA) voice mail and X Against HTML Mail http://www.mvs.co.il FAX: 1-815-5509341 / \ GnuPG: 98EA398D http://www.keyserver.net/Better Safe Than Sorry = To unsubscribe, send mail to [EMAIL PROTECTED] with the word unsubscribe in the message body, e.g., run the command echo unsubscribe | mail [EMAIL PROTECTED]
Re: DD and split problem (need ideas)....
On Tue, 2 May 2006 18:35:25 +1000, Amos Shapira [EMAIL PROTECTED] wrote: On 5/2/06, gili gili [EMAIL PROTECTED] wrote: I know I can use split command. But the restore is problematic cat backup.img.gz.* | gzip -dc | dd of=/dev/hda1 But if I change the DVD to the one that have the new image, cat will lose count Untested idea: 1. mkfifo fifo 2. do cat fifo fifo fifo... | gzip repeat fifo on the cat command line to the number of input DVD's. 3. dd from the dvd's into fifo, one at at time. The repating of fifo is required because every time dd closes the fifo cat gets an EOF. You overcome this by telling cat that its next file to read is (tararam...): fifo. The above should work but you need to know the number of DVDs (or to use many fifo, so it is always sufficient). Instead you can use subshell (tested) like this: ( FLAG=any while [ $FLAG ] do cat /DVD-MOUNT-DIR/backup.img.gz.* echo Please put next DVD and press Y + Enter /dev/tty echo If there is none, press Enter only /dev/tty read FLAG /dev/tty done ) | gunzip -c | dd of=/dev/hda1 You can do any other needed operation in the loop (like unmounting and mounting the new DVD). Ehud. -- Ehud Karni Tel: +972-3-7966-561 /\ Mivtach - Simon Fax: +972-3-7966-667 \ / ASCII Ribbon Campaign Insurance agencies (USA) voice mail and X Against HTML Mail http://www.mvs.co.il FAX: 1-815-5509341 / \ GnuPG: 98EA398D http://www.keyserver.net/Better Safe Than Sorry To unsubscribe, send mail to [EMAIL PROTECTED] with the word unsubscribe in the message body, e.g., run the command echo unsubscribe | mail [EMAIL PROTECTED]
Re: How to copy an FC4 system?
=`Run_check 2) Make file systems / swap` if [ $RC = Run ] ; then Run_Command 'mkfs.ext2 -v -j -L / -m 0 /dev/hda1' Run_Command 'mkfs.ext2 -v -j -L /ulnx -m 0 /dev/hda3' Run_Command 'mkswap -L SWAP-hda2 /dev/hda2' fi RC=`Run_check 3) mount the new created root (/dev/hda1)` if [ $RC = Run ] ; then Run_Command 'mkdir -p /mnt/ulnx66' Run_Command 'mount /dev/hda1 /mnt/ulnx66' Ask fi RC=`Run_check 4) copy (by tar) complete installation from /FC4-net` if [ $RC = Run ] ; then Run_Command 'cd /mnt/ulnx66' Run_Command 'tar -xjvf /mnt/FC4-net/install-FC4/ulnx09-disk.tar.bz2' fi RC=`Run_check 5) Replace 09 by new ulnx number - run ulnx09-to-nn.sh` if [ $RC = Run ] ; then Run_Command 'cd /mnt/FC4-net/install-FC4' Run_Command 'mount /dev/hda3 /mnt/ulnx66/ulnx' Run_Command ./ulnx09-to-nn.sh $NN fi RC=`Run_check 6.1) create /dev/hdaxxx devices on /mnt/ulnx66/dev` if [ $RC = Run ] ; then Run_Command 'mknod /mnt/ulnx66/dev/hda' Run_Command 'mknod /mnt/ulnx66/dev/hda1' Run_Command 'mknod /mnt/ulnx66/dev/hda2' Run_Command 'mknod /mnt/ulnx66/dev/hda3' fi RC=`Run_check 6.2) chroot grub-install` if [ $RC = Run ] ; then Run_Command 'chroot /mnt/ulnx66 /sbin/grub-install /dev/hda' fi RC=`Run_check 7) umount reboot` if [ $RC = Run ] ; then Run_Command 'umount /mnt/ulnx66/ulnx' Run_Command 'umount /mnt/ulnx66' fi echo -e '\nTake out the rescue CD now !!!' echo -e '\nIf everything is OK type exit to exit rescue mode (reboot)' ## install-from-net.sh ## == fdisk-input == p n p 1 1 +12880M n p 2 +4294M n p 3 t 2 82 p w q == -- Ehud Karni Tel: +972-3-7966-561 /\ Mivtach - Simon Fax: +972-3-7966-667 \ / ASCII Ribbon Campaign Insurance agencies (USA) voice mail and X Against HTML Mail http://www.mvs.co.il FAX: 1-815-5509341 / \ GnuPG: 98EA398D http://www.keyserver.net/Better Safe Than Sorry = To unsubscribe, send mail to [EMAIL PROTECTED] with the word unsubscribe in the message body, e.g., run the command echo unsubscribe | mail [EMAIL PROTECTED]
Re: please enlighten me
On Fri, 24 Mar 2006 20:03:24 +0200, Hetz Ben Hamo wrote: I just read the news that Checkpoint has cancelled their aquiring of SourceFire (the company who makes Snort. You can see the article (in hebrew) here: http://www.ynet.co.il/articles/0,7340,L-3231753,00.html I have played a bit with Snort few years ago, and I think it's a good tool. What I don't understand is why the U.S is so affraid to sell it to a company like Check point? it was open source in their previous version so there's not many top secret stuff inside.. It is not about the software, it is about support. Some defense departments are using this software with SourceFire support and they are afraid that Israel might spy on them (remember Polard ?). Ehud. -- Ehud Karni Tel: +972-3-7966-561 /\ Mivtach - Simon Fax: +972-3-7966-667 \ / ASCII Ribbon Campaign Insurance agencies (USA) voice mail and X Against HTML Mail http://www.mvs.co.il FAX: 1-815-5509341 / \ GnuPG: 98EA398D http://www.keyserver.net/Better Safe Than Sorry = To unsubscribe, send mail to [EMAIL PROTECTED] with the word unsubscribe in the message body, e.g., run the command echo unsubscribe | mail [EMAIL PROTECTED]
Re: problem in top utility
I looked at the man page of ps on the definition of CPU time and I didn't understand it. %CPU shows the cputime/realtime percentage. It will not add up to 100% unless you are lucky. It is time used divided by the time the process has been running. It means that in order to get true results I need to restart the monitored process before each test. Correct? No. What is the realtime? Realtime is the clock time (elapsed time). Ehud. -- Ehud Karni Tel: +972-3-7966-561 /\ Mivtach - Simon Fax: +972-3-7966-667 \ / ASCII Ribbon Campaign Insurance agencies (USA) voice mail and X Against HTML Mail http://www.mvs.co.il FAX: 1-815-5509341 / \ GnuPG: 98EA398D http://www.keyserver.net/Better Safe Than Sorry = To unsubscribe, send mail to [EMAIL PROTECTED] with the word unsubscribe in the message body, e.g., run the command echo unsubscribe | mail [EMAIL PROTECTED]
Re: Symbolic links at tar file
On Sat, 18 Feb 2006 20:11:04 +0200, Ori Idan wrote: I have a source tree which some of the files are actually symbolic links to other files in the same tree. I compress the tree using tar cjf file.tar.bz2 dir When I extract the files to the same machine everything works fine. When I extract the files to another machine with same directory strucuture (the directories before the source tree) everything works fine but extracting it on another machine with different path it seems the symbolic links are not created. As others have pointed out, the problem is that you have absolute symbolic links (i.e. starting with /). Use the `symlinks' utility (check it man page) to convert (and shorten) the symlinks on your directory before tarring it. Ehud. -- Ehud Karni Tel: +972-3-7966-561 /\ Mivtach - Simon Fax: +972-3-7966-667 \ / ASCII Ribbon Campaign Insurance agencies (USA) voice mail and X Against HTML Mail http://www.mvs.co.il FAX: 1-815-5509341 / \ GnuPG: 98EA398D http://www.keyserver.net/Better Safe Than Sorry = To unsubscribe, send mail to [EMAIL PROTECTED] with the word unsubscribe in the message body, e.g., run the command echo unsubscribe | mail [EMAIL PROTECTED]
Re: cron problem
On Mon, 23 Jan 2006 21:36:00 +0200, Shlomo Solomon wrote: In cron.hourly there are 5 jobs. None of them are **heavy**, but cron seems to finish only after 50 minutes. cron.hourly runs at 1 minute past the hour. Here's the relevant line from /etc/crontab: [snip] At 1 mnute past the hour, I get 5 e-mails (one from each of the above jobs), but only at 51 minutes past the hour, I get an e-mail from cron itself including the output of the 5 echo lines. Note that the debugging code is at the end of each script, so I assume that should rule out the possibility that one of the jobs is actually running for 50 minutes. I also looked at the output of ps -A and top and didn't see anything unusual. One of your cron processes is spawning a background (daemon) process that is terminating after 50 minutes. You get the mail from crond only when the run-parts (with all its children) is finished. Why don't you check all the processes with `ps -ef', or better still find the crond sid and do `ps -fs crond-sid'. Ehud. -- Ehud Karni Tel: +972-3-7966-561 /\ Mivtach - Simon Fax: +972-3-7966-667 \ / ASCII Ribbon Campaign Insurance agencies (USA) voice mail and X Against HTML Mail http://www.mvs.co.il FAX: 1-815-5509341 / \ GnuPG: 98EA398D http://www.keyserver.net/Better Safe Than Sorry = To unsubscribe, send mail to [EMAIL PROTECTED] with the word unsubscribe in the message body, e.g., run the command echo unsubscribe | mail [EMAIL PROTECTED]
Re: assigning a tty to a running proccess.
On Sat, 7 Jan 2006 17:51:58 +0200, Lior Kesos [EMAIL PROTECTED] wrote: The installation program assumes access to /dev/ttyX while the daemon does not have a tty assigned to it. Is there a way to assign a tty to a proccess after it has been run? Use expect, It was built for this, i.e. Run your installation program by it. Ehud. -- Ehud Karni Tel: +972-3-7966-561 /\ Mivtach - Simon Fax: +972-3-7966-667 \ / ASCII Ribbon Campaign Insurance agencies (USA) voice mail and X Against HTML Mail http://www.mvs.co.il FAX: 1-815-5509341 / \ GnuPG: 98EA398D http://www.keyserver.net/Better Safe Than Sorry = To unsubscribe, send mail to [EMAIL PROTECTED] with the word unsubscribe in the message body, e.g., run the command echo unsubscribe | mail [EMAIL PROTECTED]
Re: AMD mobo suggestions
On 26 Dec 2005 11:57:49 +, Oleg Goldshmidt wrote: * Have you got a mobo that worked out of the box and without a major driver hassle? I have ASUS mobo with dual Opteron, 1 SCSI disk, 1 SATA disk, Broadcom Gigabit Ethernet (onboard). I did not have any drive hassle, but I have to add acpi=off noapic to boot it (i.e. linux acpi=off noapic command to install FC4). I also tried to install SUSE-10 but it failed. The 32 bit FC4 installed without the noapic but the Ethernet did not work and the screen worked poorly. I did not try the sound device (this is a server). * Will I be better off with Intel-based systems given my requirements? CPU performance is not really critical for me, 64-bit Intel systems seem to sell cheaper than low-end Athlon64's, possibly at the expense of some performance, the mobos I've been offered have Intel GPUs and Realtek NICs that seem to be better supported - is this impression an illusion? I did not have any problems at all with dual Xeon 64 bits (but it has Intel mobo with SCSI disks and Broadcom Gigabit Ethernet) Ehud. -- Ehud Karni Tel: +972-3-7966-561 /\ Mivtach - Simon Fax: +972-3-7966-667 \ / ASCII Ribbon Campaign Insurance agencies (USA) voice mail and X Against HTML Mail http://www.mvs.co.il FAX: 1-815-5509341 / \ GnuPG: 98EA398D http://www.keyserver.net/Better Safe Than Sorry = To unsubscribe, send mail to [EMAIL PROTECTED] with the word unsubscribe in the message body, e.g., run the command echo unsubscribe | mail [EMAIL PROTECTED]
Re: [off topic] A new project - automatic translation
On Wed, 16 Nov 2005 17:58:16 +0200, Uri Even-Chen wrote: Very interesting. I haven't read Ray Kurzweil's book, nor heard his name until a few days ago, when I saw his name in one of the Wikipedia articles you sent me (about translation). I also read about him and it's very impressive. I want to write him and ask his opinion about my idea. Do you happen to know his E-mail address? One of his email is [EMAIL PROTECTED] (if you'll pass the junk filters). You can also try to reach him at http://www.kurzweilai.net/ . Ehud. -- Ehud Karni Tel: +972-3-7966-561 /\ Mivtach - Simon Fax: +972-3-7966-667 \ / ASCII Ribbon Campaign Insurance agencies (USA) voice mail and X Against HTML Mail http://www.mvs.co.il FAX: 1-815-5509341 / \ GnuPG: 98EA398D http://www.keyserver.net/Better Safe Than Sorry = To unsubscribe, send mail to [EMAIL PROTECTED] with the word unsubscribe in the message body, e.g., run the command echo unsubscribe | mail [EMAIL PROTECTED]
Re: [off topic] A new project - automatic translation
Uri, You might find The Rosetta Project http://www.rosettaproject.org/live interesting. Ehud. -- Ehud Karni Tel: +972-3-7966-561 /\ Mivtach - Simon Fax: +972-3-7966-667 \ / ASCII Ribbon Campaign Insurance agencies (USA) voice mail and X Against HTML Mail http://www.mvs.co.il FAX: 1-815-5509341 / \ GnuPG: 98EA398D http://www.keyserver.net/Better Safe Than Sorry = To unsubscribe, send mail to [EMAIL PROTECTED] with the word unsubscribe in the message body, e.g., run the command echo unsubscribe | mail [EMAIL PROTECTED]
Re: [OFF TOPIC] Wiring up home network
On Sun, 25 Sep 2005 14:20:56 +0100, Baruch Even [EMAIL PROTECTED] wrote: If you intend to have the storage in one machine and view a movie on another having 1Gbps network would help. It's not critical but it will help. That is a gross exaggeration. The typical movie is just about 1Mbit/s and even when I had just a 10 Mbit hub, my daughters view movies over my home net without any glitches. Ehud. -- Ehud Karni Tel: +972-3-7966-561 /\ Mivtach - Simon Fax: +972-3-7966-667 \ / ASCII Ribbon Campaign Insurance agencies (USA) voice mail and X Against HTML Mail http://www.mvs.co.il FAX: 1-815-5509341 / \ GnuPG: 98EA398D http://www.keyserver.net/Better Safe Than Sorry = To unsubscribe, send mail to [EMAIL PROTECTED] with the word unsubscribe in the message body, e.g., run the command echo unsubscribe | mail [EMAIL PROTECTED]