Ask / Submit

Command line tools

asked 2017-12-05 13:15:42 +0200

mdidaryan gravatar image

I'm still new to Sailfish OS and I'm little bit confused how "Linuxy" Sailfish OS is. Can someone explain Sailfish OS Architecture. Is it kind of Linux distribution for portable devices or something else? For example why can't we install command line programs, that are available on many Linux distribution and are already ported for arm architecture, on Sailfish OS device? It would be nice to understand relation between Linux, Mer, Sailfish OS and pkcon. Why can't we do something like pkcon install gcc and many other useful programs?

edit retag flag offensive close delete

3 Answers

Sort by » oldest newest most voted

answered 2017-12-05 13:55:12 +0200

ossi1967 gravatar image

Yes, it is a Linux distribution like every other one. The two differences are shown in the architecture page you linked to:

  1. Lipstick Homescreen and UI management
  2. Android application compatibility

These two layers are not usually part of a desktop distribution.

If you compare Sailfish to a regular desktop distribution, you will find that in principle there's not much difference except for the user interface layer. On your desktop, you have Gnome, KDE or whatever. On a Sailfish device, there's a proprietary UI based on Jolla's Silica components. Yes, of course Sailfish takes care of hardware components not present on a desktop computer.... but that's details an not a fundamental difference.

I've used all my know how from the GNU/Linux desktop on the Sailfish command line, writing bash scripts and using the tools I already know. Sometimes, when I SSH into my phone from my desktop, I forget if the terminal window I work in is that of my Sailfish session or the local one.

edit flag offensive delete publish link more


That's great, thanks

mdidaryan ( 2017-12-05 14:50:50 +0200 )edit

answered 2017-12-05 13:42:54 +0200

juiceme gravatar image

1.) yes it is

2.) of course we can

3.) what makes you think "pkcon install gcc" does not work???

edit flag offensive delete publish link more


Thanks, that's cool) I don't remember deploying password while I enabled developer mode, and got authentication error. My bad

mdidaryan ( 2017-12-05 14:48:50 +0200 )edit

You can always enter a new pwd.

lakutalo ( 2017-12-05 14:53:56 +0200 )edit

answered 2017-12-05 13:55:55 +0200

lakutalo gravatar image

updated 2017-12-05 14:58:07 +0200

In addition to @juiceme's answer:

  1. Enable developer mode, deploy your password and wait for terminal to be installed
  2. Start terminal
  3. Type devel-su and enter your password deployed in first step.
  4. Type pkcon install gcc.

If you want to explore what's on the repository type pkcon search name [search string]

Last but not least, here is a great collection of other useful commands in CLI:

edit flag offensive delete publish link more




coderus ( 2017-12-05 14:00:11 +0200 )edit

added to list

lakutalo ( 2017-12-05 14:04:13 +0200 )edit

Thank you, sorry for noob question

mdidaryan ( 2017-12-05 14:50:31 +0200 )edit

Not at all! You're welcome.

lakutalo ( 2017-12-05 14:53:04 +0200 )edit

Does anybody know an easy way to get a more recent version of gcc/gcc-g++? g++ 4.8.x is too old. I would like to compile kakoune (a really addictive alternative to vim).

André ( 2018-01-02 11:05:28 +0200 )edit
Login/Signup to Answer

Question tools



Asked: 2017-12-05 13:15:42 +0200

Seen: 524 times

Last updated: Dec 05 '17