[HOWTO] (CLI) Manually setup/run/update Pale Moon

Post tutorials, HOWTO's and other useful resources here.
Post Reply
Bogomips
Full of knowledge
Full of knowledge
Posts: 2563
Joined: 25 Jun 2014, 15:21
Distribution: 3.2.2 Cinnamon & KDE5
Location: London

[HOWTO] (CLI) Manually setup/run/update Pale Moon

Post#1 by Bogomips » 25 Dec 2014, 23:59

This could be of interest for those who distrust automatic installers, the more so here on a non bog-standard distro.

After an interval of several weeks since last update, new PM version out, dreaded doing update, but just following notes, went far easier than anticipated. Did not expect update to prove so relatively simple. Decided to share with those who like to run a tight ship, especially after not having been able to find the manual installation instructions again on the PM sites.

Running in RAM always fresh with no changes.

SETUP

Code: Select all

tar xjf /<Path to Download Dir>/<Palemoon Tarball>.bz2 -C /<Path to PM Dir on real FS>/
Example

Code: Select all

tar xjf /mnt/sda10/Downloads/palemoon-25.0.0.en-US.linux-i686.tar.bz2 -C /mnt/sda1/PM/
RUN Prolog

Code: Select all

sudo mkdir /opt/palemoon
sudo mount --bind /<Path to PM Dir on real FS>/palemoon  /opt/palemoon
mkdir .cache/'moonchild productions'
sudo mount --bind /<Path to PM Cache on real FS>/<PM cache>   .cache/'moonchild productions'
The .cache magicfolder, being optional and only necessary if running out of ram extremely quickly.
Example

Code: Select all

sudo mkdir /opt/palemoon
sudo mount --bind /mnt/sda1/PM/palemoon /opt/palemoon
mkdir .cache/'moonchild productions'
sudo mount --bind /mnt/sda5/moonchild .cache/'moonchild productions'
RUN

Code: Select all

sudo ln -s /opt/palemoon/palemoon /usr/bin/palemoon
sudo ln -s /opt/palemoon/browser/chrome/icons/default/default16.png /usr/share/icons/hicolor/16x16/apps/palemoon.png
sudo ln -s /opt/palemoon/browser/chrome/icons/default/default32.png /usr/share/icons/hicolor/32x32/apps/palemoon.png
sudo ln -s /opt/palemoon/browser/chrome/icons/default/default48.png /usr/share/icons/hicolor/48x48/apps/palemoon.png
sudo ln -s /opt/palemoon/browser/icons/mozicon128.png /usr/share/icons/hicolor/128x128/apps/palemoon.png
RUN Epilog

Code: Select all

PATH=$PATH:/opt/palemoon
export PATH
palemoon [-profile /<Path to Profile Dir on real FS>/<Profile Dir (folder created previously to hold profile)>]
Defining a Profile being also an optional ram saving device.
Example

Code: Select all

PATH=$PATH:/opt/palemoon
export PATH
palemoon -profile /mnt/sda1/moz/pmProfile
Combined Setup & Run Script Example

Code: Select all

sudo mkdir /opt/palemoon
sudo mount --bind /mnt/sda1/PM/palemoon /opt/palemoon
mkdir .cache/'moonchild productions'
sudo mount --bind /mnt/sda5/moonchild .cache/'moonchild productions'

sudo ln -s /opt/palemoon/palemoon /usr/bin/palemoon
sudo ln -s /opt/palemoon/browser/chrome/icons/default/default16.png /usr/share/icons/hicolor/16x16/apps/palemoon.png
sudo ln -s /opt/palemoon/browser/chrome/icons/default/default32.png /usr/share/icons/hicolor/32x32/apps/palemoon.png
sudo ln -s /opt/palemoon/browser/chrome/icons/default/default48.png /usr/share/icons/hicolor/48x48/apps/palemoon.png
sudo ln -s /opt/palemoon/browser/icons/mozicon128.png /usr/share/icons/hicolor/128x128/apps/palemoon.png

PATH=$PATH:/opt/palemoon
export PATH
palemoon -profile /mnt/sda1/moz/pmProfile
UPDATE & RUN (a breeze 8) ): After downloading new tarball, quit PM (require PM to have been running)

Code: Select all

md5sum	/<Path to Download Dir>/<Palemoon Tarball>.bz2
sudo umount /opt/palemoon
mv	/<Path to PM Dir on real FS>/palemoon   /<Path to PM Dir on real FS>/palemoon-<prev ver #>		# Backup
tar xjf /<Path to Download Dir>/<Palemoon Tarball>.bz2 -C /<Path to PM Dir on real FS>/
sudo mount --bind /<Path to PM Dir on real FS>/palemoon    /opt/palemoon
palemoon [-profile /<Path to Profile Dir on real FS>/<Profile Dir (folder created previously to hold profile)>]
Example

Code: Select all

md5sum	/mnt/sda10/Downloads/palemoon-25.1.0.en-US.linux-i686.tar.bz2
sudo umount /opt/palemoon
mv /mnt/sda1/PM/palemoon /mnt/sda1/PM/palemoon-25.0	# Backup
tar xjf /mnt/sda10/Downloads/palemoon-25.1.0.en-US.linux-i686.tar.bz2 -C /mnt/sda1/PM
sudo mount --bind /mnt/sda1/PM/palemoon /opt/palemoon
palemoon -profile /mnt/sda1/moz/pmProfile
Suppose the whole script could go into rootcopy, assuming flash plugin to already be in porteus/modules, with kernel parameter guiexec=palemoon. Not tried the rootcopy route because default KDE theme is oxygen, which crashes PM. Not sure if theme change possible in rootcopy, nor how to change theme in a script under KDE.
Linux porteus 4.4.0-porteus #3 SMP PREEMPT Sat Jan 23 07:01:55 UTC 2016 i686 AMD Sempron(tm) 140 Processor AuthenticAMD GNU/Linux
NVIDIA Corporation C61 [GeForce 6150SE nForce 430] (rev a2) MemTotal: 901760 kB MemFree: 66752 kB

Post Reply