Giter Club home page Giter Club logo

termux.github.io's Introduction

Termux.dev

This is the source repository for termux.github.io and its custom domain termux.dev. The [termux.org] is redirected to termux.dev. The termux.com is mirrored from termux/termux.com currently, until it can be redirected to termux.dev.

Run locally

Install dependencies as explained at Using Jekyll with Pages, then run

bundle exec jekyll serve

to start a local server at http://localhost:4000.

If [_config.yml] file was updated, then stop server with ctrl + c and start it again for changes to take effect.

Add New Category For Posts

  1. Add a new page file for the category at <language>/posts/<category_name>.html with the following contents, where <language> is language code like ru. Replace <category_name> with the actual name for the category in the file name and front matter. The category_name variable is used by category.html to load posts for the category. Check en/posts/general.html for the general category as a sample. The front matter title must be language specific.
---
layout: page
title: <category_name> Posts
no_add_title_heading: true
category_name: <category_name>
page_ref: /posts/<category_name>.html
---

{% include posts/category.html %}

  1. Add [{%- include t.html root="posts" key="views.index.<category_name>" -%}](/{{- page.lang -}}/posts/<category_name>.html) link for the category in _layouts/posts/index.md like [{%- include t.html root="posts" key="views.index.general" -%}](/{{- page.lang -}}/posts/general.html). The translation for the category must be added to the _data/posts/t/<language>/view.yml file with the index.<category_name> key, like in _data/posts/t/en/view.yml. The index.<category_name>_posts key must also be added that is used by category.html.

  2. Add front matter default values for category for the _posts/*/<category_name> path scope in [_config.yml] file. This is required because otherwise jekyll will not assign the category automatically to the posts and posts will not be added to the site.categories used by category.html and so posts won't show for the category. Check jekyll docs for more info. If we used the <category_name>/_posts/ path for posts, then <category_name> would have been automatically assigned to the post since its exist above the _posts directory in the path (check page.categories variable), but we can't use that since we need to maintain _posts/<language> directory structure and we don't want language to be added as the category and added after /posts in url. We can also add category to front matter of each post file but that just creates repeatability.

defaults:
  -
    scope:
      path: "_posts/*/<category_name>"
    values:
      category: <category_name>
  1. For each new language added for posts, add following to [_config.yml] file so that proper language based route is assigned to posts and the lang front matter value is also assigned so that it can be accessed with page.lang.
  -
    scope:
      path: "_posts/<language>"
    values:
      lang: <language>
      permalink: /<language>/:collection/:categories/:year/:month/:day/:title:output_ext

Add New Post In Category

Check jekyll docs and github docs for details.

  1. Add the file for the en language post under the directory for the category at _posts/en/<category_name>/YYYY-MM-DD-POST_TITLE.md. For example, by creating the file _posts/en/general/1970-01-01-post-title.md, jekyll will automatically create a route for the post at en/posts/general/1970/01/01/post-title.html. For translations of posts to other languages than en, create a file at _posts/<language>/<category_name>/YYYY-MM-DD-POST_TITLE.md, where <language> is language code like ru. The front matter title must be language specific. You can also add last_modified_at and author key values in the front matter.
---
title:  "Post Title"
page_ref: /posts/<category_name>/YYYY/MM/DD/<post_basename>.html
---

Post Content
  1. Add any asset files used by the post under the assets/posts/globals/<category_name>/YYYY-MM-DD-POST_TITLE or assets/posts/<language>/<category_name>/YYYY-MM-DD-POST_TITLE directory, like assets/posts/globals/general/1970-01-01-post-title or assets/posts/<language>/general/1970-01-01-post-title and link to them with [Text Asset](/assets/posts/globals/general/1970-01-01-post-title/asset.txt) or ![Image Asset](/assets/posts/globals/general/1970-01-01-post-title/asset.png). Check jekyll docs for more.

  2. Ensure that the first paragraph of the post is a just a short description of the post since that text will show in the posts list for the category. This is done by setting show_excerpts to true in _config.yml and used by category.html. Check jekyll docs for more info.

  3. Each post of the site must have the page_ref key in its front matter for its unique absolute path on the site (not local path) without the language prefix to find alternate translations of a page. All translations must have the same page_ref and should equal the english file name. This allows alternate translations to have different language specific filenames, but the same reference to allow site language change and search engine indexing via sitemaps.xml to be added later. For example, _posts/en/general/1970-01-01-post-title.md file should have page_ref: /posts/general/1970/01/01/post-title.html and so should any of its translations.

