Help needed in realvnc


the package iproute2 is part the Packages-Root on a Manjaro system - which means that the package and the files it provide is available on every official Manjaro ISO.

Have you double checked your spelling?


the command

sudo pacman -Syu iproute2

trys to install the package ,and my iso is xfce minimal 18.00


How many packages was it you removed from the default installation?


i don’t know and i don’t want to depend on a package to get the ip.
can’t i grep from the

ip addr | grep inet


Well - you have to have some way to get the system to return the current dhcp address for you to display.

And sure - it might be possible - but you have to research a lot now.

You need to find a way to have the system to return your current ip address configuration without the use of the ip utility.

How will you accomplish that?


with “ip addr | grep inet”

it gives all ip and ipv6


But you just told me it is not available?

You expand your grep with

ip addr | grep "inet "

which will eliminate ipv6

[shaber@shaber-pc ~]$ sudo pacman -Syu iproute2
[sudo] password for shaber: 
:: Synchronizing package databases...
 core is up to date         0.0   B  0.00B/s 00:00 [----------------------]   0%
 extra is up to date        0.0   B  0.00B/s 00:00 [----------------------]   0%
 community is up to date    0.0   B  0.00B/s 00:00 [----------------------]   0%
 multilib is up to date     0.0   B  0.00B/s 00:00 [----------------------]   0%
warning: iproute2-4.19.0-1 is up to date -- reinstalling
:: Starting full system upgrade...
resolving dependencies...
looking for conflicting packages...

Packages (1) iproute2-4.19.0-1

Total Download Size:   0.80 MiB
Total Installed Size:  2.54 MiB
Net Upgrade Size:      0.00 MiB

:: Proceed with installation? [Y/n] 


Yes - it tells you it is up to date – reinstalling - so available.


Since it is not the newbie area, read the manual of the ip command. There are options to get only the information you need. There is no need for grep. You just need to read the manual.


i got an error

Normal Starting Steup
Default Give A VNC Server Password
Would you like to enter a view-only password (y/n)? y
Password must be at least 6 characters - try again
Default Here Is Your IP address for the client app
./tigervnc: line 10: unexpected EOF while looking for matching `"'
./tigervnc: line 12: syntax error: unexpected end of file


If you have the bind-tools package installed you can do

echo "Your vnc server can be found on $(host $(hostname))"

Or the ip - which you are looking for - you can find using

~ >>> ip route
default via dev eno1 proto dhcp metric 100 dev eno1 proto kernel scope link src metric 100

then grep the line

~ >>> ip route | grep src dev eno1 proto kernel scope link src metric 100

then you cut the field

 ~ >>> ip route | grep src | cut -d ' ' -f 9

Just remember - this is not a one size fits all - you could have NICs with multiple addresses and this is not covered by the above.


For your bug squashing - the error message is telling you exactly where to look.


i found the problem and fixed here is a final script

#! /bin/bash

# script to setup TigerVNC

echo -e "Normal \e[7mStarting Steup"
echo -e "Default \e[32mGive A VNC Server Password"
echo -e "Default \e[32mHere Is Your IP address for the client app"
ip route | grep src | cut -d ' ' -f 9
ip addr | grep inet 
echo -e "Normal \e[35mVNC Setup Finished \e[25m."
echo -e "Normal \e[37mVNC Started . Press ctrl+C to close the VNC "
x0vncserver -display :0 -PasswordFile /home/shaber/.vnc/passwd

so now write a wiki post about the tigerVNC setup in majaro ,i can i do that ?


If you do not have an account you will have to apply for one.

You could start with


how to apply for one?


I don’t know who is responsible for the wiki accounts - please try a forum search - it must have been asked before.


I’d suggest that you write the wiki article on the forum first so it can be checked over and any tweaks made more easily before you request a wiki account.

Who will give support for hi-dpi
Who will give support for hi-dpi
How to Setup TigerVNC Server and Client

In this post, you can learn how to setup TigerVNC's server side and how to connect to it using another Linux system,Windows,Android or IOS.

Setup Server side
Here the whole Setup is done with Bash script.It will work on any of the Manjaro edition. 

1. First install the TigerVNC using package manager.
2. Copy the text and make a new file and past all text in that .
 ##### need to add the script here####
3. Name the file
4. Make the file executable .
5. Open the terminal on folder and type "chmod +x" .
6. Now type ./ in terminal , the setup will start.
7. Give a password . this password for login password from the client.
8. It will ask again for a "show only password" type "n". It's not needed.
9. Then it will give you the IP to enter in the client app .So use it to login .
10. Now setup of server side is finished.
11. To exit the server push "ctrl + C".it will stop the server.

Setup Client side
1. Install the TigerVNC on PC that you are sitting in front of to access the other remotely.You can use other application on other OS.Like for IOS ,RealVNC.
2. In the dialog box that appears, type the IP address you get from step 9,in setup Server side.
3. You should be prompted for a password. Type the password from the step 7 you gave.
4. Then you should have remote access or VNC is Connected.

Some Precaution and Options
1. Once you have verified that the above works, you can start the server at the beginning of each user session on the server. How to do that depends on what DE you are using.
2. If you not finding the IP addres ,type this command in terminal "ip addr | grep inet" . It will give you some IPs. inet is IPv4 address, inet6 is IPv6. Ignore the inet6.Use the "inet " .
3. Be aware, that if you want to use VNC over the internet and not just your LAN, you need to foward the ports in your Router.Using a HotSpot is better Choice as connection is not encryption.
4. I think the easiest would be to tunnel your VNC connection into a VPN.

Thanks @fhdk ,@jeancf , @Strit , @jonathon for helping me to made this tutorial .

my part is done.


Any chance i would able to see this in wiki?:thinking: