EXALAB / AnLinux-App

AnLinux allow you to run Linux on Android without root access.
Apache License 2.0
1.66k stars 246 forks source link

No such file or directory #162

Open ghost opened 5 years ago

ghost commented 5 years ago

Screenshot_20190918-182805 Screenshot_20190918-182812 Screenshot_20190918-182750

Contact me plz by this zahirseid101@gmail.com

cheetosysst commented 5 years ago

Same here

Termux

exalab999 commented 5 years ago

My testing still run fine, what device you are using?

On Sat, Sep 28, 2019, 5:45 PM Thect notifications@github.com wrote:

Same here [image: Termux] https://camo.githubusercontent.com/804893b15edd8ba052ba22895f09b331b4c5bf9b/68747470733a2f2f692e696d6775722e636f6d2f3475626a6179322e706e67

— You are receiving this because you are subscribed to this thread. Reply to this email directly, view it on GitHub https://github.com/EXALAB/AnLinux-App/issues/162?email_source=notifications&email_token=AH7GMUOXJWAG6W4WANNTYGLQL4RSXA5CNFSM4IY54EU2YY3PNVWWK3TUL52HS4DFVREXG43VMVBW63LNMVXHJKTDN5WW2ZLOORPWSZGOD72VD4Q#issuecomment-536170994, or mute the thread https://github.com/notifications/unsubscribe-auth/AH7GMUJOSWGCI7YGEW4665TQL4RSXANCNFSM4IY54EUQ .

ghost commented 5 years ago

My device is Motorola e5 play ,go edition XT (1920-16) pettyl ,so plz hurry

NightfallAlicorn commented 5 years ago

I'm having the same issue when trying to run . /start-ubuntu.sh after running the command from Dashboard to get Ubuntu on Termux.

It throws this error:

/usr/bin/env: '/bin/bash': No such file or directory

I'm using Samsung Galaxy J3 (2017) running Andriod 9.

I've had a Linux desktop run before without issue.

NightfallAlicorn commented 5 years ago

Is there an update on how to solve this issue? I still hadn't had any luck.

NightfallAlicorn commented 4 years ago

I've found a solution. I've wrote this guide in the process on getting it working. This worked with Ubuntu w/ XFCE. I don't know about other distros and desktops. Use AnLinux to get an alternative desktop if you don't want XFCE. Be sure to add the required sudo from the copied code.

Surprisingly this script was meant for Termux.


Install UserLAnd and start the app.

---

Switch to `Filesystems` tab at the bottom and press the `+` at the top to add a new file system.

Give `Filesystem` a sensible name. I choose "ubuntu_fs". Hyphen isn't allowed for file system names.

Give `Username` a sensible name. I choose "user". Note that even though some Linux distros allow "root" as a choice of name to always have root access. UserLAnd doesn't allow this.

Provide a memorable password for `Password`. Personally I use "toor" - root spelt backwards. Some distro use this as the default password. Suitable only if you're the only user that uses that machine.

Provide a password for `VNC Password`.  It has to be 6 or 8 characters. Personally I used https://passwordsgenerator.net to generate a password for better security. Be sure to note it somewhere.

Switch to `Filesystem` to Ubuntu from option list if not selected.

Press the `floppy disk` icon at the top to save.

---

Switch to `Sessions` tab at the bottom and press the `+` at the top to add a new session.

Give `Session Name` a sensible name. I choose "xfce4_ssh".

"ubuntu_fs: Ubuntu" be already selected for `Filesystem`. If not, change it to it.

Set `Service Type` to "ssh" if not already selected.

Press the `floppy disk` icon to save.

---

Choose the new created session "xfce4_ssh ssh ubuntu-fs" to begin setup.

If asked for permissions to access storage. Choose `OK!` and then `Allow`.

UserLAnd will start downloading and installing the assets to run Ubuntu. Please wait.

After installation. The service will start in terminal mode.

When prompt. Enter the user password which was "toor" in the example. Typing is invisible just to note. Press enter when it's typed in.

