Re: Are there any implication of using or supporting Debian now that the Project Leader shared a call for BDS on debian.social ?

2024-03-03 Thread Tzafrir Cohen
Hi,

On Sat, Mar 02, 2024 at 09:21:37PM +0200, borissh1...@gmail.com wrote:
> Hi, 
> 
> A bit clueless question , but are there any legal implication of using 
> or supporting Debian now that the Debian Project Leader shared a call
> for BDS  ?

Debian does not support (or oppose, or whatever) BDS.

Some Debian people may support (or oppose or whatever).

-- 
mail / xmpp / matrix: tzaf...@cohens.org.il
___
Linux-il mailing list -- linux-il@cs.huji.ac.il
To unsubscribe send an email to linux-il-le...@cs.huji.ac.il


Re: Visidata with RTL text

2022-06-13 Thread Tzafrir Cohen
Hi,

On Mon, Jun 13, 2022 at 09:53:36AM +0300, Shachar Shemesh wrote:
> 
> On 09/06/2022 19:10, Dotan Cohen wrote:
> >   If anybody doesn't yet use Visidata, then give it a look. It is
> > ostensibly a tool for looking at tabular data, like CSV files, but it
> > works with so many formats that I find myself using it very often as
> > it is easier to use than purpose-built tools. I even use it to poke
> > around the filesystem sometimes.
> > 
> > https://www.visidata.org/
> > 
> > Visidata unfortunately places consecutive RTL cells in reverse order.
> > Here's the bug that I filed:
> > https://github.com/saulpw/visidata/issues/1392
> > 
> > It would be great if someone could add something constructive to that
> > bug report. I personally have many CSV files and other files with
> > Hebrew and Arabic text. Thanks.
> 
> 
> If you can find the part of the code that outpus, simply inserting
> an "LRM" character between cells should, at the very least, greatly
> improve things.

Isn't that what LRE and PDF are for?

-- 
mail / xmpp / matrix: tzaf...@cohens.org.il

___
Linux-il mailing list
Linux-il@cs.huji.ac.il
http://mailman.cs.huji.ac.il/mailman/listinfo/linux-il


Re: recover ssh-agent socket

2022-01-08 Thread Tzafrir Cohen
On Sat, Jan 08, 2022 at 01:24:18PM +0200, Shachar Shemesh wrote:
> >   You can probably find it under /proc/$SSH_AGENT_PID/fd.

I see there:

lrwx-- 1 root root 64 Jan  8 15:00 0 -> /dev/null
lrwx-- 1 root root 64 Jan  8 15:00 1 -> /dev/null
lrwx-- 1 root root 64 Jan  8 15:00 2 -> /dev/null
lrwx-- 1 root root 64 Jan  8 15:00 3 -> 'socket:[14326]'


> >   With that said, I'm not sure whether that brings you any closer
> > to recovering it. Maybe a move (the syscall, not the command line)
> > from there to $SSH_AUTH_SOCK?

Also, to answer Uri:

Because it's there.

-- 
mail / xmpp / matrix: tzaf...@cohens.org.il

___
Linux-il mailing list
Linux-il@cs.huji.ac.il
http://mailman.cs.huji.ac.il/mailman/listinfo/linux-il


recover ssh-agent socket

2022-01-08 Thread Tzafrir Cohen
Hi,

I accidentally deleted my ssh-agent's socket from /tmp. The agent is
still running and I have $SSH_AGENT_PID and $SSH_AUTH_SOCK set in
various processes, so I know where it should have been.

Is there any way to recover the socket? Short of restarting the X
session, of course.

-- 
mail / xmpp / matrix: tzaf...@cohens.org.il

___
Linux-il mailing list
Linux-il@cs.huji.ac.il
http://mailman.cs.huji.ac.il/mailman/listinfo/linux-il


Re: Hebrew with putty

2021-09-30 Thread Tzafrir Cohen
On Thu, Sep 30, 2021 at 10:43:37AM +0300, אורי wrote:
> Hi,
> 
> I realized it is probably a bug in putty, so I wrote to
> pu...@projects.tartarus.org and got a reply.
> 
> https://www.chiark.greenend.org.uk/~sgtatham/putty/feedback.html
> 
> However the putty developers might need help to fix it as they are not
> RTL-language speaking themselves, so if you know how to do it you can write
> to them or send them a patch of the source code. I tried to look at the
> putty source code myself but it looks complicated and I don't know how to
> fix this bug for myself. There is an option to disable bidirectional text
> display in putty, but then the Hebrew text is reversed too.

The basic thing you can do is simplify the test case. Put that text in a
file and make sure that merely cat of that file gives the problematic
output. Then try to get a minimal example that still shows the problem.

-- Tzafrir

___
Linux-il mailing list
Linux-il@cs.huji.ac.il
http://mailman.cs.huji.ac.il/mailman/listinfo/linux-il


Re: sound problem on Kubuntu 20.04

2020-12-09 Thread Tzafrir Cohen

On 10/12/2020 9:02, Shlomo Solomon wrote:


I think you're right, but I have no idea how to fix it, or why it was
not setup automatically. As I wrote earlier, in the LiveDVD I had sound.


Have you tried pavucontrol? (from package pavucontrol) It can help 
clarify Pulseaudio's view of things.



But then again, if ALSA (as user root) does not see it, pulseaudio has 
nothing to work with. And nowadays there's even another layer: pipewire 
(pw-play, pw-cli, and such). But I have not yet heard of problems caused 
at that level.



-- Tzafrir


___
Linux-il mailing list
Linux-il@cs.huji.ac.il
http://mailman.cs.huji.ac.il/mailman/listinfo/linux-il


Re: sound problem on Kubuntu 20.04

2020-12-09 Thread Tzafrir Cohen

Hi,

On 10/12/2020 7:56, Shlomo Solomon wrote:


New computer - new install of Kubuntu 20.04 - no sound.

I thought it might be a hardware problem since it's a new computer, but
when I boot to a LiveDVD of the same distro, everything is fine.



