• Categories
  • Recent
  • Tags
  • Popular
  • Users
  • Groups
  • Search
  • Register
  • Login
UBports Robot Logo UBports Forum
  • Categories
  • Recent
  • Tags
  • Popular
  • Users
  • Groups
  • Search
  • Register
  • Login

unlocking ubuntu software/switching to plasma mobile (there be dragons here)

Scheduled Pinned Locked Moved Off topic
mod script
8 Posts 5 Posters 750 Views 3 Watching
Loading More Posts
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
    Reply
    • Reply as topic
    Log in to reply
    This topic has been deleted. Only users with topic management privileges can see it.
    • D Offline
      developerbayman
      last edited by developerbayman 4 Nov 2023, 21:25 11 Apr 2023, 21:16

      so im commited to breaking my device and surviving updates which im firmware hopping atm so my device is down im thinking about implementing a suicide script so to speak where i can automatically rw and change repos to regular ubuntu repos i think someone here did this? i know about the ut tweak tool and the jerk script but i was looking for something to do more this any ideas for ye ol bash script?

      first set the system to RW

      
      #!/bin/bash
      
      # Ubuntu Touch repository URLs
      UBUNTU_TOUCH_REPOS=(
          "https://system-image.ubports.com/ubuntu-touch/stable/meizu-pd.en/rc/bq-aquaris.en/stable"
          "https://system-image.ubports.com/ubuntu-touch/stable/meizu-pd.en/rc/meizu-mx4.en/stable"
          "https://system-image.ubports.com/ubuntu-touch/stable/meizu-pd.en/rc/nexus-5.en/stable"
      )
      
      # Arm64 library URLs
      ARM64_LIB_REPOS=(
          "http://ports.ubuntu.com/ubuntu-ports"
          "http://ports.ubuntu.com/ubuntu-ports"
          "http://ports.ubuntu.com/ubuntu-ports"
      )
      
      # Replace Ubuntu Touch repos with Arm64 library repos
      for i in "${!UBUNTU_TOUCH_REPOS[@]}"; do
          sudo sed -i "s|${UBUNTU_TOUCH_REPOS[$i]}|${ARM64_LIB_REPOS[$i]}|" /etc/apt/sources.list.d/ubports.list
      done
      
      # Update the package list
      sudo apt update
      
      # Install Plasma Mobile
      sudo apt install -y plasma-phone-components
      
      # Set Plasma Mobile as the default session
      sudo sed -i 's|Exec=/usr/bin/ubuntu-session|Exec=/usr/bin/startplasma-wayland|' /usr/share/xsessions/ubuntu.desktop
      

      Reboot the device

      sudo reboot

      T C 2 Replies Last reply 12 Apr 2023, 11:42 Reply Quote 0
      • K Offline
        kugiigi
        last edited by 12 Apr 2023, 04:13

        What's your goal with this?

        1 Reply Last reply Reply Quote 0
        • T Offline
          TheVancedGamer @developerbayman
          last edited by 12 Apr 2023, 11:42

          @developerbayman That is wrong, UT already uses Ubuntu repos (check /etc/apt/sources.list). The repos which you are replacing aren't even repos, they're deprecated

          D 2 Replies Last reply 15 Apr 2023, 07:33 Reply Quote 0
          • A arubislander moved this topic from OS on 13 Apr 2023, 14:27
          • D Offline
            developerbayman @TheVancedGamer
            last edited by 15 Apr 2023, 07:33

            @TheVancedGamer more about tinkering really and pushing the boundry of what can be done

            A 1 Reply Last reply 15 Apr 2023, 11:52 Reply Quote 0
            • A Offline
              arubislander @developerbayman
              last edited by 15 Apr 2023, 11:52

              @developerbayman Good luck! Keep us posted on the progression 🍿

              πŸ‡¦πŸ‡Ό πŸ‡³πŸ‡± πŸ‡ΊπŸ‡Έ πŸ‡ͺπŸ‡Έ
              Happily running Ubuntu Touch
              Google Pixel 3a (20.04 DEV)
              JingPad (24.04 preview)
              Meizu Pro 5 (16.04 DEV)

              1 Reply Last reply Reply Quote 1
              • D Offline
                developerbayman @TheVancedGamer
                last edited by 17 Apr 2023, 15:21

                @TheVancedGamer yeah im having difficulty editing the sources.list set system to RW and file permissions to rw .....did something change? Iv edited it before ....also yeah repos outdated UT sources seem rather limited my main goal rn is to get a full python enviroment running including pip ....UT built in python is minimal it seems

                1 Reply Last reply Reply Quote 0
                • C Offline
                  carrabelloy @developerbayman
                  last edited by 17 Apr 2023, 23:38

                  @developerbayman said in unlocking ubuntu software/switching to plasma mobile (there be dragons here):

                  so im commited to breaking my device and surviving updates which im firmware hopping atm so my device is down im thinking about implementing a suicide script so to speak where i can automatically rw and change repos to regular ubuntu repos i think someone here did this? i know about the ut tweak tool and the jerk script but i was looking for something to do more this any ideas for ye ol bash script?
                  first set the system to RW

                  I would since I have two FP4, like to do that too, but not on KDE but postmarketos and just as Mobian. Have not found anything yet. Maybe it is also because of my English, which I do not master so. If you have found something let me know.

                  https://twitter.com/carrabelloy/photo

                  D 1 Reply Last reply 23 Apr 2023, 17:57 Reply Quote 0
                  • D Offline
                    developerbayman @carrabelloy
                    last edited by 23 Apr 2023, 17:57

                    @carrabelloy i would switch to mobian but for me the path isnt clear im on a xaiomi redmi note 9 pro

                    1 Reply Last reply Reply Quote 0
                    1 out of 8
                    • First post
                      1/8
                      Last post