Now run "sudo apt update && sudo apt upgrade" to get ubuntu apt packages list updated and to update any current packages.

When asked to continue upgrading. Enter "y" after taking note of the space.

---

Now run the following command without the qoutes:

"sudo apt install wget && wget https://raw.githubusercontent.com/EXALAB/AnLinux-Resources/master/Scripts/DesktopEnvironment/Apt/Xfce4/de-apt-xfce4.sh && sudo bash de-apt-xfce4.sh

Most of the command is from AnLinux app with the addition of wget installation and the required sudo. Even though this script is meant for Termux it's what got XFCE4 running on UserLAnd for me.

Enter "y" after taking note of the space.

The next part of the installation will take a little while.

When prompt. Look for the number representing your keyboard region. Mine is "30" for English (UK).

Press enter until it asks you to enter the `Country of origin for the keyboard`. Then enter the number.

Depending on the region. You maybe asked to choose a `Keyboard layout`. I entered the first option. "1" for English (UK) on the next prompt.

When asked for a `Password` for the desktop. Enter the same VNC Password you entered eariler and again to verify it.

If asked to enter a view only password. Enter "n". This option is only for if you want a separate password only to view the desktop but unable to interact with it.

---

Start VNC Viewer and then go past the welcome introduction and choose Get Started if you hadn't already.

Press the `green plus` and enter "127.0.0.1:5901" for the `IP`, obtained from UserLAnd terminal.

Give it a sensible `Name`. I choose "UserLAnd".

When done. Press `CREATE`.

On next menu. Press `CONNECT` at the bottom.

If you want. You can mute any notification about the connection being unencrypted and then press `OK` on top-right corner.

Once more. Enter the `Password` for VNC you made. It's probably ideal to enable `Remember password`.

Finally. Press `Connect` on the top-right.

If it's your first time using VNC Viewer, follow the short instructions guide on prompt.

---

Take note of "vncserver-start" and "vncserver-stop" commands for the next time you start "xfce4_ssh ssh ubuntu-fs" on UserLAnd if necessarily.

Enjoy XFCE4 on your Andriod.

Lastly. Do note that not everything will work in this sandbox due to andriod permission restrictions. Also, it's best to use "exit" command on ssh window when finished since XFCE can't shut down like a regular PC.
ghost commented 4 years ago

I have tried it now but it fail it couldn't verify the assets that's what it says ,so could you solve my problem it's on termux but the same problem see my screen shot

NightfallAlicorn commented 4 years ago

I've tried everything I could with Termux. I can't get past the /usr/bin/env: '/bin/bash': No such file or directory error. I think it's an issue with PRoot.

Did you delete all UserLAnd cache before following instructions? If there's an error with the assets then I don't know how I can help. I've been browsing everywhere and trying different things for past week between Termux and UserLAnd since they're both having issues running desktop environments.

I did see a post that caught my eye that Google will eventually add a security update that will break Termux running executables. But other executables seem fine on it for me except that ./start-ubuntu.sh.

Sorry if I'm not much help. I've been stuck as well.

ghost commented 4 years ago

I installed userland today from Google play , tried it as I told you before . Thank you for your concern

On Sat, Oct 12, 2019, 1:38 PM NightfallAlicorn notifications@github.com wrote:

I've tried everything I could with Termux. I can't get past the /usr/bin/env: '/bin/bash': No such file or directory error. I think it's an issue with PRoot.

Did you delete all UserLAnd cache before following instructions? If there's an error with the assets then I don't know how I can help. I've been browsing everywhere and trying different things for past week between Termux and UserLAnd since they're both having issues running desktop environments.

I did see a post that caught my eye that Google will eventually add a security update that will break Termux running executables. But other executables seem fine on it for me except that ./start-ubuntu.sh.

Sorry if I'm not much help. I've been stuck as well.

