Ubuntu Networking :: Script To Check Network Availability Before Mounting NFS
Mar 13, 2010
I am trying to connect an NFS shared to my multimedia Box. I have no problem connecting it manually but when I tried to connect automatically upon booting up the multimedia I have to wait for the wireless to be connected before attempting to mount the NFS file system on the media box.Now I am sure that this can be easily implemented using a script however I do not have much experience with that. I am not sure about the syntax for the loop statement. I know what is required for the mount and other stuff. Is the use of the ping a good idea. It takes about 2 second for the ping to return when fails so after 40 to 60 sec it should stop.
View 2 Replies
ADVERTISEMENT
Jan 10, 2010
I want to know how to find if any audio streaming is available in eth LAN. ex: if a host is streaming mp3 audio through ethernet connected to my system how to find the availability of the network stream in eth any socket programming is needed
View 2 Replies
View Related
Mar 26, 2011
When I try to ping with the terminal to check a website's availability, it always just keeps going on and on and on... How do I get it to stop after a set amount of pings? Is there some type of command?
View 6 Replies
View Related
Jun 27, 2011
please anybody tell me how to check the availability of ethernet card in redhat 5.2 without using screw driver.
View 3 Replies
View Related
Jun 20, 2011
I have written a script to take backup of my database in remote server which is a windows machine.i have mounted that machine to my server using the script and daily script will run automatically, i have scheduled it using crontab like that and backup will be taken. but if my remote server is down means it gets unmounted and my backup falls on my local linux server itself. i want a script to check whether the remote server is mounted or not if mounted take the backup or else stop the backup.
View 2 Replies
View Related
Mar 6, 2011
Is l7-filter support available in opensuse 11.3? When running a shaper script I get the following:
Code:
iptables v1.4.8: Couldn't load match `layer7':/usr/lib/xtables/libipt_layer7.so:
cannot open shared object file: No such file or directory
I have the xtables addons installed. Any ideas where I can obtain the missing library?
View 6 Replies
View Related
Jul 10, 2010
I am trying to configure MPD (music player daemon) to work on my headless ubuntu server. Everything works well, but MPD cannot see the music files stored on my windows XP main computer. These files are stored at smb://LASTNAME/share/music Is there a way to directly mount this drive, so it is accessible at something like /mnt/music, in order that they work with MPD?
View 8 Replies
View Related
Oct 8, 2010
I have 2 Ubuntu machines: a desktop in my bedroom, and a laptop.
I have my music shared on my desktop machine, and can access it through the network menu item in the nautilus manager, but I want the files from the share to be mounted on the disk so I can access it through the commandline.
If I right-click the shared folder in Nautilus, it says its location is smb://rob/music
If I do:
mount -t smbfs //rob/music /mnt/music, it tells me that it cant locate rob.
So I try "ping rob" and that doesn't work.
I can't make a hosts entry for rob which happens at this moment to be 192.168.0.8, because my router assigns different IP addresses to various machines at different times, and I cant seem to find a way to make static maps from MAC address to ip address.
So, how come nautilus can see my samba share on the machine "rob", but the mount commands cannot?
View 7 Replies
View Related
Jan 1, 2011
I have a network PC running Win7 that u use for storage of all my media; movies, music and pictures.I can connect and use the share just fine using the "connect to server" option under places menu.I think i need to modify the fstab file but I am not familiar enough with it to do this.Have searched other threads for help but I am doing something wrong.HP Laptop running Ubuntu 10.10 connecting to a win7 share through a router.
View 9 Replies
View Related
Apr 6, 2011
what's the command to check who is currently on my home network?
View 5 Replies
View Related
Jun 2, 2010
At my work, we have an ISP that provides us with 2 connections with different IP addresses but at the moment they don't switch automatically if one fails, and can only work for outbound traffic.I tried to automate this with floating routing table on a CISCO 1711 router but then switching to the second link only happens when there's no longer a signal on the cable that's plugged into the router's interface directly -- and the failure most often happens somewhere in the middle. And that also does not make us available from outside.
Can anyone suggest a better way? Maybe an outside DNS server can have a second IP address recorded for our domain name?I found somewhere suggestions that a loadbalancer could solve that but these appliances are way too expensive.I also thought about using BGP but my router's RAM (128MB) is too small for the global routing table that BGP requires. And I also need an ISP (or better 2 ISPs) that provide BGP service. Before trying to convince others that we need to invest more into this, I'd like to know whether there are no easier ways.
View 6 Replies
View Related
Jun 14, 2010
Using Xubuntu 10.04 to connect to some Windows XP shares by adding lines to fstab. The network shares are not mounted at boot, but can be mounted from the command line, after the OS has booted and everything is up. I am suspecting the network isn't up yet, when fstab is processed. I tried adding the option "_netdev" to the relevant network share lines in fstab, but the shares still don't mount automatically at boot up. I read that this option only works for NFS and I am using CIFS. Can someone confirm that _netdev only works for NFS ?
I've seen solutions involving running a mount script after the OS is fully loaded, or running a cron job to periodically check the status of the share and mount if needed. Good workaround but doesn't address the root cause. Is there any other way (besides the _netdev option) to delay mounting of network shares that appear in fstab until the network interface is up ?
View 14 Replies
View Related
Jan 11, 2010
I remember back when I used Windows, there was a shell command call "net view", which would allow me to see all the other users on my wireless net.
Is there any command or application that can do this? I dont mind if it is a terminal command either, but I would really like to know a way that I could see other users on my network.
View 3 Replies
View Related
Jul 6, 2010
scan my network and check for files within a LAN, in a mixed Linux and Windows environment.Something like LAN spy for Windows. Is there a package or program like that for Linux?
View 2 Replies
View Related
Dec 20, 2010
How to check Linux server network connections generally?
View 3 Replies
View Related
Aug 1, 2010
currently i've face a problem of having a slow internet connection on our office, i was asked to check who among the users under the network uses the most.
is there a way how to check it?
View 2 Replies
View Related
Mar 29, 2010
I have managed to get my networkdrive to mount on boot to a windoze share. however how can i get it to permently show the mounted icon on the users desktop?Its so simple a thing that there must be an easy way to do it.
View 14 Replies
View Related
Apr 6, 2010
I have a number of diskless hosts which are to bootth PXE and mount their root filesystem on an NFS share. Most of the NFS share will be common to to all of the diskless hosts. No problem with that part.I also need part of the NFS shared filesystem to be unique to each individual host. The only difference between the hosts is the ethernet MAC. I use it in the DHCP server to key a specific unique IP to each host. I would like to be able to use either the MAC, or the IP, or any other unique identifier that can be derived very early in the boot process to access a filesystem or directory that is unique to each diskless host.
I need/want to do this because I need/want to isolate all of the system maintenance to one small part of the boot host. Modifying the hardware (these are VME CPUs) in any way is not an option; they must be field swappable, with all maintenance isolated to the boot host(s).I know I could run ifconfig and parse its output to derive an IP &/or MAC, but that seems a bit kludgey and fragile. The DHCP server is presently assigning IPs. I know I can arrange to pass a unique option value via the DHCP server, but don't know if or how this can be retrieved on the diskless nodes. I am presently passing the 'root=' kernel argument from the bootloader, but I don't think there is any way to pass other filesystem information using that mechanism.
I know I can pass some kernel arguments from the bootloader, but there doesn't seem to be any generic message that can be retrieved in userspace as part of the boot process. I've scanned around in the /proc filesystem, looking for the IP or anything else that seems to uniquely identify the host, but don't see anything there, either.The init process has not yet been cast in stone, but is very likely to be a BusyBox built-in
View 5 Replies
View Related
Dec 13, 2008
I know this has been covered in many threads before, but I'm stuck not finding my exact situation or an answer. I'm a newbie using a Debian Linux machine as the client and Windows XP machine as the server. I have successfully mounted the XP Network drive on the Linux machine using commands from the root terminal:
mount -t smbfs -o username="Windows Username",password=windowspassword //XPcomputername/folder /mountpoint/
However when I put the command in the ect/fstab file as suggested in several posts, I don't get any result on boot up. I.e. I can't get the network drive to mount on start up, I always have to manually mount it from the root terminal.
View 7 Replies
View Related
Nov 16, 2010
we use round robin DNS service for setting up a high availability solution ? i want to know whether it will work.
View 1 Replies
View Related
Jun 7, 2010
I have a question regarding the configuration of Network Connection. My wired connection is fine right now and when I check the network connection applet, it display active information of eth0. However, when I click the Configure button, the Network Connection window appears but there's nothing in the Wired panel. Should there be a eth0 in that panel? I remember I had one before, but after I messed with some configuration of VPN, my network became unstable and I remove the Network Manager to try to solve the problem. Since then, there's nothing in my Network Connection window, though I can still connect to my router with eth0. Now even after I reinstalled the Network Manager, I still don't get anything.
View 7 Replies
View Related
Nov 26, 2009
Suppose that it is not convenient to go behind a machine to have a look.So I want to use a command to show whether the cable is plugged into network card. (Media connected or not)Can ifconfig do this? Or another one?
View 2 Replies
View Related
May 28, 2009
I am having permissions errors every time I try to mount a windows host. I have a linux server and all the windows computers can see that computer and its files, but we wanted to start backing up the linux machine to one of our other computers. so I tried to mount one of the computers. here is the sequence of events:
Code:
$mount -t cifs //192.168.1.194/Admin$ /mnt/Anita-comp
password: (I have no password so I left it blank)
Mount error (13): Permission Denied
I tried all sorts of passwords we use around the office and none of them worked.
I then decided to try mounting one of our other computers. this one looked like it worked fine. no error messages at all. (I left password blank) so I look in my filesystem and the mounted drive is not in the /mnt/Anita-comp file. What gives?
View 11 Replies
View Related
Mar 11, 2011
How do i mount these they are in a separate computer
MythTV Drive #1: Directories: myth-box:/var/lib/mythtv/livetv, myth-box:/var/lib/mythtv/recordings
View 6 Replies
View Related
May 4, 2010
Enviroment:
-server ubuntu 9.04 with samba
-client fresh ubuntu 10.04
ubuntu is not auto-mounting samba shares. Old 9.04 done it without a problem. I need to type sudo mount -a to have samba mounted.
fstab:
//192.168.1.101/www /mokonawww cifs auto,iocharset=utf8 0 0
ls -l
drwxrwxrwx 25 root root 0 2010-05-03 17:44 mokonawww
Tested with diffrent parameters. And another problem also with samba shares, when I edit file from editor (eclipse) after save i got 'file changed dialog'. seems like file is written with some delay ? and timestamp dont agree (its my blind quess). On 9.04 no problems. Tested with 2 instances of Eclipse. One copied from 9.04 and second fresh install. Other editors raport the same problem. Its anoying as hell.
View 3 Replies
View Related
Nov 26, 2010
If I can't get this sorted, I really can't use Ubuntu so pleeease help. I'm a complete newbie, as in, about 2 hours using ubuntu so far. Generally things are going well. I am trying to create a link to my windows xp workgroup where all my data is stored (I was surprised that linux could even see it!) I mounted a volume on the desktop apparently... that worked fine until I rebooted and it had disappeared. it was fairly annoying that I had to go back into the network and re-mount the volume. How can I get it to stay put, even after rebooting? I have limited to zero knowledge of linux/ubuntu so you may need to break it down for me.I tried using 'Storage Device Manager' as someone suggested but emmm I didn't understand a word of it. In fact there weren't many words. Only acronyms
[URL] I don't understand it at all...
View 6 Replies
View Related
Mar 24, 2010
I'm setting up a server, and someone asked me (after I was done installing and formatting) whether the external hard disk attached to this server (with the /var partition) could also be mounted as a network drive for easy file transfer (i.e. drag-drop file transfer without ssh/scp or sftp). If someone has any ideas on how a pre-formatted (ext4) partition can be simultaneously made available as a network drive readable by a Windows machine.
View 3 Replies
View Related
Apr 30, 2011
I was wondering if there is a way to mount a network CIFS share manually to allow it to prompt for password. I've been Googling around and found a couple options. One was to store your credentials in a file and then add the fstab entry to look at the file. I'm not particularly fond of the idea of storing my credentials in a plain text file though, even if I put file permissions on it.Is there a way to mount the share so that it prompts for credentials. The share isn't always online so I want to mount it manually.
View 6 Replies
View Related
Nov 12, 2010
I'm trying to mount a Windows Server share from Centos 5.5 (kernel 2.6.18-194.26.1.el5). I've tried two approaches neither of which work.
1). Using Places->Connect To Server. This approach works fine on Ubuntu but not at all for Centos. Using the 'Windows Share' Service type, it allows me to see the remote directory - I can see all of the directories on the server. But as soon as I click one, I get an error 'Couldn't find "smb://blah/blah". Please check the spelling and try again. As I say, this worked fine on ubuntu. Tried loads of options but with no luck. I saw something on the web about leading slashes being a problem.
2). Using Mount . Tried to use mount to mount as a cifs filesystem, as documented on a number of web pages:
mount -t cifs //server/dir -o username=username,password=password /mnt/tmp
This completely hangs the machine.I means completely, no mouse, no nothing. I've seen some references to unstable cifs on the web but I believe that this kernel has the fix for this.
View 5 Replies
View Related
Jul 18, 2010
I am running openSUSE 11.3 and I have a Buffalo LS-CH1.0TL NAS (it doesn't support NFS) that has all of my media and backup files stored on it. I can access the NAS just fine in Dolphin, but when I try to setup a music folder in any of the media programs (Amarok, Banshee, Rhythm Box) I am confined only to the drive on my computer. There are no options to browse a network share.
So, I guess I have to mount the drive. How do I do this? Is there a GUI I can use to do this, or is this something I need the command line to do? If so, what's the code I need to input to my fstab?
View 9 Replies
View Related