Stop nmbd from listening on external interface?

I've installed a Mac mini (with OS X Lion Server) as a file server and  local gateway between my organization's local network and ISP's private network.
Issues with NAT and DHCP are separate, and not much of an immediate concern for now, but the nmbd acting up on the local network is a real stopper.
The connection scheme is as follows:
My LAN is connected to en0 (internal Ethernet port) and is located in Apple's idiotic 192.168.2.0/24 range (for now).
The ISP network is somewhere in the 10/8 range and is connected to en3 (USB Ethernet adapter)
In system settings, own LAN (en0) is set above all else.
The problem is that if Mac's nmbd winning election and become a responsible name server, the name resolution in the workgroup fails with "no route to host" message, until I turn on any MacBook located in the same workgroup, which winning election over the server.
When i make a check with server itself, it's SMB name (and the <name>.local alias) is always resolved to the address of external (en3) adapter.
The question is - how to tell this idiot to do the right thing and stop acting like it have a brain?

I am sure that there is a better way to do this using the /etc/X11/nvidia.conf file, but I am not very familiar with that one. The way that I am familiar is to put this line at the top of the session file that startx uses:
disper -s
Note that I am not backgrounding it using the '&'. You do not want to do that because then the script will hang until the display switch complete. You also want to put it before the conkys because then the display switch happens before conky is started.
I face similar issues with dzen and trayer. I get around it by using the following bash script to determine the screen sizes:
#!/bin/bash
OUT=$(disper -p 2> /dev/null )
NUMBER=$(( ${1:-1} + 1 ))
MONITOR=$(echo "$OUT" | sed -e '/xinerama/!d' \
-e 's/[a-z ]*: //' \
-e 's/$/,/' \
-e 's/[A-Z0-9-]*,/|&|/'$NUMBER \
-e 's/,//g' \
-e 's/[^|]*|\([A-Z0-9-]*\)|.*/\1/')
source <(echo "$OUT" | sed -e '/metamode/!d' \
-e "s/$MONITOR: nvidia-auto-select @\([0-9]*\)x\([0-9]*\) +\([0-9]*\)+\([0-9]\)/|W=\1;H=\2;X=\3;Y=\4;|/" \
-e 's/[^|]*|\([0-9XYWH=;]*\)|.*/\1/')
case $2 in
w) echo $W ;;
h) echo $H ;;
x) echo $X ;;
y) echo $Y ;;
*) echo "X=$X"
echo "Y=$Y"
echo "W=$W"
echo "H=$H"
esac
I am sure that the script could be improved upon, but that's how I take care of it.
Just out of curiosity, does your disper function properly? Mine stopped working a couple weeks ago.