Just to check one obvious thing: can you play directly with ALSA? As 
root (so you don't have pulseaudio in the middle)?



aplay alsa-utils .


-- Tzafrir


___
Linux-il mailing list
Linux-il@cs.huji.ac.il
http://mailman.cs.huji.ac.il/mailman/listinfo/linux-il


Re: Ubuntu

2020-06-10 Thread Tzafrir Cohen
On 11/06/2020 6:29, אורי wrote:
> Hi,
> 
> Thanks for your suggestion, I decided to upgrade to 18.04.4 and I ran a
> few times the following commands (from root):
> 
> sudo apt autoremove
> sudo apt-get update
> sudo apt-get upgrade
> sudo apt update
> sudo apt upgrade

apt is basically a wrapper around apt-get and apt-cache. Running both
apt-get and apt is pointless.

It is also recommended to run autoremove after an upgrade (more useful
than before).

-- Tzafrir

___
Linux-il mailing list
Linux-il@cs.huji.ac.il
http://mailman.cs.huji.ac.il/mailman/listinfo/linux-il


Re: Where to buy a Linux based desktop in Israel?

2020-05-15 Thread Tzafrir Cohen
Hi,

Pardon me for straying a bit off the topic of the recent sub-thread,

On 14/05/2020 23:08, Steve Litt wrote:
> On Thu, 14 May 2020 14:39:02 -0400
> Steve Litt  wrote:
> 
> 
>> That's perfectly reasonable, although I'll personally never use or
>> recommend Mint again. 
> 
> I'm going to bow out of this debate now. I should have bowed out of it
> long ago. First of all, I'm presumably on the same side as most of you
> when it comes to the major important facts, as opposed to the side show
> I've been discussing. Number two, I have nowhere near as much skin in
> the game as most of you have.

Be actually constructive and more on-topic and answer the question.

The last computer I bought with Linux pre-installed was a purism laptop.
Rather expensive and cannot be bought in Israel. The OS is a Debian
derivative, and it works well out of that specific box. But then again,
if you don't limit yourself to Israel, there are a number of others.

-- Tzafrir

___
Linux-il mailing list
Linux-il@cs.huji.ac.il
http://mailman.cs.huji.ac.il/mailman/listinfo/linux-il


Re: Where to buy a Linux based desktop in Israel?

2020-05-13 Thread Tzafrir Cohen
Hi,

On 13/05/2020 6:17, Steve Litt wrote:
> On Tue, 12 May 2020 09:44:34 +0300
> Shlomi Fish  wrote:
> 
>> Hi Geoffrey!
>>
>> Please see
>> https://www.mail-archive.com/linux-il@cs.huji.ac.il/msg66441.html and
>> let's drop the "antisemitism" argument once and for all.
> 
> Well, speaking only for myself, in 2009 I erased Mint from all my
> computers and never used it again. The following is a contemporaneous
> description of why:
> 
> http://troubleshooters.com/lpm/200908/200908.htm#_The_Politics_of_Free_Software:_Pet_predjudices
> 
> If anybody knows the location of a web resource in which the Mint
> project completely repudiated the unfortunate words Clem LeFebre placed
> *on the official Mint blog*, I'll change my stance.
> Otherwise, I'll neither use nor recommend Linux Mint.

See the archived Wikipedia talk page:
https://en.wikipedia.org/wiki/Talk:Linux_Mint/Archive_Israel-Palestine_Controversy

On the official blog he wrote:
https://blog.linuxmint.com/?p=775
That is: that politics is out of the official Linux Mint blog.

> 
> Just in case somebody here doesn't know what we're talking about, the
> message originally posted on the official Linux Mint blog included the
> phrase "I don’t want any money or help coming from Israel or people who
> support the action of their current government."

As of 2012, an Israeli company is listed (with an Israeli flag) in Linux
Mint's partners page:
https://www.linuxmint.com/partners.php

I'd say: what was was was was.

-- Tzafrir

___
Linux-il mailing list
Linux-il@cs.huji.ac.il
http://mailman.cs.huji.ac.il/mailman/listinfo/linux-il


Re: Where to buy a Linux based desktop in Israel?

2020-05-13 Thread Tzafrir Cohen
Geoff,

On 12/05/2020 22:16, Shlomi Fish wrote:
> 
> Hi Geoffrey,
> 
> On Tue, May 12, 2020 at 5:51 PM Geoffrey Mendelson
> mailto:geoffreymendel...@gmail.com>> wrote:
> 
> i went to the trouble of signing into one of my linux servers and
> reading the link.
> 
> It was your telling me not to talk about how RMS said as president
> of the FSF that he was going to honor the Palestinian boycott of
> Israel. It had nothing to do with linux mint.

That is what you wrote then. However it is not really based on any data.
At the time IBM really wanted to continue developing its own fork of
OpenOffice and for that they did not want OpenOffice to continue with
the LibreOffice fork, that already existed (and had a license that would
prevent them from making a priprietary fork).

That is the most probably cause for Oracle to move OpenOffice to Apache.
Stallman wasn't really involved with LibreOffice at the time.

See my reply from then:
https://www.mail-archive.com/linux-il@cs.huji.ac.il/msg66440.html

Oh, and if you go a bit up that thread you see another message that
happened to be by me that mentions that Mint is such an anti-Israeli
distribution that it has partnered to Compulab (an Israeli company) that
ships boxes with Mint pre-installed, and they are clearly listed with an
Israeli flag in their "partners" page:
https://www.linuxmint.com/partners.php

So Clem was ignorant and made incorrect statements almost 15 years ago.
He realized he was wrong and repented (again, almost 15 years ago). And
yet you keep making those false accusations. Even after you were
corrected time and again.

-- Tzafrir

___
Linux-il mailing list
Linux-il@cs.huji.ac.il
http://mailman.cs.huji.ac.il/mailman/listinfo/linux-il


Re: dependency hell OR it should not be this hard

2019-08-11 Thread Tzafrir Cohen
On 11/08/2019 4:42, Ari Becker wrote:
> No, it doesn't have to be that hard. Plugging NixOS:
> https://nixos.org/nixos/about.html which solves this issue by making
> safe rollbacks as easy as rebooting and choosing the previous immutable
> system configuration.

Nixos and the similar Guix indeed disallow any scripts at package install.

>From some anecdotial evidence, at least in some cases this translatest
to more manual changes required by the users in their configuration.

-- Tzafrir

___
Linux-il mailing list
Linux-il@cs.huji.ac.il
http://mailman.cs.huji.ac.il/mailman/listinfo/linux-il


Re: how to copy an ubuntu system disk containing a logical volume.

2018-11-18 Thread Tzafrir Cohen

  
  

On 18/11/2018 20:13, Geoffrey Mendelson
  wrote:


  
  I have an Ubuntu 15.10 system. When I installed
it, it defaulted to a regular ext(something) boot partition, and
an lvm partition with everything else on it.
  
  
  There now is a bad spot in the lvm partition. fsck
with a read check does not find it. I have moved enough data off
of it, so it wont show up in a file copy. 
  
  
  I will have a new drive tomorrow, intended to
replace the old one. The old one is 300 gig, the new one is 1tb.
  
  
  Normally, I would just partition it, make both
file systems ext4, copy the files and run grub.
  
  
  The lvm volume is something I dont understand.
  
  
  If there a diskcopy type utility that would do all
the work for me?
  
  
  Is there a howto?
  
  
  Can I just make the root an ext4 partition on the
new disk and skip the lvm?
  
  
  What would I have to change? I assume grub.conf
and /etc/fstab. Anything else?



I'm not exactly sure what it is that you want to do. One thing
  you can do is (for the time of the transition), connect the new,
  and then ask LVM to move the data to it. No need to mess with
  fstab.



Disclaimer: I didn't test the commands here, I don't play with
  LVM that much. I assume you have a logical volume called LV, that
  the old physical partition is /dev/sda2 and that the physical
  partition is /dev/sdb2[1] .


1. Partition the new disk. Create (among others) the partition of
  type LVM /dev/sdb2
2. Make that partition a physical volume:


pvcreate /dev/sdb2


3. Add the new partition (physical volume) to the logical volume:


vgextend LV /dev/sdb2


4. Move information from this physical volume (this should take a
  while):


pvmove /dev/sda2


5. Now you can ask LVM to remove the old physical volume
  (partition) from the logical volume:


vgreduce LV /dev/sda2




[1] This is the name it happens to have right now. It's not the
  name LVM identifies the partition anyway: it identifies it by an
  ID written inside the physical volume.



-- Tzafrir

  


___
Linux-il mailing list
Linux-il@cs.huji.ac.il
http://mailman.cs.huji.ac.il/mailman/listinfo/linux-il


Re: ifdown/ifup and friends

2018-04-24 Thread Tzafrir Cohen
Hi,

Not a good answer, just some thoughts:

On Tue, Apr 24, 2018 at 05:51:40PM +0300, Oleg Goldshmidt wrote:
> 
> Hi all,
> 
> I am trying to get my head around the problem of bringing network
> interfaces up and down and checking the state. I googled extensively,
> but I have not found an answer to the conundrum, and I am hoping that
> someone here may shed some light.
> 
> My target platform is Debian wheezy (no, I can't upgrade it), but what I
> describe below is very similar on an up-to-date Fedora 27 (that,
> obviously, has a very different set of userspace tools and a very
> different kernel).
> 
> What I am trying to achieve is as follows. Assume that the system in
> question gets a command (imagine an API of sorts) to reconfigure one of
> its multiple interfaces. Let's say that the control interface is eth0
> and the request is to reconfigure eth3. Here, "reconfigure" may mean,
> e.g., "change the static IP address and maybe some routing rules" (or
> toggle between static and DHCP or whatever - staying static seems
> conceptually simpler).
> 
> So the is an implementation (bash, run as root, etc.) that goes, in
> essence,
> 
> * stop interface eth3
> * change eth3 configuration
> * start interface eth3
> 
> which looks natural enough. It is also natural that there are stop() and
> start() functions that may include some subtleties such as flushing IP
> address, etc. The start() and stop() functions are used in other
> workflows and, in general, one would like to check whether the interface
> is up or down, at least to avoid superfluous error messages when one
> tries to bring up an interface that is already up, etc. (Such messages
> may pollute things for the API client, and hiding stderr in general is
> not a good idea because real errors may be lost.)
> 
> The problem is that whatever I do in stop() (or by hand), e.g.,
> 
> * ifconfig eth3 down
> * ifdown --force eth3 (and --no-scripts, and whatever - on Debian)
> * ip link set eth3 down

Why don't you stop the interface with 'ifdown'? Also: why not use ip
(and generally: iproute2 tools) everywhere?

> 
> etc., etc., with infinite variations, the UP flag remains set (I also
> check with ifconfig, ip link show, etc.).
> 
> Technically, the UP flag is the IFF_UP bit in the ifr_flags field of
> struct ifreq accessible through a ioctl (cf. man 7 netdevice). I went as
> far as writing a C program that uses the ioctl(s) (SIOCGIFFLAGS,
> SIOCSIFFLAGS) directly. To no avail: right after I toggle IFF_UP I check
> it again and it is *always* up... Again, this is on both Debian wheezy
> (old, kernel 3.2.0) and Fedora 27 (fully updated, kernel 4.15.17)...
> 
> It also does not depend on whether the interface is designated as "auto"
> (on Debian) or anything else I could think of.

"auto" only means this interface is to be started at boot. So it indeed
should be irrelevant.

-- 
Tzafrir Cohen | tzaf...@jabber.org | VIM is
http://tzafrir.org.il || a Mutt's
tzaf...@cohens.org.il ||  best
tzaf...@debian.org|| friend

___
Linux-il mailing list
Linux-il@cs.huji.ac.il
http://mailman.cs.huji.ac.il/mailman/listinfo/linux-il


Re: raspberry PI - no X11

2018-02-06 Thread Tzafrir Cohen
On Sun, Feb 04, 2018 at 11:54:01AM +0200, Shlomo Solomon wrote:
> I really don't know how I screwed this up, but I've been "playing" with
> this for hours with no success.
> 
> I have a raspberry PI file server. I rarely use the GUI and when I do
> it's usually over VNC (I use KRDC) or with ssh -X. 
> 
> As of today:
> 1 - KRDC won't connect
> 
> 2 - ssh -X pi@pi   (pi is defined in /etc/hosts) gives only a console
> login and says: 
> X11 connection rejected because of wrong authentication.
> 

What are the values of DISPLAY and XAUTHORITY when you connect via ssh?

> 3 - I connected a monitor directly to the PI and it will not accept the
> pi password when I try to login to X11 - but DOES accept the root
> password. So X11 is OK, but only for root - not the regular pi user.

I must be missing something, but: how are the two related? In (2) you
try to authorize X11 programs on the pi to connect to an X server
running on your PC.

In (3) you run an X server on the pi (and X11 clients running on the pi
that should connect to it).

-- 
Tzafrir Cohen | tzaf...@jabber.org | VIM is
http://tzafrir.org.il || a Mutt's
tzaf...@cohens.org.il ||  best
tzaf...@debian.org|| friend

___
Linux-il mailing list
Linux-il@cs.huji.ac.il
http://mailman.cs.huji.ac.il/mailman/listinfo/linux-il


Re: "antisemitic" Linux Mint [was: Re: Distro recommendation]

2017-11-20 Thread Tzafrir Cohen
Complementing the time line:

On Mon, Nov 20, 2017 at 11:56:13AM +0200, Geoffrey Mendelson wrote:
> On 11/20/2017 11:20 AM, Vladimir Vainer wrote:
> > Can you provide more information on  Israel-Palestine controversy as it
> > applies to Open Office?
> 
> Time Line:
> 
> Arab League passes a boycott of Israel. (this will become important later)
> 
> Oslo accords create Palestinian Authority.  The PA sends workers and medical
> patients to Israel, gets most of its water, electricity, food, cooking gas,
> building supplies, etc from Israel (no boycott).
> 
> Palestinians bombard Sderot with rockets and mortars.
> 
> Sderot builds underground kindergarden (gan)
> 
> Larry Ellison (CEO of Oracle) donates money to extend kindergarden with
> underground playground, one of many things in Israel he funded.
> 

2010:

Jan: Oracle buys Sun (owner of OpenOffice.org). Renames it
OracleOpenOffice.

Sep: The majority of the developers community forks. LibreOffice is
born. They form The Document Foundation.

2011:

Apr: Oracle annonces it will abandon development of OpenOffice. At the
time LibreOffice has already turned out to be a more vibrant
alternative. But there was still something of a development community
behind the Oracle project (and a third, competing, one, led by former
OO.o developers).

Jun: Oracle announces it will move OpenOffice to the Apache Foundation.

> Palestinain businessman invites (and I assume pays) RMS to speak on FOSS. He
> requires that RMS does not speak in Israel or meet with israelis on that
> trip. Note that RMS could have flown to Aman, taken a taxi to the Alenby
> Bridge and a Palestinian taxi to where he wanted to in the P.A. without ever
> entering Israel.
> 
> RMS chooses to fly to Ben Gurion and enter the PA via Israel.
> 
> RMS announces, using his email account as President of the FSF that he will
> honor the (nonexistent (see above)) boycott of Israel.

RMS visited Israel in Jul-2011. He also gave two talks in Israel proper,
though not one of them was in a university.

> 
> Oracle was going to divest its interest in Open Office. The original plan
> was to donate it to the FSF.

Huh? Have you any evidence of that? Any mails exchanged from people at
Oracle with the FSF or whoever?

At the time IBM put pressure on Oracle to donate the code to Apache
instead of following the developers community (who eventually formed The
Document Foundation). The FSF had no real affiliation with the practical
fork of OO.o (ooo-build / go-oo), that has already established TDF as a
legal entity.

See e.g.
http://www.zdnet.com/article/what-the-heck-is-happening-with-openoffice-update/

> 
> Ellison (obviously upset by RMS's boycott) donates Open Office to the Apache
> Foundation.

This is not so clear to me.

-- 
Tzafrir Cohen | tzaf...@jabber.org | VIM is
http://tzafrir.org.il || a Mutt's
tzaf...@cohens.org.il ||  best
tzaf...@debian.org|| friend

___
Linux-il mailing list
Linux-il@cs.huji.ac.il
http://mailman.cs.huji.ac.il/mailman/listinfo/linux-il


"antisemitic" Linux Mint [was: Re: Distro recommendation]

2017-11-19 Thread Tzafrir Cohen
Off-topic:

On Sun, Nov 19, 2017 at 10:18:47AM +0200, Geoffrey Mendelson wrote:
> On 11/19/2017 9:54 AM, Shlomo Solomon wrote:

> 
> 
> > I've been thinking about Mint, Kubuntu or Fedora - any thoughts (or
> > additional options)?
> 
> Linux Mint was developed and maintained by a raving lunatic anti-semite. He
> demanded that his work had nothing to do with the IDF because it violently
> oppresses the Palestinian people. That is impossible, because many of the
> maintainers of all distros use code from Israel, and most of the people here
> serve milluim.
> 
> He was eventually chastised to the point he claims he apologized, but if you
> can find his apologies, it was for setting off the Jews who control the
> world.  You probably can't find them, as when he was called out on his slap
> in the face apologies,  he deleted all the relevant blog postings.

He made such an ill-informed decleration long ago (some 10 years ago?).
If he tries to distance himself from Israel, he's not doing a very good
job: the "Partners" page on linuxmint.com[1] clearly lists CompuLab, a
long-time partner (they OEM the "mintBox") with an Israeli flag.

[1] https://www.linuxmint.com/partners.php

Please don't continue spreading this mis-information. Clem made a
mistake long ago. Let's move on.

-- 
Tzafrir Cohen | tzaf...@jabber.org | VIM is
http://tzafrir.org.il || a Mutt's
tzaf...@cohens.org.il ||  best
tzaf...@debian.org|| friend

___
Linux-il mailing list
Linux-il@cs.huji.ac.il
http://mailman.cs.huji.ac.il/mailman/listinfo/linux-il


Re: Systemd error messages for custom service

2017-09-06 Thread Tzafrir Cohen
On Sun, Sep 03, 2017 at 06:44:05PM +0300, David Suna wrote:

> I am getting started with systemd on an Ubuntu 16.04 system. I have
> a custom service implemented in PHP which is outputting messages
> which I can see using journalctl. I would like to be able to filter
> on the message priority to distinguish between error messages and
> debug messages. However, all of my messages seem to be showing as
> info messages. How can I format my messages so that they will fit
> into the different log levels?

Not a direct answer, but have you tried filtering using --unit?

-- 
Tzafrir Cohen | tzaf...@jabber.org | VIM is
http://tzafrir.org.il || a Mutt's
tzaf...@cohens.org.il ||  best
tzaf...@debian.org|| friend

___
Linux-il mailing list
Linux-il@cs.huji.ac.il
http://mailman.cs.huji.ac.il/mailman/listinfo/linux-il


Re: mapping usb disks to devices

2017-08-17 Thread Tzafrir Cohen
On Wed, Aug 16, 2017 at 10:21:59PM +0300, Gabor Szabo wrote:
> Hi,
> 
> I have a USB hub connected to my Raspberry Pi and I have several
> external Hard disks connected to the USB hub.
> It seems the order the hard disks are mapped to the device files
> /dev/sda1 /dev/sdb1 /dev/sdc1 is random. On every boot it might be different.
> 
> This of course breaks the mapping I have in /etc/fstab for the mounts.
> 
> How can I solve this so I won't need to update /etc/fstab after every boot?

Standard udev rules create on my system the following 4 subdirectories
under /dev/disk:

  by-id  by-label  by-partuuid  by-path  by-uuid

Each directory has symlinks to either a disk or a partition. One of
those should describe your external disk properly.

If this is not good enough, you can make your own.

$ cat /etc/udev/rules.d/90-backup-usb.rules
ACTION=="add", ENV{ID_FS_LABEL}=="backup-boole-*", \
SYMLINK+="backup"

And in fstab:

/dev/backup /mnt/backup ext4rw,noauto   0   0


There are several backup disks with different labels. The backup disk
that is connected is mounted by the backup script, but /dev/backup is
created by the udev rule.

-- 
Tzafrir Cohen | tzaf...@jabber.org | VIM is
http://tzafrir.org.il || a Mutt's
tzaf...@cohens.org.il ||  best
tzaf...@debian.org|| friend

___
Linux-il mailing list
Linux-il@cs.huji.ac.il
http://mailman.cs.huji.ac.il/mailman/listinfo/linux-il


Re: sendmail or ssmtp or ??

2017-01-05 Thread Tzafrir Cohen
On Thu, Jan 05, 2017 at 02:44:00PM +0200, David Suna wrote:
> I have an Ubuntu machine that I am using to develop PHP based web
> application. I now need to configure it so that PHP can send out mail. The
> default seems to be to install sendmail. However, I have seen comments that
> sendmail is overkill and some references to ssmtp.

The main difference is that ssmtp and nullmailer (and other similar
"sendmails") don't queue. This greatly simplifies them.

> 
> What would be the recommended way to configure this? Sendmail, ssmtp or
> something else?

I tried using ssmtp for some servers. It lacked too many basic features.
Nullmailer came closer. I don't recall the specific issues now, though.
But I ended up using either postfix. Or even exim4 in some cases where I
didn't bother.

-- 
Tzafrir Cohen | tzaf...@jabber.org | VIM is
http://tzafrir.org.il || a Mutt's
tzaf...@cohens.org.il ||  best
tzaf...@debian.org|| friend

___
Linux-il mailing list
Linux-il@cs.huji.ac.il
http://mailman.cs.huji.ac.il/mailman/listinfo/linux-il


Re: iba.org.il programs

2016-12-10 Thread Tzafrir Cohen
On Mon, Jun 06, 2016 at 10:33:08AM +0300, Yuval Adam wrote:
> You can watch the streams directly if you point your media player (mpv
> has best support in my experience) to the stream URLs.
> 
> Channel 1 Live (only on certain hours, I believe. Otherwise the URL has
> become stale recently) -
> 
> http://iba-s.vidnt.com/iba_channel-511MRepeat/_definst_/smil:channel-511M.high.smil/playlist.m3u8
> 
> Program archive (replace QweRtY-A1B2 with the program code found on the
> source of the program page) -
> 
> http://iba-s.vidnt.com/iba_vod/_definst_/smil:iba-QweRtY-A1B2.smil/playlist.m3u8

I have failed to find any combination of Firefox/Chromium and plugin to
make the site work. I'm not really sure where the problem lies.

Anyway, for now I use https://tzafrir.org.il/~tzafrir/play_iba .

On initial tests the live stream gives me 403, but I decided to include
it just in case.

In KDE you can also include it as a klipper action, with the regex to
match the URLs:

  http://www\.iba\.org\.il/(program|liveProgram)\.aspx?scode=[0-9]+

Not perfect, but works for now.

-- 
Tzafrir Cohen | tzaf...@jabber.org | VIM is
http://tzafrir.org.il || a Mutt's
tzaf...@cohens.org.il ||  best
tzaf...@debian.org|| friend

___
Linux-il mailing list
Linux-il@cs.huji.ac.il
http://mailman.cs.huji.ac.il/mailman/listinfo/linux-il


iba.org.il programs

2016-06-05 Thread Tzafrir Cohen
Hi,

Lately I'm no longer able to view programs from iba.org.il even with a
flash plug-in. Any way to download them without using the flash plugin?

-- 
Tzafrir Cohen | tzaf...@jabber.org | VIM is
http://tzafrir.org.il || a Mutt's
tzaf...@cohens.org.il ||  best
tzaf...@debian.org|| friend

___
Linux-il mailing list
Linux-il@cs.huji.ac.il
http://mailman.cs.huji.ac.il/mailman/listinfo/linux-il


Re: Thunderbird + Fribidi

2016-02-04 Thread Tzafrir Cohen
On Thu, Feb 04, 2016 at 10:24:45AM +0200, Yuval Adam wrote:
> Is there any nice way to get Thunderbird to automatically process
> e-mails in Hebrew via Fribidi? (When composing, but possibly when
> viewing as well)

Thunderbird is built on top of the Gecko browser engine. Gecko uses a
library called ICU which serves a somewhat similar role to Fribidi.

However, from what I know of Thunderbird, it is basically written on top
of Gecko, and thus works with HTML, CSS and such. It should already
provide good bidirectionality support (and if not: it's a bug that
should be fixed).

-- 
Tzafrir Cohen | tzaf...@jabber.org | VIM is
http://tzafrir.org.il || a Mutt's
tzaf...@cohens.org.il ||  best
tzaf...@debian.org|| friend

___
Linux-il mailing list
Linux-il@cs.huji.ac.il
http://mailman.cs.huji.ac.il/mailman/listinfo/linux-il


IPv6 tunnels [was: Re: ISP with native ipv6 in isarael]

2016-01-26 Thread Tzafrir Cohen
On Tue, Jan 12, 2016 at 03:57:01PM +0200, Evgeniy Ginzburg wrote:
> Hi all.
> Do we have one or two??
> Want to get rid of NAT (partially).

Off-topic, but I saw the following error today in my mail log:

dsn=5.7.1, status=bounced (host aspmx.l.google.com[2a00:1450:4013:c01::1a] 
said: 
550-5.7.1 [2001:0::::::] Our system has detected that 
this 550-5.7.1 message does not meet IPv6 sending guidelines regard ing PTR 
records
550-5.7.1 and authentication. Please review
550-5.7.1 https://support.google.com/mail/?p=ipv6_authentication_error for more 
550 5.7.1 information.

Looking further I noticed that I installed the package miredo and forgot
about it. Perhaps I should set up a server somewhere and link my clients
to it. Some of my requests to gmail go through it.

And on the same note: SoftLayer still doesn't provide IPV6 addresses.

-- 
Tzafrir Cohen | tzaf...@jabber.org | VIM is
http://tzafrir.org.il || a Mutt's
tzaf...@cohens.org.il ||  best
tzaf...@debian.org|| friend

___
Linux-il mailing list
Linux-il@cs.huji.ac.il
http://mailman.cs.huji.ac.il/mailman/listinfo/linux-il


Re: How to install several kernels on Debian

2015-12-15 Thread Tzafrir Cohen
On Tue, Dec 15, 2015 at 04:20:42PM +0200, geoffrey mendelson wrote:
> On 12/15/2015 3:12 PM, Boris Shtrasman wrote:
> >
> >I  did a minor test on a amd64 arch again , setting up only wheezy and 
> >stable/updates
> >
> >
> I recently install Ubuntu 15.10 on a system amd64 arch,  and it installed
> vmlinuz-4.2.0-16-generic as the kernel. I later ran software update and it
> installed vmlinuz-4.2.0-19-generic, but kept the older kernel.
> 
> 
> I will admit Ubuntu is not debian, but the package tools provided by debian
> are used by it.

Ubuntu bumps the kernel revision (and hence change the name of the
kernel packagee) on practically every kernel upgrade. Debian does its
best to maintain the same kernel revision (and try to guarantee a stable
ABI to kernel modules).

Thus same tools but different policy.

-- 
Tzafrir Cohen | tzaf...@jabber.org | VIM is
http://tzafrir.org.il || a Mutt's
tzaf...@cohens.org.il ||  best
tzaf...@debian.org|| friend

___
Linux-il mailing list
Linux-il@cs.huji.ac.il
http://mailman.cs.huji.ac.il/mailman/listinfo/linux-il


Re: How to install several kernels on Debian

2015-12-15 Thread Tzafrir Cohen
On Tue, Dec 15, 2015 at 02:03:34PM +0200, Oleg Goldshmidt wrote:
> Yedidyah Bar David  writes:
> 
> > On Sun, Dec 13, 2015 at 3:06 PM, Oleg Goldshmidt  
> > wrote:
> >>
> >> this is something that Red Hat do without being asked
> >> (they keep several versions, usually 3), so it is something that seems
> >> natural to me.
> >
> > Generally, should work similarly in Debian.
> 
> So what's the apt-get equivalent of yum install (as apt-get install is
> similar to yum update)?

You can't have multiple versions of the same package installed. Note
that a kernel package with a different release (uname -r) has a
different name, and is thus a different package - they don't conflict.

> > No idea about your specific issue. Did you try to also upgrade udev and
> > initramfs-tools?
> 
> Will my 3.2 keep working? I have no confidence in that. Again, I do not
> want to "upgrade" anything - I want to switch between several kernels at
> will. I also do not want to compile - I want stock Debian kernels.

Thus you can keep your 3.2 kernel. It's a different package.

-- 
Tzafrir Cohen | tzaf...@jabber.org | VIM is
http://tzafrir.org.il || a Mutt's
tzaf...@cohens.org.il ||  best
tzaf...@debian.org|| friend

___
Linux-il mailing list
Linux-il@cs.huji.ac.il
http://mailman.cs.huji.ac.il/mailman/listinfo/linux-il


Re: where to buy a raspberry Pi?

2015-12-08 Thread Tzafrir Cohen
On Tue, Dec 08, 2015 at 11:13:44AM +0200, geoffrey mendelson wrote:
> My son has become interested in  the Raspberry Pi after hearing about the Pi
> Zero.
> 
> I would like to strike while the iron is hot, as it were, and get him a Pi
> he could use.
> 
> He currently is a Windows users and has no programming experience.
> 
> He is a native Hebrew and English speaker, but prefers to read Hebrew.  I
> will be mentoring and need English.
> 
> Is there a Pi user's group or website, etc, in Hebrew?
> 
> Where can I get him a Pi (the latest version of the regular Pi, not the
> Zero), with everything, .e.g case, power supply, HDMI cable, USB hub or
> cable to provide my own, memory card with operating system, and so on.
> Basically, a plug and play system?

Pi board, case: yeah, get from the store.

HDMI Cable, USB Hub: just get from any local shop.

SD: Either order, or buy an SD, download an image and dd / cat / cp it
to the SD yourself (requires an SD "reader", but it is a raher common
equipment).

Power supply: A decent one of a mobile phone will likely do, IIRC, and
those are likewise common.

That said, there may also be other useful hardware addons. 
For instance, a breadboard, some LEDs, switches and resistors (which,
again, you could find in a local electronics shop. Hopefully. I did find
one in the not so central place I reside. Well, except the breadboard).

-- 
Tzafrir Cohen | tzaf...@jabber.org | VIM is
http://tzafrir.org.il || a Mutt's
tzaf...@cohens.org.il ||  best
tzaf...@debian.org|| friend

___
Linux-il mailing list
Linux-il@cs.huji.ac.il
http://mailman.cs.huji.ac.il/mailman/listinfo/linux-il


Re: Which Linux distribution is stable yet up-to-date?

2015-12-01 Thread Tzafrir Cohen
On Mon, Nov 30, 2015 at 10:47:32AM -0500, Steve Litt wrote:
> On Mon, 30 Nov 2015 10:53:09 +0200
> Omer Zak  wrote:
> 
> 
> > For the new system, I'd like to select an host Linux distribution with
> > stable but up-to-date kernel, 

One feature that is unique (AFAIR) to Debian Stable is that it attempts to
maintain a stable interface to kernel modudles (if you care about this),
which means you don't have to rebuild them on most kernel upgrades. I'm not
aware of other distributions that try to guarantee that.

> > Docker and a virtualization system
> > (VirtualBox or other).  For this, Debian Stable (today's Debian
> > Jessie) is not the answer as it gets updated about once each two
> > years.
> 
> Hi Omer,
> 
> Sounds to me like you're looking for a rolling release: Gentoo, Funtoo,
> Arch, Manjaro, Void etc.

In a rolling release you have to upgrade if you want to apply fixes.

[snip. Various rolling releases discussed. Void was one of them]

> From what I hear second hand, Void is the one of these rolling releases
> *least* likely to bork your system on an update.

I guess the problem is that you have to state it this way.

-- 
Tzafrir Cohen | tzaf...@jabber.org | VIM is
http://tzafrir.org.il || a Mutt's
tzaf...@cohens.org.il ||  best
tzaf...@debian.org|| friend

___
Linux-il mailing list
Linux-il@cs.huji.ac.il
http://mailman.cs.huji.ac.il/mailman/listinfo/linux-il



Re: Debian mirror problem

2015-05-21 Thread Tzafrir Cohen
On Thu, May 21, 2015 at 03:47:28PM +0300, Lior Kaplan wrote:
> On Thu, May 21, 2015 at 3:10 PM, Efraim Flashner 
> wrote:
> 
> > On Thu, 21 May 2015 13:30:18 +0300
> > Lior Kaplan  wrote:
> >
> > > mirror.isoc.org.il is updated 4 times a day for Debian...
> > >
> > > (Yes, I'm biased (: )
> >
> > mirror.isoc.org.il doesn't have armhf packages, but debian.co.il does
> 
> 
> Good to know. I think no one asked for these packages.

/me asks.

> 
> (Maybe because others provided them).

I switched to ftp.de.debian.org.

-- 
Tzafrir Cohen | tzaf...@jabber.org | VIM is
http://tzafrir.org.il || a Mutt's
tzaf...@cohens.org.il ||  best
tzaf...@debian.org|| friend

___
Linux-il mailing list
Linux-il@cs.huji.ac.il
http://mailman.cs.huji.ac.il/mailman/listinfo/linux-il


Re: Samba on Raspberry PI

2015-03-11 Thread Tzafrir Cohen
On Tue, Mar 10, 2015 at 10:19:12PM +0200, Shlomo Solomon wrote:
> I just got the new Raspberry PI 2 and plan to use it as a file server
> on my home network.
> 
> Does anyone have a working smb.conf file for the PI? I haven't really
> played with it much, but adapting the smb.conf file from my Mageia box
> gave me only "partial" results. Maybe some parameters are
> implemented differently.
> Windows and Linux machines on the network can see the PI but are being
> asked for a password. The default PI password (which I haven't yet
> changed) doesn't help.

Your question is misphrased. You should have asked: "I have Debian
Stable (Raspbian[*]) installed on a server (Raspberry Pi 2), how do I use
it as a file server?"

[*] My guess based on a different reply of yours.

-- 
Tzafrir Cohen | tzaf...@jabber.org | VIM is
http://tzafrir.org.il || a Mutt's
tzaf...@cohens.org.il ||  best
tzaf...@debian.org|| friend

___
Linux-il mailing list
Linux-il@cs.huji.ac.il
http://mailman.cs.huji.ac.il/mailman/listinfo/linux-il


Re: Hebrew in markup

2015-03-07 Thread Tzafrir Cohen
On Sat, Mar 07, 2015 at 03:16:42PM +0200, Eli Zaretskii wrote:
> > Date: Sat, 7 Mar 2015 13:39:08 +0100
> > From: Tzafrir Cohen 
> > 
> > On Sat, Mar 07, 2015 at 02:21:06PM +0200, Eli Zaretskii wrote:
> > 
> > > > > You also leave the overall direction dynamic and control
> > > > > each paragraph's direction with the first strong directional character
> > > > > of the paragraph, or with LRM/RLM if the first character is not what
> > > > > you need.
> > > > > 
> > > > > For HTML, translate those into the corresponding dir= directives.
> > > > 
> > > > How do I translate a document to HTML from the command line?
> > > 
> > > I don't know; how did you intend to do it originally?
> > 
> > Just use a command line convertor. For instance:
> > 
> > cat Makefile
> > 
> > all test.html
> > %.html: %.md
> > markdown $< >$@
> 
> Well, doesn't that work with what I suggested?  You could have the
> dir= directives in the source file; they will be ignored by Emacs, but
> will be obeyed by HTML browsers.

I guess I'm not clear as to the format of the document. Plain text?
HTML? Palin text with some markup? If the latter: how is it converted to
HTML?

-- 
Tzafrir Cohen | tzaf...@jabber.org | VIM is
http://tzafrir.org.il || a Mutt's
tzaf...@cohens.org.il ||  best
tzaf...@debian.org|| friend

___
Linux-il mailing list
Linux-il@cs.huji.ac.il
http://mailman.cs.huji.ac.il/mailman/listinfo/linux-il


Re: Hebrew in markup

2015-03-07 Thread Tzafrir Cohen
On Sat, Mar 07, 2015 at 02:21:06PM +0200, Eli Zaretskii wrote:

> > > You also leave the overall direction dynamic and control
> > > each paragraph's direction with the first strong directional character
> > > of the paragraph, or with LRM/RLM if the first character is not what
> > > you need.
> > > 
> > > For HTML, translate those into the corresponding dir= directives.
> > 
> > How do I translate a document to HTML from the command line?
> 
> I don't know; how did you intend to do it originally?

Just use a command line convertor. For instance:

cat Makefile

all test.html
%.html: %.md
markdown $< >$@


-- 
Tzafrir Cohen | tzaf...@jabber.org | VIM is
http://tzafrir.org.il || a Mutt's
tzaf...@cohens.org.il ||  best
tzaf...@debian.org|| friend

___
Linux-il mailing list
Linux-il@cs.huji.ac.il
http://mailman.cs.huji.ac.il/mailman/listinfo/linux-il


Re: Hebrew in markup

2015-03-07 Thread Tzafrir Cohen
Thanks for your answer,

On Sat, Mar 07, 2015 at 11:14:39AM +0200, Eli Zaretskii wrote:
> > Date: Sat, 7 Mar 2015 02:42:48 +0100
> > From: Tzafrir Cohen 
> > 
> > I'd like to write a Heberw document, get a nice result HTML and still be
> > able to save the source in proper version control.
> > 
> > I could use raw HTML, but there are better options nowadays - asciidoc,
> > markdown (various implementations), reSt, and such.
> > 
> > But I could not figure a simple way with any of those to get decent
> > control of bidi. Or specifically:
> > 
> > * Make the whole document RTL
> > * Make various paragraphs LTR
> > 
> > I guess I need to override some styles. With asciidoc I could not find a
> > simple way to do that and ended up having to create my own separate
> > "bidi" style. I didn't yet check all the various reSt and markdown
> > implementations. Any better alternatives?
> 
> Emacs, of course.
> 
> You can make the whole document RTL by setting a buffer-local
> variable.  

How do I make this variable part of the document?

> You also leave the overall direction dynamic and control
> each paragraph's direction with the first strong directional character
> of the paragraph, or with LRM/RLM if the first character is not what
> you need.
> 
> For HTML, translate those into the corresponding dir= directives.

How do I translate a document to HTML from the command line?

BTW: something I read a while ago on Planet GNOME:

http://thedocsbook.org/blog/2015-02-23-reflecting-on-feedback/

"In terms of modifying the appearance of our help, their technical
writers found it difficult to modify the CSS that we use. Cosimo noted
that the CSS for our help is not stored in a single file, nor even a
single directory - it's partly embedded in Yelp's XSLT.

While not always ideal, there are reasons for this. For example, if a
person's visual impairment requires that they use GNOME's High Contrast
GTK theme, Yelp will pick up the theme change and will use a
corresponding color scheme when it renders the help for that user.
Similarly, if a user sets their default system language to a
Right-to-Left-based language (such as Arabic), Yelp will also pick up
that change, and will display the help in the appropriate Right-to-Left
manner automatically."

-- 
Tzafrir Cohen | tzaf...@jabber.org | VIM is
http://tzafrir.org.il || a Mutt's
tzaf...@cohens.org.il ||  best
tzaf...@debian.org|| friend

___
Linux-il mailing list
Linux-il@cs.huji.ac.il
http://mailman.cs.huji.ac.il/mailman/listinfo/linux-il


Hebrew in markup

2015-03-06 Thread Tzafrir Cohen
Hi

I'd like to write a Heberw document, get a nice result HTML and still be
able to save the source in proper version control.

I could use raw HTML, but there are better options nowadays - asciidoc,
markdown (various implementations), reSt, and such.

But I could not figure a simple way with any of those to get decent
control of bidi. Or specifically:

* Make the whole document RTL
* Make various paragraphs LTR

I guess I need to override some styles. With asciidoc I could not find a
simple way to do that and ended up having to create my own separate
"bidi" style. I didn't yet check all the various reSt and markdown
implementations. Any better alternatives?

-- 
Tzafrir Cohen | tzaf...@jabber.org | VIM is
http://tzafrir.org.il || a Mutt's
tzaf...@cohens.org.il ||  best
tzaf...@debian.org|| friend

___
Linux-il mailing list
Linux-il@cs.huji.ac.il
http://mailman.cs.huji.ac.il/mailman/listinfo/linux-il


Re: Announce: Hspell 1.3

2015-02-26 Thread Tzafrir Cohen
On Thu, Feb 26, 2015 at 08:32:08AM +0200, Nadav Har'El wrote:
> On Wed, Feb 25, 2015, Tzafrir Cohen wrote about "Re: Announce: Hspell 1.3":
> > latest version of SI1452:
> > https://www.mediawiki.org/wiki/Help:Extension:UniversalLanguageSelector/Input_methods/he-standard-2012-extonly/he
> > 
> > For this you should use something along the lines of:
> > 
> > setxkbmap -option '' -option \
> > "grp:shift_toggle,grp:switch,lv3:ralt_switch"
> > \
> > us,il
> > 
> > Like the above, but the right alt is used to switch (temporarily) to
> > third shift level, where most Nikkud signs are.
> 
> Do you know why decided to go with that "third level", with that alt,
> instead of just using the shift as in the lyx mapping?

To maintain compatibility with the existing standard (the part that
people actually use). Too many people actually use shift-Hebrew as
capital English. It's broken, but breaking it would upset too many
people.

I suppose you weren't in AP11, so maybe watch this:
https://www.youtube.com/watch?v=nTtBmNxSohM

-- 
Tzafrir Cohen | tzaf...@jabber.org | VIM is
http://tzafrir.org.il || a Mutt's
tzaf...@cohens.org.il ||  best
tzaf...@debian.org|| friend

___
Linux-il mailing list
Linux-il@cs.huji.ac.il
http://mailman.cs.huji.ac.il/mailman/listinfo/linux-il


Re: Announce: Hspell 1.3

2015-02-25 Thread Tzafrir Cohen
On Wed, Feb 25, 2015 at 05:42:43PM +0200, Nadav Har'El wrote:
> On Wed, Feb 25, 2015, E.S. Rosenberg wrote about "Re: Announce: Hspell 1.3":
> > Thanks for your great work!
> > 
> > While we're on the topic of writing Hebrew on OSS (and even non-oss),
> > I have always wondered how people type with niqqud and never succeeded
> > in finding a nice guide (for linux/libreoffice)...
> 
> First, you need to make sure you use a font which has niqqud. Many of
> the excellent Culmus fonts do support niqqud, so hopefully you're
> using one that supports niqqud (if not, switch).
> 
> Second, you need a keyboard mapping which allows you to type niqqud.
> The single-handedly best for that is the so-called "he-lyx" mapping.
> How to enable it depends on your "desktop environment", but in my own
> no-frills environment I actually set the keyboard mapping directly
> with the command:
> 
> setxkbmap -option grp:switch,grp:shift_toggle,grp_led:scroll us,il ,lyx

setxkbmap's -option needs resetting. If you follow this, try:

  setxkbmap -option '' -option grp:switch,grp:shift_toggle,grp_led:scroll us,il 
,lyx

Note that in the latest versions, the keyboard mapping includes the
latest version of SI1452:
https://www.mediawiki.org/wiki/Help:Extension:UniversalLanguageSelector/Input_methods/he-standard-2012-extonly/he

For this you should use something along the lines of:

setxkbmap -option '' -option \
"grp:shift_toggle,grp:switch,lv3:ralt_switch"
\
    us,il

Like the above, but the right alt is used to switch (temporarily) to
third shift level, where most Nikkud signs are.

-- 
Tzafrir Cohen | tzaf...@jabber.org | VIM is
http://tzafrir.org.il || a Mutt's
tzaf...@cohens.org.il ||  best
tzaf...@debian.org|| friend

___
Linux-il mailing list
Linux-il@cs.huji.ac.il
http://mailman.cs.huji.ac.il/mailman/listinfo/linux-il


Re: Epoch Init System Howto

2014-12-30 Thread Tzafrir Cohen
On Tue, Dec 30, 2014 at 03:34:16PM -0500, Steve Litt wrote:
> On Tue, 30 Dec 2014 15:20:42 -0500
> Steve Litt  wrote:
> 
> > Hi all,
> > 
> > Here's a new Epoch Init System howto, with which any reasonably
> > knowledgeable Linux user can replace his or her current init system
> > with Epoch:
>
> http://www.troubleshooters.com/linux/init/manjaro_experiments.htm#pure_epoch_init_system

A few points to consider:

* It doesn't start tasks in parallel. Sure it's lean. But does it boot a
  normal system fast enough?

* It doesn't have proper service dependencies. You have to manage all of
  them on your own.

* Systemd uses dbus to avoid creating its own IPC. Epoch chose to create
  its wn IPC.

* For Debian an init system considered must be able to replace legacy
  init files. Or rather: allow partial conversion: you can't afford
  rewriting all service descriptions yourself.

* On a system with package management, each package should provide its
  own service definition. Ideally the init system could parse them from
  a directory. If not, you probably need a program to pre-process them
  to a single configuration file (but then this is a generated
  configuration file - see grub2's configuration).

* The word "Object" seems odd. It seems like it could have been chopped
  off configuration directives with better planning (consider also
  ssh_config).

* ">!>" starts a multi-line comment and ">>-s left from unsuccessful merges. I
  intuitively consider them error characters.


In short: a toy init system. At least for now. It's good enough for your
own home system if you spend the time configuring it, or for a custom
embedded system. It's not going to replace other systems soon.

-- 
Tzafrir Cohen | tzaf...@jabber.org | VIM is
http://tzafrir.org.il || a Mutt's
tzaf...@cohens.org.il ||  best
tzaf...@debian.org|| friend

___
Linux-il mailing list
Linux-il@cs.huji.ac.il
http://mailman.cs.huji.ac.il/mailman/listinfo/linux-il


Re: OT: languages in Google Maps

2014-08-11 Thread Tzafrir Cohen
On Mon, Aug 11, 2014 at 04:33:12PM +0300, Mord Behar wrote:
> I'm trying to embed a Google Map on a website, and since most of the target
> audience is non-English readers, I want the map to be in Hebrew.
> So I set my Google settings to be Hebrew, and got an embed code from
> Google. Now Google pointed out to me that each visitor will view a map
> appropriate for them (I think it refers to Places only). But when I tried
> to view it on the website, the map is in English. I then noticed that even
> though my map is in Hebrew, the little floating window I get to get an
> embed code shows the map in English.
> Does Google not support Hebrew for embedded maps? Or is there some way to
> force it?

Have you considered OpenStreetMaps?

By default the language is similar to Google's (the country's language
is preffered), but that policy is easy to change:
https://toolserver.org/~osm/locale/he.html

If there's a specific area that s still not properly translated, let me
know and I'll try to help translating it. I try to keep to Hebrew
Wikipedia translations of names as they are normally sane and
consistent.

-- 
Tzafrir Cohen | tzaf...@jabber.org | VIM is
http://tzafrir.org.il || a Mutt's
tzaf...@cohens.org.il ||  best
tzaf...@debian.org|| friend

___
Linux-il mailing list
Linux-il@cs.huji.ac.il
http://mailman.cs.huji.ac.il/mailman/listinfo/linux-il


Re: Which company or individual can sponsor me on a summer trip to Europe?

2014-07-07 Thread Tzafrir Cohen
On Mon, Jul 07, 2014 at 10:51:35AM +0300, geoffrey mendelson wrote:
> On 7/6/2014 10:50 PM, Shlomi Fish wrote:
> >Anyway, the GPLv3 or whatever licence the GNU sub-projects have
> >does not prevent me from using GNU software, so that's it.
> The interesting point is that outside of a relatively small group of
> developers project GNU has no bearing on anything. Free (as in beer)
> software existed long before RMS, open source software, including
> operating systems, existed long before Linux, or even BSD. And it
> continues to exist long after.
> 
> I doubt that anyone one this list, or any other list for that
> matter, runs 100% GPL licensed software on their computers. They may
> be running only free and open source software, but I am sure some of
> it has a BSD type, or other license.

The GNU system was intended to include X11 and TeX, so I doubt it if
that was actually a goal.

> 
> So to answer the question someone posed, would we be running the
> same thing as we are now if RMS never existed? Probably not.
> Something very close, YES. Would LINUX have existed? Maybe. Maybe
> Linus would have spent his time improving the free. open source, BSD
> instead. We actually may have been doing better because a lot of
> time and effort was spent in the 1990's producing GPL'ed version of
> BSD utilites that could have been spent elsewhere.

There wasn't that much good BSD code out there when the GNU project
started. BSD started provided a complete system at the beginning of the
1990-s. And shortly thereafter it got into a trial with AT&T. Also
shortly after development was halted and much of it moved to proprietary
forks. By then the basic system for Linux to use (sans kernel) was GNU.

-- 
Tzafrir Cohen | tzaf...@jabber.org | VIM is
http://tzafrir.org.il || a Mutt's
tzaf...@cohens.org.il ||  best
tzaf...@debian.org|| friend

___
Linux-il mailing list
Linux-il@cs.huji.ac.il
http://mailman.cs.huji.ac.il/mailman/listinfo/linux-il


Re: qemu and chroot

2014-05-20 Thread Tzafrir Cohen
On Tue, May 20, 2014 at 09:14:16AM +0300, Erez D wrote:
> I am using centos 6 and  developing for an armel platform
> 
> i created a rootfs using multistrap/debbootstrap
> 
> i copied qemu-arm-static to rootfs/usr/bin/qemu-arm-static

There's something missing from your description. I suspect you forgot to
mention it: debootstrap's run can be broken to two parts: one that
downloads everything, and the second stage that needs to run inside the
chroot. In that case:

  debootstrap --foreign [--arch=] [rest of parameters]
  chroot to/chroot
  ./debootstrap --second-stage

At least in Debian, the package qemu-user-static includes the wrapper
qemu-debootstrap to do just that, and also copy the required
qemu-user-static.

> 
> and i was astonished that doing just 'chroot rootfs' worked, without
> explicitly telling 'chroot' to use qemu-arm-static - somehow it decided
> automatically to run everything under qemu-arm-static without me telling it
> to.
> 
> 
> after a restart of the server. rootfs does not work anymore automatically,
> i get a "chroot: failed to run command `/bin/bash': Exec format error"
> doing "chroot rootfs /usr/bin/qemu-arm-static /bin/bash" does chroot, but
> i get : "bash: /bin/cat: cannot execute binary file" (although
> rootfs/bin/cat is a perfectly ok armel binary, tested on the armel target).
> i also checked the md5sum of the rootfs/qemu-arm-static binary, and it is ok

A chroot does not replace the kernel. It's running on your kernel and
that kernel does not natively support the armel binaries.

In Debian, the package qemu-user-static registers foreign Linux ELF
formats. So maybe you forgot this is needed. Specifically:

$ cat /proc/sys/fs/binfmt_misc/qemu-arm
enabled
interpreter /usr/bin/qemu-arm-static
flags: 
offset 0
magic 7f454c460101010002002800
mask ff00feff

-- 
Tzafrir Cohen | tzaf...@jabber.org | VIM is
http://tzafrir.org.il || a Mutt's
tzaf...@cohens.org.il ||  best
tzaf...@debian.org|| friend

___
Linux-il mailing list
Linux-il@cs.huji.ac.il
http://mailman.cs.huji.ac.il/mailman/listinfo/linux-il


Re: CPU Overheating Problem When Running 4 CPU Intensive Threads with Latest Untained Kernel

2014-05-19 Thread Tzafrir Cohen
On Mon, May 19, 2014 at 12:55:23PM +0300, Shlomi Fish wrote:
> Hi Efraim,
> 
> On Mon, 19 May 2014 10:19:23 +0300
> Efraim Flashner  wrote:
> 
> > Also, nice -19 is higher priority than nice 19.
> > 
> 
> No, it's not. When you run the "nice -19" it sets it to the lowest possible
> priority. I see these processes in htop where the nice is set at 19 and I
> cannot lower it at all.

If nice is not enough for your process, ask it to be verynice:
http://kassiopeia.juls.savba.sk/~garabik/software/verynice/

"verynice is a nice(1)-like utility to throttle long running processes
beyond what can be achieved by nice(1), by repeatedly suspending and
resuming the process."

-- 
Tzafrir Cohen | tzaf...@jabber.org | VIM is
http://tzafrir.org.il || a Mutt's
tzaf...@cohens.org.il ||  best
tzaf...@debian.org|| friend

___
Linux-il mailing list
Linux-il@cs.huji.ac.il
http://mailman.cs.huji.ac.il/mailman/listinfo/linux-il


Re: NTP

2014-05-01 Thread Tzafrir Cohen
On Thu, May 01, 2014 at 09:45:45PM +0300, Geoff Shang wrote:

> 2.  Has anyone found a server that works?

Have you tried il.pool.ntp.org ?

-- 
Tzafrir Cohen | tzaf...@jabber.org | VIM is
http://tzafrir.org.il || a Mutt's
tzaf...@cohens.org.il ||  best
tzaf...@debian.org|| friend

___
Linux-il mailing list
Linux-il@cs.huji.ac.il
http://mailman.cs.huji.ac.il/mailman/listinfo/linux-il


Re: svn on debian chroot android

2014-02-13 Thread Tzafrir Cohen
On Thu, Feb 13, 2014 at 11:09:37AM +0200, Erez D wrote:
> Hello
> 
> i am trying to use svn on my chrooted android (chrooted with app called
> "lil's debian")
> 
> it seems i can not get network connection using a regular user. any svn or
> wget command is returned with permission denied.
> however as root it works
> 
> but doing 'sudo svn ...' generates files with root ownership. which means i
> need to 'chown -R' after every update.
> 
> so:
> 1. is there a way to get internet access for a regular user ?
> 2. is there a way to tell svn to create files with regular user ownership
> but run as root

Your kernel is paranoid:

It has CONFIG_ANDROID_PARANOID_NETWORK set. To get network access, add
your user to group 3003 (inet).

See http://elinux.org/Android_Security#Paranoid_network-ing


-- 
Tzafrir Cohen | tzaf...@jabber.org | VIM is
http://tzafrir.org.il || a Mutt's
tzaf...@cohens.org.il ||  best
tzaf...@debian.org|| friend

___
Linux-il mailing list
Linux-il@cs.huji.ac.il
http://mailman.cs.huji.ac.il/mailman/listinfo/linux-il


Re: Any experience with cubox-i?

2014-01-13 Thread Tzafrir Cohen
On Mon, Jan 13, 2014 at 02:00:50PM +0200, geoffrey mendelson wrote:
> On 1/13/2014 1:45 PM, Amos Shapira wrote:
> >
> >So what's the advantage of this "Chinese Tablet"? It's limited to
> >old Android (I found them on eBay too now, they all list Android
> >4.2 or 4.0), can it run a Bittorent client properly? No HDMI cable
> >etc. So why?
> >
> >
> 
> It's not really a tablet, it has no screen. The screen is your
> monitor/TV connected via an HDMI port (obviously you looked at a
> different device than I did). It identifies as a tablet, so that's
> why I called it that.
> 
> A link would help:
> http://www.ebay.com/itm/Android-4-2-SATA-HDD-Media-Player-HD-TV-Quad-Core-Bluetooth-DLNA-WiFi-Streamer-5-/151207460031?pt=US_Internet_Media_Streamers&hash=item2334aabcbf

It has SATA support. As it happens I believe that this happens to be a
good sign: IIRC of the cheapo chipsets, only 2 have them, and both have
a pretty good community support.

This specific device is based on Allwinner A31. Unlike previous
Allwinner chips which use the Mali GPU, this one uses PowerVR. If you
hope to have free drivers for the GPU, this may not be the best for you.

See also below regarding community support. The more proprietary
drivers, the more difficult it is to have community support.

Here is a similar item from the store of someone who is one of the
developers involved:
http://store.r0ck.me/products/mele-m5-tv-box
(sold out, right now)

That model comes with a dual Cortex A7, that is: a less powerful CPU
(but it also means: requires much less power)

> 
> The main reasons is that it cost $100 (US) for the unit, and it
> includes a quad core ARM chip. This will give you enough CPU power
> to run BitTorrent, watch TV shows, etc and not run up the electrical
> bill that a real computer would. If you download to a USB memory
> stick instead of a disk drive, it will be silent.

I'm not really sure how much the CPU is really needed there (also: CPU
as opposed to GPU).

> 
> As for Android being old, the current divide is Android 4 (any
> version). Older versions than 4 won't run modern Apps.

I have no idea about newer versions, but from an initial glance over the
wiki, there's at least some work done to get newer versions working. I
guess they will be reasonably well community supported.

http://linux-sunxi.org/Category:Android

-- 
Tzafrir Cohen | tzaf...@jabber.org | VIM is
http://tzafrir.org.il || a Mutt's
tzaf...@cohens.org.il ||  best
tzaf...@debian.org|| friend

___
Linux-il mailing list
Linux-il@cs.huji.ac.il
http://mailman.cs.huji.ac.il/mailman/listinfo/linux-il


Re: Any experience with cubox-i?

2014-01-13 Thread Tzafrir Cohen
On Mon, Jan 13, 2014 at 10:38:13PM +1100, Amos Shapira wrote:

> How did you get the hardware around the rPi?

And software: you need to pay extra for a codec license.

-- 
Tzafrir Cohen | tzaf...@jabber.org | VIM is
http://tzafrir.org.il || a Mutt's
tzaf...@cohens.org.il ||  best
tzaf...@debian.org|| friend

___
Linux-il mailing list
Linux-il@cs.huji.ac.il
http://mailman.cs.huji.ac.il/mailman/listinfo/linux-il


Re: Why does it take the debian-7.3.0-i386-lxde-CD-1.iso installer so long to install inside a VirtualBox VM?

2014-01-06 Thread Tzafrir Cohen
On Mon, Jan 06, 2014 at 10:26:45PM +0200, Shlomi Fish wrote:

> P.S: another thing that annoys me about Debian is the fact that apt-get -y
> dist-upgrade still sometimes halts the installation process to ask me
> questions and prompts. This is a big misfeature and I wonder if there's a
> way to make apt-get completely non-interactive.

Could you please be more specific? What specific package[s]?

-- 
Tzafrir Cohen | tzaf...@jabber.org | VIM is
http://tzafrir.org.il || a Mutt's
tzaf...@cohens.org.il ||  best
tzaf...@debian.org|| friend

___
Linux-il mailing list
Linux-il@cs.huji.ac.il
http://mailman.cs.huji.ac.il/mailman/listinfo/linux-il


Re: Chinese KitKat

2014-01-06 Thread Tzafrir Cohen
On Mon, Jan 06, 2014 at 11:14:58AM +0200, E.S. Rosenberg wrote:

> Depends on the OS and it's support but yes... (my n900 still has great
> support and if it wasn't falling apart as a result of severe abuse
> would still be using it, but that's also a much more open system,
> we'll see what happens with the Jolla now)

The N900 is not really supported by its vendor. But there's a great
community around it which has kept it supported. And if you've been
living under a rock: see also http://neo900.org/ .

Get a phone you can trust.

-- 
Tzafrir Cohen | tzaf...@jabber.org | VIM is
http://tzafrir.org.il || a Mutt's
tzaf...@cohens.org.il ||  best
tzaf...@debian.org|| friend

___
Linux-il mailing list
Linux-il@cs.huji.ac.il
http://mailman.cs.huji.ac.il/mailman/listinfo/linux-il


Re: Chinese KitKat

2014-01-05 Thread Tzafrir Cohen
On Sun, Jan 05, 2014 at 11:33:07AM +0200, Rabin Yasharzadehe wrote:
> After trying to fix several cheep/Chinese tablets/phones for my family and
> friends, i took an oath to never buy a cheap Tablet/Phone ever - just
> because there is no support.
> 
> What I can tell you from my experience with this kind of devices, is that
> you can't trust the name - use an application like Elixer to find all the
> information you can on the device hardware
> most of the time, the CPU will be a MediaTek cpu (a cheep one not the 8
> core the made it to the news),

MediaTek is not the only one of those. /proc/cpuinfo can give some
initial hints.

> (most of this Chinese devices are created the same way, and rebranded for
> who ever pay/distribute them)
> 
> Then you need to Google and find a forum (not XDA) which talk about this
> device, and if you lucky some one else compiled a vanilla Android for it.
> from my experience i never was so lucky, because there are some drivers
> compatibles issues, and some times you need a custom kernel to boot a newer
> version of android on this devices.

I wonder if propr Linux support is easier to find. At least for some of
those. Some of them (AllInWonder, though not MediaTek) have been hitting
mainline recently.

> 
> As for USB OTG and other devices, you probably will need to compile the
> modules (or find them online) and push then to the device manually, and
> then use the terminal to modprobe them.

-- 
Tzafrir Cohen | tzaf...@jabber.org | VIM is
http://tzafrir.org.il || a Mutt's
tzaf...@cohens.org.il ||  best
tzaf...@debian.org|| friend

___
Linux-il mailing list
Linux-il@cs.huji.ac.il
http://mailman.cs.huji.ac.il/mailman/listinfo/linux-il


Re: Is there a reason to use `top` over `perf top`?

2013-11-10 Thread Tzafrir Cohen
A. Apples are better than oranges.

B. perf top cannot be run by a non-root user.


-- 
Tzafrir Cohen | tzaf...@jabber.org | VIM is
http://tzafrir.org.il || a Mutt's
tzaf...@cohens.org.il ||  best
tzaf...@debian.org|| friend

___
Linux-il mailing list
Linux-il@cs.huji.ac.il
http://mailman.cs.huji.ac.il/mailman/listinfo/linux-il


Re: Distro that does not require PAE

2013-10-13 Thread Tzafrir Cohen
On Sun, Oct 13, 2013 at 03:43:15PM +0300, geoffrey mendelson wrote:
> Are there any CURRENT Linux distros that do not require PAE? Ubuntu
> started requiring it about 1 year ago, so now all Ubuntu and it's
> children will not work on older computers without it.
> 
> PAE was left of most of the mobile pentium chips including a few
> dual core ones. So this means that what are IMHO perfectly good
> Linux laptops are out of luck.

Debian has two i386 kernels: "486" and "686-pae". Use the former.

-- 
Tzafrir Cohen | tzaf...@jabber.org | VIM is
http://tzafrir.org.il || a Mutt's
tzaf...@cohens.org.il ||  best
tzaf...@debian.org|| friend

___
Linux-il mailing list
Linux-il@cs.huji.ac.il
http://mailman.cs.huji.ac.il/mailman/listinfo/linux-il


Re: 3G Modem with SMS support

2013-10-08 Thread Tzafrir Cohen
On Tue, Oct 08, 2013 at 12:06:56PM +0200, Rabin Yasharzadehe wrote:
> I am interested in buying a 3G modem to connect to some for our servers, in
> order to get alerts by SMS, the idea is not to depend on the infrastructure
> of the DC.
> 
> I am looking for a modem supported under Linux (RH6), If someone has
> already made his survey on this matter, or have proven experience on the
> subject, I'd love to hear it.

ModemManager provides a (low-level) interface to sending and recieving
SMS messages. It should work on most standard modems. I have no idea
about alternatives.

> 
> A nice feature but not required, is to be able to restart/initialize the
> modem remotely if it get stuck.

We had this issue with one system of ours. It turned out that nothing
would do. Even when the box was off, it still provided power to USB and
the modem was powered on. Fun.

-- 
Tzafrir Cohen | tzaf...@jabber.org | VIM is
http://tzafrir.org.il || a Mutt's
tzaf...@cohens.org.il ||  best
tzaf...@debian.org|| friend

___
Linux-il mailing list
Linux-il@cs.huji.ac.il
http://mailman.cs.huji.ac.il/mailman/listinfo/linux-il


Re: Winter clock issues in linux

2013-09-08 Thread Tzafrir Cohen
On Sun, Sep 08, 2013 at 11:56:00AM +0300, geoffrey mendelson wrote:

> Can anyone point me to a correct Asia/Jerusalem file without having
> to install a package? I have two old systems I want to fix, without
> any other mods?

Donload the deb and extract (ar+tar or with your file manager)
usr/share/zoneinfo/Asia/Jerusalem .

-- 
Tzafrir Cohen | tzaf...@jabber.org | VIM is
http://tzafrir.org.il || a Mutt's
tzaf...@cohens.org.il ||  best
tzaf...@debian.org|| friend

___
Linux-il mailing list
Linux-il@cs.huji.ac.il
http://mailman.cs.huji.ac.il/mailman/listinfo/linux-il


Re: Retooling my mail server

2013-07-18 Thread Tzafrir Cohen
On Fri, Jul 19, 2013 at 12:34:48AM +0300, Yedidyah Bar David wrote:
> 2013/7/18 Ira Abramov :
> > Howdie,
> >
> > I've been delaying this for years, but for the last 15 of them I've been
> > working with qmail and ezmlm and they are getting dated. no DKIM, no
> > smtp auth, lots of modern features and community missing. Then the other
> > day someone tweeted me this:
> > http://sealedabstract.com/code/nsa-proof-your-e-mail-in-2-hours/ and I
> 
> Seems nice.
> Not sure it really matters (as you can find them on google), but I'll
> mention two others I looked at (but did not try):
> 
> http://workaround.org/ispmail/squeeze
> Similar in attitude
> 
> http://www.iredmail.org/
> A script that you run and it does everything (?) for you

If you go this route, here's another one:

A talk from FOSDEM this year:
https://archive.fosdem.org/2013/schedule/event/younohost/

and the code:
http://yunohost.org/

-- 
Tzafrir Cohen | tzaf...@jabber.org | VIM is
http://tzafrir.org.il || a Mutt's
tzaf...@cohens.org.il ||  best
tzaf...@debian.org|| friend

___
Linux-il mailing list
Linux-il@cs.huji.ac.il
http://mailman.cs.huji.ac.il/mailman/listinfo/linux-il


Re: Blu-Ray and Linux

2013-07-03 Thread Tzafrir Cohen
On Wed, Jul 03, 2013 at 04:06:40PM +0300, E.S. Rosenberg wrote:

> I *don't* know if this is the case in Israel, I do know that jewish
> law does *not* recognize copyright and downloading is *not* considered
> theft, it is however definitely a moral question, which has lots of
> factors that go into it.
> Jewish law does frown strongly on plagiarism (statements like "he who
> doesn't attribute destroys the world", iirc avot but I may be off by a
> lot)

I don't buy this specific argument: the Jewish law does not allow
reading other people's letters and such without their permission. Do you
really think this has ever stopped any wiretapping?

Also note that this is not plagiarism: Nadav did not attempt to strip
any credit titles from the programs. Nadav's actions would enhance the
reputation of those prgrams by making them more accessible.

(Regardless of any other considerations)

More on attribution:
http://blog.ninapaley.com/2011/06/27/credit-is-due/

-- 
Tzafrir Cohen | tzaf...@jabber.org | VIM is
http://tzafrir.org.il || a Mutt's
tzaf...@cohens.org.il ||  best
tzaf...@debian.org|| friend

___
Linux-il mailing list
Linux-il@cs.huji.ac.il
http://mailman.cs.huji.ac.il/mailman/listinfo/linux-il


Re: vimdiff q

2013-07-01 Thread Tzafrir Cohen
On Mon, Jul 01, 2013 at 11:49:29AM +0300, Gilboa Davara wrote:
> On Mon, Jul 1, 2013 at 10:59 AM, Erez D  wrote:
> > hello
> >
> > i am writing code using vim. a college writes in eclipse.
> > whenever the eclipse open my files, it changes the amount of spaces inside
> > it, and also may split lines.
> >
> > i'm using vimdiff, and get  a lot of cahnges. even the iwhite option doesn't
> > help as it does not ignore a single space, and no line changes.
> >
> > i looked a little bit and couldn't find a solution
> >
> > beyond compare handles it, but i preffer vi
> >
> > any idea ?
> >
> 
> I do use vimdiff from time to time, but as a comparison tool, it is
> somewhat feature incomplete.
> I would suggest you give meld [1] a try.
> 
> IMHO its the best merging tool currently available (including built in
> support for SVN/GIT/BZR/CVS/etc) - in many ways much better than many
> proprietary solutions.
> In your case, meld can be configured (via regex) to ignore white
> spaces or any other complex expression.

Likewise vimdiff. Or specifically: the parameteers to pass to diff,
which may include -w .

But I agree that agreeing on a common standard is the best. Both vim and
eclipse should be configurable.

-- 
Tzafrir Cohen | tzaf...@jabber.org | VIM is
http://tzafrir.org.il || a Mutt's
tzaf...@cohens.org.il ||  best
tzaf...@debian.org|| friend

___
Linux-il mailing list
Linux-il@cs.huji.ac.il
http://mailman.cs.huji.ac.il/mailman/listinfo/linux-il


Re: help with conserver

2013-05-19 Thread Tzafrir Cohen
On Mon, May 20, 2013 at 01:27:35AM -0400, Ido Admon wrote:

> oh just doing everything in the most convoluted way possible :) the
> idea was to have a shell session that's always on, so to speak, but i
> guess nohup can help with that somewhat. you're right, of course, in
> saying that being dependent on the network makes the whole idea
> pointless. thanks for clarifying things for me!

'screen /dev/ttyS0 115200' on the remote side? (ttyS0? ttyUSB0?
serial/by-id/whatever?)

RTFM screen to make it detach on startup, add logging and whatever.

-- 
Tzafrir Cohen | tzaf...@jabber.org | VIM is
http://tzafrir.org.il || a Mutt's
tzaf...@cohens.org.il ||  best
tzaf...@debian.org|| friend

___
Linux-il mailing list
Linux-il@cs.huji.ac.il
http://mailman.cs.huji.ac.il/mailman/listinfo/linux-il


Re: filesystem capable of deduping tar.gz's content

2013-05-09 Thread Tzafrir Cohen
On Thu, May 09, 2013 at 09:27:28AM +0300, Elazar Leibovich wrote:
> On Wed, May 8, 2013 at 11:11 PM, Tzafrir Cohen wrote:
> 
> >
> > Git stores files. It should do handle such deduping by design. But this
> > is in Git's storage, and not in the actual filesystem:
> >
> 
> git packs them in a pack file.
> 
> Use git gc to make it aware of changes, or just look at my reply to Oleg.

(It's really a side-issue, as it won't help you, but, xkcd.com/385.
Warning: another long post)

No. That's pure file-level de-duplication.

Following my previous run:

tzafrir@pungenday:/tmp/git-test(master)$ du -s .git .
1188.git
2052.
tzafrir@pungenday:/tmp/git-test(master)$ git ls-tree HEAD
100644 blob e5ad63a5eb4a806ae572e977742cdce9e9f74cfarand
100644 blob e5ad63a5eb4a806ae572e977742cdce9e9f74cfarand1

now let's see how it handles gzipped files. Note that you need to add
~2M to the size of '.' in the following, as 'rand' and 'rand1' are
missing from it.

When we use gzip with -n: we get exactly the same file:

tzafrir@pungenday:/tmp/git-test(master)$ gzip -n rand
tzafrir@pungenday:/tmp/git-test(master)$ gzip -n rand1
tzafrir@pungenday:/tmp/git-test(master)$ git add rand*.gz
tzafrir@pungenday:/tmp/git-test(master)$ git commit -m gzipped
[master 443ded4] gzipped
 2 files changed, 0 insertions(+), 0 deletions(-)
 create mode 100644 rand.gz
 create mode 100644 rand1.gz
tzafrir@pungenday:/tmp/git-test(master)$ du -s .git .
2236.git
2060.
tzafrir@pungenday:/tmp/git-test(master)$ git ls-tree HEAD
100644 blob e5ad63a5eb4a806ae572e977742cdce9e9f74cfarand
100644 blob a25f7e04d2c142d0f25d88850d75999c7cfa8391rand.gz
100644 blob e5ad63a5eb4a806ae572e977742cdce9e9f74cfarand1
100644 blob a25f7e04d2c142d0f25d88850d75999c7cfa8391rand1.gz

If not, we get different files: 

tzafrir@pungenday:/tmp/git-test(master)$ git show HEAD:rand > rand2
tzafrir@pungenday:/tmp/git-test(master)$ git show HEAD:rand > rand3
tzafrir@pungenday:/tmp/git-test(master)$ gzip rand2
tzafrir@pungenday:/tmp/git-test(master)$ gzip rand3
tzafrir@pungenday:/tmp/git-test(master)$ md5sum rand2.gz rand3.gz 
603d95587520d3ca203329eaeea8ac6c  rand2.gz
572f7178846083f82bb56da1e996d9a1  rand3.gz
tzafrir@pungenday:/tmp/git-test(master)$ git add rand[23].gz
tzafrir@pungenday:/tmp/git-test(master)$ git commit -m "gzipped without
-n"
tzafrir@pungenday:/tmp/git-test(master)$ du -s .git .
4316.git
4116.
tzafrir@pungenday:/tmp/git-test(master)$ git ls-tree HEAD
100644 blob e5ad63a5eb4a806ae572e977742cdce9e9f74cfarand
100644 blob a25f7e04d2c142d0f25d88850d75999c7cfa8391rand.gz
100644 blob e5ad63a5eb4a806ae572e977742cdce9e9f74cfarand1
100644 blob a25f7e04d2c142d0f25d88850d75999c7cfa8391rand1.gz
100644 blob 4e2e7106fad7c2d38dfed8b0221686ac561709acrand2.gz
100644 blob f2f9615fb255d7e75d74e65a675ca850a3c67a34rand3.gz

rand.gz and rand1.gz have the same content (or rather: sha1 checksum of
the content) and thus are considered to be the same. When you don't use
'-n', you can get a slightly different result of the compression
(rather: a header. The rest of the file is the same).

That's before any packing. When git packs it, it can compress the three
gzip-compressions of rand to almost the size of a single one:

tzafrir@pungenday:/tmp/git-test(master)$ git gc
Counting objects: 12, done.
Delta compression using up to 2 threads.
Compressing objects: 100% (11/11), done.
Writing objects: 100% (12/12), done.
Total 12 (delta 4), reused 0 (delta 0)
tzafrir@pungenday:/tmp/git-test(master)$ du -s .git .
1164.git
4116.
tzafrir@pungenday:/tmp/git-test(master)$ git ls-tree HEAD
100644 blob e5ad63a5eb4a806ae572e977742cdce9e9f74cfarand
100644 blob a25f7e04d2c142d0f25d88850d75999c7cfa8391rand.gz
100644 blob e5ad63a5eb4a806ae572e977742cdce9e9f74cfarand1
100644 blob a25f7e04d2c142d0f25d88850d75999c7cfa8391rand1.gz
100644 blob 4e2e7106fad7c2d38dfed8b0221686ac561709acrand2.gz
100644 blob f2f9615fb255d7e75d74e65a675ca850a3c67a34rand3.gz

And indeed:

tzafrir@pungenday:/tmp/git-test(master)$ cat rand.gz rand2.gz rand3.gz |
wc -c
3146274
tzafrir@pungenday:/tmp/git-test(master)$ cat rand.gz rand2.gz rand3.gz |
gzip | wc -c
3146772

Hmm... not quite as expected. We need a larger dictionary:

tzafrir@pungenday:/tmp/git-test(master)$ cat rand.gz rand2.gz rand3.gz |
gzip -9 | wc -c
3146772
tzafrir@pungenday:/tmp/git-test(master)$ cat rand.gz rand2.gz rand3.gz |
bzip2 | wc -c
3160302
tzafrir@pungenday:/tmp/git-test(master)$ cat rand.gz rand2.gz rand3.gz |
bzip2 -9 | wc -c
3160302
tzafrir@pungenday:/tmp/git-test(master)$ cat rand.gz rand2.gz rand3.gz |
xz | wc -c
1049516

Finally. So as I was saying, those three compress very well together and
thus git can efifciently pack them. The size also suggests that the
compression did not change the content of the file very much in this
pathol

Re: filesystem capable of deduping tar.gz's content

2013-05-08 Thread Tzafrir Cohen
On Wed, May 08, 2013 at 11:21:37PM +0300, Elazar Leibovich wrote:

> However when it's gzipped:

Is it the same content? Specifically, do you use gzip -n?

> All your suggestions are basically good, but they mean I have to change the
> work style of all the team.
> The main benefit in my suggestion is, that it's completely transparent. I
> add a single mount command to the directory I already keep my binary files,
> and that's it. Everything still works as usual, except I never need to
> worry about deleting anything.
> BTW Java artifacts have a very easy to set-up and known deployment
> mechanism (binary repository with a known protocol to keep binary build
> products, known API for how to get a build product, etc). It's good to keep
> your work environment as standard as you reasonably can.

And use a custom file system as part of it?

-- 
Tzafrir Cohen | tzaf...@jabber.org | VIM is
http://tzafrir.org.il || a Mutt's
tzaf...@cohens.org.il ||  best
tzaf...@debian.org|| friend

___
Linux-il mailing list
Linux-il@cs.huji.ac.il
http://mailman.cs.huji.ac.il/mailman/listinfo/linux-il


Re: filesystem capable of deduping tar.gz's content

2013-05-08 Thread Tzafrir Cohen
On Wed, May 08, 2013 at 10:47:14PM +0300, Oleg Goldshmidt wrote:
> Elazar Leibovich  writes:
> 
> > Hi,
> >
> > I have a software product being built a few times a day (continuous
> > integration style). The end product is an installable tar.gz with many
> > java jars.
> >
> > Since the content of the tar.gz's is mostly the same, I want to use a
> > filesystem that would dedupe the duplicated content.
> >
> > As I see it, it's s FUSE filesystem that:
> >
> > 1. When a file with .tar.gz extension stored, it untar it and store it
> > in a folder (keeping the file order in a list).
> > 2. When it is read again, it will tar gz the underlying folder, and
> > will give the gzip'd result.
> > 3. It will keep a list of file hashes, and would replace the file with
> > a symlink to another file if possible.
> > 4. Bonus: do the same for jars. Java is linked at runtime, so if a
> > .java file didn't change - neither does its class.
> >
> > Is there anything like that available?
> > Is there a smarter solution?

Can you afford a periodic scan by some service? I figure you could
always trigger it with inotify otherwise, but there is an overhead.

http://dedup.debian.net gives the following advice, that I have not yet
tested:

# Replace duplicate files with symlinks
rdfind -outputname /dev/null -makesymlinks true debian/mypackage/
# Fix those symlinks to make them relative
symlinks -r -s -c debian/mypackage/

> 1. I would probably look into using a version control system rather than
>a filesystem.
> 
>a) Modern version control systems are often/usually capable of
>   storing binary diffs between revisions. Frankly, I've never looked
>   at how git or mercurial do that (probably quite well), but even,
>   say, SVN should be able to store a binary diff on commit. IIRC SVN
>   diffs using xdelta or similar.
> 

