• Categories
  • Recent
  • Tags
  • Popular
  • Users
  • Groups
  • Search
  • Register
  • Login
UBports Robot Logo UBports Forum
  • Categories
  • Recent
  • Tags
  • Popular
  • Users
  • Groups
  • Search
  • Register
  • Login
  1. Home
  2. mikhael
  3. Best
Offline
  • Profile
  • Following 0
  • Followers 2
  • Topics 1
  • Posts 35
  • Groups 0

Posts

Recent Best Controversial
  • Feedback for the Seabass

    Hi everyone!

    Now that the Seabass2 seems to be quite stable and minimally usable and also has about 100 active installs I'd like to ask for your feedback!

    Imagine that you could have a perfect code/text editor for your UBports device! What would it be? What features would you like to see implemented? What are the things that you don't like about the Seabass most? What direction should the project progress now?

    Issues with the UI? A code linter is a must for you? Let me know what you think!

    posted in App Development
    M
    mikhael
    1 Jun 2020, 06:46
  • RE: Welcome to the UBports community! Introduce yourself here!

    Hi,

    I'm Mikhael, web developer from Siberia. Using Ubuntu Touch as my only phone OS for about two years now. So, first of all, thanks to the awesome community for keeping UT progressing, i'm now using Nexus 5 and it's great with latest OS images!

    Currently I'm developing Seabass text editor, but once I have more time I'd like to participate in developing other apps as well.

    posted in General
    M
    mikhael
    21 May 2017, 16:50
  • RE: Xiaomi Poco F1 (Beryllium)

    @joel thank you for your work!

    I'm using Ubuntu Touch on Poco as my daily driver and with the latest update to the halium-boot it seems really stable and won't even discharge anymore! Really, today is fifth day since i've charged it and it still has 35% of battery remaining.

    posted in Xiaomi
    M
    mikhael
    24 Dec 2020, 09:44
  • RE: Guide: set up a clickable working environment inside a LXC contiainer

    Guide for creating working chroot-based environment

    The purpose of the post is to provide a guide similar to the one by @Emanuele-Sorce for creating Cordova-based (and maybe other HTML5-based) applications using LXC container. Such applications are built in chroot environment, and build system is for some time unsupported in Xenial. I don't know if there are still any developers who use Cordova for Ubuntu, but if there are some, I hope the guide will be useful.

    The steps needed to setup working environment is basicly the same as in original guide with few modifications specific to build environment.

    1. Set up LXD
      The steps to set up LXD are the same as in original post

    2. Set up the container
      We need 17.04+ container, because fixes for build system are published only there and not in 16.04.

    lxc launch ubuntu:17.04 best_container_name_ever
    lxc config set best_container_name_ever security.privilegied true
    lxc config set best_container_name_ever security.nesting true
    lxc exec best_container_name_ever -- /bin/bash
    
    1. Inside the container
      Inside the container we have to do basically the same three things: basic configuration of the system, creation of a new not-root user and configuring clickable. Steps to create basic configuration of the system and a new not-root user are the same as in original post:

      apt update  
      apt install nano sudo git  
      useradd mr_nice_guy  
      passwd mr_nice_guy  
      usermod -a -G sudo mr_nice_guy  
      
      # Now we are ready to being the nice guy  
      su mr_nice_guy  
      

      We'll also need to install packages from proposed archive, and so we need to enable the archive by adding something like that to /etc/apt/sources.list:

      deb http://archive.ubuntu.com/ubuntu zesty-proposed main restricted universe multiverse  
      
    2. Configure Clickable

    • Download clickable and add it to PATH.
    • Install NodeJS:
      sudo -S apt install nodejs-legacy npm  
      
    • Install build tools
      sudo -S apt install click-dev phablet-tools
      
    • Download and Install cordova-cli package from Cordova PPA (the PPA is only for Xenial, so I downloaded it manually):
      wget https://launchpad.net/~cordova-ubuntu/+archive/ubuntu/ppa/+build/9778583/+files/cordova-cli_4.3.1-ubuntu12_all.deb;  
      sudo -S dpkg -i cordova-cli_4.3.1-ubuntu12_all.deb  
      
    • Create chroot environment for building apps:
      sudo -S click chroot -a armhf -f ubuntu-sdk-15.04 create  
      
      That's it. We now should have a working clickable environment for building Cordova apps.
    1. Notes on Cordova usage
      There are number of unfixed long-standing issues with Cordova for Ubuntu. So if you'd like to create apps using Cordova, you might be interested in project's fork, i've created. It is based on last official version, but adds few fixes that make it more usable:
    • WebView is automatically resized when on-screen keyboard is shown/hidden
    • Copy/Paste operations are supported with touchscreen

    There is also repository with patched File plugin, which gives applications ability to list hidden files and directories.

    posted in App Development
    M
    mikhael
    19 Jun 2017, 12:27
  • RE: Guide: set up a clickable working environment inside a LXC contiainer

    @Emanuele-Sorce, finally I was able to actually reproduce all the required steps to setup build environment once again, so slightly updated guide is now on wiki

    posted in App Development
    M
    mikhael
    17 Jul 2017, 14:17
  • RE: Feedback for the Seabass

    @kugiigi thank you for the feedback!
    For some reason Seabass can't execute libertine-launch on Nexus 5, although libertine-launch works fine from Terminal. The problem could be somewhere in between seabass, pyotherside, libertine-launch python script and proot (used by libertine-launch), but unfortunately for now i don't know what exactly goes wrong.

    posted in App Development
    M
    mikhael
    30 Dec 2020, 16:25
  • RE: USB Docks and Pinephone dock

    @lsitongia Video output won't work because Pixel 3a doesn't support DisplayPort alt mode over USB. Other ports on the dock might work though (if Pixel supports USB OTG).

    posted in Google Pixel 3a/3a XL
    M
    mikhael
    28 Oct 2021, 09:49
  • RE: Feedback for the Seabass

    Thank you very much for the feedback!

    @mihael said in Feedback for the Seabass:

    Could we use it to open remote files? (from a server)

    Well, maybe one day we could integrate it with sshfs!

    @kugiigi said in Feedback for the Seabass:

    Like a full-blown IDE or at least a simple one?

    Hm, not before I'll find a way to make it a paid app! 😈
    So for now I would call it just a code editor 🙂

    posted in App Development
    M
    mikhael
    2 Jun 2020, 15:06
  • RE: USB Docks and Pinephone dock

    @lsitongia, as far as I understand, "Type C" only defines physical shape of a USB port. Inside it could be USB 2.0 or USB 3 or USB 3 + DisplayPort alt mode. Most mid-range phones only have plain USB 2.0/3.0 , and so video output is not supported.

    Do you know, is that because it's the lower-cost version of the phone?

    I think it definitely helps to reduce manufacturing costs. In case of Pixel devices the absence of physical video out ports also help advertising chromecast devices, I believe 🙂 . Considering all the things I wouldn't count on support for video output over USB Type-C port on a phone by default, unless it is explicitly advertised in device specs.

    posted in Google Pixel 3a/3a XL
    M
    mikhael
    29 Oct 2021, 08:14
  • RE: Feedback for the Seabass

    @kugiigi said in Feedback for the Seabass:

    remember, there was an app before called OnTheRoad. It basically provides a full container and I remember I was able to make clickable work on it. Maybe something like this can be integrated into Seabass

    I'm actually thinking about integrating Seabass with Clickable for the next release.
    I've found no major issues with executing Clickable from the Seabass so far 🙂

    posted in App Development
    M
    mikhael
    20 Jun 2020, 10:41
  • RE: Feedback for the Seabass

    @kugiigi Libertine (with hardcoded chroot backend for the first release).

    posted in App Development
    M
    mikhael
    21 Jun 2020, 16:31
  • RE: Feedback for the Seabass

    v0.5 is up and it has support for building projects using Clickable.

    The feature is very experimental and somewhat limited for now and (although I've tested it as much as I could) there should be bugs. To build a project you need to open a corresponding clickable.json file and click the "Build" button:
    Build

    When starting a build process for the first time a new chroot Libertine container with ID seabass2-build will be created.
    So the first thing required to build packages with the Seabass for now is... patience :-D.
    Because creating a chroot container might take a while. About 30min was usually enough for my Xperia X during testing, but the experience for sure may vary depending on your device and Internet connection. The app should also be active (not sleeping) while the container is being created. The good thing is that you only need to create container once.

    If for some reason the container creation failed, Seabass will try to delete the container, so that the next time you run Build it could try to create container once again.
    And if for some reason the deletion wasn't successful, libertine-container-manager is here to help: libertine-container-manager destroy -i seabass2-build. You could also use this command if anything goes wrong with the container 🙂

    There are also a few limitations:

    • Project files should be located inside ~/Downloads or ~/Documents directories. Not really a strict requirement, just these directories are automatically mounted to Libertine containers. Alternatively you could create additional bind mounts using libertine-container-manager or maybe even System Settings application.
    • clickable.json file should be named 'clickable.json'. Because the "Build" button is only visible for "clickable.json" files.

    QML, HTML, C++ and Python clickable templates are supported for the first release (Go and Rust require additional packages that are not installed in seabass2-build by default). By "supported" I mean I've tested building "HelloWorld" applications using these templates 🙂

    Please let me know if there are missing packages in the container required to build your favorite application!
    Your feedback is very appreciated!

    posted in App Development
    M
    mikhael
    23 Jun 2020, 06:14
  • RE: Feedback for the Seabass

    Hi everyone!

    It's almost Christmas time, New Year is coming, and it means holidays and maybe some spare time for developers to create new awesome apps for UBports... and that's where the Seabass might come in handy 🙂

    The next release is going to provide an ability to create new apps for UBports from within the Seabass. Hopefully that means building apps right on your phone/tablet more easily.

    So if you happen to have a use case for a mobile/convergent dev environment to build UBports apps and you have a device that supports Libertine, I'd be grateful for your suggestions and feedback!

    For now there is a beta version available for testing.
    It has a new menu entry called "New project..." in the file list:

    New menu entry

    It leads to the project settings page:

    New Project page

    Here you can specify all the options supported by Clickable and create a new app.

    There are a few limitations for now:

    • Libertine support is required
    • Creating a Libertine container (during the first run of clickable) might take a while
    • Seabass now uses a pre-release version of clickable that might have a few breaking changes
    • it's only possible to create new projects inside ~/Documents and ~/Downloads directories (and any nested directories)

    Click package is available on Github: v1.0.0-beta-1

    posted in App Development
    M
    mikhael
    12 Dec 2020, 15:27