Re: Linux web hosting / LAMP

2010-12-16 Thread Uri Even-Chen
Thank you all for your advice. I read your blog about rackspace cloud,
Hetz. You don't like them too much, do you? I think I will prefer not
to use shared hosting, but it's a good idea to test the software in
shared hosting while in development, and only later move to cloud web
hosting. Currently www.speedy.net is hosted on Servage (a shared
hosting). It works fine, for example you can check Speedy Whois and my
blog.

Shahar, is the Zend Server free as in FOSS? or just free of charge? at
this stage I tend to use only FOSS, I don't know the advantages of
Zend Server and I never used it before. I just read an article about
Zend on Calcalist yesterday
[http://www.calcalist.co.il/internet/articles/0,7340,L-3450861,00.html],
I receive their newsletter.  I think Zeev Suraski should not complain
about facebook not paying Zend.  Free software is free software, and
they received a lot of money from Microsoft.  Facebook is paying its
employees, which many of them are developers, and they also support
open source software.  I don't think they have to pay Zend for using
PHP.

By the way, I heard facebook created a PHP compiler to C++. Does it
mean they will release it as FOSS? It might speed up websites without
having to change anything, just install it and it would speed up your
website.

Uri Even-Chen
Mobile Phone: +972-50-9007559
E-mail: u...@speedy.net
Website: http://www.speedy.net/




On Wed, Dec 15, 2010 at 7:52 PM, Uri Even-Chen  wrote:
> Hi,
>
> I want to build a new social networking website called Speedy Net. I
> want to use PHP, Javascript and MySQL (LAMP). I am considering where
> to host this website, where one of the options is using Rackspace
> Cloud [http://www.rackspacecloud.com]. If I use Rackspace Cloud, I
> will need to select what type of hosting I want - cloud servers
> (managed or not), cloud sites or cloud files
> [https://signup.rackspacecloud.com/signup?id=1238]. I also need to
> select what Linux distribution to use
> [http://www.rackspacecloud.com/cloud_hosting_products/servers/technology/index.php#os_apps].
> The available options are:
>
> Arch 2010.05
> CentOS 5.5
> CentOS 5.4
> Debian 5.0 (Lenny)
> Fedora 14 (Laughlin)
> Fedora 13 (Goddard)
> Fedora 12 (Constantine)
> Gentoo 10.1
> Oracle EL R5U4
> Oracle EL R5U3 JEOS
> Red Hat EL 5.4
> Red Hat EL 5.3
> Ubuntu 10.04 LTS (Lucid Lynx)
> Ubuntu 9.10 (Karmic Koala)
> Ubuntu 9.04 (Jaunty Jackalope)
> Ubuntu 8.04.2 LTS (Hardy Heron)
>
> I don't know which distribution to choose! I only used Red Hat Linux,
> about 10 years ago, and even if I select Red Hat - I don't know which
> one. I don't know the difference between distributions, I just know I
> need LAMP.
>
> What do you recommend?
>
> Also, I understand if I choose an unmanaged server, I will need to
> install everything myself - including Apache, PHP and MySQL? Or are
> they installed in the distributions?
>
> How do I backup the database and files? Do I need to select a managed server?
>
> I also received a list of PHP Web Hosting
> [http://www.webhostingreport.com/best-php-hosting.html], but I'm quite
> suspicious of "unlimited" web hosting, for around $3.50 per month. How
> can web hosting be unlimited? Do I really get an unlimited website for
> $3.50 per month?!?
>
> Thanks,
> Uri Even-Chen
> Mobile Phone: +972-50-9007559
> E-mail: u...@speedy.net
> Website: http://www.speedy.net/
>

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


Sound problem with P7H55 MoBo Intel IbexPeak HDMI aplay versus alsamixer

2010-12-16 Thread Lev Olshvang

Hi,

My system  Asus P7HP55M Pro board +i3 530 processor running Ubuntu 
10.04, 10.10


Board had HDMI port to output  video and audio.
Video is OK,  cabel is ok because it is HDMI 1.4 (suppors audio )

I have issues with sound :
alsamixer under the kernel 2.6.32.26  shows only line in, mic and SPDIF 
output

aplay shows hdmi subdevice

I migrated to Ubuntu 10.10 to have a latest alsa version . Now alsamixer 
thinks it works with Intel IbexPeak HDMI chip, sound from line out gone.


I put a custom kernel (vanilla 2.6.36.2) hoping for the best but
still no sound.

aplay -l
 List of PLAYBACK Hardware Devices 
card 0: Intel [HDA Intel], device 0: ALC892 Analog [ALC892 Analog]
  Subdevices: 1/1
  Subdevice #0: subdevice #0
card 0: Intel [HDA Intel], device 3: ALC892 Digital [ALC892 Digital]
  Subdevices: 1/1
  Subdevice #0: subdevice #0

aplay -L
default
pulse
Playback/recording through the PulseAudio sound server
front:CARD=Intel,DEV=0
HDA Intel, ALC892 Analog
Front speakers
surround40:CARD=Intel,DEV=0
HDA Intel, ALC892 Analog
4.0 Surround output to Front and Rear speakers
surround41:CARD=Intel,DEV=0
HDA Intel, ALC892 Analog
4.1 Surround output to Front, Rear and Subwoofer speakers
surround50:CARD=Intel,DEV=0
HDA Intel, ALC892 Analog
5.0 Surround output to Front, Center and Rear speakers
surround51:CARD=Intel,DEV=0
HDA Intel, ALC892 Analog
5.1 Surround output to Front, Center, Rear and Subwoofer speakers
surround71:CARD=Intel,DEV=0
HDA Intel, ALC892 Analog
7.1 Surround output to Front, Center, Side, Rear and Woofer speakers
hdmi:CARD=Intel,DEV=0
HDA Intel, ALC892 Digital
HDMI Audio Output
hdmi:CARD=Intel,DEV=1
HDA Intel, INTEL HDMI 0
HDMI Audio Output


card 0: Intel [HDA Intel], device 7: INTEL HDMI 0 [INTEL HDMI 0]
  Subdevices: 1/1
  Subdevice #0: subdevice #0
card 0: Intel [HDA Intel], device 8: INTEL HDMI 1 [INTEL HDMI 1]
  Subdevices: 1/1
  Subdevice #0: subdevice #0
--
Alsamixer  correctly lists  master, front/line, 2 SPDIF and other 
controlsBUT NO HDMI



You see here the problem aplay is correct, alsamixer misses someting

The question is - what  is the missing part ?



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


Re: Linux web hosting / LAMP

2010-12-16 Thread shimi
On Thu, Dec 16, 2010 at 10:16 AM, Uri Even-Chen  wrote:

>
> By the way, I heard facebook created a PHP compiler to C++. Does it
> mean they will release it as FOSS? It might speed up websites without
> having to change anything, just install it and it would speed up your
> website.
>
>
>
It's already opensource, you can get the source code here:

https://github.com/facebook/hiphop-php

Do note that it's not as simple as one might think (it's not running the PHP
code under your favorite web server...). You should read
http://developers.facebook.com/blog/post/358 to understand more.

b.t.w. there's also http://www.phpcompiler.org/

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


Re: HW compatibility research: are intel i5 graphics and realtek net/audio hassle-free?

2010-12-16 Thread Lev Olshvang

On 12/15/2010 07:25 PM, Oleg Goldshmidt wrote:



On Wed, Dec 15, 2010 at 6:06 PM, geoffrey mendelson 
mailto:geoffreymendel...@gmail.com>> wrote:


There are plenty of them around. No one wants them because you can
buy a new computer with 1g of DDR2 or DDR3 RAM for less money than
1g alone of DDR(1) RAM.


Exactly.

There are two different Intel Graphics chip sets. I don't know
which is which, but a quick search should answer the question. The
earlier ones are chips that Intel bought a license to manufacture.
They are not very good in general and have closed source drivers.
This makes them OK for Windows, a problem for Linux. The second
are the newer ones Intel designed and builds.


Well, i5-650 is supposed to be a member of the Clarkdale family, and 
its little brother (i3-530) was reviewed, e.g., here


http://www.phoronix.com/scan.php?page=news_item&px=NzkwOA 



- driver problems reported, GPU hangs, etc. But the date is Jan 22, 
2010 - maybe there has been driver progress in the last 11 months?




My 2 cents:
I personally have ASUS P7H55 M-Pro with i3-530 processor + 4GB RAM( 
bought at KSP for ~1400 NIS)  running kernels 2.6.32- 3.6.36.2
Although the latest 2.6.36.2 still continues to patch intel chipset I915 
(drm patches) I did not noticed any problem with graphics.


The only issue I have is a sound :

in 2.6.32  no hdmi sound,  alsamixer did  not recognize sound card
in 2.6.36 - no sound at all, alsamixer shows too much non-existent 
controls but no hdmi output, it thinks it had Intel IbexPeak HDMI chip


I think i will post it in separate post, because I slipped from a subject

Intel's support/download page does not say a word about Linux - there 
are drivers for every Windows in the Galaxy, but there don't seem to 
be any proprietary Intel HD Linux drivers.


Oron, can you comment? ;-)

As for buying an I5 processor, there are newer I3's with similar
performance (for example 3gHz instead of 3.6gHz) for a lot less money.


Indeed, i3-540 3.06GHz is ILS505, while i5-650 3.20GHz is ILS815 at 
KSP. From what I see, the latter has VT-d that I may want to play with 
(or maybe not) that comes with Intel TXT ("trusted execution 
technology"), unfortunately, and Turbo Boost Frequency that sounds 
nice to have.


Various benchmarks that I saw (lies, damned lies, statistics, and 
benchmarks) seem to indicate a difference in overall performance, but 
not all that much.


Thanks for pointing this out.


As for realtek, they tend to have cheap chips, which generallty
work well. If you are concerend about support, check the exact
model number of the chip as they keep changing them and the linux
drivers do not always "keep up".

When you buy a mobo make sure you are getting one that supports
full 64 bit addressing.


The H55 chipset seems OK in this respect - 
http://www.intel.com/Assets/PDF/datasheet/322169.pdf


Be warned that most of the current production really cheap (around
600 NIS) LCD screens only have VGA ports. 



My LCD has a DVI port, but I never bothered to get a cable.

There are not a lot of things that run on Linux that use the extra
acceleration in expensive graphic cards, on the other hand if you
are also going to run Windows on it


Not unless it is in a VM for some as yet unidentified specific purpose.

(see my other comment below) and play high end games (Fallout New
Vegas anyone?) you will need an extra "hot" graphics card. 



No, I did say games were out of scope.

If you plan on running Windows on it, then IMHO you should buy a
name brand such as HP, Packard Bell, etc. The difference in cost
between them and a roll-your-own system is about the cost of a
Windows license. If you do not plan on running Windows on it, it
pays IMHO to buy a "local" company's product, e.g. Ivory or KSP
and avoid the extra cost.


No Windows or Mac OSX, so I'll stick to KSP or Ivory who seem to have 
competitive prices. Besides, I don't like HP for various reasons, and 
I wouldn't touch PB (they still exist?!) with a ten foot pole. ;-)


Thanks, Geoff,

--
Oleg Goldshmidt | p...@goldshmidt.org 


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


Re: Sound problem with P7H55 MoBo Intel IbexPeak HDMI aplay versus alsamixer

2010-12-16 Thread Oleg Goldshmidt
On Thu, Dec 16, 2010 at 11:01 AM, Lev Olshvang  wrote:
>
> Hi,
>
> My system  Asus P7HP55M Pro board +i3 530 processor running Ubuntu 10.04, 
> 10.10
>
> Board had HDMI port to output  video and audio.
> Video is OK,  cabel is ok because it is HDMI 1.4 (suppors audio )
>
> I have issues with sound :
> alsamixer under the kernel 2.6.32.26  shows only line in, mic and SPDIF output
> aplay shows hdmi subdevice

Sanity check: try different mixer (starting with alsamixer) and volume
control applications and see if there are any controls missing from
the GUI (usually somewhere under Preferences) and volume set to 0.

In the past I found that something like gnome-control-volume or
gst-mixer could be used to switch the right channel on, even though I
used KDE. I have no idea why. In my experience the issue was typically
microphone not working for Skype and such.

> I migrated to Ubuntu 10.10 to have a latest alsa version . Now alsamixer 
> thinks it works with Intel IbexPeak HDMI chip, sound from line out gone.

Not only HDMI this time?

> I put a custom kernel (vanilla 2.6.36.2) hoping for the best but
> still no sound.
>
> aplay -l
>  List of PLAYBACK Hardware Devices 
> card 0: Intel [HDA Intel], device 0: ALC892 Analog [ALC892 Analog]

Hmm... I have a 2.6.33 kernel lying around on my work laptop, and I
don't see ALC892 in Documentation/sound/alsa/HD-Audio-Models.txt. I
don't know if it is significant, nor do I know whether, say,
ALC882/883/885/888/889 is a good substitute. It probably is, and in
any case I understand that you have sound, just not through HDMI. This
probably means that what follows is not the solution, but if you have
no other ideas you might want to try your options.

Check your /etc/modprobe.d/alsa-base.conf (or whatever the Ubuntu
equivalent is) against "lspci | grep Audio" to see if the model
specified looks right. If you decide to play with the model then you
may try the following:

1) choose the default "auto" model, in this case the kernel relies on
the BIOS, and this means that the sound device should be enabled in
the BIOS - check that.

2) disable the sound card in the BIOS, boot, choose this or that model
that looks relevant from the HD-Audio-Models.txt list, and reload the
module/modules.

Just some random ideas...

--
Oleg Goldshmidt | o...@goldshmidt.org

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


Surprise : /proc/keys file depends on who is looking, super user can not see data of other users

2010-12-16 Thread Lev Olshvang

I have just noticed that   result of the cat /proc/keys command
displays different output for root and regular user, and the output for 
the root

user does not include keys of other users

(I see implementation for this in kernel tree  security/keys/proc.c - 
proc_key_users_show()



Is it some kind of security policy in Linux ? because I used to think 
that as a superuser I have access for all

information.
(kernel 2.6.36.2)

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


[HAIFUX LECTURE] Creative Commons Licenses - Dalit Ken-Dror - Part II

2010-12-16 Thread Orna Agmon Ben-Yehuda
On Monday, December 20th, at 18:30, Haifux will gather to hear Dalit
Ken-Dror continue her talk about

 Creative Commons Licenses, Open Source Software Licenses & the new
Israeli Copyright Act of 2007

Abstract

Part I of the talk covered the new Israeli Copyright Act of 2007. This part
of the talk will focus on Creative Commons Licenses.

=

We meet in Taub (CS Faculty) building, room 6. For instructions see:
http://www.haifux.org/where.html

Attendance is free, and you are all invited!



Future Haifux events include:

3/1/11   From VxWorks To Linux by Raz Ben Yehuda

Note: Boaz Goldstein's talk about Bash, which was intended to be given this
coming Monday, was postponed.


We are always interested in hearing your talks and ideas. If you wish to
give a talk, hold a discussion, or just plan some event haifux might be
interested in, please contact us at webmas...@haifux.org
-- 
Orna Agmon Ben-Yehuda.
http://ladypine.org
___
Linux-il mailing list
Linux-il@cs.huji.ac.il
http://mailman.cs.huji.ac.il/mailman/listinfo/linux-il