Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
Wine windows reboot simulation
View unanswered posts
View posts from last 24 hours

 
Reply to topic    Gentoo Forums Forum Index Documentation, Tips & Tricks
View previous topic :: View next topic  
Author Message
xjeff
n00b
n00b


Joined: 17 May 2002
Posts: 33
Location: Baton Rouge, LA

PostPosted: Thu Feb 05, 2004 4:34 am    Post subject: Wine windows reboot simulation Reply with quote

I had a problem where whenever I would try to run the internet explorer setup, it would say that my system was still pending a reboot. The question is--how do you do a fake reboot on wine? Well, I found the answer, and here it is. There is a file called WININIT.INI in your %SYSTEMROOT%\Windows folder. If you just delete this file, then wine will think your system is rebooted.
So just do a
Code:
rm -r /home/user/.wine/fake_windows/Windows/WININIT.INI

and you are good to go! :wink:
_________________
Carpe Daemon -- Seize the background process!
Back to top
View user's profile Send private message
sbbeebe
Tux's lil' helper
Tux's lil' helper


Joined: 01 Aug 2003
Posts: 104
Location: Colorado, US

PostPosted: Thu Feb 05, 2004 5:03 am    Post subject: Reply with quote

ok, so, why would you want to run IE under wine? you've got a gentoo linux installation with several excellent browsers to choose from.

are you going through reboot withdrawls? feeling the need to restart that machine every now and again? :P

i can't stand to run that piece of crap (IE) on my windoze box.

ok, enough of the rant, so, why do you want to run ie on a nice gentoo install?
_________________
"smell the color 9"
steve
Back to top
View user's profile Send private message
xjeff
n00b
n00b


Joined: 17 May 2002
Posts: 33
Location: Baton Rouge, LA

PostPosted: Thu Feb 05, 2004 5:15 am    Post subject: good question Reply with quote

Actually, I really don't need or really want IE on my (very nice) gentoo install. Back in the day I was trying to install Kazaa Lite, and wanting it to work flawlessly I needed some sort of IE install...so I came across this problem. Besides, if I did a little more web design, it would be a lot easier to check the rendering in IE through wine than rebooting into windows.
_________________
Carpe Daemon -- Seize the background process!
Back to top
View user's profile Send private message
kalisphoenix
Apprentice
Apprentice


Joined: 28 Sep 2003
Posts: 211
Location: Ohio

PostPosted: Mon Aug 16, 2004 9:01 am    Post subject: Reply with quote

Actually, that came in handy (I need IE6 to get RealRhapsody working). Thanks, man.
Back to top
View user's profile Send private message
John5788
Advocate
Advocate


Joined: 06 Apr 2004
Posts: 2140
Location: 127.0.0.1

PostPosted: Mon Aug 16, 2004 9:11 am    Post subject: Re: Wine windows reboot simulation Reply with quote

xjeff wrote:
I had a problem where whenever I would try to run the internet explorer setup, it would say that my system was still pending a reboot. The question is--how do you do a fake reboot on wine? Well, I found the answer, and here it is. There is a file called WININIT.INI in your %SYSTEMROOT%\Windows folder. If you just delete this file, then wine will think your system is rebooted.
So just do a
Code:
rm -r /home/user/.wine/fake_windows/Windows/WININIT.INI

and you are good to go! :wink:


cant u just type in, wineboot?
_________________
John5788
Back to top
View user's profile Send private message
hikingpete
n00b
n00b


Joined: 11 Aug 2004
Posts: 13
Location: Winnipeg, MB (Canada)

PostPosted: Tue Aug 17, 2004 7:01 pm    Post subject: wineboot Reply with quote

well, I don't really know if there is such a program already, but if that line's a bit much to type in, you could always add a line and save that as a file

wineboot:
Code:
#!/bin/bash
rm ~/.wine/fake_windows/Windows/WININIT.INI


Once you save that from your favourite text editor, simply move it into your path, (perhaps /usr/local/bin - dunno...) and run it at your leisure. As always, look the code over and test it carefully, before you commit it to your path and use it (I doubt I'm dependable - and we're talking about rm here). You'll probably have to chmod a+x it too. It looks safe too me, but I'm fairly inexperienced, and wouldn't be suprised if someone turned up to lecture me about this.
Back to top
View user's profile Send private message
John5788
Advocate
Advocate


Joined: 06 Apr 2004
Posts: 2140
Location: 127.0.0.1

PostPosted: Tue Aug 17, 2004 8:21 pm    Post subject: Reply with quote

Code:
john5788@john5788: pts/20: 11 files 311Kb -> cat /usr/lib/wine/bin/wineboot
#!/bin/sh
#
# Wrapper script to start a Winelib application once it is installed
#
# Copyright (C) 2002 Alexandre Julliard
#
# This library is free software; you can redistribute it and/or
# modify it under the terms of the GNU Lesser General Public
# License as published by the Free Software Foundation; either
# version 2.1 of the License, or (at your option) any later version.
#
# This library is distributed in the hope that it will be useful,
# but WITHOUT ANY WARRANTY; without even the implied warranty of
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
# Lesser General Public License for more details.
#                               
# You should have received a copy of the GNU Lesser General Public
# License along with this library; if not, write to the Free Software
# Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA  02111-1307  USA
#
                               
# determine the app Winelib library name
appname=`basename "$0" .exe`.exe

# first try explicit WINELOADER
if [ -x "$WINELOADER" ]; then exec "$WINELOADER" "$appname" "$@"; fi

# then default bin directory
if [ -x "/usr/lib/wine/bin/wine" ]; then exec "/usr/lib/wine/bin/wine" "$appname" "$@"; fi
                               
# now try the directory containing $0
appdir=""                       
case "$0" in
  */*)
    # $0 contains a path, use it
    appdir=`dirname "$0"`
    ;;
  *)
    # no directory in $0, search in PATH
    saved_ifs=$IFS             
    IFS=:
    for d in $PATH
    do
      IFS=$saved_ifs
      if [ -x "$d/$0" ]; then appdir="$d"; break; fi
    done
    ;;
esac
if [ -x "$appdir/wine" ]; then exec "$appdir/wine" "$appname" "$@"; fi

# finally look in PATH
exec wine "$appname" "$@"

_________________
John5788
Back to top
View user's profile Send private message
hikingpete
n00b
n00b


Joined: 11 Aug 2004
Posts: 13
Location: Winnipeg, MB (Canada)

PostPosted: Tue Aug 17, 2004 8:40 pm    Post subject: wineboot Reply with quote

Ah, I see what you were getting at.
Back to top
View user's profile Send private message
Display posts from previous:   
Reply to topic    Gentoo Forums Forum Index Documentation, Tips & Tricks All times are GMT
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum