<?xml version="1.0" encoding="utf-8"?>
<feed xmlns="http://www.w3.org/2005/Atom">
	<title type="html"><![CDATA[Linux Forum &mdash; HoMM3 не устанавливается]]></title>
	<link rel="self" href="https://linuxforum.ru/extern.php?action=feed&amp;tid=8721&amp;type=atom" />
	<updated>2010-11-28T11:12:17Z</updated>
	<generator>PunBB</generator>
	<id>https://linuxforum.ru/viewtopic.php?id=8721</id>
		<entry>
			<title type="html"><![CDATA[Re: HoMM3 не устанавливается]]></title>
			<link rel="alternate" href="https://linuxforum.ru/viewtopic.php?pid=116952#p116952" />
			<content type="html"><![CDATA[<p>спс, буду читать и зню теперь к кому обратиться&nbsp; wink</p>]]></content>
			<author>
				<name><![CDATA[juniorroy]]></name>
				<uri>https://linuxforum.ru/profile.php?id=12437</uri>
			</author>
			<updated>2010-11-28T11:12:17Z</updated>
			<id>https://linuxforum.ru/viewtopic.php?pid=116952#p116952</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[Re: HoMM3 не устанавливается]]></title>
			<link rel="alternate" href="https://linuxforum.ru/viewtopic.php?pid=116939#p116939" />
			<content type="html"><![CDATA[<p>Игра работает в итоге в любом дистрибутиве. У меня на Flash-диске два раздела, Ft32 и ext2. На втором - линуксовые вещи, секретные файлы, и игры. Герои три запустились во всех линуксах, в которых я пробовал. Даже на тех, где нет 32-битных библиотек.<br />P.S. Загляни в тему &quot;Игры, которые запускаются в Linux, а также применение эмуляторов&quot;. Я там регулярно оставляю что-нибудь, в том числе и ссылку на Героев. Почитай как русиицировать там.</p>]]></content>
			<author>
				<name><![CDATA[Zenitur]]></name>
				<uri>https://linuxforum.ru/profile.php?id=1097</uri>
			</author>
			<updated>2010-11-28T10:23:58Z</updated>
			<id>https://linuxforum.ru/viewtopic.php?pid=116939#p116939</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[Re: HoMM3 не устанавливается]]></title>
			<link rel="alternate" href="https://linuxforum.ru/viewtopic.php?pid=116937#p116937" />
			<content type="html"><![CDATA[<p>И ещё, про &quot;патч для патча&quot; они загнули. Это всё тот же первый патч. но с изменённым исходным кодом.</p>]]></content>
			<author>
				<name><![CDATA[Zenitur]]></name>
				<uri>https://linuxforum.ru/profile.php?id=1097</uri>
			</author>
			<updated>2010-11-28T10:22:13Z</updated>
			<id>https://linuxforum.ru/viewtopic.php?pid=116937#p116937</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[Re: HoMM3 не устанавливается]]></title>
			<link rel="alternate" href="https://linuxforum.ru/viewtopic.php?pid=116936#p116936" />
			<content type="html"><![CDATA[<p><a href="http://2nature.ru/node/324">http://2nature.ru/node/324</a> - вот статья.<br />Если у тебя 64-битный дистрибутив, то первое сетап вообще не запустится, надо будет распаковать несколько архивов самостоятельно, и ты получишь игру. Ну а затем установить патч 1.3.1a. Что именно надо распаковывать я не помню, надо использовать Google чтобы найти...</p>]]></content>
			<author>
				<name><![CDATA[Zenitur]]></name>
				<uri>https://linuxforum.ru/profile.php?id=1097</uri>
			</author>
			<updated>2010-11-28T10:20:02Z</updated>
			<id>https://linuxforum.ru/viewtopic.php?pid=116936#p116936</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[Re: HoMM3 не устанавливается]]></title>
			<link rel="alternate" href="https://linuxforum.ru/viewtopic.php?pid=116935#p116935" />
			<content type="html"><![CDATA[<p>Для того, чтобы установить эту игру, надо прочитать мануал. Официальные файлы установки работают с ошибками.<br />Я это сделал по мануалу и получил вот это:</p><p><a href="http://rapidshare.com/files/405091643/Heroes3.tar.001.html">http://rapidshare.com/files/405091643/H … r.001.html</a><br /><a href="http://rapidshare.com/files/405098394/Heroes3.tar.002.html">http://rapidshare.com/files/405098394/H … r.002.html</a></p><p>Это то что получится в итоге. Но если хочешь дойти до конца, сейчас мануал поищу...</p>]]></content>
			<author>
				<name><![CDATA[Zenitur]]></name>
				<uri>https://linuxforum.ru/profile.php?id=1097</uri>
			</author>
			<updated>2010-11-28T10:18:01Z</updated>
			<id>https://linuxforum.ru/viewtopic.php?pid=116935#p116935</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[HoMM3 не устанавливается]]></title>
			<link rel="alternate" href="https://linuxforum.ru/viewtopic.php?pid=116879#p116879" />
			<content type="html"><![CDATA[<p>скачал героев для лайнакс, запускаю установочный скрипт:<br /><div class="termtitle" style="font-family: sans-serif; position:relative; height:auto; width:auto; background:#3A4061; color:#FFFFFF; padding: 1px;"><b> Консоль:</b></div>
<div class="termcont" style="font-family: Terminus; position:relative; height:auto; width:auto; overflow-x:scroll; white-space: nowrap ; overflow-y:auto;background:#000000; color:#4EF44E; line-height:1.2; padding: 3px; font-size: 1rem; max-height: 60vh">$ sh setup.sh<br />$</div></p><p>сам скрипт:<br /></p><div class="codebox"><pre><code>#! /bin/sh
#
# Product setup script
#
# Go to the proper setup directory (if not already there)
cd `dirname $0`

# defaults
FATAL_ERROR=&quot;Fatal error, no tech support email configured in this setup&quot;
# try to get root prior to running setup?
# 0: no
# 1: prompt, but run anyway if fails
# 2: require, abort if root fails
GET_ROOT=0
XSU_ICON=&quot;&quot;
# You may want to set USE_XHOST to 1 if you want an X11 application to
# be launched with root privileges right after installation
USE_XHOST=0
# this is the message for su call, printf
SU_MESSAGE=&quot;You need to run this installation as the super user.\nPlease enter the root password.&quot;

if test -x /bin/su; then
    SU_CMD=/bin/su
else
    SU_CMD=/usr/bin/su
fi

NULL=/dev/null
# See if we have the XPG4 utilities (Solaris)
if test -d /usr/xpg4/bin; then
    PATH=/usr/xpg4/bin:$PATH
fi

# Return the appropriate architecture string
DetectARCH()
{
    status=1
    case `uname -m` in
        amd64 | x86_64)
        echo &quot;x86_64&quot;
        status=0;;
        i?86 | i86*)
        echo &quot;x86&quot;
        status=0;;
        90*/*) 
        echo &quot;hppa&quot;
        status=0;;
        *)
        case `uname -s` in
            IRIX*)
            echo &quot;mips&quot;
            status=0;;
            AIX*)
            echo &quot;ppc&quot;
            status=0;;
            *)
            arch=`uname -p 2&gt; /dev/null || uname -m`
            if test &quot;$arch&quot; = powerpc; then
                echo &quot;ppc&quot;
            else
                echo $arch
            fi
            status=0;;
        esac
    esac
    return $status
}

# Return the appropriate version string
DetectLIBC()
{
    status=1
      if [ `uname -s` != Linux ]; then
          echo &quot;glibc-2.1&quot;
          return $status
      fi
      if [ -f `echo /lib/libc.so.6* | tail -n 1` ]; then
          if fgrep GLIBC_2.1 /lib/libc.so.6* 2&gt; $NULL &gt;&gt; $NULL; then
                  echo &quot;glibc-2.1&quot;
                  status=0
          elif fgrep GLIBC_2.2 /lib/libc.so.6* 2&gt; $NULL &gt;&gt; $NULL; then
                  echo &quot;glibc-2.1&quot;
                  status=0
          else
                  echo &quot;glibc-2.0&quot;
                  status=0
          fi
      elif [ -f /lib/libc.so.5 ]; then
          echo &quot;libc5&quot;
          status=0
      else
          echo &quot;unknown&quot;
      fi
      return $status
}

DetectOS()
{
    os=`uname -s`
    if test &quot;$os&quot; = &quot;OpenUNIX&quot;; then
        echo SCO_SV
    else
        echo $os
    fi
    return 0
}

# Detect the environment
arch=`DetectARCH`
libc=`DetectLIBC`
os=`DetectOS`

args=&quot;&quot;

# Import preferences from a secondary script
if [ -f setup.data/config.sh ]; then
    . setup.data/config.sh
elif [ -f SETUP.DAT/CONFIG.SH\;1 ]; then
    # HP-UX and other systems unable to get LFN correctly
    . SETUP.DAT/CONFIG.SH\;1
fi

# Add some standard paths for compatibility
PATH=$PATH:/usr/ucb

# call setup with -auth when ran through su/xsu
auth=0
if [ &quot;$1&quot; = &quot;-auth&quot; ]
then
  auth=1
  shift
fi

if [ &quot;$auth&quot; -eq 1 ]
then
  # if root is absolutely required
  # this happens if xsu/su execs setup.sh but it still doesn&#039;t have root rights
  if [ &quot;$GET_ROOT&quot; -eq 2 ]
  then
    # NOTE TTimo: this causes the following error message in some cases:
    # return: can only `return&#039; from a function or sourced script
    # BUT: in other cases, the return is legit, if you replace by an exit call, it&#039;s broken
    exit 1
  fi
fi

# Find the installation program
# try_run [-absolute] [-fatal] INSTALLER_NAME [PARAMETERS_PASSED]
#   -absolute option: if what you are trying to execute has an absolute path
#   NOTE: maybe try_run_absolute would be easier
#   -fatal option: if you want verbose messages in case
#      - the script could not be found
#      - it&#039;s execution would fail
#   INSTALLER_NAME: setup.gtk or setup
#   PARAMETERS_PASSED: additional arguments passed to the setup script
try_run()
{
    absolute=0
    if [ &quot;$1&quot; = &quot;-absolute&quot; ]; then
      absolute=1
      shift
    fi

    fatal=0
    # older bash &lt; 2.* don&#039;t like == operator, using =
    if [ &quot;$1&quot; = &quot;-fatal&quot; ]; then
      # got fatal
      fatal=1
      shift
    fi

    setup=$1
    shift
    
    # First find the binary we want to run
    failed=0
    if [ &quot;$absolute&quot; -eq 0 ]
    then
      setup_bin=&quot;setup.data/bin/$os/$arch/$libc/$setup&quot;
      # trying $setup_bin
      if [ ! -f &quot;$setup_bin&quot; ]; then
          setup_bin=&quot;setup.data/bin/$os/$arch/$setup&quot;
            # libc dependant version failed, trying again
          if [ ! -f &quot;$setup_bin&quot; ]; then
              failed=1
          fi
      fi
      if [ &quot;$failed&quot; -eq 1 ]; then
          if [ &quot;$fatal&quot; -eq 1 ]; then
              cat &lt;&lt;__EOF__
This installation doesn&#039;t support $libc on $os / $arch
(tried to run $setup)
$FATAL_ERROR
__EOF__
          fi
          return $failed
      fi

      # Try to run the binary ($setup_bin)
      # The executable is here but we can&#039;t execute it from CD
      # NOTE TTimo: this is dangerous, we also use $setup to store the name of the try_run
      setup=&quot;$HOME/.setup$$&quot;
      rm -f &quot;$setup&quot;
      cp &quot;$setup_bin&quot; &quot;$setup&quot;    
      chmod 700 &quot;$setup&quot;
      trap &quot;rm -f $setup&quot; 1 2 3 15
    fi
    # echo Running &quot;$setup&quot; &quot;$@&quot;
    if [ &quot;$fatal&quot; -eq 0 ]; then
        &quot;$setup&quot; &quot;$@&quot;
        failed=&quot;$?&quot;
    else
        &quot;$setup&quot; &quot;$@&quot; 2&gt;&gt; $NULL
        failed=&quot;$?&quot;
    fi
    if [ &quot;$absolute&quot; -eq 0 ]
    then
      # don&#039;t attempt removal when we are passed an absolute path
      # no, I don&#039;t want to imagine a faulty try_run as root on /bin/su
      rm -f &quot;$setup&quot;
    fi
    return &quot;$failed&quot;
}

# if we have not been through the auth yet, and if we need to get root, then prompt
if [ &quot;$auth&quot; -eq 0 ] &amp;&amp; [ &quot;$GET_ROOT&quot; -ne 0 ]
then
  GOT_ROOT=`id -u`
  if [ &quot;$GOT_ROOT&quot; != &quot;0&quot; ]
  then
    if [ &quot;$USE_XHOST&quot; -eq 1 ]; then
        xhost +127.0.0.1 2&gt; $NULL &gt; $NULL
    fi
    try_run xsu -e -a -u root -c &quot;sh `pwd`/setup.sh -auth&quot; $XSU_ICON
    status=&quot;$?&quot;
    # echo &quot;got $status&quot;
    # if try_run successfully executed xsu, it will return xsu&#039;s exit code
    # xsu returns 2 if ran and cancelled (i.e. the user &#039;doesn&#039;t want&#039; to auth)
    # it will return 0 if the command was executed correctly
    # summing up, if we get 1, something failed
    if [ &quot;$status&quot; -eq 0 ]
    then
      # the auth command was properly executed
      exit 0
    elif [ &quot;$status&quot; -eq 1 ]
    then
      # xsu wasn&#039;t found, or failed to run
      # if xsu actually ran and the auth was cancelled, $status is 2
      # try with su
      printf &quot;$SU_MESSAGE\n&quot;
      try_run -absolute $SU_CMD root -c &quot;export DISPLAY=$DISPLAY;sh `pwd`/setup.sh -auth&quot;
      status=&quot;$?&quot;
      if [ &quot;$status&quot; -eq 0 ]; then
        # the auth command was properly executed
        exit 0
      else
        exit 1
      fi
    elif [ &quot;$status&quot; -eq 3 ]
    then
      # the auth failed or was canceled
      # we don&#039;t want to even start the setup if not root
      echo &quot;Please run this installation as the super user&quot;
      exit 1
    fi
    # continue running as is
  fi
fi

# Try to run the setup program - first look for a GTK2 binary
try_run setup.gtk2 $args $* 2&gt; /dev/null
status=$?
if [ $status -ne 0 ] &amp;&amp; [ $status -ne 2 ] &amp;&amp; [ $status -ne 3 ] ; then 
    try_run setup.gtk $args $* 
    status=$?
    if [ $status -ne 0 ] &amp;&amp; [ $status -ne 2 ] &amp;&amp; [ $status -ne 3 ] ; then  # setup.gtk couldn&#039;t connect to X11 server - ignore
        try_run setup $args $*
        status=$?
        if [ $status -ne 0 ] &amp;&amp; [ $status -ne 2 ] &amp;&amp; [ $status -ne 3 ] ; then
            echo &quot;The setup program seems to have failed on $arch/$libc&quot;
            echo
            echo $FATAL_ERROR
        fi
    fi
fi

exit $status</code></pre></div><p>ubuntu 10.10</p>]]></content>
			<author>
				<name><![CDATA[juniorroy]]></name>
				<uri>https://linuxforum.ru/profile.php?id=12437</uri>
			</author>
			<updated>2010-11-28T06:27:26Z</updated>
			<id>https://linuxforum.ru/viewtopic.php?pid=116879#p116879</id>
		</entry>
</feed>
