Re: [CentOS] Centos 7.6 & ether-wake

2019-04-14 Thread Gregory P. Ennis
Everyone,

I have not been able to get ether-wake to work waking up other centos 7.6
machines after
the upgrade to Centos 7.6.  Has anyone else had this problem, and if so any
luck with a
fix?

Greg Ennis

--

Everyone,

I have found the solution to the problem related to wake-on-lan after the 
upgrade to Centos
7.6 from Centos 7.5

It appears that NetworkManager was changed and now you have to enter the 
command :

nmcli c modify enp2s0 802-3-ethernet.wake-on-lan magic

Which adds ETHTOOL_OPTS="wol g" to :

/etc/sysconfig/network-scripts/ifcfg-enp2s0

It is interesting in that I found this had to be added only to the motherboard 
network
device, but did not have to be added to network cards in the pcie slots.

It also could be fixed by running the command at the time of boot :

ethtool -s enp2s0 wol g

However this command had to be used with every boot, and always allowed 
wake-on-lan to work
after a soft shutdown, but if you pulled the plug and completely powered the 
system down it
did not work on the first hard reboot.

After entering "nmcli c modify enp2s0 802-3-ethernet.wake-on-lan magic" I was 
able to use
wake-on-lan after both soft shutdowns and power out shutdowns.


Thanks to 'Dutchy' for his Fedora post :


https://forums.fedoraforum.org/showthread.php?307025-Wake-on-LAN-can-t-set-ethtool-mode-automatically



Greg Ennis






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


Re: [CentOS] Outliner

2019-04-14 Thread Warren Young
On Apr 14, 2019, at 4:42 AM, H  wrote:
> 
> Ideally it should allow saving files in txt, OO and markdown formats…

Since you included Markdown in the list, my initial question was why don’t you 
just write in that format, since the Markdown list features capture most of 
what I want in an outliner.  Then I saw in a later post that you’re using an 
editor (Geany) without intelligent formatting for Markdown.

So that’s my recommendation: switch to a text editor that does intelligent 
things with Markdown like continuing the list when you hit Enter from within a 
list item, adding a level to the list when you hit Tab within a list, returning 
to the prior level with a Shift-Tab, auto-indenting list items when you hit the 
editor’s wrapping limits, etc.

I’m not sure what distinction you’re trying to make by listing “txt” output 
along with Markdown, so I don’t know what transform to suggest.

As for “OO”, I assume that means OpenOffice, in which case what you actually 
mean is ODF, its file format.  And for that, I suggest that you use Pandoc, 
which will get Markdown into that format and many more:

$ pandoc --to odt x.md > x.odt
$ pandoc --list-output-formats

As for the actual editor, there are several choices.  The first one I reached 
for was VSCodium, which is Microsoft Visual Studio Code with the branding, 
telemetry and non-FOSS licensed stuff stripped out.  (Shades of CentOS vs RHEL…)

I’m working with a text-only CentOS VM here and couldn’t get a GUI running on 
it — a problem I’ll take up in a separate thread — so I’ll just point you at 
the VSCodium Linux install instructions and hope they work for you there:

https://github.com/VSCodium/vscodium/releases

Once you’ve got VSCodium running, you’ll need to install the “Markdown All In 
One” plugin.  (Ctrl-Shift-P, install, search for Markdown, select first option 
[currently] listed.)  That will do as described above: auto-number, 
auto-indent, Tab/Shift-Tab to change indent level, etc.

The availability of such plugins is a large part of the reason Code is taking 
over so much of the programmer’s text editor world.  Give it a try.

If VSCodium doesn’t work on CentOS, you could try Visual Studio Code, the 
original project, which probably has better packaging:

   https://code.visualstudio.com/docs/setup/linux

I used that for probably a few years before VSCodium came along.  Don’t be 
scared by the branding: it shares almost nothing with Visual Studio other than 
branding and a parent organization.

If you really want a CLI-only experience, I got a suitable setup working with 
Vim and the Bullets plugin:

   https://github.com/dkarter/bullets.vim

Instead of Tab and Shift-Tab to change indent levels it uses Ctrl-T and Ctrl-D, 
which I find odd, but that’s the sort of affordance you have to give up on when 
you’re working in an ANSI terminal.
___
CentOS mailing list
CentOS@centos.org
https://lists.centos.org/mailman/listinfo/centos


Re: [CentOS] Outliner

2019-04-14 Thread Frank Cox
On Sun, 14 Apr 2019 12:42:56 +0200
H wrote:

> I would love to find an old-fashioned outliner, like the ones that used to
> exist prior to the modern GUIs. It would make writing structured documents,
> or organizing thoughts in general, so much more convenient, productive and
> faster. 

Best structured document editor that I know of:

https://www.lyx.org/

I personally don't use it enough to be really good with it since I don't have 
that many structured documents to write.  But on the occasions that I do use 
it, it certainly works well.

-- 
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] Outliner

2019-04-14 Thread Jussi Hirvi via CentOS

On 14.4.2019 13.42, H wrote:

I would love to find an old-fashionedoutliner, like the ones that
used to exist prior to the modern GUIs. It would make writing
structured documents, or organizing thoughts in general, so much more
convenient, productive and faster. Ideally it should allow saving
files in txt, OO and markdown formats...
Org-mode fits the bill. Emacs org-mode seems to get positive reviews, 
and it has been ported to vim too (many alternative plugins, but 
probably with less features than the original emacs version).


https://en.wikipedia.org/wiki/Org-mode

Org 9.2 was released in December 2018, so the development seems not to 
be dead.


I have no personal experience with any programs of this type. I 
sometimes use the outline mode in MS Word, just because I'm lazy.


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


Re: [CentOS] Resource utilisation of processes on linux server.

2019-04-14 Thread J Martin Rushton via CentOS


On 14/04/2019 16:51, Pete Biggs wrote:
> 
>>
>> Thanks for the email. I will be interested in command line interface
>> tool/utility. Is there a way to find out the previous occurrence of
>> resource utilization? For example, there was a high load on the Linux
>> server which occurred three days back during the time of 3:00 AM to 4:00 AM
>> meaning historical data.
>>
> 
> You need to look at system accounting. The command 'sa' reports on
> accounting information and the command 'accton' turns on per process
> accounting.  It's not usually turned on by default (on busy systems the
> accounting files can get large) and it's not retrospective. (So if it's
> not turned on, any per-process logs are lost once the process
> terminates.)
> 
> P.
> 
> 
> ___
> CentOS mailing list
> CentOS@centos.org
> https://lists.centos.org/mailman/listinfo/centos
> 

sa logs aren't usually too big, but the process logs can get pretty
large.  sa logs are usually processed overnight to sar reports which are
a good starting point (see /var/log/sa).  If you are running an audit
trail that may give you additional information, as would monitoring
tools such as Ganglia.

-- 
J Martin Rushton MBCS



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


Re: [CentOS] Resource utilisation of processes on linux server.

2019-04-14 Thread Pete Biggs


> 
> Thanks for the email. I will be interested in command line interface
> tool/utility. Is there a way to find out the previous occurrence of
> resource utilization? For example, there was a high load on the Linux
> server which occurred three days back during the time of 3:00 AM to 4:00 AM
> meaning historical data.
> 

You need to look at system accounting. The command 'sa' reports on
accounting information and the command 'accton' turns on per process
accounting.  It's not usually turned on by default (on busy systems the
accounting files can get large) and it's not retrospective. (So if it's
not turned on, any per-process logs are lost once the process
terminates.)

P.


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


Re: [CentOS] Resource utilisation of processes on linux server.

2019-04-14 Thread Richard


>> On 14/04/2019 14:17, Kaushal Shriyan wrote:
>> >
>> > I have around 6 processes running on CentOS Linux release
>> > 7.6.1810 (Core).
>> >
>> > Is there a way to find out which process is taking resources
>> > like memory, CPU, I/O and network.

> On Sun, Apr 14, 2019 at 7:33 PM J Martin Rushton via CentOS <
> centos@centos.org> wrote:
>> 
>> From the command line there is always top(1).  If you want a GUI
>> then System Tools > System Moinitor and click on "Processes".  All
>> the columns are sortable.
>> 
>
> Date: Sunday, April 14, 2019 20:59:45 +0530
> From: Kaushal Shriyan 
> 
> Thanks for the email. I will be interested in command line interface
> tool/utility. Is there a way to find out the previous occurrence of
> resource utilization? For example, there was a high load on the
> Linux server which occurred three days back during the time of 3:00
> AM to 4:00 AM meaning historical data.

If you don't have any usage monitoring turned on, then after the fact
the answer is no.

A simple approach is to run top in batch mode (see the top man page)
from a cron job that you run at whatever frequency you want to
capture data for. Log that, and say vmstat output - perhaps sending
an alert when the vmstat load is above some threshold. This is all
fairly lightweight and easy to set up. There are other packages that
can get more detail, but take some learning and setup time.

Remember that things like logrotate, logwatch etc., tend to run in
the ~3am timeframe (depending on your configuration). These can
generate fairly high spot load if your logs are large.

  - Richard

[please only reply to the list.]


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


Re: [CentOS] Resource utilisation of processes on linux server.

2019-04-14 Thread Kaushal Shriyan
Hi

On Sun, Apr 14, 2019 at 7:33 PM J Martin Rushton via CentOS <
centos@centos.org> wrote:

