farhansadik / echominal

This script a simple manager for termux. User can use is in a short way. This script is very helpful for beginners
GNU General Public License v3.0
5 stars 0 forks source link

Installer #33

Closed farhansadik closed 3 years ago

farhansadik commented 3 years ago

Environment

Download & update location $HOME/.config/echominal

Project file will be cloned in desired location.

Installation File Location Main engine /data/data/com.termux/files/usr/bin/ For log $HOME/.config/echominal/log Scripts $HOME/.config/echominal/scripts Basic File $HOME/.config/echominal

Required Directory MP3 Converted output dir /sdcard/MP3 Termux Backup & Restore dir /sdcard/termux-backup

Things to do

  1. Online Installation (Package Installation/upgrade/update)

    Packages List figlet cowsay git zsh tar htop ranger termux-tools termux-api ffmpeg python python2 nodejs-lts PIP Package youtube-dl

  2. Offline Installation (file/directory creator/movement)

    Require Dir .config/echominal/log .config/echominal/scripts /sdcard/MP3 /sdcard/termux-backup

  3. engine (chmod) permission

  4. termux-oh-my-zsh [skipped]

  5. input-settings (shell style)

  6. ccli installation

  7. termux sudo [make it optional]

  8. termux-reload-settings

Optional

  1. A root checker would be nice and easy for termux-sudo.
  2. Fake figlet will be added

Tools

Termux API

  1. termux-notification
  2. termux-notification-remove
  3. termux-toast
  4. termux-dialog
  5. dialog [not approved]
  6. termux-wallpaper
  7. termux-media-player [for installation music] [not approved] 8 termux-vibrate [for make sure everything is ok]

make installer like oh-my-zshin installation

Style

  1. Add method from https://github.com/AlShakib/InternetSpeedMeter/blob/master/install.sh
  2. No cowsay or figlet will be given
batasu commented 3 years ago

Download specific file from git

curl ~ sh -c "$(curl -fsSL https://raw.github.com/ohmyzsh/ohmyzsh/master/tools/install.sh)" wget ~ sh -c "$(wget https://raw.github.com/ohmyzsh/ohmyzsh/master/tools/install.sh -O -)"

farhansadik commented 3 years ago

@batasu I need you to test input_settings functions for me and add a separate script for termux-sudo.

batasu commented 3 years ago

input-settings function has been added and tested! termux-sudo and termux-oh-my-zsh needs to be tested! @squaredevops

squaredevops commented 3 years ago

