Sailfish OS: Difference between revisions

From www.deloptes.org
Jump to navigation Jump to search
 
(10 intermediate revisions by the same user not shown)
Line 13: Line 13:
* [https://together.jolla.com/question/139540/how-to-removing-intex-content-from-aqua-fish/?sort=votes&page=1 Removing Intex content from Aqua Fish]
* [https://together.jolla.com/question/139540/how-to-removing-intex-content-from-aqua-fish/?sort=votes&page=1 Removing Intex content from Aqua Fish]
* [https://www.learn2crack.com/2013/08/run-sailfishos-pc.html Sailfish VirtualBox Howto]
* [https://www.learn2crack.com/2013/08/run-sailfishos-pc.html Sailfish VirtualBox Howto]
* [https://together.jolla.com/question/70745/command-line-equivalents-of-gui-commands/ Command line equivalents of GUI commands]
== MER project ==
* [https://wiki.merproject.org/wiki/SailfishOSS SailfishOSS]
* [https://wiki.merproject.org/wiki/Architecture Architecture]
* [https://git.merproject.org/mer-core/ GIT MER Project]


==SDK Related==
==SDK Related==
Line 18: Line 24:
* [https://sailfishos.org/wiki/Application_SDK_Installation Application_SDK_Installation]
* [https://sailfishos.org/wiki/Application_SDK_Installation Application_SDK_Installation]
* [https://sailfishos.org/develop/tutorials/building-sailfish-os-packages-manually/ Building Sailfish OS packages manually]
* [https://sailfishos.org/develop/tutorials/building-sailfish-os-packages-manually/ Building Sailfish OS packages manually]


     ssh -p 2222 -i /opt/custom/SailfishOS/vmshare/ssh/private_keys/engine/mersdk mersdk@localhost
     ssh -p 2222 -i /opt/custom/SailfishOS/vmshare/ssh/private_keys/engine/mersdk mersdk@localhost
     cd /home/src1
 
     cd project
 
     mb2 -x -t SailfishOS-armv7hl build
     cd /devel
     cd <project name>
 
* build for armv7hl (device)
     export TARGET=SailfishOS-2.1.4.13-armv7hl


* build for i486 (emulator)
* build for i486 (emulator)
    export TARGET=SailfishOS-2.1.4.13-i486
    mb2 -t $TARGET build
or
    mb2 -x -t $TARGET build


    mb2 -x -t SailfishOS-i486 build
* target is what is configured in the QT manager


* provide spec file
* provide spec file
     mb2 -s <xxxx.specs> -x -t SailfishOS-armv7hl build
     mb2 -t $TARGET -s <xxxx.specs> build
 
PACKAGE RELATED
* On the phone install packages
    rpm -Uvh buteo-syncfw-qt5-0.8.13-1.armv7hl.rpm buteo-syncfw-qt5-msyncd-0.8.13-1.armv7hl.rpm


* reload user daemon after installation of related program
    systemctl --user daemon-reload
* restart the user service
    systemctl-user restart msyncd


'''''Note:''''' <blockquote>Regarding the versioning, when you build the packages (using mb2) you can specify the -x flag to use the version from the git tag rather than the .spec file.  Alternatively, you can manually bump the version in the .spec file prior to building your packages, to ensure that the version you build is higher than the version installed on the device.
'''''Note:''''' <blockquote>Regarding the versioning, when you build the packages (using mb2) you can specify the -x flag to use the version from the git tag rather than the .spec file.  Alternatively, you can manually bump the version in the .spec file prior to building your packages, to ensure that the version you build is higher than the version installed on the device.
Line 38: Line 63:


==Bluetooth and Syncing==
==Bluetooth and Syncing==
'''''Docs'''''


* [https://wiki.archlinux.org/index.php/Bluetooth_headset BlueTooth@ArchLinux]
* [https://wiki.archlinux.org/index.php/Bluetooth_headset BlueTooth@ArchLinux]
* [https://wiki.merproject.org/wiki/Buteo/SyncML Buteo SyncML]
* [https://wiki.merproject.org/wiki/Sync_plugins Buteo Sync Plugins]
* [http://talk.maemo.com/showthread.php?t=81712 On maemo.com]


* [https://wiki.merproject.org/wiki/Sync_plugins Buteo SyncML] [http://talk.maemo.com/showthread.php?t=81712 On maemo.com]
* [https://git.merproject.org/mer-core/buteo-sync-plugins/merge_requests/1 Calendar patch]
* [https://together.jolla.com/question/2357/syncevolution-for-jolla/ SyncEvolution] [https://www.mail-archive.com/syncevolution@syncevolution.org/msg05231.html Thread]
* [https://together.jolla.com/question/2357/syncevolution-for-jolla/ SyncEvolution] [https://www.mail-archive.com/syncevolution@syncevolution.org/msg05231.html Thread]
* [https://together.jolla.com/question/22198/sync-sailfish-addresses-and-calendar-with-memotoo/ Address and Calendar with Maemo]
* [https://together.jolla.com/question/22198/sync-sailfish-addresses-and-calendar-with-memotoo/ Address and Calendar with Maemo]
* [https://together.jolla.com/question/46789/when-can-we-get-pim-functionality-on-par-with-n9/?sort=votes&page=1#151321 PIM thread]
* [https://together.jolla.com/question/46789/when-can-we-get-pim-functionality-on-par-with-n9/?sort=votes&page=1#151321 PIM thread]
'''''Code'''''
* [https://git.merproject.org/mer-core/buteo-syncfw/tree/master Buteo Syncfw]
* [https://git.merproject.org/mer-core/buteo-syncml Buteo SyncML]
* [https://git.merproject.org/mer-core/buteo-sync-plugins/merge_requests/1 Buteo Sync PLugins with calendar patch]
* [https://git.merproject.org/mer-core/obex-capability Simple OBEX capabilities]


=Tricks and Tipps=
=Tricks and Tipps=
Line 65: Line 100:
   <nowiki># ssh nemo@192.168.2.15</nowiki>
   <nowiki># ssh nemo@192.168.2.15</nowiki>


== Restart lipstick==
  systemctl --user restart lipstick


=PKGCON=
=PKGCON=

Latest revision as of 23:31, 10 January 2019

RELEASES

LINKS

OS related

MER project

SDK Related


   ssh -p 2222 -i /opt/custom/SailfishOS/vmshare/ssh/private_keys/engine/mersdk mersdk@localhost


   cd /devel
   cd <project name>
  • build for armv7hl (device)
   export TARGET=SailfishOS-2.1.4.13-armv7hl
  • build for i486 (emulator)
   export TARGET=SailfishOS-2.1.4.13-i486
   mb2 -t $TARGET build

or

   mb2 -x -t $TARGET build
  • target is what is configured in the QT manager
  • provide spec file
   mb2 -t $TARGET -s <xxxx.specs> build

PACKAGE RELATED

  • On the phone install packages
   rpm -Uvh buteo-syncfw-qt5-0.8.13-1.armv7hl.rpm buteo-syncfw-qt5-msyncd-0.8.13-1.armv7hl.rpm
  • reload user daemon after installation of related program
   systemctl --user daemon-reload
  • restart the user service
   systemctl-user restart msyncd

Note:

Regarding the versioning, when you build the packages (using mb2) you can specify the -x flag to use the version from the git tag rather than the .spec file.  Alternatively, you can manually bump the version in the .spec file prior to building your packages, to ensure that the version you build is higher than the version installed on the device. As a final alternative, you can install packages with "rpm -Uvh --force --nodeps *rpm" to ignore package and version dependency requirements (beware, this can cause issues if you aren't sure that your packages are binary compatible, etc).

Bluetooth and Syncing

Docs

Code

Tricks and Tipps

Bring up usb interface up

  • on Debian Jessie
 # ifconfig usb0 192.168.2.14 up
  • on Debian Stretch use your interface:
 # ip link
  # ifconfig enp0s26u1u3 192.168.2.14 up
  • on Intex AquaFish (2.0.x):
 # systemctl sshd restart
  • on pc :
 # ssh nemo@192.168.2.15

Restart lipstick

 systemctl --user restart lipstick

PKGCON

     
    PKCON(1)                                        User Commands                                            PKCON(1)

    NAME
           pkcon - PackageKit console client

    SYNOPSIS
           pkcon [OPTION...] [COMMAND]

    DESCRIPTION
           This manual page documents briefly the pkcon command.

           pkcon is the command line client for PackageKit.

    COMMANDS
           pkcon knows about the following commands. Depending on the backend in use, not all of them may be available.

           backend-details
           Print information about the PackageKit backend in use.

           get-roles
           List the roles that a transaction can have.

           get-groups
           List the available package groups.

           get-filters
           List the available filters.

           get-transactions
           List known transactions.

           get-time ROLE
           Print the time that has passed since the last transaction with the given role.

           search [name|details|group|file] DATA
           Search for a package matching the given data. The search is performed in the package information that is
           indicated by the first argument: name, details, group or files.

           install PACKAGES
           Install the given packages from repositories.

           install-local FILES
           Install the given packages from the local filesystem.

           download DIRECTORY PACKAGES
           Download the given packages from repositories, and store them in the given directory.

           install-sig TYPE KEY_ID PACKAGE
           Install a package signature. Only GPG signatures are supported at this time.

           remove PACKAGE
           Remove the given package.

           update [PACKAGES]
           Update the system by installing available updates. If a list of packages is specified, only install
           updates for these packages.

           refresh [force]
           Refresh the cached information about available updates.

           resolve PACKAGE
           Resolve the given package name and print information about installed or available packages and updates.

           upgrade-system DISTRIBUTION [minimal|default|complete]
           Upgrade the system to the given distribution.

           get-updates
           List available updates.

           get-distro-upgrades
           List available distribution upgrades.

           get-depends PACKAGE
           List dependencies fo the given package.

           get-requires PACKAGE
           List packages that require the given package.

           get-details PACKAGE
           Print details about the available or installed package with the given name.

           get-files PACKAGE
           List the files contained in the given package.

           get-update-detail PACKAGE
           Print the package changelog for the given package.

           get-packages
           List all available and installed packages.

           repo-list
           List all configured package repositories.

           repo-enable REPOSITORY
           Enable the given repository.

           repo-disable REPOSITORY
           Disable the given repository.

           repo-set-data REPOSITORY PARAMETER DATA
           Set the given parameter to the given value for the repository.

           what-provides STRING
           List packages that provide the given string.

           accept-eula EULA_ID
           Accept the EULA with the given id.

           get-categories
           List available categories.

           repair
           Attempt to repair the system package database.

           offline-get-prepared
           Print information about the prepared offline update. If no offline update is prepared, exit with an exit
           code of 1.

           offline-trigger
           Trigger an offline update.

           offline-status
           Print information about the result of the last offline update.

    OPTIONS
           The following options can be used to influence the behavior of pkcon.

           --version
           Print the program version and exit.

           -h, --help
           Show help options.

           --help-all
           Show all help options.

           --filter FILTER
           Set the filter to use.

           -y, --noninteractive
           Install packages without asking for confirmation.

           --only-download
           Prepare the transaction by downloading packages only.

           -n, --background
           Run the command using idle network bandwidth and also using less power.

           -p, --plain
           Print to screen a machine-readable output, rather than using animated widgets.

           -v, --verbose
           Show debugging information.

           -c, --cache-age AGE
           Set the maximum acceptable age for cached metadata, in seconds. Use -1 for 'never'.

           --allow-untrusted
           Allow untrusted packages to be installed.

    RETURN VALUES
           0
           Success

           1
           Failed with miscellaneous internal error.

           3
           Failed with syntax error, or failed to parse command.

           4
           Failed as a file or directory was not found.

           5
           Nothing useful was done.

           6
           The initial setup failed, e.g. setting the network proxy.

           7
           The transaction failed, see the detailed error for more information.

    SEE ALSO
           pkmon (1).

           The programs are documented fully on http://www.packagekit.org.

    AUTHOR
           This manual page was written by Richard Hughes <richard@hughsie.com>.

    AUTHOR
           Richard Hughes
           Author.

    COPYRIGHT
           Copyright © 2007 - 2013 Richard Hughes

    PackageKit                                      July 29, 2013                                            PKCON(1)