Article View: news.software.readers
Article #195315Re: Attn LUU TRAN
From: Mike Dee
Date: Thu, 08 Feb 2007 03:13
Date: Thu, 08 Feb 2007 03:13
166 lines
7297 bytes
7297 bytes
snipe@spambin.fsnet.co.uk (Sn!pe) wrote in
news:1ht68av.1x86gonxjo0f9N%snipe@spambin.fsnet.co.uk:
> Mike Dee <mikedee@emteedee.invalid> wrote:
>
>> > I've just resurrected my old big beige box and put Kubuntu 6.10
>> > on it, which I hope will be OK for Xnews under Wine; I'd like
>> > to try running a similar setup here with this Mac PowerBook.
>> > Have you any more pointers before I start my own research
>> > please, Mike? (Kubuntu newbie here)
>>
>> The Mac I'm using for Xnews is running MacOS X, not Linux -
>> though it does have a PPC Linux partition, PPC Linux does not
>> (cannot) run Wine.
[...]
> Perhaps I haven't made myself clear: My Linux box is an x86 (AMD
> Athlon 1.2 GHz) and it's on that that I propose to run Xnews/Wine,
> then connect to Xnews with my Mac Powerbook using either your X11
> method or some flavour of VNC ( I already run Chicken of the VNC
> and OSXvnc on my Mac network). Is that not roughly how you're set
> up, Mike?
Ah ha. When someone says "beige box", I automatically think "old
Mac". Dunno why. - No, you shouldn't have too many problems with
that setup.
I'll now assume that you have configured basic networking in
Kubuntu.
Install Wine via the "Add/Remove" program's menu, I'm also assuming
Kubuntu has this menu (under the "Main menu"), I'm familiar with
Ubuntu look and feel only.
Once installed. In your "home" directory choose "Show Hidden Files"
(Ctrl+H) from the "View" menu. You should now see a folder named
.wine, if not, something went wrong with your Wine install.
As Xnews is a "no-install" program, having the .wine folder visible
makes it easy to move Xnews into it. DL the Xnews "latest version"
5.04.25 AND the "TEST" version 2006.08.24 from
http://xnews.newsguy.com/ Unzip version 5.x and the test version,
replace version 5.x's Xnews.exe with the one in 2006.08.24's "TEST"
zip file. Move the unzipped and updated Xnews folder into the
"Program Folder" inside the .wine folder
Before you can run Xnews, some system files need to be copied over
from a Windows box into the Xnews folder. These are "comctl32.dll,
riched20.dll, riched30.dll, riched32.dll, riched32.ocx". I'm not
sure if all are required, but I'm happier if they're included.
Set these up these in winecfg, a Wine configuration tool (type:
winecfg in a CL)
Under winecfg's "Applications" tab, locate and add Xnews.exe, give
it the Windows environment you wish to emulate for Xnews (probably
the same one you got the DLLs from; e.g. Windows 98)
Under winecfg's "Libraries" tab locate the installed DLLs in Xnews
folder. - Libraries for Xnews.exe should now read:
comctl32 (native, builtin)
riched20 (native, builtin)
riched30 (native, builtin)
riched32 (native, builtin)
Under winecfg's "Graphics" tab check "Allow the Window Manager to
manage created windows"
Thats the basic Xnews under Wine setup and you can now run Xnews by
typing wine <path to Xnews.exe> in a Terminal CL to launch. Xnews
will want you to set up a server (aioe is good for this 1st run),
Once thats finished, next thing you'll notice is the fonts look
"off" (and Xnews's windows need adjusting to suit). So back to the
Windows box you got the DLLs from and grab a few Windows fonts for
Wine. Typically you would get Arial, Comic Sans, Palatino, Tahoma,
Times New Roman, and just about anything else you might fancy using
in Xnews. Move your fonts into the fonts folder in the fake Windows
drive located inside .wine
Next time you restart Xnews you can make adjustments to fonts and
colours in Xnews's setup dialog and get it looking and running
pretty much as it does on Windows. You can also create a shell
script launcher to start Xnews from the Linux desktop eliminating
the need to enter the CL in a terminal each time.
Get to this point 1st, then you can think about accessing this Xnews
from a Mac, should you wish to continue with it. You should be
looking into installing and setting up X forwarding on
Kubuntu.
You will need to decide on a shell to use. I use rsh, it suits our needs.
Here's the shell script I'm using, it's called start_xapp and resides
in my home directory
#! /bin/sh
#
# For starting an application from X-terms via rsh
#
export PATH=/usr/local/bin:/usr/local/bin/X11:/usr/X11R6/bin:$PATH
export XAPPLRESDIR=$HOME/app-defaults/
[ "$TERM" ] || export TERM=xterm-color
[ "$MAIL" ] || export MAIL=/var/spool/mail/$USER
if [ -r $HOME/.xmodmaprc ]
then
xmodmap $HOME/.xmodmaprc
fi
#
# Although -display is ok for top-level application, any child
# process will possibly not get a DISPLAY environment variable.
# This is true of mozilla in particular - but other applications
# seem to manage to do the right thing
#
trace=
_arg=
for f in "$@"
do
if [ "$_arg" ]
then
export "$_arg=$f"
_arg=
else
case "$f"
in
-display|--display)
_arg=DISPLAY
;;
esac
fi
done
unset _arg
case "$1"
in
xterm*)
for f in "$@"
do
case "$f"
in
-ls)
[ -r /etc/motd ] && cat /etc/motd
[ -s $MAIL ] && echo "You have mail"
;;
*)
;;
esac
done
;;
knode*)
#trace="strace -ff -tt -s 64 -o $1.trace"
;;
xbiff*)
#trace="strace -f -tt -o $1.trace"
;;
*)
;;
esac
exec $trace "$@"
>From the Mac (X11) depending on the shell you intend using you would
enter something like
rsh <linux box> '.start_xapp wine <path to Xnews.exe> --display <mac name>:0.0'
Eek :)
--
dee
Technical Details
Message-ID:
<Xns98D190BA36908emteedee@85.214.50.93>Path:
mbox-mo1.pugleaf.net!archive.usenet.blueworldhosting.com!illumos!news.pugleaf.net!.TX!archive.pugleaf.net!archive.newsdeef.eu!mbox2nntp-news.software.readers.20140922.mbox.gz!number1.nntp.dca.giganews.com!border1.nntp.dca.giganews.com!nntp.giganews.com!newsfeed00.sul.t-online.de!t-online.de!newsfeed.freenet.de!newsfeed0.kamp.net!newsfeed.kamp.net!news.motzarella.org!not-for-mailReferences:
<XnF98CE93F6568DCsperado@hamster-fr.org> <Xns98CFEBB104C5Brsingers@IP-Hidden> <XnF98CF9142BDCB3sperado@hamster-fr.org> <Xns98D081F3031C9emteedee@203.16.214.243> <1ht5v9k.7c10beacj7paN%snipe@spambin.fsnet.co.uk> <Xns98D1F3E57F45emteedee@203.16.214.243> <1ht68av.1x86gonxjo0f9N%snipe@spambin.fsnet.co.uk>Show Full Headers
Complete Article Headers
Message-ID: <Xns98D190BA36908emteedee@85.214.50.93>
Subject: Re: Attn LUU TRAN
Date: Thu, 08 Feb 2007 03:13:40 +0000
From: Mike Dee <mikedee@invalid.invalid>
References: <XnF98CE93F6568DCsperado@hamster-fr.org> <Xns98CFEBB104C5Brsingers@IP-Hidden> <XnF98CF9142BDCB3sperado@hamster-fr.org> <Xns98D081F3031C9emteedee@203.16.214.243> <1ht5v9k.7c10beacj7paN%snipe@spambin.fsnet.co.uk> <Xns98D1F3E57F45emteedee@203.16.214.243> <1ht68av.1x86gonxjo0f9N%snipe@spambin.fsnet.co.uk>
Path: mbox-mo1.pugleaf.net!archive.usenet.blueworldhosting.com!illumos!news.pugleaf.net!.TX!archive.pugleaf.net!archive.newsdeef.eu!mbox2nntp-news.software.readers.20140922.mbox.gz!number1.nntp.dca.giganews.com!border1.nntp.dca.giganews.com!nntp.giganews.com!newsfeed00.sul.t-online.de!t-online.de!newsfeed.freenet.de!newsfeed0.kamp.net!newsfeed.kamp.net!news.motzarella.org!not-for-mail
Newsgroups: news.software.readers
Organization: Poor Boy
Lines: 166
X-Trace: tomate.motzarella.org
U2FsdGVkX18dQLqtLkGBw3P4Km5bH2qj1Gio69hGDPWBjhlIFb51xPRT/8TB5OXXZs/1HQZOUgrloTzyJIGmx6SN4kzGw8jjK2sxVJMWZJbs1PACauwCIsl3BXrpu5lk/KiUeM8VG6CSaGu0IyJrwwDL0Woa/K+hHV8TIkssH34zW+NGudISCEti5FQrs6BF/tsLtjv8ZAjxfRwGDjeeMJ4KsuS6b8NKDDX4TykYeVlfy0PukOJS9g==
X-Complaints-To: Please send complaints to abuse@motzarella.org with full
headers
NNTP-Posting-Date: Thu, 8 Feb 2007 03:13:40 +0000 (UTC)
X-Maths: Wine+(Mac OS, X-Server, Linux)+Xnews = Bliss
X-Auth-Sender: U2FsdGVkX1+ZDdxYwzfDOgBmU1xwnXNI
X-Face: $W<X:Uw4$"nTXRHqqZ=.|pFI@K,TNNH0i>-J;
N5/yst7]cQb.o^L$oAhs-J!CAOUMQ^NHu3aTb9H8awW~4Y.LR`[o}Rz6Xf=^krb-AwUiM"7zA+QR<vWz'8>hKiTOyd]h
z]7m=[nhuH{NMrE>~][PM`wSKd?TFV-.glh)>N
User-Agent: Xnews/2006.08.24