AnLinux-App: vncserver: command not found
Whenever I try to start the vnc server I get this error
/usr/local/bin/vncserver-start: line 4: vncserver: command not found
I have installed Ubuntu and xfce4 DE.
About this issue
- Original URL
- State: open
- Created 5 years ago
- Reactions: 12
- Comments: 52 (4 by maintainers)
Hi,
This error usually occur when vncserver does not installed successfully.
Please run the command in Desktop Environment feature and post the screenshots if any error occur.
Regards, EXA Lab
On Thu, Jan 31, 2019, 5:07 AM Dennis <notifications@github.com wrote:
Hello, I paste here the transcript of the process:
`$ ./start-ubuntu.sh groups: cannot find name for group ID 3003 groups: cannot find name for group ID 9997 groups: cannot find name for group ID 20226 groups: cannot find name for group ID 50226 root@localhost:~# wget https://raw.githubusercontent.com/EXALAB/AnLinux-Resources/master/Scripts/DesktopEnvironment/Apt/Xfce4/de-apt-xfce4.sh && bash de-apt-xfce4.sh –2019-02-02 12:42:12-- https://raw.githubusercontent.com/EXALAB/AnLinux-Resources/master/Scripts/DesktopEnvironment/Apt/Xfce4/de-apt-xfce4.sh Resolving raw.githubusercontent.com (raw.githubusercontent.com)… 151.101.132.133 Connecting to raw.githubusercontent.com (raw.githubusercontent.com)|151.101.132.133|:443… connected. HTTP request sent, awaiting response… 200 OK Length: 1299 (1.3K) [text/plain] Saving to: ‘de-apt-xfce4.sh.1’
de-apt-xfce4.sh.1 100%[======================>] 1.27K --.-KB/s in 0s
2019-02-02 12:42:13 (27.0 MB/s) - ‘de-apt-xfce4.sh.1’ saved [1299/1299]
Hit:1 http://ports.ubuntu.com/ubuntu-ports bionic InRelease Reading package lists… Done E: dpkg was interrupted, you must manually run ‘dpkg --configure -a’ to correct the problem. –2019-02-02 12:42:19-- https://raw.githubusercontent.com/EXALAB/AnLinux-Resources/master/Scripts/DesktopEnvironment/Apt/Xfce4/xstartup Resolving raw.githubusercontent.com (raw.githubusercontent.com)… 151.101.132.133 Connecting to raw.githubusercontent.com (raw.githubusercontent.com)|151.101.132.133|:443… connected. HTTP request sent, awaiting response… 200 OK Length: 110 [text/plain] Saving to: ‘/root/.vnc/xstartup’
xstartup 100%[======================>] 110 --.-KB/s in 0s
2019-02-02 12:42:20 (1.77 MB/s) - ‘/root/.vnc/xstartup’ saved [110/110]
–2019-02-02 12:42:20-- https://raw.githubusercontent.com/EXALAB/AnLinux-Resources/master/Scripts/DesktopEnvironment/Apt/Xfce4/vncserver-start Resolving raw.githubusercontent.com (raw.githubusercontent.com)… 151.101.132.133 Connecting to raw.githubusercontent.com (raw.githubusercontent.com)|151.101.132.133|:443… connected. HTTP request sent, awaiting response… 200 OK Length: 98 [text/plain] Saving to: ‘/usr/local/bin/vncserver-start’
vncserver-start 100%[======================>] 98 --.-KB/s in 0s
2019-02-02 12:42:20 (1.33 MB/s) - ‘/usr/local/bin/vncserver-start’ saved [98/98]
–2019-02-02 12:42:20-- https://raw.githubusercontent.com/EXALAB/AnLinux-Resources/master/Scripts/DesktopEnvironment/Apt/Xfce4/vncserver-stop Resolving raw.githubusercontent.com (raw.githubusercontent.com)… 151.101.132.133 Connecting to raw.githubusercontent.com (raw.githubusercontent.com)|151.101.132.133|:443… connected. HTTP request sent, awaiting response… 200 OK Length: 100 [text/plain] Saving to: ‘/usr/local/bin/vncserver-stop’
vncserver-stop 100%[======================>] 100 --.-KB/s in 0s
2019-02-02 12:42:21 (1.59 MB/s) - ‘/usr/local/bin/vncserver-stop’ 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:~#`
Hope you can help me, thank you. My device is Huawei MediaPad M5 lite (BAH2-W19), Android 8.0.
pkg install x11-repo then pkg install tigervnc
└─[~]────►./start-parrot.sh ┌─[root@localhost]─[~] └──╼ #wget https://raw.githubusercontent.com/EXALAB/AnLinux-Resources/master/Scripts/DesktopEnvironment/Apt/Xfce4/de-apt-xfce4.sh && bash de-apt-xfce4.sh –2019-09-14 11:54:13-- https://raw.githubusercontent.com/EXALAB/AnLinux-Resources/master/Scripts/DesktopEnvironment/Apt/Xfce4/de-apt-xfce4.sh Resolving raw.githubusercontent.com (raw.githubusercontent.com)… 151.101.0.133, 151.101.64.133, 151.101.128.133, … Connecting to raw.githubusercontent.com (raw.githubusercontent.com)|151.101.0.133|:443… connected. HTTP request sent, awaiting response… 200 OK Length: 1336 (1.3K) [text/plain] Saving to: ‘de-apt-xfce4.sh.8’
de-apt-xfce4.sh 100%[=====>] 1.30K --.-KB/s in 0s
2019-09-14 11:54:14 (5.22 MB/s) - ‘de-apt-xfce4.sh.8’ saved [1336/1336]
Hit:1 http://ba.mirror.garr.it/mirrors/parrot rolling InRelease Reading package lists… Done Reading package lists… Done Building dependency tree… 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… Done E: Unable to locate package xfe mkdir: cannot create directory ‘/root/.vnc’: File exists –2019-09-14 11:54:18-- https://raw.githubusercontent.com/EXALAB/AnLinux-Resources/master/Scripts/DesktopEnvironment/Apt/Xfce4/xstartup Resolving raw.githubusercontent.com (raw.githubusercontent.com)… 151.101.0.133, 151.101.64.133, 151.101.128.133, … Connecting to raw.githubusercontent.com (raw.githubusercontent.com)|151.101.0.133|:443… connected. HTTP request sent, awaiting response… 200 OK Length: 47 [text/plain] Saving to: ‘/root/.vnc/xstartup.9’
xstartup.9 100%[=====>] 47 --.-KB/s in 0s
2019-09-14 11:54:19 (5.18 MB/s) - ‘/root/.vnc/xstartup.9’ saved [47/47]
–2019-09-14 11:54:19-- https://raw.githubusercontent.com/EXALAB/AnLinux-Resources/master/Scripts/DesktopEnvironment/Apt/Xfce4/vncserver-start Resolving raw.githubusercontent.com (raw.githubusercontent.com)… 151.101.0.133, 151.101.64.133, 151.101.128.133, … Connecting to raw.githubusercontent.com (raw.githubusercontent.com)|151.101.0.133|:443… connected. HTTP request sent, awaiting response… 200 OK Length: 98 [text/plain] Saving to: ‘/usr/local/bin/vncserver-start.9’
vncserver-start 100%[=====>] 98 --.-KB/s in 0s
2019-09-14 11:54:19 (15.3 MB/s) - ‘/usr/local/bin/vncserver-start.9’ saved [98/98]
–2019-09-14 11:54:19-- https://raw.githubusercontent.com/EXALAB/AnLinux-Resources/master/Scripts/DesktopEnvironment/Apt/Xfce4/vncserver-stop Resolving raw.githubusercontent.com (raw.githubusercontent.com)… 151.101.0.133, 151.101.64.133, 151.101.128.133, … Connecting to raw.githubusercontent.com (raw.githubusercontent.com)|151.101.0.133|:443… connected. HTTP request sent, awaiting response… 200 OK Length: 100 [text/plain] Saving to: ‘/usr/local/bin/vncserver-stop.9’
vncserver-stop. 100%[=====>] 100 --.-KB/s in 0s
2019-09-14 11:54:20 (23.5 MB/s) - ‘/usr/local/bin/vncserver-stop.9’ 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
Still getting
E: Unable to locate package tigervnc-standalone-server…Solved on kali by first running the suggested code an then on termux
pkg install x11-repothenpkg install tigervncThen starting kali again and runningdpkg --configure -aapt-get install tigervnc-standalone-server tigervnc-viewerAnd to fix the black screen I followed this video https://youtu.be/_8YZst2x9GEI have to manually install mate de in script de-apt-mate.sh is core i want full version of mate
apt install mate-desktop-environmentIs there any fix? I’m getting the exact same bug, but with Kali Linux.
Hello! I successfuly executed the vncserver-start by downloading manually the files that were missing:
Then I tried to run the .sh file and it worked
./de-apt-xfce4.shI think that if you now run
vncserver-startit could work too.I hope it helps! 😄
PS: when I try to connect to the given ip:port I get the following error:
the port on which the computer is listening for a connection could not be contactedDoes anyone know how to continue? 😞./start-parrot.sh ┌─[root@localhost]─[~] └──╼ #wget https://raw.githubusercontent.com/EXALAB/AnLinux-Resources/master/Scripts/DesktopEnvironment/Apt/Xfce4/de-apt-xfce4.sh && bash de-apt-xfce4.sh –2019-12-15 15:44:43-- https://raw.githubusercontent.com/EXALAB/AnLinux-Resources/master/Scripts/DesktopEnvironment/Apt/Xfce4/de-apt-xfce4.sh Resolving raw.githubusercontent.com (raw.githubusercontent.com)… 151.101.0.133, 151.101.64.133, 151.101.128.133, … Connecting to raw.githubusercontent.com (raw.githubusercontent.com)|151.101.0.133|:443… connected. HTTP request sent, awaiting response… 200 OK Length: 1336 (1.3K) [text/plain] Saving to: ‘de-apt-xfce4.sh.3’
2019-12-15 15:44:44 (462 KB/s) - ‘de-apt-xfce4.sh.3’ saved [1336/1336]
Hit:1 http://ba.mirror.garr.it/mirrors/parrot rolling InRelease Reading package lists… Done Reading package lists… Done Building dependency tree… 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… Done E: Unable to locate package xfe mkdir: cannot create directory ‘/root/.vnc’: File exists –2019-12-15 15:44:51-- https://raw.githubusercontent.com/EXALAB/AnLinux-Resources/master/Scripts/DesktopEnvironment/Apt/Xfce4/xstartup Resolving raw.githubusercontent.com (raw.githubusercontent.com)… 151.101.0.133, 151.101.64.133, 151.101.128.133, … Connecting to raw.githubusercontent.com (raw.githubusercontent.com)|151.101.0.133|:443… connected. HTTP request sent, awaiting response… 200 OK Length: 47 [text/plain] Saving to: ‘/root/.vnc/xstartup.4’
xstartup.4 0% 0 --.-KB/s xstartup.4 100% 47 --.-KB/s in 0s
2019-12-15 15:44:52 (271 KB/s) - ‘/root/.vnc/xstartup.4’ saved [47/47]
–2019-12-15 15:44:52-- https://raw.githubusercontent.com/EXALAB/AnLinux-Resources/master/Scripts/DesktopEnvironment/Apt/Xfce4/vncserver-start Resolving raw.githubusercontent.com (raw.githubusercontent.com)… 151.101.0.133, 151.101.64.133, 151.101.128.133, … Connecting to raw.githubusercontent.com (raw.githubusercontent.com)|151.101.0.133|:443… connected. HTTP request sent, awaiting response… 200 OK Length: 98 [text/plain] Saving to: ‘/usr/local/bin/vncserver-start.4’
2019-12-15 15:44:53 (1.23 MB/s) - ‘/usr/local/bin/vncserver-start.4’ saved [98/98]
–2019-12-15 15:44:53-- https://raw.githubusercontent.com/EXALAB/AnLinux-Resources/master/Scripts/DesktopEnvironment/Apt/Xfce4/vncserver-stop Resolving raw.githubusercontent.com (raw.githubusercontent.com)… 151.101.0.133, 151.101.64.133, 151.101.128.133, … Connecting to raw.githubusercontent.com (raw.githubusercontent.com)|151.101.0.133|:443… connected. HTTP request sent, awaiting response… 200 OK Length: 100 [text/plain] Saving to: ‘/usr/local/bin/vncserver-stop.4’
vncserver-s 0% 0 --.-KB/s vncserver-s 100% 100 --.-KB/s in 0s
2019-12-15 15:44:54 (599 KB/s) - ‘/usr/local/bin/vncserver-stop.4’ 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]─[~] └──╼ #vncserver-start
Please help me Vncserver is not starting
Yahhh… Ananyapam7 i have just found the solution…
The tigervnc-server-module is a module for Xorg.
To install the vncserver, you need to install tigervnc-standalone-server
Is there a fix yet. I can use
and a vncserver starts whichh can be accessed with vnc viewer.
But the installer tries to run
which results in command not found.
root@localhost:~# vncserver-start
New Xtigervnc server ‘remote-desktop’ on port 5901 for display :1. Use xtigervncviewer -SecurityTypes VncAuth -passwd /root/.vnc/passwd :1 to connect to the VNC server.
xrdb: No such file or directory xrdb: can’t open file ‘/root/.Xresources’
Session startup via ‘/root/.vnc/xstartup’ cleanly exited too early (< 3 seconds)!
Maybe try something simple first, e.g., tigervncserver -xstartup /usr/bin/xterm The X session cleanly exited! Killing Xtigervnc process ID 10811… success! root@localhost:~#
I am getting this problem someone help me please
Same problem here, is there any fix yet?
THIS IS NOT A BUG!
This issue have been leaved for a long time for user to discuss, recently there are some funny review on Play Store, so I guess I would write the solution here.
If you are getting vncserver-start command not found error:
apt-get purge ca-certificatesand then runapt install ca-certificatesmight fix the issue, the reason this occur is currently unknown as I do not encounter this issue after testing on all device I had, however next update(In this month) will fixed this by giving all wget command inside the distro --no-check-certificate flag, the reason this isn’t fixed until now is that this issue is very rarely occur and didn’t verify certificate lower the security.vncserver-start related message will be shown to people who reporting bugs for the first time in the app at next update. This issue will stay open for discussion.
`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-05-24 13:04:30-- 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.110.133, 185.199.111.133, 185.199.109.133, … Connecting to raw.githubusercontent.com (raw.githubusercontent.com)|185.199.110.133|:443… connected. HTTP request sent, awaiting response… 200 OK Length: 1336 (1.3K) [text/plain] Saving to: ‘de-apt-xfce4.sh.1’
de-apt-xfce4.sh 100%[=======>] 1.30K --.-KB/s in 0.002s
2021-05-24 13:04:31 (819 KB/s) - ‘de-apt-xfce4.sh.1’ 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-05-24 13:04:41-- https://raw.githubusercontent.com/EXALAB/AnLinux-Resources/master/Scripts/DesktopEnvironment/Apt/Xfce4/xstartup Resolving raw.githubusercontent.com (raw.githubusercontent.com)… 185.199.108.133, 185.199.110.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: 47 [text/plain] Saving to: ‘/root/.vnc/xstartup.2’
xstartup.2 100%[=======>] 47 --.-KB/s in 0.001s
2021-05-24 13:04:46 (43.3 KB/s) - ‘/root/.vnc/xstartup.2’ saved [47/47]
–2021-05-24 13:04:46-- https://raw.githubusercontent.com/EXALAB/AnLinux-Resources/master/Scripts/DesktopEnvironment/Apt/Xfce4/vncserver-start Resolving raw.githubusercontent.com (raw.githubusercontent.com)… 185.199.109.133, 185.199.108.133, 185.199.110.133, … Connecting to raw.githubusercontent.com (raw.githubusercontent.com)|185.199.109.133|:443… connected. HTTP request sent, awaiting response… 200 OK Length: 98 [text/plain] Saving to: ‘/usr/local/bin/vncserver-start.2’
vncserver-start 100%[=======>] 98 --.-KB/s in 0.001s
2021-05-24 13:04:55 (71.9 KB/s) - ‘/usr/local/bin/vncserver-start.2’ saved [98/98]
–2021-05-24 13:04:55-- https://raw.githubusercontent.com/EXALAB/AnLinux-Resources/master/Scripts/DesktopEnvironment/Apt/Xfce4/vncserver-stop Resolving raw.githubusercontent.com (raw.githubusercontent.com)… 185.199.108.133, 185.199.109.133, 185.199.110.133, … Connecting to raw.githubusercontent.com (raw.githubusercontent.com)|185.199.108.133|:443… connected. HTTP request sent, awaiting response… 200 OK Length: 100 [text/plain] Saving to: ‘/usr/local/bin/vncserver-stop.2’
vncserver-stop. 100%[=======>] 100 --.-KB/s in 0.002s
2021-05-24 13:04:57 (52.1 KB/s) - ‘/usr/local/bin/vncserver-stop.2’ 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:~#`
Help Me 😟😟😟
assuming ur trying to install it on termux , it only works if you use the link on anlinux , install that distro then use for ubuntu wget https://raw.githubusercontent.com/EXALAB/AnLinux-Resources/master/Scripts/DesktopEnvironment/Apt/Xfce4/de-apt-xfce4.sh && bash de-apt-xfce4.sh
kali
wget https://raw.githubusercontent.com/EXALAB/AnLinux-Resources/master/Scripts/DesktopEnvironment/Apt/Xfce4/de-apt-xfce4.sh && bash de-apt-xfce4.sh
parrot
wget https://raw.githubusercontent.com/EXALAB/AnLinux-Resources/master/Scripts/DesktopEnvironment/Apt/Xfce4/de-apt-xfce4.sh && bash de-apt-xfce4.sh
fedora
yum install wget -y && wget https://raw.githubusercontent.com/EXALAB/AnLinux-Resources/master/Scripts/DesktopEnvironment/Yum/Fedora/Xfce4/de-yum-xfce4.sh && bash de-yum-xfce4.sh
I’ll look upon this issue otherwise