As most of you probably know, the primary operating systems for PixInsight development are Linux and FreeBSD. This means that the whole PixInsight platform, including the core application and all modules and utilities, are being developed mainly on Linux workstations. Currently our development machines run Fedora 16, Fedora 19 and PC-BSD 9.1 operating systems with KDE and GNOME desktop managers. The Windows and Mac OS X versions of PixInsight are actually ports or adaptations of the main development trunk on UNIX/Linux.
One paradoxical situation is that, being PixInsight mainly a UNIX/Linux application, so far we have not had an installation program for these platforms. Windows users simply download an installation package and run it to install PixInsight on their machines, then PixInsight gets integrated automatically with the Start menu (or whatever replaces the Start menu on Windows 8). Mac OS X users simply download a .zip archive and uncompress it on their /Applications folder. The concept of application bundle allows you to identify a whole application with a single file/icon unit, which is a nice and distinctive feature of the Mac OS X operating system.
However, Linux and FreeBSD users have to "install" PixInsight following a manual process: they have to uncompress a .tar.gz archive and manually create desktop entry files to integrate the application with their desktop manager of choice. This is a tedious to say the least. In Spanish we have a saying that goes as follows:
en casa del herrero, cuchillo de palo. The official translation of this saying into English is:
there's none worse shod than the shoemaker's wife. Some of the Spanish version's feeling gets lost in translation, but you get the idea.
This has changed forever with PixInsight 1.8.0. All FreeBSD and Linux packages include now an installer program that integrates the PixInsight application nicely with any X11 desktop manager that follows
freedesktop.org standards, such as KDE, GNOME, Xfce, LXDE, etc.
Installing PixInsight on a UNIX/Linux X11 PlatformThe procedure to install PixInsight on an X11 desktop environment is as follows:
1. Download the installation package for your platform. In all cases, installation packages for UNIX/Linux are tarballs: either .tar.gz or .tar.bz2 archives. To ease the process, better create a dedicated installation directory first, and download the package to that directory.
2. Open a terminal, go to the directory where you have downloaded the installation package, and uncompress it. For example:
cd ~/pi-install
tar -xzf PI-linux-x86_64-01.08.00.1054-20131121-c.tar.gzThis will generate two new items, namely an "installer" executable file and a "PixInsight" directory:
-rwxr-xr-x. 1 juan juan 1742471 Nov 23 11:43 installer
-rw-r--r--. 1 juan juan 97650805 Nov 23 11:44 PI-linux-x86_64-01.08.00.1054-20131121-c.tar.gz
drwxr-xr-x. 10 juan juan 4096 Nov 23 11:44 PixInsight3. Run the installer program as root. For example, using the "su" command:
su -c './installer'or with the "sudo" command:
sudo ./installerThe installer will write a list with the current installation parameters, asking you for confirmation:
[juan@volans pi-install]$ su -c './installer'
Password:
-------------------------------------------------------------------------------
PixInsight X11 UNIX/Linux installer version 01.08.00.1054 Ripley
Copyright (C) 2003-2013 Pleiades Astrophoto. All Rights Reserved
-------------------------------------------------------------------------------
PixInsight will be installed with the following parameters:
Source installation directory ... /home/juan/pi-install/PixInsight
PixInsight Core application ..... /opt/PixInsight
Application desktop entry ....... /usr/share/applications/PixInsight.desktop
Application icons directory ..... /usr/share/icons/hicolor
Create /bin launcher script ..... yes
Remove previous installation .... no
==> Are you sure [yes|no] ? You have to type either "yes" or "no" (without quotes); simply hitting the Y or N keys doesn't work. If you answer yes, then PixInsight will be installed on your system, with automatic integration in the desktop menus:
The installer doesn't create a launcher icon on the desktop, since we don't agree with these "invasive" installation practices (the Windows and Mac OS X installations don't create desktop shortcuts either), but you can easily copy/paste the launcher from the menu if you like it.
As you see, installing PixInsight on Linux and FreeBSD is now a simple three-step procedure. By default, the installer program creates a launcher script on your /bin directory, so you can run PixInsight from a terminal and any location on your system, by simply entering "PixInsight".
The PixInsight application integrates with the standard Applications/Graphics category.
Uninstalling and Reinstalling PixInsightOnce you have the application installed, you can uninstall it by passing the "-u" command line argument to the installer program:
[juan@volans pi-install]$ su -c './installer -u'
Password:
-------------------------------------------------------------------------------
PixInsight X11 UNIX/Linux installer version 01.08.00.1054 Ripley
Copyright (C) 2003-2013 Pleiades Astrophoto. All Rights Reserved
-------------------------------------------------------------------------------
*** WARNING ***
This action is irreversible. All existing files in the following directory will be removed:
/opt/PixInsight
==> Are you sure [yes|no] ? If you install a new version of PixInsight on your machine, by default the installer program will create a backup of your current installation first. Normally, you won't need a backup copy, which may waste a considerable amount of disk space. You can disable the backup copy with the "-r" argument to the installer program. In the next section we review all installer command-line arguments.
Installer Command-Line ArgumentsAs of version 1.8.0.1054, the PixInsight X11 installer program recognizes the following command-line arguments. When applicable, default argument values are written between parentheses.
--source-dir=<dir> | -s=<dir>
Specifies the source installation files directory. (./PixInsight)
--install-dir=<dir> | -i=<dir>
Specifies the target installation directory. (/opt/PixInsight)
--install-desktop-dir=<dir>
Specifies the desktop entries installation directory. (/usr/share/applications/)
--install-icons-dir=<dir>
Specifies the icons installation directory. (/usr/share/icons/hicolor/)
--bin-launcher[+|-]
Create a PixInsight launcher shell script on the /bin directory. (enabled)
--remove[+|-] | -r[+|-]
If this option is enabled and a previous PixInsight installation exists, it is removed before performing a new one. (disabled)
--uninstall | -u
Uninstalls an existing PixInsight installation.
--version
Prints the installer version and exits.
--help
Shows this help text and exits.
The most useful arguments are -r (or its equivalent long version --remove) to replace an existing installation, and -u (or --uninstall) to uninstall it. You don't need to be root to pass one of the --version or --help arguments.
Today we show some well deserved love to our UNIX/Linux users. I hope you'll like this new feature.