Re: [arch-general] Where can I 'setterm -blank 5 -powerdown 6' as part of the boot process/systemd startup?

2018-05-31 Thread David C. Rankin
On 05/31/2018 02:39 PM, David C. Rankin wrote:
> On 05/26/2018 03:30 AM, Celti Burroughs via arch-general wrote:
>> [Unit]
>> Description=Enable virtual console blanking and poweroff
>>
>> [Service]
>> Type=oneshot
>> Environment=TERM=linux
>> StandardOutput=tty
>> TTYPath=/dev/console
>> ExecStart=/usr/bin/setterm -blank 5 -powerdown 6
>>
>> [Install]
>> WantedBy=multi-user.target
> 
> Thank you Celti!
> 

It works!

After reboot,

$ cat /sys/module/kernel/parameters/consoleblank
300

Awesome...


-- 
David C. Rankin, J.D.,P.E.



signature.asc
Description: OpenPGP digital signature


Re: [arch-general] Where can I 'setterm -blank 5 -powerdown 6' as part of the boot process/systemd startup?

2018-05-31 Thread David C. Rankin
On 05/26/2018 03:30 AM, Celti Burroughs via arch-general wrote:
> [Unit]
> Description=Enable virtual console blanking and poweroff
> 
> [Service]
> Type=oneshot
> Environment=TERM=linux
> StandardOutput=tty
> TTYPath=/dev/console
> ExecStart=/usr/bin/setterm -blank 5 -powerdown 6
> 
> [Install]
> WantedBy=multi-user.target

Thank you Celti!

I'll give it a try. I installed the service file in /usr/lib/systemd/system
and then enabled it. (I guess I should create a package for it)

Is this the reason console blanking quit working? The default was removed from
/sys/module/kernel/parameters/consoleblank to turn it over to systemd, but no
one ever implemented the service for systemd?

I don't get why for 15 years console blanking worked perfectly and then it
just quit working. Now we need to create a new service file just to get the
default behavior back? Seems kind of crazy.

Oh well, I'll let you know if it works (I just installed 4.16.12, and enabled
the service before reboot -- time will tell. If it does, is there any interest
in creating a "console-blanking" package to install the service? Seems like it
should be there and be set to 600 by default.

Thanks again.

-- 
David C. Rankin, J.D.,P.E.



signature.asc
Description: OpenPGP digital signature


Re: [arch-general] arch-general Digest, Vol 163, Issue 29

2018-05-31 Thread Candy Adkins via arch-general
Ok I did the below unsubscribe.  My accts are hacked with so.eone that uses you 
guys product.  I've found as I had to file a case with the secret service since 
now 2 years has past but regardless. Thank you

Candy 


From: Doug Newgard 
Sent: Thursday, May 31, 2018 10:51:57 AM
To: Candy Adkins via arch-general
Cc: Candy Adkins
Subject: Re: [arch-general] arch-general Digest, Vol 163, Issue 29

On Thu, 31 May 2018 15:44:33 +
Candy Adkins via arch-general  wrote:

> Please remove me from this list I didn't ask for your emails
>
> Candy 
>

Somebody with access to your account did. This email won't do anything, either,
follow the instructions provided in your original email below.

> 
> From: arch-general  on behalf of 
> arch-general-requ...@archlinux.org 
> Sent: Thursday, May 31, 2018 7:00:01 AM
> To: arch-general@archlinux.org
> Subject: arch-general Digest, Vol 163, Issue 29
>
> Send arch-general mailing list submissions to
> arch-general@archlinux.org
>
> To subscribe or unsubscribe via the World Wide Web, visit
> https://lists.archlinux.org/listinfo/arch-general
> or, via email, send a message with subject or body 'help' to
> arch-general-requ...@archlinux.org
>
> You can reach the person managing the list at
> arch-general-ow...@archlinux.org
>


Re: [arch-general] arch-general Digest, Vol 163, Issue 29

2018-05-31 Thread Doug Newgard via arch-general
On Thu, 31 May 2018 15:44:33 +
Candy Adkins via arch-general  wrote:

> Please remove me from this list I didn't ask for your emails
> 
> Candy 
> 

Somebody with access to your account did. This email won't do anything, either,
follow the instructions provided in your original email below.

> 
> From: arch-general  on behalf of 
> arch-general-requ...@archlinux.org 
> Sent: Thursday, May 31, 2018 7:00:01 AM
> To: arch-general@archlinux.org
> Subject: arch-general Digest, Vol 163, Issue 29
> 
> Send arch-general mailing list submissions to
> arch-general@archlinux.org
> 
> To subscribe or unsubscribe via the World Wide Web, visit
> https://lists.archlinux.org/listinfo/arch-general
> or, via email, send a message with subject or body 'help' to
> arch-general-requ...@archlinux.org
> 
> You can reach the person managing the list at
> arch-general-ow...@archlinux.org
> 


Re: [arch-general] arch-general Digest, Vol 163, Issue 29

2018-05-31 Thread Candy Adkins via arch-general
Please remove me from this list I didn't ask for your emails

Candy 


From: arch-general  on behalf of 
arch-general-requ...@archlinux.org 
Sent: Thursday, May 31, 2018 7:00:01 AM
To: arch-general@archlinux.org
Subject: arch-general Digest, Vol 163, Issue 29

Send arch-general mailing list submissions to
arch-general@archlinux.org

To subscribe or unsubscribe via the World Wide Web, visit
https://lists.archlinux.org/listinfo/arch-general
or, via email, send a message with subject or body 'help' to
arch-general-requ...@archlinux.org

You can reach the person managing the list at
arch-general-ow...@archlinux.org

When replying, please edit your Subject line so it is more specific
than "Re: Contents of arch-general digest..."


Today's Topics:

   1. Re: Set ip lan address /etc/environment (Ralph Corderoy)
   2. Re: Set ip lan address /etc/environment (Leonid Isaev)


--

Message: 1
Date: Thu, 31 May 2018 10:44:25 +0100
From: Ralph Corderoy 
To: General Discussion about Arch Linux 
Subject: Re: [arch-general] Set ip lan address /etc/environment
Message-ID: <20180531094425.cac7120...@orac.inputplus.co.uk>
Content-Type: text/plain; charset=utf-8

Hi Maykel,

> I need define variable called ip with current ip address machine...
> And when reboot machine, the variable ip always has ip address.

Yes, I think we all figured that bit out.  :-)
But why;  what's going to be using that IP-address environment variable,
and when?

--
Cheers, Ralph.
https://plus.google.com/+RalphCorderoy


--

Message: 2
Date: Thu, 31 May 2018 04:01:16 -0600
From: Leonid Isaev 
To: arch-general@archlinux.org
Subject: Re: [arch-general] Set ip lan address /etc/environment
Message-ID: <20180531100116.ga22...@takahe.colorado.edu>
Content-Type: text/plain; charset=us-ascii

On Thu, May 31, 2018 at 10:44:25AM +0100, Ralph Corderoy wrote:
> Hi Maykel,
>
> > I need define variable called ip with current ip address machine...
> > And when reboot machine, the variable ip always has ip address.
>
> Yes, I think we all figured that bit out.  :-)
> But why;  what's going to be using that IP-address environment variable,
> and when?

Indeed. Is it for consumption of users whose shell you don't know? Is it for
scripts, like cron jobs?

In the former case, see what is in /etc/shells, and drop a script to
/etc/profile.d, one for each shell. But that will be for login shells. In the
latter case, I am afraid you need to define it each time...

Finally, a bit of a puzzle, what are you going to do when the network goes
down, i.e. should the variable be unset or updated? In other words, how certain
are you that the IP address remains unchanged throughout the machine uptime?

--
Leonid Isaev


--

Subject: Digest Footer

___
arch-general mailing list
arch-general@archlinux.org
https://lists.archlinux.org/listinfo/arch-general


--

End of arch-general Digest, Vol 163, Issue 29
*


Re: [arch-general] Set ip lan address /etc/environment

2018-05-31 Thread Leonid Isaev via arch-general
On Thu, May 31, 2018 at 10:44:25AM +0100, Ralph Corderoy wrote:
> Hi Maykel,
> 
> > I need define variable called ip with current ip address machine...
> > And when reboot machine, the variable ip always has ip address.
> 
> Yes, I think we all figured that bit out.  :-)
> But why;  what's going to be using that IP-address environment variable,
> and when?

Indeed. Is it for consumption of users whose shell you don't know? Is it for
scripts, like cron jobs?

In the former case, see what is in /etc/shells, and drop a script to
/etc/profile.d, one for each shell. But that will be for login shells. In the
latter case, I am afraid you need to define it each time...

Finally, a bit of a puzzle, what are you going to do when the network goes
down, i.e. should the variable be unset or updated? In other words, how certain
are you that the IP address remains unchanged throughout the machine uptime?

-- 
Leonid Isaev


Re: [arch-general] Set ip lan address /etc/environment

2018-05-31 Thread Ralph Corderoy
Hi Maykel,

> I need define variable called ip with current ip address machine...
> And when reboot machine, the variable ip always has ip address.

Yes, I think we all figured that bit out.  :-)
But why;  what's going to be using that IP-address environment variable,
and when?

-- 
Cheers, Ralph.
https://plus.google.com/+RalphCorderoy


Re: [arch-general] Set ip lan address /etc/environment

2018-05-31 Thread Maykel Franco via arch-general
2018-05-30 18:34 GMT+02:00 Leonid Isaev via arch-general
:
> On Wed, May 30, 2018 at 01:07:59PM +0200, Maykel Franco via arch-general 
> wrote:
>> Hi, I put this text in /etc/environment:
>>
>> $ source /etc/environment
>>
>> ip="$(ifconfig | grep -A 1 'eth0' | tail -1 | cut -d ':' -f 2 | cut -d
>> ' ' -f 1)"
>>
>> $ echo $ip
>>
>> 192.168.0.33
>>
>> Works fine, but when I reboot my archlinux:
>>
>> $ echo $ip
>>
>> $(ifconfig | grep -A 1 'eth0' | tail -1 | cut -d ':' -f 2 | cut -d ' ' -f 1)
>>
>>
>> What's happened?? Is necessary exec source /etc/environment after every 
>> reboot?
>>
>> Thanks in advanced.
>
> /etc/environment is for PAM not shell, so it only allows ip=xxx.yyy.zzz.aaa .
> Also, /etc/profile is for LOGIN shells, meaning that from scripts or when 
> doing
> scp(1) it won't be read. What exactly are you trying to achieve?
>
> Cheers,
> --
> Leonid Isaev

I need define variable called ip with current ip address machine...

And when reboot machine, the variable ip always has ip address.