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

    runnig a webserver - no chance

    Scheduled Pinned Locked Moved Support
    31 Posts 12 Posters 7.3k Views 5 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.
      • dobeyD Offline
        dobey
        last edited by

        Ubuntu Touch is not a traditional PC Linux distro running on a phone. It is an OS designed for phones/tablets, including with security, privacy, and power management features suited for such use.

        If what you want is to use your phone like a traditional Linux distro, as essentially an expensive and less reliable Raspberry Pi server, then you are probably going to be disappointed by Ubuntu Touch, and other distributions like postmarketOS or Mobian may be more what you are looking for.

        B 1 Reply Last reply Reply Quote 1
        • B Offline
          bforpc @Giiba
          last edited by

          @Giiba said in runnig a webserver - no chance:

          I'm curious if it is possible; the very nature of UT makes background processing difficult. I know gps tracking with the screen off is a hack at best still. So even if you did get it running you may need to leave the screen on.

          at root. the deamon is running well. With offline screen.

          It looks like xampp should be possible on 16.04, you would have to make the system writable... but then you likely lose updates.

          See:
          https://linoxide.com/ubuntu-how-to/install-xampp-stack-ubuntu-16-04-terminal/

          I will get this my last try.
          THX.

          Bfo

          1 Reply Last reply Reply Quote 0
          • B Offline
            bforpc @dobey
            last edited by

            @dobey said in runnig a webserver - no chance:

            Ubuntu Touch is not a traditional PC Linux distro running on a phone. It is an OS designed for phones/tablets, including with security, privacy, and power management features suited for such use.

            YES, you would not belive, but i know this very well.
            I dont need this questions: "why" bla blah ... because ... i had a lot of arguments, but here is not the place nor the time to discuss. Answer the question not your feeling.

            If what you want is to use your phone like a traditional Linux distro, as essentially an expensive and less reliable Raspberry Pi server,

            I have already try that. But it is not the same, to have a flat Hardware with webserver and working touchscreen in high res in your pocket as a "big" raspi, with power suply and cables and and and.
            Also your comment is disappointing.
            We have already 2 big player and some smaller ons (like ubport). If ubort does the same like all the others: Why someone should use it, or better question: Why some reseller should use it.
            Does ubport not offering "Desktop" feeling with a remote monitor and Keyboard/mouse? So what?

            If its not working at this time: OK, the developer needs maybe more time. But it will be a great enhancment for all the one's who can use the hole Office in one hand- incl. development and other needfull (desktop/CLI) software.

            then you are probably going to be disappointed by Ubuntu Touch, and other distributions like postmarketOS or Mobian may be more what you are looking for.

            Mobian is runnung on 2 pine Phones only ...
            It's not an alternatie.

            Bfo.

            AppLeeA 1 Reply Last reply Reply Quote -2
            • AppLeeA Offline
              AppLee @bforpc
              last edited by

              @bforpc
              Please try to keep the conversation polite.

              You can't expect people to just answer your question without a bit of context.
              People here want to help, but you need to explain your goal, what you tried and failed so we can find the best answer.
              And yes, sometimes the best answer is use another OS because UT is not what you think it is.

              So you're using a Nexus5, you tried to install nginx and apache.
              What is your goal ? You want to create an app using the webserver for something ? You just want to access your phone from your local network ? Do you intend to release it in the open store or is it a personal hack ?

              Depending on your choices and your goal the answer can vary a lot.

              Oh and BTW, convergence is about creating an ecosystem with apps that can change their UI depending on what is the easiest way to interact with them.
              It's not relevant to your problem here.

              B 1 Reply Last reply Reply Quote 0
              • B Offline
                bforpc @AppLee
                last edited by bforpc

                @AppLee said in runnig a webserver - no chance:

                @bforpc
                Please try to keep the conversation polite.

                sorry, but it is nerving to hear always the questions, like ...why you want to do that ...
                the most answer can be: because i want to do it, or,, because i will see, if it works ... or in my case: because i need a minimum transportable webserver and no additional hardware, cables, big cases, power supply and so on.

                What is your goal ? You want to create an app using the webserver for something ? You just want to access your phone from your local network ? Do you intend to release it in the open store or is it a personal hack ?

                I dont want to create an app. Where have you read this? I want to use a portable webserver (like described above).

                Oh and BTW, convergence is about creating an ecosystem with apps that can change their UI depending on what is the easiest way to interact with them.
                It's not relevant to your problem here.

                Yes, no problem. But - if the system also can be "convergence" - it will be one thing more, what speaks for ubort.

                Bfo

                AppLeeA 1 Reply Last reply Reply Quote -1
                • poVoqP Offline
                  poVoq
                  last edited by

                  Doesn't answer your question, but it can be done with Android and Termux in case you are open to going back to Android.

                  Fairphone 5 (waiting for port)

                  B 1 Reply Last reply Reply Quote 0
                  • B Offline
                    bforpc @poVoq
                    last edited by

                    @poVoq said in runnig a webserver - no chance:

                    Doesn't answer your question, but it can be done with Android and Termux in case you are open to going back to Android.

                    Thanks for this hint. I will give a try.

                    bfo

                    1 Reply Last reply Reply Quote 0
                    • AppLeeA Offline
                      AppLee @bforpc
                      last edited by

                      @bforpc said in runnig a webserver - no chance:

                      I dont want to create an app. Where have you read this? I want to use a portable webserver (like described above).

                      I'm asking questions because I cannot figure out what you're trying to achieve.
                      A portable webserver is not an answer because a webserver can be anything and can be used in so many different ways.

                      Maybe you want to self host a website on your phone, maybe you want to host data for an app (apparently no), maybe that's for home automation, security features or privacy issues, ...
                      How do you intend on accessing your server ? Browser, webservices, etc.
                      Depending on your use case we might suggest creating an app, using X in Libertine or Y in anbox. It can even lead to a useful feature for the many...

                      That's why we ask questions. To be able to give you the best advice.
                      If no one tried to install apache or nginx, no one will be able to help.
                      But if someone tackle a similar problem maybe it could help you.

                      Webapps are basically local webservers, but if you wish to access it from any internet connected computer it's not suitable.
                      Syncing your data to a Nextcloud instance can be a solution to share data locally stored.
                      ...
                      If we don't understand it's hard to help. We are no mind readers.

                      1 Reply Last reply Reply Quote 0
                      • dobeyD Offline
                        dobey
                        last edited by

                        The bottom line is that yes, you can run a web server on your phone if you want to, but no, it's not going to work the same as running a web server on a stationary computer with a stable network connection.

                        B 1 Reply Last reply Reply Quote 1
                        • B Offline
                          bforpc @dobey
                          last edited by bforpc

                          @dobey said in runnig a webserver - no chance:

                          The bottom line is that yes, you can run a web server on your phone if you want to, but no, it's not going to work the same as running a web server on a stationary computer with a stable network connection.

                          But exactly that will be the benefit.
                          If ubports should be more then a system for nerds and some special interest groups, then it should have more than the other 2 OS'es.

                          Think bigger. Get out of your jail.
                          If it is not know available, OK, take your time, take what you need. But develop it in this direction.

                          Bfo

                          AppLeeA KenedaK 2 Replies Last reply Reply Quote -4
                          • AppLeeA Offline
                            AppLee @bforpc
                            last edited by

                            @bforpc
                            You'll have to understand that this is a community and it is rude to show up and dictate how people should act.

                            Ubuntu Touch has already more to offer than the big-two.
                            As already stated if you don't like it, no one is forcing you to use it.

                            If you like it then great, you're welcome to help improve Ubuntu Touch.
                            Because like I said, we're a community and that's how it works.

                            So please stop being condescending and rude, that's not how you ask people for help.
                            We understand English might not be your native language, but please be respectful.

                            B 1 Reply Last reply Reply Quote 3
                            • KenedaK Offline
                              Keneda @bforpc
                              last edited by Keneda

                              @bforpc said in runnig a webserver - no chance:

                              If ubports should be more then a system for nerds and some special interest groups, then it should have more than the other 2 OS'es.

                              Before anything else, uTouch is a phone targeted os for people, any kind, that wish to get rid of gafam.

                              All those people need, 90% i'd say, is reliable basic smarphone features first, and if possible when such is done, reliable advanced smartphone features.

                              Right now there is lot to do for few devs, so just take on you and wait.

                              You can't ask ten devs or so, to achieve the same work that hundred of thousand do for the other 2 OS'es in the same time.

                              2015-2023 : Meizu MX4 ☠️⚰️✝️
                              2023-2024 : Nexus 5 ☠️⚰️✝️
                              2024-***** : FPOS Fairphone 5 waiting UT for freedom 😉
                              🇲🇫🇬🇧

                              B 1 Reply Last reply Reply Quote 4
                              • B Offline
                                bforpc @Keneda
                                last edited by bforpc

                                @Keneda said in runnig a webserver - no chance:

                                @bforpc said in runnig a webserver - no chance:

                                If ubports should be more then a system for nerds and some special interest groups, then it should have more than the other 2 OS'es.

                                Before anything else, uTouch is a phone targeted os for people, any kind, that wish to get rid of gafam.

                                All those people need, 90% i'd say, is reliable basic smarphone features first, and if possible when such is done, reliable advanced smartphone features.

                                Right now there is lot to do for few devs, so just take on you and wait.

                                You can't ask ten devs or so, to achieve the same work that hundred of thousand do for the other 2 OS'es in the same time.

                                Everything you said is true and i respect the developer for their work and time. I'm also an developer, so i know, what i talk abaout.
                                But its disappointing, if the system is touted as better as the 2 ones, with convergence AND a linux root system.
                                I know, it needs more time. A lot of wishes are in the pipe.

                                btw: I have try termux on android - and this also do not work as expected, because of google (android jail). This is good for 75% of all, but not for me. Therfore i serach for a alternate solution.

                                however: this discussion breaks the sense of the original forum question.
                                So @all (developer): I wish you the best.

                                Bfo

                                1 Reply Last reply Reply Quote 0
                                • B Offline
                                  bforpc @AppLee
                                  last edited by

                                  @AppLee said in runnig a webserver - no chance:

                                  We understand English might not be your native language, but please be respectful.

                                  Sorry, but where i wasnt respectful?
                                  Or is a critical question disrespectful?

                                  Bfo

                                  AppLeeA 1 Reply Last reply Reply Quote 0
                                  • AppLeeA Offline
                                    AppLee @bforpc
                                    last edited by

                                    @bforpc
                                    By that I meant :

                                    Think bigger. Get out of your jail.

                                    This implies that we (as a community) did not and that is not helping.
                                    I understand you don't mean harm but textual communication does not have tone to help understanding.
                                    And as you realize I have to be to, because I didn't want to hurt your feelings too.

                                    To get back on topic, can you be more specific on why termux is not fulfilling your need and what exactly you're looking for.
                                    I don't think there is a magical solution to your problem, but we certainly can find something to help you out.

                                    B 1 Reply Last reply Reply Quote 1
                                    • B Offline
                                      bforpc @AppLee
                                      last edited by bforpc

                                      @AppLee said in runnig a webserver - no chance:

                                      To get back on topic,

                                      very well

                                      can you be more specific on why termux is not fulfilling your need and what exactly you're looking for.

                                      because it is also not a real system like the standard distros. It hasnt have a standard directory structure and a less of applikations available with the special paket format .
                                      Maybe i can compile everything self, but who wants to do tihs work - for a webserer - from my view - an absolut standard deamon.
                                      Also it is clearly slower then the CLI on ubport - on the same Hardware.

                                      I don't think there is a magical solution to your problem, but we certainly can find something to help you out.

                                      Its very nice, that you are trying so hard to help.
                                      For Android problems, this forum isnt the right one.
                                      It looks like, that Ubports - at this moment - are not far enought, to use it for my requirements.

                                      I will use an raspi with all (negativs) around, but the raspi meets my requirement. it would have been nice, but not know.

                                      Thx for your help/support/suggestion and this discussion.
                                      Maybe in the near future again.

                                      Bfo

                                      LakotaubpL 1 Reply Last reply Reply Quote -1
                                      • LakotaubpL Offline
                                        Lakotaubp @bforpc
                                        last edited by

                                        @bforpc Have you seen this https://ubports.com/blog/ubport-blogs-news-1/post/raspberry-pi-11https://ubports.com/blog/ubport-blogs-news-1/post/raspberry-pi-1144 it might interest you.

                                        dobeyD 1 Reply Last reply Reply Quote 0
                                        • dobeyD Offline
                                          dobey @Lakotaubp
                                          last edited by

                                          @Lakotaubp I don't think that will help, as what this person wants is clearly not UT, but traditional linux distro.

                                          LakotaubpL 1 Reply Last reply Reply Quote 1
                                          • LakotaubpL Offline
                                            Lakotaubp @dobey
                                            last edited by

                                            @dobey Your probably right but you never know. They have a rpi, maybe they might try UT on it and see what can be done with UT.

                                            1 Reply Last reply Reply Quote 0
                                            • flohackF Offline
                                              flohack @bforpc
                                              last edited by

                                              @bforpc Forgive me but what is the usecase to run a web server on a mobile device? It will be slow, it will be unreliable over WiFi and it will drain your battery.

                                              My languages: 🇦🇹 🇩🇪 🇬🇧 🇺🇸

                                              1 Reply Last reply Reply Quote 0
                                              • First post
                                                Last post