Oolite Bulletins

For information and discussion about Oolite.
It is currently Thu Sep 21, 2017 8:32 am

All times are UTC




Post new topic  Reply to topic  [ 27 posts ]  Go to page Previous 1 2
Author Message
PostPosted: Sun Jun 05, 2011 1:16 pm 
Offline
Intergalactic Spam Assassin
Intergalactic Spam Assassin
User avatar

Joined: Tue Dec 05, 2006 9:43 pm
Posts: 8501
Location: Newbury, UK
"sudo bash" basically says - start a "bash" command window but with do it with Super User (su) permissions - therefore anything done in the bash window which is spawned from that command will have the equivalent of root permissions.

It means you don't need to keep typing in "sudo" in front of every command you want to run at root permission level, but as soon as you close the bash window - that's it - no more root permissions... (until you do it again)

I hope that helps?

_________________
Quote:
Apparently I was having a DaddyHoggy moment.
Oolite Life is now revealed here


Top
   
PostPosted: Sun Jun 05, 2011 1:21 pm 
Offline
Dangerous
Dangerous
User avatar

Joined: Sat Mar 27, 2010 12:59 am
Posts: 68
Quote:
OK, DH, you got me, ... I have to ask.

How is 'sudo' different from 'sudo bash'? Is 'sudo' a temporary condition for one command, whilest 'sudo bash' is a condition until informed otherwise? ... as in while ... and ... endwhile?
Background: BASH is a shell, (Bourne Again SHell). Think of it as similar to what you would see if you opened a Terminal window in Windows using CMD. BASH scripts (.sh) are somewhat analogous to batch (.bat) scripts in Windows. BASH allows you to execute just about any and every LINUX command from within it's scripts and that is a cornerstone of UNIX and LINUX programming: building large complex programs from a number of small dedicated ones. A huge amount of what happens behind the scenes in a LINUX distro is the result of executing numerous BASH shell scripts: ie: deleting a file, renaming directories, etc. are actually shell scripts that are run by the OS, but can also be executed directly by someone with root privileges A shell script in LINUX can be executed just like a compiled program ... makes no difference to the OS.

When you log onto a LINUX distro, you are actually running a BASH shell instance as a non-root user. Root is the "Superuser", a special user account with all privileges (referred to generally as "God-like"). If you make a mistake as root, (like deleting a system file) it's more or less permanent. "sudo" allows you to temporarily become the root user (generally) and run ANY program as the superuser. This would include BASH shell scripts that are intended to keep your OS working properly. For a LINUX newbie, this is a "Bad Thing" generally as it allows you to hork up your system and break it. Read: re-install your OS.

Sorry for the long-winded explanation. I've used LINUX for about 20 years and taught it at college level for 10.

Cheers.


Last edited by SiriusCG on Sun Jun 05, 2011 1:36 pm, edited 1 time in total.

Top
   
PostPosted: Sun Jun 05, 2011 1:34 pm 
Offline
Above Average
Above Average
User avatar

Joined: Fri Oct 01, 2010 6:28 pm
Posts: 22
Yep! It is definitely not a command for a newbie. Thanks folks for the explanation. It all makes sense, and I can see how someone would want to use it. (I have dabbled in programming from Acorn BBC days to batch files on a PC but with no formal training. I'm not a programmer, but I can now re-install fairly quickly without losing stuff!)
Thanks to you both for very fast and lucid responses.


Top
   
PostPosted: Sun Jun 05, 2011 7:04 pm 
Offline
---- E L I T E ----
---- E L I T E ----
User avatar

Joined: Wed Aug 08, 2007 10:59 pm
Posts: 545
Location: Netherlands
1 comment :

while bash has similarities to windows CMD ( or dos command.com), there's also a huge difference in what you can do with them.

a comparison in football terms (soccer for USA people) :

Bash plays champions league, CMD plays 2nd class amateur league

_________________
OS : Arch Linux 64-bit - rolling release

OXPs : My user page

I am subscribed to the threads for my oxps, if you need my attention just post in them or send a pm.


Top
   
PostPosted: Sun Jun 05, 2011 7:55 pm 
Offline
Dangerous
Dangerous
User avatar

Joined: Sat Mar 27, 2010 12:59 am
Posts: 68
Quote:
while bash has similarities to windows CMD ( or dos command.com), there's also a huge difference in what you can do with them.
Undoubtedly ... the example is simplified ... :)

Cheers.


Top
   
PostPosted: Tue Jul 12, 2011 12:11 am 
Offline
Slightly Grand Rear Admiral
Slightly Grand Rear Admiral
User avatar

