VMware Player-15 install vmware tools - ubuntu-18.04

Installed a new vmware player 15.5.1 on win10 pro, using guest linux/unbuntu 18.04 server
Trying to get to install the vmware tools (not sure what options I may have selected when I installed the work station). But the install vmware tools menu is disabled. When I run my VM get the re-install menu that too is disabled.
Tried manual install of vmware tools - but that also did not do the trick:
apt-get install open-vm-tools
apt-get install open-vm-tools-desktapop
systemctl status open-vm-tools
sudo shutdown -r now
ps | grep vmtoolsd
How do I fix this. (just start over with fresh install and all that or try use some other player (!?))

I did not get any response here and could not figure it out - tried many options. (same problem with VirtualBox)
But the good news, at least from cut-n-paste perspective- use alternate client. You can use ssh to login into the machine using your favorite tool - putty or even cmd will work. This actually is a better solution - no need to muck with mouse capture and all that.
So just setup a ssh server
sudo apt update
sudo apt install openssh-server
sudo systemctl status ssh
Active: active (running)
Open firewall
sudo ufw allow ssh
Check IP address
ip a
SSH in with PUtty or Cmd or ..
ssh username#ip_address
You are Done - will work like a charm
Note: This ssh works only from local host as the VM only has Pvt IP. If you can create public IP on VM (that is another arduous adventure - still working on it) - you will be able to remote ssh

Related

Unable to remote to VM instance with Oracle Linux 8.6 and XRDP using Remote Desktop Connection

