Showing posts with label Ubuntu. Show all posts
Showing posts with label Ubuntu. Show all posts

Wednesday, January 11, 2017

Switching DNS in Ubuntu Linux

One approach to switch among different development environments (QA, Integration, Stage, etc) is to have different DNS configs for routing one domain.

In Ubuntu you can setup different network connections with different DNS servers and be able to switch from network top menu,

1. Simply add a new network connection (may need two, one for Ethernet and one for WiFi)


2. Configure DNS settings


3. Switch to new connection from top menu


4. Test with nslookup command

Friday, May 30, 2014

VirtualBox: Copy/Paste (Guest additions) not working on my Ubuntu VM


I have a Ubuntu VM where I do all my development. Since I installed VirtualBox and created my VM, I never was able to make copy/paste or have better graphics. It all comes with the installation of Guest Additions in the guest machine, but for some reason the installation wasn't working.

I lived with that for some time until I got time to do some more research. First I tried to run the command to enable to copy/paste:

VBoxClient --clipboard -d

But got an error indicating that Guest Additions was not correctly installed or setup (quite not remember well).

So then I run the setup command:

sudo /etc/init.d/vboxadd setup

And got an error:

Removing existing VirtualBox non-DKMS kernel modules ...done.
Building the VirtualBox Guest Additions kernel modules
The gcc utility was not found. If the following module compilation fails then
this could be the reason and you should try installing it.

The headers for the current running kernel were not found. If the following
module compilation fails then this could be the reason.

Building the main Guest Additions module ...fail!
(Look at /var/log/vboxadd-install.log to find out what went wrong)
Doing non-kernel setup of the Guest Additions ...done.

Stupid GCC utility was not installed! :D. Installed it:

sudo apt-get install gcc

Run again the setup and it got installed correctly. Restarted the VM and got finally my copy/paste between host and guest machines. Also my graphics acceleration. 

Wednesday, November 6, 2013

ATG Colorizer: libstdc++.so.6: cannot open shared object file: No such file or directory

I was in the middle of my ATG local dev environment setup and started to see an error with small application ATG Colorizer:

libstdc++.so.6: cannot open shared object file: No such file or directory




I tried installing the library as I have done in the past, but somehow my new Ubuntu stopped liking the old install recipe. After checking the web for a while I found a way she liked: 
apt-get install lib32stdc++6