Dear brothers.<br><br>one office with ADSL is using ADSL modem. interfaces are two ports for phone line in and out and RJ45 port link from which we can use internet. THat adsl is DHCP client IP with authentication of username and password.<br>

<br>the other is broadband with static IP with which we can enter on client to use internet<br>.<br><br>I wanna use is like below<br><br>side A clients<--------VPN1(ubuntu box)---------VPN2(UBuntu)----------> side B clients<br>

<br>the main reason is to share everything between two offices. mainly file share and local messaging.<br><br><br>thanks<br><br><br><br><br><br><br><br><br><br><div class="gmail_quote">On Wed, Jan 27, 2010 at 8:28 AM,  <span dir="ltr"><<a href="mailto:ubuntu-users-request@lists.ubuntu.com">ubuntu-users-request@lists.ubuntu.com</a>></span> wrote:<br>

<blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;">Send ubuntu-users mailing list submissions to<br>
        <a href="mailto:ubuntu-users@lists.ubuntu.com">ubuntu-users@lists.ubuntu.com</a><br>
<br>
To subscribe or unsubscribe via the World Wide Web, visit<br>
        <a href="https://lists.ubuntu.com/mailman/listinfo/ubuntu-users" target="_blank">https://lists.ubuntu.com/mailman/listinfo/ubuntu-users</a><br>
or, via email, send a message with subject or body 'help' to<br>
        <a href="mailto:ubuntu-users-request@lists.ubuntu.com">ubuntu-users-request@lists.ubuntu.com</a><br>
<br>
You can reach the person managing the list at<br>
        <a href="mailto:ubuntu-users-owner@lists.ubuntu.com">ubuntu-users-owner@lists.ubuntu.com</a><br>
<br>
When replying, please edit your Subject line so it is more specific<br>
than "Re: Contents of ubuntu-users digest..."<br>
<br>Today's Topics:<br>
<br>
   1. Re: questions on dedicated VPN link (Christopher Chan)<br>
   2. Re: How to monitor server availability and send alert via SMS<br>
      when      down (Brian McKee)<br>
   3. Re: Resizing ext4 partition (Karl F. Larsen)<br>
   4. Re: ls (Amedee Van Gasse (ub))<br>
   5. Re: ls (Linda)<br>
   6. Re: ls (Demis Cunha)<br>
   7. How to install latest version of Firefox? (Ziaus Samad)<br>
   8. Re: ls (Amedee Van Gasse (ub))<br>
   9. Re: ls (Amedee Van Gasse (ub))<br>
<br><br>---------- Forwarded message ----------<br>From: Christopher Chan <<a href="mailto:christopher.chan@bradbury.edu.hk">christopher.chan@bradbury.edu.hk</a>><br>To: <a href="mailto:ubuntu-users@lists.ubuntu.com">ubuntu-users@lists.ubuntu.com</a><br>

Date: Wed, 27 Jan 2010 08:59:13 +0800<br>Subject: Re: questions on dedicated VPN link<br>Nay Myo Win wrote:<br>
<blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;">
Dear brothers.<br>
<br>
I have two offices and both have their own internet access.<br>
One has ADSL and the other has broadband. Internet Service Provider is the same for both and they allow only HTTP and HTTPS ports. other ports are banned.<br>
</blockquote>
<br>
Do you have fixed ip addresses for both offices? Or at least a fix ip address?<br>
<br>
<br>
<blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;">
I now would like to create VPN links between two offices placing each UBuntu VPN server with OpenVPN on each office. Is that possible? Please suggest me how to? I am very new to linux and VPN.<br>
</blockquote>
<br>
<br>
<br>
It is possible but you have certain criteria before it can work. If both offices are using a router, you need access to those routers to setup routing rules. Or you have to use the Ubuntu VPN boxes as the routers. I hope you are not new to networking also. If you are new at all this, you must be prepared to spend time learning (could take a week or more) or you might be better off hiring an expert. Again, if you are using routers and they are supplied by the ISP, then you need access to those routers.<br>


