How to , and other stuff about linux, photo, php … A linux, photography blog. To remember some linux situation, and fix them quickly.

August 5, 2015

Make apt-get use IPv4 instead of IPv6

Filed under: Linux — Tags: , , , — admin @ 2:15 pm

I have try today to run some apt-get update and it take some time to figure the ipv6 ip . So I wanted to not use ipv6.
The fix is to un comment the line 54 from this file
/etc/gai.conf
precedence ::ffff:0:0/96 100

after this all run smooth.

November 28, 2013

ubuntu virtualbox networking not working

Filed under: Linux — Tags: , , — admin @ 10:20 am

Hello
Today I wanted to test something on a ubuntu server . So I start a virtualbox with it. However when it started there was no network. But only a error with 60 seconds to wait.
After long wait, the ubuntu server have started, but no network available . I have to mention that I use bridged adapter on virtual server.

The solution is to empty one file.
I did make a backup first with
cp /etc/udev/rules.d/70-persistent-net.rules /root

After this I have empty the file
echo ""> /etc/udev/rules.d/70-persistent-net.rules

And rebooted the server.
After this all was ok.

Powered by WordPress