I need a script but i am not good at programming soWhat script have to do:- Every 1 minute is checking if ip address is available (ping)- if ip answers nothing happens- if ip does not answers: * file /etc/hosts is changed by one stored in /home/user/hosts* notification by xterm to restart some programIf finally ip answers file /etc/hosts is changed by one stored in /home/user2/hosts
Well, as many proxy applications, GNOME Network Proxy Preferences only allow to ignore hosts. What I want to do is exactly the opposite. I only want to use the proxy for few sites. Is it possible to define only the allowed hosts in any way?
PS: I know FoxyProxy add-on for Firefox does this, but 1)I don't use Firefox and 2)I want the proxy settings system wide not only for browser.
I was having a discussion with someone who asked me whether a Linux OS has to be rebooted when the hosts file is modified. From personal experience, on Windows I change the file but don't reboot and I've seen others do the same thing. I assume Linux has no exception(s), but is there any reason why a reboot is not required (to at least justify my actions)?
when I set images as desktop backgrounds, Firefox or Nautilus saves them in my home folder. Does anyone know how to change this to ~/pictures/backgrounds?
I'm trying to use ssh-keyscan to get some known_host file population going on, but I have a ton of hosts I want to scan, all with multiple aliases in /etc/hosts. Is there a way to use my current /etc/hosts file to do an ssh-keyscan instead of making a special list of hosts that (from what I've read) ssh-keyscan needs?
Probably an easy (which means stoopid) question...I am trying to reroute a website using my hosts file so that it matches my servers certificate file for testing without effect dns and the live site.When I went to edit my /etc/hosts file it is non-existent. I have, I am assuming in it's place, hosts.allow and hosts.deny. Can anyone explain why I do not have a hosts file?
I am running Linux from a DVD, not installed. I am not good with installing software, but since the DVD cannot be corrupted, I am content to operate this way. Lately, I have been having problems that previously did not occur. When I try to click on the checkbox to get rid of emails, it doesn't register in most cases, or when it does, I am clicking multiple times so it registers twice, meaning it is unchecked again. Even more frustrating is some issues that are affecting my ability to update my business. I am trying to modify spreadsheets (text not calculations).
Whenever I try to click & drag to select something to change, it keeps jumping around to select only some of what I want, something else or some combination of the 2. When I try to copy and paste several fields from 1 column to another, everything from the several fields in the source column ends up together in the last field in the target column. I am also trying to download some images from a website. There is a single column of links to the images. I have to click on the link to get to the image in order to copy it, then back out to continue looking for more links to do the same.
My computer keeps jumping back 2 steps, then forward 2 steps, and sometimes I lose my place in that list. I could deal with it if it were a small number of links, but this is a list of probably close to 20,000 links. Again, i am operating off of a live DVD so this should not be corruptible, but this has just started happening, and has been an issue the last several sessions.
using the update maneger to update on ubuntu new linux images available 2.6.31-17 generic and after the download is complete both images exist in the grub menu should i remove them ? or just remove them from the boot menu ? and if so how could i do each.
I know that ImageMagick's convert program can be used as follows to convert a collection of images -- say, in PNG format -- to a PDF file:
convert *png output.pdf
The problem with this is that each image is then stretched to fit on one page, whereas I would like to keep the original dimensions of the images and put as many as possible on one page in the PDF file before moving on to another page.
Not sure what iis going on, I can ping some hosts on the internet but not others see below (adobe is not the only example) Works OK from another host on the same network with same GW and DNS iptables is turned off
[root@havoc init.d]# ping www.arrl.org PING www.arrl.org (184.106.62.248) 56(84) bytes of data. 64 bytes from www.arrl.org (184.106.62.248): icmp_req=1 ttl=55 time=94.1 ms 64 bytes from www.arrl.org (184.106.62.248): icmp_req=2 ttl=55 time=93.0 ms 64 bytes from www.arrl.org (184.106.62.248): icmp_req=3 ttl=55 time=99.4 ms 64 bytes from www.arrl.org (184.106.62.248): icmp_req=4 ttl=55 time=96.8 ms
I have a problem reaching some hosts on the Internet, namely newegg.com and djangoproject.com. On the same machine and network connection using Windows 7 the host names resolve properly and I can connect to them. The host names are resolving in Ubuntu, but I cannot connect to them.
I'm using NAT on an AP with linux. Is it possible to route an OUTGOING host not over NAT?
I'm using SNAT but could also use MAQUERADING I think. Because both are in POSTROUTING table and this table is the last one I don't think there is a solution or is there any solution?
Background: I'm using a local VoIp client which I want to have an own ip for routing question in my network but don't want all other local machines as seperate ip's because if done so i.e. without NAT the routing table is very complicated ...
How can I find all the devices(printers,etc...) and computers along with their OS if any installed that are connected in my intranet (devices/computers may be down here)?
I did this earlier using netstat or nmap not sure what I used and how I did.
I have to build a netwrok for small lab and office setup.Setup as belowI have a PC running with Centos 5.4 and has 4 NIC cards. eth0, eth1, eth2 and eth3
I have a small office network with windows machines and a Linux Internet access server (CentOS 5.4). For Internet access I use masquerade, so everione can access every Internet service. I periodicali have quite big traffic from one of the hosts, but I can't figure out which one is that?
Is there any linux command which will show me the bytes/packets (or any useful infos) going to specific hosts?
I bought a network printer, gave it a host name, address should be assigned by my cable or DSL router. Thats what DHCP and DNS is made for right?Now I will print to that printer from my (Lucid) Kubuntu box and resolve it by it's hostname.I can't ping it by printername, I can't ping it by printername.local.It works when I login my router, read out the IP address and hostname the printer registered at the routers DHCP-table and use that address.What can be done that a router transfers the hostnames it has in it's IP-table to clients upon DHCP resolve AND whenever a client get's a new IP-Address?
What happen if we assign a static IP address to both linux and windows host?Consider host A is a ubuntu machine and host B is a windows machine. I first set a static IP for host A (W.X.Y.Z) and connect to it through ssh. Then I duplicate that IP for host B (W.X.Y.Z).The result was that I could no longer connect to the ubuntu machine!
I have read the man files on hosts (deny/allow) and think I understand how they are supposed to work but reality has proven me wrong.
My simple test case was to add "ALL: ALL " to the end of hosts.deny which I though should make the Internet not work. I can still look up hosts fine so apparently I don't understand these files or Ubuntu is ignoring them.
This is my hosts.deny file
Code:
Code:
and hosts
Code:
hosts.deny is the only file I have edited (so far)
The wireless connected hosts do not respond to pings from wired ones or other wireless ones. And all the wired connected hosts respond to pings from any wireless one. The same problem applies also to ssh connections exactly as in the ping issue.
The switch the ADSL modem/router and the Access point are all 3 different machines correctly connected to each other. I do not have a firewall in any of my hosts, all run Slackware 13.1, the wireless ones use "wext" driver and not "ndiswrapper". All wireless hosts login successfully, WPA & DHCP works fine and internet connection goes without a problem. But the fact I can only connect from a wireless host to a wired one is puzzling.
I just changed my CentOS server from DHCP to static IP address. After the change, I cannot ping other hosts on the same subnet. (I can ping the CentOS itself).The IP address of CentOS is 192.168.0.202.After pinging 192.168.0.106 (106 is on and other host can ping it), arp -a shows? (192.168.0.106) at <incomplete> on eth0 It looks ARP cannot resolve MAC address of hosts 192.168.0.106.
I Own a netcafe and I want to limit the netspeed for some of the users on the network because some of them maybe use torrent or other ways to eat the bandwidth and the net became so slow for other users.
My task is a way to limit the net speed for some users on the network, I tried a mikrotik RouterOS but it look like a miss to install I wanted an easier way than this, I use linux or windows or any OS to make this task done please help me to do it !!
I have set up a home network using a modem/router, which my devices connect to via ethernet and wireless. I have got it working but i'm still not happy (stick with me...)!
I have settings configured so as to utilise DHCP, so IP addresses for the different machines are automatically assigned by the modem/router (as i understand it). I then obtained these auto-assigned IPs by running ifconfig on each device. I tested connections between the devices by pinging each other using these IPs (ie ping 192.168.2.2).
BUT I want to be able to use hostnames (ie ping dandelion) instead, and the only way I can make this work is to add hosts and corresponding IPs into the /etc/hosts file.
I have made it work in this way, but doesn't this method defeat the idea of DHCP, as I will now presumably have to manually maintain the /etc/hosts files on each device.
I am just spent half an hour hunting for a thing that should be totally available already:USB install images of Ubuntu, knoppix and all the others.And, the only good way are so far complicated tutorials where you extract the stuff from an CD image. Why??Hasn't everybody notices that CDs/DVDs are vanishing big time? That more and more systems don't have the readers anymore? Instead of following a 10 point instruction list, it would be nice to just be able to download a Ubuntu 8.10 or whatever USB image and be able to beam that DIRECTLY to a USB stick with a dd command.
Or am a missing something here? Does this exist?It should by no means be mariginal, considering how important USB stick in specific and flash memory in general have become.
i'm running some virtual Fedora installations on a windows server 2008 with hyper-v. Most of them are Fedora 12 and 13. Everything works fine for some years. Yesterday i want to upgrade a F13 machine to F14 by netistall. The upgrade ran without any problems. After the reebot the machine was off the network. All the networkconfigs by DHCP are OK, IP address, gateways, DNS settings and so on. But the machine can't ping or connect to other hosts. I tried an VM from scratch with both F14 i386 and x86_64 - same ****. This is the first time i had such a problem by upgrading Fedora machines.