Giter Site home page Giter Site logo

termux / x11-packages Goto Github PK

View Code? Open in Web Editor NEW
546.0 57.0 146.0 16.91 MB

A set of packages using X11 Windows System.

License: Other

Shell 83.07% Python 2.27% Perl 6.44% Emacs Lisp 0.04% C 7.55% Vim Script 0.64%
android linux x11 gui termux packages linux-distribution

x11-packages's Introduction

ARCHIVED

Packages from x11-repo are now maintained along with the main repo in github.com/termux/termux-packages in a git monorepo

Termux X11 Packages

Packages last build status

Powered by FossHost

There are located build scripts and patches for Termux X11 packages.

If you wish to contribute, please take a look at X11 packages contributing guide and developer's wiki pages.


How to enable this repository

Repository is not enabled in Termux by default. First enable it to be able to install its packages:

pkg install x11-repo

Using X11 on Termux

Programs using the X11 Windowing System cannot be used standalone like normal command-line utilities. Termux does not provide a native way for video output and therefore you will need to install additional software.

The recommended setup is a VNC server (package tigervnc) running on localhost and a VNC Viewer (by RealVNC Limited) Android application for accessing the video output.

There possible to use other Xserver solutions like XServer XSDL, but they are not guaranteed to work properly with our packages.

More information about setting up a graphical environment is on the Termux Wiki.

Only for Termux installations on Android 7.0 or higher.

Building packages

You can build all packages manually by using the provided docker image. The only requirements are Linux-based host with Docker installed.

  1. Clone this repository:

    git clone https://github.com/termux/x11-packages
    
  2. Enter build environment (will download docker image if necessary):

    cd ./x11-packages
    ./start-builder.sh
    
  3. Choose package you want to build and run:

    ./build-package.sh -a ${arch} ${package name}
    

    Replace ${arch} with target CPU architecture and ${package name} with package name you want to build.

x11-packages's People

Contributors

12101111 avatar angelxog avatar ar664 avatar auxilus avatar dawimpy avatar doronbehar avatar fornwall avatar grimler91 avatar hax4us avatar kcubeterm avatar landfillbaby avatar leap0x7b avatar librehat avatar ludea avatar mguinhos avatar myterminal avatar rakslice avatar rkitover avatar rrobek avatar suhan-paradkar avatar tathastu871 avatar thunder-coding avatar truboxl avatar twaik avatar wetitpig avatar xtkoba avatar yisus7u7 avatar yonle avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

x11-packages's Issues

xterm and aterm: bad system call on Android Pie

The title says it all. Running up to date Termux and x11-repo with fluxbox and tigervnc, xterm and aterm crash immediately /do not launch. Happening both from the command line within Termux, where "Bad system call" is displayed, and when trying to launch aterm from the fluxbox menu.

This is on a stock Pixel 3XL running Android Pie

Last few lines from 'strace xterm':

close(3) = 0 gettid() = 8941
prctl(PR_GET_DUMPABLE) = 1 (SUID_DUMP_USER)
prctl(PR_SET_DUMPABLE, SUID_DUMP_USER) = 0 prctl(PR_SET_PTRACER, PR_SET_PTRACER_ANY) = -1 EINVAL (Invalid argument) clone(child_stack=0x7ca5becfe0, flags=CLONE_VM|CLONE_SIGHAND|CLONE_THREAD|CLONE_CHILD_CLEARTID|CLONE_CHILD_SETTID, child_tidptr=0x7ca5d49d04) = 8942 futex(0x7ca5d49d04, FUTEX_WAIT, 4294967295, NULL) = -1 EAGAIN (Try again) futex(0x7ca5d49d04, FUTEX_WAIT, 8942, NULL) = 0
prctl(PR_SET_DUMPABLE, SUID_DUMP_USER) = 0 rt_sigaction(SIGSYS, {sa_handler=SIG_DFL, sa_mask=[], sa_flags=SA_RESTART}, {sa_handler=0x7ca5c3e140, sa_mask=~[KILL STOP RTMIN RT_1 RT_2 RT_3], sa_flags=SA_ONSTACK|SA_RESTART|SA_SIGINFO}, 8) = 0
getpid() = 8941 gettid() = 8941
rt_tgsigqueueinfo(8941, 8941, SIGSYS, {si_signo=SIGSYS, si_code=SYS_SECCOMP, si_call_addr=0x7ca5a71750, si_syscall=__NR_setresgid, si_arch=AUDIT_ARCH_AARCH64}) = 0
rt_sigreturn({mask=[]}) = 4294967295
--- SIGSYS {si_signo=SIGSYS, si_code=SYS_SECCOMP, si_call_addr=0x7ca5a71750, si_syscall=_NR_io_setup, si_arch=0 /* AUDIT_ARCH??? */} --- +++ killed by SIGSYS +++
Bad system call

