Re: [CentOS] Linux TCP flaw

2016-08-11 Thread Barry Brimer

Hi

So after reading this, felt I should apply the fix to a CentOS6 VPS that I 
have.

http://www.zdnet.com/article/linux-tcp-flaw-lets-anyone-hijack-internet-traffic/

The article doesn't talk about CentOS or Redhat, but I assume the problem is 
the same, and hoping the solution is the same.

However that doesn't seem to be the case.

[root@vps ~]# uname -r
2.6.32-042stab108.7


Not needed. This affects 3.6+ kernels. You don't have one of those.
___
CentOS mailing list
CentOS@centos.org
https://lists.centos.org/mailman/listinfo/centos


Re: [CentOS] Linux TCP flaw

2016-08-11 Thread Peter
On 12/08/16 17:33, Andrew Dent wrote:
> So after reading this, felt I should apply the fix to a CentOS6 VPS that
> I have.
> http://www.zdnet.com/article/linux-tcp-flaw-lets-anyone-hijack-internet-traffic/
> 
> [root@vps ~]# uname -r
> 2.6.32-042stab108.7

That's not a CentOS kernel, it's an openvz kernel that is not provided
by CentOS.  The fixes and workarounds shown on the internet will not
work with that kernel.

I suggest you find a better VPS provider, what you have is essentially a
glorified chroot, not a real VPS and there are many aspects of CentOS
that are simply broken in that model.


Peter
___
CentOS mailing list
CentOS@centos.org
https://lists.centos.org/mailman/listinfo/centos


[CentOS] Linux TCP flaw

2016-08-11 Thread Andrew Dent

Hi

So after reading this, felt I should apply the fix to a CentOS6 VPS that 
I have.

http://www.zdnet.com/article/linux-tcp-flaw-lets-anyone-hijack-internet-traffic/

The article doesn't talk about CentOS or Redhat, but I assume the 
problem is the same, and hoping the solution is the same.

However that doesn't seem to be the case.

[root@vps ~]# uname -r
2.6.32-042stab108.7
[root@vps ~]# sysctl -a | grep ack_limit
net.ipv4.tcp_challenge_ack_limit = 100
[root@vps ~]# vi /etc/sysctl.conf
> Append
> net.ipv4.tcp_challenge_ack_limit = 9
> to end of file
[root@vps ~]# sysctl -p
net.ipv4.ip_forward = 0
net.ipv4.tcp_syncookies = 1
error: permission denied on key 'net.bridge.bridge-nf-call-ip6tables'
error: permission denied on key 'net.bridge.bridge-nf-call-iptables'
error: permission denied on key 'net.bridge.bridge-nf-call-arptables'
error: permission denied on key 'net.ipv4.tcp_challenge_ack_limit'
[root@vps ~]# sysctl -a | grep ack_limit
net.ipv4.tcp_challenge_ack_limit = 100

Am I getting a permission denied because of there is a different 
solution, or the problem doesn't apply to our VPS or some other reason?


Regards

Andrew Dent
___
CentOS mailing list
CentOS@centos.org
https://lists.centos.org/mailman/listinfo/centos


Re: [CentOS] howto install yumex

2016-08-11 Thread geo.inbox.ignored


On 08/11/2016 10:33 PM, Peter wrote:
> On 12/08/16 13:51, geo.inbox.ignored wrote:
>> now, what is command to install nux-dextop?
>
> https://li.nux.ro/repos.html
>
===>

thank you. that link was better than a command.

now have it bookmarked, page saved local and bookmarked.

also have both yumex and vlc installed and working.

greatly appreciate all your help and rest of repliers.

biggest upset in trying to get all this back together is that i had done
it all before on a desktop tower with very little need of help. that was
before having gone thru chemo treatment for lymphoma.

for many years i had 'near photographic' memory. recall was not a problem.
now, if i think of something i need to do in another room, just as soon as
i pass thru a doorway, i forget why i am there. about the only thing i do
not forget is when i need to go to bathroom. :=)

with having a chemo brain, i do not recommend anyone accepting chemo
treatment. have cancer cut out, magnetic radiation. better yet, if one
is receptive to such, hemp oil treatment and enjoy getting rid of
cancer. 8=)

thanks again.


-- 

peace out.

CentOS GNU/Linux 6.8

tc,hago.

g
.

=+=
Tired of having your microsoft os hacked?
Change to Linux os, used by microsoft hackers.
=+=
in a world with out fences, who needs gates.
=+=

___
CentOS mailing list
CentOS@centos.org
https://lists.centos.org/mailman/listinfo/centos


[CentOS] how to install opencl on centos 6.7

2016-08-11 Thread qw
Hi,

I'm building x264, and want to use opencl acceleration function. How to install 
opencl on centos 6.7 to support intel integrated GPUs for 'Intel(R) Xeon(R) CPU 
E5-2640 v3'?

Thanks!

Regards

andrew





 
___
CentOS mailing list
CentOS@centos.org
https://lists.centos.org/mailman/listinfo/centos


[CentOS] how to install opencl on centos 6.7

2016-08-11 Thread qw
Hi,

I'm building x264, and want to use opencl acceleration function. How to install 
opencl on centos 6.7 to support intel integrated cpu for 'Intel(R) Xeon(R) CPU 
E5-2640 v3'?

Thanks!

Regards

andrew
___
CentOS mailing list
CentOS@centos.org
https://lists.centos.org/mailman/listinfo/centos


Re: [CentOS] howto install yumex

2016-08-11 Thread Peter
On 12/08/16 13:51, geo.inbox.ignored wrote:
> now, what is command to install nux-dextop?

https://li.nux.ro/repos.html


Peter
___
CentOS mailing list
CentOS@centos.org
https://lists.centos.org/mailman/listinfo/centos


Re: [CentOS] Software RAID and GRUB on CentOS 7

2016-08-11 Thread Rob Kampen

On 12/08/16 01:20, William A. Mahaffey III wrote:

On 08/11/16 02:33, Nicolas Kovacs wrote:

Hi,

When I perform a software RAID 1 or RAID 5 installation on a LAN server
with several hard disks, I wonder if GRUB already gets installed on each
individual MBR, or if I have to do that manually. On CentOS 5.x and 6.x,
this had to be done like this:

# grub
grub> device (hd0) /dev/sda
grub> device (hd1) /dev/sdb
grub> root (hd0,0)
grub> setup (hd0)
grub> root (hd1,0)
grub> setup (hd1)
grub> quit

I'd like my server to be able to boot a degraded software RAID after an
eventual hard disk failure.

Any suggestions?

Niki Kovacs


I have an aging FC14 () system, w/ mdadm RAID partitions. I have 
/boot setup as mdadm RAID1's, 2 drives (actually partitions). Machine 
boots AOK, & I believe it does (& maintains) that setup automatically. 
I got that recommendation from a mailing list ages ago, can't remember 
where, sorry. $0.02, no more, no less 



