View previous topic :: View next topic |
Author |
Message |
Larcen Apprentice
Joined: 21 Mar 2004 Posts: 174
|
Posted: Mon Jul 25, 2005 10:17 pm Post subject: Neverwinter Nights, migrating from single user...... |
|
|
I want to take my single user install I've been running for a couple years and change it to a portage deal, where the other users on my computer can use it, and what not without me having to cp -R the install directory to everyone's user directory. If someone would be kind enough to offer some advice on how I should go about doing this, please, I am all ears. |
|
Back to top |
|
|
russianpirate Veteran
Joined: 26 Sep 2004 Posts: 1167 Location: Detroit, MI
|
Posted: Mon Jul 25, 2005 10:25 pm Post subject: |
|
|
well if you emerged all the games... theyll work fine as long as all users are games group.. unless u just installed it in ur home dir.. then i would reemerge all the games u did that to |
|
Back to top |
|
|
Larcen Apprentice
Joined: 21 Mar 2004 Posts: 174
|
Posted: Mon Jul 25, 2005 10:36 pm Post subject: |
|
|
Thats the thing, I haven't emerged any of them, I installed them all manually. Into my ~ directory. |
|
Back to top |
|
|
thunderlove Tux's lil' helper
Joined: 24 Aug 2004 Posts: 76 Location: Sitting on a stool somewhere in southern oregon
|
Posted: Mon Jul 25, 2005 11:10 pm Post subject: |
|
|
Better to emerge -- there have been changes and bug fixes. Then just copy your older stuff over.
Anyways, to answer your question:
move it to /opt or /usr/local -- [fyi the emerge places it at /opt/nwn]
Do something like Code: | $ su
$ cp -R /home/larcen/nwn /opt |
Then go through and change all the file owner/groups to root/game chown -R root:games /opt/nwn, remove world/group writables chmod -R og-w /opt/nwn, reset the group write on the save dirs (better, make them sticky)
One last thing: the emerge uses an old SDL lib, i presume yours does too. You will probably want to change that, too.
Finally, add a script to /usr/games/bin that cd's to /opt/nwn and starts the game.
Shouldn't be too hard _________________ Registered Linux User #165104 |
|
Back to top |
|
|
Larcen Apprentice
Joined: 21 Mar 2004 Posts: 174
|
Posted: Mon Jul 25, 2005 11:46 pm Post subject: |
|
|
Thunderlove I cought all of that except..
Code: | reset the group write on the save dirs (better, make them sticky) |
And..
Code: | One last thing: the emerge uses an old SDL lib, i presume yours does too. You will probably want to change that, too. |
Could you elaborate some for me? |
|
Back to top |
|
|
thunderlove Tux's lil' helper
Joined: 24 Aug 2004 Posts: 76 Location: Sitting on a stool somewhere in southern oregon
|
Posted: Tue Jul 26, 2005 11:53 am Post subject: |
|
|
To play, others will need write access to certain directories. I'm not certain on all of them, but 'localvault', 'saves', and probably 'dmvault', 'tempclient', and 'servervault' will need to be chmod g+w. Otherwise, they wouldn't be able to save their games
You might need to make 'nwplayer.ini' and 'nwn.ini' group-writeable, too. The game writes to these when changing settings (like sound and graphics options).
Re sticky: It prevents others from deleting files that don't belong to them. It's not really important, unless you don't completely trust the other users. chmod +t blahblah
Re SDL:
If you are not having problems, then don't worry about it. Nwn shipped with a version of sdl that was buggy -- many users had problems like mouse-freezes and such. OTOH, if you are having problems, then you will need to upgrade it:
/opt/nwn/lib probably has something like Code: | libSDL-1.2.so.0 -> libSDL-1.2.so.0.0.5
libSDL-1.2.so.0.0.5 |
First, make sure you have a /usr/lib/libSDL-1.2.so.0 (it should be a link to, say, libSDL-1.2.so.0.7.1 If its not there at all, emerge libsdl)
Then, cd to /opt/nwn/lib, delete libSDL-1.2.so.0, and ln -s /usr/lib/libSDL-1.2.so.0
/opt/nwn/lib should now look something like Code: | libSDL-1.2.so.0 -> /usr/lib/libSDL-1.2.so.0
libSDL-1.2.so.0.0.5 |
PS: If you later change your mind, you can 'undo' by deleting the link you just created, and ln -s libSDL-1.2.so.0.0.5 libSDL-1.2.so.0 _________________ Registered Linux User #165104 |
|
Back to top |
|
|
Larcen Apprentice
Joined: 21 Mar 2004 Posts: 174
|
Posted: Tue Jul 26, 2005 6:49 pm Post subject: |
|
|
Many thanks, I don't have problems with my sound as of now, only sometimes I have to killall artsd and try again. Otherwise, none. I'll give this all a try this week sometime when I have free time, and let you know how it goes. Thanks again for the advice. |
|
Back to top |
|
|
|
|
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
|
|