Problems connecting to VNC

I followed the guide in wiki and started up vnc server and exported the DISPLAY variable and installed aterm, then i tried to connect through the vnc viewer app and everything went fine until after i entered password the connection got disconnected unexpectedly here's logs output from ~/.vnc/localhost:1.log


Xvnc TigerVNC 1.9.0 - built Oct 28 2018 20:05:34
Copyright (C) 1999-2018 TigerVNC Team and many others (see README.rst)
See http://www.tigervnc.org for information on TigerVNC.
Underlying X server release 12003000, The X.Org Foundation


Tue Oct 30 21:29:07 2018
 vncext:      VNC extension running!
 vncext:      Listening for VNC connections on all interface(s), port 5901
 vncext:      created VNC server for screen 0
Sync Extension 3.1
[dix] Could not init font path element /data/data/com.termux/files/usr/share/fonts/misc/, removing from list!
[dix] Could not init font path element /data/data/com.termux/files/usr/share/fonts/TTF/, removing from list!
[dix] Could not init font path element /data/data/com.termux/files/usr/share/fonts/OTF/, removing from list!
[dix] Could not init font path element /data/data/com.termux/files/usr/share/fonts/Type1/, removing from list!
[dix] Could not init font path element /data/data/com.termux/files/usr/share/fonts/100dpi/, removing from list!
[dix] Could not init font path element /data/data/com.termux/files/usr/share/fonts/75dpi/, removing from list!
Popen: `"/data/data/com.termux/files/usr/bin/xkbcomp" -w 1 "-R/data/data/com.termux/files/usr/share/X11/xkb" -xkm "-" -em1 "The XKEYBOARD keymap compiler (xkbcomp) reports:" -emp "> " -eml "Errors from xkbcomp are not fatal to the X server" "/data/data/com.termux/files/usr/tmp/server-1.xkm"', fp = 0xb652fccc
Pclose: fp = 0xb652fccc
The XKEYBOARD keymap compiler (xkbcomp) reports:
> Warning:          Unsupported high keycode 372 for name <I372> ignored
>                   X11 cannot support keycodes above 255.
>                   This warning only shows for the first high keycode.
Errors from xkbcomp are not fatal to the X server
Loaded XKB keymap /data/data/com.termux/files/usr/tmp/server-1.xkm, defined=0x7f
client(0): Reserved pid(32315).
client(0): Reserved cmdname(/data/data/com.termux/files/usr/bin/Xvnc) and cmdargs(:1 -auth /data/data/com.termux/files/home/.Xauthority -desktop localhost:1 () -geometry 1024x768 -pn -rfbauth /data/data/com.termux/files/home/.vnc/passwd -rfbport 5901 -rfbwait 30000).
/data/data/com.termux/files/home/.vnc/xstartup: 11: /data/data/com.termux/files/home/.vnc/xstartup: twm: not found
client(200000): Reserved pid(32325).
client(200000): Reserved cmdname(aterm) and cmdargs(-geometry 80x24+10+10 -ls).
AllocNewConnection: client index = 1, socket fd = 9
aterm: can't load font "7x14"

Tue Oct 30 21:29:28 2018
 Connections: accepted: 127.0.0.1::33405
 SConnection: Client needs protocol version 3.8
 SConnection: Client requests security type VncAuth(2)
(EE) Segmentation fault at address 0xe
(EE) 
Fatal server error:
(EE) Caught signal 11 (Segmentation fault). Server aborting
(EE) 
XIO:  fatal IO error 11 (Try again) on X server ":1"
      after 1465 requests (1452 known processed) with 0 events remaining.

Any ideas? btw I'm on Android 5.1.1

package request: xournal/xournalpp

Package description
xournal is probably the best program available for annotating PDF files. I tried zillions of native android apps, but no one has the capabilities of xournal (for example the automatic recognition of geometric figures) and such a clean annotation code (the annotations are not in bitmap form but in a svg-like fashion).
This application would be a great one especially if it could work ok with an active pen.

Link to home page and sources

  1. Home page: http://xournal.sourceforge.net/
  2. Source code: the best version is this one: https://github.com/dmgerman/xournal

Thanks!

Hardware acceleration inside Termux

We can use GLES inside termux with output to Xserver even if the server does not support it.
@NotKit did it using lihybris. We do not need libhybris to access libEGL.so or libGLESv2.so.
The idea is simple: we have some library that wraps libEGL functions. When program tries to eglGetDisplay() on X11 window the wrapper creates the android native window and binds it to X11 window. If xserver does not support drihybris extension it dumps native window image to shmem and sends it to xserver.

To make it possible inside Termux we will need to use Gralloc or to use GraphicBuffer some way. Also we will need some android headers. Android supports AHardwareBuffers that can be used for this purpose, but it is available only for O+ devices. And that's the main problem. @xeffyr Can we somehow solve it?

Source code: https://github.com/NotKit/libhybris/tree/x11/hybris/egl/platforms/x11

Qt: missing pkg-config files

Problem description
I'm not able to compile wxWidgets with Qt toolkit.

Steps to reproduce

  1. Install Qt dev package
  2. Run ./configure --enable-unicode --with-qt

Expected behavior
It correctly finds Qt.

Additional information
Updatable packages:
All packages up to date
System information:
Linux localhost 3.18.71-perf-gb710f0e #1 SMP PREEMPT Mon Oct 8 12:34:52 CEST 2018 aarch64 Android
Termux-packages arch:
aarch64
Android version:
8.1.0
Device manufacturer:
bq
Device model:
Aquaris X Pro

wxWidgets uses pkg-config Qt5Core and the other pkg-config files from Qt.

(And finally: I didn't use the templates in my other issues because GitHub doesn't show them in mobile version.)

xorg-server: libfb.so is missing

So I went ahead to compile xrdp for myself (PR is coming) but I am stuck because the xorg package doesn't provide this module.

Need of vulkan

I am now working on shrinking the image of termux/package-builder. Actually, is the Vulkan API provided by the Android NDK required in order to build these packages? Thanks!

Server down

It's currently not possible to access any .deb files from termux-x11.ml.
Please fix this and setup a mirror (e.g. at IPFS)

qt5-base build error: Could not find qmake spec ''.

So, when I try to build qt5-base I run into this:

[...]
g++ -o "../bin/qmake" main.o meta.o option.o project.o property.o ioutils.o proitems.o qmakebuiltins.o qmakeevaluator.o qmakeglobals.o qmakeparser.o qmakevfs.o pbuilder_pbx.o makefile.o makefiledeps.o metamakefile.o projectgenerator.o unixmake2.o unixmake.o mingw_make.o msbuild_objectmodel.o msvc_nmake.o msvc_objectmodel.o msvc_vcproj.o msvc_vcxproj.o winmakefile.o xmloutput.o qtextcodec.o qutfcodec.o qglobal.o qlogging.o qmalloc.o qnumeric.o qoperatingsystemversion.o qrandom.o qabstractfileengine.o qbuffer.o qdatastream.o qdebug.o qdir.o qdiriterator.o qfile.o qfiledevice.o qfileinfo.o qfilesystemengine.o qfilesystementry.o qfsfileengine.o qfsfileengine_iterator.o qiodevice.o qsettings.o qtemporaryfile.o qtextstream.o qjsonarray.o qjson.o qjsondocument.o qjsonobject.o qjsonparser.o qjsonvalue.o qmetatype.o qsystemerror.o qvariant.o quuid.o qarraydata.o qbitarray.o qbytearray.o qbytearraymatcher.o qcryptographichash.o qdatetime.o qhash.o qlinkedlist.o qlist.o qlocale.o qlocale_tools.o qmap.o qregexp.o qringbuffer.o qstringbuilder.o qstring_compat.o qstring.o qstringlist.o qversionnumber.o qvsnprintf.o qxmlstream.o qxmlutils.o qcore_unix.o qfilesystemengine_unix.o qfilesystemiterator_unix.o qfsfileengine_unix.o qlocale_unix.o  qlibraryinfo.o   -Wl,--gc-sections
Could not find qmake spec ''.
Error processing project file: /home/builder/.termux-build/qt5-base/src

This happens in the latest docker image, after x11-packages/scripts/setup-build-environment.sh has been run. This SO question might be related https://stackoverflow.com/questions/50785575/configuring-qtbase-fails-with-an-error-could-not-find-qmake-spec, and concludes that libseccomp2 needs to be updated, or that the docker image should be run with --security-opt seccomp:unconfined, but that didn't help for me

kuscht

Package description
Describe what this package do and why it should be available.

Link to home page and sources

  1. Home page:
  2. Source code:

package request : xrdp

I'd like to use RDP instead of VNC to remotely connect to my phone. xrdp and xorgxrdp would allow me to do that.

Package description
xrdp provides a graphical login to remote machines using Microsoft Remote Desktop Protocol (RDP). xrdp accepts connections from a variety of RDP clients: FreeRDP, rdesktop, NeutrinoRDP and Microsoft Remote Desktop Client (for Windows, Mac OS, iOS and Android).
See https://github.com/neutrinolabs/xrdp/blob/devel/README.md for details

RDP transport is encrypted using TLS by default.

Link to home page and sources
https://github.com/neutrinolabs/xrdp/blob/devel/README.md
https://github.com/neutrinolabs/xrdp

Package request: Python-qt5

Now that we have qt5-base it should be possible to build the python-bindings for it, right? Installing PyQt5 via pip is not possible for Termux, because it is only provided for 64 bit Linux and Windows. So it needs to be built from source.

Package description
PyQt is a Python binding of the cross-platform GUI toolkit Qt,

Link to home page and sources

  1. Home page: https://riverbankcomputing.com/software/pyqt/intro
  2. Source code: https://www.riverbankcomputing.com/software/pyqt/download5

Aterm not working

aterm -tr -fg white -bg blue +sb
Doesn't works
Expected behavior
transparent background with Blue color

Add qt-base packages

From @sr-tream on July 23, 2018 14:13

It really to long build on android. Please add a binary packages qt-base for Qt5.

Copied from original issue: xeffyr/termux-extra-packages#25

[Package Request] vim-gtk

Package description

gui for vim

Link to home page and sources

  1. Home page:https://vim.org
  2. Source code: https://github.com/vim/vim

Patch
libsm: https://gitlab.freedesktop.org/xorg/lib/libsm

to fix libsm-dev

Building

./configure --with-features=huge \
--enable-multibyte \
--enable-rubyinterp=yes \
--enable-python3interp=yes \
--with-python-config-dir=/data/data/com.termux/files/usr/lib/python3.7/config-3.7m/ \
--enable-perlinterp=yes \
--enable-luainterp=yes \
--enable-gui=gtk3 \
--enable-cscope \
--prefix=/data/data/com.termux/files/usr \
--with-lua-prefix=/data/data/com.termux/files/usr

make

Package request: Emacs GUI

From @Linden6 on September 6, 2018 21:58

Although the terminal version of Emacs is available in the main Termux package repository, it would be useful to have the GUI version available so that graphics were supported within it. (Most of the orgmode files that I work on contain thumbnail images that I can then click on to open in an image viewer. It would be useful to be able to replicate this behaviour in Android.)

Thanks.

Copied from original issue: xeffyr/termux-extra-packages#34

Error

Hey.This repository does not work for me.I give the following command and this is what Termux tells Me:

apt update
Err:4 https://termux-x11.ml x11 InRelease
Connection timed out after 120000 milliseconds

How to set font in aterm?

I get this error while using i3 under XServer XSDL:

aterm: can't load font "7x14"

So I want to change fonts to powerline since I have ZSH with agnoster theme.
How I can do that?
Thanks!

Package request : RedNoteBook

Package description
RedNotebook is a modern desktop journal. It lets you format, tag and search your entries. You can also add pictures, links and customizable templates, spell check your notes, and export to plain text, HTML, Latex or PDF.

I do not have a clue whether some of the requirements are satisfiable at all (for example GtkSourceView).

Link to home page and sources

  1. Home page: https://rednotebook.sourceforge.io/
  2. Source code: https://github.com/jendrikseipp/rednotebook

aterm error

CANNOT LINK EXECUTABLE: library "libSM.so.6" not found
page record for 0x7f94c94010 was not found (block_size=64)

I reinstalled libsm but the same problem again.I don't want to reinstall termux cos I 've installed a lot of package.How can I fix this?

Qemu

How can I run a x86 based ld binary with qemu available in this repo.

My problems:

  1. I'm unable to resolve shared libs needed.
  2. When I try to sed it then it shows invalid PT_ENTRYP

What I need?
Some help and a proper way to achieve this.

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.