Bonjour
Bonjour
TTermux
Created by Bonjour on 7/23/2024 in #support
How can I fix this?
I will clear termux's data
20 replies
TTermux
Created by Bonjour on 7/23/2024 in #support
How can I fix this?
ofc
20 replies
TTermux
Created by Bonjour on 7/23/2024 in #support
How can I fix this?
using ls
20 replies
TTermux
Created by Bonjour on 7/23/2024 in #support
How can I fix this?
which is weird given that it actually does exist
20 replies
TTermux
Created by Bonjour on 7/23/2024 in #support
How can I fix this?
"/data/data/com.termux/files/usr/bin/tar doesn't exist"
20 replies
TTermux
Created by Bonjour on 7/23/2024 in #support
How can I fix this?
actually I think I figured out the reason this error is happening
20 replies
TTermux
Created by Bonjour on 7/23/2024 in #support
How can I fix this?
yeah
20 replies
TTermux
Created by Bonjour on 7/23/2024 in #support
How can I fix this?
alr then but thx for the link I might try a few things to see if I can fix this
20 replies
TTermux
Created by Bonjour on 7/23/2024 in #support
How can I fix this?
Oh
20 replies
TTermux
Created by Bonjour on 7/23/2024 in #support
How can I fix this?
like make the ubuntu folder then add /etc
20 replies
TTermux
Created by Bonjour on 7/23/2024 in #support
How can I fix this?
Should I make one?
20 replies
TTermux
Created by Bonjour on 7/23/2024 in #support
How can I fix this?
Can't find the directory to add the etc folder
20 replies
TTermux
Created by Bonjour on 7/23/2024 in #support
How can I fix this?
No description
20 replies
TTermux
Created by Bonjour on 7/23/2024 in #support
How can I fix this?
"Error: the rootfs of distribution 'ubuntu' has unexpected structure (no /etc directory). Make sure that variable TARBALL_STRIP_OPT specified in distribution plug-in is correct."
20 replies
TTermux
Created by jezza444 on 4/5/2024 in #support
bash: ./filename: Permission Denied
run ./filename
run ./filename
or
run filename
run filename
or
run /storage/emulated/0/MYCODE/C_CODE/PROJECT1/filename


# replace /storage/emulated/0/MYCODE/C_CODE/PROJECT1/filename with the actual path
run /storage/emulated/0/MYCODE/C_CODE/PROJECT1/filename


# replace /storage/emulated/0/MYCODE/C_CODE/PROJECT1/filename with the actual path
---- also, if you don't want to use nano in bedit just replace the "nano" in the beginning of the code I gave you with your desired text editor
10 replies
TTermux
Created by jezza444 on 4/5/2024 in #support
bash: ./filename: Permission Denied
I know it's kinda weird thar I am replying after 3/4 months but whatever I just wanted to give you a quick solution. but first, I am assuming you know how to use a text editor in termux. if you don't, you may check a tutorial or something then read the rest of this comment. #!bin@fish said that you need to do it in the termux home file, but let's be realistic we all wanna run bash in the coding folder we made (whether it's in the internal storage or sd card) so, the best way to do it is by adding a command "run" that runs your little script no matter where it is. So, do the following:
nano /data/data/com.termux/files/usr/etc/bash.bashrc"
nano /data/data/com.termux/files/usr/etc/bash.bashrc"
this will open the bash.bashrc, which runs commands automatically the moment you open termux, in a text editor called nano. Termux has this text editor pre-installed afak but if you have another text editor you may also use it. after you open it, go to the bottom and add the following new commands:
alias bedit="nano /data/data/com.termux/files/usr/etc/bash.bashrc"

function run(){
if [[ "x${1}" == "x" ]]
then
echo "Please pass the name of a file"
return 1
fi

if [[ -d $1 ]]
then
echo "This is a directory. Please input a file"
return 1
fi

if [[ ! -f $1 ]]
then
echo "File doesn't exist"
return 1
fi

FIRST_PARAM="${1}"
DEFAULT_LOCATION=$PWD
TERMUX_LOCATION=/data/data/com.termux/files/home
BASHFILE_LOCATION="${TERMUX_LOCATION}/${FIRST_PARAM##*/}"
CURRENT_FILE_LOCATION="${DEFAULT_LOCATION}/${FIRST_PARAM##*/}"

chmod +x $1
mv $1 $TERMUX_LOCATION
chmod +x $BASHFILE_LOCATION
/$BASHFILE_LOCATION;echo
mv $BASHFILE_LOCATION $DEFAULT_LOCATION

if [[ $CURRENT_FILE_LOCATION != $(realpath $1) ]]
then
mv $CURRENT_FILE_LOCATION $1
fi
}
alias bedit="nano /data/data/com.termux/files/usr/etc/bash.bashrc"

function run(){
if [[ "x${1}" == "x" ]]
then
echo "Please pass the name of a file"
return 1
fi

if [[ -d $1 ]]
then
echo "This is a directory. Please input a file"
return 1
fi

if [[ ! -f $1 ]]
then
echo "File doesn't exist"
return 1
fi

FIRST_PARAM="${1}"
DEFAULT_LOCATION=$PWD
TERMUX_LOCATION=/data/data/com.termux/files/home
BASHFILE_LOCATION="${TERMUX_LOCATION}/${FIRST_PARAM##*/}"
CURRENT_FILE_LOCATION="${DEFAULT_LOCATION}/${FIRST_PARAM##*/}"

chmod +x $1
mv $1 $TERMUX_LOCATION
chmod +x $BASHFILE_LOCATION
/$BASHFILE_LOCATION;echo
mv $BASHFILE_LOCATION $DEFAULT_LOCATION

if [[ $CURRENT_FILE_LOCATION != $(realpath $1) ]]
then
mv $CURRENT_FILE_LOCATION $1
fi
}
this will add 2 new commands you may use. bedit Use it to open the bash.bashrc file in nano. run use it to fix your issue
10 replies
TTermux
Created by Bonjour on 7/19/2024 in #support
Bash: Permission Denied
it worked! tysm
17 replies
TTermux
Created by Bonjour on 7/19/2024 in #support
Bash: Permission Denied
still says permission denied. I used:
mv Hi /data/data/com.termux/files/home
cd /data/data/com.termux/files/home
ls ./Hi
17 replies
TTermux
Created by Bonjour on 7/19/2024 in #support
Bash: Permission Denied
wait lemme try
17 replies
TTermux
Created by Bonjour on 7/19/2024 in #support
Bash: Permission Denied
oh thx
17 replies