termux.github.io's People

Contributors

2096779623 avatar agnostic-apollo avatar barryels avatar brandm avatar dependabot[bot] avatar finagolfin avatar fornwall avatar grimler91 avatar kcubeterm avatar landfillbaby avatar licy183 avatar lukechilds avatar maxython avatar mrshu avatar nekoyyang avatar neo-oli avatar nickrance avatar sylirre avatar thunder-coding 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  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

termux.github.io's Issues

unable to serve locally...

Hi, I wanna serve the site locally, to try adding new lang ar, but I'm new to ruby and jekyll

image

Error log:

❯ sudo bundle exec jekyll serve
Configuration file: /media/x7md/DATA/projects/termux.github.io/_config.yml
To use retry middleware with Faraday v2.0+, install `faraday-retry` gem
            Source: /media/x7md/DATA/projects/termux.github.io
       Destination: /media/x7md/DATA/projects/termux.github.io/_site
 Incremental build: disabled. Enable with --incremental
      Generating... 
      Remote Theme: Using theme pages-themes/primer
jekyll 3.9.2 | Error:  No such file or directory @ rb_check_realpath_internal - /media/x7md/DATA/projects/termux.github.io/en/docs/apps/termux
/var/lib/gems/3.0.0/gems/pathutil-0.16.2/lib/pathutil.rb:292:in `in_path?': No such file or directory @ rb_check_realpath_internal - /media/x7md/DATA/projects/termux.github.io/en/docs/apps/termux (Errno::ENOENT)
        from /var/lib/gems/3.0.0/gems/jekyll-3.9.2/lib/jekyll/entry_filter.rb:83:in `symlink_outside_site_source?'
        from /var/lib/gems/3.0.0/gems/jekyll-3.9.2/lib/jekyll/entry_filter.rb:74:in `symlink?'
        from /var/lib/gems/3.0.0/gems/jekyll-3.9.2/lib/jekyll/entry_filter.rb:35:in `block in filter'
        from /var/lib/gems/3.0.0/gems/jekyll-3.9.2/lib/jekyll/entry_filter.rb:33:in `reject'
        from /var/lib/gems/3.0.0/gems/jekyll-3.9.2/lib/jekyll/entry_filter.rb:33:in `filter'
        from /var/lib/gems/3.0.0/gems/jekyll-3.9.2/lib/jekyll/reader.rb:117:in `filter_entries'
        from /var/lib/gems/3.0.0/gems/jekyll-3.9.2/lib/jekyll/reader.rb:42:in `block in read_directories'
        from /var/lib/gems/3.0.0/gems/jekyll-3.9.2/lib/jekyll/reader.rb:42:in `chdir'
        from /var/lib/gems/3.0.0/gems/jekyll-3.9.2/lib/jekyll/reader.rb:42:in `read_directories'
        from /var/lib/gems/3.0.0/gems/jekyll-3.9.2/lib/jekyll/reader.rb:80:in `block in retrieve_dirs'
        from /var/lib/gems/3.0.0/gems/jekyll-3.9.2/lib/jekyll/reader.rb:76:in `each'
        from /var/lib/gems/3.0.0/gems/jekyll-3.9.2/lib/jekyll/reader.rb:76:in `retrieve_dirs'
        from /var/lib/gems/3.0.0/gems/jekyll-3.9.2/lib/jekyll/reader.rb:51:in `read_directories'
        from /var/lib/gems/3.0.0/gems/jekyll-3.9.2/lib/jekyll/reader.rb:80:in `block in retrieve_dirs'
        from /var/lib/gems/3.0.0/gems/jekyll-3.9.2/lib/jekyll/reader.rb:76:in `each'
        from /var/lib/gems/3.0.0/gems/jekyll-3.9.2/lib/jekyll/reader.rb:76:in `retrieve_dirs'
        from /var/lib/gems/3.0.0/gems/jekyll-3.9.2/lib/jekyll/reader.rb:51:in `read_directories'
        from /var/lib/gems/3.0.0/gems/jekyll-3.9.2/lib/jekyll/reader.rb:80:in `block in retrieve_dirs'
        from /var/lib/gems/3.0.0/gems/jekyll-3.9.2/lib/jekyll/reader.rb:76:in `each'
        from /var/lib/gems/3.0.0/gems/jekyll-3.9.2/lib/jekyll/reader.rb:76:in `retrieve_dirs'
        from /var/lib/gems/3.0.0/gems/jekyll-3.9.2/lib/jekyll/reader.rb:51:in `read_directories'
        from /var/lib/gems/3.0.0/gems/jekyll-3.9.2/lib/jekyll/reader.rb:16:in `read'
        from /var/lib/gems/3.0.0/gems/jekyll-3.9.2/lib/jekyll/site.rb:164:in `read'
        from /var/lib/gems/3.0.0/gems/jekyll-3.9.2/lib/jekyll/site.rb:69:in `process'
        from /var/lib/gems/3.0.0/gems/jekyll-3.9.2/lib/jekyll/command.rb:28:in `process_site'
        from /var/lib/gems/3.0.0/gems/jekyll-3.9.2/lib/jekyll/commands/build.rb:65:in `build'
        from /var/lib/gems/3.0.0/gems/jekyll-3.9.2/lib/jekyll/commands/build.rb:36:in `process'
        from /var/lib/gems/3.0.0/gems/jekyll-3.9.2/lib/jekyll/commands/serve.rb:93:in `block in start'
        from /var/lib/gems/3.0.0/gems/jekyll-3.9.2/lib/jekyll/commands/serve.rb:93:in `each'
        from /var/lib/gems/3.0.0/gems/jekyll-3.9.2/lib/jekyll/commands/serve.rb:93:in `start'
        from /var/lib/gems/3.0.0/gems/jekyll-3.9.2/lib/jekyll/commands/serve.rb:75:in `block (2 levels) in init_with_program'
        from /var/lib/gems/3.0.0/gems/mercenary-0.3.6/lib/mercenary/command.rb:220:in `block in execute'
        from /var/lib/gems/3.0.0/gems/mercenary-0.3.6/lib/mercenary/command.rb:220:in `each'
        from /var/lib/gems/3.0.0/gems/mercenary-0.3.6/lib/mercenary/command.rb:220:in `execute'
        from /var/lib/gems/3.0.0/gems/mercenary-0.3.6/lib/mercenary/program.rb:42:in `go'
        from /var/lib/gems/3.0.0/gems/mercenary-0.3.6/lib/mercenary.rb:19:in `program'
        from /var/lib/gems/3.0.0/gems/jekyll-3.9.2/exe/jekyll:15:in `<top (required)>'
        from /usr/local/bin/jekyll:25:in `load'
        from /usr/local/bin/jekyll:25:in `<main>'