> On 14/04/2019 14:17, Kaushal Shriyan wrote:
> > Hi,
> >
> > I have around 6 processes running on CentOS Linux release 7.6.1810
> (Core).
> > Is there a way to find out which process is taking resources like memory,
> > CPU, I/O and network.
> >
> > Process 1 : How much memory, CPU, I/O and network is currently consuming
> on
> > linux server
> > Process 2 : How much memory, CPU, I/O and network is currently consuming
> on
> > linux server
> > Process 3 : How much memory, CPU, I/O and network is currently consuming
> on
> > linux server and so on and so forth.
> >
> > Thanks in Advance and i look forward to hearing from you.
> >
> > Best Regards,
> >
> > Kaushal
> > ___
> > CentOS mailing list
> > CentOS@centos.org
> > https://lists.centos.org/mailman/listinfo/centos
> >
>
> From the command line there is always top(1).  If you want a GUI then
> System Tools > System Moinitor and click on "Processes".  All the
> columns are sortable.
>
> --
> J Martin Rushton MBCS
>
> ___
> CentOS mailing list
> CentOS@centos.org
> https://lists.centos.org/mailman/listinfo/centos


Hi Martin,

Thanks for the email. I will be interested in command line interface
tool/utility. Is there a way to find out the previous occurrence of
resource utilization? For example, there was a high load on the Linux
server which occurred three days back during the time of 3:00 AM to 4:00 AM
meaning historical data.

Thanks in Advance and i look forward to hearing from you.

Best Regards,

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


Re: [CentOS] Resource utilisation of processes on linux server.

2019-04-14 Thread J Martin Rushton via CentOS
On 14/04/2019 14:17, Kaushal Shriyan wrote:
> Hi,
> 
> I have around 6 processes running on CentOS Linux release 7.6.1810 (Core).
> Is there a way to find out which process is taking resources like memory,
> CPU, I/O and network.
> 
> Process 1 : How much memory, CPU, I/O and network is currently consuming on
> linux server
> Process 2 : How much memory, CPU, I/O and network is currently consuming on
> linux server
> Process 3 : How much memory, CPU, I/O and network is currently consuming on
> linux server and so on and so forth.
> 
> Thanks in Advance and i look forward to hearing from you.
> 
> Best Regards,
> 
> Kaushal
> ___
> CentOS mailing list
> CentOS@centos.org
> https://lists.centos.org/mailman/listinfo/centos
> 

From the command line there is always top(1).  If you want a GUI then
System Tools > System Moinitor and click on "Processes".  All the
columns are sortable.

-- 
J Martin Rushton MBCS



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


[CentOS] Resource utilisation of processes on linux server.

2019-04-14 Thread Kaushal Shriyan
Hi,

I have around 6 processes running on CentOS Linux release 7.6.1810 (Core).
Is there a way to find out which process is taking resources like memory,
CPU, I/O and network.

Process 1 : How much memory, CPU, I/O and network is currently consuming on
linux server
Process 2 : How much memory, CPU, I/O and network is currently consuming on
linux server
Process 3 : How much memory, CPU, I/O and network is currently consuming on
linux server and so on and so forth.

Thanks in Advance and i look forward to hearing from you.

Best Regards,

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


Re: [CentOS] Outliner

2019-04-14 Thread H
On 04/14/2019 01:47 PM, Markku Kolkka wrote:
> H kirjoitti 14.4.2019 klo 13.42:
>> I would love to find an old-fashioned outliner, like the ones that used to 
>> exist prior to the modern GUIs. 
> Emacs outline mode?
> https://www.gnu.org/software/emacs/manual/html_node/emacs/Outline-Mode.html
>
I don't use emacs. If I had to use an editor for this, I would rather use geany 
which I already use as an editor...

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


Re: [CentOS] Outliner

2019-04-14 Thread Markku Kolkka
H kirjoitti 14.4.2019 klo 13.42:
> I would love to find an old-fashioned outliner, like the ones that used to 
> exist prior to the modern GUIs. 
Emacs outline mode?
https://www.gnu.org/software/emacs/manual/html_node/emacs/Outline-Mode.html

-- 
Markku Kolkka
markku.kol...@iki.fi
___
CentOS mailing list
CentOS@centos.org
https://lists.centos.org/mailman/listinfo/centos


[CentOS] Outliner

2019-04-14 Thread H
I would love to find an old-fashioned outliner, like the ones that used to 
exist prior to the modern GUIs. It would make writing structured documents, or 
organizing thoughts in general, so much more convenient, productive and faster. 
Ideally it should allow saving files in txt, OO and markdown formats...

Does anything like this exist that can run in a terminal window under Centos??

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