[root@Q6600:/etc, Thu Aug 11, 08:25 AM] 1018 # df -h
FilesystemTypeSize  Used Avail Use% Mounted on
/dev/md1  ext4917G  8.0G  863G   1% /
tmpfstmpfs4.0G 0  4.0G   0% /dev/shm
/dev/md0  ext4186M   60M  117M  34% /boot
/dev/md3  ext41.8T  1.4T  333G  81% /home
[root@Q6600:/etc, Thu Aug 11, 08:26 AM] 1019 # uname -a
Linux Q6600 2.6.35.14-106.fc14.x86_64 #1 SMP Wed Nov 23 13:07:52 UTC 
2011 x86_64 x86_64 x86_64 GNU/Linux

[root@Q6600:/etc, Thu Aug 11, 08:26 AM] 1020 #


I too use this kind of set up. however I do not believe that anything on 
the MBR is updated automatically by any yum/rpm updates. Thus in this 
kind of a setup, one needs to take manual steps.

HTH
Rob
___
CentOS mailing list
CentOS@centos.org
https://lists.centos.org/mailman/listinfo/centos


Re: [CentOS] howto install yumex

2016-08-11 Thread geo.inbox.ignored


On 08/11/2016 04:09 PM, Peter wrote:
> On 12/08/16 05:53, geo.inbox.ignored wrote:
>>> If you do:
>>>
>>> yum install epel-release
>>>
>>> you should get the key installed.
>>>
>> Installing:
>>  epel-releasenoarch6-8epel 
>> 14 k
>>
>> GPG key retrieval failed: [Errno 14] Could not open/read
>> file:///etc/pki/rpm-gpg/RPM-GPG-KEY-EPEL-6
>
> You incorrectly attempted to install epel already and it's interfering.
> Try this:
>
> yum --disablerepo=epel --enablerepo=extras install epel-release
>
===>

that fixed it for epel repo.

now, what is command to install nux-dextop?

would like to install vlc and a couple other packages i had before that
i pulled from nux-dextop.




> 
> Peter
> ___
> CentOS mailing list
> CentOS@centos.org
> https://lists.centos.org/mailman/listinfo/centos
> 

-- 

peace out.

CentOS GNU/Linux 7.1511

tc,hago.

g
.

=+=
Tired of having your microsoft os hacked?
Change to Linux os, used by microsoft hackers.
=+=
in a world with out fences, who needs gates.
=+=

___
CentOS mailing list
CentOS@centos.org
https://lists.centos.org/mailman/listinfo/centos


Re: [CentOS] script to make webpage snapshot

2016-08-11 Thread Mark Parsons
First time on this list, sorry if I mess up on something.

I use http://wkhtmltopdf.org/ there is a to image version as well. I
haven't had any trouble with it. I've mostly used on Windows but there are
Linux versions.

On Aug 11, 2016 7:09 PM, "Kahlil Hodgson" 
wrote:

> I have some some angularjs sites that I test with protractor and a
> chrome webdriver. I read in the docs at some point that I could take
> and save screenshots if I wanted. You may be able to write a simple
> nodejs script to kick of the webdriver and take the screenhsot.  Or
> someone may have already writen one :-)
>
> https://www.seleniumeasy.com/selenium-tutorials/take-
> screenshot-with-selenium-webdriver
> ___
> CentOS mailing list
> CentOS@centos.org
> https://lists.centos.org/mailman/listinfo/centos
>
___
CentOS mailing list
CentOS@centos.org
https://lists.centos.org/mailman/listinfo/centos


Re: [CentOS] script to make webpage snapshot

2016-08-11 Thread Kahlil Hodgson
I have some some angularjs sites that I test with protractor and a
chrome webdriver. I read in the docs at some point that I could take
and save screenshots if I wanted. You may be able to write a simple
nodejs script to kick of the webdriver and take the screenhsot.  Or
someone may have already writen one :-)

https://www.seleniumeasy.com/selenium-tutorials/take-screenshot-with-selenium-webdriver
___
CentOS mailing list
CentOS@centos.org
https://lists.centos.org/mailman/listinfo/centos


Re: [CentOS] script to make webpage snapshot

2016-08-11 Thread Frank Cox
On Thu, 11 Aug 2016 17:19:15 -0500 (CDT)
Valeri Galtsev wrote:

> This involves a person sitting with open web browser and clicking mouse. I
> need to do it for a few webpages once a day, as they change daily. I
> prefer to once spend time on making cron job, and forget about it forever.
> Hence I need it done from command line.

html2ps followed by pstoimg and/or imagemagick to create a graphic from the 
postscript.

-- 
MELVILLE THEATRE ~ Real D 3D Digital Cinema ~ www.melvilletheatre.com
___
CentOS mailing list
CentOS@centos.org
https://lists.centos.org/mailman/listinfo/centos


Re: [CentOS] script to make webpage snapshot

2016-08-11 Thread Valeri Galtsev

On Thu, August 11, 2016 5:27 pm, John R Pierce wrote:
> On 8/11/2016 3:10 PM, Valeri Galtsev wrote:
>> I usually am not good at explaining what I need. I really only need an
>> image of what one would see in web browser if one point to that URL. I
>> do
>> not care it to be interactive. I also don't want to get the content
>> ("mirror") of stuff that URL points to on variety of "depths" - I don't
>> want to use wget or curl for this reason. That is what I tried first and
>> it breaks with at lest one of the web sites - they do seem protect
>> themselves from "robots" or similar. And we don't need it. We just need
>> to
>> show what they page shows today, that's all.
>
> then screen capture is about it too many sites, ALL the content is
> dynamic, for instance,
> https://www.google.com/maps/@36.9460899,-122.0268105,664a,20y,41.31t/data=!3m1!1e3
>
> that page is composed of tiles of image data superimposed on the fly
> with ajax code running in the browser to fetch the layers displayed.
>
> you simply can't fetch the html and make any sense out of it, the
> browser is running a complex application to display that.
>

Yes, I understand as much, thanks. I'm still sure it is not hopeless task.

Valeri


Valeri Galtsev
Sr System Administrator
Department of Astronomy and Astrophysics
Kavli Institute for Cosmological Physics
University of Chicago
Phone: 773-702-4247

___
CentOS mailing list
CentOS@centos.org
https://lists.centos.org/mailman/listinfo/centos


Re: [CentOS] script to make webpage snapshot

2016-08-11 Thread John R Pierce

On 8/11/2016 3:10 PM, Valeri Galtsev wrote:

