EXALAB / AnLinux-App

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

Unable to install Graphical interface in Android. #285

Open SinghLearnings opened 3 years ago

SinghLearnings commented 3 years ago

Please see it and tell me what the issue is...?

root@localhost:~# wget https://raw.githubusercontent.com/EXALAB/AnLinux-Resources/master/Scripts/DesktopEnvironment/Apt/Xfce4/de-apt-xfce4.sh && bash de-apt-xfce4.sh --2021-04-07 18:19:48-- https://raw.githubusercontent.com/EXALAB/AnLinux-Resources/master/Scripts/DesktopEnvironment/Apt/Xfce4/de-apt-xfce4.sh Resolving raw.githubusercontent.com (raw.githubusercontent.com)... 185.199.108.133, 185.199.111.133, 185.199.109.133, ... Connecting to raw.githubusercontent.com (raw.githubusercontent.com)|185.199.108.133|:443... connected. HTTP request sent, awaiting response... 200 OK Length: 1336 (1.3K) [text/plain] Saving to: ‘de-apt-xfce4.sh.10’ de-ap 0% 0 --.-KB/s de-apt-xfce 100% 1.30K --.-KB/s in 0s

2021-04-07 18:19:49 (10.2 MB/s) - ‘de-apt-xfce4.sh.10’ saved [1336/1336]

Get:1 http://mirror.fsmg.org.nz/kali kali-rolling InRelease [30.5 kB] Err:1 http://mirror.fsmg.org.nz/kali kali-rolling InRelease The following signatures were invalid: EXPKEYSIG ED444FF07D8D0BF6 Kali Linux Repository devel@kali.org Reading package lists... Done W: GPG error: http://mirror.fsmg.org.nz/kali kali-rolling InRelease: The following signatures were invalid: EXPKEYSIG ED444FF07D8D0BF6 Kali Linux Repository devel@kali.org E: The repository 'http://mirror.fsmg.org.nz/kali kali-rolling InRelease' is not signed. N: Updating from such a repository can't be done securely, and is therefore disabled by default. N: See apt-secure(8) manpage for repository creation and user configuration details. Reading package lists... Done Building dependency tree Reading state information... Done E: Unable to locate package xfce4 E: Unable to locate package xfce4-terminal E: Unable to locate package tightvncserver Reading package lists... Done Building dependency tree Reading state information... Done E: Unable to locate package xfe mkdir: cannot create directory ‘/root/.vnc’: File exists --2021-04-07 18:19:51-- https://raw.githubusercontent.com/EXALAB/AnLinux-Resources/master/Scripts/DesktopEnvironment/Apt/Xfce4/xstartup Resolving raw.githubusercontent.com (raw.githubusercontent.com)... 185.199.111.133, 185.199.110.133, 185.199.108.133, ... Connecting to raw.githubusercontent.com (raw.githubusercontent.com)|185.199.111.133|:443... connected. HTTP request sent, awaiting response... 200 OK Length: 47 [text/plain] Saving to: ‘/root/.vnc/xstartup.13’

xstartup.13 0% 0 --.-KB/s xstartup.13 100% 47 --.-KB/s in 0s

2021-04-07 18:19:52 (367 KB/s) - ‘/root/.vnc/xstartup.13’ saved [47/47]

--2021-04-07 18:19:52-- https://raw.githubusercontent.com/EXALAB/AnLinux-Resources/master/Scripts/DesktopEnvironment/Apt/Xfce4/vncserver-start Resolving raw.githubusercontent.com (raw.githubusercontent.com)... 185.199.108.133, 185.199.111.133, 185.199.109.133, ... Connecting to raw.githubusercontent.com (raw.githubusercontent.com)|185.199.108.133|:443... connected. HTTP request sent, awaiting response... 200 OK Length: 98 [text/plain] Saving to: ‘/usr/local/bin/vncserver-start.12’

  vncse   0%       0  --.-KB/s              vncserver-s 100%      98  --.-KB/s    in 0s     

2021-04-07 18:19:53 (846 KB/s) - ‘/usr/local/bin/vncserver-start.12’ saved [98/98]

--2021-04-07 18:19:53-- https://raw.githubusercontent.com/EXALAB/AnLinux-Resources/master/Scripts/DesktopEnvironment/Apt/Xfce4/vncserver-stop Resolving raw.githubusercontent.com (raw.githubusercontent.com)... 185.199.111.133, 185.199.110.133, 185.199.108.133, ... Connecting to raw.githubusercontent.com (raw.githubusercontent.com)|185.199.111.133|:443... connected. HTTP request sent, awaiting response... 200 OK Length: 100 [text/plain] Saving to: ‘/usr/local/bin/vncserver-stop.12’

  vncse   0%       0  --.-KB/s              vncserver-s 100%     100  --.-KB/s    in 0s     

2021-04-07 18:19:54 (374 KB/s) - ‘/usr/local/bin/vncserver-stop.12’ saved [100/100]

You can now start vncserver by running vncserver-start

It will ask you to enter a password when first time starting it.

The VNC Server will be started at 127.0.0.1:5901

You can connect to this address with a VNC Viewer you prefer

Connect to this address will open a window with Xfce4 Desktop Environment

Running vncserver-start

To Kill VNC Server just run vncserver-stop

/usr/local/bin/vncserver-start: line 4: vncserver: command not found root@localhost:~#

This shows....

iamtalhaasghar commented 3 years ago

The issue is that the signature of one of repository is INVALID due to unknown reason. To fix this issue I ran this command

wget -q -O - https://archive.kali.org/archive-key.asc | apt-key add

and then upgrade your system apt-get update && apt-get upgrade. After that try installing Desktop Enviornment again with apt-get install xfce4 To run vnc server use following command vncserver -xstartup xfce4-session That's it.

Aghits commented 3 years ago

The issue is that the signature of one of repository is INVALID due to unknown reason. To fix this issue I ran this command

wget -q -O - https://archive.kali.org/archive-key.asc | apt-key add

and then upgrade your system apt-get update && apt-get upgrade. After that try installing Desktop Enviornment again with apt-get install xfce4 To run vnc server use following command vncserver -xstartup xfce4-session That's it.

apt-key is deprecated, how do I fix this.

Edit: it works with this wget -qO - https://archive.kali.org/archive-key.asc | gpg --no-default-keyring --keyring gnupg-ring:/etc/apt/trusted.gpg.d/archive-key.gpg --import -

Edit2: maybe this works too wget -q -O - https://archive.kali.org/archive-key.asc | gpg --import

iamtalhaasghar commented 3 years ago

The issue is that the signature of one of repository is INVALID due to unknown reason. To fix this issue I ran this command wget -q -O - https://archive.kali.org/archive-key.asc | apt-key add and then upgrade your system apt-get update && apt-get upgrade. After that try installing Desktop Enviornment again with apt-get install xfce4 To run vnc server use following command vncserver -xstartup xfce4-session That's it.

apt-key is deprecated, how do I fix this.

Edit: it works with this wget -qO - https://archive.kali.org/archive-key.asc | gpg --no-default-keyring --keyring gnupg-ring:/etc/apt/trusted.gpg.d/archive-key.gpg --import -

Edit2: maybe this works too wget -q -O - https://archive.kali.org/archive-key.asc | gpg --import

Yes, apt-key is deprecated but it worked for me. And thank you for giving your insights to the problem.