Since i am currently in the process of making my own Ubuntu-based distro and will be including Flock as one of the browsers to choose from, i figured i'd make a tutorial out of how to install Flock manually, since there appears to be no package for it in Ubuntu's repository and many other popular distros, and it is said that only Ultima Linux has Flock available.

For those that don't know what Flock is, rather than going into deep detail here, i'll just provide a link to the browser's site: http://www.flock.com/

And yes, to start, you're going to have to go to that link in order to download Flock for Linux. tongue.gif This whole process is relatively simple and easy to understand. However, this tutorial assumes that you know how to navigate to the directory where you've downloaded Flock to—whether it is by using the cd (change directory) command or using a GUI (a.k.a. "open terminal here").

After downloading Flock for Linux, navigate to that location in a terminal (i use Konsole), then type this in the terminal (or copy and middle click):
CONSOLE
sudo tar -C /opt -xzf flock-*.linux-i686.tar.gz

This will extract Flock into the opt directory—yes, installation is just a simple extraction, just like Firefox. This directory is normally empty and is often used to install programs in. Since the opt directory is owned by root, we needed to use sudo in order to extract Flock there.

Once you receive another prompt, we can start making a desktop entry for Flock. A desktop entry will allow Flock to show up in the system's menu; in this case, (K)(X)Ubuntu's menu. Type the following (or copy and paste) in the terminal:
CONSOLE
sudo nano /usr/share/applications/flock.desktop

This will enter you into a terminal-based text editor. Copy the following into the terminal:
CODE
[Desktop Entry]
Version=1.0
Encoding=UTF-8
Name=Flock
Comment=Flock Web Browser
Exec="/opt/flock/flock"
GenericName=Flock Web Browser
Icon=/opt/flock/icons/mozicon128.png
Path=/opt/flock
StartupNotify=true
Terminal=false
TerminalOptions=
Type=Application
X-KDE-SubstituteUID=false
X-KDE-Username=
Categories=Network;Application;
GenericName[en_US]=Flock Web Browser

After you've copied it all, hit Ctrl+X on the keyboard to exit. It'll then ask you if you want to save changes: hit "y" for yes. Then it'll ask for file name: hit enter on the keyboard since it's already there. And now you can close the terminal: manual installation complete. You should now see Flock available in your system's menu.



How do I upgrade to a newer version when available?
Simply remove the previous, old Flock archive, download the new release, and repeat command one (the one that extracts Flock into the opt directory). (You may, however, be able to upgrade it when the browser informs you that a new version is available—but i have yet to test this out.)

Why install it in /opt and not in ~/ (user's home directory)?
Although that'll work too, i based this tutorial on /opt just in case that user account gets deleted with its home directory, ruining the Flock installation for other accounts (if any).

If you have any questions, ask here.

 

 

 


Reply