Similar Messages

  • HT204266 I have got a transparent pic of a speaker on my ipod and cannot get rid of it,it is stopping me from listening to my music as the volume is not working

    How can I get rid of a transparent picture of a speaker on my Ipod? it appeared fromno where and it is stopping me from listening to my music, and from seeing whats on the screen,

    - Try a reset. Nothng is lost:
    Reset iPod touch: Hold down the On/Off button and the Home button at the same time for at
    least ten seconds, until the Apple logo appears
    - Insert and remove tha headphone plug a couple of times.
    - Restore from backup
    - Restore to factory defaults/new iPod

  • Charger stops music from playing on external speakers?!

    Every time I plug in my iPhone4s to charge and I'm listening to music, the music stops playing out of the external plugs and plays in the phone as if I plugged it into a music dock. It makes me upset and I can't even hear it through my headphones :(

    Hello,
    This is a matter of changing your sound settings under playback and recording tab.
    You must set the speakers as the default playback device and as the default communication device.
    Check this document, it might help you understand what I am referring to!!
    http://www.7tutorials.com/how-change-default-playback-recording-audio-device
    Hope it helps! Let me know the outcome!
    Thanks,
    I work for HP! Please remember to provide and if this helped click ON

  • Stopping Users from Web Surfing Externally Using IE?

    We have a lot of legacy internal application that can only be accessed using IE.
    Due to the recent Microsoft announcement concerning IE versions and support/patching. We want to stop users from surfing externally using IE, is there a policy setting (or proxy config, host file mod etc.) that we can use to force this?

    Hello,
    block your firewall for port 80/443 explicit and then open only required ports for your requirements.
    For controlling internet access you have the need for proxy server. A free proxy server is SQUID
    http://www.squid-cache.org/
    Best regards
    Meinolf Weber
    MVP, MCP, MCTS
    Microsoft MVP - Directory Services
    My Blog: http://blogs.msmvps.com/MWeber
    Disclaimer: This posting is provided AS IS with no warranties or guarantees and confers no rights.
    Twitter:  

  • Stop MDB from listening to a JMS queue

    Hello,
    From time to time we would like to stop the processing done in our application.
    The processing is started by onMessage() in MDB. Is it possible to tell the MDB
    to stop listening
    to the JMS queue or stop the delivery of messages by JMS ? We do not intent to
    stop the processing of messages that have already started by only to stop processing
    of further messages (the ones still in the JMS queue).
    We are using 6.1SP3.
    Any help is appreciated.
    Eric Poupaert,
    Approach Belgium SA.

    If you can tune the number of messages that should be sent to the MDB to 0, that would
    temporarily stop the MDB from consuming messages. Thsi is the "Messages maximum"
    parameter on ur connectionfactory. WL6 doesnt support changing this value to 0 but there
    were some newsgroup discussions last year that it might be supported in a future
    release. Maybe its fixed in 8?
    Eric Poupaert wrote:
    Hello,
    From time to time we would like to stop the processing done in our application.
    The processing is started by onMessage() in MDB. Is it possible to tell the MDB
    to stop listening
    to the JMS queue or stop the delivery of messages by JMS ? We do not intent to
    stop the processing of messages that have already started by only to stop processing
    of further messages (the ones still in the JMS queue).
    We are using 6.1SP3.
    Any help is appreciated.
    Eric Poupaert,
    Approach Belgium SA.

  • Want to stop apps from spinning up external drives

    I have found that Aperture will always try to spin up my external FW drive that I only mount at night for backups. Anyone know why Aperture does this or how to stop it?
    As well, software update and Disk Utility also do this, but I can almost understand them doing it.
    Cheers
    Doug
    G5   Mac OS X (10.4.9)  

    Disconnect the drive when it's not in use.
    Don't want to have to do that either
    I assumed but thought it might help someone who may be browsing through with a similar issue.
    I will try the Aperture group too....
    If you get a solution or helpful info there, you may want to revisit this thread and post a link to it.

  • MacBook stops booting from 2 TB external

    Alright, so it was hard to decide where to post this, and here's why :
    My 24" iMac ( see specs below ) is currently off with the Apple Geniuses getting it's Super-Drive replaced, should be ready mid next week.
    In the meantime I'm doing what I've done a few times in the past 2 years & booting from a clone of it on a LaCie 2 TB external fire-wire drive. It's always worked before, but last night a simple restart resulted in my MacBook, after the LaCie was chosen to boot to, getting stuck in an alternating series of 2 blue-screens ( one slightly darker then the other ), with an occasional quick glimpse of the gearwheel which lasted for a second.
    Disk Utility told me that the Lacie needed some minor repair to the Volume Header, and that went fine . . . but still no boot.
    The LaCie is quite visible on the MacBook's desktop and I can go on with Finder and open any file I please.
    A couple of Apple Techs have found this to be quite the conundrum, but accepted my friend's theory that the macBook just reached "a choking point" with the speed of the Lacie coming at it.
    Here's some System Profiler on the MacBook :
    Model Name: MacBook
    Model Identifier: MacBook1,1
    Processor Name: Intel Core Duo
    Processor Speed: 1.83 GHz
    Number Of Processors: 1
    Total Number Of Cores: 2
    L2 Cache (per processor): 2 MB
    Memory: 512 MB
    Bus Speed: 667 MHz
    Boot ROM Version: MB11.0061.B03
    SMC Version: 1.4f12
    Plus !, The reason I wasn't sure where to post this is the MacBook is still running Tiger, while the clone on the LaCie is up-to-date Leopard.
    Aside from my misuses of terms here & there, does this give anyone a flash of recognition ?
    TIA !
    --=Dave

    ( Heavy Sigh )
    The Mac is back . . .♪ and there's gonna be trouble ♫
    Everything seems fine w/ my "returned" iMac, altho' I haven't tested the replaced Super-Drive yet . . . too busy struggling w/ the LaCie Fire-Wire !
    The iMac couldn't boot from it either. Disk Utility took me thru this sequence :
    *Verifying volume “Remastered Clone”*
    *Checking Journaled HFS Plus volume.*
    *Checking Extents Overflow file.*
    *Checking Catalog file.*
    *Checking multi-linked files.*
    *Checking Catalog hierarchy.*
    *Checking Extended Attributes file.*
    *Checking volume bitmap.*
    *Checking volume information.*
    *Volume Header needs minor repair*
    *The volume Remastered Clone needs to be repaired.*
    *Error: Filesystem verify or repair failed.*
    *Verify and Repair volume “Remastered Clone”*
    *Checking Journaled HFS Plus volume.*
    *Checking Extents Overflow file.*
    *Checking Catalog file.*
    *Checking multi-linked files.*
    *Checking Catalog hierarchy.*
    *Checking Extended Attributes file.*
    *Checking volume bitmap.*
    *Checking volume information.*
    *Volume Header needs minor repair*
    *Repairing volume.*
    *Rechecking volume.*
    *Checking Journaled HFS Plus volume.*
    *Checking Extents Overflow file.*
    *Checking Catalog file.*
    *Checking multi-linked files.*
    *Checking Catalog hierarchy.*
    *Checking Extended Attributes file.*
    *Checking volume bitmap.*
    *Checking volume information.*
    *The volume Remastered Clone was repaired successfully.*
    So I was briefly relieved, but to no avail.
    Also, having an extra, virgin power-brick from a replacement earlier this year which included a new set of accessories, I've tried that as well. ( but to no avail )
    What really gets me, and my lack of in-depth knowledge, is how it's right there on the desktop . . all accessible and nice, yet unbootable.
    Would the legendary Disk Warrior actually do more then Disk Utility ??

  • Memory leak in external interface SetReturnValue?

    I'm having trouble with a memory leak in my application. I'm
    hoping someone out there can help me find a fix or workaround, or
    tell me what I'm doing wrong.
    The leak seems to be coming from the flash external
    interface; specifically, IShockwaveFlash.SetReturnValue(String). My
    application is written in Visual Basic 2008, connecting to Flash
    9.0.124.0 (activex version).
    I've written a fairly simple flash/VB program pair to
    illustrate the problem.
    The SWF contains a button, 2 dynamic text fields, and the
    ActionScript 2 code below.
    The VB project contains a Form with a AxShockwaveFlash object
    and the VB code below.
    When this program is run, and the button is clicked a lot
    (10's of thousands of times), the application's memory creeps up
    and never seems to fall back down. If the string passed to
    SetReturnValue is longer, memory is consumed faster. But if the
    call to SetReturnValue is commented-out, the application's memory
    usage remains stable.
    If anyone has any suggestions on how to proceed, I'd be
    grateful.
    (By the way: I'm using a freeware program called DoItAgain to
    automate the button pressing.)

    I have developed two simple Java and corresponding
    C++ classes. Use code tags when you post your code.
    You are missing a lot of error checking. JNI calls, every single one, will usually be followed by some sort of error checking. Any that access classes, methods, fields or allocate object must be followed by checks for java exceptions.
    You will need to reduce your code to a smaller sample. Otherwise it is unlikely anyone will look at it.
    You also need to specify how you know that a memory leak is occurring.

  • How do I stop iTunes from automatically importing songs I listen to from my external hard drive into the music library?

    How do I stop iTunes from automatically importing songs I listen to from my external hard drive into the music library?

    Mac OS X: Double-Clicking a File Opens the Wrong Application - http://support.apple.com/kb/TS2291
    -= Changing the application used to open all files of a certain kind (written with reference to OSX 10.4 but may not have changed) =-
    1) In a Finder window highlight a file of the kind you want to change the application to open that kind of file.
    2) While that file is highlighted, select File > Get Info or press command (apple or propeller icon) + i to get a file information window.
    3) In the lower part of the info window there is an "open with" menu with a list of applications.
    4) If your application is already in the box then it is the default application for opening that kind of file and you don't need to do anything more.  Close the get info window.
    5) If the application showing in the menu is not the one with which you wish to open the file then select a new application. If your application does not appear there then select the "other..." and track down the application (usually in the Applications folder at the main level of the computer).
    6) If you wish to change all files of this type to open with this application in future, make sure the "change all" button is selected.
    7) Close the get info window.

  • How to stop vdbench from external applications? What are the impacts?

    I am using vdbench to test following scenario:
    1) Start vdbench - do read/write (I use poweshell start-process to start vdbench which returns me the process object )
    2) Poll for particualr system event(my test condtion). When the event happens stop read/write ASAP(To stop the process I use powershell Stop-process and pass process object as the argument. This actually stops IO as seen task manger)
    3) Continue testing
    I want to understand
    1) Are the steps followed correct?
    2) What is the correct method to stop vdbench from external application?
    Regards
    Jugari

    An other thought, that maybe is of interest to you, coming in the next version of Vdbench.
    A conversation with one of my internal users:
    It does not make sense to look at current Vdbench output trying to figure out what is happening when.
    This locks us in to tricks and guessing and prevents me from make changes to the output.
    Monday I will create a new file in Vdbench: status.html
    This file will only be there for any kind of wrappers to see what is going on.
    I'll make sure that the file contents are flushed to the file system as soon as a line of text has been written.
    * Vdbench status
    * The objective of this file is to contain easily parseable information about the current state of Vdbench.
    * This then can serve as an 'official' interface for any software monitoring Vdbench.
    * Each line of output will be immediately flushed to the file system, making its content accessible by any monitoring program.
    * The values below are all tab-delimited.
    03/25/2015-13:42:44-MDT Starting slaves
    03/25/2015-13:42:44-MDT Slaves connected
    03/25/2015-13:42:44-MDT Query host configuration started
    03/25/2015-13:42:44-MDT Query host configuration completed
    03/25/2015-13:42:46-MDT Starting rd=rd1 For loops: None
    03/25/2015-13:42:48-MDT Warmup done rd=rd1 For loops: None
    03/25/2015-13:42:51-MDT Workload done rd=rd1 For loops: None
    03/25/2015-13:42:51-MDT Slaves done rd=rd1 For loops: None
    03/25/2015-13:42:51-MDT Shutting down slaves
    03/25/2015-13:42:51-MDT Vdbench complete
    Henk.

  • Delete Intransit from APO which Loaded by PI from external interface

    Hi all,
    I am facinf a problem in deleting the Order created by External Interface.
    We are loading Inransit as PO Mamo (ATP Category AH). Now we need to delete all the Record with AH ATP categoy before we reload new intransit to APO.
    Problem is we are not able to delete those order as those are not in Live Cache.
    We try using transaction /n/sapapo/bp2 but every time its throwing error "SAP APO system Q51CLNT100 has been declared as an SAP R/3 system.
    and even i try deleting from /SAPAPO/RLCDEL. but its not deleting those order.
    Can some one suggest what to do.
    What all the option that we can try to delete the intransit.
    Thanks & Regards,
    Amit Sharma

    Hi Amit,
    You can use BAPI to delete AH ATP Category.
    1. Read all Purchase Documents from BAPI_POSRVAPS_GETLIST3 for product u2013 location for AH Type ATP Category only.
    2.Get the ORDID on the selection made.
    3.Call BAPI_POSRVAPS_REMOVEITEMS and load the list of order no. and then delete it.
    Please try this.
    Thanks,
    Dipankar

  • I have all my music on my external hard drive when I try to add it to iTunes it is automatically added to my MacBook Pro's hard drive. How do I stop this from happening? I just want the music to stay on the external hard drive. Thanks!

    I have all my music on my external hard drive when I try to add it to iTunes it is automatically added to my MacBook Pro's hard drive. How do I stop this from happening? I just want the music to stay on the external hard drive. Thanks!

    This is true of course, but doesn't cover the situation where some files are in the iTunes Media folder and others are on an external drive. In my case I keep my music in the Media folder and all my films on an external drive (there are too many to have on the internal drive). In iTunes 11, and before, it was easy to add those external files by holding down the alt/opt key while dragging to the sidebar. In iTunes 12 this is no longer possible. There are several workarounds: use TuneSpan to move the file after it's been added; delete the file from the Media folder and empty the trash then use iTunes Get Info which will report the file is missing and allow you to locate it; constantly switch the Add to iTunes toggle on and off as required. All of these require a lot more work than just holding down the alt/opt key while adding.
    It constantly gets harder.

  • How do I stop ITunes from loading songs into library when played from an external hard drive

    How do I stop ITunes from loading every song I play into my library from an external hard drive?

    Mac OS X: Double-Clicking a File Opens the Wrong Application - http://support.apple.com/kb/TS2291
    -= Changing the application used to open all files of a certain kind (written with reference to OSX 10.4 but may not have changed) =-
    1) In a Finder window highlight a file of the kind you want to change the application to open that kind of file.
    2) While that file is highlighted, select File > Get Info or press command (apple or propeller icon) + i to get a file information window.
    3) In the lower part of the info window there is an "open with" menu with a list of applications.
    4) If your application is already in the box then it is the default application for opening that kind of file and you don't need to do anything more.  Close the get info window.
    5) If the application showing in the menu is not the one with which you wish to open the file then select a new application. If your application does not appear there then select the "other..." and track down the application (usually in the Applications folder at the main level of the computer).
    6) If you wish to change all files of this type to open with this application in future, make sure the "change all" button is selected.
    7) Close the get info window.

  • I unplug my MacBook Pro from power and external speaker and I hear incremental beeps and sounds as if email being sent. Doesn't' stop until I close email

    I unplug my MacBook Pro from power and external speaker and I hear  incremental beeps and sounds as if email being sent. Doesn't' stop until I close email.   Not sure what is happening our what if any emails are being sent.

    You can install Temperature Monitor and have a look if the CPU oder GPU oder something else went to hot. The processor has a built in safety mechanism to shut down the computer before taking damage.

  • What is ChangeWatcher? How do you stop Change Watcher from listening to a propertyChangeEvent?

    What is ChangeWatcher? How do you stop Change Watcher from listening to a propertyChangeEvent?

    ChangeWatcher is a class used to handle the change of a specific property. To stop watching that property, simply call unwatch function as follow:
    var cw:ChangeWatcher = ChangeWatcher.watch( this, "propertyName", changeHandler );
    cw.unwatch();