cpuinfo on A53

Hello, and Thanks a lot for the Termux stack.

Launched /proc/cpuinfo on a MOTO Z2 PLAY (msm8953, quad A53).
cpuinfo tells the model name is armV7.

The A53 implements armV8-A
Possible a cpuinfo issue ?

Never tested a armv8-A specific code on it, yet.

stick window to desktop

This is a feature request: is it possible that there is a way to not have the window on top of other apps all the time (when it's visible) but it sticks to the desktop like a widget ?
That would allow us to have a terminal that displays things on the desktop.
So it's basically another type of terminal widget ... true terminal in a widget, not shortcut chooser ...

What about cryptsetup

Hi all.
I'm thinking about cryptsetup.
I think that it can be a great plus to manage lots of personal data without Google help.
Eyes of Big G are everywhere.
;-)

luarocks cannot find ssl.h in /openssl directory

I want to install LUA HTTP via LUAROCKS.I installed openssl. But when trying to install,it is showing this,

luarocks install http

it is showing an error

Error: Could not find header file for OPENSSL
  No file openssl/ssl.h in /usr/local/include
  No file openssl/ssl.h in /usr/include
You may have to install OPENSSL in your system and/or pass OPENSSL_DIR or OPENSSL_INCDIR to the luarocks command.
Example: luarocks install luasec OPENSSL_DIR=/usr/local

LOOK SCREENSHOT!

I already have openssl/ssl.h

Blocked in India

What's the Issue: termux.com is blocked in India.

Why is this happening: https://github.com/captn3m0/hello-cloudflare/

How to Fix: https://github.com/captn3m0/hello-cloudflare/blob/main/README.md#help-my-website-is-blocked

