Showing posts with label settings. Show all posts
Showing posts with label settings. Show all posts

31 Aug 2008

Ubuntu Network manager, static interface setup, multiple profiles, no internet, no dns

Recently I decided to experiment with the multiple profiles feature of the network manager provide by Ubuntu 8.04. I set up my lan network card with a static ip address so that I could manager port forwarding on my router specifically for my laptop.

I still wanted to be able to switch to the roaming mode provided by the network manager if I went to university or some where else. So I decide to save the set up in the network manager as a separate profile. I then saved other profile for the roaming modes on my wireless lan, and my cable lan interfaces.

After a restart I found that I could no longer get out on the internet after start up. I was not sure what the problem was. I could ping my router but nothing beyond my router. In checking my network manager set up I could see that where I used to have my router as a dns, I now had nothing.

So I add some dns servers saved the settings under my static profile and applied these setting buy clicking the green tick. Now every thing was working again. I could connect to the internet web pages would now load in firefox.

Again after a restart I found I had the same problem so I check my network manger and found that the settings were still there but were not applied. So I again choose the correct profile and applied the settings. This behaviour of being not being set up after a restart continued. It gets a little irritating having to go into network manager and apply setting after ever restart.

After reading around in fourums I found about about resov.conf resolvconf /etc/resolv.conf, /etc/resolvconf/interface-order and /etc/resolvconf/resolv.conf.d/. I could see that in interface-order and ifconfig my cabled lan card was begin configured correctly at start. In the resolv.conf file no dns servers were configured at start up, having no dns server to resolve requests out to the internet I could not browse the web or send emails or any thing you would need to do.

To solve the problem of not being set up at start up open the /etc/resolveconf/resolv.conf.d/base as root in a text editor and add a dns server like your router or some other dns server. Read the man resolvconf to find out why. Redundancy here is a good thing, have it point to more then one dns server.

Simply place entries like "nameserver 127.0.0.1" or "nameserver #your router#". Obviously 127.0.0.1 is localhost and probably wont work for the average set up. If your not sure what dns servers to use, ping a top level domain like www.com or www.co.za and get their ip address. Do a traceroute and look for domain names with .dns in them. You can see and example of how network manager saves one of these file in /etc/resolvconf/resolv.conf.d/original.

7 Jun 2007

nvidia restricted binary drivers and settings

I have found a really nice tool for setting up the xorg.conf and daul view. From the command line in Ubuntu type gksudo nvidia-settings. Up pops nvidias GUI tool for setting up your nvidia card and xorg.config.

Only it has problems, or at least I had problems. they relate to where some of the advanced nvidia settings are stored in a file called .nvidia-settings-rc. From your home directory type ls -a .nvidia-settings-rc. This file is basically used to initialize your graphics card at boot and is linked into the boot process through the init folder in /etc/rcX.d.

The problem I had with this file was that the permissions on it doesn't allow the program to rw access it and execute it. I may be wrong here. What I did to fix the problem was change the permissions from
user@user-machine:~$ ls -l .nvidia-settings-rc
-rw-r--r-- 1 user user 1511 2007-06-06 18:33 .nvidia-settings-rc
to
user@user-machine:~$ ls -l .nvidia-settings-rc
-rwxr-xr-x 1 aaron aaron 1511 2007-06-06 18:33 .nvidia-settings-rc
with a chmod 755 .nvidia-settings-rc. now it probably dose not need the execute permissions some thing to experiment with but make sure it has the rw.
basically try:
$ chmod u=rw,g=rw,o=rw .nvidia-settings-rc
$ gksudo nvidia-settings.

I still get a lot of ERROR .... (no Display connection) messages on the command line but at least now it actually generates the xorg.conf file in the /etc/X11/ directory.

I'm not sure what the error messages mean or how to fix it. It has some thing to do with the advanced options of gamma, colour saturation. This can be fixed but I didn't find it necessary to. There is some discussion at the nvidia forums. Check out this thread http://www.nvnews.net/vbulletin/showthread.php?t=61396 it seams to have the most though discussion on fixing it.

Please post you comment on this if you have any solutions for the ERROR ... (no Display connection) problem.