I usually am not good at explaining what I need. I really only need an
image of what one would see in web browser if one point to that URL. I do
not care it to be interactive. I also don't want to get the content
("mirror") of stuff that URL points to on variety of "depths" - I don't
want to use wget or curl for this reason. That is what I tried first and
it breaks with at lest one of the web sites - they do seem protect
themselves from "robots" or similar. And we don't need it. We just need to
show what they page shows today, that's all.


then screen capture is about it too many sites, ALL the content is 
dynamic, for instance, 
https://www.google.com/maps/@36.9460899,-122.0268105,664a,20y,41.31t/data=!3m1!1e3


that page is composed of tiles of image data superimposed on the fly 
with ajax code running in the browser to fetch the layers displayed.


you simply can't fetch the html and make any sense out of it, the 
browser is running a complex application to display that.



--
john r pierce, recycling bits in santa cruz

___
CentOS mailing list
CentOS@centos.org
https://lists.centos.org/mailman/listinfo/centos


Re: [CentOS] script to make webpage snapshot

2016-08-11 Thread Michael Abbondanza
Could try https://screenshotlayer.com/

I have had success automating their API.

On Thu, Aug 11, 2016 at 3:19 PM, Valeri Galtsev 
wrote:

>
>
> On Thu, August 11, 2016 5:13 pm, Dave Stevens wrote:
> > Quoting Valeri Galtsev :
> >
> >>
> >> On Thu, August 11, 2016 5:02 pm, John R Pierce wrote:
> >>> On 8/11/2016 1:46 PM, Valeri Galtsev wrote:
>  Could someone recommend a script or utility one can run from command
> line
>  on Linux or UNIX machine to make a snapshot of webpage?
> 
>  We have a signage (xibo) and whoever creates/changes content, likes
> to add
>  URLs of some webpages there. All works well if these are webpages on
> our
>  servers (which are pretty fast), but some external servers often take
> time
>  to respond and take time to assemble the page, in addition these
> servers
>  sometimes get really busy, and when response is longer than time
> devoted
>  for that content in signage window, this window hangs forever with
> blank
>  white field until you restart client. Trivial workaround: just to get
> snapshot (as, say daily cron job), and point signage client to that
> snapshot definitely will solve it, and simultaneously we will stop
> bugging
>  other people servers often without much need for it.
> 
>  But when I tried to search for some utility or script that makes
> webpage
>  snapshot, I discovered that my ability to search degraded somehow...
> >>>
> >>> many/most webpages these days are heavily dynamic content, a static
> snapshot would likely break.  plus any site-relative links on that
> snapshot would be pointing to your server, not the original, any ajax
> code on that webpage would try to interact with your server which
> won't be running the right back end stuff, etcetc.
> >>
> >> I usually am not good at explaining what I need. I really only need an
> image of what one would see in web browser if one point to that URL. I
> do
> >> not care it to be interactive. I also don't want to get the content
> ("mirror") of stuff that URL points to on variety of "depths" - I don't
> want to use wget or curl for this reason. That is what I tried first
> and it breaks with at lest one of the web sites - they do seem protect
> themselves from "robots" or similar. And we don't need it. We just need
> to
> >> show what they page shows today, that's all.
> >>
> >> Valeri
> >
> > why not File -> Print -> .pdf?
>
> This involves a person sitting with open web browser and clicking mouse. I
> need to do it for a few webpages once a day, as they change daily. I
> prefer to once spend time on making cron job, and forget about it forever.
> Hence I need it done from command line.
>
> Valeri
>
> >
> > D
> >
> >>
> >>>
> >>> --
> >>> john r pierce, recycling bits in santa cruz
> >>>
> >>
> >>
> >> 
> >> Valeri Galtsev
> >> Sr System Administrator
> >> Department of Astronomy and Astrophysics
> >> Kavli Institute for Cosmological Physics
> >> University of Chicago
> >> Phone: 773-702-4247
> >> 
> >> ___
> >> CentOS mailing list
> >> CentOS@centos.org
> >> https://lists.centos.org/mailman/listinfo/centos
> >>
> >
> >
> >
> > --
> > "As long as politics is the shadow cast on society by big business, the
> attenuation of the shadow will not change the substance."
> >
> > -- John Dewey
> >
> >
> >
> >
> >
>
>
> 
> Valeri Galtsev
> Sr System Administrator
> Department of Astronomy and Astrophysics
> Kavli Institute for Cosmological Physics
> University of Chicago
> Phone: 773-702-4247
> 
>
> ___
> CentOS mailing list
> CentOS@centos.org
> https://lists.centos.org/mailman/listinfo/centos
>



-- 

Michael Abbondanza

Technical Support Engineer

408-479-2207


Now Available - Free Hadoop On-Demand Training

___
CentOS mailing list
CentOS@centos.org
https://lists.centos.org/mailman/listinfo/centos


Re: [CentOS] script to make webpage snapshot

2016-08-11 Thread Valeri Galtsev


On Thu, August 11, 2016 5:13 pm, Dave Stevens wrote:
> Quoting Valeri Galtsev :
>
>>
>> On Thu, August 11, 2016 5:02 pm, John R Pierce wrote:
>>> On 8/11/2016 1:46 PM, Valeri Galtsev wrote:
 Could someone recommend a script or utility one can run from command
line
 on Linux or UNIX machine to make a snapshot of webpage?

 We have a signage (xibo) and whoever creates/changes content, likes
to add
 URLs of some webpages there. All works well if these are webpages on our
 servers (which are pretty fast), but some external servers often take
time
 to respond and take time to assemble the page, in addition these servers
 sometimes get really busy, and when response is longer than time devoted
 for that content in signage window, this window hangs forever with blank
 white field until you restart client. Trivial workaround: just to get
snapshot (as, say daily cron job), and point signage client to that
snapshot definitely will solve it, and simultaneously we will stop
bugging
 other people servers often without much need for it.

 But when I tried to search for some utility or script that makes webpage
 snapshot, I discovered that my ability to search degraded somehow...
>>>
>>> many/most webpages these days are heavily dynamic content, a static
snapshot would likely break.  plus any site-relative links on that
snapshot would be pointing to your server, not the original, any ajax
code on that webpage would try to interact with your server which
won't be running the right back end stuff, etcetc.
>>
>> I usually am not good at explaining what I need. I really only need an
image of what one would see in web browser if one point to that URL. I
do
>> not care it to be interactive. I also don't want to get the content
("mirror") of stuff that URL points to on variety of "depths" - I don't
want to use wget or curl for this reason. That is what I tried first
and it breaks with at lest one of the web sites - they do seem protect
themselves from "robots" or similar. And we don't need it. We just need
to
>> show what they page shows today, that's all.
>>
>> Valeri
>
> why not File -> Print -> .pdf?

This involves a person sitting with open web browser and clicking mouse. I
need to do it for a few webpages once a day, as they change daily. I
prefer to once spend time on making cron job, and forget about it forever.
Hence I need it done from command line.

