Page 1 of 1

Scripts for installing / updating the basilisk browser under Debian / Ubuntu variations

Posted: 2017-11-17, 19:30
by mseliger
Install Basilisk Web Browser on Debian- or Ubuntu-based System (like Lubuntu, Kubuntu, etc.)

The script is the likely the same as for installing the Firefox ESR version on a Debian-based System.

1. Download the Linux tarball:
http://www.basilisk-browser.org/download.shtml

2. Create a new textfile with the extension .sh (or no extension) with this content:

Code: Select all

#!/bin/bash
sudo tar -xvf basilisk.tar.bz2 -C /opt
sudo ln -s /opt/basilisk/basilisk /usr/bin/basilisk
sudo ln -s /opt/basilisk/browser/chrome/icons/default/default16.png /usr/share/icons/hicolor/16x16/apps/basilisk.png
sudo ln -s /opt/basilisk/browser/chrome/icons/default/default32.png /usr/share/icons/hicolor/32x32/apps/basilisk.png
sudo ln -s /opt/basilisk/browser/chrome/icons/default/default48.png /usr/share/icons/hicolor/48x48/apps/basilisk.png
sudo ln -s /opt/basilisk/browser/icons/mozicon128.png /usr/share/icons/hicolor/128x128/apps/basilisk.png
sudo update-alternatives --install /usr/bin/x-www-browser x-www-browser /usr/bin/basilisk 100
3. Rename the downloaded tarball to

Code: Select all

basilisk.tar.bz2
.

4. Start the terminal and enter

Code: Select all

sh basilisk.sh
You will be asked for your root password.
After that the installation started.

5. Create a new link / desktop file to the basilisk web browser:
Open an text editor and enter the following lines:

Code: Select all