<br>
<br>
<br><br>---------- Forwarded message ----------<br>From: Brian McKee <<a href="mailto:brian.mckee@gmail.com">brian.mckee@gmail.com</a>><br>To: "Ubuntu user technical support, not for general discussions" <<a href="mailto:ubuntu-users@lists.ubuntu.com">ubuntu-users@lists.ubuntu.com</a>><br>

Date: Tue, 26 Jan 2010 20:27:13 -0500 (EST)<br>Subject: Re: How to monitor server availability and send alert via SMS when down<br><blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;">

<blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;"><blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;">


Do anyone know how to monitor server availability and send alert via SMS<br>
when down?<br>
</blockquote>
You can try to monitor the availability via cacti/nagios/zabbix. But the<br>
onlything I could dowith them was to send e-mails, not SMSs.<br>
</blockquote>
many cellphone companies have email to sms gateways. thats how i do it for work.<br>
</blockquote>
<br>
Now that I'm not typing on a cell phone I would point out this page<br>
<a href="http://en.wikipedia.org/wiki/List_of_carriers_providing_SMS_transit" target="_blank">http://en.wikipedia.org/wiki/List_of_carriers_providing_SMS_transit</a><br><br>---------- Forwarded message ----------<br>From: "Karl F. Larsen" <<a href="mailto:klarsen1@gmail.com">klarsen1@gmail.com</a>><br>

To: "Ubuntu user technical support, not for general discussions" <<a href="mailto:ubuntu-users@lists.ubuntu.com">ubuntu-users@lists.ubuntu.com</a>><br>Date: Wed, 27 Jan 2010 01:40:43 -0700<br>Subject: Re: Resizing ext4 partition<br>

Wade Smart wrote:<br>
<blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;"><blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;">


--<br>
ubuntu-users mailing list<br>
<a href="mailto:ubuntu-users@lists.ubuntu.com" target="_blank">ubuntu-users@lists.ubuntu.com</a><br>
Modify settings or unsubscribe at: <a href="https://lists.ubuntu.com/mailman/listinfo/ubuntu-users" target="_blank">https://lists.ubuntu.com/mailman/listinfo/ubuntu-users</a><br>
<br>
</blockquote>
<br>
Karl, youre suck a fucking ass to everyone.<br>
I already told you - THERE WAS NOT THE OPTION TO RESIZE.<br>
The extended partition was LOCKED. Can you not get that?<br>
Linux swap is IN the extended partition so, by turning it off it<br>
worked just fine.<br>
Get the freak over yourself.<br>
<br>
Wade<br>
<br>
</blockquote>
        Wade you are the most unhappy and stupid person on this list. I am VERY sorry I tried to help you. Take your cuss words and problems to others.<br>
<br>
73 Karl<br>
<br>
<br>
<br>
<br>
<br>
<br>
<br>
<br>
<br>
<br>
<br>
<br>
<br>
<br>
<br>
<br>
<br>
<br>
-- <br>
<br>
        Karl F. Larsen, AKA K5DI<br>
        Linux User<br>
        #450462   <a href="http://counter.li.org" target="_blank">http://counter.li.org</a>.<br>
        Key ID = 3951B48D<br>
<br>
<br>
<br>
<br><br>---------- Forwarded message ----------<br>From: "Amedee Van Gasse (ub)" <<a href="mailto:amedee-ubuntu@amedee.be">amedee-ubuntu@amedee.be</a>><br>To: <a href="mailto:ubuntu-users@lists.ubuntu.com">ubuntu-users@lists.ubuntu.com</a><br>

Date: Wed, 27 Jan 2010 02:43:06 +0100 (CET)<br>Subject: Re: ls<br>On Wed, January 27, 2010 01:46, nepal wrote:<br>
> On Tuesday 26 Jan 2010 23:39:10 Amedee Van Gasse (ub) wrote:<br>
>> On Tue, January 26, 2010 23:12, nepal wrote:<br>
>> > On Tuesday 26 Jan 2010 21:03:53 Linda wrote:<br>
>> >> Is there a way to make ls silent if there is no match? I'm not<br>
>> >>  finding  it in the options, but am hoping I'm just reading over<br>
>> >> it in the man page. Thanks<br>
>> >>           Linda<br>
>> ><br>
>> > Hi Linda<br>
>> ><br>
>> > File a bug report!<br>
>> ><br>
>> > The correct response to *ls* for a non-existent target should be<br>
>> > an empty list.<br>
>><br>
>> Not true. For example:<br>
>><br>
>> amedee@intrepid:~/download$ ls q*<br>
>> ls: kan geen toegang krijgen tot q*: Bestand of map bestaat niet<br>
><br>
> I have no idea what that is supposed to mean? If you say it is not<br>
> true can you *explain* please.<br>
<br>
This is the first time ever that I had to dig up the source of a program<br>
to settle an argument. I hope it will be the last time too...<br>
<br>
In the coreutils source, in ls.c, you will find the following piece of<br>
code starting on line 2818:<br>
<br>
<br>
      if (err != 0)<br>
        {<br>
          /* Failure to stat a command line argument leads to<br>
             an exit status of 2.  For other files, stat failure<br>
             provokes an exit status of 1.  */<br>
          file_failure (command_line_arg,<br>
                        _("cannot access %s"), absolute_name);<br>
          if (command_line_arg)<br>
            return 0;<br>
<br>
          f->name = xstrdup (name);<br>
          cwd_n_used++;<br>
<br>
          return 0;<br>
        }<br>
<br>
<br>
You see, nepal? If ls can't stat an argument (like a filename with or<br>
without wildcard), it will throw an error. Statting a file means getting<br>
its properties from the filesystem.<br>
<br>
> Let me put it another way then, the command "ls" is supposed to return<br>
> a list, that is the meaning of the shortened version of the word list<br>
> (ls).<br>
<br>
I am not an idiot, nepal. I have taken AND passed an LPI exam. (Linux<br>
Professionals Institute)<br>
<br>
> The command is not supposed to make clever comments like I<br>
> cannot find what you asked for. That is not what was asked for.<br>
<br>
That's not what the source code says, and the source code is always right.<br>
Of course there is a remote possibility that you have hacked your version<br>
of ls and that you have stripped it from all error reporting, but I find<br>
that very unlikely.<br>
<br>
> Talk to<br>
> it like it is an idiot. "ls" is a command. I command you (computer) to<br>
> list whatever you find at this location.<br>
<br>
Your comment is not very helpful for Linda (topicstarter).<br>
<br>
> Then fancy options like having a message display upon returned errors<br>
> can be provided to give the user the appropriate level of choice for<br>
> information returned. But the default should be the basic primary<br>
> function which is to return a list of a given location.<br>
<br>
Again, not helpful for Linda.<br>
<br>
>> As an alternative, you could use find with xargs and feed that to<br>
>>  ls. If find doesn't find anything, nothing will be sent to ls and<br>
>>  no output will be produced.<br>
>> As an additional advantage, this solves problems when you have<br>
>>  directories with thousands or millions of files.<br>
>><br>
> So I maintain that no output should be produced other than the actual<br>
> listing of a location, unless specifically requested by the user.<br>
> Actually providing information not asked for is a coder's problem (I<br>
> used to be but happily gave it up), it has now got to the point where<br>
> it has its own name, software bloat.<br>
<br>
Again, wrong. Basic error reporting is part of normal program operation,<br>
and Linux even makes it easy by giving us not one but two outputs: out<br>
(first output) and err (second output). By default, output 1 and 2 are<br>
both printed to the console, but they can be redirected.<br>
<br>
That's why Werner's suggestion will probably be the simplest solution for<br>
Linda: just redirect the error output (second output) to something else<br>
than the console, for example to /dev/null aka the bit bucket:<br>
<br>
ls [non-existing filename] 2>/dev/null<br>
<br>
<br>
For me this thread is closed. Linda has an answer that will work (Linda,<br>
please say so if you still have problems). I'm not interested in further<br>
discussion because that does not help Linda.<br>
<br>
--<br>
Amedee<br>
<br>
<br>
<br>
<br><br>---------- Forwarded message ----------<br>From: Linda <<a href="mailto:haniganwork@earthlink.net">haniganwork@earthlink.net</a>><br>To: "Ubuntu user technical support, not for general discussions" <<a href="mailto:ubuntu-users@lists.ubuntu.com">ubuntu-users@lists.ubuntu.com</a>><br>

Date: Tue, 26 Jan 2010 19:50:19 -0600<br>Subject: Re: ls<br>Werner Schram wrote:<br>
<blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;">
nepal wrote:<br>
  <br>
<blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;">
On Tuesday 26 Jan 2010 21:03:53 Linda wrote:<br>
      <br>
<blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;">
Is there a way to make ls silent if there is no match? I'm not<br>
 finding  it in the options, but am hoping I'm just reading over it<br>
 in the man page. Thanks<br>
          Linda<br>
<br>
          <br>
</blockquote>
Hi Linda<br>
<br>
File a bug report!<br>
<br>
The correct response to *ls* for a non-existent target should be an empty list.<br>
<br>
nepal.<br>
      <br>
</blockquote>
ls does print an error message if you provide a filter which doesn't yield a result (ls: cannot access ...: no such file or directory). I think she is refering to that. But because the error message is sent to the standard error output, you can dispose of it by using:<br>


<br>
ls [non-existing filename] 2>/dev/null<br>
<br>
Werner<br>
<br>
  <br>
</blockquote>
The cannot access is the message I was refering to. I was using an ls system call inside of a program.<br>
ls -1 partial-filename*<br>
it dumps the results into a file and gives the user a list to choose from.  I just was hoping for a flag to silence the error message but I can redirect standard error instead.<br>
                           Thanks<br>
                            Linda<br>
<br>
<br>
<br><br>---------- Forwarded message ----------<br>From: Demis Cunha <<a href="mailto:demisc@terra.com.br">demisc@terra.com.br</a>><br>To: "Ubuntu user technical support, not for general discussions" <<a href="mailto:ubuntu-users@lists.ubuntu.com">ubuntu-users@lists.ubuntu.com</a>><br>

Date: Tue, 26 Jan 2010 23:53:14 -0200<br>Subject: Re: ls<br>Linda,<br>
<br>
If you wrinting a script you could use perl for that. Then you could<br>
load the list of files in a array, sort that array and print for the<br>
user.<br>
Just a tip! ;)<br>
<br>
Em Ter, 2010-01-26 às 19:50 -0600, Linda escreveu:<br>
> Werner Schram wrote:<br>
> > nepal wrote:<br>
> ><br>
> >> On Tuesday 26 Jan 2010 21:03:53 Linda wrote:<br>
> >><br>
> >><br>
> >>> Is there a way to make ls silent if there is no match? I'm not<br>
> >>>  finding  it in the options, but am hoping I'm just reading over it<br>
> >>>  in the man page. Thanks<br>
> >>>           Linda<br>
> >>><br>
> >>><br>
> >>><br>
> >> Hi Linda<br>
> >><br>
> >> File a bug report!<br>
> >><br>
> >> The correct response to *ls* for a non-existent target should be an<br>
> >> empty list.<br>
> >><br>
> >> nepal.<br>
> >><br>
> >><br>
> > ls does print an error message if you provide a filter which doesn't<br>
> > yield a result (ls: cannot access ...: no such file or directory). I<br>
> > think she is refering to that. But because the error message is sent to<br>
> > the standard error output, you can dispose of it by using:<br>
> ><br>
> > ls [non-existing filename] 2>/dev/null<br>
> ><br>
> > Werner<br>
> ><br>
> ><br>
> The cannot access is the message I was refering to. I was using an ls<br>
> system call inside of a program.<br>
> ls -1 partial-filename*<br>
> it dumps the results into a file and gives the user a list to choose<br>
> from.  I just was hoping for a flag to silence the error message but I<br>
> can redirect standard error instead.<br>
>                             Thanks<br>
>                              Linda<br>
><br>
<br>
<br>
<br>
<br>
<br><br>---------- Forwarded message ----------<br>From: Ziaus Samad <<a href="mailto:ziaus_samad@yahoo.com">ziaus_samad@yahoo.com</a>><br>To: <a href="mailto:ubuntu-users@lists.ubuntu.com">ubuntu-users@lists.ubuntu.com</a><br>

Date: Tue, 26 Jan 2010 17:55:54 -0800 (PST)<br>Subject: How to install latest version of Firefox?<br>I cant install laest version of firefox.I use Ubuntu 9.04.How can i install it?<br>
<br>
<br>
<br>
      Get your preferred Email name!<br>
Now you can @<a href="http://ymail.com" target="_blank">ymail.com</a> and @<a href="http://rocketmail.com" target="_blank">rocketmail.com</a>.<br>
<a href="http://mail.promotions.yahoo.com/newdomains/aa/" target="_blank">http://mail.promotions.yahoo.com/newdomains/aa/</a><br>
<br>
<br>
<br><br>---------- Forwarded message ----------<br>From: "Amedee Van Gasse (ub)" <<a href="mailto:amedee-ubuntu@amedee.be">amedee-ubuntu@amedee.be</a>><br>To: <a href="mailto:ubuntu-users@lists.ubuntu.com">ubuntu-users@lists.ubuntu.com</a><br>

Date: Wed, 27 Jan 2010 02:56:20 +0100 (CET)<br>Subject: Re: ls<br>On Wed, January 27, 2010 02:50, Linda wrote:<br>
> Werner Schram wrote:<br>
<br>
>> ls does print an error message if you provide a filter which doesn't<br>
>> yield a result (ls: cannot access ...: no such file or directory). I<br>
>> think she is refering to that. But because the error message is sent to<br>
>> the standard error output, you can dispose of it by using:<br>
>><br>
>> ls [non-existing filename] 2>/dev/null<br>
>><br>
>> Werner<br>
>><br>
>><br>
> The cannot access is the message I was referring to. I was using an ls<br>
> system call inside of a program.<br>
> ls -1 partial-filename*<br>
> it dumps the results into a file and gives the user a list to choose<br>
> from.  I just was hoping for a flag to silence the error message but I<br>
> can redirect standard error instead.<br>
<br>
Yes.<br>
Linux has built-in separation between normal output and error output, so<br>
programs don't have to provide special flags. The user only has to use the<br>
built-in output redirection. That will work for all programs and the<br>
programmers don't need to define extra flags.<br>
<br>
Isn't Linux great? :-)<br>
<br>
--<br>
Amedee<br>
<br>
<br>
<br>
<br><br>---------- Forwarded message ----------<br>From: "Amedee Van Gasse (ub)" <<a href="mailto:amedee-ubuntu@amedee.be">amedee-ubuntu@amedee.be</a>><br>To: <a href="mailto:ubuntu-users@lists.ubuntu.com">ubuntu-users@lists.ubuntu.com</a><br>

Date: Wed, 27 Jan 2010 02:58:01 +0100 (CET)<br>Subject: Re: ls<br>On Wed, January 27, 2010 02:53, Demis Cunha wrote:<br>
> Linda,<br>
><br>
> If you write a script you could use perl for that. Then you could<br>
> load the list of files in a array, sort that array and print for the<br>
> user.<br>
<br>
That is almost identical to my suggestion with find and xargs. Same<br>
approach, different language (bash vs perl).<br>
<br>
--<br>
Amedee<br>
<br>
<br>
<br>
<br>--<br>
ubuntu-users mailing list<br>
<a href="mailto:ubuntu-users@lists.ubuntu.com">ubuntu-users@lists.ubuntu.com</a><br>
Modify settings or unsubscribe at: <a href="https://lists.ubuntu.com/mailman/listinfo/ubuntu-users" target="_blank">https://lists.ubuntu.com/mailman/listinfo/ubuntu-users</a><br>
<br></blockquote></div><br>