Curl Log as Proof
curl https://termux.com -vvv
* Rebuilt URL to: https://termux.com/
*   Trying 172.67.175.23...
* TCP_NODELAY set
* Connected to termux.com (172.67.175.23) port 443 (#0)
* ALPN, offering h2
* ALPN, offering http/1.1
* successfully set certificate verify locations:
*   CAfile: /etc/ssl/certs/ca-certificates.crt
  CApath: /etc/ssl/certs
* TLSv1.3 (OUT), TLS handshake, Client hello (1):
* TLSv1.3 (IN), TLS handshake, Server hello (2):
* TLSv1.3 (IN), TLS Unknown, Certificate Status (22):
* TLSv1.3 (IN), TLS handshake, Unknown (8):
* TLSv1.3 (IN), TLS handshake, Certificate (11):
* TLSv1.3 (IN), TLS handshake, CERT verify (15):
* TLSv1.3 (IN), TLS handshake, Finished (20):
* TLSv1.3 (OUT), TLS change cipher, Client hello (1):
* TLSv1.3 (OUT), TLS Unknown, Certificate Status (22):
* TLSv1.3 (OUT), TLS handshake, Finished (20):
* SSL connection using TLSv1.3 / TLS_AES_256_GCM_SHA384
* ALPN, server accepted to use h2
* Server certificate:
*  subject: C=US; ST=California; L=San Francisco; O=Cloudflare, Inc.; CN=sni.cloudflaressl.com
*  start date: Jun 28 00:00:00 2021 GMT
*  expire date: Jun 27 23:59:59 2022 GMT
*  subjectAltName: host "termux.com" matched cert's "termux.com"
*  issuer: C=US; O=Cloudflare, Inc.; CN=Cloudflare Inc ECC CA-3
*  SSL certificate verify ok.
* Using HTTP2, server supports multi-use
* Connection state changed (HTTP/2 confirmed)
* Copying HTTP/2 data in stream buffer to connection buffer after upgrade: len=0
* TLSv1.3 (OUT), TLS Unknown, Unknown (23):
* TLSv1.3 (OUT), TLS Unknown, Unknown (23):
* TLSv1.3 (OUT), TLS Unknown, Unknown (23):
* Using Stream ID: 1 (easy handle 0x55ea9ed2a600)
* TLSv1.3 (OUT), TLS Unknown, Unknown (23):
> GET / HTTP/2
> Host: termux.com
> User-Agent: curl/7.58.0
> Accept: */*
>
* TLSv1.3 (IN), TLS Unknown, Certificate Status (22):
* TLSv1.3 (IN), TLS handshake, Newsession Ticket (4):
* TLSv1.3 (IN), TLS handshake, Newsession Ticket (4):
* TLSv1.3 (IN), TLS Unknown, Unknown (23):
* Connection state changed (MAX_CONCURRENT_STREAMS updated)!
* TLSv1.3 (OUT), TLS Unknown, Unknown (23):
* TLSv1.3 (IN), TLS Unknown, Unknown (23):
* TLSv1.3 (IN), TLS Unknown, Unknown (23):
< HTTP/2 200
< date: Fri, 07 Jan 2022 17:58:02 GMT
< content-type: text/html
< pragma: no-cache
< cache-control: no-cache
< cf-cache-status: DYNAMIC
< expect-ct: max-age=604800, report-uri="https://report-uri.cloudflare.com/cdn-cgi/beacon/expect-ct"
< report-to: {"endpoints":[{"url":"https:\/\/a.nel.cloudflare.com\/report\/v3?s=lHxMmG0XXkhfbkREMgHawd%2BvtbzG4CpW90fembQMhA2zxuce%2BFAkjmGs9vGfNEPKUiyna29%2B%2FmT3xWJ6GzQHlLOKFeaUL0f4%2FM3%2FG8YHATMTyYASxm0qMLmMXdJO"}],"group":"cf-nel","max_age":604800}
< nel: {"success_fraction":0,"report_to":"cf-nel","max_age":604800}
< strict-transport-security: max-age=31536000; includeSubDomains; preload
< x-content-type-options: nosniff
< server: cloudflare
< cf-ray: 6c9f1268acf31d2d-BLR
< alt-svc: h3=":443"; ma=86400, h3-29=":443"; ma=86400, h3-28=":443"; ma=86400, h3-27=":443"; ma=86400
<
* TLSv1.3 (IN), TLS Unknown, Unknown (23):
* Connection #0 to host termux.com left intact
<style>body{margin:0px;padding:0px;}iframe{width:100%;height:100%}</style><iframe src="https://www.airtel.in/dot/" width="100%" height="100%" frameborder=0></iframe>

Note that this is blocked even over HTTPS.

termux.com/issues redirect

Hi, thanks for opening the issues tab here.

I notice that the URL https://termux.com/issues redirects to https://github.com/termux/termux-packages/issues . I wonder if instead it should show a page telling the user to go to https://github.com/termux/termux-packages/issues or to https://github.com/termux/termux-app/issues, depending on what the problem is.

The reason I raise this is because https://termux.com/issues is shown as the place to raise issues when you open the terminal. I followed that link, didn't notice the "termux-packages" bit and reported an issue (termux/termux-packages#5462) which I should have reported/searched for duplicates in the "termux-app" repo instead.

Thanks.

are the commands same as linux termial?

i have been using the android app for a while,and it works perfectly, but on the internet when i look for termux most videos are about linux terminal ,i tried it to run tools like nmap and red hawk and it works and because i have zero experience of using any form or linux , i just want to make sure if the commands are same as linux terminal.please reply ,thank you :-)

Repo Has No License

Currently and since start of this repo, the license was not supplied so all contributions are technically under copyright of original authors and not licensed to be used by others.

https://github.com/termux/termux.github.io/commits/master?after=cb0333aedd959214223262ea54c128cbbde2f266+244&branch=master&qualified_name=refs%2Fheads%2Fmaster

Basically, we need to add a license. The site infrastructure in my opinion should be MIT licensed so that the multi-translation, multi-versioned, and web/android supported design being built can be used by other projects easily. The docs are pulled from other repos as well so community contributed docs should be permissively licensed (MIT/CC) and GPLv* shouldn't be enforced on them.

I have diffed master against 89b58fc and due to my rewrites of the site since I took over, the only parts that remain same is the home page words for english translation, images and the code for image rotation. So before a license can be added, the images need to be replaced and words changed if required, although only very minimal.

There was also chinese translations done by @2096779623, @licy183 and @DreamOneX and they all need to provide written proof below that their contributions can be released under the new license after its chosen.

https://github.com/termux/termux.github.io/tree/cb0333aedd959214223262ea54c128cbbde2f266/cn

There is an additional issue, the contributions to https://wiki.termux.com/wiki/Main_Page are under Creative Commons Attribution license, which is not compatible with MIT and only GPLv3, so moving the wiki content to the site would be problematic, unless a complete rewrite is done or permission is taken from authors to relicense. We can also go with licensing the site infrastructure as MIT and the docs/posts/translations as CC, which would then solve the wiki problem.

Edit: I would prefer docs to be MIT to be consistent with lot of the code, and adding yet another license on top of MIT and GPLv3 complicates things for contributors and forkers. We can always ask wiki page authors for permission to relicense to MIT. One can always relicense MIT files under any more restrictive license, but with CC, only 2 options currently available. Basically, I am personally against CC for docs.

https://creativecommons.org/licenses/by/4.0/

https://opensource.stackexchange.com/questions/7435/mit-licensed-project-with-cc-by-sa-dependency

https://creativecommons.org/share-your-work/licensing-considerations/compatible-licenses

This should be done before the next termux app release which provides new docs.

@Grimler91 @sylirre

Update termux api docs

Great piece of software!

I was trying to follow
https://termux.com/add-on-api.html

Specifically termux-notification but there is no -u argument anymore and I don't know where I can find the information to make a PR. I guess I need to read android code.

I ended up using termux-open-url that is not that list.

How can I help to get that page updated without much android knowledge?

For example termux-notification has now a --action flag but I don't know the kind of string I have to pass in there.

Thanks.

Unable to install node module for sqlite, getting following errors

$ npm install sqlite3

[email protected] install /data/data/com.termux/files/home/node_modules/sqlite3
node-pre-gyp install --fallback-to-build

make: Entering directory '/data/data/com.termux/files/home/node_modules/sqlite3/build'
ACTION deps_sqlite3_gyp_action_before_build_target_unpack_sqlite_dep Release/obj/gen/sqlite-autoconf-3090100/sqlite3.c
TOUCH Release/obj.target/deps/action_before_build.stamp
CC(target) Release/obj.target/sqlite3/gen/sqlite-autoconf-3090100/sqlite3.o
AR(target) Release/obj.target/deps/sqlite3.a
COPY Release/sqlite3.a
CXX(target) Release/obj.target/node_sqlite3/src/database.o
../src/database.cc: In static member function 'static void node_sqlite3::Database::Work_BeginOpen(node_sqlite3::Database::Baton_)':
../src/database.cc:143:9: warning: unused variable 'status' [-Wunused-variable]
int status = uv_queue_work(uv_default_loop(),
^
../src/database.cc: In static member function 'static void node_sqlite3::Database::Work_BeginClose(node_sqlite3::Database::Baton_)':
../src/database.cc:227:9: warning: unused variable 'status' [-Wunused-variable]
int status = uv_queue_work(uv_default_loop(),
^
../src/database.cc: In static member function 'static void node_sqlite3::Database::Work_BeginExec(node_sqlite3::Database::Baton_)':
../src/database.cc:505:9: warning: unused variable 'status' [-Wunused-variable]
int status = uv_queue_work(uv_default_loop(),
^
../src/database.cc: In static member function 'static void node_sqlite3::Database::Work_BeginLoadExtension(node_sqlite3::Database::Baton_)':
../src/database.cc:605:9: warning: unused variable 'status' [-Wunused-variable]
int status = uv_queue_work(uv_default_loop(),
^
CXX(target) Release/obj.target/node_sqlite3/src/node_sqlite3.o
CXX(target) Release/obj.target/node_sqlite3/src/statement.o
../src/statement.cc: In static member function 'static void node_sqlite3::Statement::Work_BeginPrepare(node_sqlite3::Database::Baton_)':
../src/statement.cc:118:9: warning: unused variable 'status' [-Wunused-variable]
int status = uv_queue_work(uv_default_loop(),
^
In file included from ../src/statement.cc:6:0:
../src/statement.cc: In static member function 'static void node_sqlite3::Statement::Work_BeginBind(node_sqlite3::Statement::Baton_)':
../src/macros.h:125:9: warning: unused variable 'status' [-Wunused-variable]
int status = uv_queue_work(uv_default_loop(),
^
../src/statement.cc:322:5: note: in expansion of macro 'STATEMENT_BEGIN'
STATEMENT_BEGIN(Bind);
^
../src/statement.cc: In static member function 'static void node_sqlite3::Statement::Work_BeginGet(node_sqlite3::Statement::Baton_)':
../src/macros.h:125:9: warning: unused variable 'status' [-Wunused-variable]
int status = uv_queue_work(uv_default_loop(),
^
../src/statement.cc:370:5: note: in expansion of macro 'STATEMENT_BEGIN'
STATEMENT_BEGIN(Get);
^
../src/statement.cc: In static member function 'static void node_sqlite3::Statement::Work_BeginRun(node_sqlite3::Statement::Baton_)':
../src/macros.h:125:9: warning: unused variable 'status' [-Wunused-variable]
int status = uv_queue_work(uv_default_loop(),
^
../src/statement.cc:438:5: note: in expansion of macro 'STATEMENT_BEGIN'
STATEMENT_BEGIN(Run);
^
../src/statement.cc: In static member function 'static void node_sqlite3::Statement::Work_BeginAll(node_sqlite3::Statement::Baton_)':
../src/macros.h:125:9: warning: unused variable 'status' [-Wunused-variable]
int status = uv_queue_work(uv_default_loop(),
^
../src/statement.cc:504:5: note: in expansion of macro 'STATEMENT_BEGIN'
STATEMENT_BEGIN(All);
^
../src/statement.cc: In static member function 'static void node_sqlite3::Statement::Work_BeginEach(node_sqlite3::Statement::Baton_)':
../src/macros.h:125:9: warning: unused variable 'status' [-Wunused-variable]
int status = uv_queue_work(uv_default_loop(),
^
../src/statement.cc:601:5: note: in expansion of macro 'STATEMENT_BEGIN'
STATEMENT_BEGIN(Each);^
../src/statement.cc: In static member function 'static void node_sqlite3::Statement::Work_BeginReset(node_sqlite3::Statement::Baton_)':
../src/macros.h:125:9: warning: unused variable 'status' [-Wunused-variable]
int status = uv_queue_work(uv_default_loop(),
^
../src/statement.cc:724:5: note: in expansion of macro 'STATEMENT_BEGIN'
STATEMENT_BEGIN(Reset);
^
SOLINK_MODULE(target) Release/obj.target/node_sqlite3.node
/data/data/com.termux/files/usr/bin/ld: Release/obj.target/node_sqlite3/src/database.o: undefined reference to symbol 'ZSt17__throw_bad_allocv'
/system/lib/libc++.so: error adding symbols: DSO missing from command line
collect2: error: ld returned 1 exit status
node_sqlite3.target.mk:133: recipe for target 'Release/obj.target/node_sqlite3.node' failed
make: *
* [Release/obj.target/node_sqlite3.node] Error 1
make: Leaving directory '/data/data/com.termux/files/home/node_modules/sqlite3/build'
gyp ERR! build error
gyp ERR! stack Error: make failed with exit code: 2
gyp ERR! stack at ChildProcess.onExit (/data/data/com.termux/files/usr/lib/node_modules/npm/node_modules/node-gyp/lib/build.js:276:23)
gyp ERR! stack at emitTwo (events.js:100:13)
gyp ERR! stack at ChildProcess.emit (events.js:185:7)
gyp ERR! stack at Process.ChildProcess._handle.onexit (internal/child_process.js:204:12)
gyp ERR! System Linux 3.10.49-gaf859c0-00001-gf031a3a
gyp ERR! command "/data/data/com.termux/files/usr/bin/node" "/data/data/com.termux/files/usr/lib/node_modules/npm/node_modules/node-gyp/bin/node-gyp.js" "build" "--fallback-to-build" "--module=/data/data/com.termux/files/home/node_modules/sqlite3/lib/binding/node-v47-android-arm/node_sqlite3.node" "--module_name=node_sqlite3" "--module_path=/data/data/com.termux/files/home/node_modules/sqlite3/lib/binding/node-v47-android-arm"
gyp ERR! cwd /data/data/com.termux/files/home/node_modules/sqlite3
gyp ERR! node -v v5.11.0
gyp ERR! node-gyp -v v3.3.1
gyp ERR! not ok
node-pre-gyp ERR! build error
node-pre-gyp ERR! stack Error: Failed to execute '/data/data/com.termux/files/usr/bin/node /data/data/com.termux/files/usr/lib/node_modules/npm/node_modules/node-gyp/bin/node-gyp.js build --fallback-to-build --module=/data/data/com.termux/files/home/node_modules/sqlite3/lib/binding/node-v47-android-arm/node_sqlite3.node --module_name=node_sqlite3 --module_path=/data/data/com.termux/files/home/node_modules/sqlite3/lib/binding/node-v47-android-arm' (1)
node-pre-gyp ERR! stack at ChildProcess. (/data/data/com.termux/files/home/node_modules/sqlite3/node_modules/node-pre-gyp/lib/util/compile.js:83:29)

[Feature Request] Add some i18n content

The Idea:

Add some translate content, to other languages, such Arabic, Indonesian etc...

Goal

Official Resources to Termux, and can also reference to Termux Wiki.

npm install fails if installing in device storage

So I granted termux permission for storage under settings and it is now able to see my devices "sdcard" folder (below)

termux-settings

but when i'm working from the device folder (which i do because trying to navigate to some obscure folder that termux calls home is quite annoying every time i want to start working on my script and a root text editor is hard to come by) and try to do npm install, node kicks in and then does the things it's supposed to do and then it throws a permission denied error and is not allowed to write to device storage. I'm not quite sure why this is but here's the output that hopefully will be helpful in pinpointing the issue

npm-install-error

Thanks!!

Node JS .deb not found

Installing with the command apt install nodejs throws:

Failed to fetch http://termux.net/dists/stable/main/binary-arm/nodejs_6.6.0-1_arm.deb

The deb file doesn't exists anymore.

Thanks.

Cannot install Lua socket libraries

I tried installing Lua socket libraries. But it's giving an error. Lua.h is missing. 😞
Look the screenshot!

Tried

luarocks install luasocket

But after i installed liblua-dev using this command

pkg install liblua-dev

I got this, check screenshot.:point_down:

still can't install the libraries.

Getting error while installing lua http

I'm trying to install the http module for Lua. But Luasec,Luaossl,cqueues needs to be installed before installing http. But I'm facing this error. I already have openssl installed on my termux. When I'm trying to install Luasec,it is saying no https support. 😞

luarocks install luaossl

>> Error: Could not find header file for CRYPTO
  No file openssl/crypto.h in /usr/local/include
  No file openssl/crypto.h in /usr/include
You may have to install CRYPTO in your system and/or pass CRYPTO_DIR or CRYPTO_INCDIR to the luarocks command.

😞

openssl.h or ssl.h didn't found on /include

please help ! 😞

Hy

Dont worry

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.