Editing .profile to make LightWave work
#1
Editing .profile to make LightWave work
What, exactly, is the syntax expected if I want to set $LIGHTWAVE to /usr/lightwave/Bin in my .profile file? 

Is there anything else which needs to be set? I forget. It's been ages since I did any of this stuff and I've spent my of my time since then painting.

Indigo Indy Indigo2 Octane Octane Octane2
CGFX.us
Brain Collector

Trade Count: (0)
Posts: 16
Threads: 4
Joined: Dec 2018
Location: Alaska
Website Find Reply
09-16-2021, 03:20 AM
#2
RE: Editing .profile to make LightWave work
So, whether you use .profile or your shell rc depends on your shell that you're using.

I use tcsh, and the same rules apply to csh. Generally .profile is pretty redundant to .cshrc for both. Just a line in your .cshrc near the bottom:

setenv LIGHTWAVE /usr/lightwave/Bin

would do it, but be warned. UNIX is CASE SENSITIVE unlike say, macOS or Windows. So Bin does not equal bin does not equal BIN does not equal bIN.

For KSH, you need to use .shrc IIRC or .profile. You'd use the export command for that, and the bash export command is moreorless ganked wholesale from the original bourne shell.

I'm the system admin of this site. Private security technician, licensed locksmith, hack of a c developer and vintage computer enthusiast. 

https://contrib.irixnet.org/raion/ -- contributions and pieces that I'm working on currently. 

https://codeberg.org/SolusRaion -- Code repos I control

Technical problems should be sent my way.
Raion
Chief IRIX Officer

Trade Count: (9)
Posts: 4,240
Threads: 533
Joined: Nov 2017
Location: Eastern Virginia
Website Find Reply
09-16-2021, 03:28 AM
#3
RE: Editing .profile to make LightWave work
Ok, added to .cshrc, but I must need to do something else, since it's not working. I still get the Startup Failure 213: Message file missing or wrong version report via the console.

For KSH, you need to use .shrc IIRC or .profile. You'd use the export command for that, and the bash export command is moreorless ganked wholesale from the original bourne shell.

Like this:

export LIGHTWAVE=/usr/lightwave/Bin ?

I'm basically guessing here, since I can't remember how this is supposed to go.

Indigo Indy Indigo2 Octane Octane Octane2
CGFX.us
Brain Collector

Trade Count: (0)
Posts: 16
Threads: 4
Joined: Dec 2018
Location: Alaska
Website Find Reply
09-16-2021, 03:50 AM
#4
RE: Editing .profile to make LightWave work
I think? I don't use ksh enough.

It depends on your login shell though. cat the /etc/passwd file to see what your user uses as a shell.

I'm the system admin of this site. Private security technician, licensed locksmith, hack of a c developer and vintage computer enthusiast. 

https://contrib.irixnet.org/raion/ -- contributions and pieces that I'm working on currently. 

https://codeberg.org/SolusRaion -- Code repos I control

Technical problems should be sent my way.
Raion
Chief IRIX Officer

Trade Count: (9)
Posts: 4,240
Threads: 533
Joined: Nov 2017
Location: Eastern Virginia
Website Find Reply
09-16-2021, 03:53 AM
#5
RE: Editing .profile to make LightWave work
Basically, use export for Bourne and it's clones and setenv for C shell and it's clones. export uses the = sign to set the variable, setenv doesn't.

Project: Temporarily lost at sea
Plan: World domination! Or something...
vishnu
Tezro, Octane2, 2 x Onyx4

Trade Count: (0)
Posts: 1,247
Threads: 42
Joined: Dec 2017
Location: Minneapolis, Minnesota USA
Find Reply
09-16-2021, 04:00 AM
#6
RE: Editing .profile to make LightWave work
Yep: export LIGHTWAVE=/usr/lightwave/Bin

That was it. Thanks, everyone!

Indigo Indy Indigo2 Octane Octane Octane2
(This post was last modified: 09-16-2021, 04:10 AM by CGFX.us.)
CGFX.us
Brain Collector

Trade Count: (0)
Posts: 16
Threads: 4
Joined: Dec 2018
Location: Alaska
Website Find Reply
09-16-2021, 04:10 AM
#7
RE: Editing .profile to make LightWave work
I got the Lightwave working but, when I try to for example load a scene, always go back to the root directory....does not start at /usr/lightwave

Anything that I need to add to the .profile or .cshr


Fuel Octane  O2 Looking for: Indigo
megaimg
Octane

Trade Count: (0)
Posts: 99
Threads: 23
Joined: Oct 2021
Location: Texas, USA
Find Reply
02-05-2022, 01:18 AM
#8
RE: Editing .profile to make LightWave work
The fact that Lightwave always returns to /usr/lightwave and doesn't remember the last used directory is so annoying.
I have a ton of fun with it, but the nightmare of browsing the folders to find your object files (or keeping a text file nearby with the most important folders) is very painful.

I have my lightwave set up and defaulting to /usr/lightwave fine. If you still need help, let me know and I will check it out how I have it set.
Shiunbird
Administrator

Trade Count: (1)
Posts: 553
Threads: 45
Joined: Mar 2021
Location: Czech Republic
Find Reply
02-05-2022, 09:26 PM
#9
RE: Editing .profile to make LightWave work
(02-05-2022, 09:26 PM)Shiunbird Wrote:  The fact that Lightwave always returns to /usr/lightwave and doesn't remember the last used directory is so annoying.
I have a ton of fun with it, but the nightmare of browsing the folders to find your object files (or keeping a text file nearby with the most important folders) is very painful.

I have my lightwave set up and defaulting to /usr/lightwave fine. If you still need help, let me know and I will check it out how I have it set.
How do you make it go by default to /usr/lightwave


Fuel Octane  O2 Looking for: Indigo
megaimg
Octane

Trade Count: (0)
Posts: 99
Threads: 23
Joined: Oct 2021
Location: Texas, USA
Find Reply
02-06-2022, 05:49 AM
#10
RE: Editing .profile to make LightWave work
I'll check it out - I've never had to touch it, it has always worked fine. Give me a day.
Shiunbird
Administrator

Trade Count: (1)
Posts: 553
Threads: 45
Joined: Mar 2021
Location: Czech Republic
Find Reply
02-06-2022, 07:43 AM


Forum Jump:


Users browsing this thread: 1 Guest(s)