MrPez
August 15th, 2012, 09:47 PM
Hi guys, first I'll point out that I am a complete newbie...
I've got a revo r3700 with 12.04 that I run xbmc on and I'm trying to fix the IP address on it so that I don't have to keep reconfiguring the remote.
I found some instructions and tried to follow them:
sudo vi /etc/network/interfacesI then added this to the file:
iface eth0 inet static
address 192.168.2.102
netmask 255.255.255.0
gateway 192.168.2.1Somehow I then managed to close the file without saving and when I went in to check it made a swap file, whatever that is.
I then did it again and typed :wq to save it which seemed to work. Problem is when I try to go into the file I get a warning that a swap file with the name /etc/network/interfaces.swp has been detected.
The proper file is there and is right, but I can't seem to delete the swap. I've tried
rm -f ./etc/network/interfaces.swpas well as
rm ./etc/network/interfaces.swpand have tried both without the . in front of the filename. I don't get any warnings saying it hasn't worked, but I can still browse and see that the swap file hasn't been deleted. There are also 4 other files named interfaces with various extensions that I guess I have inadvertently created...
Please can someone tell me how to delete these extra files that I've created? With it the way it is when I switch it on I don't have any network connection at all!
I've got a revo r3700 with 12.04 that I run xbmc on and I'm trying to fix the IP address on it so that I don't have to keep reconfiguring the remote.
I found some instructions and tried to follow them:
sudo vi /etc/network/interfacesI then added this to the file:
iface eth0 inet static
address 192.168.2.102
netmask 255.255.255.0
gateway 192.168.2.1Somehow I then managed to close the file without saving and when I went in to check it made a swap file, whatever that is.
I then did it again and typed :wq to save it which seemed to work. Problem is when I try to go into the file I get a warning that a swap file with the name /etc/network/interfaces.swp has been detected.
The proper file is there and is right, but I can't seem to delete the swap. I've tried
rm -f ./etc/network/interfaces.swpas well as
rm ./etc/network/interfaces.swpand have tried both without the . in front of the filename. I don't get any warnings saying it hasn't worked, but I can still browse and see that the swap file hasn't been deleted. There are also 4 other files named interfaces with various extensions that I guess I have inadvertently created...
Please can someone tell me how to delete these extra files that I've created? With it the way it is when I switch it on I don't have any network connection at all!