Author Topic: What is a Linux tarball file? How do we install from it to Peppermint? [SOLVED]  (Read 2720 times)

Offline perknh

  • Trusted User
  • Hero
  • *****
  • Posts: 4008
  • Karma: 371
  • Soy un huevo, nada más.
    • View Profile
  • Peppermint version(s): Peppermint 10
Darn grafiksinc and pin, if those rascals didn't pique my curiosity yesterday within Peppermint's Windows Upgrade thread.  I hadn't heard of Basilisk browser, and before you know it, I was thinking about Waterfox browser too -- both of which have tarball installation files for Linux.  But, my problem is, I don't know what a Linux tarball file is, and I don't know what to extract from it, or how to install to Peppermint from it once I've downloaded it.

I've ducked and dodged Linux tarball files for years -- a.k.a linux-x86_64.tar.bz2 files -- but I see them more and more frequently online.  I guess it's time I learn how to install from them now.  Maybe they call them tarball files because they appear to be a mess -- or a jumble of files. :-\  Anyway, I don't know how to extract what I need to extract from a tarball file in order to install to Peppermint.

What is a Linux tarball file?  And how do we know what to extract from it in order to install to Peppermint?

These are the particular files I've downloaded that I'm interested in exploring:

basilisk-latest.linux64.tar.bz2

&

waterfox-56.2.2.en-US.linux-x86_64.tar.bz2

Thank you.

perknh
« Last Edit: August 21, 2018, 04:20:47 pm by perknh »
[T]here are a lot of people happily running Peppermint ICE which hasn't been receiving ANY updates for a while now .. and I personally would STILL consider that MUCH more secure than any version of Windows with up-to-date AV/Anti-malware ;)

--  PCNetSpec, Cornwall, Eng.  Dec 03, 2013 5:18 pm

Offline scifidude79

  • Hero
  • *****
  • Posts: 4029
  • Karma: 870
    • View Profile
  • Peppermint version(s): Peppermint 9
Re: What is a Linux tarball file? How do we install from it to Peppermint?
« Reply #1 on: August 21, 2018, 04:15:36 am »
It's a container file, similar to .zip, etc. You should be able to extract the files. Without knowing what's in there, it's hard to say what steps are needed to install it, or if it even needs installed.
« Last Edit: August 21, 2018, 04:18:14 am by scifidude79 »

Offline zebedeeboss

  • Global Moderator
  • Hero
  • *****
  • Posts: 3233
  • Karma: 625
  • Life first... Peppermint a close 2nd :)
    • View Profile
  • Peppermint version(s): P10 / P9 Respin
Re: What is a Linux tarball file? How do we install from it to Peppermint?
« Reply #2 on: August 21, 2018, 04:20:41 am »
but sometimes you can simply extract it and run the program you want.

eg  Basillisk - dl it - right click and extract here and then go into the folder and double click basillisk

close the weird error message (if one opens) and bingo you are now running the browser.  It is then just a matter of creating a launcher for it.

Now hopefully someone will come along and tell you the correct place to extract it to - I usually run these from my download directory.

Regards Zeb...
Be Kind Whenever Possible...   It is Always Possible - Dalai Lama

P10r x64 Desktop - AMD Threadripper 2950X - 64Gb RAM - NVIDIA RTX2080Ti 11Gb - 2 x 27" 4k

Offline scifidude79

  • Hero
  • *****
  • Posts: 4029
  • Karma: 870
    • View Profile
  • Peppermint version(s): Peppermint 9
Re: What is a Linux tarball file? How do we install from it to Peppermint?
« Reply #3 on: August 21, 2018, 04:25:46 am »
but sometimes you can simply extract it and run the program you want.

That's why I said "or even if it needs installed." ;) I figured it may have been the Linux equivalent of the Windows zip file.

Offline zebedeeboss

  • Global Moderator
  • Hero
  • *****
  • Posts: 3233
  • Karma: 625
  • Life first... Peppermint a close 2nd :)
    • View Profile
  • Peppermint version(s): P10 / P9 Respin
