summaryrefslogtreecommitdiff
path: root/utils
Commit message (Collapse)AuthorAge
* [doc] slight improvements to the doc of the settings (base_url)Markus Heiser2023-02-17
| | | | | | Closes: https://github.com/searxng/searxng/issues/2190 Signed-off-by: Markus Heiser <markus.heiser@darmarit.de>
* [fix] make nvm.env exit with error when VERBOSE is unsetMarkus Heiser2023-02-11
| | | | | | | | | | | | | | | | | | | $ make nvm.install INFO: install (update) NVM at /800GBPCIex4/share/SearXNG/.nvm INFO: already cloned at: /800GBPCIex4/share/SearXNG/.nvm || Fetching origin INFO: checkout v0.39.1 || HEAD is now at 9600617 v0.39.1 make: *** [Makefile:96: nvm.install] Error 1 Without this fix we need to set VERBOSE environment to avoid the 'Error 1': $ VERBOSE=0 make nvm.install BTW: fix an issue if there are any leftovers in ${NVM_DIR} from previos installations Signed-off-by: Markus Heiser <markus.heiser@darmarit.de>
* [LXC] ubuntu 21.10 upgrade to ubuntu 22.04 LTS [1]Markus Heiser2023-02-01
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | [1] https://wiki.ubuntu.com/Releases Tested by:: # build the container .. $ sudo -H ./utils/lxc.sh build searxng-ubu2204 # install a complete SearXNG suite .. $ sudo -H ./utils/lxc.sh cmd searxng-ubu2204 FORCE_TIMEOUT=0 ./utils/searxng.sh install all # install nginx to export the SearXNG instance by HTTP $ sudo -H ./utils/lxc.sh cmd searxng-ubu2204 FORCE_TIMEOUT=0 ./utils/searxng.sh install nginx # check instance $ sudo -H ./utils/lxc.sh cmd searxng-ubu2204 FORCE_TIMEOUT=0 ./utils/searxng.sh instance check INFO: [searxng-ubu2204] FORCE_TIMEOUT=0 ./utils/searxng.sh instance check INFO: wrapper: utils/searxng.sh instance _call searxng.check SearXNG checks -------------- ... INFO searx : merge the default settings ( /usr/local/searxng/searxng-src/searx/settings.yml ) and the user settings ( /etc/searxng/settings.yml ) INFO searx : max_request_timeout=None INFO searx.redisdb : connecting to Redis db=0 path='/usr/local/searxng-redis/run/redis.sock' INFO searx.redisdb : connected to Redis Signed-off-by: Markus Heiser <markus.heiser@darmarit.de>
* [fix] typos in utils/searxng.shMilad-Laly2023-01-08
|
* Fix checksum virtualenv checks.llmII2023-01-03
| | | | | | | There's already precedence for not using GNUism sha256sum longopts as seen in searxng/utils/lib_go.sh so update lib.sh to not use them either. A nice side effect is now the sha256sum usage doesn't care if you're using BSD sha256sum or GNU sha256sum which makes this work under FreeBSD.
* move searx.shared.redisdb to searx.redisdbAlexandre Flament2022-12-10
|
* Initialize Redis in searx/webapp.pyAlexandre FLAMENT2022-11-05
| | | | | | | | | | | | | | settings.yml: * The default URL was unix:///usr/local/searxng-redis/run/redis.sock?db=0 * The default URL is now "false" The default URL makes the log difficult to deal with: if the admin didn't install a Redis instance, the logs record a false error. It worked before because SearXNG initialized the Redis connection when the limiter started. In this commit, SearXNG initializes Redis in searx/webapp.py so various components can use Redis without taking care of the initialization step.
* [fix] typos / reported by @kianmeng in searx PR-3366Markus Heiser2022-09-27
| | | | | | [PR-3366] https://github.com/searx/searx/pull/3366 Signed-off-by: Markus Heiser <markus.heiser@darmarit.de>
* [fix] uWSGI: increase buffer-sizeLéon Tiekötter2022-07-31
| | | | | | | Increase max size of a request, by default it is 4k [1]. 4096 as buffer-size is too small and will result in the preference urls not working. [1] https://uwsgi-docs.readthedocs.io/en/latest/Options.html#buffer-size
* [mod] fix minor leftovers from PR #1332Markus Heiser2022-07-30
| | | | | Related: https://github.com/searxng/searxng/pull/1332 Signed-off-by: Markus Heiser <markus.heiser@darmarit.de>
* [clean up] drop obsolete searx, filtron and morty install scriptsMarkus Heiser2022-07-30
| | | | | | | | | | Since ./utils/searxng.sh is implemented, the old installation procedures from filtron, morty and searx can be removed. For users who want to upgrade, the procedures for removing old installations have still been retained. Signed-off-by: Markus Heiser <markus.heiser@darmarit.de>
* [doc] update documentation of the installation proceduresMarkus Heiser2022-07-30
| | | | Signed-off-by: Markus Heiser <markus.heiser@darmarit.de>
* [utils/searxng.sh] implement new script to install SearXNGMarkus Heiser2022-07-30
| | | | Signed-off-by: Markus Heiser <markus.heiser@darmarit.de>
* [install scripts] rename SEARX_<name> variables to SEARXNG_<name>Markus Heiser2022-07-30
| | | | Signed-off-by: Markus Heiser <markus.heiser@darmarit.de>
* theme: remove __common__Alexandre Flament2022-05-07
|
* [theme] peel out oscar from SearXNG developmentMarkus Heiser2022-04-30
| | | | | | This is the first step of removing oscar theme Signed-off-by: Markus Heiser <markus.heiser@darmarit.de>
* [fix] since git v2.35.2 root can't read from unsafe repositoryMarkus Heiser2022-04-22
| | | | | | | | | | | | Git v2.35.2 closes an security issue, it is no longer possible that root uses a git repo that is owned by someone else, the error message is:: fatal: unsafe repository ('/share/darmarit.org/cache/searxng' is owned by someone else) The fix is to run the `git diff --name-only` not as root in a sudo command. [1] https://github.blog/2022-04-12-git-security-vulnerability-announced/ Signed-off-by: Markus Heiser <markus.heiser@darmarit.de>
* typo: wanr_msg -> warn_msgHZH2022-04-13
|
* don't reinstall existing packages on archJabster282022-04-11
|
* [LXC] ubuntu 20.10 EOL, upgrade to ubunut 21.10 [1]Markus Heiser2022-03-12
| | | | | | | | | | | | | | | | | | | | | | | | [1] https://wiki.ubuntu.com/Releases Tested by:: # build the container .. $ sudo -H ./utils/lxc.sh build searx-ubu2110 # open a shell in the container $ sudo -H ./utils/lxc.sh cmd searx-ubu2110 bash [root@searx-ubu2110 SearXNG]# # install a complete SearXNG suite .. [root@searx-ubu2110 SearXNG]# ./utils/searx.sh install all ... # install apache to export the SearXNG instance by HTTP [root@searx-ubu2110 SearXNG]# ./utils/searx.sh apache install ... INFO: got 200 from http://10.174.184.94/searx Signed-off-by: Markus Heiser <markus.heiser@darmarit.de>
* [LXC] fedora33 EOL [1], upgrade to fedora35 [2]Markus Heiser2022-03-12
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | [1] https://docs.fedoraproject.org/en-US/releases/eol/ [2] https://docs.fedoraproject.org/en-US/releases/f35/ Tested by:: # build the container .. $ sudo -H ./utils/lxc.sh build searx-fedora35 # open a shell in the container $ sudo -H ./utils/lxc.sh cmd searx-fedora35 bash [root@searx-fedora35 SearXNG]# # install a complete SearXNG suite .. [root@searx-fedora35 SearXNG]# ./utils/searx.sh install all ... # install apache to export the SearXNG instance by HTTP [root@searx-fedora35 SearXNG]# ./utils/searx.sh apache install ... INFO: got 200 from http://10.174.184.94/searx To build wheel `python3-devel` needs to be added to SEARX_PACKAGES_fedora:: |searx| × Building wheel for setproctitle (pyproject.toml) did not run successfully. |searx| │ exit code: 1 ... |searx| In file included from src/spt.h:15, |searx| from src/setproctitle.c:14: |searx| src/spt_python.h:16:10: fatal error: Python.h: No such file or directory |searx| 16 | #include <Python.h> |searx| | ^~~~~~~~~~ |searx| compilation terminated. |searx| error: command '/usr/bin/gcc' failed with exit code 1 |searx| [end of output] ... |searx| ERROR: Failed building wheel for setproctitle Signed-off-by: Markus Heiser <markus.heiser@darmarit.de>
* [mod] Serving static files with uWSGI (searxng.ini)Markus Heiser2022-03-08
| | | | | | | | | | 1. Serving static files with uWSGI by using static file mount points [1]. 2. Expires set to one year since there are hashes [2] [1] https://uwsgi-docs.readthedocs.io/en/latest/StaticFiles.html#mode-3-using-static-file-mount-points [2] https://github.com/searxng/searxng/pull/932 Signed-off-by: Markus Heiser <markus.heiser@darmarit.de>
* [fix] socket in SearXNG's uWSGI app (searxng.ini)Markus Heiser2022-03-08
| | | | | | Use SEARX_UWSGI_SOCKET in uWSGI systemd service Signed-off-by: Markus Heiser <markus.heiser@darmarit.de>
* [fix] APACHE_SEARX_SITE=searxng.conf renamed in 2b125214Markus Heiser2022-03-08
| | | | Signed-off-by: Markus Heiser <markus.heiser@darmarit.de>
* Merge pull request #804 from return42/minor-fixMartin Fischer2022-01-24
|\ | | | | [mod] lib_nvm.sh: minor improvements / no functional change
| * [mod] lib_nvm.sh: minor improvements / no functional changeMarkus Heiser2022-01-22
| | | | | | | | Signed-off-by: Markus Heiser <markus.heiser@darmarit.de>
* | [mod] introduce node.env.devtools functionMarkus Heiser2022-01-24
| |
* | [mod] remove .nvm_packages, add eslint to package.jsonMartin Fischer2022-01-23
|/
* Merge pull request #686 from return42/lib_redisMarkus Heiser2022-01-11
|\ | | | | Add redis DB and connector
| * [mod] script to build & install a redis instanceMarkus Heiser2022-01-03
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | A script to build & install a simple & isolated redis service, dedicated to SearXNG and connected via Unix socket. $ ./manage redis.help redis.: devpkg : install essential packages to compile redis build : build redis binaries at /800GBPCIex4/share/SearXNG/dist/redis/6.2.6/amd64 install : create user (searxng-redis) and install systemd service (searxng-redis) remove : delete user (searxng-redis) and remove service (searxng-redis) shell : start bash interpreter from user searxng-redis src : clone redis source code to <path> and checkput 6.2.6 useradd : create user (searxng-redis) at /usr/local/searxng-redis userdel : delete user (searxng-redis) addgrp : add <user> to group (searxng-redis) rmgrp : remove <user> from group (searxng-redis) Signed-off-by: Markus Heiser <markus.heiser@darmarit.de>
* | reference docs.searxng.orgAlexandre Flament2022-01-02
|/
* [mod] make static.build.commit more robustMarkus Heiser2021-12-01
| | | | | | | - use single quote in the STATIC_BUILT_PATHS to avoid bash globbing - don't try to commit if no files have been changed Signed-off-by: Markus Heiser <markus.heiser@darmarit.de>
* [mod] themes/simple/img/searxng.svg -> src/brand/searxng.svgMarkus Heiser2021-11-29
| | | | | | | | | | | | * move `searx/static/themes/simple/img/searxng.svg` to `src/brand/searxng.svg` * README.rst can use it without a reference to a theme. * the simple theme can create `searx/static/themes/simple/img/searxng.png` using the svg2png task Suggested-by: @dalf https://github.com/searxng/searxng/pull/561#issuecomment-981747902 Signed-off-by: Markus Heiser <markus.heiser@darmarit.de>
* [fix] searx.sh update: replace git pull by a hard resetMarkus Heiser2021-11-26
| | | | | | | If the fetched branch has been rebased a 'git pull' will fails. To get fetched branch in the working tree, a git reset is needed. Signed-off-by: Markus Heiser <markus.heiser@darmarit.de>
* Merge pull request #516 from return42/searxng/filtronMarkus Heiser2021-11-23
|\ | | | | [mod] filtron.sh - install github.com/searxng/filtron
| * [fix] filtron.sh & morty.sh: quote "$GO_ENV"Markus Heiser2021-11-21
| | | | | | | | Signed-off-by: Markus Heiser <markus.heiser@darmarit.de>
| * [mod] filtron.sh - install github.com/searxng/filtronMarkus Heiser2021-11-21
| | | | | | | | | | | | | | | | | | SearXNG maintains a fork of filtron at [1] [1] https://github.com/searxng/filtron Related: https://github.com/searxng/searxng/issues/507#issuecomment-970254027 Signed-off-by: Markus Heiser <markus.heiser@darmarit.de>
* | [mod] NVM: dev-tools pre-installed in NVM's node installationMarkus Heiser2021-11-20
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | The Node.js installation in the NVM environment can be used by IDEs and other developer tasks. The required developer packagaes are added to the file ./.nvm_packages and will be installed when Node.js is installed. Initial we start with: - eslint Having a dedicated developer enviroment, provided by nvm makes it easy to integrate Node.js packages into various IDEs. One example is shown in the .dir-locals.el which is used by emacs. [1] https://github.com/nvm-sh/nvm#default-global-packages-from-file-while-installing [2] https://eslint.org Signed-off-by: Markus Heiser <markus.heiser@darmarit.de>
* | [mod] nvm.cmd ... : run command ... in NVM environmentMarkus Heiser2021-11-20
| | | | | | | | Signed-off-by: Markus Heiser <markus.heiser@darmarit.de>
* | [mod] NVM: pin Node.js to v16.13.0Markus Heiser2021-11-20
| | | | | | | | Signed-off-by: Markus Heiser <markus.heiser@darmarit.de>
* | [fix] nvm.install: add missing popd / node.env exit with error (254)Markus Heiser2021-11-20
|/ | | | | | | | | | | | | | | | | | | | | | | | Issue:: $ make clean node.env ... CLEAN [NVM] drop .nvm/ ... INFO: install Node.js by NVM ... Now using node v16.13.0 (npm v8.1.0) ... INSTALL searx/static/themes/oscar/package.json npm ERR! code ENOENT npm ERR! syscall open # Here now comes the issue, caused by the missing 'popd' .. npm ERR! path SearXNG/.nvm/searx/static/themes/oscar/package.json npm ERR! errno -2 npm ERR! enoent ENOENT: no such file or directory, open 'SearXNG/.nvm/searx/static/themes/oscar/package.json' ERROR: node.env exit with error (254) make: *** [Makefile:99: node.env] Error 254 Signed-off-by: Markus Heiser <markus.heiser@darmarit.de>
* [fix] brand - partial revert of e82e37ce6Markus Heiser2021-11-19
| | | | | | | | | | | | In commit e82e37ce6 accidentally the brand file was touched / partial revert:: export GIT_URL='https://github.com/searxng/searxng' export GIT_BRANCH='master' Related: https://github.com/searxng/searxng/pull/515 Signed-off-by: Markus Heiser <markus.heiser@darmarit.de>
* [fix] make nvm.clean - don't raise error when NVM is not installedMarkus Heiser2021-11-19
| | | | | | | | | | | | | | | | | Issue was:: $ LANG=C make nvm.clean INFO: NVM is not installed make: *** [Makefile:99: nvm.clean] Error 42 Now:: $ LANG=C make nvm.clean CLEAN [NVM] not installed BTW: change info_msg to build_msg Signed-off-by: Markus Heiser <markus.heiser@darmarit.de>
* Merge pull request #515 from return42/doc-themeMarkus Heiser2021-11-19
|\ | | | | Various modification of the documentation and the theme sphinx-theme
| * [brand] SearXNG - docs rename links and fix documentationMarkus Heiser2021-11-18
| | | | | | | | Signed-off-by: Markus Heiser <markus.heiser@darmarit.de>
* | Merge pull request #508 from return42/arm64Markus Heiser2021-11-18
|\ \ | |/ |/| [mod] Tools to install and maintain golang binaries & packages.
| * [fix] filtron & morty - install golang binary that fits to arch & osMarkus Heiser2021-11-16
| | | | | | | | | | Closes: https://github.com/searxng/searxng/issues/507 Signed-off-by: Markus Heiser <markus.heiser@darmarit.de>
| * [mod] Tools to install and maintain golang [1] binaries & packages.Markus Heiser2021-11-16
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | [1] https://golang.org/doc/devel/release#policy A simple *helloworld* test with user 'my_user' : sudo -H adduser my_user ./manage go.golang go1.17.3 my_user ./manage go.install github.com/go-training/helloworld@latest my_user ./manage go.bash my_user $ helloword Hello World!! Don't forget to remove 'my_user': sudo -H deluser --remove-home my_user Signed-off-by: Markus Heiser <markus.heiser@darmarit.de>
* | [mod] Tools to install and maintain NVM versions manager for Node.jsMarkus Heiser2021-11-16
|/ | | | | | [1] https://github.com/nvm-sh/nvm Signed-off-by: Markus Heiser <markus.heiser@darmarit.de>
* [simple theme] update to ion icons 5 and drop webfontMrPaulBlack2021-11-13
| | | | | | | | | | | * update from ionicons-npm to ionicons ver.5 * drop the webfont built by grunt for icons * built icons.html template for inlining icons with jinja2 into html * update icon to use mostly the outline version * add icons to categories and do not display them on mobile to save space * remove all legacy ion icon font files from simple theme * icons.html is added in this commit since make statc.build.restore requires git to know the file already * cleanup error-dialog