[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=NewWindow;NewPrivateWindow;

[Desktop Action NewWindow]
Name=Open a New Window
Exec=basilisk -new-window
OnlyShowIn=Unity;

[Desktop Action NewPrivateWindow]
Name=Open a New Private Window
Exec=basilisk -private-window
OnlyShowIn=Unity;
Save the file as basilisk.desktop.
Copy the file as sudo in the folder

Code: Select all

sudo cp YourBasiliskDesktopFile /usr/share/applications
Now you can launch your Basilisk Web Browser from the startmenu.

I will add an update script later in this topic.

Re: Scripts for installing / updating the basilisk browser under Debian / Ubuntu variations

Posted: 2017-11-17, 19:32
by Moonchild
Basilisk includes the internal updater. A script for manually downloading and updating *should* not be needed.

Re: Scripts for installing / updating the basilisk browser under Debian / Ubuntu variations

Posted: 2017-11-17, 19:52
by adesh
Yeah, but Linux has its quirks! Internal updater may not work if Basilisk is installed in a location different from user's "home" directory.

Re: Scripts for installing / updating the basilisk browser under Debian / Ubuntu variations

Posted: 2017-11-18, 00:39
by Isengrim
Just installed this on Linux Mint 17.3 without a hitch. Thank you, mseliger!

Re: Scripts for installing / updating the basilisk browser under Debian / Ubuntu variations

Posted: 2017-11-18, 01:22
by gracious1
mseliger wrote:

Code: Select all

#!/bin/bash
Quick question, is there a reason you chose bash over sh ?

Re: Scripts for installing / updating the basilisk browser under Debian / Ubuntu variations

Posted: 2017-11-18, 04:33
by trava90
It should also be noted that extracting Basilisk to a non user-writable location (such as /opt as this script does), will not allow the internal updater to work.

Re: Scripts for installing / updating the basilisk browser under Debian / Ubuntu variations

Posted: 2017-11-23, 14:27
by KNTRO
Just installed it on Ubuntu MATE 17.10. :mrgreen: Thank you so much!

I hope a GNU/Linux installer like Pale Moon's be available whenever Basilisk leaves Beta stage. ;)

Re: Scripts for installing / updating the basilisk browser under Debian / Ubuntu variations

Posted: 2017-11-23, 15:51
by trava90
There will be no official installer tool as it is not needed (see above).

Re: Scripts for installing / updating the basilisk browser under Debian / Ubuntu variations

Posted: 2017-11-23, 16:47
by Isengrim
I only intend to use this script for first-time installation. Will the update mechanism work correctly if the application is installed to /usr/lib?

Re: Scripts for installing / updating the basilisk browser under Debian / Ubuntu variations

Posted: 2017-11-23, 17:35
by Moonchild
Isengrim wrote:I only intend to use this script for first-time installation. Will the update mechanism work correctly if the application is installed to /usr/lib?
The update mechanism will only work if the browser is installed in a location that is writable by your user account. if /usr/lib is writable without elevation (e.g. sudo) by your user account, then it should work. If not, then not.

Re: Scripts for installing / updating the basilisk browser under Debian / Ubuntu variations

Posted: 2017-11-25, 03:22
by ianas
with the exception of the Desktop file this is such a bad idea on the other side as far as I can tell this script is not limited to Debian forks it should work on all Linuxes there is nothing Debiany about it
do not use this script do not put Basilisk in a root writable directory

Re: Scripts for installing / updating the basilisk browser under Debian / Ubuntu variations

Posted: 2017-11-28, 18:45
by mseliger
How to update the basilisik browser

1. Download the Linux tarball:
http://www.basilisk-browser.org/download.shtml

2. Create a new textfile with the extension .sh (or no extension) with this content:

Code: Select all

sudo rm -rf /opt/basilisk
sudo tar -xvf basilisk.tar.bz2 -C /opt
Name the file e.g. basiliskupdate.sh

3. Rename the downloaded tarball to

Code: Select all

basilisk.tar.bz2
4. Start the terminal and enter

Code: Select all

sh basiliskupdate.sh
You will be asked for your root password.
After that the update started.

Re: Scripts for installing / updating the basilisk browser under Debian / Ubuntu variations

Posted: 2017-11-29, 05:02
by gracious1
trava90 wrote:It should also be noted that extracting Basilisk to a non user-writable location (such as /opt as this script does), will not allow the internal updater to work.
For those who prefer to update manually, this would be acceptable, and indeed preferable. You would get an error message that an update could not be made because of permissions. This would serve as a notice that an update is available. You could then use the script to download and install the latest tarball, or just perform the commands yourselves.

If you want to use the update mechanism, and you've already used the script as written to install Basilisk, then moving the basilisk directory to a user-writable directory won't help, because root still owns the directory and its contents. So just change ownership, like so:

Code: Select all

sudo -i
chown -R your_name:your_group /opt/basilisk 
exit
Substitute your name and group (usually identical to your name on your personal computer).

Peace.

Re: Scripts for installing / updating the basilisk browser under Debian / Ubuntu variations

Posted: 2017-12-03, 04:09
by ron_1
Tried the instructions in the original post; they didn't work for me. I got the message "sh: 0: Can't open basilisk.sh". So I then manually copied the basilisk folder into /opt as administrator, followed the instructions for the "basilisk.desktop" file, saved it where instructed, but the start menu entry did not start the browser. So I went to /opt/basilisk, and clicked on the basilisk file, and the browser started, so nothing was wrong there. Any idea why the instructions didn't work for me? I'm on Linux Mint 18.3, Mate, 64 bit.

The main reason why I tried this is because I want a start menu entry. Is there any other way to get that?

Re: Scripts for installing / updating the basilisk browser under Debian / Ubuntu variations

Posted: 2017-12-03, 11:57
by gracious1
helloimustbegoing wrote:Tried the instructions in the original post; they didn't work for me. I got the message "sh: 0: Can't open basilisk.sh".
The script presumes that the script and the tarball are in the same directory. Was this the case when you tried to run it?
helloimustbegoing wrote: So I then manually copied the basilisk folder into /opt as administrator, followed the instructions for the "basilisk.desktop" file, saved it where instructed, but the start menu entry did not start the browser.
Did you create the crucial symbolic link?

Code: Select all

sudo ln -s /opt/basilisk/basilisk /usr/bin/basilisk
In fact, you should create all the symbolic links in the script. (Those are the lines that begin with
"sudo ln -s").

Re: Scripts for installing / updating the basilisk browser under Debian / Ubuntu variations

Posted: 2017-12-03, 13:56
by ron_1
gracious1 wrote:
The script presumes that the script and the tarball are in the same directory. Was this the case when you tried to run it?
Yes.
gracious1 wrote:
Did you create the crucial symbolic link?
No. Maybe when I get the time I'll try again. Thanks for helping. Still can't figure out why the script didn't work since they (script & tarball) were both in the same directory though.

Re: Scripts for installing / updating the basilisk browser under Debian / Ubuntu variations

Posted: 2017-12-03, 14:14
by trava90
helloimustbegoing wrote:The main reason why I tried this is because I want a start menu entry. Is there any other way to get that?
Most Linux distros that I'm aware of come with a GUI menu editor where you can add your own custom entries.

Re: Scripts for installing / updating the basilisk browser under Debian / Ubuntu variations

Posted: 2017-12-03, 14:43
by ron_1
Thanks gracious1, it worked.
trava90 wrote:
Most Linux distros that I'm aware of come with a GUI menu editor where you can add your own custom entries.
I didn't see this till after I did the above. But thanks, now I'll know for next time.

Another question I have, since it has been discussed in this thread, is where is a good place to "install" the basilisk folder? All of the folders in "/" are not writeable, except the /tmp folder. Is it okay to put it there?

Re: Scripts for installing / updating the basilisk browser under Debian / Ubuntu variations

Posted: 2017-12-07, 15:35
by gracious1
helloimustbegoing wrote:Thanks gracious1, it worked.
Hey, you're welcome! :mrgreen:
Another question I have, since it has been discussed in this thread, is where is a good place to "install" the basilisk folder?
Generally I put manually installed software in /opt .
It's okay to leave it there; then you can recursively make /opt/basilisk writeable, like so:

Code: Select all

sudo chown -R your_name:your_group /opt/basilisk
Substitute your actual user name and group. On your personal computer, the name and the group are likely the same.
But if you really must check enter this command:

Code: Select all

getent group your_name
You will get output like this:

Code: Select all

your_group:x:1000:
This tells you that your_group is your primary group.
Actually, it was writeable all along, but only to root; now you own the directory and its contents, rather than root. Verify by entering this:

Code: Select all

ls -l /opt
Somewhere in the list generated you should see something like this:

Code: Select all

drwxr-xr-x 1 your-name    your-group    1116 Dec  5 09:21 basilisk
The first part of the string, drwx, tells you that it is a directory that is read/write/execute-able by you.
helloimustbegoing wrote:… the /tmp folder. Is it okay to put it there?
Nope!!! :!: :!: :!: Don't do it!