New distribution-neutral package format
Moderators: winston, another_commander, Getafix
- DaddyHoggy
- Intergalactic Spam Assassin
- Posts: 8515
- Joined: Tue Dec 05, 2006 9:43 pm
- Location: Newbury, UK
- Contact:
Re: New distribution-neutral package format
"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?
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?
Oolite Life is now revealed hereSelezen wrote:Apparently I was having a DaddyHoggy moment.
Re: New distribution-neutral package format
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.Malcul wrote: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?
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.
Re: New distribution-neutral package format
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.
Thanks to you both for very fast and lucid responses.
Re: New distribution-neutral package format
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
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
Retired, reachable at [email protected]
OXPs : My user page
Retired, reachable at [email protected]
Re: New distribution-neutral package format
Undoubtedly ... the example is simplified ...while bash has similarities to windows CMD ( or dos command.com), there's also a huge difference in what you can do with them.
Cheers.
- Getafix
- Quite Grand Sub-Admiral
- Posts: 979
- Joined: Tue Apr 01, 2008 12:55 pm
- Location: A small ice asteroid, orbiting Oresrati in Galaxy 8 (a.k.a. northwest Armorica).
- Contact:
Re: New distribution-neutral package format
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.
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.
"Any sufficiently advanced information is indistinguishable from noise." [Newman, Lachmann, Moore]
Re: New distribution-neutral package format
Is it possible to generate this installer from a source build?
OXPs: Furball 1.8, Factions 1.12
- Getafix
- Quite Grand Sub-Admiral
- Posts: 979
- Joined: Tue Apr 01, 2008 12:55 pm
- Location: A small ice asteroid, orbiting Oresrati in Galaxy 8 (a.k.a. northwest Armorica).
- Contact:
Re: New distribution-neutral package format
Code: Select all
$ make -f Makefile pkg-posix-snapshot
"Any sufficiently advanced information is indistinguishable from noise." [Newman, Lachmann, Moore]
- Getafix
- Quite Grand Sub-Admiral
- Posts: 979
- Joined: Tue Apr 01, 2008 12:55 pm
- Location: A small ice asteroid, orbiting Oresrati in Galaxy 8 (a.k.a. northwest Armorica).
- Contact:
Re: New distribution-neutral package format
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.
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.
"Any sufficiently advanced information is indistinguishable from noise." [Newman, Lachmann, Moore]
Re: New distribution-neutral package format
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.Getafix wrote: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.
OXPs: Furball 1.8, Factions 1.12
- fronclynne
- Deadly
- Posts: 149
- Joined: Sun Mar 01, 2009 5:36 am
- Location: ::1
Re: New distribution-neutral package format
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.Lone_Wolf wrote:Bash plays champions league, CMD plays 2nd class amateur league
- Damocles Edge
- ---- E L I T E ----
- Posts: 256
- Joined: Thu Mar 30, 2017 9:57 pm
Re: New distribution-neutral package format
Delighted to see that 1.88 has been launched today
I appear to be having some difficulty updating from 1.86 though.
My installation is limited to a directory install so I use the command
Launching Oolite then reveals that I am still running 1.86
Can anyone tell me where I may be going wrong please?
Many thanks.
*Edit: Just read my post back and noted from the Rsync output spiel
I appear to be having some difficulty updating from 1.86 though.
My installation is limited to a directory install so I use the command
Rsync completes with the following output:/home/username/GNUstep/Applications/Oolite/oolite-update
Your installation will now be synchronized to the latest nightly build.
Please wait...
receiving incremental file list
uninstall
6,787 100% 6.47MB/s 0:00:00 (xfr#1, to-chk=692/694)
doc/README-PREAMBLE.TXT
159 100% 155.27kB/s 0:00:00 (xfr#2, to-chk=683/694)
oolite.app/oolite-update
4,963 100% 4.73MB/s 0:00:00 (xfr#3, to-chk=654/694)
oolite.app/oolite-wrapper
2,801 100% 2.67MB/s 0:00:00 (xfr#4, to-chk=653/694)
sent 279 bytes received 14,888 bytes 10,111.33 bytes/sec
total size is 127,515,421 speedup is 8,407.43
Your Oolite installation is already up to date.
Any missing or altered Oolite installation files have been restored.
Launching Oolite then reveals that I am still running 1.86
Can anyone tell me where I may be going wrong please?
Many thanks.
*Edit: Just read my post back and noted from the Rsync output spiel
Can I guess / hope that the word "nightly" should maybe not appear in this instance? Or should I be worried that I have skipped from stable release onto nightly test?Your installation will now be synchronized to the latest nightly build.
O.C.T.D (Oolite Crash Test Dummy) Hmm Hmm Hmm Hmm......
- Getafix
- Quite Grand Sub-Admiral
- Posts: 979
- Joined: Tue Apr 01, 2008 12:55 pm
- Location: A small ice asteroid, orbiting Oresrati in Galaxy 8 (a.k.a. northwest Armorica).
- Contact:
Re: New distribution-neutral package format
Could you try again, please?
"Any sufficiently advanced information is indistinguishable from noise." [Newman, Lachmann, Moore]
- Damocles Edge
- ---- E L I T E ----
- Posts: 256
- Joined: Thu Mar 30, 2017 9:57 pm
Re: New distribution-neutral package format
Thanks Getafix
It's now updating properly.
You know whilst I was watching Rsync do it's thing, I couldn't help but hear this cinematic classic line in my head over and over.
https://www.youtube.com/watch?v=QuoKNZjr8_U
Thanks again Getfix
Now to do some playing
It's now updating properly.
You know whilst I was watching Rsync do it's thing, I couldn't help but hear this cinematic classic line in my head over and over.
https://www.youtube.com/watch?v=QuoKNZjr8_U
Thanks again Getfix
Now to do some playing
O.C.T.D (Oolite Crash Test Dummy) Hmm Hmm Hmm Hmm......