I am now talking about having some text displayed when it detects it is being viewed by a Linux system.
something like ---------------------------For Debian and Ubuntu based distributions [plus others] that use DEB install files please use that install version. These distributions include, among others; Debian, Ubuntu, Kubuntu, Linux Mint, . . . . . .
For Red Hat and Fedora based distributions [plus others] the use the RPM install files, please choose that install version
These distributions included, among others; Red Hat, Fedora . . . . . If you do not know which type you use, please consult you OS documentation. ---------------------------All you have to do is fill in the most popular distro versions for DEB installs and RPM installs lists.
All you are going to do is display the text when the page detects it is being viewed by a Linux OS. You do not need to check any other variable that might be passed on via the browser about the system. If it does pass on OS specifics like it is a Debian based OS, then you can display something or use that for some other "default" display method. Maybe some text about double checking the install type given to make sure it is the one that you are to use for your download and install.
On 11/11/2011 11:09 AM, Mas/_gemini wrote:
Sound very simple. But how would you determine if their system uses rpm or Deb? This information is not transmitted in the request header of http. On Fri, Nov 11, 2011 at 10:43 AM, webmaster for Kracked Press Productions<webmaster@krackedpress.com> wrote:As I said, if you determine that the viewer is using Linux, then display on the page below the detected type - ie. 64-bit DEB English - a list of Linux distros that their proper type of install. Maybe state that some system do not show their type withing the browser and that you can use this list to make sure you choose the correct install version. You display this message every time you detect the viewer is using a Linux OS for their system. Then you have only one detection variable to use. If Linux display the text, otherwise do not. Simple, right? On 11/11/2011 10:17 AM, Mas/_gemini wrote:Hello, Under Ubuntu 11.04 , you can set the default login on the login screen to ubuntu classic. This will disable unity for that user. In regards to the download page, I really do not see a way to determine the Distro via the browser unless the code accesses the user system. The distro data is normally included in a file under /etc for example under centos the distro info is in /etc/redhat-release and under ubuntu /etc/lsb-release cat lsb-release DISTRIB_ID=Ubuntu DISTRIB_RELEASE=11.10 DISTRIB_CODENAME=oneiric DISTRIB_DESCRIPTION="Ubuntu 11.10" The browser only shows the core kernel data build which is Linux 1386 or x64 . Same for windows and Apple. Mas On Fri, Nov 11, 2011 at 10:00 AM, webmaster for Kracked Press Productions<webmaster@krackedpress.com> wrote:I wonder is there could be some "hint" given on the download page. It it detects Linux as the OS, then a text could be displayed with the type of Linux and its known file type need. That would help some people who might get the choice wrong. I know that would be just a matter of making a list of the known, or most common, distros of Linux and then matching up whether it uses DEBs or RPMs for the download. That should be easy to make the "case statement" in Javascript, and easy to add more distros as they come to the forefront of the popular Linux versions. As I stated somewhere, Mint is gathering a lot of users [according to an article] who want Debian/Ubuntu based OS, but do not want to deal with Unity. I just tried Unity yesterday and I hate it. When I end up taking my Ubuntu 10.xx desktop to a newer Ubuntu-based OS, I will have to go to Mint if I want to avoid Unity. I could not find a place to default that Ubuntu 11.10 system to GNOME that 11.04 defaulted to when it when to from 10.10 to 11.04 on the upgrade. The 11.04 to 11.10 decided that it had the resources that 11.04 stated my system did not have, and defaulted to Unity. Since this was a clean install, with no data on the computer, I went to Mint. Actually I used Mint's OEM install to see how it was used to set up a system by a company before it was shipped to the user for them to setup their own account info. On 11/11/2011 09:08 AM, Christian Lohmaier wrote:On Fri, Nov 11, 2011 at 2:36 PM, webmaster for Kracked Press Productions<webmaster@krackedpress.com> wrote:On 11/11/2011 06:52 AM, Christian Lohmaier wrote:[...] You can check on this page what the values your browser reports are: http://jsfiddle.net/ZZRSk/embedded/result/ If you think that any info can be used to derive "ah, this is a deb-user", then please share the results :-)[...] It just was when I went to that page with OSs that were Ubuntu 11.xx based. I wonder if Firefox 4.x and up could be the issue? I use 3.x.x with Ubuntu 10.xx and the same for Windows. I do not like the new look for FF and I avoid it if possible. Ubuntu/Mint 11.xx used FF 4.x.x as its default.Once again: The info is queried using javascript, and what you get of course depends on the browser, as the browser is who gives the reply. And the distribution can be obtained/guessed from the userAgent string at best. But if it is a vanilla, unmodified string, you cannot have any informatin to judge, and hence you need to choose a default.Could you add to the list Linux Mint as a detected value for DEBs?Does the information shown on the jsfiddle page allow to derive that it is linux Mint that is being used?Also, I ran that browser detail link and it only showed that the OS was Linux, not Ubuntu, Mint, DEB or RPM based.So - how would you determine that it is linux mint? If you know a way, share it. Once it is know that mint is used, the debs can be chosen. But the problem is that you cannot tell whether the user is running mint, fedora, debian, mandriva, mageia, .... unless there is a hint in the useragent string. And historically only debian and ubuntu who copied many things from debian did have a modified useragent string. Again: If you know a way to derive information about the distro/deb/rpm by means of javascript, then please share it and it will be added. ciao Christian-- Unsubscribe instructions: E-mail to website+help@global.libreoffice.org Problems? http://www.libreoffice.org/get-help/mailing-lists/how-to-unsubscribe/ Posting guidelines + more: http://wiki.documentfoundation.org/Netiquette List archive: http://listarchives.libreoffice.org/global/website/ All messages sent to this list will be publicly archived and cannot be deleted-- Unsubscribe instructions: E-mail to website+help@global.libreoffice.org Problems? http://www.libreoffice.org/get-help/mailing-lists/how-to-unsubscribe/ Posting guidelines + more: http://wiki.documentfoundation.org/Netiquette List archive: http://listarchives.libreoffice.org/global/website/ All messages sent to this list will be publicly archived and cannot be deleted
-- Unsubscribe instructions: E-mail to website+help@global.libreoffice.org Problems? http://www.libreoffice.org/get-help/mailing-lists/how-to-unsubscribe/ Posting guidelines + more: http://wiki.documentfoundation.org/Netiquette List archive: http://listarchives.libreoffice.org/global/website/ All messages sent to this list will be publicly archived and cannot be deleted