Test Report termux-sudo and termux-oh-my-zsh` worked!

farhansadik commented 3 years ago

getting error in ccli

Updating source file     : /home/farhansadik/.oh-my-zsh/tools/check_for_upgrade.sh: line 32: syntax error near unexpected token `)'
/home/farhansadik/.oh-my-zsh/tools/check_for_upgrade.sh: line 32: `() {'
/home/farhansadik/.oh-my-zsh/oh-my-zsh.sh: line 21: autoload: command not found
/home/farhansadik/.oh-my-zsh/oh-my-zsh.sh: line 39: syntax error near unexpected token `('
/home/farhansadik/.oh-my-zsh/oh-my-zsh.sh: line 39: `for plugin ($plugins); do'
Done
squaredevops commented 3 years ago

same here

Updating source file     : /data/data/com.termux/files/home/.oh-my-zsh/tools/check_for_upgrade.sh: line 32: syntax error near unexpected token `)'
/data/data/com.termux/files/home/.oh-my-zsh/tools/check_for_upgrade.sh: line 32: `() {'
/data/data/com.termux/files/home/.oh-my-zsh/oh-my-zsh.sh: line 21: autoload: command not found
/data/data/com.termux/files/home/.oh-my-zsh/oh-my-zsh.sh: line 39: syntax error near unexpected token `('
/data/data/com.termux/files/home/.oh-my-zsh/oh-my-zsh.sh: line 39: `for plugin ($plugins); do'
/data/data/com.termux/files/home/.zsh-syntax-highlighting/zsh-syntax-highlighting.zsh: line 31: alias: -L: invalid option
alias: usage: alias [-p] [name[=value] ... ]
/data/data/com.termux/files/home/.zsh-syntax-highlighting/zsh-syntax-highlighting.zsh: line 36: unalias: -m: invalid option
unalias: usage: unalias [-a] name [name ...]
/data/data/com.termux/files/home/.zsh-syntax-highlighting/zsh-syntax-highlighting.zsh: line 39: 0=${(%):-%N}: bad substitution
/data/data/com.termux/files/home/.zsh-syntax-highlighting/zsh-syntax-highlighting.zsh: line 42: /.version: No such file or directory
/data/data/com.termux/files/home/.zsh-syntax-highlighting/zsh-syntax-highlighting.zsh: line 43: /.revision-hash: No such file or directory
/data/data/com.termux/files/home/.zsh-syntax-highlighting/zsh-syntax-highlighting.zsh: line 104: autoload: command not found
/data/data/com.termux/files/home/.zsh-syntax-highlighting/zsh-syntax-highlighting.zsh: line 105: is-at-least: command not found
/data/data/com.termux/files/home/.zsh-syntax-highlighting/zsh-syntax-highlighting.zsh: line 188: syntax error near unexpected token `}'
/data/data/com.termux/files/home/.zsh-syntax-highlighting/zsh-syntax-highlighting.zsh: line 188: `  if [[ $WIDGET == zle-isearch-update ]] && { $zsh_highlight__pat_static_bug || ! (( $+ISEARCHMATCH_ACTIVE )) }; then'
Done
squaredevops commented 3 years ago
~/echominal-development $ source ~/.zshrc
bash: /data/data/com.termux/files/home/.oh-my-zsh/tools/check_for_upgrade.sh: line 32: syntax error near unexpected token `)'
bash: /data/data/com.termux/files/home/.oh-my-zsh/tools/check_for_upgrade.sh: line 32: `() {'
No command autoload found, did you mean:
 Command autoconf in package autoconf
 Command tload in package procps
 Command gst-load in package smalltalk from the unstable-repo repository
bash: /data/data/com.termux/files/home/.oh-my-zsh/oh-my-zsh.sh: line 39: syntax error near unexpected token `('
bash: /data/data/com.termux/files/home/.oh-my-zsh/oh-my-zsh.sh: line 39: `for plugin ($plugins); do'
bash: alias: -L: invalid option
alias: usage: alias [-p] [name[=value] ... ]
bash: unalias: -m: invalid option
unalias: usage: unalias [-a] name [name ...]
bash: 0=${(%):-%N}: bad substitution
bash: /.version: No such file or directory
bash: /.revision-hash: No such file or directory
No command autoload found, did you mean:
 Command autoconf in package autoconf
 Command tload in package procps
 Command gst-load in package smalltalk from the unstable-repo repository
is-at-least: command not found
bash: /data/data/com.termux/files/home/.zsh-syntax-highlighting/zsh-syntax-highlighting.zsh: line 188: syntax error near unexpected token `}'
bash: /data/data/com.termux/files/home/.zsh-syntax-highlighting/zsh-syntax-highlighting.zsh: line 188: `  if [[ $WIDGET == zle-isearch-update ]] && { $zsh_highlight__pat_static_bug || ! (( $+ISEARCHMATCH_ACTIVE )) }; then'
farhansadik commented 3 years ago

looks like we need to remove oh-my-zsh

squaredevops commented 3 years ago

No! we can keep the oh-my-fuckkkkk but we will not install it! just like termux-sudo. we're gonna leave that for letter update...

squaredevops commented 3 years ago

We can store main file or a link (shortcut) for /usr/bin. Here is my experiment

~ $ cp -rv mycmd.bash $l
'mycmd.bash' -> '/data/data/com.termux/files/usr/bin/mycmd.bash'
~ $ cd termux-ohmyzsh/
~/termux-ohmyzsh $ mycmd.bash
this is a bash file
batasu commented 3 years ago

Get new code [beta Release]

https://github.com/batasu/echominal-test-1

squaredevops commented 3 years ago

@farhansadik

Patch 1.5.00

Package nodejs is not available, but is referred to by another package.
This may mean that the package is missing, has been obsoleted, or
is only available from another source

E: Package 'nodejs' has no installation candidate
tools/install: line 48: pip: command not found
looking for echominal base script
sorry no base file has been found
farhansadik commented 3 years ago
  1. Removed nodejs packages
  2. A basic fix applyed for base package error
  3. tools/install: line 48: pip: command not found - to fix this we need 1.5.02 report!
squaredevops commented 3 years ago

Patch 1.5.02

looking for echominal base script
sorry no base file has been found
squaredevops commented 3 years ago

Patch 1.5.03

has same error! looks like its a programmatically error. here take a look:

~ $ ls -a $def_loc/echominal
/data/data/com.termux/files/home/.config/echominal/echominal

~ $ ls -a $def_loc/echominal | grep echominal
$ if [[ `ls -a $def_loc/echominal | grep echominal` == echominal ]]; then echo ok; else echo false; fi
false
squaredevops commented 3 years ago

Patch 1.5.04

It's worked

~/.config/echominal $ bash tools/install
looking for echominal base script
found file
getting base permissions
squaredevops commented 3 years ago

patch 1.5.08

.termux is working fine but some color changes happened. So let user to choose fonts and color scheme

farhansadik commented 3 years ago

Wait for next patch!!