LinuxQuestions.org
Help answer threads with 0 replies.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Hardware
User Name
Password
Linux - Hardware This forum is for Hardware issues.
Having trouble installing a piece of hardware? Want to know if that peripheral is compatible with Linux?

Notices


View Poll Results: Do you think X-Windows is a cool system?
Yes, it's thebest damned graphical interface out there! 2 22.22%
Yes, it's not bad for what it's promised and delivered! 3 33.33%
It supports the *nix philosophy well! 2 22.22%
It's ok! 1 11.11%
It's better than Windows... 1 11.11%
It's worse than Windows... 0 0%
Voters: 9. You may not vote on this poll

Reply
  Search this Thread
Old 07-25-2004, 01:16 AM   #1
perry
Member
 
Registered: Sep 2003
Location: USA & Canada
Distribution: Slackware 12.0
Posts: 978

Rep: Reputation: 30
Talking 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

Last edited by perry; 07-25-2004 at 01:23 AM.
 
  


Reply



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
wow, im here now xpression Linux - Newbie 5 09-09-2005 05:33 PM
wow DarkVenom Linux - Newbie 2 05-22-2004 01:52 PM
wow ch4s3r Linux - Newbie 4 09-03-2003 10:23 PM
Wow LinuzRulz General 1 04-23-2002 11:13 PM
wow wow wow acid_kewpie Linux - General 1 01-22-2002 05:28 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Hardware

All times are GMT -5. The time now is 11:06 AM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration