euglug.org

[작성자:] admin

  • [Eug-lug] Postgres/SH script question



    larry priceMon Dec 19 15:11:27 PST 2005

    On 12/19/05, Matthew Jarvis <mattj at bikefriday.com> wrote:
    > Looking at the following code in a sh file on one of our servers (I've
    > snipped nonrelavant stuff):
    >
    > #!/bin/sh
    > OUT_TO=/home/postgres/tmp/webtrans.sql
    >
    > #load the data to the destination DB
    > DST_DB=webbikedata
    > DST_IP=bikefriday.com
    > DST_USER=bikefriday
    >
    > /usr/local/pgsql/bin/psql $DST_DB -U $DST_USER --host=$DST_IP < $OUT_TO
    >
    >
    > Am I understanding this properly if I say that:
    >
    > running postgress on a local server
    > using webbikedata as the db
    > user is bikefriday
    > data is going to bikefriday.com
    > and postgress is importing the contents of $OUT_TO (in this case,
    > webtrans.sql)
    >
    > webtrans.sql is 9.2mb... is the above a good way to deal with this? I'd
    > think uploading webtrans.sql to the remote box THEN having postgres deal
    > with it would be faster.
    
    You're running the postgres client (psql) locally
    using the database webbikedata as user bikefriday on host bikefriday.com
    and you are feeding the file webtrans.sql to the client.
    
    speed probably isn't an issue in most cases, copying the file in bulk
    and then executing it's contents on the remote server is not faster
    than copying it line by line and executing it as it arrives.
    
    what you do need to be concerned about is security, by default
    connections to the database are NOT ENCRYPTED.
    
    take a look at pg_hba.conf and make sure that the connection type is
    set to ssl, and that you are requiring authentication before access.
    
  • [Eug-lug] Postgres/SH script question



    Matthew JarvisMon Dec 19 14:40:38 PST 2005

    Looking at the following code in a sh file on one of our servers (I've 
    snipped nonrelavant stuff):
    
    #!/bin/sh
    OUT_TO=/home/postgres/tmp/webtrans.sql
    
    #load the data to the destination DB
    DST_DB=webbikedata
    DST_IP=bikefriday.com
    DST_USER=bikefriday
    
    /usr/local/pgsql/bin/psql $DST_DB -U $DST_USER --host=$DST_IP < $OUT_TO
    
    
    Am I understanding this properly if I say that:
    
    running postgress on a local server
    using webbikedata as the db
    user is bikefriday
    data is going to bikefriday.com
    and postgress is importing the contents of $OUT_TO (in this case, 
    webtrans.sql)
    
    webtrans.sql is 9.2mb... is the above a good way to deal with this? I'd 
    think uploading webtrans.sql to the remote box THEN having postgres deal 
    with it would be faster.
    
    
    Matthew S. Jarvis
    IT Manager
    Bike Friday - "Performance that Packs."
    www.bikefriday.com
    541/687-0487 x140
    mattj at bikefriday.com
    
  • [Eug-lug] HD info missing/wrong



    Matthew JarvisMon Dec 19 13:17:19 PST 2005

    Thanks Mike, but I've been there, done that.... even had Toby come over 
    and double check it.... still no joy....
    
    I never messed with the jumpers on the original drive since I was too 
    lazy to take it out of the case.... same w/ CDROM... only jumper I 
    changed was on that old drive I was trying to add but that things out of 
    the loop now....
    
    I think the guys at ComputerBase did some magic to make this drive work, 
    and like an idiot I neglected to write the info down... (hence the 9gig 
    limit I think I had)... but the specs are for 15+ gigs....
    
    Matthew S. Jarvis
    IT Manager
    Bike Friday - "Performance that Packs."
    www.bikefriday.com
    541/687-0487 x140
    mattj at bikefriday.com
    
    
    Mike Cherba wrote:
    > Matt,
    > 	I'm sure you've already done this, but I would go back into the case
    > and check the cables and jumpers on the drive.  90% of the time, when I
    > see stuff like this, I bumped a cable loose, or forgot I changed a
    > jumper on the drive to match the expected new setup.
    > 			-Mike
    > 
    
  • [Eug-lug] HD info missing/wrong



    Mike CherbaMon Dec 19 13:08:18 PST 2005

    Matt,
    	I'm sure you've already done this, but I would go back into the case
    and check the cables and jumpers on the drive.  90% of the time, when I
    see stuff like this, I bumped a cable loose, or forgot I changed a
    jumper on the drive to match the expected new setup.
    			-Mike
    
    
    
    On Mon, 2005-12-19 at 11:56 -0800, Matthew Jarvis wrote:
    > I decided to have some fun Sun afternoon by trying to add an extra drive 
    > to my desktop PC (Win2k pro).... that went no where so I decided to just 
    > call it a day and go back to my original configuration...
    > 
    > Now the machine won't see the (original) hard drive at all.
    > 
    > I thought I'd make it a learning experience by booting up live version 
    > of Ubuntu to see what I could see.... nadda....
    > 
    > Going with the specs on the drive and setting them manually in BIOS, 
    > still no go.
    > 
    > One really odd thing is that I am virtually certain that all this time 
    > I've had a 9gig drive in there, yet the markings on the drive are for a 
    > 15+ gig drive. I got this thing a few years ago from the guys over at 
    > ComputerBase on the cheap....
    > 
    > I vaguely remember that when I started on this ordeal that I did see in 
    > the BIOS for the drive that it was 15 something gigs.... I just didn't 
    > pay very close attention....
    > 
    > Using specs on the drive the BIOS calcs a size around 9 gig, yet the 
    > thing specifically says it's something 15+ gigs.... odd stuff....
    > 
    > Obviously the problem isn't Windows or Ubuntu - it's just the BIOS isn't 
    > seeing the hard drive.... I'm a bit nervous about playing around with 
    > those BIOS settings too much out of fear of loosing data off the drive...
    > 
    > Any suggestions or thoughts on how I should proceed?
    > 
    > Matthew S. Jarvis
    > IT Manager
    > Bike Friday - "Performance that Packs."
    > www.bikefriday.com
    > 541/687-0487 x140
    > mattj at bikefriday.com
    > _______________________________________________
    > EUGLUG mailing list
    > euglug at euglug.org
    > http://www.euglug.org/mailman/listinfo/euglug
    -- 
    Mike Cherba
    Cavium Networks
    883 Brookside Dr
    Eugene, OR 97405
    phone: (541) 684-3820
    Cell:  (541) 914-2188
    mike.cherba at caviumnetworks.com
    www.caviumnetworks.com
    
  • [Eug-lug] HD info missing/wrong



    Matthew JarvisMon Dec 19 11:56:41 PST 2005

    I decided to have some fun Sun afternoon by trying to add an extra drive 
    to my desktop PC (Win2k pro).... that went no where so I decided to just 
    call it a day and go back to my original configuration...
    
    Now the machine won't see the (original) hard drive at all.
    
    I thought I'd make it a learning experience by booting up live version 
    of Ubuntu to see what I could see.... nadda....
    
    Going with the specs on the drive and setting them manually in BIOS, 
    still no go.
    
    One really odd thing is that I am virtually certain that all this time 
    I've had a 9gig drive in there, yet the markings on the drive are for a 
    15+ gig drive. I got this thing a few years ago from the guys over at 
    ComputerBase on the cheap....
    
    I vaguely remember that when I started on this ordeal that I did see in 
    the BIOS for the drive that it was 15 something gigs.... I just didn't 
    pay very close attention....
    
    Using specs on the drive the BIOS calcs a size around 9 gig, yet the 
    thing specifically says it's something 15+ gigs.... odd stuff....
    
    Obviously the problem isn't Windows or Ubuntu - it's just the BIOS isn't 
    seeing the hard drive.... I'm a bit nervous about playing around with 
    those BIOS settings too much out of fear of loosing data off the drive...
    
    Any suggestions or thoughts on how I should proceed?
    
    Matthew S. Jarvis
    IT Manager
    Bike Friday - "Performance that Packs."
    www.bikefriday.com
    541/687-0487 x140
    mattj at bikefriday.com
    
  • [Eug-lug] Synergy



    Bob MillerSun Dec 18 18:12:08 PST 2005

    Patrick R. Wade wrote:
    
    > Did i miss the original post somehow?  What is "synergy" other than an 
    > indication the utterer habitually wears a tie?
    
    The "original post" was me demonstrating Synergy at Thursday's
    meeting.  This morning Jamie posted that he had tried it and he liked
    it.
    
    If you wear a tie, we'll send you some PowerPoints.  If you wear a
    black T-shirt, open this link. (-:
    
    	http://synergy2.sourceforge.net/
    
    The original name, CosmoSynergy, was definitely a jab at Marketese and
    those who speak it.
    
    -- 
    Bob Miller                              K<bob>
                                            kbob at jogger-egg.com
    
  • [Eug-lug] Synergy



    T. Joseph CARTERSun Dec 18 18:04:20 PST 2005

    On Sun, Dec 18, 2005 at 05:43:18PM -0800, Patrick R. Wade wrote:
    > >>This looks like an incredibly cool piece of software.  How stable is it?
    > 
    > Did i miss the original post somehow?  What is "synergy" other than an 
    > indication the utterer habitually wears a tie?
    
    It had no subject.  I was replying to Bill Essig who replied to Jamie.
    
    -- 
    "We are what we repeatedly do.  Excellence, therefore, is not an act,
    but a habit."
    	-- Aristotle
    
  • [Eug-lug] Synergy



    Patrick R. WadeSun Dec 18 17:43:18 PST 2005

    Bob Miller wrote:
    > T. Joseph CARTER wrote:
    > 
    > 
    >>This looks like an incredibly cool piece of software.  How stable is it?
    > 
    
    Did i miss the original post somehow?  What is "synergy" other than an 
    indication the utterer habitually wears a tie?
    
    
    -- 
    On two occasions I have been asked [by members of Parliament!], 'Pray,
    Mr. Babbage, if you put into the machine wrong figures, will the right
    answers come out?' I am not able rightly to apprehend the kind of
    confusion of ideas that could provoke such a question.
    	-- Charles Babbage
    
    
  • [Eug-lug] Synergy



    Bob MillerSun Dec 18 14:51:55 PST 2005

    John Sechrest wrote:
    
    > In reading the documentation, it does not look like
    > it is a hardware sharing of the mouse/screen, but a way 
    > to hook up displays at the application level.
    > 
    > And so this may be useful for screen browsing, but it
    > does not look like it would be useful in system rebooting
    > and getting access to the bios of any of the other machines.
    
    You are correct.
    
    > In addition, it looks like it does not care about location
    > of the other machines, so your secondary machines could
    > conceivably be far away (depending on bandwidth)
    
    You are correct there too.  The mouse/keyboard event stream is low
    bandwidth (hundreds of bytes/second?).
    
    But keep in mind that if you can't see the other screen, you don't
    know what your mouse/keyboard input is doing.
    
    > I have not yet seen if it support multi user sharing,
    > so that one desktop can mirror/reflect someone elses 
    > desktop. (this would be used for over the phone consulting)
    
    That would be easy enough to do.  If Teacher and Student were sitting
    at displays side by side, Teacher would run synergy server and Student
    would run synergy client.  Then Teacher and Student could both take
    turns driving Student's display, each from his own keyboard/mouse.
    
    That's not what it's for, but it would work.
    
    > What makes this more interesting than just running Xwindows on a system?
    
    It's a way to have multiple screens for one user and not need to use
    multiple mice and keyboards.  The screens are on different hosts and
    can be running different OSes.  Here are some use cases that I've used
    in the last couple of months.
    
    1. Linux laptop in docking station has external monitor, keyboard and
       mouse.  Second laptop running Windows sits on desk running Outlook
       and Windows-only client-under-test.  I see three screensful of
       stuff, and can develop/debug network app that has Windows client
       and Linux server without switching keyboards/mice.
    
       left screen (laptop):	     Windows client and Outlook
       middle screen (external monitor): 4 xterms and an emacs
    				     (the curmudgeon's IDE)
       right screen (laptop):	     server admin browser and
    				     documentation browsers
    
    2. Two linux laptops w/ external keyboard and mouse.  (I am a klutz
       with a trackpad.)  Email and IM covering one screen, browsers and
       anoraK covering the other.  Sort of like a dual-head laptop.
    
    You can think of it as a way to create a multihead display without
    special video cards.  Or you can think of it as a way to get Windows
    and Linux on separate screens of one display.  (I'm using "display"
    in the X Windows sense of one user, one keyboard, and one or more
    monitors and mice.)
    
    If you don't crave more screen real estate, it probably doesn't
    seem very valuable.
    
    -- 
    Bob Miller                              K<bob>
                                            kbob at jogger-egg.com
    
  • [Eug-lug] Synergy



    LinuxRocks!Sun Dec 18 14:45:58 PST 2005

    I found a problem!
    last night, my router changed ip's on my desktop, and I lost the 
    keyboard and mouse on my laptop (which I was using for both). Im 
    guessing I left the machine last night with the mouse on the desktop...
    
    anyway, I was able to remedy the problem by dropping to console 
    (ctrl+alt+F1 worked, but other than that, the keyboard and mouse did not 
    work at all on either computer, except the desktop keyboard/mouse still 
    worked on the desktop, the latop was not responding...) and changed my 
    hosts file to point to the right ip, and restart synergy
    
    other than that, its been working great so far.
    
    my mail on the other hand has gotten kinda mucked up... too much hacking 
    on my .muttrc seems to have created a few places (under both Mail, 
    Maildir) that my mail is stored! and it still doesnt open to my mail 
    dir...
    
    Jamie
    
    On Sun, Dec 18, 2005 at 02:51:55PM -0800, Bob Miller wrote:
    > John Sechrest wrote:
    > 
    > > In reading the documentation, it does not look like
    > > it is a hardware sharing of the mouse/screen, but a way 
    > > to hook up displays at the application level.
    > > 
    > > And so this may be useful for screen browsing, but it
    > > does not look like it would be useful in system rebooting
    > > and getting access to the bios of any of the other machines.
    > 
    > You are correct.
    > 
    > > In addition, it looks like it does not care about location
    > > of the other machines, so your secondary machines could
    > > conceivably be far away (depending on bandwidth)
    > 
    > You are correct there too.  The mouse/keyboard event stream is low
    > bandwidth (hundreds of bytes/second?).
    > 
    > But keep in mind that if you can't see the other screen, you don't
    > know what your mouse/keyboard input is doing.
    > 
    > > I have not yet seen if it support multi user sharing,
    > > so that one desktop can mirror/reflect someone elses 
    > > desktop. (this would be used for over the phone consulting)
    > 
    > That would be easy enough to do.  If Teacher and Student were sitting
    > at displays side by side, Teacher would run synergy server and Student
    > would run synergy client.  Then Teacher and Student could both take
    > turns driving Student's display, each from his own keyboard/mouse.
    > 
    > That's not what it's for, but it would work.
    > 
    > > What makes this more interesting than just running Xwindows on a system?
    > 
    > It's a way to have multiple screens for one user and not need to use
    > multiple mice and keyboards.  The screens are on different hosts and
    > can be running different OSes.  Here are some use cases that I've used
    > in the last couple of months.
    > 
    > 1. Linux laptop in docking station has external monitor, keyboard and
    >    mouse.  Second laptop running Windows sits on desk running Outlook
    >    and Windows-only client-under-test.  I see three screensful of
    >    stuff, and can develop/debug network app that has Windows client
    >    and Linux server without switching keyboards/mice.
    > 
    >    left screen (laptop):	     Windows client and Outlook
    >    middle screen (external monitor): 4 xterms and an emacs
    > 				     (the curmudgeon's IDE)
    >    right screen (laptop):	     server admin browser and
    > 				     documentation browsers
    > 
    > 2. Two linux laptops w/ external keyboard and mouse.  (I am a klutz
    >    with a trackpad.)  Email and IM covering one screen, browsers and
    >    anoraK covering the other.  Sort of like a dual-head laptop.
    > 
    > You can think of it as a way to create a multihead display without
    > special video cards.  Or you can think of it as a way to get Windows
    > and Linux on separate screens of one display.  (I'm using "display"
    > in the X Windows sense of one user, one keyboard, and one or more
    > monitors and mice.)
    > 
    > If you don't crave more screen real estate, it probably doesn't
    > seem very valuable.
    > 
    > -- 
    > Bob Miller                              K<bob>
    >                                         kbob at jogger-egg.com
    > _______________________________________________
    > EUGLUG mailing list
    > euglug at euglug.org
    > http://www.euglug.org/mailman/listinfo/euglug