Valeri

>
> D
>
>>
>>>
>>> --
>>> john r pierce, recycling bits in santa cruz
>>>
>>
>>
>> 
>> Valeri Galtsev
>> Sr System Administrator
>> Department of Astronomy and Astrophysics
>> Kavli Institute for Cosmological Physics
>> University of Chicago
>> Phone: 773-702-4247
>> 
>> ___
>> CentOS mailing list
>> CentOS@centos.org
>> https://lists.centos.org/mailman/listinfo/centos
>>
>
>
>
> --
> "As long as politics is the shadow cast on society by big business, the
attenuation of the shadow will not change the substance."
>
> -- John Dewey
>
>
>
>
>



Valeri Galtsev
Sr System Administrator
Department of Astronomy and Astrophysics
Kavli Institute for Cosmological Physics
University of Chicago
Phone: 773-702-4247


___
CentOS mailing list
CentOS@centos.org
https://lists.centos.org/mailman/listinfo/centos


Re: [CentOS] script to make webpage snapshot

2016-08-11 Thread Valeri Galtsev

On Thu, August 11, 2016 4:13 pm, Liam O'Toole wrote:
> On 2016-08-11, Valeri Galtsev
>  wrote:
>> Dear Experts,
>>
>> Could someone recommend a script or utility one can run from command
>> line on Linux or UNIX machine to make a snapshot of webpage?
>>
>> We have a signage (xibo) and whoever creates/changes content, likes to
>> add URLs of some webpages there. All works well if these are webpages
>> on our servers (which are pretty fast), but some external servers
>> often take time to respond and take time to assemble the page, in
>> addition these servers sometimes get really busy, and when response is
>> longer than time devoted for that content in signage window, this
>> window hangs forever with blank white field until you restart client.
>> Trivial workaround: just to get snapshot (as, say daily cron job), and
>> point signage client to that snapshot definitely will solve it, and
>> simultaneously we will stop bugging other people servers often without
>> much need for it.
>>
>> But when I tried to search for some utility or script that makes
>> webpage snapshot, I discovered that my ability to search degraded
>> somehow...
>>
>> Thanks for all your pointers!
>>
>> Valeri
>
> Not an answer to the question you asked, but maybe this is a job for a
> caching proxy server like squid?
>

Thanks! It didn't occur to me. It will be much more sophisticated than
just an image "snapshot" of the webpage, but should solve our problem. If
I don't find anything doing "snapshot" successfully, this is what I will
do.

Valeri


Valeri Galtsev
Sr System Administrator
Department of Astronomy and Astrophysics
Kavli Institute for Cosmological Physics
University of Chicago
Phone: 773-702-4247

___
CentOS mailing list
CentOS@centos.org
https://lists.centos.org/mailman/listinfo/centos


Re: [CentOS] script to make webpage snapshot

2016-08-11 Thread Dave Stevens

Quoting Valeri Galtsev :



On Thu, August 11, 2016 5:02 pm, John R Pierce wrote:

On 8/11/2016 1:46 PM, Valeri Galtsev wrote:

Could someone recommend a script or utility one can run from command
line
on Linux or UNIX machine to make a snapshot of webpage?

We have a signage (xibo) and whoever creates/changes content, likes to
add
URLs of some webpages there. All works well if these are webpages on our
servers (which are pretty fast), but some external servers often take
time
to respond and take time to assemble the page, in addition these servers
sometimes get really busy, and when response is longer than time devoted
for that content in signage window, this window hangs forever with blank
white field until you restart client. Trivial workaround: just to get
snapshot (as, say daily cron job), and point signage client to that
snapshot definitely will solve it, and simultaneously we will stop
bugging
other people servers often without much need for it.

But when I tried to search for some utility or script that makes webpage
snapshot, I discovered that my ability to search degraded somehow...


many/most webpages these days are heavily dynamic content, a static
snapshot would likely break.  plus any site-relative links on that
snapshot would be pointing to your server, not the original, any ajax
code on that webpage would try to interact with your server which won't
be running the right back end stuff, etcetc.


I usually am not good at explaining what I need. I really only need an
image of what one would see in web browser if one point to that URL. I do
not care it to be interactive. I also don't want to get the content
("mirror") of stuff that URL points to on variety of "depths" - I don't
want to use wget or curl for this reason. That is what I tried first and
it breaks with at lest one of the web sites - they do seem protect
themselves from "robots" or similar. And we don't need it. We just need to
show what they page shows today, that's all.

Valeri


why not File -> Print -> .pdf?

D





--
john r pierce, recycling bits in santa cruz





Valeri Galtsev
Sr System Administrator
Department of Astronomy and Astrophysics
Kavli Institute for Cosmological Physics
University of Chicago
Phone: 773-702-4247

___
CentOS mailing list
CentOS@centos.org
https://lists.centos.org/mailman/listinfo/centos





--
"As long as politics is the shadow cast on society by big business,
the attenuation of the shadow will not change the substance."

-- John Dewey





___
CentOS mailing list
CentOS@centos.org
https://lists.centos.org/mailman/listinfo/centos


Re: [CentOS] script to make webpage snapshot

2016-08-11 Thread Valeri Galtsev

On Thu, August 11, 2016 5:02 pm, John R Pierce wrote:
> On 8/11/2016 1:46 PM, Valeri Galtsev wrote:
>> Could someone recommend a script or utility one can run from command
>> line
>> on Linux or UNIX machine to make a snapshot of webpage?
>>
>> We have a signage (xibo) and whoever creates/changes content, likes to
>> add
>> URLs of some webpages there. All works well if these are webpages on our
>> servers (which are pretty fast), but some external servers often take
>> time
>> to respond and take time to assemble the page, in addition these servers
>> sometimes get really busy, and when response is longer than time devoted
>> for that content in signage window, this window hangs forever with blank
>> white field until you restart client. Trivial workaround: just to get
>> snapshot (as, say daily cron job), and point signage client to that
>> snapshot definitely will solve it, and simultaneously we will stop
>> bugging
>> other people servers often without much need for it.
>>
>> But when I tried to search for some utility or script that makes webpage
>> snapshot, I discovered that my ability to search degraded somehow...
>
> many/most webpages these days are heavily dynamic content, a static
> snapshot would likely break.  plus any site-relative links on that
> snapshot would be pointing to your server, not the original, any ajax
> code on that webpage would try to interact with your server which won't
> be running the right back end stuff, etcetc.

I usually am not good at explaining what I need. I really only need an
image of what one would see in web browser if one point to that URL. I do
not care it to be interactive. I also don't want to get the content
("mirror") of stuff that URL points to on variety of "depths" - I don't
want to use wget or curl for this reason. That is what I tried first and
it breaks with at lest one of the web sites - they do seem protect
themselves from "robots" or similar. And we don't need it. We just need to
show what they page shows today, that's all.

