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 747 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.
      • developerbaymanD Offline
        developerbayman
        last edited by developerbayman

        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 Reply Quote 0
        • K Offline
          kugiigi
          last edited by

          What's your goal with this?

          1 Reply Last reply Reply Quote 0
          • T Offline
            TheVancedGamer @developerbayman
            last edited by

            @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

            developerbaymanD 2 Replies Last reply Reply Quote 0
            • arubislanderA arubislander moved this topic from OS on
            • developerbaymanD Offline
              developerbayman @TheVancedGamer
              last edited by

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

              arubislanderA 1 Reply Last reply Reply Quote 0
              • arubislanderA Offline
                arubislander @developerbayman
                last edited by

                @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
                • developerbaymanD Offline
                  developerbayman @TheVancedGamer
                  last edited by

                  @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

                    @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

                    developerbaymanD 1 Reply Last reply Reply Quote 0
                    • developerbaymanD Offline
                      developerbayman @carrabelloy
                      last edited by

                      @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
                      • First post
                        Last post