— You are receiving this because you authored the thread. Reply to this email directly, view it on GitHub https://github.com/EXALAB/AnLinux-App/issues/162?email_source=notifications&email_token=AM6BGK3O5RWG2G7CBBRHJSDQOGSKPA5CNFSM4IY54EU2YY3PNVWWK3TUL52HS4DFVREXG43VMVBW63LNMVXHJKTDN5WW2ZLOORPWSZGOEBB4LDA#issuecomment-541312396, or unsubscribe https://github.com/notifications/unsubscribe-auth/AM6BGK3BCVDRHDVGXGG6SC3QOGSKPANCNFSM4IY54EUQ .

NightfallAlicorn commented 4 years ago

I've found a new problem with my previous solution. When starting the session again, VNC Viewer can't find the server.

After changing UserLAnd session to VNC. It's using a different address and now most of the icons are currupted.

Screenshot

I tried changing back to SSH and using the new IP but can't find it.

Ugh. I'm to the point giving up. Trying to run a Linux desktop on Android is a nightmare.

ghost commented 4 years ago

Hey guys finally it worked for me I used "andronix " to Install Kali and finally it worked for me

ghost commented 4 years ago

It worked for me I used andronix instead of anlinux and it worked

On Sat, Oct 12, 2019, 3:52 PM NightfallAlicorn notifications@github.com wrote:

I've found new problem with my previous solution. When starting the session again, VNC Viewer can't find the server.

After changing UserLAnd session to VNC. It's using a different address and now most of the icons are currupted.

https://i.imgur.com/VT4c0Ne.jpg

I tried changing back to SSH and using the new IP but can't find it.

Ugh. I'm to the point giving up. Trying to run a Linux desktop on Andriod is a nightmare.

— You are receiving this because you authored the thread. Reply to this email directly, view it on GitHub https://github.com/EXALAB/AnLinux-App/issues/162?email_source=notifications&email_token=AM6BGK3HQV7CKOTHWGTRYWLQOHCCTA5CNFSM4IY54EU2YY3PNVWWK3TUL52HS4DFVREXG43VMVBW63LNMVXHJKTDN5WW2ZLOORPWSZGOEBB6YII#issuecomment-541322273, or unsubscribe https://github.com/notifications/unsubscribe-auth/AM6BGKYSPZY75IHSYTYMI4LQOHCCTANCNFSM4IY54EUQ .

exalab999 commented 4 years ago

@blackshadow101 Andronix use AnLinux-Resources as their script, there are nothing difference except they offer some paid distro and cloud save command.

exalab999 commented 4 years ago

But I glad it finally works for you

NightfallAlicorn commented 4 years ago

What the... I was about to paste the code from Andronix before I decided to try ./start-ubuntu.sh one more time and it worked.

It still had the same image of the script in the ~./ directory that wasn't working before and Termux hasn't been updated for a while from what I've seen.

The only culprit is the Google Play Libraries that updates without notification unless the user is active on their android. UserLAnd updated recently but it can't touch Termux internal bash executable without the phone being rooted I believe but my phone isn't rooted.

Thanks for helping.

NightfallAlicorn commented 4 years ago

I just had the same issue that I had on UserLAnd with the icons. It seems the problem was I lacked proper steps to start and exit properly.

It probably be better to inform the user in the installation script after installation. I've been using exit without knowing I had to vncserver-stop first which put the session in a memory leaked shutdown - basically still running when I stopped session on notification, if that makes sense. I had to close Termux notification and app window to fully exit. I thought I could had left it running so I didn't have to keep manually vncserver-start since it says it's still running when it wasn't.

I also had an issue with XFCE4 Panel not showing and throwing an error that its in Kiosk mode when starting from applications. Even though it states settings aren't saved, they were. Deleting the .cache folder in the root home directory solved that issue. Probably caused by improper shutdown.

Everything seems to be good now. I hope... I guess I'll add an alias to .bashrc to have a proper shutdown. alias undecided="vncserver-stop && exit. Not sure if adding vncserver-start to .bashrc will work or is safe option.