VirtualConfusion

Nothing serious!

Use pssh to manage several servers

There is a good way to manage several linux servers using pssh. This Tecmint tutorial is explaining the different steps.

To send commands requiring root password you need to use this command line (adapt it to your needs):

( echo "PASSWORD" ; echo "COMMAND" ) | pssh -t 1 -h ~/host_list -P -I "sudo -S su -"

for example to update, upgrade and autoremove packages on ubuntu:

( echo "PASSWORD" ; echo "apt update;apt upgrade --yes;apt autoremove --yes" ) | pssh -h hosts.txt -P -I "sudo -S su -"

CIFSĀ mount after wifi connection

After the installation of KDE Neon on my Macbook pro, I set up mount points to access my NAS.

Mounting them manually works correctly with this command:

sudo mount -a

But it was not mounting automatically because the wifi connection was not ready and I had this error message in the kernel log:

03.12.17 08:29    CIFS VFS    cifs_mount failed w/return code = -101

The solution is to use the systemd automount feature. In your /etc/fstab put this line:

//files.example.com/software /media/software cifs x-systemd.automount,x-systemd.idle-timeout=1min,rw,uid=myuser,gid=users,credentials=path_to_credentials,iocharset=utf8,file_mode=0644,dir_mode=0755 0 0

Adjust the mounting points and credential file to your needs.

I like it ;-)

OpenVPN on Kubuntu 17.10

I am using VPN service and I want to use it on Kubuntu. The process is really simple if your VPN provider gives .ovpn files.

  • Create a new connection by selecting "Import VPN connection..."
  • Select your .ovpn file
  • Provide your VPN credentials
  • Save everything.

When you click the "connect" button it should work.

If you get this error in /var/log/syslog

"The VPN service 'org.freedesktop.NetworkManager.openvpn' was not installed."

Then try to install "network-manager-openvpn" package.

Surf Safe!

Kubuntu 17.10 on Mac

I am using my MacBook Pro Retina 13" early 2015 with High Sierra on a daily basis. I realized that I am using it like a normal Linux computer.

  • Ruby on Rails development with RVM, Atom, Mariadb)
  • Linux distributions with Virtualbox
  • Video encoding with HandBrake
  • Standard work with LibreOffice
  • Internet & Social media
  • Emails

Nothing special or related to MacOSX. I installed Kubuntu 17.10, and the result is very good. I have a fully functionning machine with all the tools I need with the fun of using open source based softwares.

I can benefit from the Retina display resolution with a huge desktop to watch Netflix, code something and debug in the browser.

Sounds like Led Zep, good Music!

Firefox Quantum is out and it is very good!

Mozilla just published the new version of the firefox browser: Firefox Quantum

  • New engine
  • New design
  • Less memory
  • Better performance

I always have issue using Chrome (mainly because I do not like to have google everywhere!)

Now Firefox is again a serious competitor! Great job!

OpenVPN config client on Ubuntu 17.10

I set up a VPN connection on a server running Ubuntu 17.10.

I followed the installation described here: https://hide.me/en/vpnsetup/ubuntu/openvpn-command-line/

Installation was straightforward but I was not able to connect VPN because of name resolution failure.

I had to edit the file /etc/systemd/resolved.conf this way:

[Resolve]
DNS=YOUR_DNS_IP_HERE
#FallbackDNS=
#Domains=
#LLMNR=yes
#MulticastDNS=yes
#DNSSEC=no

After Restart VPN connection is now working correctly.

Logitech Media Server supports perl 5.26

I have a logitech squeezebox at home and I use it to play music I have stored on a NAS.

I use the logitech media server for this, it is installed on a VM with Ubuntu 17.04, and it wa working fine. I decided to update Ubuntu to 17.10 and the solution stopped working.

Logitech media server was not supporting perl 5.26 (default version of Ubuntu 17.10)

Now this is solved, since Oct. 25 2017 the logitech media server supports perl 5.26 see here: https://github.com/Logitech/slimserver/commits/public/7.9

Thanks a lot to maintainers!

Stranger Things 2