Re: What is a Linux tarball file? How do we install from it to Peppermint?
« Reply #4 on: August 21, 2018, 04:29:24 am »
Ha Ha Ha  :D

Got to love a quick edit.   I am sure that was not there when I read it first time  :P

Regards Zeb...
Be Kind Whenever Possible...   It is Always Possible - Dalai Lama

P10r x64 Desktop - AMD Threadripper 2950X - 64Gb RAM - NVIDIA RTX2080Ti 11Gb - 2 x 27" 4k

Offline scifidude79

  • Hero
  • *****
  • Posts: 4029
  • Karma: 870
    • View Profile
  • Peppermint version(s): Peppermint 9
Re: What is a Linux tarball file? How do we install from it to Peppermint?
« Reply #5 on: August 21, 2018, 05:15:49 am »
Yeah, I figured you were replying to my original post, which contained incorrect information. ;) I was originally thinking of source tarballs, before I remembered it's just a container. I don't know why they don't just use zip files.
« Last Edit: August 21, 2018, 05:17:58 am by scifidude79 »

Offline perknh

  • Trusted User
  • Hero
  • *****
  • Posts: 4008
  • Karma: 371
  • Soy un huevo, nada más.
    • View Profile
  • Peppermint version(s): Peppermint 10
Re: What is a Linux tarball file? How do we install from it to Peppermint?
« Reply #6 on: August 21, 2018, 06:40:51 am »
Hello scifidude79 and zebedeeboss,

I'm half way there now.  I can now run basilisk and waterfox or basilisk-bin and waterfox-bin, but I can't find them in my menu.  It seems as though I'm somehow able to run the two browsers without installing them -- if that makes any sense. :-\  What I'd like to do is install the two browsers and have them appear in my menu.

What am I overlooking that is probably right here in front of my eyes?

And thank you for getting me halfway to a complete installation. ;)

perknh
[T]here are a lot of people happily running Peppermint ICE which hasn't been receiving ANY updates for a while now .. and I personally would STILL consider that MUCH more secure than any version of Windows with up-to-date AV/Anti-malware ;)

--  PCNetSpec, Cornwall, Eng.  Dec 03, 2013 5:18 pm

Offline scifidude79

  • Hero
  • *****
  • Posts: 4029
  • Karma: 870
    • View Profile
  • Peppermint version(s): Peppermint 9
Re: What is a Linux tarball file? How do we install from it to Peppermint?
« Reply #7 on: August 21, 2018, 07:00:14 am »
What you're doing is running them from a folder in your /home folder, so no they're not technically installed. However, it's not hard to create a menu entry for them. You need to create a .desktop file, which is relatively simple. I'll use basilisk as an example. Do something like this in the terminal:

Code: [Select]
xed ~/.local/share/applications/basilisk.desktop
This will create a .desktop file for basilisk. You'll get a blank page in the text editor. You basically need the following lines:

Code: [Select]
[Desktop Entry]
Name=Basilisk
Type=Application
Exec=(complete path to the file you're opening)
Icon=(complete path to an icon image)
Categories=Network

Save the file, and it should appear in the menu. Obviously, for the paths to the file and icon image, you'll have to fill those in as I don't have the paths for your computer or the file names. ;)

Offline perknh

  • Trusted User
  • Hero
  • *****
  • Posts: 4008
  • Karma: 371
  • Soy un huevo, nada más.
    • View Profile
  • Peppermint version(s): Peppermint 10
Re: What is a Linux tarball file? How do we install from it to Peppermint?
« Reply #8 on: August 21, 2018, 09:27:46 am »
This is interesting stuff, scifidude79.   

Where would I go to see the paths for two programs I have installed -- say Firefox or Chrome?  If I knew the complete paths for Exec and Icon, then I think I could successfully complete this process.

Thank you,

perknh

[T]here are a lot of people happily running Peppermint ICE which hasn't been receiving ANY updates for a while now .. and I personally would STILL consider that MUCH more secure than any version of Windows with up-to-date AV/Anti-malware ;)

--  PCNetSpec, Cornwall, Eng.  Dec 03, 2013 5:18 pm

