DanieBlog - This article will guide you handle the error error: server hostname was not specified with /v:<server>[:port] in PAC Manager. If you are a Linux system administrator, you’re probably no stranger to the PAC Manager software. This is a software that helps you manage the server connection quite well.
Error: server hostname was not specified with /v:<server>[:port]
While working on Linux, there are times when you will have to work with some windows servers. It’s easy to remote from a Windows client to a Windows server. But when you use a PAC, you may encounter the following error when setting up a connection with the RDP is xfreerdp.
WARNING: Using deprecated command-line interface! -a 24 -> /bpp:24 -T - DANIE -> /title: - DANIE -g 1364x715 -> /size:1364x715 or /w:1364 /h:715 -u danie -> /u:danie -x 80 -> /network broadband -z -> /compression --ignore-certificate -> /cert-ignore (null) -> /v:(null) error: server hostname was not specified with /v:<server>[:port]
I was very upset with this error because I did not know how to solve it. Another solution is to use rdesktop instead of xfreerdp when setting up an RDP connection on the PAC Manager.
But the downside is that rdesktop only display 16bit color screen so the screen will be very bad. I do not like it.
Resolve error in PAC Manager
After a lot of time searching and reading what I’m facing. I found a way to solve that problem.
You will need to edit the PAC Manager code, but it’s pretty simple. You run the following command to open 938 of the file
sudo nano +938 /opt/pac/lib/pac_conn
You will see two lines as shown in the image below, the line is highlighted in the picture.
You need to edit the content of the two lines from:
$connection_cmd = "$METHOD $CONNECT_OPTS" . ( $MANUAL ? '' : " -u $USER" ) . " $IP:$PORT -T \"$TITLE\""; $connection_txt = "$METHOD $CONNECT_OPTS" . ( $MANUAL ? '' : " -u $USER" ) . " $IP:$PORT -T \"$TITLE\"";
$connection_cmd = "$METHOD $CONNECT_OPTS" . ( $MANUAL ? '' : " -u $USER" ) . " -T \"$TITLE\" $IP:$PORT"; $connection_txt = "$METHOD $CONNECT_OPTS" . ( $MANUAL ? '' : " -u $USER" ) . " -T \"$TITLE\" $IP:$PORT";
You then save the changes to the file.
Then you can try the RDP connection with xfreerdp to see if it succeeds, with the above method I have done successfully.
If you are also facing the error can not make RDP connection on the PAC Manager as in the article that I stated. Hope through the steps you can solve that error and you can work comfortably.If you liked this article, then please subscribe to our YouTube Channel for more video tutorials. You can also find us on Twitter and Facebook.
If you appreciate what we share in this blog, you can support us by:
- Stay connected to: Facebook | Twitter | Google Plus | YouTube
- Subscribe email to recieve new posts from us: Sign up now.
- Start your own blog with SSD VPS - Free Let's Encrypt SSL ($2.5/month).
- Become a Supporter - Make a contribution via PayPal.
- Support us by purchasing Ribbon Lite Child theme being using on this website.
We are thankful for your support.