Git stores files. It should do handle such deduping by design. But this
is in Git's storage, and not in the actual filesystem:

tzafrir@pungenday:/tmp/git-test$ git init
Initialized empty Git repository in /tmp/git-test/.git/
tzaf...@debian.org
tzafrir@pungenday:/tmp/git-test$ dd if=/dev/urandom bs=1024 count=1024
of=rand
1024+0 records in
1024+0 records out
1048576 bytes (1.0 MB) copied, 0.0832973 s, 12.6 MB/s
tzafrir@pungenday:/tmp/git-test$ du -s .git .
92  .git
1028.
tzafrir@pungenday:/tmp/git-test$ git add rand
tzafrir@pungenday:/tmp/git-test$ git commit -m "rand"
[master (root-commit) 401d035] rand
 1 file changed, 0 insertions(+), 0 deletions(-)
 create mode 100644 rand
tzafrir@pungenday:/tmp/git-test(master)$ du -s .git .
1172.git
1028.
tzafrir@pungenday:/tmp/git-test(master)$ cp rand rand1
tzafrir@pungenday:/tmp/git-test(master)$ git add rand1
tzafrir@pungenday:/tmp/git-test(master)$ git commit -m "rand1"
[master a4d084f] rand1
 1 file changed, 0 insertions(+), 0 deletions(-)
 create mode 100644 rand1
