Announcement: Be excellent to each other.


Caravel Forum : Caravel Boards : General : OK, I'm a Linux noob. (How do you run the linux TCB installer?)
New Topic New Poll Post Reply
Poster Message
AtkinsSJ
Level: Master Delver
Avatar
Rank Points: 107
Registered: 12-23-2005
IP: Logged
icon OK, I'm a Linux noob. (0)  
I'm using Ubuntu Hardy Heron, and can't work out how to run DRODTCBSetup-3.2.0.83.mojo.run - it would seem I need to extract it or something. Terminal just comes-up with
bash: DRODTCBSetup-3.2.0.83.mojo.run: command not found

Can someone tell me what I need to do? Thanks!

~AtkinsSJ
08-11-2008 at 12:36 PM
View Profile Send Private Message to User Send Email to User Visit Homepage Show all user's posts Quote Reply
eb0ny
Level: Smiter
Avatar
Rank Points: 484
Registered: 09-12-2007
IP: Logged
icon Re: OK, I'm a Linux noob. (+2)  
I am guessing that you run the file like
> DRODTCBSetup-3.2.0.83.mojo.run
This fails, because linux tries to append PATH variable in front of it (it contains /bin, /usr/bin and wherever system commands and programs are placed). Because none of those locations contain TCB installer, bash then tries to execute it as a command, and fails. If you want to run the installer, type
> ./DRODTCBSetup-3.2.0.83.mojo.run
This will direct the console to the current directory, where the file resides. If that still fails, you may have to run chmod to add execution permission (sudo chmod 755 DRODTCBSetup-3.2.0.83.mojo.run).

If you want, you can modify the PATH variable to contain current directory by default. You will have to append '.' (it is a dot) to the end. Just watch the separators, if you do.

EDIT: Correction. Bash first tries to execute the command as a built-in (echo, for example), and then scans for appropriate executable.

____________________________
Click here to view the secret text


[Last edited by eb0ny at 08-11-2008 02:14 PM]
08-11-2008 at 01:13 PM
View Profile Send Private Message to User Show all user's posts This architect's holds Quote Reply
AtkinsSJ
Level: Master Delver
Avatar
Rank Points: 107
Registered: 12-23-2005
IP: Logged
icon Re: OK, I'm a Linux noob. (0)  
Thankyou! :D

(I have to apologise for my lack of modpoints.)
08-11-2008 at 01:41 PM
View Profile Send Private Message to User Send Email to User Visit Homepage Show all user's posts Quote Reply
Briareos
Level: Smitemaster
Avatar
Rank Points: 3516
Registered: 08-07-2005
IP: Logged
icon Re: OK, I'm a Linux noob. (+2)  
eb0ny wrote:
If you want, you can modify the PATH variable to contain current directory by default. You will have to append '.' (it is a dot) to the end. Just watch the separators, if you do.
Everytime you add '.' to the path god kills a wubba.

Please, think of the wubbas...

(Seriously: '.' has not been in the PATH for ages for security reasons. Best to keep it that way.)

____________________________
"I'm not anti-anything, I'm anti-everything, it fits better." - Sole
R.I.P. Robert Feldhoff (1962-2009) :(
08-11-2008 at 02:18 PM
View Profile Send Private Message to User Send Email to User Visit Homepage Show all user's posts Quote Reply
halyavin
Level: Delver
Rank Points: 52
Registered: 02-20-2006
IP: Logged
icon Re: OK, I'm a Linux noob. (0)  
Briareos wrote:(Seriously: '.' has not been in the PATH for ages for security reasons. Best to keep it that way.)
Windows has '.' is the PATH for ages and this fact haven't created many problems (users know much more simplier ways to kill the system). These security reasons are obsolete if you use file manager like FAR/mc/totalcmd - you always see the full list of files in the current directory.

[Last edited by halyavin at 08-11-2008 04:30 PM]
08-11-2008 at 04:29 PM
View Profile Send Private Message to User Show all user's posts Quote Reply
kyevan
Level: Disabled
Rank Points: 54
Registered: 08-29-2007
IP: Logged
icon Re: OK, I'm a Linux noob. (0)  
halyavin wrote:
Briareos wrote:(Seriously: '.' has not been in the PATH for ages for security reasons. Best to keep it that way.)
Windows has '.' is the PATH for ages and this fact haven't created many problems (users know much more simplier ways to kill the system). These security reasons are obsolete if you use file manager like FAR/mc/totalcmd - you always see the full list of files in the current directory.
Well, there's also the fact that no one uses the command line on Windows, since, well, it sucks.
08-11-2008 at 07:20 PM
View Profile Send Private Message to User Show all user's posts Quote Reply
AlefBet
Level: Smitemaster
Rank Points: 979
Registered: 07-16-2003
IP: Logged
icon Re: OK, I'm a Linux noob. (+1)  
It's pretty easy to avoid the security issues if you just make sure to add '.' to the end of the path:
echo 'export PATH="$PATH:."' >> ~/.bashrc
For that to break, a hacker has to rely on you doing just the wrong misspelling at just the wrong filesystem location, and probably as just the wrong user.

____________________________
I was charged with conspiracy to commit jay-walking, and accessory to changing lanes without signaling after the fact :blush.

++Adam H. Peterson

[Last edited by AlefBet at 08-11-2008 09:54 PM]
08-11-2008 at 09:52 PM
View Profile Send Private Message to User Send Email to User Visit Homepage Show all user's posts Quote Reply
coppro
Level: Smitemaster
Rank Points: 1308
Registered: 11-24-2005
IP: Logged
icon Re: OK, I'm a Linux noob. (0)  
I actually like keeping '.' out of my path because it makes it clear to me when I'm executing a local command (that's just me, maybe).

For anyone else having trouble getting DROD to work, remember to chmod +x the .run!
08-20-2008 at 04:52 AM
View Profile Show all user's posts Quote Reply
Sillyman
Level: Smiter
Avatar
Rank Points: 339
Registered: 09-08-2006
IP: Logged
icon Re: OK, I'm a Linux noob. (+1)  
And to run it from GNOME, just right=click, properties, permissions, allow executing, then double-click. Presto, graphical installer.

____________________________
Who, me?
FNORD
08-20-2008 at 05:46 AM
View Profile Send Private Message to User Show all user's posts Quote Reply
New Topic New Poll Post Reply
Caravel Forum : Caravel Boards : General : OK, I'm a Linux noob. (How do you run the linux TCB installer?)
Surf To:


Forum Rules:
Can I post a new topic? No
Can I reply? No
Can I read? Yes
HTML Enabled? No
UBBC Enabled? Yes
Words Filter Enable? No

Contact Us | CaravelGames.com

Powered by: tForum tForumHacks Edition b0.98.8
Originally created by Toan Huynh (Copyright © 2000)
Enhanced by the tForumHacks team and the Caravel team.