Re: Error with mcron-configuration

2018-07-07 Thread Jone
Yes, it was only my mistake, I was in a hurry =) Now «(mcron-service (list
updatedb-job fstrim-job))», reconfigure Ok.


But only it still does not work! At first, ps ax | grep mcron

  292 ?Ssl0:00
/gnu/store/9dl8l4krszdd1dhaw94da0nv28ap8dvp-mcron-1.1.1/bin/mcron
/gnu/store/vvf3frpvrffpchbd3xxlq8kmnxsywja6-mcron-job
/gnu/store/jv9asgfm82f6k7srwxy6bf9ckk70z270-mcron-job
/gnu/store/n4jbzmm6ihv70dd8j2ba9501hxs3q9ar-mcron-job
/gnu/store/2yql34psrh6iiyczs48hj7pw5bgv6gh6-mcron-job
7530 ?Z  0:00 [mcron] 
11714 ?  Z  0:00 [mcron] 

Secondly rottlog was never launched («(service rottlog-service-type
(rottlog-configuration))» - right?).
For me, this is not a problem, I just remove mcron from the system
configuration and will start it at user
as «mcron -d». But I think I should have told about this.


Re: MTP & Guix

2018-07-07 Thread Pierre Neidhardt

Maxim Cournoyer  writes:

> Basically, add this to your ~/.emacs if you want it to connect
> automatically to your device:
>
> --8<---cut here---start->8---
> (setq tramp-adb-connect-if-not-connected t)
> --8<---cut here---end--->8---
>
> And then fire it up using C-x C-f /adb::.
>
> You need the cable for the initial adb connection, but after you
> continue the connection over TCP/IP wirelessly, by doing [2]:
>
>> adb shell ip -f inet addr show wlan0   # Find your phone's IP address
>> adb tcpip 
>> adb connect :

Nice, thanks for the tip!
I cannot try it out now and I'm no Android expert, so first question is:
does it require any special setup on the phone side?

-- 
Pierre Neidhardt


signature.asc
Description: PGP signature


Re: Error with mcron-configuration

2018-07-07 Thread Pierre Neidhardt

Jone  writes:

> (use-modules
>  ...
> (gnu services mcron);; ← manual
>  ...
> (define fstrim-job  ;; ← manual
>   #~(job "10 10 * * 6"
>  "fstrim -a"))
> ...
> (services (cons*
>  ...
>   (mcron-service-type (mcron-configuration (jobs (list fstrim-job  ;; ←
> but here the question
>  ...

Did you use `mcron-service' around `mcron-service-type'?

>  ...
> (mcron-service (mcron-configuration (jobs (list fstrim-job  ;; ← manual
>  ...

`mcron-service' takes a list of jobs as argument, not an mcron-configuration.

From the manual:


--8<---cut here---start->8---
 -- Scheme Procedure : mcron-service JOBS [#:mcron MCRON]
 Return an mcron service running MCRON that schedules JOBS, a list
 of gexps denoting mcron job specifications.

 This is a shorthand for:
  (service mcron-service-type
   (mcron-configuration (mcron mcron) (jobs jobs)))
--8<---cut here---end--->8---

So for you needs you'd need something like:

--8<---cut here---start->8---
(services (cons*
  (mcron-service (list fstrim-job))
  ...)
--8<---cut here---end--->8---

Hope that helps! :)

-- 
Pierre Neidhardt

Sorry, no fortune this time.


signature.asc
Description: PGP signature