Joined: Tue Apr 01, 2008 12:55 pm
Posts: 820
Location: A small ice asteroid, orbiting Oresrati in Galaxy 8 (a.k.a. northwest Armorica).
First post has been updated to include instructions
on how to update your current oolite installation
to the latest oolite release without having to
download a full setup file.
Give it a try to upgrade your oolite 1.75.2 installation to 1.75.3.

_________________
Xubuntu 14.04LTS / Windows 7 Home Premium
Intel Core 2 Quad Q9450 2.66GHz - 6GB DDR2 - Palit GeForce GTX 750 Ti StormX Dual (2048MB DDR5)
"Any sufficiently advanced information is indistinguishable from noise." [Newman, Lachmann, Moore]


Top
   
PostPosted: Fri Jul 22, 2011 11:00 am 
Offline
---- E L I T E ----
---- E L I T E ----

Joined: Wed Jan 19, 2011 4:00 pm
Posts: 296
Is it possible to generate this installer from a source build?

_________________
OXPs: Furball 1.8, Factions 1.12


Top
   
PostPosted: Fri Jul 22, 2011 12:18 pm 
Offline
Slightly Grand Rear Admiral
Slightly Grand Rear Admiral
User avatar

Joined: Tue Apr 01, 2008 12:55 pm
Posts: 820
Location: A small ice asteroid, orbiting Oresrati in Galaxy 8 (a.k.a. northwest Armorica).
Code:
$ make -f Makefile pkg-posix-snapshot

_________________
Xubuntu 14.04LTS / Windows 7 Home Premium
Intel Core 2 Quad Q9450 2.66GHz - 6GB DDR2 - Palit GeForce GTX 750 Ti StormX Dual (2048MB DDR5)
"Any sufficiently advanced information is indistinguishable from noise." [Newman, Lachmann, Moore]


Top
   
PostPosted: Fri Jul 22, 2011 1:14 pm 
Offline
---- E L I T E ----
---- E L I T E ----

Joined: Wed Jan 19, 2011 4:00 pm
Posts: 296
Thank you!

_________________
OXPs: Furball 1.8, Factions 1.12


Top
   
PostPosted: Fri Jul 22, 2011 1:45 pm 
Offline
Slightly Grand Rear Admiral
Slightly Grand Rear Admiral
User avatar

Joined: Tue Apr 01, 2008 12:55 pm
Posts: 820
Location: A small ice asteroid, orbiting Oresrati in Galaxy 8 (a.k.a. northwest Armorica).
Well... now that I'm thinking about it... this will most probably not work.
This is because the packager, prepares a package with the libraries found in 'deps/Linux-deps/[x86, x86_64]/lib' folder,
while it uses the system's libraries to build the oolite binary.

For the moment, the way to resolve this (for the system to produce the installer),
is to build and install in the system, the exact versions distributed in the 'deps/Linux-deps/[x86, x86_64]/lib' folder.

The instructions on how to do this can be downloaded from here.

_________________
Xubuntu 14.04LTS / Windows 7 Home Premium
Intel Core 2 Quad Q9450 2.66GHz - 6GB DDR2 - Palit GeForce GTX 750 Ti StormX Dual (2048MB DDR5)
"Any sufficiently advanced information is indistinguishable from noise." [Newman, Lachmann, Moore]


Top
   
PostPosted: Sat Jul 23, 2011 11:09 am 
Offline
---- E L I T E ----
---- E L I T E ----

Joined: Wed Jan 19, 2011 4:00 pm
Posts: 296
Quote:
Well... now that I'm thinking about it... this will most probably not work.
This is because the packager, prepares a package with the libraries found in 'deps/Linux-deps/[x86, x86_64]/lib' folder,
while it uses the system's libraries to build the oolite binary.

For the moment, the way to resolve this (for the system to produce the installer),
is to build and install in the system, the exact versions distributed in the 'deps/Linux-deps/[x86, x86_64]/lib' folder.

The instructions on how to do this can be downloaded from here.
Hmm, that sounds like a major undertaking, I think unless I can work around the original compiler error I might just as well give up on building and try the nightlies. . . thanks for the assistance though.

_________________
OXPs: Furball 1.8, Factions 1.12


Top
   
PostPosted: Wed Oct 26, 2011 11:33 pm 
Offline
Deadly
Deadly
User avatar

Joined: Sun Mar 01, 2009 5:36 am
Posts: 149
Location: ::1
Quote:
Bash plays champions league, CMD plays 2nd class amateur league
Bash plays lingerie football. /bin/sh plays backlot rugby with a shiv tucked in its waistband. CMD plays FIFA International Soccer (1993) on a NES.


Top
   
Display posts from previous:  Sort by  
Post new topic  Reply to topic  [ 27 posts ]  Go to page Previous 1 2

All times are UTC


Who is online

Users browsing this forum: No registered users and 4 guests


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

Search for:
cron
Powered by phpBB® Forum Software © phpBB Limited