Not scripting related however:
I am using x2go to access my linux (ubuntu) system remotely, using the kdeWM. If I use firefox though, the moment I right click anywhere on a web page (say to open a link in a new tab or window), firefox freezes.
Turns out it's an issue with the pulse audio daemon, and at least if you're using x2go like me, it's easy to fix once you know what the problem is.
When disconnected from your linux server, in the x2go client, go into the session preferences, click on the Media tab -> and uncheck "Enable sound support". Selecting esd might also fix it, but I haven't tried that.
Many thanks to the comment by oms-ubun at: https://bugs.launchpad.net/ubuntu/+source/firefox-3.0/+bug/528798 for directing me to the issue.
Showing posts with label ubuntu. Show all posts
Showing posts with label ubuntu. Show all posts
Monday, September 21, 2015
Saturday, April 27, 2013
dhclient and /etc/resolv.conf being overwritten.
In ubuntu 12.12 (the one I'm currently using), dhclient is used to get a dhcp lease. For most people this works just dandy. However if you use it for routing, and/or running your own dns server inside your network, or just want to have some dns servers used for whatever reason that the dhcp server doesn't issue you can do the following.
if you want just your custom dns server:
supersede domain-name-servers 8.8.8.8;
In fedora you have to go to /etc/sysconfig/network-scripts/, and find the file for your network device (something like ifcfg-ethX, where X is a number usually 0).
change the line PEERDNS=yes to =no.
If you go into the /etc/dhcp directory you will see a file called dhclient.conf
somewhere (anywhere really), in the file put the following line:
prepend domain-name-servers 8.8.8.8;if you want just your custom dns server:
supersede domain-name-servers 8.8.8.8;
This will put the 8.8.8.8 dns server at the top of the list of dns servers in the /etc/resolv.conf file, in addition the to usual ones that the dhcp server gave to your computer.
Of course for your network you will probably replace 8.8.8.8 with the ip address of another dns server (unless you really want to use one of google's dns servers).
In fedora you have to go to /etc/sysconfig/network-scripts/, and find the file for your network device (something like ifcfg-ethX, where X is a number usually 0).
change the line PEERDNS=yes to =no.
Subscribe to:
Posts (Atom)