Valeri

>
> --
> john r pierce, recycling bits in santa cruz
>



Valeri Galtsev
Sr System Administrator
Department of Astronomy and Astrophysics
Kavli Institute for Cosmological Physics
University of Chicago
Phone: 773-702-4247

___
CentOS mailing list
CentOS@centos.org
https://lists.centos.org/mailman/listinfo/centos


Re: [CentOS] script to make webpage snapshot

2016-08-11 Thread John R Pierce

On 8/11/2016 1:46 PM, Valeri Galtsev wrote:

Could someone recommend a script or utility one can run from command line
on Linux or UNIX machine to make a snapshot of webpage?

We have a signage (xibo) and whoever creates/changes content, likes to add
URLs of some webpages there. All works well if these are webpages on our
servers (which are pretty fast), but some external servers often take time
to respond and take time to assemble the page, in addition these servers
sometimes get really busy, and when response is longer than time devoted
for that content in signage window, this window hangs forever with blank
white field until you restart client. Trivial workaround: just to get
snapshot (as, say daily cron job), and point signage client to that
snapshot definitely will solve it, and simultaneously we will stop bugging
other people servers often without much need for it.

But when I tried to search for some utility or script that makes webpage
snapshot, I discovered that my ability to search degraded somehow...


many/most webpages these days are heavily dynamic content, a static 
snapshot would likely break.  plus any site-relative links on that 
snapshot would be pointing to your server, not the original, any ajax 
code on that webpage would try to interact with your server which won't 
be running the right back end stuff, etcetc.


--
john r pierce, recycling bits in santa cruz

___
CentOS mailing list
CentOS@centos.org
https://lists.centos.org/mailman/listinfo/centos


Re: [CentOS] script to make webpage snapshot

2016-08-11 Thread Liam O'Toole
On 2016-08-11, Valeri Galtsev
 wrote:
> Dear Experts,
>
> Could someone recommend a script or utility one can run from command
> line on Linux or UNIX machine to make a snapshot of webpage?
>
> We have a signage (xibo) and whoever creates/changes content, likes to
> add URLs of some webpages there. All works well if these are webpages
> on our servers (which are pretty fast), but some external servers
> often take time to respond and take time to assemble the page, in
> addition these servers sometimes get really busy, and when response is
> longer than time devoted for that content in signage window, this
> window hangs forever with blank white field until you restart client.
> Trivial workaround: just to get snapshot (as, say daily cron job), and
> point signage client to that snapshot definitely will solve it, and
> simultaneously we will stop bugging other people servers often without
> much need for it.
>
> But when I tried to search for some utility or script that makes
> webpage snapshot, I discovered that my ability to search degraded
> somehow...
>
> Thanks for all your pointers!
>
> Valeri

Not an answer to the question you asked, but maybe this is a job for a
caching proxy server like squid?

-- 

Liam

___
CentOS mailing list
CentOS@centos.org
https://lists.centos.org/mailman/listinfo/centos


[CentOS] EPEL 7 i686 (was: howto install yumex)

2016-08-11 Thread Peter
On 12/08/16 02:20, Johnny Hughes wrote:
> I am currently building the x86_64 EPEL packages for i686 here:
> 
> http://buildlogs.centos.org/c7-epel/
> 
> But that repo will not be completely built for several days, and we have
> not decided how we would release the repo yet.

Can you let us know when it's finished building?  I am very interested
in this.


Thanks,


Peter Ajamian



signature.asc
Description: OpenPGP digital signature
___
CentOS mailing list
CentOS@centos.org
https://lists.centos.org/mailman/listinfo/centos


Re: [CentOS] howto install yumex

2016-08-11 Thread Peter
On 12/08/16 05:53, geo.inbox.ignored wrote:
>> If you do:
>>
>> yum install epel-release
>>
>> you should get the key installed.
>>
> Installing:
>  epel-releasenoarch6-8epel 14 
> k
> 
> GPG key retrieval failed: [Errno 14] Could not open/read
> file:///etc/pki/rpm-gpg/RPM-GPG-KEY-EPEL-6

You incorrectly attempted to install epel already and it's interfering.
Try this:

yum --disablerepo=epel --enablerepo=extras install epel-release


Peter
___
CentOS mailing list
CentOS@centos.org
https://lists.centos.org/mailman/listinfo/centos


Re: [CentOS] Is "xman" available in any CentOS 6.x repo?

2016-08-11 Thread Liam O'Toole
On 2016-08-11, Kay Schenk
 wrote:
> I know it's old but I miss "xman" in CentOS 6. :(

I would have expected it to be provided by the package xorg-x11-apps,
but that is not the case. A compile-time option, perhaps?

-- 

Liam

___
CentOS mailing list
CentOS@centos.org
https://lists.centos.org/mailman/listinfo/centos


Re: [CentOS] script to make webpage snapshot

2016-08-11 Thread Frank Cox
On Thu, 11 Aug 2016 15:46:42 -0500 (CDT)
Valeri Galtsev wrote:

> Could someone recommend a script or utility one can run from command line
> on Linux or UNIX machine to make a snapshot of webpage?

wget?
httrack?

-- 
MELVILLE THEATRE ~ Real D 3D Digital Cinema ~ www.melvilletheatre.com
___
CentOS mailing list
CentOS@centos.org
https://lists.centos.org/mailman/listinfo/centos


[CentOS] script to make webpage snapshot

2016-08-11 Thread Valeri Galtsev
Dear Experts,

Could someone recommend a script or utility one can run from command line
on Linux or UNIX machine to make a snapshot of webpage?

We have a signage (xibo) and whoever creates/changes content, likes to add
URLs of some webpages there. All works well if these are webpages on our
servers (which are pretty fast), but some external servers often take time
to respond and take time to assemble the page, in addition these servers
sometimes get really busy, and when response is longer than time devoted
for that content in signage window, this window hangs forever with blank
white field until you restart client. Trivial workaround: just to get
snapshot (as, say daily cron job), and point signage client to that
snapshot definitely will solve it, and simultaneously we will stop bugging
other people servers often without much need for it.

But when I tried to search for some utility or script that makes webpage
snapshot, I discovered that my ability to search degraded somehow...

Thanks for all your pointers!

Valeri

Valeri Galtsev
Sr System Administrator
Department of Astronomy and Astrophysics
Kavli Institute for Cosmological Physics
University of Chicago
Phone: 773-702-4247

___
CentOS mailing list
CentOS@centos.org
https://lists.centos.org/mailman/listinfo/centos


Re: [CentOS] howto install yumex

2016-08-11 Thread geo.inbox.ignored