tzafrir@pungenday:/tmp/git-test(master)$ du -s .git .
1188.git
2052.
tzafrir@pungenday:/tmp/git-test(master)$ git ls-tree HEAD
100644 blob e5ad63a5eb4a806ae572e977742cdce9e9f74cfarand
100644 blob e5ad63a5eb4a806ae572e977742cdce9e9f74cfarand1


There are a number of backup systems / schemes that aim to provide file
de-duplication. At least some of them use Git.

-- 
Tzafrir Cohen | tzaf...@jabber.org | VIM is
http://tzafrir.org.il || a Mutt's
tzaf...@cohens.org.il ||  best
tzaf...@debian.org|| friend

___
Linux-il mailing list
Linux-il@cs.huji.ac.il
http://mailman.cs.huji.ac.il/mailman/listinfo/linux-il


OT: mailbox generator

2013-04-25 Thread Tzafrir Cohen
Off topic, but may be interesting:

I heard recently that it is now legal for the security checks in the Ben
Gurion airport to require that I show my mail account.

Any existing software to automatically (and periodically) generate email
on a mailbox which will appear to be used, so if anybody wants a casual
look at my mailbox, I don't have to provide any real email credentials?

-- 
Tzafrir Cohen | tzaf...@jabber.org | VIM is
http://tzafrir.org.il || a Mutt's
tzaf...@cohens.org.il ||  best
tzaf...@debian.org|| friend

