FluxionNetwork / fluxion

Fluxion is a remake of linset by vk496 with enhanced functionality.
https://fluxionnetwork.github.io/fluxion/
GNU General Public License v3.0
5k stars 1.4k forks source link

The script failed to initialize an xterm test session #221

Closed hunar1997 closed 7 years ago

hunar1997 commented 7 years ago

Hi .. fluxion worked perfectly but yesterday i upgraded from Ubuntu 17.04 to 17.10 and now it wont start and shows me this message: The script failed to initialize an xterm test session. I'm just a user i dont know what else to say :/

deltaxflux commented 7 years ago

sudo apt-get install xdpyinfo

hunar1997 commented 7 years ago

when i type that it says Unable to locate package xdpyinfo
when i run xdpyinfo it shows alot of outputs about the display
what is wrong? :/

Axairlem commented 6 years ago

Same thing here, using Ubuntu 17. Can't install xdpyinfo although I tried to google the package, found 1 link providing a tar.xz file which doesn't seem to work at all when I install it. @hunar1997 : To answer your question, Kali Linux fixed everything in my case and it is the recommended distro for Fluxion. Hope this helped. Kali Download: https://www.kali.org/downloads/ xdpyinfo file: https://www.archlinux.org/packages/extra/x86_64/xorg-xdpyinfo/ (Didn't work in my case)

deltaxflux commented 6 years ago

Well, Use a prober OS and take a look how to install these packages. I recommend:

alvarosamudio commented 6 years ago

tested in deepin 15.5 and works wonders :+1: :ok_hand:

hunar1997 commented 6 years ago

I forgot about this question XD, i solved it by logging out and logging in using (Ubuntu on Xorg) instead, and now everything works :D, Wayland is not working

Halpmewithdis commented 4 years ago

i have the same problem

joelstitch commented 4 years ago

I am having the same issue running Fluzion on Kali. I am running Kali Nethunter on a Oneplus 7 Pro and accesing the display trough VNC using Kalis KeX Manager.

mamilux commented 4 years ago

I am having the same issue running Fluzion on Kali. I am running Kali Nethunter on a Oneplus 7 Pro and accesing the display trough VNC using Kalis KeX Manager.

Just run service as root not kali. But anyway fluxion wont launch

mamilux commented 4 years ago

IMG_20200331_005110 Stuck in launch screen. When i tap ctrl+c i can see closing screen

joelstitch commented 4 years ago

I am having the same issue running Fluzion on Kali. I am running Kali Nethunter on a Oneplus 7 Pro and accesing the display trough VNC using Kalis KeX Manager.

Just run service as root not kali. But anyway fluxion wont launch

I actually got it running with root. Thank for the help! I just had to close the session on Kex Manager and start a new one with the user root

xpz3 commented 4 years ago

Screenshot_20200401-063431 No such issue for me. Latest nethunter on oneplus 3 phone I just installed the dependencies

mamilux commented 4 years ago

Screenshot_20200401-063431 No such issue for me. Latest nethunter on oneplus 3 phone I just installed the dependencies

Weird. What I'm missing i don't know. Still same. Maybe because of the Marshmallow Nexus5?

xpz3 commented 4 years ago

Something's wrong with your nethunter installation. You might not be installing the correct version for your os or the installation method could be wrong. Are you xdamama on discord?

mamilux commented 4 years ago

Something's wrong with your nethunter installation. You might not be installing the correct version for your os or the installation method could be wrong. Are you xdamama on discord?

Yeah xdamami. But how? My device officially supports Nethunter. Downloaded latest (20.1) from official website installed over cm13.

xpz3 commented 4 years ago

Connect user root on kex manager,startvnc let try

The issue has been resolved already via discord

oled19 commented 4 years ago

Something's wrong with your nethunter installation. You might not be installing the correct version for your os or the installation method could be wrong. Are you xdamama on discord?

Yeah xdamami. But how? My device officially supports Nethunter. Downloaded latest (20.1) from official website installed over cm13.

Connect user root on kex manager,startvnc let try... (tested nexus 5 nh 2020.2)

nikhilsharma41 commented 3 years ago

How can is resolve this? install script unable to find download candidate for "xterm".

Capture