Offline Slim.Fatz

  • Global Moderator
  • Veteran
  • *****
  • Posts: 2316
  • Karma: 614
  • Where's the mouse?
    • View Profile
  • Peppermint version(s): Peppermint 7, 8.5 & 10 - 64bit
Re: What is a Linux tarball file? How do we install from it to Peppermint?
« Reply #9 on: August 21, 2018, 09:30:57 am »
Hi perknh,

Find them with Nemo and note the path listed. Sorry to be so short, but I don't have musch time ATM.  :)

Regards,
-- Slim
Respect science, respect nature, respect each other.

Tread lightly: Fluxbox, JWM, i3, Openbox, awesome

Offline perknh

  • Trusted User
  • Hero
  • *****
  • Posts: 4008
  • Karma: 371
  • Soy un huevo, nada más.
    • View Profile
  • Peppermint version(s): Peppermint 10
Re: What is a Linux tarball file? How do we install from it to Peppermint?
« Reply #10 on: August 21, 2018, 09:50:26 am »
Hi perknh,

...Sorry to be so short, but I don't have musch time ATM.  :)

Regards,
-- Slim

That's okay, Slim.Fatz.  Thanks for pointing in the right direction.  By taking one step at a time I'll get there. ;)
« Last Edit: August 21, 2018, 09:52:19 am by perknh »
[T]here are a lot of people happily running Peppermint ICE which hasn't been receiving ANY updates for a while now .. and I personally would STILL consider that MUCH more secure than any version of Windows with up-to-date AV/Anti-malware ;)

--  PCNetSpec, Cornwall, Eng.  Dec 03, 2013 5:18 pm

Offline pin

  • Veteran
  • ****
  • Posts: 1838
  • Karma: 280
    • View Profile
Re: What is a Linux tarball file? How do we install from it to Peppermint?
« Reply #11 on: August 21, 2018, 12:53:55 pm »
Code: [Select]
cd Downloads/
sha256sum basilisk-latest.linux64.tar.bz2
tar -xvf basilisk-latest.linux64.tar.bz2
mv basilisk ~/
rm basilisk-latest.linux64.tar.bz2
cd ~/
cd basilisk
./basilisk



https://forum.palemoon.org/viewtopic.php?f=61&t=17393&p=127407

Sorry, a bit in a hurry  :'(

Offline PCNetSpec

  • Administrator
  • Hero
  • *****
  • Posts: 26452
  • Karma: 65531
  • "-rw-rw-rw-" .. The Number Of The Beast
    • View Profile
    • PCNetSpec
  • Peppermint version(s): Peppermint 10
Re: What is a Linux tarball file? How do we install from it to Peppermint?
« Reply #12 on: August 21, 2018, 12:58:36 pm »
Wouldn't it be better off in
/opt/basilisk
rather than
~/basilisk
?

Just thinking out loud .. that's kinda what /opt is for.
« Last Edit: August 21, 2018, 01:21:21 pm by PCNetSpec »
WARNING: You are logged into reality as 'root' .. logging in as 'insane' is the only safe option.

Team Peppermint
PCNetSpec

Offline perknh

  • Trusted User
  • Hero
  • *****
  • Posts: 4008
  • Karma: 371
  • Soy un huevo, nada más.
    • View Profile
  • Peppermint version(s): Peppermint 10
Re: What is a Linux tarball file? How do we install from it to Peppermint?
« Reply #13 on: August 21, 2018, 01:33:11 pm »
Don't I just need the complete paths for Exec and Icon?  Wouldn't it be fully installed then?  I don't know what I should run here, or if I should go searching in my file system (somewhere in Nemo) for paths. :-\

Wouldn't it be better off in
/opt/basilisk
rather than
~/basilisk
?

Just thinking out loud .. that's kinda what /opt is for.

From what I read, or understood, if there is an issue here with the script, it would have something to do with updating (or being unable to update) Basilisk down the line.
« Last Edit: August 21, 2018, 01:55:15 pm by perknh »
[T]here are a lot of people happily running Peppermint ICE which hasn't been receiving ANY updates for a while now .. and I personally would STILL consider that MUCH more secure than any version of Windows with up-to-date AV/Anti-malware ;)