I created a VM instance on Oracle Cloud, using Oracle Linux 8.6. I added TCP 3389 port in VCN on OCI before installing GUI.
I want to install GUI and allow RDP connection to VM instance, so I installed GNome GUI and XRDP with the following commands (# is I use root user):
# dnf groupinstall "Server with GUI" -y
# systemctl set-default graphical
# reboot
Then uncomment the following line in the /etc/gdm/custom.conf file to ensure that VNC uses X.org instead of Wayland:
WaylandEnable=False
After that, I installed TigerVNC Server and XRDP:
# yum install https://dl.fedoraproject.org/pub/epel/epel-release-latest-8.noarch.rpm -y
# yum install tigervnc-server xrdp -y
# systemctl start xrdp
# systemctl enable xrdp
# firewall-cmd --permanent --add-port=3389/tcp
# firewall-cmd --reload
Then, I proceeded to set the VNC password, configure VNC service and set up the VNC service as instructed on Oracle's document page.
Finally, I proceeded to connect to VM Instance via Remote Desktop Connection, but I received An authentication error has occurred. The function requested is not supportted:
After that, I revised the port field in the /etc/xrdp/xrdp.ini file into port=tcp://:3389 and then restarted the XRDP service via service xrdp restart command, then check the status of XRDP service through systemctl status xrdp command:
But when I tried to reconnect, the above error still happened. I conducted a check of XRDP service, and it appeared the following errors:
After that, I tried to change the ssl_protocols field in /etc/xrdp/xrdp.ini from ssl_protocols=TLSv1.2, TLSv1.3 to ssl_protocols=TLSv1, TLSv1.1 and then restart the XRDP service. Nothing changes, the same error still happens and the situation of XRDP service is the same!
Something is not right here, maybe I did something missing or was wrongly configured?

How to fix '(38)Function not implemented: AH00141: Could not initialize random number generator' after upgrading Apache from 2.4.18 to 2.4.46?

I have a running system with Ubuntu 16.04, Apache 2.4.18, PHP 7.3 and 7.4, PHP-FPM, PHP FastCGI, MPM event.
I wanted to upgrade to the latest Apache version (2.4.46-2+ubuntu16.04.1+deb.sury.org+3 amd64 [upgradable from: 2.4.18-2ubuntu3.17]) as follows:
add-apt-repository -y ppa:ondrej/apache2
apt update
apt-get --only-upgrade install apache2
service apache2 restart
Job for apache2.service failed because the control process exited with error code. See "systemctl status apache2.service" and "journalctl -xe" for details.
journalctl -xe
apachectl[9010]: [:crit] [pid 9013] (38)Function not implemented: AH00141: Could not initialize random number generator
I checked and /dev/random and /dev/urandom are installed.
Kernel: 4.4.0-042stab141.2 and libc6: 2.23-0ubuntu11.2
Happened to me after upgrading apache to version 2.4.46 on Ubuntu as well. I found out it was the kernel version.
I knew I did apt-get upgrade and the kernel should be latest version, Also running
sudo update-grub
Showed me newer versions, but running uname -r showed very old kernel.
After a long investigation that took almost all day and trying everything I found online about upgrading Ubuntu kernel - I found out it was Digitalocean, not me. Old droplets use external managed kernel - so no matter what you do on your environment, it will always take the external kernel. The solution was here:
https://www.digitalocean.com/docs/droplets/how-to/kernel/grubloader/#switch
If you do see the drop down & change button in your droplet settings in Digital ocean control panel, then your kernel is externally managed. In that drop down type “grub” and choose GrubLoader v0.2, press “change” button & that’s it!
Now you’ll need to shut down & turn back on your server, but before you do so I suggest to run the following commands:
sudo apt-get update
sudo apt-get upgrade
The above upgrade will update the whole system. To update just kernel run the above update command followed by:
sudo apt-get upgrade linux-image-generic
Now shut down (sudo poweroff or power off from DigitalOcean interface, though doing it from CLI is preferred). Note that reboot is not sufficient in this particular case and a complete shut down is needed (Thanks #gauss256 for your comment). Then power it back on from digital ocean interface, And upon startup you should see a new kernel version.
Tip - you might want to delete old Kernel files after the reboot, this can be done by:
sudo apt-get purge $( dpkg --list | grep -P -o "linux-image-\d\S+" | grep -v $(uname -r | grep -P -o ".+\d") )

Cannot connect to SQL Server Instance anymore after enabling UFW on Ubuntu 16.04 with webmin already installed

I enabled UFW on a ubuntu server setup by someone else following the documentation on digitalocean. This server already had virtualmin/webmin installed.
Enabling the UFW had no effect on traffic with only OpenSSH allowed, and defaults set to incoming (deny), outgoing (allow). I was still able to visit the website even when Apache as not added to the UFW rule.
I had to reboot the server to see if the UFW will kick in, but the status of the firewall was "inactive" and now I cannot connect to the SQL Server Instance via the application or SSMS even after disabling the firewall.
The application has been down for hours, the world is on my neck and am almost at the end of my rope.
Going on guesswork here after multiple comments.
Sounds like you have updated the version of mssql-server but haven't updated the msodbcsql17 package. The latest CU needs the latest version of msodbcsql17 (unsure why, but not having it installed causes the connection failures).
Firstly update your packages:
sudo apt update
Then install the latest version of msodbcsql17:
sudo apt install msodbcsql17
This should install version 17.4.2.1-1.
If this, for some reason fails. You could roll back the update to mssql-server:
sudo apt install mssql-server=14.0.3223.3-15

How to enable rdp service on manjaro?

I need login to manjaro from windows.
I found that on ubuntu or else xrdp is used, but not found on manjaro. sudo pacman -S xrdp wont work.
xrdp is in aur: https://aur.archlinux.org/packages/xrdp/
You could run for example yay -S xrdp
you can install remmina from snap store, no need to aur
sudo snap install remmina
Remmina supports multiple network protocols in an integrated and consistent user interface. and currently RDP, VNC, SPICE, NX, XDMCP, SSH and WWW are supported.
here is the link to snap store : snapstore/remmina

How to access remotely PgAdmin4?

I Try access pgAdmin4 via browser instaled in another Notebook with Linux Ubuntu 16.04 in the same network in my house, but not access.
In localhost... Ok
But REMOTELY... DOES NOT ACCESS
You need to add the following config options:
DEFAULT_SERVER = '0.0.0.0'
in config_local.py (in "pgAdmin4" folder).
If you also want to change the default port then also add
DEFAULT_SERVER_PORT = 5050
First change the line in config.py from DEFAULT_SERVER = '127.0.0.1' to DEFAULT_SERVER = '0.0.0.0'
Config.py is located in the same directory as pgAdmin4:
sudo find / -name "*pgAdmin4"
Start pgAdmin4 in the same directory (use tmux or as service to keep in background):
sudo python3 pgAdmin4.py
If you don't know the login, you can delete/move this file and restart pgAdmin.py:
sudo find / -name "*pgadmin4.db"
This should work on both Ubuntu Server and Desktop. You should preferably keep the 127.0.0.1 and use nginx or Apache in front.
Weird enough, in my case I have to manually run the command
$ pgadmin4
and then the dashboard will be presented in the default browser automatically.
It seems you are trying to open pgadmin client at server.
I suggest you to install pgadmin client from where you want to connect this , add server in pgadmin and do connect.
Tested on ubuntu 20.04
apt install pgadmin4-apache2
nano /usr/share/pgadmin4/web/config.py
Change 127.0.0.1 by 0.0.0.0
Don't forget to copy the key in the shell when you launch pgadmin4 in the remote web browser by replacing 127.0.0.1 by pgadmin4 host IP
E.G. : Something like this in your remote web-browser
http://192.168.1.56:43223/?key=5f45c8ee-4593-41d0-9ae1-06d6dd1d8280
PS : If you don't find config.py
apt install mlocate
updatedb
locate pgadmin4 | grep config.py$
All commands are in root don't forget sudo if you are not root
On macOS, I figured out that pgAdmin 4 web interface uses the port 61886.
Try to access it using http://localhost:61886/browser.
If not, run the command netstat -atp tcp | grep -i "listen" and check what ports are listening.

Resources