Maybe you are looking for

  • Satellite L650-170 (PSK1JE) Setup Failure

    Today i purchased a toshiba Satellite L650-170 (PSK1JE), i turned it on, and yay, I had to sit through a 2 hour long setup. After 2 hours, it restarted for the 10+th time, and this time, instead of succesfully installing one of the 42 things it had t

  • Tune query on dual table.

    Hello, I am using ORACLE 11g and RHEL 5. I have a performance tuning issue. One of the query which returns the output in 0.016 seconds i.e. the below one select to_number((sysdate- to_date('1970-01-01 00:00:00','YYYY-MM-DD HH24:MI:SS')) * 86400 - ((s

  • Neverwinter nights 2

    I have successfully downloaded and played NeverWinter Nights 2 in the past but now when I try I am asked for a regestration key and I don't know were to find it. Any suggestions?

  • SwingX JXTreeTable and Tooltips

    Hello I have what I think is a small bug in JXTreeTable. Using the attached self contained runnable example and the SwingX 1.6.4 library do the following 1. Hold mouse over any cell and the tooltip is displayed 2. Click the tree icon so the tree coll

  • JSP Programming Course Available

              Hello:           wAppearances now offers a 5-day hands-on JSP programming course.           Visit www.wAppearances.com for details.           Robert Burdick           wAppearances           Co-author, "Professional JSP, 2nd Edition," Wrox P