cjb900 commented 3 years ago

@nikhilsharma41 Have you checked to make sure kali is up to date and that xterm is working? Because fluxion works on my end in the latest kali with all the updates.

linuxstories commented 2 years ago

😭😭😭not work fuck kali Linux fuck all now

K0K0SHA commented 2 years ago

sudo apt-get install xdpyinfo

not a valid package name

cjb900 commented 2 years ago

@K0K0SHA Because that's not how you install it in Kali or any Debian-based Linux distro. Info on how to install it can be found here: https://command-not-found.com/xdpyinfo

K0K0SHA commented 2 years ago

@K0K0SHA Because that's not how you install it in Kali or any Debian-based Linux distro. Info on how to install it can be found here: https://command-not-found.com/xdpyinfo

I have both xdpyinfo and x11-utils installed, but the issue was still appearing. I made it stop by deleting the following code section in fluxion.sh: if ! xdpyinfo &>/dev/null; then # Assure display info available. echo -e "\\033[31mAborted, xterm test session failed.\\033[0m"; exit 4 fi I have no idea what the point of that line of code is. What does xdpyinfo &> /dev/null do, and why does the script stop if it produces no output?

cjb900 commented 2 years ago

I'm not one of the developers of fluxion. I only try to help others here with it. So I can't say why that is in the code. I do know this is not an error I've personally gotten when running fluxion. My only guess is that you are using a none dedicated hacking distro like Ubuntu or some other Debian-based Linux distro and not using Kali Linux or Parrot OS which fluxion is more designed for.

xpz3 commented 2 years ago

@K0K0SHA Because that's not how you install it in Kali or any Debian-based Linux distro. Info on how to install it can be found here: https://command-not-found.com/xdpyinfo

I have both xdpyinfo and x11-utils installed, but the issue was still appearing. I made it stop by deleting the following code section in fluxion.sh: if ! xdpyinfo &>/dev/null; then # Assure display info available. echo -e "\\033[31mAborted, xterm test session failed.\\033[0m"; exit 4 fi I have no idea what the point of that line of code is. What does xdpyinfo &> /dev/null do, and why does the script stop if it produces no output?

It's there to check if xterm is available or not and that it works fine as well. If the check fails, most likely the fluxion windows would fail to open even though xterm is installed and works outside of fluxion..

K0K0SHA commented 2 years ago

Hello everyone, I resolved the issue in this thread for myself. Everything seemed to be installed, including x11, xdpyinfo, and xterm. I got output from xdpyinfo, but when I noticed that when I typed xterm in my terminal, nothing would happen. It didn't give me an XTerm. Instead, it complained that it could not find my hostname. I had happened to change it after I installed XTerm and Fluxion.

I changed hostname back using hostnamectl and fluxion is working fine. Be sure to check if your XTerm works.

xpz3 commented 2 years ago

Or you could simply open a terminal and type xhost + and close it. Then fluxion would work fine too

On Mon, Jul 18, 2022, 7:15 PM K0K0SHA @.***> wrote:

Hello everyone, I resolved the issue in this thread for myself. Everything seemed to be installed, including x11, xdpyinfo, and xterm. I got output from xdpyinfo, but when I noticed that when I typed xterm in my terminal, nothing would happen. It didn't give me an XTerm. Instead, it complained that it could not find my hostname. I had happened to change it after I installed XTerm and Fluxion.

I changed hostname back using hostnamectl and fluxion is working fine. Be sure to check if your XTerm works.

— Reply to this email directly, view it on GitHub https://github.com/FluxionNetwork/fluxion/issues/221#issuecomment-1186847245, or unsubscribe https://github.com/notifications/unsubscribe-auth/ALCEZ63EW4SYNYLSTTUHCF3VUUACDANCNFSM4EBCUJNA . You are receiving this because you commented.Message ID: @.***>

Saajaadeen commented 1 year ago

SOLUTION:

Ensure xdpy-info is installed: sudo apt-get install x11-utils Allow root to execute gui programs: sudo xhost +SI:localuser:

Now run: sudo fluxion.sh

Sources: https://command-not-found.com/xdpyinfo https://askubuntu.com/questions/509732/terminal-message-access-control-disabled