___
Linux-il mailing list
Linux-il@cs.huji.ac.il
http://mailman.cs.huji.ac.il/mailman/listinfo/linux-il


Re: Raspberry PI questions

2013-02-26 Thread Tzafrir Cohen
On Tue, Feb 26, 2013 at 02:57:02PM +0200, Geoffrey S. Mendelson wrote:
> Thanks to everyone for the suggestions. I'm not sure I can actually
> use it, but if I do, I now know where to buy them from.
> 
> I also got a reply about the USB (I don't know if it was to me
> direct or to the list, so I'll just say thanks and summarize to the
> list):
> 
> The model A has a single USB port on the board. It is connected
> directly to the USB type A port.
> 
> The model B also has the single USB port. It is connected to a three
> port hub. The hub is connected to the two USB type A connectors and
> a USB ethernet interface.
> 
> So the USB bandwidth is shared between both type A ports and ethernet.
> 
> I was speaking today to someone who is in contact with people
> working downward in the same direction I am working upward. I was
> looking at taking a Raspberry Pi and building an application on it.
> 
> The people he was speaking to already had the application running on
> X86 hardware and were in the process of porting it to DD-WRT routers
> and the Raspberry Pi. They are having problems because the single
> USB port does not provide enough bandwidth

I'm a bit surprised that the USB bandwidth is the bottle neck here. Do
you actually get that much of network traffic and USB traffic?

> 
> In my case it may be possible as I only want to go one direction,
> they were going two.

-- 
Tzafrir Cohen | tzaf...@jabber.org | VIM is
http://tzafrir.org.il || a Mutt's
tzaf...@cohens.org.il ||  best
tzaf...@debian.org|| friend

___
Linux-il mailing list
Linux-il@cs.huji.ac.il
http://mailman.cs.huji.ac.il/mailman/listinfo/linux-il


Re: Developing custom Ubuntu live system

2013-02-17 Thread Tzafrir Cohen
On Sun, Feb 17, 2013 at 12:55:45PM +0200, Amichay P. K. wrote:
> I am planning to maintain the system and maybe even make it public.
> There is no problem with building it from scratch, it's just very
> inefficient to reinvent the wheel... why not using existing installed
> system? Is there any benefits that I didn't notice?

The benefits are keeping your changes separate from the system. The
maintinance is much simpler (it is feasible to maintain them under
version control).

I'm not exactly sure if Ubuntu uses Debian Live or something different
(ask its developers). But using it or similar methods save you from
reinventing the wheel.

-- 
Tzafrir Cohen | tzaf...@jabber.org | VIM is
http://tzafrir.org.il || a Mutt's
tzaf...@cohens.org.il ||  best
tzaf...@debian.org|| friend

___
Linux-il mailing list
Linux-il@cs.huji.ac.il
http://mailman.cs.huji.ac.il/mailman/listinfo/linux-il


Re: Developing custom Ubuntu live system

2013-02-17 Thread Tzafrir Cohen
On Sun, Feb 17, 2013 at 11:45:58AM +0200, Amichay P. K. wrote:
> On Feb 17, 2013 10:54 AM, "Tzafrir Cohen"  wrote:

> I don't want to build Ubuntu from scratch - I want to keep most of Ubuntu
> programs and drivers as it is, I would mostly add features.

What's the problem with building it from scratch? That's the same
procedure used by the builders of the image you use.

One way or the other you have to go through the time and memory
consuming part of recreating the compressed filesystem image.

Is this a one-shot thing or something you want to maintain?

> If I will change installed system on runtime, how would I be able to save
> all of the system changes manually?

> > * Custom system at run time, copy over your changes, and rebuild (for
> >   changes of the user: place them under /etc/skel).

-- 
Tzafrir Cohen | tzaf...@jabber.org | VIM is
http://tzafrir.org.il || a Mutt's
tzaf...@cohens.org.il ||  best
tzaf...@debian.org|| friend

___
Linux-il mailing list
Linux-il@cs.huji.ac.il
http://mailman.cs.huji.ac.il/mailman/listinfo/linux-il


Re: Developing custom Ubuntu live system

2013-02-17 Thread Tzafrir Cohen
On Sun, Feb 17, 2013 at 08:27:34AM +0200, Amichay P. K. wrote:
> Hello linuxer's,
> I am trying to create custom Ubuntu live distribution.
> I was trying to use tools such as UCK, remastersys and more, but I find
> them weak and without enough options that I need.
> As I said, I need to make this distro live, but I also need some programs
> to be installed and configured automatically for the live user, and I can't
> really find any useful info about this online.
> So I'm looking for two things - documentation about creating custom Ubuntu
> distro manually, and how to save settings, files, profiles and programs to
> be used as default by the live user.
> Any help would be appreciated.
> Thanks in advance, amichay.

http://live.debian.net/ should also support Ubuntu.

It is not intended to b used for rmastering, rathr: for building from
scratch. You can use rmastering-like methods in two ways:

* Custom system at run time, copy over your changes, and rebuild (for
  changes of the user: place them under /etc/skel).
* Through persistence:
  
http://live.debian.net/manual/3.x/html/live-manual/customizing-run-time-behaviours.en.html#529

That said, why not just install an Ubuntu system on a USB stick?