--  PCNetSpec, Cornwall, Eng.  Dec 03, 2013 5:18 pm

Offline PCNetSpec

  • Administrator
  • Hero
  • *****
  • Posts: 26452
  • Karma: 65531
  • "-rw-rw-rw-" .. The Number Of The Beast
    • View Profile
    • PCNetSpec
  • Peppermint version(s): Peppermint 10
Re: What is a Linux tarball file? How do we install from it to Peppermint?
« Reply #14 on: August 21, 2018, 01:55:25 pm »
Okay if it's basilisk you want to try (on 64bit Peppermint), open a terminal and run these commands in sequence:
Code: [Select]
cd /optthen
Code: [Select]
sudo wget http://us.basilisk-browser.org/release/basilisk-latest.linux64.tar.bz2then
Code: [Select]
sudo tar xvjf basilisk-latest.linux64.tar.bz2now check Basilisk works, by running
Code: [Select]
/opt/basilisk/basiliskif it does, now let's create a symlink (in the $PATH) at /usr/bin/basilisk that points at /opt/basilisk/basilisk

Back in the terminal run:
Code: [Select]
cd /usr/binthen
Code: [Select]
sudo ln -s /opt/basilisk/basilisk basiliskand finally let's create a launcher / menu item...

back in the terminal run
Code: [Select]
sudo xed /usr/share/applications/basilisk.desktopwhen a blank file opens, make it read:
Code: [Select]
[Desktop Entry]
Version=1.0
Name=Basilisk Web Browser
Comment=Browse the World Wide Web
GenericName=Web Browser
Keywords=Internet;WWW;Browser;Web;Explorer
Exec=basilisk %u
Terminal=false
X-MultipleArgs=false
Type=Application
Icon=/opt/basilisk/browser/icons/mozicon128.png
Categories=GNOME;GTK;Network;WebBrowser;
MimeType=text/html;text/xml;application/xhtml+xml;application/xml;application/rss+xml;application/rdf+xml;image/gif;image/jpeg;image/png;x-scheme-handler/http;x-scheme-handler/https;x-scheme-handler/ftp;x-scheme-handler/chrome;video/webm;application/x-xpinstall;
StartupNotify=true
Actions=new-window;new-private-window;

[Desktop Action new-window]
Name=Open a New Window
Exec=basilisk -new-window

[Desktop Action new-private-window]
Name=Open a New Private Window
Exec=basilisk -private-window
(be sure to get all of that .. it scrolls)

SAVE the file and exit the text editor.

You should now have a menu item at

Menu > Internet > Basilisk Web Browser

[EDIT]

If everything is working and you want to save a bit of disk space, freel free to delete the basilisk-latest.linux64.tar.bz2 tarball
Code: [Select]
sudo rm -v /opt/basilisk-latest.linux64.tar.bz2


Quote
From what I read, or understood, if there is an issue here with the script, it would have something to do with updating (or being unable to update) Basilisk down the line.

Basilisk installed from a tarball is not going to get updated via the system updater anyway no mater where you put it... apt will be totally unaware of its existence, and where would it get the updates from anyway as it's not in the repos ?

If basilisk has it's own updater (in say "About Baslisk"), you'd just need to start Basilsk with elevated privileges (so it has permission to write to /opt)
Code: [Select]
gksudo basiliskthen run its internal updater .. then close basilisk, and reopen it in the normal way.



Note:- When starting Basilisk with elevated privileges, always start it with "gksudo" NOT just plain "sudo" .. otherwise some of its config files (in your home directory) may become owned by root .. then you'll be unable to save some settings in Basilisk until you manually take ownership back.

If you find you've already accidentally done this, just run:
Code: [Select]
sudo chown -R $USER:$USER "/home/$USER/.moonchild productions"to take ownership back.
« Last Edit: August 21, 2018, 03:24:25 pm by PCNetSpec »
WARNING: You are logged into reality as 'root' .. logging in as 'insane' is the only safe option.

Team Peppermint
PCNetSpec