On 08/11/2016 09:33 AM, Johnny Hughes wrote:
> On 08/11/2016 09:21 AM, geo.inbox.ignored wrote:
>>
>>
>> On 08/11/2016 09:20 AM, Johnny Hughes wrote:
>>> On 08/11/2016 09:05 AM, geo.inbox.ignored wrote:


 On 08/11/2016 07:42 AM, Harald Labes wrote:
> Try "sudo yum install yumex" without *. It's a package distributed by
> EPEL. Have you installed the EPEL repro?
>
 ===>

 closer, but not like playing horseshoes.

 now need;

   GPG key retrieval failed: [Errno 14] Could not open/read \
 file:///etc/pki/rpm-gpg/RPM-GPG-KEY-EPEL-6

> Cheers
>>>
>>> Is this for i686 and CentOS-7 or CentOS-6 .. there is no EPEL for
>>> CentOS-7 i686.
>>>
>> ===>
>>
>> my bad.
>>
>> centos 6.8 x86_64 [current]
> 
> If you do:
> 
> yum install epel-release
> 
> you should get the key installed.
>
===>

more yum info this time;

Resolving Dependencies
--> Running transaction check
---> Package epel-release.noarch 0:6-8 will be installed
--> Finished Dependency Resolution

Dependencies Resolved


 Package Arch  VersionRepository   Size

Installing:
 epel-releasenoarch6-8epel 14 k

Transaction Summary

Install   1 Package(s)

Total download size: 14 k
Installed size: 22 k
Is this ok [y/N]: y
Downloading Packages:
Setting up and reading Presto delta metadata
Processing delta metadata
Package(s) data still to download: 14 k
epel-release-6-8.noarch.rpm  |  14 kB 00:00
warning: rpmts_HdrFromFdno: Header V3 RSA/SHA256 Signature, key ID 0608b895:
NOKEY
Retrieving key from file:///etc/pki/rpm-gpg/RPM-GPG-KEY-EPEL-6


GPG key retrieval failed: [Errno 14] Could not open/read
file:///etc/pki/rpm-gpg/RPM-GPG-KEY-EPEL-6



-- 

peace out.

CentOS GNU/Linux 7.1511

tc,hago.

g
.

=+=
Tired of having your microsoft os hacked?
Change to Linux os, used by microsoft hackers.
=+=
in a world with out fences, who needs gates.
=+=


-- 

peace out.

CentOS GNU/Linux 7.1511

tc,hago.

g
.

=+=
Tired of having your microsoft os hacked?
Change to Linux os, used by microsoft hackers.
=+=
in a world with out fences, who needs gates.
=+=

___
CentOS mailing list
CentOS@centos.org
https://lists.centos.org/mailman/listinfo/centos


Re: [CentOS] CentOS 7: System log has repeated lines: Started session 123 of user root.

2016-08-11 Thread therbur
therbur  wrote:

>therbur  wrote:
>
>>The system log (/var/log/messages) of a CentOS 7.2 system has
>>frequently-repeated message line pairs like:
>>
>>Jul 18 14:00:01 localhost systemd: Started Session 307 of user root.
>>Jul 18 14:00:01 localhost systemd: Starting Session 307 of user root.
>>
>>where the session number increases each time.
>>
>>Looking around on this, e.g. Red Hat Bugzilla bug 727315, it looks like
>>it's when crond starts a task; it looks like it might be fixed - I would
>>think that would be in CentOS but don't know how to find/compare the
>>Fedora and CentOS systemd versions to know for sure.
>>
>>I found a post on a workaround - in /etc/systemd/system.conf to change the
>>line:
>>
>>#LogLevel=info
>>
>>to:
>>
>>LogLevel=notice
>>
>>I did that and rebooted, and it has stopped the messages.
>>
>>I'm worried though that this may have knocked out something of actual
>>interest from the syslog.
>>
>>So my question is, is there a better way?  A way that info messages could
>>go to some other log, or better yet, a way that those particular "session"
>>messages, and only those, could go to some other log or be filtered out?
>
>No replies - any tips/ideas on where to look next?

I dug into this further.  I backed out the change above, and instead added
filter files in /etc/rsyslog.d to knock out those root session lines, and
related ones, and other ones, so that the syslog is no longer filled up
with the useless junk noise.  First .conf filter file content:

if $programname == "systemd" and ($msg contains "Starting Session" or $msg
contains "Started Session" or $msg contains "Created slice" or $msg
contains "Starting user-") then stop

Second one:

if ($programname == "dbus" or $programname == "dbus-daemon") and (($msg
contains "Activating service name=" or $msg contains "Successfully
activated service ") and $msg contains "org.freedesktop.problems") then
stop


___
CentOS mailing list
CentOS@centos.org
https://lists.centos.org/mailman/listinfo/centos


Re: [CentOS] Missing announcement for qemu-kvm

2016-08-11 Thread Leonard den Ottolander
Hi Johnny,

> https://lists.centos.org/pipermail/centos-announce/2016-August/022030.html

Sorry for the noise: I overlooked the fact that I had an active search
in my CentOS announce folder... Doh!

Regards,
Leonard.

-- 
mount -t life -o ro /dev/dna /genetic/research


___
CentOS mailing list
CentOS@centos.org
https://lists.centos.org/mailman/listinfo/centos


Re: [CentOS-announce] Fw: i found the stuff

2016-08-11 Thread Johnny Hughes
On 08/10/2016 03:47 PM, roland.leurs wrote:
> Dear!
> 
> I know you were looking for this, I found this stuff for you, take a
> look at 

No idea how this got through the list .. but ignore it.




signature.asc
Description: OpenPGP digital signature
___
CentOS-announce mailing list
CentOS-announce@centos.org
https://lists.centos.org/mailman/listinfo/centos-announce


Re: [CentOS] Missing announcement for qemu-kvm

2016-08-11 Thread Johnny Hughes
On 08/11/2016 10:10 AM, Leonard den Ottolander wrote:
> Hello,
> 
> Received an update for qemu-kvm and qemu-img today, but the
> corresponding announcement is missing. Haven't received any messages
> since August 3rd, so there might be other announcements that haven't
> made it to the list yet.
> 
> Regards,
> Leonard.
> 
https://lists.centos.org/pipermail/centos-announce/2016-August/022030.html



signature.asc
Description: OpenPGP digital signature
___
CentOS mailing list
CentOS@centos.org
https://lists.centos.org/mailman/listinfo/centos


[CentOS] Is "xman" available in any CentOS 6.x repo?

2016-08-11 Thread Kay Schenk
I know it's old but I miss "xman" in CentOS 6. :(

-- 

MzK

"Time spent with cats is never wasted."
   -- Sigmund Freud
___
CentOS mailing list
CentOS@centos.org
https://lists.centos.org/mailman/listinfo/centos


[CentOS] Missing announcement for qemu-kvm

2016-08-11 Thread Leonard den Ottolander
Hello,

Received an update for qemu-kvm and qemu-img today, but the
corresponding announcement is missing. Haven't received any messages
since August 3rd, so there might be other announcements that haven't
made it to the list yet.

Regards,
Leonard.

-- 
mount -t life -o ro /dev/dna /genetic/research


___
CentOS mailing list
CentOS@centos.org
https://lists.centos.org/mailman/listinfo/centos


Re: [CentOS] howto install yumex

2016-08-11 Thread Johnny Hughes
On 08/11/2016 09:21 AM, geo.inbox.ignored wrote:
> 
> 
> On 08/11/2016 09:20 AM, Johnny Hughes wrote:
>> On 08/11/2016 09:05 AM, geo.inbox.ignored wrote:
>>>
>>>
>>> On 08/11/2016 07:42 AM, Harald Labes wrote:
 Try "sudo yum install yumex" without *. It's a package distributed by
 EPEL. Have you installed the EPEL repro?

>>> ===>
>>>
>>> closer, but not like playing horseshoes.
>>>
>>> now need;
>>>
>>>   GPG key retrieval failed: [Errno 14] Could not open/read \
>>> file:///etc/pki/rpm-gpg/RPM-GPG-KEY-EPEL-6
>>>
 Cheers
>>
>> Is this for i686 and CentOS-7 or CentOS-6 .. there is no EPEL for
>> CentOS-7 i686.
>>
> ===>
> 
> my bad.
> 
> centos 6.8 x86_64 [current]

If you do:

yum install epel-release

you should get the key installed.

> 
> 
>> I am currently building the x86_64 EPEL packages for
>> i686 here:
>>
>> http://buildlogs.centos.org/c7-epel/
>>
>> But that repo will not be completely built for several days, and we have
>> not decided how we would release the repo yet.
>>
> ===>
> 
> yes. i read all you 'happenings' post.
> 
> 




signature.asc
Description: OpenPGP digital signature
___
CentOS mailing list
CentOS@centos.org
https://lists.centos.org/mailman/listinfo/centos


Re: [CentOS] howto install yumex

2016-08-11 Thread geo.inbox.ignored


On 08/11/2016 09:20 AM, Johnny Hughes wrote:
> On 08/11/2016 09:05 AM, geo.inbox.ignored wrote:
>>
>>
>> On 08/11/2016 07:42 AM, Harald Labes wrote:
>>> Try "sudo yum install yumex" without *. It's a package distributed by
>>> EPEL. Have you installed the EPEL repro?
>>>
>> ===>
>>
>> closer, but not like playing horseshoes.
>>
>> now need;
>>
>>   GPG key retrieval failed: [Errno 14] Could not open/read \
>> file:///etc/pki/rpm-gpg/RPM-GPG-KEY-EPEL-6
>>
>>> Cheers
>
> Is this for i686 and CentOS-7 or CentOS-6 .. there is no EPEL for
> CentOS-7 i686.
>
===>

my bad.

centos 6.8 x86_64 [current]


> I am currently building the x86_64 EPEL packages for
> i686 here:
>
> http://buildlogs.centos.org/c7-epel/
>
> But that repo will not be completely built for several days, and we have
> not decided how we would release the repo yet.
>
===>

yes. i read all you 'happenings' post.


-- 

peace out.

CentOS GNU/Linux 7.1511

tc,hago.

g
.

=+=
Tired of having your microsoft os hacked?
Change to Linux os, used by microsoft hackers.
=+=
in a world with out fences, who needs gates.
=+=

___
CentOS mailing list
CentOS@centos.org
https://lists.centos.org/mailman/listinfo/centos


Re: [CentOS] howto install yumex

2016-08-11 Thread Johnny Hughes
On 08/11/2016 09:05 AM, geo.inbox.ignored wrote:
> 
> 
> On 08/11/2016 07:42 AM, Harald Labes wrote:
>> Try "sudo yum install yumex" without *. It's a package distributed by
>> EPEL. Have you installed the EPEL repro?
>>
> ===>
> 
> closer, but not like playing horseshoes.
> 
> now need;
> 
>   GPG key retrieval failed: [Errno 14] Could not open/read \
> file:///etc/pki/rpm-gpg/RPM-GPG-KEY-EPEL-6
> 
>> Cheers

Is this for i686 and CentOS-7 or CentOS-6 .. there is no EPEL for
CentOS-7 i686.  I am currently building the x86_64 EPEL packages for
i686 here:

http://buildlogs.centos.org/c7-epel/

But that repo will not be completely built for several days, and we have
not decided how we would release the repo yet.



signature.asc
Description: OpenPGP digital signature
___
CentOS mailing list
CentOS@centos.org
https://lists.centos.org/mailman/listinfo/centos


Re: [CentOS] howto install yumex

2016-08-11 Thread geo.inbox.ignored


On 08/11/2016 07:42 AM, Harald Labes wrote:
> Try "sudo yum install yumex" without *. It's a package distributed by
> EPEL. Have you installed the EPEL repro?
>
===>

closer, but not like playing horseshoes.

now need;

  GPG key retrieval failed: [Errno 14] Could not open/read \
file:///etc/pki/rpm-gpg/RPM-GPG-KEY-EPEL-6

> Cheers
>
!OPA! !METAXA!

>   Harald
> 
> On Thu, 2016-08-11 at 07:21 -0500, geo.inbox.ignored wrote:
>> greetings.
>>
>> trying to install yumex, but obviously have forgotten what i did
>> previously to install packages.
>>
>>   sudo yum install yumex*
>>
>> errors out with;
>>
>>   No package yumex* available.
>>
>> please inform my chemo brain what is correct.
>>
>> tia.
>>
>>
> 
> 
> ___
> CentOS mailing list
> CentOS@centos.org
> https://lists.centos.org/mailman/listinfo/centos
> 

-- 

peace out.

CentOS GNU/Linux 7.1511

tc,hago.

g
.

=+=
Tired of having your microsoft os hacked?
Change to Linux os, used by microsoft hackers.
=+=
in a world with out fences, who needs gates.
=+=

___
CentOS mailing list
CentOS@centos.org
https://lists.centos.org/mailman/listinfo/centos


[CentOS] OT: trying to configure Ubuntu 14 to use dhcp

2016-08-11 Thread m . roth
This is very much *not* CentOS, but if anyone knows how to do it
*correctly*, please drop me an email offlist.

  mark

___
CentOS mailing list
CentOS@centos.org
https://lists.centos.org/mailman/listinfo/centos


Re: [CentOS] Software RAID and GRUB on CentOS 7

2016-08-11 Thread William A. Mahaffey III

On 08/11/16 02:33, Nicolas Kovacs wrote:

Hi,

When I perform a software RAID 1 or RAID 5 installation on a LAN server
with several hard disks, I wonder if GRUB already gets installed on each
individual MBR, or if I have to do that manually. On CentOS 5.x and 6.x,
this had to be done like this:

# grub
grub> device (hd0) /dev/sda
grub> device (hd1) /dev/sdb
grub> root (hd0,0)
grub> setup (hd0)
grub> root (hd1,0)
grub> setup (hd1)
grub> quit

I'd like my server to be able to boot a degraded software RAID after an
eventual hard disk failure.

Any suggestions?

Niki Kovacs


I have an aging FC14 () system, w/ mdadm RAID partitions. I have 
/boot setup as mdadm RAID1's, 2 drives (actually partitions). Machine 
boots AOK, & I believe it does (& maintains) that setup automatically. I 
got that recommendation from a mailing list ages ago, can't remember 
where, sorry. $0.02, no more, no less 



[root@Q6600:/etc, Thu Aug 11, 08:25 AM] 1018 # df -h
FilesystemTypeSize  Used Avail Use% Mounted on
/dev/md1  ext4917G  8.0G  863G   1% /
tmpfstmpfs4.0G 0  4.0G   0% /dev/shm
/dev/md0  ext4186M   60M  117M  34% /boot
/dev/md3  ext41.8T  1.4T  333G  81% /home
[root@Q6600:/etc, Thu Aug 11, 08:26 AM] 1019 # uname -a
Linux Q6600 2.6.35.14-106.fc14.x86_64 #1 SMP Wed Nov 23 13:07:52 UTC 
2011 x86_64 x86_64 x86_64 GNU/Linux

[root@Q6600:/etc, Thu Aug 11, 08:26 AM] 1020 #


--

William A. Mahaffey III

 --

"The M1 Garand is without doubt the finest implement of war
 ever devised by man."
   -- Gen. George S. Patton Jr.

___
CentOS mailing list
CentOS@centos.org
https://lists.centos.org/mailman/listinfo/centos


Re: [CentOS] howto install yumex

2016-08-11 Thread Harald Labes
Try "sudo yum install yumex" without *. It's a package distributed by
EPEL. Have you installed the EPEL repro?

Cheers

  Harald

On Thu, 2016-08-11 at 07:21 -0500, geo.inbox.ignored wrote:
> greetings.
> 
> trying to install yumex, but obviously have forgotten what i did
> previously to install packages.
> 
>   sudo yum install yumex*
> 
> errors out with;
> 
>   No package yumex* available.
> 
> please inform my chemo brain what is correct.
> 
> tia.
> 
> 


___
CentOS mailing list
CentOS@centos.org
https://lists.centos.org/mailman/listinfo/centos


[CentOS] howto install yumex

2016-08-11 Thread geo.inbox.ignored

greetings.

trying to install yumex, but obviously have forgotten what i did
previously to install packages.

  sudo yum install yumex*

errors out with;

  No package yumex* available.

please inform my chemo brain what is correct.

tia.


-- 

peace out.

CentOS GNU/Linux 7.1511

tc,hago.

g
.

=+=
Tired of having your microsoft os hacked?
Change to Linux os, used by microsoft hackers.
=+=
in a world with out fences, who needs gates.
=+=

___
CentOS mailing list
CentOS@centos.org
https://lists.centos.org/mailman/listinfo/centos


[CentOS] EPEL packages for CentOS 7 i686 AltArch distro

2016-08-11 Thread Johnny Hughes
I have begun building the EPEL packages for the CentOS 7 i686 AltArch
distribution.

You can watch the progress here:
http://buildlogs.centos.org/c7-epel/

Should have most of the packages built in the next couple days.

Thanks,
Johnny Hughes



signature.asc
Description: OpenPGP digital signature
___
CentOS mailing list
CentOS@centos.org
https://lists.centos.org/mailman/listinfo/centos


Re: [CentOS] Gateway question

2016-08-11 Thread Levente Birta

On 10/08/2016 16:54, Anthony K wrote:

On 10/08/16 16:29, Levente Birta wrote:

And as I said this problem is resolved too ... I asked for another way
to achieve this

When you add a default gateway with:

route add default gw 192.168.1.1 dev enp3s0

you'll note that you now have 2 routes with the same metric of 0 (use
route -n to see the metric field - couldn't get ip route to show me the
metric).

When using ip route command, you need to specify a different metric
otherwise it won't take.  To me, ip route is doing the right thing as
having 2 gateways with the same metric will confuse the routing process.

If you need to use ip route to add another default gateway, make sure to
use a different metric:

ip route add 0/0 via 192.168.1.1 dev enp3s0 metric


ak.



PS: In my virtual environment *[0]*, the routing tables for tables t2
and t3 appeared incomplete.  The route specified in the route files for
network 192.168.1.0/24 was missing - most likely cause it was already in
the main routing table.  Only the default route appeared in the tables

$ cat /etc/sysconfig/network-scripts/route-enp0s3
192.168.1.0/24 dev enp0s3 src 192.168.1.12 table t2
default via 192.168.1.1 dev enp0s3 table t2

$ cat /etc/sysconfig/network-scripts/route-enp0s8
192.168.1.0/24 dev enp0s8 src 192.168.1.13 table t3
default via 192.168.1.1 dev enp0s8 table t3

$ ip r l t t2
default via 192.168.1.1 dev enp0s3

$ ip r l t t3
default via 192.168.1.1 dev enp0s8

*[0]* - https://imagebin.ca/v/2r5NJgNEqSgQ




Yeah ... the metric solved

Just added to route-enp3s0:
0/0 via 192.168.1.1 dev enp3s0 metric 1

Thanks!!

--
   Levi
___
CentOS mailing list
CentOS@centos.org
https://lists.centos.org/mailman/listinfo/centos


[CentOS] Software RAID and GRUB on CentOS 7

2016-08-11 Thread Nicolas Kovacs
Hi,

When I perform a software RAID 1 or RAID 5 installation on a LAN server
with several hard disks, I wonder if GRUB already gets installed on each
individual MBR, or if I have to do that manually. On CentOS 5.x and 6.x,
this had to be done like this:

# grub
grub> device (hd0) /dev/sda
grub> device (hd1) /dev/sdb
grub> root (hd0,0)
grub> setup (hd0)
grub> root (hd1,0)
grub> setup (hd1)
grub> quit

I'd like my server to be able to boot a degraded software RAID after an
eventual hard disk failure.

Any suggestions?

Niki Kovacs
-- 
Microlinux - Solutions informatiques durables
7, place de l'église - 30730 Montpezat
Web  : http://www.microlinux.fr
Mail : i...@microlinux.fr
Tél. : 04 66 63 10 32
___
CentOS mailing list
CentOS@centos.org
https://lists.centos.org/mailman/listinfo/centos