-- 
Tzafrir Cohen | tzaf...@jabber.org | VIM is
http://tzafrir.org.il || a Mutt's
tzaf...@cohens.org.il ||  best
tzaf...@debian.org|| friend

___
Linux-il mailing list
Linux-il@cs.huji.ac.il
http://mailman.cs.huji.ac.il/mailman/listinfo/linux-il


Re: Home made NAS

2012-12-04 Thread Tzafrir Cohen
On Tue, Dec 04, 2012 at 01:37:35PM +0200, Mord Behar wrote:
> On Tue, Dec 4, 2012 at 1:08 PM, Nadav Har'El wrote:
> 
> > On Tue, Dec 04, 2012, David Suna wrote about "Home made NAS":
> > > I have a bunch of old machines lying around which are currently just
> > > collecting dust.  I would like to collect the disks from all of
> > > them, put them together into a single server to act as a file server
> >
> > A couple of years I started doing something similar to what you are
> > planning.
> > I took an old computer, and stuck in it a bunch of hard disks I had from
> > previous years - one was 1 terabyte, another 300 gigabyte, and a third
> > 80 gigabytes. The computer ran Linux, and served files (mostly CDs and
> > DVDs)
> > on my home network with NFS and Samba.
> >
> > But then I realized how annoying this setup was: the computer was very big,
> > noisy, and had to be on all the time. The old disks (especially the 80
> > gigabytes) were a joke, and I all three disks summed together were
> > smaller than a just new disk I could buy.
> >
> > Instead, I decided to buy a 2-terabyte WD My Book Live for $160.
> >
> > For this price, I got both the 2TB hard-disk and a tiny (ARM-based)
> > server in one package. The package is 10 times smaller than my old
> > computer,
> > nearly silent, and uses up less electricity, and came preconfigured with
> > the server software (it runs Linux, but you don't have direct access to
> > it).
> >
> > So in my opinion, unless you're completely broke, and/or treating this
> > as nothing more than an educational experience, building a NAS out of
> > old equipment is waste of your energy.
> >
> 
> Unless you hook them up to a Raspberry Pi. That is silent, takes very
> little electricity and can probably do what you want.

A Raspberry Pi is relatively cheap, but is certainly not the only small
device around.

http://linux-sunxi.org/Mele_A1000
Includes a SATA adapter and a disk enclosure (you'll have to provide
your own disk). It does cost a bit more than a Pi, and the code is not
in mainline yet, but it's easier to work with than a Pi.

There are lots of them.

-- 
Tzafrir Cohen | tzaf...@jabber.org | VIM is
http://tzafrir.org.il || a Mutt's
tzaf...@cohens.org.il ||  best
tzaf...@debian.org|| friend

___
Linux-il mailing list
Linux-il@cs.huji.ac.il
http://mailman.cs.huji.ac.il/mailman/listinfo/linux-il


Re: anybody knows of a mifi i can run linux on ?

2012-11-19 Thread Tzafrir Cohen
On Mon, Nov 19, 2012 at 04:02:39PM +0200, Erez D wrote:
> there are routers, e.g. the wrt54gl which i can ran openwrt on
> 
> however i am looking for a Mifi (i.e. cellular wifi) router which i can run
> linux on.
> 
> anybody knows of such ?

"Cellular" sounds like a major drivers issue. Go for a USB-connected
one with a "standard" openwrt router?

-- 
Tzafrir Cohen | tzaf...@jabber.org | VIM is
http://tzafrir.org.il || a Mutt's
tzaf...@cohens.org.il ||  best
tzaf...@debian.org|| friend

___
Linux-il mailing list
Linux-il@cs.huji.ac.il
http://mailman.cs.huji.ac.il/mailman/listinfo/linux-il


Re: Is forbidding concurrent ssh sessions a good idea?

2012-11-12 Thread Tzafrir Cohen
On Mon, Nov 12, 2012 at 12:51:46PM +0200, Nadav Har'El wrote:

> Let me offer another completely different idea, without any kills and
> similar tricks: End your ~/.profile with "screen -R -D"
> 
> What will this do?
> 
> The login shell will start screen(1), and let the admin work in it.
> If another admin logs in, he doesn't just kill the existing session - he
> also takes over the existing instance of "screen", and can see what the
> other admin was in the middle of doing.
> 
> This "screen" will also allow the admin to have multiple screens - which
> you prevent him from doing with several separate sshs, so he'll
> appreciate "screen" anyway.
> 
> If you don't know screen(1), I suggest you learn it - it is an
> absolutely wonderful tool.

A version or two of Ubuntu had such a setup as th default, IIRC. They
made the extra stuff added on top of screen in a separate package called
byobu. It still seems to be under active maintinance. Under Debian and
Ubuntu just install that package. I figure the scriptology there may
provide useful inspiration on other distributions as well:

  https://launchpad.net/byobu

-- 
Tzafrir Cohen | tzaf...@jabber.org | VIM is
http://tzafrir.org.il || a Mutt's
tzaf...@cohens.org.il ||  best
tzaf...@debian.org|| friend

___
Linux-il mailing list
Linux-il@cs.huji.ac.il
http://mailman.cs.huji.ac.il/mailman/listinfo/linux-il


Re: Is forbidding concurrent ssh sessions a good idea?

2012-11-12 Thread Tzafrir Cohen
On Mon, Nov 12, 2012 at 10:05:02AM +0200, Elazar Leibovich wrote:
> I'm considering to disallow concurrent ssh sessions on a single-purpose
> production machine (say, DB server).

Sessions != shells.

SSH can be used for various things (ssh, scp, whatever).

I normally keep at least one active shell session and occasionally use
minor ones for tab completion (of scp and such. Check out
/etc/bash_completion/ssh ). In order to avoid the overhead of several
SSH connections, I use a socket so that the various commands will use a
single TCP connection and SSH session (the one of my main shell session).

I also occasionally use ssh as, well a (secure) Remote SHell, and use it
to execute command on the remote machine.

> 
> I thought of replacing the default shell with a shell that keeps its pid
> file in a central place. If such a file already exist, it'll kill the other
> running shell before logging in.

This would have badly broken my personal use case.

-- 
Tzafrir Cohen | tzaf...@jabber.org | VIM is
http://tzafrir.org.il || a Mutt's
tzaf...@cohens.org.il ||  best
tzaf...@debian.org|| friend

___
Linux-il mailing list
Linux-il@cs.huji.ac.il
http://mailman.cs.huji.ac.il/mailman/listinfo/linux-il


Re: ???In Technology Wars, Using the Patent as a Sword??? - New York Times Feature

2012-10-10 Thread Tzafrir Cohen
On Tue, Oct 09, 2012 at 07:23:51PM +0200, Geoffrey S. Mendelson wrote:
> Tzafrir Cohen wrote:
>
>> | 
>> http://bits.blogs.nytimes.com/2012/05/22/google-closes-12-5-billion-deal-to-buy-motorola-mobility/
>> | (last visited May 24, 2012). Google has since said that of the $12.5B, 
>> $5.5 were
>> | for patents, which is still a staggering sum.
>
> No, it's not. It's actually a meager sum when you consider that they  
> bought more than 17,000 active and 7,500 pending patents.
>
> Google calculator tells me that's $265,000 for each patent, which is  
> pretty cheap considering it supposed to cover the costs of the  
> developers, patent fees, lawyers, etc.

Patents also expire after a certain period. Patents may also be pure
crap that will not stand in court.

As for covering developer time and lawyer time: why was this time spent
in the first place? This is part of the overhead of the company. Why
would you expect such activity to be profitable?

-- 
Tzafrir Cohen | tzaf...@jabber.org | VIM is
http://tzafrir.org.il || a Mutt's
tzaf...@cohens.org.il ||  best
tzaf...@debian.org|| friend

___
Linux-il mailing list
Linux-il@cs.huji.ac.il
http://mailman.cs.huji.ac.il/mailman/listinfo/linux-il


Re: ???In Technology Wars, Using the Patent as a Sword??? - New York Times Feature

2012-10-09 Thread Tzafrir Cohen
On Tue, Oct 09, 2012 at 03:09:55PM +0200, Nadav Har'El wrote:
> On Tue, Oct 09, 2012, Shlomi Fish wrote about "???In Technology Wars, Using 
> the Patent as a Sword??? - New York Times Feature":
> > rover missions. Last year, for the first time, spending by Apple and
> > Google on patent lawsuits and unusually big-dollar patent purchases
> > exceeded spending on research and development of new products,
> > according to public filings.
> 
> This is not entirely surprising. As an example, IBM is well-known for its
> research arm, and many people assume that IBM spends a fortune on its R&D.
> But a few years ago, I attended some IBM customer conference, where an IBM
> executive stood up and told everyone, proudly, that the previous year,
> IBM bought small companies for X billions of dollars, which was more than
> it spent on its own research arm.
> 
> So for some reason, big American corporations feel very good (and proud)
> about spending huge amounts of money on mergers and acquisitions. They
> feel like such mergers can never fail (although many are spectacular
> failures). I think many of these so-called patent buyouts are yet another
> type of merger - e.g., consider Google's buy of Motorola Mobility, is it a
> merger or patent purchase?

I found what I belive to be a draft of the Stanford article:
http://www.stanford.edu/dept/law/ipsc/Paper%20PDF/Chien,%20Colleen%20-%20Paper.pdf

Specifically it refers to the purchace of Motorola Mobility:

| Google Official Blog, We’ve acquired Motorola Mobility,
| http://googleblog.blogspot.com/2012/05/weve-acquired-motorola-mobility.html
| (last visited May 24, 2012); Jenna Wortham, Google Closes $12.5 Billion Deal 
to
| Buy Motorola Mobility,
| 
http://bits.blogs.nytimes.com/2012/05/22/google-closes-12-5-billion-deal-to-buy-motorola-mobility/
| (last visited May 24, 2012). Google has since said that of the $12.5B, $5.5 
were
| for patents, which is still a staggering sum.

> 
> I don't think any of these companies are spending more on actual litigation
> than on product development. If this were true, we would have seen
> these companies having more lawyers than developers. I don't think this
> is the case.

The sums of money involved don't actually include any type of Patent
Oriented Development:

- Development resources spent to work around patents the company is not
  licensed to use.

- Development and legal reosurces spent working on getting patents
  rather than getting products.

> I also don't think it is the case that these companies are
> paying billions of dollars blackmail to patent trolls - I've yet to see
> a patent troll on the list of the world's richest people.

Patent Trolls are a indeed managable parasites. But, as the article
states, the damage is a tax. And those who can least aford to pay it are
small companies. The article begins with an example of a company
killed using a false patent suit (hinting it is indeed a useful blackmail
weapon).

-- 
Tzafrir Cohen | tzaf...@jabber.org | VIM is
http://tzafrir.org.il || a Mutt's
tzaf...@cohens.org.il ||  best
tzaf...@debian.org|| friend

___
Linux-il mailing list
Linux-il@cs.huji.ac.il
http://mailman.cs.huji.ac.il/mailman/listinfo/linux-il


Re: Geresh

