Please tell me how to execute python file in Ubuntu by double clicking on file. (Posting On Python-List Prohibited)

Chris Angelico rosuav at gmail.com
Sun Dec 10 01:01:34 EST 2017


On Sun, Dec 10, 2017 at 4:52 PM, Steve D'Aprano
<steve+python at pearwood.info> wrote:
> On Sun, 10 Dec 2017 02:01 pm, Chris Angelico wrote:
>
>> On Sun, Dec 10, 2017 at 12:56 PM, Steve D'Aprano
>> <steve+python at pearwood.info> wrote:
>>> Remember the context here: we're replying to a thread discussing somebody
>>> who is running Ubuntu with a GUI desktop environment. Of course there are
>>> *some* Linux systems which don't run a GUI at all, but you can't
>>> double-click on files on such systems, and they aren't Ubuntu, so they
>>> aren't relevant.
>>
>> Been a long time since I had an Ubuntu, but is it really the case that
>> you can't install Ubuntu without a GUI?
>
> I mispoke -- I meant something like "they aren't whatever Ububtu GUI the OP
> has installed".
>
> There is, apparently, headless Ubuntu, but it isn't clear to me whether they
> install X (or Mir, Wayland or some other alternative) or not. E.g. this:
>
> https://www.howtoforge.com/tutorial/ubuntu-gnome-vnc-headless-server/
>
> seems to suggest to me that X.org is already installed, I can see X utils
> being installed as a recommended package but I couldn't spot X being added as
> a dependency. So my *guess* is that even headless Ubuntu server includes an X
> server. (Or possibly Mir.)

Or that installing a VNC server automatically installs X11 or
equivalent. That's what I'd expect, though it's entirely possible that
a headless server still gets certain libraries installed.

ChrisA



More information about the Python-list mailing list