LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Hardware (https://www.linuxquestions.org/questions/linux-hardware-18/)
-   -   Well all I can say is.... WOW! (https://www.linuxquestions.org/questions/linux-hardware-18/well-all-i-can-say-is-wow-209350/)

perry 07-25-2004 01:16 AM

Well all I can say is.... WOW!
 
now i just tried to figure out why my Starcraft.exe wouldn't work under wine (it has to do with not being able to read the cdrom) but I found this resource on the Internet about Setting up Wine for Starcraft and was following directions when it mentioned something about launching another x-server to run starcraft into another window.

now just earlier i had been reading some material on how terrible the x-windows system is, but you know, i was suitably impressed in how it just handled itself.

i downloaded and customized the script that it indicated to do and then ran it.

Code:

#!/bin/bash
# Author: Brian King
# Comments partially edited by Ilkka Forsblom
# TODO: Check if the cdrom in the drive is the starcraft cdrom.
#
TYPE=$1
NORMINST="/mnt/windows/Starcraft/StarCraft.exe"
# If you have a separate spawn installation, running this script
# with the argument "spawn" will run the spawn installation
# (defined here) instead.
SPAWNINST="/mnt/windows/Starcraft/StarCraft.exe"
# This should be your cdrom device ... it should also be in your
# wine.conf somewhere...
DEVICE="/dev/cdrom"
# This file should be an XF86Config file with only the 640x480x8bit
# entry available. The file should be in the same directory as the
# default XF86Config file.
CONFIG="xorg_sc.conf"
# uncomment for esound support
#SOUND="/usr/bin/esddsp "

ISLINK=`/bin/ls -l $DEVICE|grep "\->"`
if [ "x${ISLINK}" != "x" ] ; then
    DEVICE=`/bin/ls -l $DEVICE|sed -e 's/.*-> //'`
fi

DFOUT=`df|grep $DEVICE`

# I believe this should flush all buffers to disk and minimize damage
# if starcraft fails. I added this because I just lost my last 5 days of
# work from a starcraft crash.
sync;sync;sync

# if the cdrom isn't mounted and we're not playing a spawn game
if [ "x${DFOUT}" = "x" ] && [ "x${TYPE}" != "xspawn" ] ; then
 # mount cdrom
 eject
 echo "enter cdrom then hit enter"
 read enter
 mount $DEVICE
fi
echo $TYPE
if [ "x${TYPE}" = "xspawn" ] ; then
 xinit $SOUND /usr/lib/bin/wine --display :1 "$SPAWNINST" -- :1 -xf86config $CONFIG
else
 xinit $SOUND /usr/lib/bin/wine --display :1 "$NORMINST" -- :1 -xf86config $CONFIG
fi

killall wine

did it blow my machine up.....?

Nope!

now it didn't fully work in getting starcraft to work but it did manage to start an x-server and then... knowing a little about switching screens i found that ctrl-alt-f7 gave me my screen back and ctrl-alt-f2 gave me another 640x480 screen where starcraft was attempting to launch...

well here's my point: i switched back to my f7 to see diagnostics in the terminal window indicating that:

Code:

Get Slacked! [perry#~] ./starcraft


_XSERVTransSocketOpenCOTSServer: Unable to open socket for inet6
_XSERVTransOpen: transport open failed for inet6/slackware:1
_XSERVTransMakeAllCOTSServerListeners: failed to open listener for inet6

Release Date: 18 December 2003
X Protocol Version 11, Revision 0, Release 6.7
Build Operating System: Linux 2.4.26 i686 [ELF]
Current Operating System: Linux slackware 2.4.26 #8 Mon Jun 14 19:09:31 PDT 2004 i686
Build Date: 05 June 2004
        Before reporting problems, check http://wiki.X.Org
        to make sure that you have the latest version.
Module Loader present
Markers: (--) probed, (**) from config file, (==) default setting,
        (++) from command line, (!!) notice, (II) informational,
        (WW) warning, (EE) error, (NI) not implemented, (??) unknown.
(==) Log file: "/var/log/Xorg.1.log", Time: Sun Jul 25 02:52:03 2004
(++) Using config file: "/etc/X11/xorg_sc.conf"
Could not init font path element /usr/X11R6/lib/X11/fonts/local, removing from list!
Could not init font path element /usr/X11R6/lib/X11/fonts/CID, removing from list!
Could not init font path element /usr/share/fonts, removing from list!
Could not init font path element /usr/X11R6/lib/X11/fonts, removing from list!
Could not init font path element /usr/local/share/fonts, removing from list!
Could not init font path element /usr/share/fonts/default, removing from list!
Could not init font path element /usr/share/fonts/default/Type1, removing from list!
AUDIT: Sun Jul 25 02:52:09 2004: 5222 X: client 1 rejected from local host
Xlib: connection to ":1.0" refused by server
Xlib: No protocol specified


waiting for X server to begin accepting connections .
Xlib: connection to ":1.0" refused by server
Xlib: No protocol specified

..
Xlib: connection to ":1.0" refused by server
Xlib: No protocol specified

..
Xlib: connection to ":1.0" refused by server
Xlib: No protocol specified

..

so i go back to f2 and have to make a decision. i said to myself, now if i ctrl-alt-backspace i just might end up knocking out the entire x-windows session, but then i said to myself, "but you know, wouldn't it be cool if...."

and i'll be damned if i didn't press ctrl-alt-backspace on f2 (the starcraft screen) and only f2 got reset, my regular display didn't flinch a bit, it was as if i had not done anything....

well, i know, "so what's my point right"

well, it's just nice to know that poor old x-windows is alot more solid that it's given credit for...

cheers

- perry


All times are GMT -5. The time now is 10:26 PM.