Software :: Emacs Freezes Doing DNS Lookup / Fix A Network Configuration File?
Apr 28, 2011When emacs freezes doing a DNS lookup, that makes it rather hard to fix a network configuration file. Why does it need to do that?
View 8 RepliesWhen emacs freezes doing a DNS lookup, that makes it rather hard to fix a network configuration file. Why does it need to do that?
View 8 RepliesI was using the following code in my .emacs file to start emacs maximized:
Quote:
(defun toggle-fullscreen ()
(interactive)
(x-send-client-message nil 0 nil "_NET_WM_STATE" 32
'(2 "_NET_WM_STATE_MAXIMIZED_VERT" 0))
(x-send-client-message nil 0 nil "_NET_WM_STATE" 32
[Code]...
I can lookup DNS hostnames with dig and nslookup, but nothing else seems to be able to resolve anything. ping, telnet, Firefox, everything gets "unknown host".
For example:
> dig yahoo.com
; <<>> DiG 9.6.1-P2 <<>> yahoo.com
;; global options: +cmd
;; Got answer:
;; ->>HEADER<<- opcode: QUERY, status: NOERROR, id: 20438
;; flags: qr rd ra; QUERY: 1, ANSWER: 3, AUTHORITY: 13, ADDITIONAL: 0
;; QUESTION SECTION:
;yahoo.com.INA
;; ANSWER SECTION:
yahoo.com.17579INA209.131.36.159
yahoo.com.17579INA209.191.93.53
yahoo.com.17579INA69.147.114.224
;; AUTHORITY SECTION:
.10071INNSL.ROOT-SERVERS.NET.
.10071INNSI.ROOT-SERVERS.NET.
.10071INNSH.ROOT-SERVERS.NET.
.10071INNSF.ROOT-SERVERS.NET .....
> ping yahoo.com
ping: unknown host yahoo.com
> ping 209.131.36.159
PING 209.131.36.159 (209.131.36.159) 56(84) bytes of data.
64 bytes from 209.131.36.159: icmp_seq=1 ttl=55 time=97.2 ms
64 bytes from 209.131.36.159: icmp_seq=2 ttl=55 time=98.9 ms
I am trying to use a ZTE AC2726 USB EVDO Modem on openSuSE Linux 11.3 Gnome to connect to the internet. I have edited the /etc/wvdial.conf file as follows:
[Dialer Defaults]
Modem = /dev/ttyUSB0
Baud = 57600
Init1 = ATZ
Init2 = ATQ0 V1 E1 S0=0 &C1 &D2 +FCLASS=0
Init3 = .....
When I execute the wvdial command on the terminal the following error appears
joey-suse:~ # wvdial
--> WvDial: Internet dialer version 1.60
--> Cannot get information for serial port.
--> Initializing modem.
--> Sending: ATZ
ATZ
OK .....
The /etc/resolv.conf file has the DNS addresses as below
nameserver 212.49.70.22
nameserver 212.49.70.23
How do I resolve this and connect to the internet?
I've started having problems with large file downloads. A download will start and after a while freeze. The downloads window reports the correct connection speed and gives an estimated time to complete, but it stays frozen. Small downloads, torrents and surfing are not affected. I can do everything else normally even when the download is frozen. I've checked with my ISP and everything with my equipment checks out.
View 9 Replies View RelatedI have a file consisting of unique IP addresses - one per line I want to find the name of the host for each address. I tried the following:
Quote:
nslookup < file_name
This worked except it gives me a lot of extraneous information such as the servers providing the answers. This is too much information for me and would simply like each line of IP numbers to be replaced with a domain name. I tried using the same strategy using host and hostname and dig but I must have given the wrong command as I had no results.
I am using xubuntu and there are a few types of files on website that instead of downloading and saving and then opening with emacs, I would rather when the radio button choice comes up say open with emacs. I am using xubuntu with xfce, and there is no line for a command to be entered as some ubuntu editions have. In the choice of changing the opening program from mousepad to something else, it says search and allows to navigate to find a program, but I cant find emacs anywhere not in etc/ or elsewhere. So where is its executable to direct the program chooser to?
View 1 Replies View RelatedI'm trying to use emacs in the auctex mode. But Flymake complains about something I could not understand. This is the error it shows whenever I open a tex file.
Code:
Flymake:Configuration error has occured while running (texify --pdf --tex-option=-c-style-errors PATH_TO_FILE_DIRECTORY/FILE_flymake.tex).
Flymake will be switched OFF.
I have texify installed on my system. I also tried suggestions in the emacs wiki on FlymakeTex, added the following lines in my .emacs file:
Code:
(defun flymake-get-tex-args (file-name)
(list "pdflatex" (list "-file-line-error" "-draftmode"
"-interaction=nonstopmode" file-name)))
How do I stop this msg and use flymake.
This past Friday as I was performing regular maintenance on my RHEL / CentOS servers, I ran yum upgrades on them and when they rebooted, I realized there were network issues and I could not longer access them via Ping or SSH. When I jumped on the console, I realized that it created a new 'ifcfg-eth0' file with none of my static information & the old 'ifcfg-eth0' file with all my static info had been renamed to 'ifcfg-eth0.bak'. It appears that the MAC address on the new file and the old .bak file are different and I have no idea why. I have no changed or altered anything on the server.
View 5 Replies View RelatedFor Ubuntu 10.04, I can configure the network by "Network Connections". This configuration is done by doing the following operation sequences(System->Preferences->Network Connections->wired->auto eth0). Then I can connet to and browse the internet. If I type the command "ifconfig", I can see the ip I configured for eth0. Part of the content is as blow:
Quote:
ifconfig
eth0
inet addr:192.168.28.31 Bcast:192.168.28.255 Mask:255.255.255.0
But in the "interfaces" file, there is no eth0 content. The whole content is simply as below:
Quote:
cat /etc/network/interfaces
auto lo
iface lo inet loopback
I think there should be other files that keep the eth0 configuration content.
For Ubuntu 10.04, I can configure the network by "Network Connections". This configuration is done by doing the following operation sequences(System->Preferences->Network Connections->wired->auto eth0). Then I can connect to and browse the internet. If I type the command "ifconfig", I can see the ip I configured for eth0. Part of the content is as blow:
[Code]...
I think there should be other files that keep the eth0 configuration content. What are they?
It's been a while since I meant to resolve this emacs-related issue when installing basically any package.
Since I really need network-manager-openvpn, I decided to finally try and ask.
This is a known bug I believe, with no fix if I understand well. My question is: is there a way to go around it (instead of fixing it)
Here it goes : when installing a package (in this case, network-manager-openvpn), emacs gets in the way like this:
Code:
And the package is not installed.
I have already tried uninstalling emacs. Doesn't work...
I'm new to the emacs thingy. i just moved back to ubuntu.i have found out how to have emacs load the .el file from the .emacs file but i cant seem to use the addon.http://blogs.unity3d.com/2010/01/15/...ty-javascript/that is the addon i am trying to use.this is my .emacs file:
(add-to-list 'load-path "~/.emacs.d")
;; UnityJS mode for emacs
(autoload 'unityjs-mode "unityjs-mode" "Major mode for editing Unity Javascript code." t)
[code]....
When clicking on a file in a webpage such as a .tex file the default viewer is mousepad. I search for Emacs to open it, but browsing gets me no where. How do I find it or set it so that I can open directly files in it without explicitly saving them
View 2 Replies View Relatedi have just installed the fedora 13 and emacs, after intalling the emacs when i try to load it i get the next message [root@localhost Eli]# emacs emacs: Cannot open termcap database file
View 3 Replies View RelatedI split vertically Emacs window to 2 frames. In the left frame I edit the code, in the right frame I navigate through files and directories in Dired mode.It is possible to tell Emacs that anytime I choose the file and press Enter in the right frame, the file will be opened in the left frame?I am almost sure that there is a solution for this but I cannot figure out how to do it, and I was not successful for a moment to google for a correct solution
View 1 Replies View Relatedi recently started sockets programming. In the process i began to look for relevant network information about my computer and realized that ifconfig wasn't displaying the same information that resides in my /etc/network/interfaces file. On the interfaces file my IP address is 192.168.1.109 for interface eth0 but ifconfig displays 192.168.1.101. I was under the impression that ifconfig got its information from the interfaces file but clearly doesn't. I tried re configuring the device with ifconfig and then disabling and re enabling the device with ifdown and ifup so that the device updated its information but it didn't.
[Code]....
How can I tell emacs that a file type that it doesn't recognise should have the same syntax highlighting as one it does?
Xfig produces .pstex files which I want to be highlighted like .ps/.eps
I'm using andLinux and for whatever reason, emacs seems to think that the file I'm editing has been changed every time I try to edit/save and keeps reprompting me. Very annoying. Is there a way to make emacs stop checking the file on the disk?
View 1 Replies View RelatedI've noticed that emacs does not notice when an open file is changed on disk (unlike ,say, geany). Is there any way of making it watch for changes of files on disk?
View 1 Replies View Relatedwhen I click "Firewall" a box comes up "firewall configuration startup" when I try to click 'close" nothing happens, I have to force quit the application, unable to make any changes to the firewall
I feel my fedora 12 expierence is going downhill fast, nothing is just working as it should
We have several systems (DELL-Server PowerEdgde) installed with Debian Jessie 8.4 (physical server and VM) and if the server has big Disk I/O (copy, backup with Backup Exec) the VMs freeze.
Console output:
[168960.072192] INFO: task jbd2/xvda2-8:139 blocked for more than 120 seconds.
[168960.072209] Not tainted 3.16.0-4-amd64 #1
[168960.072213] "echo 0 > /proc/sys/kernel/hung_task_timeout_secs" disables this message.
[168960.072220] jbd2/xvda2-8 D ffff8803e72946e8 0 139 2 0x00000000
[code]....
The system installed: Linux version 3.16.0-4-amd64 (debian-kernel@lists.debian.org) (gcc version 4.8.4 (Debian 4.8.4-1) ) #1 SMP Debian 3.16.7-ckt25-1 (2016-03-06)
I installed Jessie with ext4 and ext3, same error!
I have a Dell Latitude E6410 which I can boot from an Iomega external hard drive when I want to run Linux on it. It is a work issued Windows XP laptop and when I travel, I am more comfortable with Linux, so I created a dual boot option without touching their hardware. The external hard drive plugs in to the USB ports and the BIOS picks it up as the primary boot media, although the internal drive is still present. (That is the desired outcome).The problem is that the system periodically locks up solid and only a forced power off will get it to respond. The system seems to go into a kernel panic and fails to write anything before dying. The system completely locks up and stops responding to mouse and keyboard. It also seems to drop off the network. When I look at the logs after restarting, nothing at all shows up related to a kernel panic or anything else. To further complicate the diagnosis, on the reboots, sometimes the boot process locks up at "Starting GDM3", sometimes it doesn't, and wont for several attempts but eventually will boot to gnome. Some times it runs fine for a few hours, sometimes for only a few minutes. Can anyone recommend a way to diagnose this?I am trying to run Debian 6.0 32-bit with the defaults.
View 8 Replies View Relatedim reinstalling 11.4 on my laptop and I can't seem to get past the automatic configuration. It installed perfect earlier, and I'm not sure its freezing this time.
View 9 Replies View RelatedThis started happening after I started working on the kernel image and initramfs tools configurations basically started trying to make my system work the way I wanted.I can be doing anything like playing worms or being on this forum and the screen turns black but I don't lose energy just nothing shows on the screen and my keyboard doesn't respond the num lock doesn't turn either state,
View 5 Replies View RelatedAfter a successful install of the MFC-J4420DW printer and scanner using Brother's install utility, I am experience severe battery drain and xsane freezes (total system lockup, requiring using CONFIG_MAGIC_SYSRQ keyboard command REISUB or hard reset).
The Brother support page and utility/drivers are found here: URl....My laptop is the HP Elitebook 8540W and I am running Debian 8 using LVM, separate partitions for /home, /var, /temp, /swap, and /. I have looked at logs in /var/log. kern.log, daemon.log, messages and dmesg, but have not found any relevant info ...
I purged all drivers/packages and tried a manual install using each deb package, but ran into some permission errors, so I purged again. I also purged xsane and reinstalled it, then did a complete printer reinstall using the brother Driver Install Tool.The tool works great, full functionality for the MFC-J4420DW. But I know I can't live with the power drain, and I would really prefer to use Gimp and the xsane plugin rather than simple scan ..
So it's a beautiful day and I'll be happily using my computer when I realise that the screen is no longer showing that I'm typing or moving my mouse (or finger across a touch-pad). I can leave my computer in this frozen/crashed state for hours. My only recourse is to drain the battery or hold down the power button until the computer shuts down. The computer is a Dell Inspiron 6400 laptop/notebook. As my memory serves, it has an ATI graphics thingy. Radeon 1400, maybe. But I've had the computer for years and this behaviour has emerged only the past couple of months, with seemingly increasing frequency.
The OS is
# uname -a
Linux polaris 2.6.32-trunk-amd64 #1 SMP Sun Jan 10 22:40:40 UTC 2010 x86_64 GNU/Linux
(aka Squeeze?)
Sometimes this happens within minutes of turning the computer on and logging into Gnome. Sometimes this happens only hours after I've started using the computer (mainly just surfing the web). Sometimes it is preceded by a loud boop sound and the following if I have console open, sometimes not. So maybe that's unrelated. But that happened just now so I thought I'd throw it in.
One weird thing: Usually this happens within an hour of starting to use the computer, but one occasion I noticed I had not had the problem for several hours. On that occasion, the only thing I noticed I was doing that was also unusual: I had turned on and forgotten about a kvm virtual machine. After I shut down the vm, I had about only a minute before the freeze. I'm surprised now that it hasn't frozen since I started typing thing. Maybe I should always keep this forum open in a browser window.
I am running testing (with fluxbox) and my keyboard periodically freezes, meaning whatever I type in it doesn't respond. This lasts a few seconds (can be 2-3 or sometimes even more like 10) and one's it comes back I get all the keystrokes I was typing during the freeze. The frequency of the freezes can be like 4-5 times every hour and are very annoying. I can't seem to relate them to anything, they can occur during heavy usage but also when the box is doing absolutely nothing but waiting lazily for me to type some google search terms.
Can anybody help me track this problem down? At the moment I am using a wireless keyboard but this must be unrelated since I tested a couple of other keyboards (both wireless and wired) and the problem persists.
Has anyone successfully installed the x64 on VBox? Is there a different way to install the x64, because I don't think VBox can process this version. The few problems I have are:
1) it freezes during Auto Configuration.
2) freezes during boot initialization.
3) after reboot it keeps prompting me to complete a failed install, and doesn't matter if I accept to complete or not, I have the same problem.
4) freezes randomly executing system programs.
I run an old Toshiba Satellite M35x S114 Laptop with Debian Testing, it always runned smoothly - although it IS testing . Since the latest update to kernel 2.6.32 , the X server just freezes. The init goes all the way to gdm, and then a blank screen , no mouse pointer, no way to get out of this screen (not CTRL+ALT+BACSPACE not CTRL+ALT+F1 / F2 ... etc) just a hard reset.
I can boot to the older .30 kernel with absolutely no problem, gdm starts normally login successfull (as I am able to write this on the reffered machine and all).
Here comes the gory details:
>>> The graphic card:
lspci | grep gra
00:02.0 VGA compatible controller: Intel Corporation 82852/855GM Integrated Graphics Device (rev 02)
00:02.1 Display controller: Intel Corporation 82852/855GM Integrated Graphics Device (rev 02)
>>> When it works with .30 kernel:
cat /var/log/Xorg.0.log
code....
Noting that there are no more Modlines in the new Xorg.0.log
Besides, X is disabling the mouse and keyboard in the configuration.