2012-09-28 Thread Tzafrir Cohen
On Thu, Sep 27, 2012 at 10:17:27PM +0200, Lior Kaplan wrote:
> I had two bugs reported regarding that package in Debian, you're welcome to
> include the patches in the bugs. This is the changelog on top of the one in
> the repository bellow:
> 
> geresh (0.6.3-9) unstable; urgency=low
> 
>   * Fix FTBFS with GCC 4.3 with help by Martin Michlmayr (Closes: #455189)
> 
>  -- Lior Kaplan   Fri, 28 Dec 2007 16:40:08 +0200
> 
> geresh (0.6.3-8) unstable; urgency=low
> 
>   * Fix FTBFS with GCC 4.3 with a patch from Martin Michlmayr (Closes:
> #417196)

It now builds with gcc 4.7 .

-- 
Tzafrir Cohen | tzaf...@jabber.org | VIM is
http://tzafrir.org.il || a Mutt's
tzaf...@cohens.org.il ||  best
tzaf...@debian.org|| friend

___
Linux-il mailing list
Linux-il@cs.huji.ac.il
http://mailman.cs.huji.ac.il/mailman/listinfo/linux-il


Geresh

2012-09-27 Thread Tzafrir Cohen
Geresh is a terminal-based text editor with bidirectional Hebrew support
and support for other features.

http://www.typo.co.il/~mooffie/geresh/

See also http://archive.debian.net/geresh

Recently someone asked me for some help in getting it to build. So I
took the latest version and got it to build and work:

https://gitorious.org/geresh

If you want to take it from there, feel free. If you want me to give the
permissions in that repository to you, let me know.

-- 
Tzafrir Cohen | tzaf...@jabber.org | VIM is
http://tzafrir.org.il || a Mutt's
tzaf...@cohens.org.il ||  best
tzaf...@debian.org|| friend

___
Linux-il mailing list
Linux-il@cs.huji.ac.il
http://mailman.cs.huji.ac.il/mailman/listinfo/linux-il


Re: mobile service providers updates

2012-08-07 Thread Tzafrir Cohen
Thanks for all the fixes,

On Tue, Aug 07, 2012 at 12:06:08PM +, Tzafrir Cohen wrote:
> Hi
> 
> I figured I'd submit an update to the service providers database[1].
> >From a quick search (using e.g. [2] and [3]) I got the following. Any
> comments and fixes before I submit it?

Update:

* Added Home Cellular
* No idea what are the mnc values for Rami Levi and Home Cellular (if
  applicable). Left empty for now.

diff --git a/serviceproviders.xml b/serviceproviders.xml
index a624d35..f4bf595 100644
--- a/serviceproviders.xml
+++ b/serviceproviders.xml
@@ -4895,6 +4895,54 @@ conceived.



+   
+   GolanTelecom
+   
+   
+   
+   
+   
+   
+   
+   
+   
+   
+   
+   Hot Mobile
+   
+   
+   
+   
+   
+   
+   
+   
+   
+   
+   
+   Rami Levi
+   
+   
+   
+   
+   
+   rl@3g
+   rl
+   
+   
+   
+   
+   Home Cellular
+   
+   
+   
+   
+   
+   
+   
+   
+   
+   
 
 
 


-- 
Tzafrir Cohen | tzaf...@jabber.org | VIM is
http://tzafrir.org.il || a Mutt's
tzaf...@cohens.org.il ||  best
tzaf...@debian.org|| friend

___
Linux-il mailing list
Linux-il@cs.huji.ac.il
http://mailman.cs.huji.ac.il/mailman/listinfo/linux-il


mobile service providers updates

2012-08-07 Thread Tzafrir Cohen
Hi

I figured I'd submit an update to the service providers database[1].
>From a quick search (using e.g. [2] and [3]) I got the following. Any
comments and fixes before I submit it?

diff --git a/serviceproviders.xml b/serviceproviders.xml
index a624d35..9c44e8f 100644
--- a/serviceproviders.xml
+++ b/serviceproviders.xml
@@ -4895,6 +4895,45 @@ conceived.



+   
+   GolanTelecomm
+   
+   
+   
+   
+   
+   3G
+   pcl@3g
+   pcl
+   
+   
+   
+   
+   Hot Mobile
+   
+   
+   
+   
+   
+   3G
+   
+   
+   
+   
+   
+   
+   Rami Levi
+   
+   
+   
+   
+   
+   3G
+   rl@3g
+   rl
+   
+   
+   
 
 
 

[1] https://live.gnome.org/NetworkManager/MobileBroadband/ServiceProviders

[2] http://wiki.apnchanger.org/Israel
[3] http://www.iopanel.net/forum/thread46469.html

-- 
Tzafrir Cohen | tzaf...@jabber.org | VIM is
http://tzafrir.org.il || a Mutt's
tzaf...@cohens.org.il ||  best
tzaf...@debian.org|| friend

___
Linux-il mailing list
Linux-il@cs.huji.ac.il
http://mailman.cs.huji.ac.il/mailman/listinfo/linux-il


Re: SIM Card reading using a USB modem?

2012-06-13 Thread Tzafrir Cohen
On Wed, Jun 13, 2012 at 12:33:17PM +0300, geoffrey mendelson wrote:
> I have a ZTE netstick that is supported by Linux.
>
> Is there any program(s) that would let me read the phone directory off  
> of the SIM in the netstick, edit it and write it back?
>
> What I am really interested in is copying my SIM card directory to a  
> different SIM.
>
> I am not in a position to buy a bluetooth or android phone to use it, so 
> this seemed the best thing to do.

As nobody gave a better answer:

AFAIK, there are standard AT commands for that. Thus you should give a
shot to e.g. gnokii.

http://wiki.gnokii.org/index.php/Atgen_driver

Just for fun: my phone (N900, in "PC Suite" mode) using AT commands.


# screen /dev/ttyACM0 115200

(in screen)

AT+CPBS="ME"
ERROR
AT+CPBS+
ERROR
AT+CPBS?
ERROR


I guess it's not that standard.

-- 
Tzafrir Cohen | tzaf...@jabber.org | VIM is
http://tzafrir.org.il || a Mutt's
tzaf...@cohens.org.il ||  best
tzaf...@debian.org|| friend

___
Linux-il mailing list
Linux-il@cs.huji.ac.il
http://mailman.cs.huji.ac.il/mailman/listinfo/linux-il


Re: Scientific computing and a tangentially related question

2012-06-12 Thread Tzafrir Cohen
On Tue, Jun 12, 2012 at 11:07:59AM -0600, Steve G. wrote:
> Hi everyone.
> 
> I have two questions for members of the group.
> 
> 1. Is there any coordinated development of statistical analysis tools that
> are OSS and run on Linux? For example, the R programming language and its
> application to applied fields such as social statistics or epidemiology? I
> am looking for an OSS solution similar to SPSS (user friendly), Stata or
> SAS (powerful), or Design Expert (specific to experimental design).
> 
> 2. Are there any Masters Programs in Israel in the fields of applied
> statistics (biostatistics, epidemiology, medical statistics, social
> statistics, actuarial sciences or demographics)? I am more interested in
> the sciences (that is the first 3 on the list), and if I can find a good
> program that would take a scientist (that is, not a mathematician of CS
> major) and train him at a reasonable cost, I will be the happiest man alive
> for about 5 minutes.
> 
> If you know where, how, when, how much, etc., let me know, via my email or
> the group.

Yesterday:

http://hamakor.org.il/pipermail/discussions/2012-June/003832.html

See http://www.numberjacks.org/israel

-- 
Tzafrir Cohen | tzaf...@jabber.org | VIM is
http://tzafrir.org.il || a Mutt's
tzaf...@cohens.org.il ||  best
tzaf...@debian.org|| friend

___
Linux-il mailing list
Linux-il@cs.huji.ac.il
http://mailman.cs.huji.ac.il/mailman/listinfo/linux-il


Re: Astrerisk question, anyone sell a cellphone that can be used to make calls?

2012-06-11 Thread Tzafrir Cohen
On Mon, Jun 11, 2012 at 03:54:17PM +0300, geoffrey mendelson wrote:
>
> On Jun 11, 2012, at 3:25 PM, Tzafrir Cohen wrote:

>>> Even in Israel, all of the modems sold are 2 or 3 generations ahead  
>>> of
>>> the software and google has not been helpful with information about
>>> backwards compatibility.
>>
>> I normally have had good luck with using them with relatively recent
>> kernels.
>
>
> Not the point. Beyond the kernel drivers you need asterisk to support  
> them as Voice devices.

As I said before: any cheapo cellular phone using bluetooth.

-- 
Tzafrir Cohen | tzaf...@jabber.org | VIM is
http://tzafrir.org.il || a Mutt's
tzaf...@cohens.org.il ||  best
tzaf...@debian.org|| friend

___
Linux-il mailing list
Linux-il@cs.huji.ac.il
http://mailman.cs.huji.ac.il/mailman/listinfo/linux-il


Re: Astrerisk question, anyone sell a cellphone that can be used to make calls?

2012-06-11 Thread Tzafrir Cohen
On Mon, Jun 11, 2012 at 07:16:06AM +0300, geoffrey mendelson wrote:
>
> On Jun 11, 2012, at 1:41 AM, Etzion Bar-Noy wrote:
>
>> Sorry. Should have been "reply all".
>>
>> Not to mention that Hot sells phone lines with unlimited plan at 69  
>> ILS/month, if I'm not mistaken, which leaves you with a simpler  
>> solution. Way simpler and cheaper than connecting cellular line...
>
>
> Then you need an FXO card in your asterisk system.

The extra hardware required for it is on the order of magnitude of price
/ complication / etc. of what is required for a cellular "line", I
believe.

That said, I suspect this may be a simpler way to send SMSes.

-- 
Tzafrir Cohen | tzaf...@jabber.org | VIM is
http://tzafrir.org.il || a Mutt's
tzaf...@cohens.org.il ||  best
tzaf...@debian.org|| friend

___
Linux-il mailing list
Linux-il@cs.huji.ac.il
http://mailman.cs.huji.ac.il/mailman/listinfo/linux-il


Re: Astrerisk question, anyone sell a cellphone that can be used to make calls?

2012-06-11 Thread Tzafrir Cohen
On Mon, Jun 11, 2012 at 07:34:07AM +0300, geoffrey mendelson wrote:
>
> On Jun 11, 2012, at 2:50 AM, Guy Gold wrote:
>
>>> If  you're on a GSM network, can you get a dual SIM ? And, buy a
>> cellar modem, and from that point use one of Asterisk's chan_
>> drivers ?

Why would you need a data link from them? You could use their data link,
but the jitter is not really optimal. I suppose your office already has
a decent ADSL or whatever data link. Why bother?

Their (both Golan and Hot) data plan has no good guarantees once you
pass the 3GB / month. I would not rely on them for anything serious.

>
>
> Someone else also suggested it.
>
> Thanks to both of you.
>
> I have a problem with figuring out how to get a cellular modem that both 
> works and is unlocked for voice.

Huh? The modem Golan sent me worked just fine with my N900: voice calls,
SMS and data connections (also as a "modem").

>
> Even in Israel, all of the modems sold are 2 or 3 generations ahead of  
> the software and google has not been helpful with information about  
> backwards compatibility.

I normally have had good luck with using them with relatively recent
kernels.

-- 
Tzafrir Cohen | tzaf...@jabber.org | VIM is
http://tzafrir.org.il || a Mutt's
tzaf...@cohens.org.il ||  best
tzaf...@debian.org|| friend

___
Linux-il mailing list
Linux-il@cs.huji.ac.il
http://mailman.cs.huji.ac.il/mailman/listinfo/linux-il


Re: Emacs & Hebrew

2012-06-10 Thread Tzafrir Cohen
Long ago, On Fri, Feb 20, 2009 at 07:38:34AM +0200, Yuval Hager wrote:
> Hi,
> 
> As I my Emacs usage increased recently following the discovery of the amazing 
> org-mode (highly recommended), I began wondering about Bidi in Emacs.

The Bidi has landed!

Quoting https://www.gnu.org/software/emacs/NEWS.24.1 :

*** Emacs now supports display and editing of bidirectional text.
Right-to-left (RTL) scripts, such as Arabic, Farsi, and Hebrew, are
displayed in the correct visual order as expected by users of those
scripts.  The display reordering is a "full bidirectionality" class
implementation of the Unicode Bidirectional Algorithm (UBA).  Buffers
with no RTL text should look exactly the same as before.

...

*** New Hebrew translation of the Emacs Tutorial.
Type `C-u C-h t' to choose it in case your language setup doesn't
automatically select it.

Congrats!

-- 
Tzafrir Cohen | tzaf...@jabber.org | VIM is
http://tzafrir.org.il || a Mutt's
tzaf...@cohens.org.il ||  best
tzaf...@debian.org|| friend

___
Linux-il mailing list
Linux-il@cs.huji.ac.il
http://mailman.cs.huji.ac.il/mailman/listinfo/linux-il


Re: Astrerisk question, anyone sell a cellphone that can be used to make calls?

2012-06-10 Thread Tzafrir Cohen
On Sun, Jun 10, 2012 at 01:22:51PM +0300, geoffrey mendelson wrote:
> Now that I can get a cell phone plan that gives me unlimited minutes and 
> unlimited SMS's, does anyone know of a cell phone that can be connected 
> to an asterisk system and used for outgoing (and possibly incoming) 
> calls?
>
> Just to be clear, I don't want to run asterisk on a cell phone, I want  
> to connect it to a server and use it to forward calls from within my  
> system out via the cell phone.

A single bluetooth capable mobile phone: use chan-mobile.

There are various other channel drivers that allow you to connect mobile
phones.

There are also various dedicated adapters (PCI cards, stand-alone
devices) that can connect you to a GSM device for voice calls and GSM
calls.

-- 
Tzafrir Cohen | tzaf...@jabber.org | VIM is
http://tzafrir.org.il || a Mutt's
tzaf...@cohens.org.il ||  best
tzaf...@debian.org|| friend

___
Linux-il mailing list
Linux-il@cs.huji.ac.il
http://mailman.cs.huji.ac.il/mailman/listinfo/linux-il


Re: Using git on / for configuration files

2012-06-07 Thread Tzafrir Cohen
On Wed, Jun 06, 2012 at 10:38:49PM +0300, Oron Peled wrote:
> On Wednesday, 6 בJune 2012 12:57:06 Eli Billauer wrote:
> > Hi all,
> > 
> > I'd just like to get your input before I do something stupid. The idea, 
> > anyhow, is to create a git repository on my system's root directory, and 
> > add many of the system's configuration files (e.g. some of /etc/) for 
> > tracking.
> 
> If you want this route, why re-invent the wheel?
>  http://joeyh.name/code/etckeeper

Note that while etckeeper defaults to using git, it can use a number of
other version control systems (though only distributed ones).

It also has hooks to package managers. Thus it documents the changes
created by apt / yum / whatever.

IIRC there's something similar for configuration files in the home
directory, but I did not get to look at it.

-- 
Tzafrir Cohen | tzaf...@jabber.org | VIM is
http://tzafrir.org.il || a Mutt's
tzaf...@cohens.org.il ||  best
tzaf...@debian.org|| friend

___
Linux-il mailing list
Linux-il@cs.huji.ac.il
http://mailman.cs.huji.ac.il/mailman/listinfo/linux-il


Re: a game to publicise [was Re: משחק להפיץ]

2012-05-24 Thread Tzafrir Cohen
On Thu, May 24, 2012 at 11:01:31AM +0300, Dotan Cohen wrote:

> However, the goal of promoting this site is not to provide a web
> application for any use or entertainment. Rather, the goal is to give
> people a reason to install and use a browser other than Internet
> Explorer. This is especially critical here in Israel where as a Linux
> user with no access to IE I cannot use many government websites. We
> need to get a critical mass off of IE.

The real reason is to make people abandon any brwser other than
Chrome/uim.

Which gives me all a good reason not to use it.

-- 
Tzafrir Cohen | tzaf...@jabber.org | VIM is
http://tzafrir.org.il || a Mutt's
tzaf...@cohens.org.il ||  best
tzaf...@debian.org|| friend

___
Linux-il mailing list
Linux-il@cs.huji.ac.il
http://mailman.cs.huji.ac.il/mailman/listinfo/linux-il


Re: compare software

2012-05-06 Thread Tzafrir Cohen
On Sun, May 06, 2012 at 01:52:04PM +0300, Erez D wrote:

> can i do that (ignore comments) in vimdiff (without filtering)

I use the VimDirDiff script. In my vimrc I have:

let g:DirDiffExcludes = ".svn,.git,.*.swp"
let g:DirDiffIgnore = "\\$Id,\\$Revision,\\$Date"

Those are essentially passed along to diff (-x, -I, respectively).

Not sure about comments, though.

-- 
Tzafrir Cohen | tzaf...@jabber.org | VIM is
http://tzafrir.org.il || a Mutt's
tzaf...@cohens.org.il ||  best
tzaf...@debian.org|| friend

___
Linux-il mailing list
Linux-il@cs.huji.ac.il
http://mailman.cs.huji.ac.il/mailman/listinfo/linux-il


Re: [ANNOUNCEMENT] Resumed maintenance of libmikmod and mikmod.

2012-04-18 Thread Tzafrir Cohen
On Tue, Apr 17, 2012 at 11:16:42AM +0300, Nadav Har'El wrote:
> On Wed, Apr 11, 2012, Nadav Har'El wrote about "Re: [ANNOUNCEMENT] Resumed 
> maintenance of libmikmod and mikmod.":
> > hard disk. I think, though, that today mod files still have value, as
> > "open source" music :-)
> 
> I've been wondering, how far are we, technologically, from being able to
> produce free, open-source, *classical* music.
> 
> Unlike newer popular music, classical music is too old to be copyrighted
> (see signature below ;-)), so it should be legal to freely distribute
> new performances of this music. And unlike the typical "esoteric" music
> on the tracker-module scene, classical music is actually popular in a
> significant part of the population.
> 
> Would it be beyond the current state of the art to sample orchestral
> instruments or simulate them, and synthesize their sound? Then contributors
> would input the music's score, add performance instructions to the various
> instruments according to their own interpretation (just like a real
> orchestra's conductor would), and recorded classical music would come out.
> 
> I don't think that with current technology, this is science fiction.
> Does anyone know if anything like this has been tried? With free
> software?
> 
> The end-result of such a project will not only be free, and royalty-free,
> classical music for all, but also an incredible tool for aspiring composers 
> who do not have an orchestra at their disposal - and haven't (yet)
> mastered the ability to imagine what their composition would sound like
> with a full orchestra playing it. I don't think it will be a
> death-sentence to real-live orchestras - I don't believe many orchestras
> actually live on royalties from the 20-shekel classic CDs on the market.

Notes are not a precise enough description of the music.

There certainly are some synthesizers around. Getting them to produce an
exact copy of some specific instrument may be tricky. Something which is
potentially less tricky is getting them to produce a reproducable sound:
Being able to produce exactly the same sound from your sound system.

A while ago I saw (but never tried to use) a project aiming at creating
such a reproducable description of music.

https://github.com/overtone/overtone

-- 
Tzafrir Cohen | tzaf...@jabber.org | VIM is
http://tzafrir.org.il || a Mutt's
tzaf...@cohens.org.il ||  best
tzaf...@debian.org|| friend

___
Linux-il mailing list
Linux-il@cs.huji.ac.il
http://mailman.cs.huji.ac.il/mailman/listinfo/linux-il


Re: oVirt, FLOSS Weekly, Itamar Heim talks about oVirt

2012-03-15 Thread Tzafrir Cohen
On Fri, Mar 16, 2012 at 12:54:20AM +0200, Diego Iastrubni wrote:
> On יום חמישי 15 מרץ 2012 22:38:11 Tzafrir Cohen wrote:
> > > What do you base that statement on exactly?
> > 
> > Listening to that episode and previous some 50 or so previous ones.
> 
> "This episode was brought to you by Ford" - marketing the Zune crap
> "This episode was brought to you by Netflix" ...
> 
> You shuold pop up the volume when you listen to those podcasts. They are very 
> commercial oriented. Leo 

Randell, right?

> is a perl guy, but uses a mac. The production is not 
> ... "based on free software".

Well, past episodes have been interesting. The RedHat Marketing
("Community", technically) guy was very pushy and avoided questions he
did not want.

In the recent weeks they had e.g. Remind, Autotest and Stutnt Rally,
which were completely "non commercial". They also had FreeNAS, which
hadtwo people from the company that maintains FreeNAS (and also a
"value-added" version of it. They have not avoided technical aspects,
and actually did get a bit into the business side of it and how it works
with Free Software.

> 
> On a side note: what other free-oss-linux-whatever podcasts do  you guys 
> recommend? Mine are:
> http://tllts.org/
> http://www.jupiterbroadcasting.com/show/linuxactionshow/ 

Didn't get to listen to them.

> http://sixgun.org/linuxoutlaws/

Recommended. More news-oriented.

(Dan Lynch was the co-host in that episode)

I also follow http://faif.us/ , which has a different focus (more
legal).

-- 
Tzafrir Cohen | tzaf...@jabber.org | VIM is
http://tzafrir.org.il || a Mutt's
tzaf...@cohens.org.il ||  best
tzaf...@debian.org|| friend

___
Linux-il mailing list
Linux-il@cs.huji.ac.il
http://mailman.cs.huji.ac.il/mailman/listinfo/linux-il


Re: oVirt, FLOSS Weekly, Itamar Heim talks about oVirt

2012-03-15 Thread Tzafrir Cohen
On Thu, Mar 15, 2012 at 10:27:43PM +0200, dyasny wrote:
> On Thu, Mar 15, 2012 at 9:49 PM, Tzafrir Cohen wrote:
> 
> > On Thu, Mar 15, 2012 at 09:07:00PM +0200, Tom Balazs wrote:
> > > On Floss Weekly #203 with Randall Schwartz
> > > http://twit.tv/show/floss-weekly/203
> > > Itamar Heim (speaking from Israel) talks about oVirt, a virtual
> > datacenter
> > > management platform
> > > "The oVirt Project is an open virtualization project for anyone who cares
> > > about Linux-based KVM virtualization. Providing a feature-rich server
> > > virtualization management system with advanced capabilities for hosts and
> > > guests, including high availability, live migration, storage management,
> > > system scheduler, and more."
> >
> > Though sadly that episode was dominated by a RedHat Marketing guy.
> > Floss Weekly are normally more technical and less cloudy.
> >
> 
> What do you base that statement on exactly?

Listening to that episode and previous some 50 or so previous ones.


-- 
Tzafrir Cohen | tzaf...@jabber.org | VIM is
http://tzafrir.org.il || a Mutt's
tzaf...@cohens.org.il ||  best
tzaf...@debian.org|| friend

___
Linux-il mailing list
Linux-il@cs.huji.ac.il
http://mailman.cs.huji.ac.il/mailman/listinfo/linux-il


Re: oVirt, FLOSS Weekly, Itamar Heim talks about oVirt

2012-03-15 Thread Tzafrir Cohen
On Thu, Mar 15, 2012 at 09:07:00PM +0200, Tom Balazs wrote:
> On Floss Weekly #203 with Randall Schwartz
> http://twit.tv/show/floss-weekly/203
> Itamar Heim (speaking from Israel) talks about oVirt, a virtual datacenter
> management platform
> "The oVirt Project is an open virtualization project for anyone who cares
> about Linux-based KVM virtualization. Providing a feature-rich server
> virtualization management system with advanced capabilities for hosts and
> guests, including high availability, live migration, storage management,
> system scheduler, and more."

Though sadly that episode was dominated by a RedHat Marketing guy.
Floss Weekly are normally more technical and less cloudy.

-- 
Tzafrir Cohen | tzaf...@jabber.org | VIM is
http://tzafrir.org.il || a Mutt's
tzaf...@cohens.org.il ||  best
tzaf...@debian.org|| friend

___
Linux-il mailing list
Linux-il@cs.huji.ac.il
http://mailman.cs.huji.ac.il/mailman/listinfo/linux-il


Re: How do I disable NetworkManager in favor of dhcp setup?

2012-03-08 Thread Tzafrir Cohen
On Wed, Mar 07, 2012 at 09:02:27PM -0800, Michael Shiloh wrote:

> And what about those of us on embedded systems or others that offer only  
> text-based interfaces? I'm trying to solve exactly this problem on a  
> BeagleBoard via ssh, and can not use the GUI.

On my laptop I moved at some point to NetworkManager, but decided not to
use the GUI. I only use configuration files from
/etc/NetworkManager/system-connections .

$ cat /var/lib/NetworkManager/NetworkManager.state

[main]
NetworkingEnabled=true
WirelessEnabled=true
WWANEnabled=true


Be sure to enable the parts you want enabled (wireless, wwan) here.

I configure the wired network interface(s) in /etc/network/interfaces:

  allow-hotplug eth0
  iface eth0 inet dhcp

I also have some manual settings there.

Then you need a configuration file. The name of the file can be
arbitrary, but I name it the same as the name of the connection.

$ cat /etc/NetworkManager/system-connections/example_wireless_plain
[connection]
type=802-11-wireless
id=example_wireless_plain
# You MUST set a different uuid for each connection. Don't copy it:
# cat /proc/sys/kernel/random/uuid # or whatever
#uuid=8609b858-69b1-4ca6-adbe-7dcd47cb8711

[802-11-wireless]
ssid=TheirEssID


$ cat /etc/NetworkManager/system-connections/example_wpa2
[connection]
type=802-11-wireless
id=example_wpa2
# You MUST set a different uuid for each connection. Don't copy it:
# cat /proc/sys/kernel/random/uuid # or whatever
#uuid=ca9e4d19-a06f-4c7e-b0db-9f27c1792ba1

[802-11-wireless]
ssid=AnotherEssID
mode=infrastructure
security=802-11-wireless-security

[802-11-wireless-security]
key-mgmt=wpa-psk
psk=The Password



Those two stanzas covered some 99% of the cases for me. Scanning is
still more cumbersome, though. I never did get to autemate generating a
config. Shouldn't be complicated, though.


Reference:
http://projects.gnome.org/NetworkManager/developers/api/09/ref-settings.html

Sadly I did not see any progress in http://bugs.debian.org/637769 .

-- 
Tzafrir Cohen | tzaf...@jabber.org | VIM is
http://tzafrir.org.il || a Mutt's
tzaf...@cohens.org.il ||  best
tzaf...@debian.org|| friend

___
Linux-il mailing list
Linux-il@cs.huji.ac.il
http://mailman.cs.huji.ac.il/mailman/listinfo/linux-il


Re: Announce: Hspell 1.2

2012-03-03 Thread Tzafrir Cohen
On Sat, Mar 03, 2012 at 10:56:20PM +0200, Nadav Har'El wrote:

> Frankly, I never understood why OpenOffice not just GPL. Why the
> insistance to allow Sun and IBM to create proprietary versions of it?

OO.o was triple-licensed GPL+LGPL+MPL. The MPL is generally more liberal
than the LGPL - each file is considered separately. But even that was
not good enough for IBM, that kept its own proprietary fork based on a
separate, proprietarily-licensed copy of that work (also used for the
proprietary StarOffice / Oracle OpenOffice and its web version).

Eventually Oracle dropped all of its proprietary OO.o-based products and
OO.o was relicensed as Apache for IBM and one or two other
small vendors with most of the comunity moved to LibreOffice.

-- 
Tzafrir Cohen | tzaf...@jabber.org | VIM is
http://tzafrir.org.il || a Mutt's
tzaf...@cohens.org.il ||  best
tzaf...@debian.org|| friend

___
Linux-il mailing list
Linux-il@cs.huji.ac.il
http://mailman.cs.huji.ac.il/mailman/listinfo/linux-il


Re: Migrating a Linux (Debian Squeeze) system from one HD to another HD

2012-02-19 Thread Tzafrir Cohen
On Sun, Feb 19, 2012 at 09:22:37PM +0200, Omer Zak wrote:
> Hello Tzafrir,
> Thanks for your war story.
> 
> On Sun, 2012-02-19 at 18:34 +0000, Tzafrir Cohen wrote:
> > update-initramfs -u
> 
> The twist is that I need to boot some kernel to run it.
> What I did was:
> 1. Leave both disks connected to the PC.
> 2. Boot from the old (500GB) disk.
> 3. Mount the partitions of the new (2TB) disk on a directory tree
> originating in /tmp/new_2T, so that the to-be-root partition is mounted
> on it and other partitions are mounted on subdirectories of the
> to-be-root.
> 4. chroot /tmp/new_2T/ update-initramfs -u -k all -v

You make need to bind-mount /dev and mount /proc and/or /sys inside the
chroot.

> 5. Reboot - this time into the new (2TB) disk.
> 6. Get stuck because it doesn't find the root and swap partitions.
> 
> How did you boot your PC to run update-initramfs?

Rescue system. I could use both old and new.

-- 
Tzafrir Cohen | tzaf...@jabber.org | VIM is
http://tzafrir.org.il || a Mutt's
tzaf...@cohens.org.il ||  best
tzaf...@debian.org|| friend

___
Linux-il mailing list
Linux-il@cs.huji.ac.il
http://mailman.cs.huji.ac.il/mailman/listinfo/linux-il


Re: Migrating a Linux (Debian Squeeze) system from one HD to another HD

2012-02-19 Thread Tzafrir Cohen
On Sun, Feb 19, 2012 at 03:47:32PM +0200, Omer Zak wrote:
> Thanks, Daniel and Amos, for your suggestions.
> However they address the wrong part of my problem.
> All my regular files were already copied to the new hard disk and it was
> properly set up.
> The only problem is to boot from it.
> 
> I successfully set up grub2 to boot from the new disk's boot partition
> (a physical partition, not under LVM control).  For this purpose, I
> modified grub.cfg.
> I need to rebuild initrd.img files for all kernels that I have.

update-initramfs -u

> 
> Yedidiah, you questioned my finding that logical volume paths are
> hardwired in the initrd images.  They are.
> The relevant files are:
>   /scripts/local-top/cryptroot and /conf/param.conf
> in the initrd image.
> 
> According to man mkinitramfs, the file which configures the above
> is /etc/initramfs-tools/initramfs.conf and in practice I see files also
> in /etc/initramfs-tools/conf.d

If things don't work, chances are that lookingg there is not the right
place. Debian's defalt initrd is a bit largish, but tends to "Just
Works[tm]".

I recently needed to do a similar migration (also moving the LVM to
reside on top of a RAID-1) in a Debian Squeeze system. It turned out that:

* I left out some room for a physical /boot partition. It turned out
  there was no need for it.

* It took me a while to figure out why the system won't boot even though
  I regenerated the initramfs. After much digging in the scripts, in the
  extracted initrd (gunzip it and extract the cpio with cpio -id), I
  realized that if I really want to boot from a RAID I better install
  mdadm (and regenerate initramfs).

* Still one of those two disks crashed this morning :-( .

-- 
Tzafrir Cohen | tzaf...@jabber.org | VIM is
http://tzafrir.org.il || a Mutt's
tzaf...@cohens.org.il ||  best
tzaf...@debian.org|| friend

___
Linux-il mailing list
Linux-il@cs.huji.ac.il
http://mailman.cs.huji.ac.il/mailman/listinfo/linux-il


Re: Preparing to convince to shift to non-propriety documents formats

2012-02-17 Thread Tzafrir Cohen
On Fri, Feb 17, 2012 at 02:56:20PM +0200, Diego Iastrubni wrote:

> I installed Windows 7, and Office from MS. I also installed the latest 
> version 
> of LibreOffice. 
> 
> In MsOffice I created a "test 1,2,3" document (in Hebrew, RTL), saved as ODT, 
> and opened in LibreOffice. File loaded, directionality not working.
> 
> Created the same document in LibreOffice, saved and tried opening it in 
> MSWord. 
> This failed, as probably MSOfffice 2010 supports only ODF1.1 and LibreOffice 
> supports only 1.1.

"And LibreOffice generates ODF 1.2 files", right?

Options: Load/Save => General => ODF Format version

Anyway, isn't ODF 1.2 backward-compatible with older version of ODF by design?

Also note that the major incompatibility mentioned in that article was
in the spreadsheet format.

-- 
Tzafrir Cohen | tzaf...@jabber.org | VIM is
http://tzafrir.org.il || a Mutt's
tzaf...@cohens.org.il ||  best
tzaf...@debian.org|| friend

___
Linux-il mailing list
Linux-il@cs.huji.ac.il
http://mailman.cs.huji.ac.il/mailman/listinfo/linux-il


Re: vim mappings for Hebrew

2012-02-14 Thread Tzafrir Cohen
On Tue, Feb 14, 2012 at 04:21:06PM +0200, Nadav Har'El wrote:
> On Tue, Feb 14, 2012, Daniel Shahaf wrote about "Re: vim mappings for Hebrew":
> > :set keymap=hebrew
> 
> Indeed. Vim has a very nice feature where it can "emulate" a Hebrew
> keyboard for editing, i.e., you never have to switch to Hebrew using your
> normal mechanism, rather you stay in English mode, and just when you
> edit vim itself will insert Hebrew letters instead of English.
> 
> I have the following setup (you can put it in ~/.profile in VIMINIT, or
> in ~/.vimrc):
> 
>   map!  ^[:set invhk invrl^Ma 
>   map   :set invhk invrl^M 
> 
> Note the ^M is a carriage return. What these mappings do is that F12,
> either in command or editing mode, will reverse the hebrew-keymap
> property (invhk), and reverse the screen direction (invrl).

" For UTF-8
set al=1488

" The above from Nadav, using printable characters
map!  :set invhk invrla
map:set invhk invrl


> 
> I can then edit and with F12 switch back and forth between editing
> Hebrew and English, never using the systems keyboard switching
> (shift-alt, or whatever).
> 
> BTW, I also have
>   set guifont=heb8x13 
>   set guifont=-misc-fixed-medium-r-normal--13-120-75-75-c-80-iso8859-8

Is this still needed?

iso8859-8?

-- 
Tzafrir Cohen | tzaf...@jabber.org | VIM is
http://tzafrir.org.il || a Mutt's
tzaf...@cohens.org.il ||  best
tzaf...@debian.org|| friend

___
Linux-il mailing list
Linux-il@cs.huji.ac.il
http://mailman.cs.huji.ac.il/mailman/listinfo/linux-il


Re: Unlock dialog does not appear occasionally in Ubuntu

2012-02-12 Thread Tzafrir Cohen
On Sun, Feb 12, 2012 at 10:53:28AM +0200, Elazar Leibovich wrote:
> This is the second ubuntu installation I'm having this problem with.
> 
> Occasionaly, after the screen is locked, the Unlock dialog does not appear,
> and thus it is impossible to log in. I see the cursor and the desktop
> wallpaper, mouse is fully functional, but I cannot login.
> 
> I resort to `service lightdm restart`, but is there a more elegant
> workaround?

Workaround: enable the keys that were disabled (by default) in the recent X11
security fix:
http://who-t.blogspot.com/2012/01/xkb-breaking-grabs-cve-2012-0064.html

It's a matter of simple xkb configuration. As for the security
implications: well, it's your foot.

-- 
Tzafrir Cohen | tzaf...@jabber.org | VIM is
http://tzafrir.org.il || a Mutt's
tzaf...@cohens.org.il ||  best
tzaf...@debian.org|| friend

___
Linux-il mailing list
Linux-il@cs.huji.ac.il
http://mailman.cs.huji.ac.il/mailman/listinfo/linux-il


Re: Preparing to convince to shift to non-propriety documents formats

2012-02-05 Thread Tzafrir Cohen
On Sun, Feb 05, 2012 at 10:26:51PM +0200, geoffrey mendelson wrote:
>
> On Feb 5, 2012, at 10:02 PM, Boaz Rymland wrote:
>
>> yuck!
>
>
> So it was ok for SUN to buy StarOffice and give it away in order to  
> reduce MS/Office sales?
> OpenOffice's free price and open source was a marketing tool too.
>
> Before you go "you must be anti FOSS" on me, bear in mind there were  
> many true FOSS office type products (word processors, a spreadsheet or  
> two) and so on, that were crushed by StarOffice (and OpenOffice).

Nope. AbiSuite never made anything more that Abiword. The "GNOME Office"
has indeed lost steam due to OpenOffice's availability (but that was
only after the free (as in OpenOffice.org) version has become available.

KOffice carried on and still does (through recently forked/execed as
Caligra Office). SiagOffice was probably never a real contender and has
only managed to gain some popularity because nothing else was available.

On the other hand, Applixware and CorelOffice have fallen on the wayside
(for Corel: the Linux port). There are still rumoured to be one or two
reasonable proprietary office suites for Linux not based on OO.o .

-- 
Tzafrir Cohen | tzaf...@jabber.org | VIM is
http://tzafrir.org.il || a Mutt's
tzaf...@cohens.org.il ||  best
tzaf...@debian.org|| friend

___
Linux-il mailing list
Linux-il@cs.huji.ac.il
http://mailman.cs.huji.ac.il/mailman/listinfo/linux-il


Re: Preparing to convince to shift to non-propriety documents formats

2012-02-05 Thread Tzafrir Cohen
On Sun, Feb 05, 2012 at 03:52:18PM +0200, Boaz Rymland wrote:
> On Sun, Feb 5, 2012 at 1:26 PM, Tzafrir Cohen  wrote:
> 
> > On Sun, Feb 05, 2012 at 09:44:21AM +0200, Boaz Rymland wrote:
> >
> > > Google docs is a good but not the best alternative. Google is
> > > yet-another-corporate that even if more "public friendly", not a fully
> > > M$-Office substitute.
> >
> > In other words: while an account at Google does not cost money,Google
> > Docs is just as proprietary as MS-Office and Acrobat Reader[1]. I would not
> > have wanted to be forced to have an account there in order to interact
> > with school.
> >
> > [1] PDF itself is not bad as it has some other good alternatives
> > implementations. However relying on in-line remarks in the PDF file,
> > which is, AFAIK, supported only by the Adobe reader, is not a good idea.
> 
> right, but don't forget that to in order to "read only"  a document, you
> don't need a google account - just a publicly readable document who's link
> you've got, AFAIK. That's of course hardly a full solution but I'm going to
> take it step by step. My daughter has yet to receive assignments so its
> only about the weekly schedule documented distributed every week. While
> using Google Docs to distribute it, the staff can become accustomed to
> Google Docs and maybe even appreciate its comfortableness (the latter is a
> NTH). At the same time, I'll have a more easier "marketing job" to do.

Are you interested in a read-only or  read-write format?

While it's your fight to pick and not mine, I'm not sure I'd be happy if
a result would be the replacement of one proprietary format with
another.

-- 
Tzafrir Cohen | tzaf...@jabber.org | VIM is
http://tzafrir.org.il || a Mutt's
tzaf...@cohens.org.il ||  best
tzaf...@debian.org|| friend

___
Linux-il mailing list
Linux-il@cs.huji.ac.il
http://mailman.cs.huji.ac.il/mailman/listinfo/linux-il


Re: Preparing to convince to shift to non-propriety documents formats

2012-02-05 Thread Tzafrir Cohen
On Sun, Feb 05, 2012 at 09:44:21AM +0200, Boaz Rymland wrote:

> Google docs is a good but not the best alternative. Google is
> yet-another-corporate that even if more "public friendly", not a fully
> M$-Office substitute.

In other words: while an account at Google does not cost money,Google
Docs is just as proprietary as MS-Office and Acrobat Reader[1]. I would not
have wanted to be forced to have an account there in order to interact
with school.

[1] PDF itself is not bad as it has some other good alternatives
implementations. However relying on in-line remarks in the PDF file,
which is, AFAIK, supported only by the Adobe reader, is not a good idea.

-- 
Tzafrir Cohen | tzaf...@jabber.org | VIM is
http://tzafrir.org.il || a Mutt's
tzaf...@cohens.org.il ||  best
tzaf...@debian.org|| friend

___
Linux-il mailing list
Linux-il@cs.huji.ac.il
http://mailman.cs.huji.ac.il/mailman/listinfo/linux-il


Re: [OUT?] Help with Android?

2012-01-16 Thread Tzafrir Cohen
On Sun, Jan 15, 2012 at 10:22:16PM +0200, Michael Vasiliev wrote:

> Wait, Google Groups are not Usenet in disguise? :)

Yes, and no. Google Groups also serve as an interface to the Usenet.
But when you open a group of your own there, it's a provate one, not
part of the Usenet, and not accessible by standard Usenet
infrastructure.

-- 
Tzafrir Cohen | tzaf...@jabber.org | VIM is
http://tzafrir.org.il || a Mutt's
tzaf...@cohens.org.il ||  best
tzaf...@debian.org|| friend

___
Linux-il mailing list
Linux-il@cs.huji.ac.il
http://mailman.cs.huji.ac.il/mailman/listinfo/linux-il


Re: Free Software on Android

2011-12-29 Thread Tzafrir Cohen
On Wed, Dec 28, 2011 at 01:18:16PM +0200, Nadav Har'El wrote:
> Hi, I recently bought an Android machine (a Samsung Galaxy Player 4.0),
> and am quite enjoying it. Superficially, it isn't very similar to what
> we've come to expect from Linux machines, but in my opinion the Linuxness
> still shows through in many ways that are hard for me to enumerate.
> 
> Anyway, something which surprised me a bit is that although Android
> itself is free software, there seems to be very few free software
> apps, and even fewer high-quality free software which I'll be proud to use.
> The biggest (and only?) repository of free-software ("open source") apps
> I could find was f-droid, with around 150 apps.
> 
> I was wondering - am I missing something? Is there a thriving community
> of Android free software writers that I somehow missed, and someone can
> point me to it?
> 
> It got me thinking why when Linux started, free (open source) software
> thrived on it while commercial software was hardly available for it.
> Why is it the other way around with Android?
> 
> I think I found a couple of reasons:
> 
> 1. When Linux started and became popular, people did not have the
>illusion of being able to make money from selling applications.
>Richard Stallman didn't think he can become rich from selling copies
>of Emacs. David MacKenzie didn't think he can sell his version of
>"ls" to Unix users for $1 each. On other other hand, on Android, following
>Apple's lead, developers fell into the illusion that they can become
>rich by selling apps - and thus unless they have a strong ideological
>motivation to give out free software (in the GNU sense), they think -
>why NOT sell it on the market? Or why not make it free and make a few
>dollars from ads? The latter tendency - to stick ads everywhere, in
>at least 90% of the free apps I looked at - is by far the thing I hate
>most about Android so far.
> 
> 2. When Linux became popular, source still meant something to most, or
>at least many, people. People could compile from source, and had the
>compilers preinstalled and knew how to use them after reading a short
>"INSTALL" help file. With Android, 99.99% of the users wouldn't know how
>to use source even if you drop it on their head. In fact you can't
>really use the source if all you have is your android machine - you need
>an additional machine, with a complex cross-compiler installation.
> 
> I think that there are things that can be done on both points, and I wonder
> what other people think:
> 
> Regarding point 1, I'd like free & open source software to be a more
> visible option to Android users and start to replace ad-ridden
> closed-source free apps. Why can't the good open source software be more
> prominently visible on the android market? E.g., what prevents me from
> paying for an Android market account ($25, one time) and then uploading
> the good free software that I find and help make it more visible? Has
> anyone ever done that?

Talking's easy. If you care so badly about that, install e.g.
CyanogenMod on your phone, and don't install any of the properitary apps
(they are not included in the main CyanogenMod distribution).

Free Software is not very useful when it is a single program. It becomes
an obvious atvantage when it is a complete stack. Free Software has its
hands tied behind its back in a proprietary application market where
dependencies are frowned upon.

Next set up a build environment on the phone.

Also note that with the help of qemu and schroot you can get a
natively-looking arm chroot on your own Linux PC, assuming that Android
processes will run on a standard Linux kernel.

That said, another issue is the non-free software you use indirectly
through cloud service providers. But that is a different issue.

> 
> Regarding point 2, wouldn't it be nice if it were possible to have a
> programming language which you can use to program the Android, on the
> Android itself, and run applications? Applications written in that
> language could be downloaded in source code form and run, and modified
> by the user, without needing any cross-compiler setup or an additional
> computer. Is anyone aware of such a programming language for Android?

/bin/sh ? There are plenty of others, actually.

-- 
Tzafrir Cohen | tzaf...@jabber.org | VIM is
http://tzafrir.org.il || a Mutt's
tzaf...@cohens.org.il ||  best
tzaf...@debian.org|| friend

___
Linux-il mailing list
Linux-il@cs.huji.ac.il
http://mailman.cs.huji.ac.il/mailman/listinfo/linux-il


  1   2   3   4   5   6   7   8   9   10   >