Re: Disable ugly pc-speaker sound in Slim auth failure

2019-03-16 Thread znavko
Thank you! But I've found another config without this complexity.

Using ddg.gg: guix config pcspkr
I've found  
https://gitlab.com/pkill-9/guix-config/blob/master/system-config.scm#L123

(operating-system
...
  (kernel-arguments '("modprobe.blacklist=pcspkr"))
)

And compiled. Guix has built qemu and grub.
 But pc speaker sound rests there. And also after start Xfce some pc speaker 
noises occurs. So I do not know.
Do you think this config line is incorrect?



Mar 16, 2019, 4:00 PM by someb...@not-sent-or-endorsed-by.tobias.gr:

> Zvavko,
>
> znavko wrote:
>
>> # guix system reconfigure /etc/config.scm
>> /etc/config.scm:97:26: error: comma-separated: unbound variable
>> hint: Did you forget a `use-modules' form?
>>
>
> […]
>
>> Mentioned github page has no any use-modules string that can help.
>>
>
> Look again.  From system-config/os-main.scm:
>
>  (al utils)
>
> And indeed, guile/modules/al/utils.scm has:
>
>  (define (comma-separated . strings)
>  "Return string by concatenating STRINGS with commas."
>  (mapconcat identity strings ","))
>
> You can copy the definition to your own configuration, or just replace it 
> with the (trivial) MAPCONCAT call directly, or just use a comma-separated 
> string to begin with.
>
> Kind regards,
>
> T G-R
>



Re: Disable ugly pc-speaker sound in Slim auth failure

2019-03-16 Thread znavko
Hi! According to Guix Manual 6.2.11 Initial RAM Disk and Guile Manual 6.6.9.6 
List Modification
I added this to config.scm:

(use modules
...
 (gnu system linux-initrd) 
 (gnu packages linux))

(operating-system 
...
  (initrd 
  (base-initrd file-systems
  #:linux-modules '(delq (pcspkr %base-initrd-modules
)

But the error occurs:

# guix system reconfigure /etc/config.scm
Backtrace:
  12 (primitive-load "/root/.config/guix/current/bin/guix")
In guix/ui.scm:
  1654:12 11 (run-guix-command _ . _)
In ice-9/boot-9.scm:
    829:9 10 (catch _ _ # …)
    829:9  9 (catch _ _ # …)
In guix/scripts/system.scm:
   1292:8  8 (_)
In guix/status.scm:
    810:4  7 (call-with-status-report _ _)
In guix/scripts/system.scm:
   1153:6  6 (process-action _ _ _)
In guix/store.scm:
  1737:24  5 (run-with-store _ _ #:guile-for-build _ #:system _ # _)
In guix/scripts/system.scm:
  1166:13  4 (_ _)
    850:9  3 (perform-action reconfigure #< kerne…> …)
In gnu/system.scm:
   950:26  2 (operating-system-bootcfg #< kernel:…> …)
   967:26  1 (operating-system-boot-parameters #<…> …)
In unknown file:
   0 (_ (#< device: "/dev/sda1" mount-point: …>) …)

ERROR: Wrong type to apply: # name: "raw-initrd" 
gexp: #) (call-with-output-file (string-append # "/references") 
(lambda (port) (simple-format port "~A\n" #:out>))) (build-initrd (string-append # 
"/initrd.cpio.gz") #:guile #:out> #:init # name: "init" gexp: # guile: # path: 
("/gnu/store/1vyq5wcgwzk0vgd9kc8qgp1f5x0b3pki-guix-module-union/share/guile/site/2.2"
 "/run/current-system/profile/share/guile/site/2.2" 
"/gnu/store/r658y3cgpnf99nxjxqgjiaizx20ac4k0-guile-2.2.4/share/guile/2.2" 
"/gnu/store/r658y3cgpnf99nxjxqgjiaizx20ac4k0-guile-2.2.4/share/guile/site/2.2" 
"/gnu/store/r658y3cgpnf99nxjxqgjiaizx20ac4k0-guile-2.2.4/share/guile/site" 
"/gnu/store/r658y3cgpnf99nxjxqgjiaizx20ac4k0-guile-2.2.4/share/guile")>:out> 
#:references-graphs (quote ("closure")) #:gzip (string-append #:out> 
"/bin/gzip"))) 403da50> guile: #f options: (#:references-graphs (("closure" 
#< name: "init" gexp: # guile: # path: 
("/gnu/store/1vyq5wcgwzk0vgd9kc8qgp1f5x0b3pki-guix-module-union/share/guile/site/2.2"
 "/run/current-system/profile/share/guile/site/2.2" 
"/gnu/store/r658y3cgpnf99nxjxqgjiaizx20ac4k0-guile-2.2.4/share/guile/2.2" 
"/gnu/store/r658y3cgpnf99nxjxqgjiaizx20ac4k0-guile-2.2.4/share/guile/site/2.2" 
"/gnu/store/r658y3cgpnf99nxjxqgjiaizx20ac4k0-guile-2.2.4/share/guile/site" 
"/gnu/store/r658y3cgpnf99nxjxqgjiaizx20ac4k0-guile-2.2.4/share/guile")>)))> 
"/initrd.cpio.gz">

Let me know what to correct??



Mar 14, 2019, 4:00 AM by zna...@tutanota.com:

> Hello! Please, what should I use in config.scm for disable pc-speaker sound 
> while authorize in Slim and have an error in password?
>
>
> $ cat /etc/config.scm
> ...
> (services (cons* 
> ...
>  (modify-services %desktop-services
>
>     (slim-service-type config =>
>   (slim-configuration
>    (inherit config)
>    (startx
>     (xorg-start-command
>  #:configuration-file
>  (xorg-configuration-file
>   #:extra-config
>   '(
> "Section \"InputClass\"
>     Identifier \"touchpad\"
>     Driver \"libinput\"
>     MatchIsTouchpad \"on\"
>     Option \"Tapping\" \"on\"
> EndSection"
>  ))
> )  ;end of modify-services 2nd
> ...
> )
>



Re: Disable ugly pc-speaker sound in Slim auth failure

2019-03-16 Thread znavko
I've found this example: 
https://github.com/alezost/guix-config/blob/master/system-config/os-main.scm 


and have typed this for disable pc speaker:


(define %redundant-linux-modules '("pcspkr" "snd_pcsp"))

(operating system
...
 (kernel-arguments
 (list (string-append "modprobe.blacklist="
  (apply comma-separated
    %redundant-linux-modules)


# guix system reconfigure /etc/config.scm
/etc/config.scm:97:26: error: comma-separated: unbound variable
hint: Did you forget a `use-modules' form?

I've downloaded Guix git and found this word but no anywhere declaration of 
comma-separated function:

$ git clone https://git.savannah.gnu.org/git/guix.git/ 

$ grep -rl comma-sep .
./etc/completion/fish/guix.fish
./tests/cran.scm
./tests/ui.scm
./doc/guix.texi
./doc/guix.fr.texi
./doc/guix.de.texi
./po/packages/da.po
./po/packages/de.po
./po/packages/es.po
./po/packages/zh_CN.po
./po/packages/fr.po
./po/packages/pl.po
./po/packages/hu.po
./po/doc/guix-manual.fr.po
./po/doc/guix-manual.pot
./po/doc/guix-manual.de.po
./po/guix/pt_BR.po
./po/guix/da.po
./po/guix/sv.po
./po/guix/de.po
./po/guix/es.po
./po/guix/zh_CN.po
./po/guix/fr.po
./po/guix/pl.po
./gnu/packages/music.scm
./gnu/packages/bootstrap/x86_64-linux/xz
./gnu/packages/bootstrap/aarch64-linux/xz
./gnu/packages/bootstrap/mips64el-linux/xz
./gnu/packages/bootstrap/i686-linux/xz
./gnu/packages/bootstrap/armhf-linux/xz
./gnu/packages/perl.scm
./gnu/packages/textutils.scm
./gnu/services/mail.scm
./gnu/services/kerberos.scm
./gnu/build/accounts.scm
./guix/scripts/gc.scm
./guix/ui.scm
./guix/import/cran.scm


How to tell guix how to use comma-separated function??
Mentioned github page has no any use-modules string that can help.


Disable ugly pc-speaker sound in Slim auth failure

2019-03-13 Thread znavko
Hello! Please, what should I use in config.scm for disable pc-speaker sound 
while authorize in Slim and have an error in password?


$ cat /etc/config.scm
...
(services (cons* 
...
 (modify-services %desktop-services

    (slim-service-type config =>
  (slim-configuration
   (inherit config)
   (startx
    (xorg-start-command
 #:configuration-file
 (xorg-configuration-file
  #:extra-config
  '(
"Section \"InputClass\"
    Identifier \"touchpad\"
    Driver \"libinput\"
    MatchIsTouchpad \"on\"
    Option \"Tapping\" \"on\"
EndSection"
 ))
)  ;end of modify-services 2nd
...
)


Re: Disable ugly pc-speaker sound in Slim auth failure

2019-03-17 Thread znavko
Successfully solved with this code in /etc/config.scm:

(operating-system
...
  (kernel-arguments '("modprobe.blacklist=pcspkr,snd_pcsp"))
)

# guix system reconfigure /etc/config.scm
# reboot

PC speaker no longer beeps. Thank you!
I think it's a luck, cause from here 
https://github.com/alezost/guix-config/blob/469db8060235cc6bb7501cfb798f29ede3cc21e6/system-config/os-main.scm#L29
 
<https://github.com/alezost/guix-config/blob/469db8060235cc6bb7501cfb798f29ede3cc21e6/system-config/os-main.scm#L29>
I've got names of kernel modules, so that not only pcspkr, but also snd_pcsp 
needs to disable
and from here
https://gitlab.com/pkill-9/guix-config/blob/master/system-config.scm#L123 
<https://gitlab.com/pkill-9/guix-config/blob/master/system-config.scm#L123>
I've got that simple line that not breaks my config.scm syntax.
Still do not know why guix does not find `(use modules  (al utils))` module and 
how to get guile modules work.


Mar 16, 2019, 4:46 PM by zna...@tutanota.com:

> You know, Tobias! Just for experiment I've add (al utils) and guix cuss out:
>
> (use-modules (gnu) (gnu system nss)
>  (gnu system locale) ;;for locale-definition
>  (gnu services desktop)
>  ;;(gnu services dns) ;;for dnsmasq
>  (srfi srfi-1) ;;for remove function
>  (gnu services networking) ;;for remove ntp
>  (gnu services avahi) ;;for remove avahi
>  (gnu services xorg)
>  ;;(gnu services databases);;for postgres
>  (gnu packages admin) ;;for wpa_supplicant
>  (al utils)
> )
>
> # guix system reconfigure /etc/config.scm
> guix system: error: failed to load '/etc/config.scm':
> ice-9/boot-9.scm:2803:6: In procedure resolve-interface:
> no code for module (al utils)
>
> What is wrong here? How to use guile modules?
>
>
> Mar 16, 2019, 4:00 PM by > someb...@not-sent-or-endorsed-by.tobias.gr 
> <mailto:someb...@not-sent-or-endorsed-by.tobias.gr>> :
>
>> Zvavko,
>>
>> znavko wrote:
>>
>>> # guix system reconfigure /etc/config.scm
>>> /etc/config.scm:97:26: error: comma-separated: unbound variable
>>> hint: Did you forget a `use-modules' form?
>>>
>>
>> […]
>>
>>> Mentioned github page has no any use-modules string that can help.
>>>
>>
>> Look again.  From system-config/os-main.scm:
>>
>> (al utils)
>>
>> And indeed, guile/modules/al/utils.scm has:
>>
>> (define (comma-separated . strings)
>> "Return string by concatenating STRINGS with commas."
>> (mapconcat identity strings ","))
>>
>> You can copy the definition to your own configuration, or just replace it 
>> with the (trivial) MAPCONCAT call directly, or just use a comma-separated 
>> string to begin with.
>>
>> Kind regards,
>>
>> T G-R
>>
>
>



Re: pdf editor for placing stress

2019-02-17 Thread znavko

Thank you very much! Xournal is awesome for placing stresses!


Feb 16, 2019, 10:33 PM by rek...@elephly.net:

>
> zna...@tutanota.com >  writes:
>
>> Hello, GuixSD! Is there any software for placing stress and some other
>> notes on text inf pdf files for files with lot of pages?  GIMP is bad
>> when you need 50 page you must make invisible other layers.
>>
>
> I use Xournal for annotating PDF documents.
>
> --
> Ricardo
>



pdf editor for placing stress

2019-02-16 Thread znavko
Hello, GuixSD! Is there any software for placing stress and some other notes on 
text inf pdf files for files with lot of pages?
GIMP is bad when you need 50 page you must make invisible other layers.


Re: Where is mysql/administration command?

2019-02-17 Thread znavko

Hello! Your nice question is quite reasonable.

To use mysql/administration commands on GuixSD need to have both:
mysql service
mysql package
When you've reconfigured  your system adding mysql service to your config file 
you can either install mysql for root user with `# guix package -i mysql` or 
add mysql package system-wide (for all users) in '(packages ...)' section in 
your system config.

The same for postgresql. I used it the same way.

Hope you enjoy GuixSD!


Feb 18, 2019, 3:05 AM by kumagus...@gmail.com:

> On Mon, Feb 18, 2019 at 02:11:28AM +0100, Tobias Geerinckx-Rice wrote:
>
>> Hullo,
>>
>> Yoshinori Arai wrote:
>> > I have done system reconfigure to add httpd, mysql service to try to
>> > setup same environment in GuixSD.
>>
>> […]
>>
>> > Why is not mysql commands in system profile?
>>
>> Your operating-system's ‘packages’ field is probably missing ‘mariadb’.
>> Services don't install packages to your system profile.
>>
>> Kind regards,
>>
>> T G-R
>>
>
> Hello,
>
> Thank you for your rapid reply.
>
> Is to use mysql needed both of mariaDB service and mysql service?
> But I think the definition of mariaDB service is missing.
> Do you mean to need mariaDB package or mysql package in system
> configuration?
>
> Thank you.
>



Re: Where is mysql/administration command?

2019-02-18 Thread znavko
Hello, Tobias Geerinckx-Rice!
I use su, just for own commodity. The difference for me is that su does not 
need to type 'sudo' every time.

Some howtos mention meariadb package, the others type mysql. 
What is the difference between mariadb and mysql? 


Feb 18, 2019, 2:41 PM by someb...@not-sent-or-endorsed-by.tobias.gr:

> Hullo,
>
> znavko wrote:
>
>> To use mysql/administration commands on GuixSD need to have both:
>> mysql service
>> mysql package
>> When you've reconfigured your system adding mysql service to your config 
>> file you can either install mysql for root user
>>
>
> Just curious: why for root?  Do you prefer su to sudo, or does it make a real 
> difference?
>
>> with `# guix package -i mysql` or add mysql package system-wide (for all 
>> users) in '(packages ...)' section in your system config.
>>
>
> Hmm.  It's important to note that Guix's (historically-named) ’mysql-service’ 
> actually uses MariaDB by default:
>
>  ;; From gnu/services/databases.scm:
>  (define-record-type* 
>  mysql-configuration make-mysql-configuration
>  mysql-configuration?
>  (mysql mysql-configuration-mysql (default mariadb))
>  (port mysql-configuration-port (default 3306)))
>
> However, the ‘mysql’ package *is* actually MySQL, not MariaDB.
>
> I don't know how compatible the two projects still are, but it's probably 
> much safer to install ‘mariadb’ instead.
>
>  $ guix package -i mariadb
>
>> Hope you enjoy GuixSD!
>>
>
> +1000!
>
> (Though s/SD/ System ;-)
>
> Kind regards,
>
> T G-R
>



GPT PMBR size mismatch (2020547 != 7866367)

2019-02-09 Thread znavko
Hi! What to do with it:

# fdisk -l
...

Device Boot Start   End   Sectors   Size Id Type
/dev/sda1    2048 23000 229997953 109.7G 83 Linux
/dev/sda2   23640 234441647   4441008   2.1G 82 Linux swap / Solaris


GPT PMBR size mismatch (2020547 != 7866367) will be corrected by write.
The backup GPT table is not on the end of the device. This problem will be 
corrected by write.



collect2: fatal error: cannot find 'ld'

2019-02-09 Thread znavko
Hi! I compile this 
https://stackoverflow.com/questions/6161823/dd-how-to-calculate-optimal-blocksize
 


and get this:

$ gcc c.c
collect2: fatal error: cannot find 'ld'
compilation terminated.

$ whereis ld
ld:

$ gcc --version
gcc (GCC) 8.2.0

How to solve this?


Binary substitutes on Guix. When?

2019-02-14 Thread znavko
Hello, developers!

As mentioned in 'Substitutes' section of Guix Manual "The ci.guix.info server 
is a front-end to an official build farmthat builds packages from Guix 
continuously for somearchitectures, and makes them available as substitutes."

And the roadmap contains this:
"* Features scheduled for 1.0
- larger & more robust build farm+ we need a powerful, dedicated front-end"

Now when the users come to try, they are just seeing endless compilation 
process. And Guix looks not friendly with such an option. This is a bottle-neck.

Pre-built packages are needed. When will it be realized?

Thanks.




Re: collect2: fatal error: cannot find 'ld'

2019-02-10 Thread znavko
Installation of gcc-toolchain did not help.

$ guix package -I |grep gcc
gcc-toolchain    8.2.0    out    
/gnu/store/xwk99qi92pm3zqd95mvjx4mkdmg8plpk-gcc-toolchain-8.2.0

$ gcc c
c: file not recognized: file format not recognized
collect2: error: ld returned 1 exit status

$ cat c
#include 
#include 

int main(void)
{
    struct stat stats;

    if (!stat("/", ))
    {
    printf("%u\n", stats.st_blksize);
    }
}



Feb 9, 2019, 2:35 PM by rek...@elephly.net :

>
> zna...@tutanota.com >  writes:
>
>> Hi! I compile this >> 
>> https://stackoverflow.com/questions/6161823/dd-how-to-calculate-optimal-blocksize
>>  
>> >>
>>   <>> 
>> https://stackoverflow.com/questions/6161823/dd-how-to-calculate-optimal-blocksize
>>  
>> >>
>>  >
>>
>> and get this:
>>
>> $ gcc c.c
>> collect2: fatal error: cannot find 'ld'
>> compilation terminated.
>>
>> $ whereis ld
>> ld:
>>
>> $ gcc --version
>> gcc (GCC) 8.2.0
>>
>> How to solve this?
>>
>
> I’m assuming that you installed the “gcc” package.  Don’t do that.
> Install “gcc-toolchain” instead.
>
>  guix package -r gcc -i gcc-toolchain
>
> -- 
> Ricardo
>



Touchpad tap again

2019-02-10 Thread znavko

Hello! I am not able to determine what is the problem while I'm trying to 
reconfigure system.
I only add code for touchpad tap from 63 to 78 lines in config.scm (see 
attachment).

# guix system reconfigure /etc/config.scm
/etc/config.scm:47:20: error: config: unbound variable
hint: Did you forget a `use-modules' form?

Please, what I need to use in use-modules section?
=part f config.scm=
(use-modules (gnu) (gnu system nss)
 (gnu system locale) ;;for locale-definition
 (gnu services desktop)
 ;;(gnu services dns) ;;for dnsmasq
 (srfi srfi-1) ;;for remove function
 (gnu services networking) ;;for remove ntp
 (gnu services avahi) ;;for remove avahi
 (gnu services xorg)
 ;;(gnu services databases);;for postgres
 (gnu packages admin) ;;for wpa_supplicant

)
(use-service-modules desktop)
(use-package-modules certs gnome)

  (services (cons*  
    ;;(service postgresql-service-type)
    (xfce-desktop-service)
    (modify-services  
  ;;(remove (lambda (service)
  ;;  (eq? (service-kind service)
  ;;    wpa-supplicant-service-type))
  ;;  (remove (lambda (service)
  ;;    (eq? (service-kind service)
  ;;  static-networking-service-type))
  (remove (lambda (service)
    (eq? (service-kind service)
  ntp-service-type))
    (remove (lambda (service)
  (eq? (service-kind service)
    avahi-service-type))
  %desktop-services

    (slim-service-type config =>
  (slim-configuration
   (inherit config)
   (startx
    (xorg-start-command
 #:configuration-file
 (xorg-configuration-file
  #:extra-config
  '(
"Section \"InputClass\"
    Identifier \"touchpad-all\"
    MatchIsTouchpad \"on\"
    Option \"Tapping\" \"on\"
EndSection"
 ))


    )  ;end of remove avahi
  )  ;end of remove2 ntp
    ;;)  ;end of remove3 networking
  ;)  ;end of remove4 wpa-supplicant
  (elogind-service-type
    c => (elogind-configuration (handle-lid-switch 
'ignore)))
    );;end of modify desktop-services
  ));;end of services


config.scm--touchpad
Description: Binary data


Re: Touchpad tap again

2019-02-10 Thread znavko
Sorry, I forgot (modify-services) function again.
Trying first config was unsuccessful, but using examples from here 
https://wiki.archlinux.org/index.php/Libinput 
 I've got my touchpad reacts on 
tap and double-clicks.

I think the driver option is important for me Driver \"libinput\"
Here's my workable config for touchpad in GuixSD:


  (services (cons*  
    ;;(service postgresql-service-type)
    (xfce-desktop-service)
    (modify-services  
  ;;(remove (lambda (service)
  ;;  (eq? (service-kind service)
  ;;    wpa-supplicant-service-type))
  ;;  (remove (lambda (service)
  ;;    (eq? (service-kind service)
  ;;  static-networking-service-type))
  (remove (lambda (service)
    (eq? (service-kind service)
  ntp-service-type))
    (remove (lambda (service)
  (eq? (service-kind service)
    avahi-service-type))
  (modify-services %desktop-services

    (slim-service-type config =>
  (slim-configuration
   (inherit config)
   (startx
    (xorg-start-command
 #:configuration-file
 (xorg-configuration-file
  #:extra-config
  '(
"Section \"InputClass\"
    Identifier \"touchpad\"
    Driver \"libinput\"
    MatchIsTouchpad \"on\"
    Option \"Tapping\" \"on\"
EndSection"
 ))
)


    )  ;end of remove avahi
  )  ;end of remove2 ntp
    ;;)  ;end of remove3 networking
  ;)  ;end of remove4 wpa-supplicant
  (elogind-service-type
    c => (elogind-configuration (handle-lid-switch 
'ignore)))
    );;end of modify desktop-services
  ));;end of services


See attachment with full config.scm

Thanks, Pierr Neidhardt for that link here 
https://lists.gnu.org/archive/html/help-guix/2018-10/msg00140.html 
 !

Feb 10, 2019, 11:36 AM by zna...@tutanota.com:

>
> Hello! I am not able to determine what is the problem while I'm trying to 
> reconfigure system.
> I only add code for touchpad tap from 63 to 78 lines in config.scm (see 
> attachment).
>
> # guix system reconfigure /etc/config.scm
> /etc/config.scm:47:20: error: config: unbound variable
> hint: Did you forget a `use-modules' form?
>
> Please, what I need to use in use-modules section?
>
> =part f config.scm=
> (use-modules (gnu) (gnu system nss)
>  (gnu system locale) ;;for locale-definition
>  (gnu services desktop)
>  ;;(gnu services dns) ;;for dnsmasq
>  (srfi srfi-1) ;;for remove function
>  (gnu services networking) ;;for remove ntp
>  (gnu services avahi) ;;for remove avahi
>  (gnu services xorg)
>  ;;(gnu services databases);;for postgres
>  (gnu packages admin) ;;for wpa_supplicant
>
> )
> (use-service-modules desktop)
> (use-package-modules certs gnome)
> 
>
>   (services (cons*  
>     ;;(service postgresql-service-type)
>     (xfce-desktop-service)
>     (modify-services  
>   ;;(remove (lambda (service)
>   ;;  (eq? (service-kind service)
>   ;;    wpa-supplicant-service-type))
>   ;;  (remove (lambda (service)
>   ;;    (eq? (service-kind service)
>   ;;  static-networking-service-type))
>   (remove (lambda (service)
>     (eq? (service-kind service)
>   ntp-service-type))
>     (remove (lambda (service)
>   (eq? (service-kind service)
>     avahi-service-type))
>   %desktop-services
>
>     (slim-service-type config =>
>   (slim-configuration
>    (inherit config)
>    (startx
>     (xorg-start-command
>  

Re: collect2: fatal error: cannot find 'ld'

2019-02-10 Thread znavko
Sorry. The file extension was the solution:

$ mv c c.c
$ gcc c.c
$ ./a.out
4096




Feb 10, 2019, 10:28 AM by zna...@tutanota.com:

> Installation of gcc-toolchain did not help.
>
> $ guix package -I |grep gcc
> gcc-toolchain    8.2.0    out    
> /gnu/store/xwk99qi92pm3zqd95mvjx4mkdmg8plpk-gcc-toolchain-8.2.0
>
> $ gcc c
> c: file not recognized: file format not recognized
> collect2: error: ld returned 1 exit status
>
> $ cat c
> #include 
> #include 
>
> int main(void)
> {
>     struct stat stats;
>
>     if (!stat("/", ))
>     {
>     printf("%u\n", stats.st_blksize);
>     }
> }
>
>
>
> Feb 9, 2019, 2:35 PM by > rek...@elephly.net > :
>
>>
>> zna...@tutanota.com >>  writes:
>>
>>> Hi! I compile this >>> 
>>> https://stackoverflow.com/questions/6161823/dd-how-to-calculate-optimal-blocksize
>>>  
>>> >>   <>>> 
>>> https://stackoverflow.com/questions/6161823/dd-how-to-calculate-optimal-blocksize
>>>  
>>> >>  >
>>>
>>> and get this:
>>>
>>> $ gcc c.c
>>> collect2: fatal error: cannot find 'ld'
>>> compilation terminated.
>>>
>>> $ whereis ld
>>> ld:
>>>
>>> $ gcc --version
>>> gcc (GCC) 8.2.0
>>>
>>> How to solve this?
>>>
>>
>> I’m assuming that you installed the “gcc” package.  Don’t do that.
>> Install “gcc-toolchain” instead.
>>
>> guix package -r gcc -i gcc-toolchain
>>
>> -- 
>> Ricardo
>>
>
>



How to add an element 'Ungoogled Chromium with Tor' to Applications menu in Xfce4-panel on GuixSD?

2019-04-07 Thread znavko
Hello! I've installed Ungoogled-Chromium on GuixSD, thanks Marius Bakke for the 
port to guix!

I've found Chromium has settings for proxy only from command line run.
Using 'man chromium' I've got Chromium works with Tor this way:

`chromium --proxy-server="socks4://127.0.0.1:9050"`

cause tor is using port 9050:
$ netstat -lntu
Active Internet connections (only servers)
Proto Recv-Q Send-Q Local Address Foreign Address State 
tcp 0 0 127.0.0.1:9050 0.0.0.0:* LISTEN 
udp 0 0 0.0.0.0:68 0.0.0.0:* 
Now I want to add Applications menu element 'Chromium Tor'. But as far as guix 
breaks usual linux directories structure and I have no /usr/share/applications 
folder, want to aks how to edit or add element to Applications menu in xfce4?


Re: disable software blocking of wifi?

2019-04-07 Thread znavko
Thank you, Gábor Boskovits, for being awesome! I've tried this again and 
helped. Previously it was strange for me not to see wlp2s0. But I do it again 
and I have Internet automatically after boot.

I did exactly this: blacklisted ideapad_laptop, reconfigured, rebooted. And 
have Internet.

# gedit /etc/config.scm
...
(operating-system
...
 (kernel-arguments 
'("modprobe.blacklist=pcspkr,snd_pcsp,wmi,bluetooth,pata_acpi,ideapad_laptop"))
)

# guix system reconfigure
# reboot

After reboot I see

$ rfkill list all
0: phy0: Wireless LAN
Soft blocked: no
Hard blocked: no

$ ping gnu.org
PING gnu.org (209.51.188.148): 56 data bytes
64 bytes from 209.51.188.148: icmp_seq=0 ttl=53 time=156.678 ms
64 bytes from 209.51.188.148: icmp_seq=1 ttl=53 time=154.375 ms
^C--- gnu.org ping statistics ---
3 packets transmitted, 2 packets received, 33% packet loss
round-trip min/avg/max/stddev = 154.375/155.526/156.678/1.152 ms
 

Do I need to rewrite my config with phy0 interface instead of wlp2s0?

(wpa-supplicant-service-type config =>
   (wpa-supplicant-configuration
 (interface "wlp2s0")
 (config-file 
"/etc/wpa_supplicant/wpa_supplicant.conf")))

Also do I need blacklist wmi and pata_acpi?

Why I have not ethernet interface now?


April 6, 2019 9:21 PM, "Gábor Boskovits"  wrote:

> Hello,
> 
>  ezt írta (időpont: 2019. ápr. 6., Szo, 23:04):
> 
>> rfkill list all
>> 0: ideapad_wlan: Wireless LAN
>> Soft blocked: no
>> Hard blocked: no
>> 1: phy0: Wireless LAN
>> Soft blocked: no
>> Hard blocked: no
>> 2: ideapad_bluetooth: Bluetooth
>> Soft blocked: yes
>> Hard blocked: no
> 
> Thanks. I looked a bit around, and some seems to be solving by blacklisting
> ideapad_laptop (which I see loaded)
> acer-wmi (I don't see this loaded).
> 
> Could you try blacklisting ideapad_laptop, and see if it helps?
> 
>> April 6, 2019 8:49 PM, "Gábor Boskovits"  wrote:
>> 
>> Hello,
>> 
>>  ezt írta (időpont: 2019. ápr. 6., Szo, 22:36):
>> 
>> Yes. This is my hardware. Yes, I do think about writing my own service 
>> unlocking wifi. But I have a
>> thought that it will be impossible to start wpa-supplicant after my own 
>> service, on shepherd it
>> will be kind of hack. I seek guru's support.
>> 
>> $ lspci
>> 00:00.0 Host bridge: Intel Corporation Atom Processor Z36xxx/Z37xxx Series 
>> SoC Transaction Register
>> (rev 0e)
>> 00:02.0 VGA compatible controller: Intel Corporation Atom Processor 
>> Z36xxx/Z37xxx Series Graphics &
>> Display (rev 0e)
>> 00:13.0 SATA controller: Intel Corporation Atom Processor E3800 Series SATA 
>> AHCI Controller (rev
>> 0e)
>> 00:1a.0 Encryption controller: Intel Corporation Atom Processor 
>> Z36xxx/Z37xxx Series Trusted
>> Execution Engine (rev 0e)
>> 00:1b.0 Audio device: Intel Corporation Atom Processor Z36xxx/Z37xxx Series 
>> High Definition Audio
>> Controller (rev 0e)
>> 00:1c.0 PCI bridge: Intel Corporation Atom Processor E3800 Series PCI 
>> Express Root Port 1 (rev 0e)
>> 00:1c.2 PCI bridge: Intel Corporation Atom Processor E3800 Series PCI 
>> Express Root Port 3 (rev 0e)
>> 00:1c.3 PCI bridge: Intel Corporation Atom Processor E3800 Series PCI 
>> Express Root Port 4 (rev 0e)
>> 00:1d.0 USB controller: Intel Corporation Atom Processor Z36xxx/Z37xxx 
>> Series USB EHCI (rev 0e)
>> 00:1f.0 ISA bridge: Intel Corporation Atom Processor Z36xxx/Z37xxx Series 
>> Power Control Unit (rev
>> 0e)
>> 00:1f.3 SMBus: Intel Corporation Atom Processor E3800 Series SMBus 
>> Controller (rev 0e)
>> 02:00.0 Network controller: Qualcomm Atheros QCA9565 / AR9565 Wireless 
>> Network Adapter (rev 01)
>> 03:00.0 Ethernet controller: Realtek Semiconductor Co., Ltd. 
>> RTL8111/8168/8411 PCI Express Gigabit
>> Ethernet Controller (rev 10)
>> 
>> $ lsmod
>> Module Size Used by
>> ccm 20480 9
>> fuse 114688 2
>> snd_hda_codec_hdmi 57344 1
>> snd_hda_codec_conexant 24576 1
>> snd_hda_codec_generic 77824 1 snd_hda_codec_conexant
>> ledtrig_audio 16384 2 snd_hda_codec_generic,snd_hda_codec_conexant
>> intel_rapl 24576 0
>> intel_soc_dts_thermal 20480 0
>> intel_soc_dts_iosf 20480 1 intel_soc_dts_thermal
>> intel_powerclamp 20480 0
>> coretemp 20480 0
>> kvm 651264 0
>> irqbypass 16384 1 kvm
>> punit_atom_debug 16384 0
>> cmdlinepart 16384 0
>> rtsx_usb_ms 24576 0
>> intel_spi_platform 16384 0
>> intel_spi 24576 1 intel_spi_platform
>> memstick 20480 1 rtsx_usb_ms
>> rtsx_usb_sdmmc 28672 0
>> spi_nor 45056 1 intel_spi
>> mtd 65536 3 cmdlinepart,intel_spi
>> iTCO_wdt 16384 0
>> iTCO_vendor_support 16384 1 iTCO_wdt
>> crct10dif_pclmul 16384 1
>> crc32_pclmul 16384 0
>> arc4 16384 2
>> uvcvideo 94208 0
>> ath9k 155648 0
>> videobuf2_vmalloc 20480 1 uvcvideo
>> videobuf2_memops 20480 1 videobuf2_vmalloc
>> ath9k_common 24576 1 ath9k
>> videobuf2_v4l2 24576 1 uvcvideo
>> ath9k_hw 479232 2 ath9k_common,ath9k
>> joydev 24576 0
>> ghash_clmulni_intel 16384 0
>> cryptd 24576 1 ghash_clmulni_intel
>> videobuf2_common 45056 2 videobuf2_v4l2,uvcvideo

Re: dhcpcd logs

2019-04-17 Thread znavko
Ok. I use dhcp-client instead, cause I need only to get Ip address but not to 
have dncp server.
Some of threads in help-guix has solved my troubles with wifi. and I published 
config to my site live-znavko.pantheonsite.io

April 17, 2019 6:06 AM, "Chris Marusich"  wrote:

>  writes:
> 
>> Where are dhcpcd logs?
> 
> We start dhcpd as described in gnu/services/networking.scm:
> 
> (define dhcpd-shepherd-service
> (match-lambda
> (($  package config-file version run-directory
> lease-file pid-file interfaces)
> (unless config-file
> (error "Must supply a config-file"))
> (list (shepherd-service
> ;; Allow users to easily run multiple versions simultaneously.
> (provision (list (string->symbol
> (string-append "dhcpv" version "-daemon"
> (documentation (string-append "Run the DHCPv" version " daemon"))
> (requirement '(networking))
> (start #~(make-forkexec-constructor
> '(#$(file-append package "/sbin/dhcpd")
> #$(string-append "-" version)
> "-lf" #$lease-file
> "-pf" #$pid-file
> "-cf" #$config-file
> #$@interfaces)
> #:pid-file #$pid-file))
> (stop #~(make-kill-destructor)))
> 
> I checked the manual page for dhcpd ("man dhcpd"). None of those
> options (-4, -lf, -pf, -cf) seem to tell dhcpd to change the way it
> emits logs. However, -cf tells it to look at a config file, which might
> change the way it behaves. What dhcpd config are you using?
> 
> By default, according to the manual, dhcpd emits logs to syslog:
> 
> "Normally, dhcpd will log all output using the syslog(3) function with
> the log facility set to LOG_DAEMON."
> 
> Have you customized the syslog config at all? By default, it is the
> following (defined in gnu/services/base.scm):
> 
> ;; Snippet adapted from the GNU inetutils manual.
> (define %default-syslog.conf
> (plain-file "syslog.conf" "
> # Log all error messages, authentication messages of
> # level notice or higher and anything of level err or
> # higher to the console.
> # Don't log private authentication messages!
> *.alert;auth.notice;authpriv.none /dev/console
> 
> # Log anything (except mail) of level info or higher.
> # Don't log private authentication messages!
> *.info;mail.none;authpriv.none /var/log/messages
> 
> # Like /var/log/messages, but also including \"debug\"-level logs.
> *.debug;mail.none;authpriv.none /var/log/debug
> 
> # Same, in a different place.
> *.info;mail.none;authpriv.none /dev/tty12
> 
> # The authpriv file has restricted access.
> authpriv.* /var/log/secure
> 
> # Log all the mail messages in one place.
> mail.* /var/log/maillog
> "))
> 
> It might be good to check all of the places mentioned above, to see if
> you can find the logs. It looks like the "daemon" log facility might
> get sent to different locations depending on the severity.
> 
> I hope that helps!
> 
> --
> Chris



kicking off nm again

2019-04-12 Thread znavko
Hello! I need your advise in my `holly war` for guix purity in my low-capacity 
Laptop.

While `guix pull && guix system reconfigure config-znavko-12-04-2019.scm` 
worked, Network-Manager and some other stuff have pervaded.

I saw this:

# guix pull && guix system reconfigure config-znavko-12-04-2019.scm
...
downloading from 
https://ci.guix.info/nar/gzip/5d9hhqd8mzcbll094lapd3q59kcfbjwx-mutter-3.24.4...

downloading from 
https://ci.guix.info/nar/gzip/02k2cbgmlanypwnbn1qzxxh54zs7z9gg-geocode-glib-3.20.1...
 geocode-glib-3.20.1 98KiB 56KiB/s 00:02 [##] 100.0%

downloading from 
https://ci.guix.info/nar/gzip/8x3imp6y4qnfgjhfi1k53mdbkz1xscwl-gnome-online-accounts-3.26.2-lib...
 gnome-online-accounts-3.26.2-lib 276KiB 53KiB/s 00:00 [# ] 5 
gnome-online-accounts-3.26.2-lib 276KiB 60KiB/s 00:01 [## ] 11 
gnome-online-accounts-3.26.2-lib 276KiB 45KiB/s 00:01 [### ] 17 
gnome-online-accounts-3.26.2-lib 276KiB 8KiB/s 00:08 [ ] 23. 
gnome-online-accounts-3.26.2-lib 276KiB 9KiB/s 00:09 [# ] 29. 
gnome-online-accounts-3.26.2-lib 276KiB 12KiB/s 00:09 [### ] 40 
gnome-online-accounts-3.26.2-lib 276KiB 13KiB/s 00:10 [ ] 46 
gnome-online-accounts-3.26.2-lib 276KiB 15KiB/s 00:10 [# ] 52 
gnome-online-accounts-3.26.2-lib 276KiB 16KiB/s 00:11 [### ] 63 
gnome-online-accounts-3.26.2-lib 276KiB 17KiB/s 00:12 [ ] 69 
gnome-online-accounts-3.26.2-lib 276KiB 19KiB/s 00:12 [## ] 81 
gnome-online-accounts-3.26.2-lib 276KiB 21KiB/s 00:12 [ ] 92 
gnome-online-accounts-3.26.2-lib 276KiB 22KiB/s 00:12 [##] 
100.0%

downloading from 
https://ci.guix.info/nar/gzip/sv05vb2d34kabcr0bkxywlgscpp3gvd5-libgweather-3.26.1...
downloading from 
https://ci.guix.info/nar/gzip/m7sbp699inhdmlmpvkzmsncgi0lkz263-network-manager-1.8.4...
 network-manager-1.8.4 4.6MiB 117KiB/s 00:40 [##] 100.0%

downloading from 
https://ci.guix.info/nar/gzip/jj4a71qxpkpk2i3qi4mnkr0ghs6bhh0g-evolution-data-server-3.28.1...

downloading from 
https://ci.guix.info/nar/gzip/zdxjj50y3w5l2npkpkm29k9zjpng5ghm-network-manager-applet-1.8.4...
Do not want to have NetworkManager, but I discovered it has dependents 
(attached svg). In svg I cannot determine what exactly need nm. Arc-theme? Gdm? 
Gnome?

My packages for root are:

# guix package -I
emacs-rainbow-delimiters 2.1.3 out 
/gnu/store/83d544jsqd2jnqnd9racpghg71pgv546-emacs-rainbow-delimiters-2.1.3
xset 1.2.4 out /gnu/store/af5xnphd8nl3qsrvq312idvbbq1y4vs6-xset-1.2.4
lshw B.02.18 out /gnu/store/4arjspj4d99kkx8nkmjh1j4nrfw7wsb0-lshw-B.02.18
unzip 6.0 out /gnu/store/rvr69vbggcy12qiayy20yf49vcgh11zj-unzip-6.0
glibc-utf8-locales 2.28 out 
/gnu/store/94k5w17z54w25lgp90czdqfv9m4hwzhq-glibc-utf8-locales-2.28
wireless-tools 30.pre9 out 
/gnu/store/38l735aqzshdfd1z0z0df6ci1jdkg91w-wireless-tools-30.pre9
dosfstools 4.1 out /gnu/store/vhg24flnc41ysbq6hds8s33s1x2i12mn-dosfstools-4.1
torsocks 2.3.0 out /gnu/store/rc7166vfi36sx0vqyggnm4b3n1z9ry9k-torsocks-2.3.0
curl 7.64.0 out /gnu/store/09x4p4ywz39xzy42kmscfi2nnhwjgybd-curl-7.64.0
postgresql 10.7 out /gnu/store/cjwd6qaw7imbv64qb6ja4gx4zpwzl77c-postgresql-10.7
htop 2.2.0 out /gnu/store/b5hkkgk2lmx5n0gipbx93jh6pxbzzdz6-htop-2.2.0
wget 1.20.1 out /gnu/store/wxhbyn2ff6fz9xhm4nyilgx8gs0hnk4p-wget-1.20.1
nmap 7.70 out /gnu/store/viz0jwlhdjzdicz0sl3g7c4bcpz5xpap-nmap-7.70
tor 0.3.4.11 out /gnu/store/0mnwmb670xxzqanqbamjmli7nm0dlpyn-tor-0.3.4.11
openvpn 2.4.7 out /gnu/store/krzb78b7ma2gvyjpiw58vz4nv21qg665-openvpn-2.4.7
graphviz 2.40.1 out /gnu/store/hw4h30a6hgza5fr2pdaz69bnqyh6r0cb-graphviz-2.40.1
emacs-paredit 24 out 
/gnu/store/1zha5anxg029qfl7r569aap5lfyrb66a-emacs-paredit-24
emacs-geiser 0.10 out 
/gnu/store/sjrmk26ayiblnsz7ka5lcy61xpp1hk5b-emacs-geiser-0.10
lm-sensors 3.4.0 out 
/gnu/store/8a27wj8mslg3plrg1zsymhchvyqsgnkq-lm-sensors-3.4.0
git 2.21.0 out /gnu/store/f7lmi6k82mw54gz00m5nq4abpc79mgbp-git-2.21.0
emacs 26.1 out /gnu/store/zcs0sb51znspcach6z5r4zn9zwqw2zyh-emacs-26.1
gedit 3.28.1 out /gnu/store/bzkvlf8msq0bi78vpajqjyyd68anf0al-gedit-3.28.1
glibc-locales 2.28 out 
/gnu/store/acl2wxzzkkcjv74rlqswdf9p8pwddlmk-glibc-locales-2.28
1) Let me know how to delete nm, if I've removed it from services in 
%desktop-services, but gdm or gnome pulled it into my system.

2) libgweather. Also, I do not need lbgweather. arc-theme depends on it again? 
Sorry, I do not use gnome.

3) geocode-glib. Gnome is so fat. How to cut it off? Can I have gdm without 
gnome?

4) gnome-online-accounts

5) evolution-data-server

6) network-manager-applet

7) mutter, what's this? I think xfce4 does not use it. How to kick it out?

Please, is the last leaf of revert dependencies graph that package I need to 
remove for that guix will not pull these 7 packages again?
If so arc-theme and gnome are my aims. How to remove them?


config-znavko-12-04-2019.scm
Description: Binary data


Re: kicking off nm again

2019-04-14 Thread znavko
sorry, this works with touchpad.

  (services (cons* 
 (service xfce-desktop-service-type)
 (service dhcp-client-service-type)
 (service slim-service-type
  (slim-configuration
(xorg-configuration
 (xorg-configuration
  (extra-config  
   '("Section \"InputClass\"
Identifier \"touchpad\"
Driver \"libinput\"
MatchIsTouchpad \"on\"
Option \"Tapping\" \"on\"
EndSection")
   
  )

 (modify-services  
  (remove (lambda (service)
(member (service-kind service)
(list ntp-service-type 
avahi-service-type 
  bluetooth-service 
network-manager-service-type
  gdm-service-type)))
  %desktop-services) ;end of remove lambda 
services

  (wpa-supplicant-service-type config =>
   
(wpa-supplicant-configuration
(interface "wlp2s0")
(config-file 
"/etc/wpa_supplicant/wpa_supplicant.conf")))

  (elogind-service-type
   c => (elogind-configuration (handle-lid-switch 
'ignore)))
  ) ;;end of modify-services
 )) ;;end of services




April 14, 2019 7:44 AM, zna...@disroot.org wrote:

> I've read an actual guix manual pages from the local source tree, figured out 
> the consist of
> %desktop-services Scheme variable and retyped my config. These things were 
> done there: removing
> gdm-service-type, adding slim-service-type and configuring slim-service-type 
> to work with touchpad.
> Then `guix system reconfigure /etc/config.scm' was run. gdm disappeared, as 
> you said. It will not
> pull GNOME 3 stuff now.
> 
> (services (cons* 
> (service xfce-desktop-service-type)
> (service dhcp-client-service-type)
> (service slim-service-type)
> 
> (modify-services 
> (remove (lambda (service)
> (member (service-kind service)
> (list ntp-service-type avahi-service-type 
> bluetooth-service network-manager-service-type
> gdm-service-type)))
> %desktop-services) ;end of remove lambda services
> 
> (wpa-supplicant-service-type config =>
> (wpa-supplicant-configuration
> (interface "wlp2s0")
> (config-file "/etc/wpa_supplicant/wpa_supplicant.conf")))
> 
> (slim-service-type config =>
> (slim-configuration
> (xorg-configuration
> (xorg-configuration
> (extra-config 
> '("Section \"InputClass\"
> Identifier \"touchpad\"
> Driver \"libinput\"
> MatchIsTouchpad \"on\"
> Option \"Tapping\" \"on\"
> EndSection")
> )
> 
> (elogind-service-type
> c => (elogind-configuration (handle-lid-switch 'ignore)))
> ) ;;end of modify-services
> )) ;;end of services
> 
> Thank you, Mark! 
> 
> April 13, 2019 7:39 PM, "Mark H Weaver"  wrote:
> 
>> Hi,
>> 
>> zna...@disroot.org writes:
>> 
>>> Hello! I need your advise in my `holly war` for guix purity in my 
>>> low-capacity Laptop.
>>> 
>>> While `guix pull && guix system reconfigure
>>> config-znavko-12-04-2019.scm` worked, Network-Manager and some other
>>> stuff have pervaded.
>> 
>> [...]
>> 
>>> 1) Let me know how to delete nm, if I've removed it from services in
>>> %desktop-services, but gdm or gnome pulled it into my system.
>>> 
>>> 2) libgweather. Also, I do not need lbgweather. arc-theme depends on
>>> it again? Sorry, I do not use gnome.
>>> 
>>> 3) geocode-glib. Gnome is so fat. How to cut it off? Can I have gdm
>>> without gnome?
>>> 
>>> 4) gnome-online-accounts
>>> 
>>> 5) evolution-data-server
>>> 
>>> 6) network-manager-applet
>>> 
>>> 7) mutter, what's this? I think xfce4 does not use it. How to kick it out?
>> 
>> One reason that all of this stuff is being pulled in is because you're
>> using GDM as your display

Re: Grub Bios Boot filesystem description

2019-05-26 Thread znavko
This is my config, that does not contain item for /dev/sdb1 file system that is 
for bios grub: https://termbin.com/t2pr
Will it work fine?

May 26, 2019 12:27 PM, zna...@disroot.org wrote:

> Hello! If I want to part my disk and to use 3 partitions:
> 1) Bios Grub,
> 2) Linux filesystem, and
> 3) Linux Swap
> should I describe my Bios Grub filesystem in '(operating-system (file-systems 
> (list ...)))' or just
> only in '(operating-system (bootloader ...))' section?
> 
> If I need to describe grub file system, so which type should I specify?
> 
> If I do not need, how grub will know to boot from my root partition Linux 
> filesystem on /dev/sdb2 ?



Grub Bios Boot filesystem description

2019-05-26 Thread znavko
Hello! If I want to part my disk and to use 3 partitions:
1) Bios Grub,
2) Linux filesystem, and
3) Linux Swap
should I describe my Bios Grub filesystem in '(operating-system (file-systems 
(list ...)))' or just only in '(operating-system (bootloader ...))' section?

If I need to describe grub file system, so which type should I specify?

If I do not need, how grub will know to boot from my root partition Linux 
filesystem on /dev/sdb2 ?


how to unmount disk after guix system init error?

2019-05-26 Thread znavko
Hello! I am trying to install Guix on other notebook. when I've parted it with 
fdisk using such partitions:
/dev/sdb1 50Gb Linux filesystem
/dev/sdb2 9Gb Linux swap

then `guix system init /mnt/etc/config.scm /mnt` gave the error:
Embedding is not possible. Grub can only be installed in this setup by using 
blocklists. However blocklists are UnreLIABLE and their use is discouraged.
guix system: error: failed to install bootloader

And this makes me sense need to do another partitioning like this:
/dev/sdb1 150Mb BIOS Boot
/dev/sdb2 50Gb Linux filesystem
/dev/sdb3 9Gb Linux swap

I cannot do this. I fullfilled this but making filesystem on /dev/sdb2 gives 
the error, that device is mounted.
As I understand this is because of my run 'herd start cow-store /mnt' and also 
run `guix system init  /mnt`
I've stopped herd service. But do not know what to do else. So I can only 
reboot and start again.

Please is there another way to solve?


Re: How to configure Xorg to use [proprietary] Sis 771 driver on Guix?

2019-06-16 Thread znavko
Thank you, Tobias!
I'll try to use that. As I understand I need to write driver package definition 
using Guix Manual #Defining-Packages.
Is there some difficulties with driver packages?

June 16, 2019 4:08 PM, "Tobias Geerinckx-Rice"  wrote:

> Ehlo Znavko,
> 
> zna...@disroot.org wrote:
> 
>> oops, not sure it is intel.
> 
> SiS[0] is not Intel. They're a Taiwanese company whose graphics
> division later became the ill-fated XGI for a while.
> 
> Takes me back… :-)
> 
>> here i've placed driver https://gitgud.io/znavko/sis771
> 
> As was to be expected, that's not free software (or even open
> source) (or even source).
> 
> You're probably breaking the law by even hosting that link:
> there's no licence to be found anywhere, let alone one allowing
> redistribution.
> 
> This is why proprietary software sucks.
> 
>> Can anybody write package definition ?
> 
> Considering the fact that this is a 10-year-old binary blob for
> use with >10-year old X.org, that it would be illegal to host the
> origin unless you find a licence permitting that (unlikely), and
> that it has 0% chance of ever making it into Guix proper, you're
> very unlikely to find a volunteer to do this for you. And this
> mailing list or any other Guix project channel would not be an
> appropriate place to find them. Sorry.
> 
> On a more positive note: have you looked at
> 
> https://aur.archlinux.org/packages/xf86-video-sisimedia
> (or https://aur.archlinux.org/packages/xf86-video-sis)?
> 
> As you can see by the number of patches at that first link,
> keeping such old hardware working with modern software presents
> plenty of challenges—without adding those of binary blobs :-)
> 
> T G-R
> 
> [0]: https://en.wikipedia.org/wiki/Silicon_Integrated_Systems



Re: Cannot install Guix 1.0.1 on Asus K50C

2019-06-15 Thread znavko
I've  changed config. Added initrd-modules that guix offered to me. And I 
reinitialized system.
This message appears above clocksource messages:

Loading kernel modules...
ERROR: In procedure open-file: No such file or directory: 
"/gnu/store/qvhashahsh-linux-modules/sata-sis.ko"
Entering a new prompt. Type ',bt' for a backtrace or ',q' to continue.
GNU Guile 2.2.4
...

Humm. My another laptop parted only to root partition and swap, and it works. 
But here no any variant works.

Config: this http://termbin.com/ni3a

;-*- mode: Scheme; -*-
;;this is znavko's cute config

(use-modules (gnu) (gnu system nss)
 (gnu system locale) ;;for locale-definition
 (gnu services desktop)
 (srfi srfi-1) ;;for remove function
 (gnu services networking) ;;for remove ntp
 (gnu services avahi)  ;;for remove avahi
 (gnu services xorg)
 (gnu packages admin) ;;for wpa_supplicant
 )

(use-service-modules desktop)
(use-package-modules certs gnome)

(operating-system (host-name "antelope") (timezone "Europe/Moscow") (locale 
"en_US.utf8")
  (bootloader (bootloader-configuration 
(bootloader grub-bootloader) 
(target "/dev/sdb")))
  (file-systems (cons (file-system 
(device "/dev/sdb2") 
(mount-point "/") 
(type "ext4")) 
%base-file-systems))
  (swap-devices '("/dev/sdb3"))

  (initrd-modules (append (list "sata-sis")
  %base-initrd-modules))

  (users (cons* (user-account (name "bob") (group "users")
  (supplementary-groups '("wheel" 
"netdev" "audio" "video"))
  (home-directory "/home/bob"))
(user-account (name "mom") (group "users")
  (supplementary-groups '("wheel" 
"netdev" "audio" "video"))
  (home-directory "/home/mom"))
%base-user-accounts))

  ;; This is where we specify system-wide packages.
  (packages (cons* nss-certs ;for HTTPS access
   gvfs  ;for user mounts
   wpa-supplicant
   %base-packages))

  (services (cons* 
 ;; xfce4 desktop, dhcp-client, slim
 (service xfce-desktop-service-type)
 (service dhcp-client-service-type)
 ;; slim config for enabling touchpad tap
 (service slim-service-type
  (slim-configuration
(xorg-configuration
 (xorg-configuration
  (extra-config  
   '("Section \"InputClass\"
Identifier \"touchpad\"
Driver \"libinput\"
MatchIsTouchpad \"on\"
Option \"Tapping\" \"on\"
EndSection")
   
  )

 (modify-services  
  ;; removing unnecessary services
  (remove (lambda (service)
(member (service-kind service)
(list ntp-service-type 
avahi-service-type 
  bluetooth-service 
network-manager-service-type
  gdm-service-type)))
  %desktop-services) ;end of remove lambda 
services

  ;; wpa_supplicant + dhcp-client (above) instead 
of networkmanager
  (wpa-supplicant-service-type config =>
   
(wpa-supplicant-configuration
(interface "wlp2s0")
(config-file 
"/etc/wpa_supplicant/wpa_supplicant.conf")))

  ;; disabling sleep on closing notebook lid
  (elogind-service-type
   c => (elogind-configuration (handle-lid-switch 
'ignore)))
  ) ;;end of modify-services
 )) ;;end of services

  ;; Allow resolution of '.local' host names with mDNS.
  (name-service-switch 

Cannot install Guix 1.0.1 on Asus K50C

2019-06-15 Thread znavko
Hello! I have a buggy laptop Asus K50C. Time always breaks there (maybe battery 
but I do not want to solve).
I've installed Guix using manual installation method.
Notebook booting and during boot it stops after these lines:

"[1.664111] tsc: Refined TSC clocksource calliration: 1500.340 MHz
[1.664170] clocksource: tsc: mask: 0x max_cycles: 
0x15a063d2c74, max_idle_ns: 440795230855 ns
[1.664253] clocksource: Switched to clocksource tsc "

this is the end. I press 'enter' it only adds new lines. I press Ctrl+C and get 
the 'bournish@(guile-user)> ' line.

I've parted my disk like this:
/dev/sdb1 1Mb Linux filesystem
/dev/sdb2 50Gb Linux filesystem
/dev/sdb3 14Gb Linux Swap

Also, I've made ext4 on sdb2 and for /dev/sdb1 this:
parted /dev/sdb set 1 bios_grub on
I may have errors in config. This is my config I used for guix system init:
http://termbin.com/67pf



;-*- mode: Scheme; -*- ;;this is znavko's cute config (use-modules 
(gnu) (gnu system nss) (gnu system locale) ;;for locale-definition (gnu 
services desktop) (srfi srfi-1) ;;for remove function (gnu services networking) 
;;for remove ntp (gnu services avahi) ;;for remove avahi (gnu services xorg) 
(gnu packages admin) ;;for wpa_supplicant ) (use-service-modules desktop) 
(use-package-modules certs gnome) (operating-system (host-name "antelope") 
(timezone "Europe/Moscow") (locale "en_US.utf8") (bootloader 
(bootloader-configuration (bootloader grub-bootloader) (target "/dev/sdb"))) 
(file-systems (cons (file-system (device "/dev/sda2") (mount-point "/") (type 
"ext4")) %base-file-systems)) (swap-devices '("/dev/sda3")) (users (cons* 
(user-account (name "bob") (group "users") (supplementary-groups '("wheel" 
"netdev" "audio" "video")) (home-directory "/home/bob")) (user-account (name 
"mom") (group "users") (supplementary-groups '("wheel" "netdev" "audio" 
"video")) (home-directory "/home/mom")) %base-user-accounts)) ;; This is where 
we specify system-wide packages. (packages (cons* nss-certs ;for HTTPS access 
gvfs ;for user mounts wpa-supplicant %base-packages)) (services (cons* ;; xfce4 
desktop, dhcp-client, slim (service xfce-desktop-service-type) (service 
dhcp-client-service-type) ;; slim config for enabling touchpad tap (service 
slim-service-type (slim-configuration (xorg-configuration (xorg-configuration 
(extra-config '("Section "InputClass" Identifier "touchpad" Driver "libinput" 
MatchIsTouchpad "on" Option "Tapping" "on" EndSection")  ) (modify-services 
;; removing unnecessary services (remove (lambda (service) (member 
(service-kind service) (list ntp-service-type avahi-service-type 
bluetooth-service network-manager-service-type gdm-service-type))) 
%desktop-services) ;end of remove lambda services ;; wpa_supplicant + 
dhcp-client (above) instead of networkmanager (wpa-supplicant-service-type 
config => (wpa-supplicant-configuration (interface "wlp2s0") (config-file 
"/etc/wpa_supplicant/wpa_supplicant.conf"))) ;; disabling sleep on closing 
notebook lid (elogind-service-type c => (elogind-configuration 
(handle-lid-switch 'ignore))) ) ;;end of modify-services )) ;;end of services 
;; Allow resolution of '.local' host names with mDNS. (name-service-switch 
%mdns-host-lookup-nss) ;;blacklist ugly sound speaker, blacklist ideapad_laptop 
for prevent soft blocking wlan (kernel-arguments 
'("modprobe.blacklist=pcspkr,snd_pcsp,bluetooth")) ) ;;end of operating-system 
--- I'd better prefer to use chat for solving this, but due to I use 
free VPN, freenode does not work for me. Please, what to do?


Re: How to configure Xorg to use [proprietary] Sis 771 driver on Guix?

2019-06-18 Thread znavko
sorry, that previous email contained xorg.log from another laptop.

this is from my asus k50c with sis771/671:


$ cat /var/log/Xorg.0.log
[25.713] 
X.Org X Server 1.20.5
X Protocol Version 11, Revision 0
[25.714] Build Operating System: GNU GuixSD
[25.714] Current Operating System: Linux antelope 5.1.10-gnu #1 SMP 1 x86_64
[25.714] Kernel command line: 
BOOT_IMAGE=/gnu/store/xavyip9kqsms2dd0v0xwpgid1s493fx9-linux-libre-5.1.10/bzImage
 --root=/dev/sda2 --system=/gnu/store/grn3j37fmlf60cdv90n2w9w11lamf441-system 
--load=/gnu/store/grn3j37fmlf60cdv90n2w9w11lamf441-system/boot 
modprobe.blacklist=pcspkr,snd_pcsp,bluetooth
[25.714] Build Date: 01 January 1970  12:00:01AM
[25.715]  
[25.715] Current version of pixman: 0.36.0
[25.715]Before reporting problems, check http://wiki.x.org
to make sure that you have the latest version.
[25.715] Markers: (--) probed, (**) from config file, (==) default setting,
(++) from command line, (!!) notice, (II) informational,
(WW) warning, (EE) error, (NI) not implemented, (??) unknown.
[25.716] (==) Log file: "/var/log/Xorg.0.log", Time: Tue Jun 18 17:20:13 
2019
[25.757] (++) Using config file: 
"/gnu/store/gvkn9ywia7qh4z0fhqziwydv0gnpqrmi-xserver.conf"
[25.757] (++) Using config directory: 
"/gnu/store/rh8hkpf4pnkcqfbiqh81ngmiwmbh0x9n-xorg.conf.d"
[25.757] (==) Using system config directory 
"/gnu/store/2wbh7pp0sk7waq5rb666wz9z5ypr8qck-xorg-server-1.20.5/share/X11/xorg.conf.d"
[25.761] (==) No Layout section.  Using the first Screen section.
[25.761] (==) No screen section available. Using defaults.
[25.761] (**) |-->Screen "Default Screen Section" (0)
[25.761] (**) |   |-->Monitor ""
[25.762] (==) No monitor specified for screen "Default Screen Section".
Using a default monitor configuration.
[25.762] (**) Option "AllowMouseOpenFail" "on"
[25.762] (==) Automatically adding devices
[25.763] (==) Automatically enabling devices
[25.763] (==) Automatically adding GPU devices
[25.763] (==) Max clients allowed: 256, resource mask: 0x1f
[25.787] (**) FontPath set to:

/gnu/store/cn966w06mgzsbprs5cdzmv3ll8if3gr5-font-alias-1.0.3/share/fonts/X11/75dpi,

/gnu/store/cn966w06mgzsbprs5cdzmv3ll8if3gr5-font-alias-1.0.3/share/fonts/X11/100dpi,

/gnu/store/cn966w06mgzsbprs5cdzmv3ll8if3gr5-font-alias-1.0.3/share/fonts/X11/misc,

/gnu/store/cn966w06mgzsbprs5cdzmv3ll8if3gr5-font-alias-1.0.3/share/fonts/X11/cyrillic,

/gnu/store/sm8dqm4wgpac90zsv3y8li378qwc16pg-font-misc-misc-1.1.2/share/fonts/X11/misc,

/gnu/store/2wa88yyr6vlmyhqzb0js9wfvfnfw7c3f-font-adobe75dpi-1.0.3/share/fonts/X11/75dpi
[25.788] (**) ModulePath set to 
"/gnu/store/5x9bkmlrpqhl85aw8ndv6mvhj7hna9fh-xf86-video-vesa-2.4.0/lib/xorg/modules/drivers,/gnu/store/bwqk672yqa33xcij9df2jy1pgraabkin-xf86-video-fbdev-0.5.0/lib/xorg/modules/drivers,/gnu/store/jba0fsw626bbi1kw3v4knjpmhwmypkkq-xf86-video-amdgpu-19.0.1/lib/xorg/modules/drivers,/gnu/store/5v39hrqh5ask62skiynkz7gwivnzjh8w-xf86-video-ati-19.0.1/lib/xorg/modules/drivers,/gnu/store/w7nir2q57r5qxxyh2g9h68hndl3dw7xw-xf86-video-cirrus-1.5.3/lib/xorg/modules/drivers,/gnu/store/l9g2kq140sy0jr6c8g2zv60qzh11hbzd-xf86-video-intel-2.99.917-13.6afed33/lib/xorg/modules/drivers,/gnu/store/3sxb0gpx9ifigjgf6cx6lh1ddr8nhv9w-xf86-video-mach64-6.9.6/lib/xorg/modules/drivers,/gnu/store/pa3rbaidil0dw7p1dihx01kma7fcbs50-xf86-video-nouveau-1.0.16/lib/xorg/modules/drivers,/gnu/store/zl7xhp0vxzbgj3846c0lnxs6fmmnp22l-xf86-video-nv-2.1.21/lib/xorg/modules/drivers,/gnu/store/fiw1bmnzd2jnlmzjb3az7ni73m8346jk-xf86-video-sis-0.10.9/lib/xorg/modules/drivers,/gnu/store/5hrhmqlajwa07v0ia9dh7gp33nwyps33-xf86-input-libinpu
[25.788] (II) The server relies on udev to provide the list of input 
devices.
If no devices become available, reconfigure udev or disable 
AutoAddDevices.
[25.788] (II) Loader magic: 0x616d00
[25.788] (II) Module ABI versions:
[25.788]X.Org ANSI C Emulation: 0.4
[25.788]X.Org Video Driver: 24.0
[25.788]X.Org XInput driver : 24.1
[25.789]X.Org Server Extension : 10.0
[25.791] (++) using VT number 7

[25.791] (II) systemd-logind: logind integration requires -keeptty and 
-keeptty was not provided, disabling logind integration
[25.806] (--) PCI:*(1@0:0:0) 1039:6351:1043:19e2 rev 16, Mem @ 
0xd000/268435456, 0xfe9e/131072, I/O @ 0xdc00/128, BIOS @ 
0x/131072
[25.808] (WW) Open ACPI failed (/var/run/acpid.socket) (No such file or 
directory)
[25.809] (II) LoadModule: "glx"
[25.878] (II) Loading 
/gnu/store/2wbh7pp0sk7waq5rb666wz9z5ypr8qck-xorg-server-1.20.5/lib/xorg/modules/extensions/libglx.so
[25.955] (II) Module glx: vendor="X.Org Foundation"
[25.956]compiled for 1.20.5, module version = 1.0.0
[25.956]ABI class: X.Org Server Extension, version 10.0
[25.956] (==) Matched sis as autoconfigured 

Re: How to configure Xorg to use [proprietary] Sis 771 driver on Guix?

2019-06-17 Thread znavko
Mark, this is my lspci, lsmod, guix describe:

# lspci

00:00.0 Host bridge: Silicon Integrated Systems [SiS] 671MX
00:01.0 PCI bridge: Silicon Integrated Systems [SiS] AGP Port (virtual 
PCI-to-PCI bridge)
00:02.0 ISA bridge: Silicon Integrated Systems [SiS] SiS968 [MuTIOL Media IO] 
(rev 01)
00:02.5 IDE interface: Silicon Integrated Systems [SiS] 5513 IDE Controller 
(rev 01)
00:03.0 USB controller: Silicon Integrated Systems [SiS] USB 1.1 Controller 
(rev 0f)
00:03.1 USB controller: Silicon Integrated Systems [SiS] USB 1.1 Controller 
(rev 0f)
00:03.3 USB controller: Silicon Integrated Systems [SiS] USB 2.0 Controller
00:05.0 IDE interface: Silicon Integrated Systems [SiS] SATA Controller / IDE 
mode (rev 03)
00:06.0 PCI bridge: Silicon Integrated Systems [SiS] PCI-to-PCI bridge
00:07.0 PCI bridge: Silicon Integrated Systems [SiS] PCI-to-PCI bridge
00:0f.0 Audio device: Silicon Integrated Systems [SiS] Azalia Audio Controller
00:1f.0 PCI bridge: Silicon Integrated Systems [SiS] PCI-to-PCI bridge
01:00.0 VGA compatible controller: Silicon Integrated Systems [SiS] 771/671 
PCIE VGA Display Adapter (rev 10)
02:00.0 Network controller: Qualcomm Atheros AR9285 Wireless Network Adapter 
(PCI-Express) (rev 01)
03:00.0 Ethernet controller: Realtek Semiconductor Co., Ltd. RTL8111/8168/8411 
PCI Express Gigabit Ethernet Controller (rev 01)


# lsmod
Module  Size  Used by
fuse  114688  2
ccm20480  9
uvcvideo   98304  0
videobuf2_vmalloc  20480  1 uvcvideo
videobuf2_memops   20480  1 videobuf2_vmalloc
videobuf2_v4l2 24576  1 uvcvideo
videobuf2_common   45056  2 videobuf2_v4l2,uvcvideo
videodev  204800  3 videobuf2_v4l2,uvcvideo,videobuf2_common
media  53248  4 
videodev,videobuf2_v4l2,uvcvideo,videobuf2_common
joydev 24576  0
usbmouse   16384  0
arc4   16384  2
ath9k 155648  0
ath9k_common   24576  1 ath9k
ath9k_hw  479232  2 ath9k_common,ath9k
coretemp   20480  0
ath32768  3 ath9k_common,ath9k,ath9k_hw
mac80211  843776  1 ath9k
snd_hda_codec_realtek   114688  1
snd_hda_codec_generic77824  1 snd_hda_codec_realtek
ledtrig_audio  16384  2 snd_hda_codec_generic,snd_hda_codec_realtek
cfg80211  704512  4 ath9k_common,ath9k,ath,mac80211
snd_hda_intel  45056  3
snd_hda_codec 135168  3 
snd_hda_codec_generic,snd_hda_intel,snd_hda_codec_realtek
snd_hda_core   90112  4 
snd_hda_codec_generic,snd_hda_intel,snd_hda_codec,snd_hda_codec_realtek
snd_hwdep  20480  1 snd_hda_codec
snd_pcm   110592  3 snd_hda_intel,snd_hda_codec,snd_hda_core
input_leds 16384  0
psmouse   151552  0
r8169  81920  0
serio_raw  20480  0
realtek20480  1
snd_timer  40960  1 snd_pcm
snd86016  13 
snd_hda_codec_generic,snd_hwdep,snd_hda_intel,snd_hda_codec,snd_hda_codec_realtek,snd_timer,snd_pcm
soundcore  16384  1 snd
asus_laptop32768  0
sparse_keymap  16384  1 asus_laptop
input_polldev  20480  1 asus_laptop
video  45056  1 asus_laptop
mac_hid16384  0
sis_agp16384  1
virtio_rng 16384  0
virtio_console 32768  0
virtio_net 57344  0
virtio_blk 20480  0
virtio_balloon 24576  0
virtio_pci 24576  0
virtio 16384  6 
virtio_rng,virtio_console,virtio_balloon,virtio_pci,virtio_blk,virtio_net
virtio_ring32768  6 
virtio_rng,virtio_console,virtio_balloon,virtio_pci,virtio_blk,virtio_net
isci  143360  0
libsas 81920  1 isci
scsi_transport_sas 40960  2 isci,libsas
pata_atiixp16384  0
pata_acpi  16384  0
nls_iso8859_1  16384  0
wp512  36864  0
serpent_generic32768  0
xts16384  0
dm_crypt   40960  0
hid_apple  16384  0
hid_generic16384  0
usbhid 53248  0
hid   131072  4 usbhid,hid_apple,hid_generic
uas24576  0
usb_storage69632  1 uas
ahci   40960  0
libahci32768  1 ahci
sata_sis   16384  2

# guix describe
Generation 2Jun 17 2019 08:50:09(current)
  guix 0bc010d
repository URL: https://git.savannah.gnu.org/git/guix.git
branch: master
commit: 0bc010dacded4d89aa39f2d37fe75414b69b680e


June 17, 2019 4:04 PM, "Mark H Weaver"  wrote:

> Hello,
> 
> Tobias Geerinckx-Rice  writes:
> 
>> On a more positive note: have you looked at
>> 
>> https://aur.archlinux.org/packages/xf86-video-sisimedia
>> (or https://aur.archlinux.org/packages/xf86-video-sis)?
> 
> Guix already has 'xf86-video-sis', and it's already included in
> 

Re: How to configure Xorg to use [proprietary] Sis 771 driver on Guix?

2019-06-17 Thread znavko
# cat /var/log/Xorg.0.log
[10.574] 
X.Org X Server 1.20.4
X Protocol Version 11, Revision 0
[10.583] Build Operating System: GNU GuixSD
[10.586] Current Operating System: Linux antelope 5.0.14-gnu #1 SMP 1 x86_64
[10.586] Kernel command line: 
BOOT_IMAGE=/gnu/store/v0ziysnm86c9bi8wh8pf6cckkdzqsyjf-linux-libre-5.0.14/bzImage
 --root=/dev/sda1 --system=/var/guix/profiles/system-116-link 
--load=/var/guix/profiles/system-116-link/boot 
modprobe.blacklist=pcspkr,snd_pcsp,bluetooth,ideapad_laptop
[10.596] Build Date: 01 January 1970  12:00:01AM
[10.600]  
[10.603] Current version of pixman: 0.36.0
[10.610]Before reporting problems, check http://wiki.x.org
to make sure that you have the latest version.
[10.610] Markers: (--) probed, (**) from config file, (==) default setting,
(++) from command line, (!!) notice, (II) informational,
(WW) warning, (EE) error, (NI) not implemented, (??) unknown.
[10.625] (==) Log file: "/var/log/Xorg.0.log", Time: Tue Jun 18 06:41:36 
2019
[10.675] (++) Using config file: 
"/gnu/store/m4w8mr4crlxwsh1acc3255rvkr5l3xgf-xserver.conf"
[10.679] (++) Using config directory: 
"/gnu/store/2mi80p4sj8a0xxddfgyzqh647rifgiix-xorg.conf.d"
[10.682] (==) Using system config directory 
"/gnu/store/6yar7xifqhywhwz72djqrz8v88y5i3vj-xorg-server-1.20.4/share/X11/xorg.conf.d"
[10.692] (==) No Layout section.  Using the first Screen section.
[10.695] (==) No screen section available. Using defaults.
[10.699] (**) |-->Screen "Default Screen Section" (0)
[10.703] (**) |   |-->Monitor ""
[10.711] (==) No monitor specified for screen "Default Screen Section".
Using a default monitor configuration.
[10.711] (**) Option "AllowMouseOpenFail" "on"
[10.714] (==) Automatically adding devices
[10.718] (==) Automatically enabling devices
[10.721] (==) Automatically adding GPU devices
[10.725] (==) Max clients allowed: 256, resource mask: 0x1f
[10.771] (**) FontPath set to:

/gnu/store/cn966w06mgzsbprs5cdzmv3ll8if3gr5-font-alias-1.0.3/share/fonts/X11/75dpi,

/gnu/store/cn966w06mgzsbprs5cdzmv3ll8if3gr5-font-alias-1.0.3/share/fonts/X11/100dpi,

/gnu/store/cn966w06mgzsbprs5cdzmv3ll8if3gr5-font-alias-1.0.3/share/fonts/X11/misc,

/gnu/store/cn966w06mgzsbprs5cdzmv3ll8if3gr5-font-alias-1.0.3/share/fonts/X11/cyrillic,

/gnu/store/sm8dqm4wgpac90zsv3y8li378qwc16pg-font-misc-misc-1.1.2/share/fonts/X11/misc,

/gnu/store/2wa88yyr6vlmyhqzb0js9wfvfnfw7c3f-font-adobe75dpi-1.0.3/share/fonts/X11/75dpi
[10.796] (**) ModulePath set to 
"/gnu/store/w2xryn7vr8vd6mddqln9jhmmdc5x6y0n-xf86-video-vesa-2.4.0/lib/xorg/modules/drivers,/gnu/store/6njzy2lv87fr9a9ay5cp205bqfssva74-xf86-video-fbdev-0.5.0/lib/xorg/modules/drivers,/gnu/store/d2wf4a3wby80053m7ijcly1ggbq4mcz5-xf86-video-amdgpu-19.0.1/lib/xorg/modules/drivers,/gnu/store/5prr3ix7i6lkjw36barc2hlh6ga1sx62-xf86-video-ati-19.0.1/lib/xorg/modules/drivers,/gnu/store/v454ijfrmyb0cd1a74mmz2yk03il8xsm-xf86-video-cirrus-1.5.3/lib/xorg/modules/drivers,/gnu/store/bw9l6744nmm3qa7i1smi91gql061dkj0-xf86-video-intel-2.99.917-13.6afed33/lib/xorg/modules/drivers,/gnu/store/yimnqfs9v6qf2k3i3psm1cv0dhm54qg3-xf86-video-mach64-6.9.6/lib/xorg/modules/drivers,/gnu/store/7rdfy1y6093cdqh3hk7scpx74fs2smpr-xf86-video-nouveau-1.0.16/lib/xorg/modules/drivers,/gnu/store/bgmya5sgd8q9vvj0wzrngmgx74ig5dkf-xf86-video-nv-2.1.21/lib/xorg/modules/drivers,/gnu/store/3h77x4bxb0lj876sy3i77l39ixc060yl-xf86-video-sis-0.10.9/lib/xorg/modules/drivers,/gnu/store/py75z016islwsdi116jca4mv07hzvrhb-xf86-input-libinpu
[10.803] (II) The server relies on udev to provide the list of input 
devices.
If no devices become available, reconfigure udev or disable 
AutoAddDevices.
[10.803] (II) Loader magic: 0x616d00
[10.803] (II) Module ABI versions:
[10.803]X.Org ANSI C Emulation: 0.4
[10.803]X.Org Video Driver: 24.0
[10.803]X.Org XInput driver : 24.1
[10.803]X.Org Server Extension : 10.0
[10.812] (++) using VT number 7

[10.816] (II) systemd-logind: logind integration requires -keeptty and 
-keeptty was not provided, disabling logind integration
[10.821] (II) xfree86: Adding drm device (/dev/dri/card0)
[10.838] (--) PCI:*(0@0:2:0) 8086:0f31:17aa:3905 rev 14, Mem @ 
0x9000/4194304, 0x8000/268435456, I/O @ 0x2050/8, BIOS @ 
0x/131072
[10.843] (WW) Open ACPI failed (/var/run/acpid.socket) (No such file or 
directory)
[10.843] (II) LoadModule: "glx"
[10.907] (II) Loading 
/gnu/store/6yar7xifqhywhwz72djqrz8v88y5i3vj-xorg-server-1.20.4/lib/xorg/modules/extensions/libglx.so
[10.947] (II) Module glx: vendor="X.Org Foundation"
[10.947]compiled for 1.20.4, module version = 1.0.0
[10.951]ABI class: X.Org Server Extension, version 10.0
[10.954] (==) Matched modesetting as autoconfigured driver 0
[10.958] (==) Matched fbdev as autoconfigured 

Re: How to configure Xorg to use [proprietary] Sis 771 driver on Guix?

2019-06-17 Thread znavko
Mark, let's start. As I've read in links Tobias offered Sis 771/671 is not 
mentioned there,  but many other versions are presented. Is it reason?

If you say what exactly to type in my config [1] I'll do it.

[1] http://termbin.com/ni3a

June 17, 2019 4:04 PM, "Mark H Weaver"  wrote:

> Hello,
> 
> Tobias Geerinckx-Rice  writes:
> 
>> On a more positive note: have you looked at
>> 
>> https://aur.archlinux.org/packages/xf86-video-sisimedia
>> (or https://aur.archlinux.org/packages/xf86-video-sis)?
> 
> Guix already has 'xf86-video-sis', and it's already included in
> %default-xorg-modules in (gnu services xorg). So, now we just need to
> find out why it's not working. Maybe one of the other video modules
> guesses that it can support the hardware, but it actually fails? In
> that case, it might help to move 'xf86-video-sis' higher up in the list
> of modules to try.
> 
> Regards,
> Mark



translating word 'see' that is adding with pxref{}

2019-06-23 Thread znavko
Hello! I saw Russian manual has word 'see' everywhere with pxref{} strings.
In Russian this is 'см.', that is short version of 'смотреть', and is using in 
texts.

Where can I put my msgstr 'см.' for pxrefs? Should I translate gettext 
interface?


Consider the package expr evaluates to.

2019-06-23 Thread znavko
I cannot understand this string from manual:
"Consider the package expr evaluates to."

I cannot translate it using dictionary. Please, could you rephrase it for me?

There the link to `guix build --expression` make some sense: "-e expr 

Build the package or derivation expr evaluates to. "

As I understand: To build the package or derivation that responds to expression 
(or that contains expression). Am I right?

But that first line I definitely can't understand.


Re: Consider the package expr evaluates to.

2019-06-24 Thread znavko
'Expression is evaluated'??
Maybe better is 'the package that matches expression'?

'Consider' - here it means 'to use'. But dictionary meaning of 'consider' is 
'think about', 'regard' [1], so this is hard for understanding.

Guix Manual, in general, has simple language, good understanding, but sometimes 
its author cracks reader's mind.

Hope it will be rewritten and some sensual things (such as partitioning and 
typing Bios Grub config) will be added.

[1] https://www.lexico.com/en/definition/consider

June 24, 2019 3:50 PM, "Andreas Enge"  wrote:

> On Sun, Jun 23, 2019 at 06:27:26PM +, zna...@disroot.org wrote:
> 
>> I cannot understand this string from manual:
>> "Consider the package expr evaluates to."
> 
> This is an English shortcut for the following:
> "Consider the package to which expr evaluates."
> 
> So when expr is evaluated, it becomes a package; consider this package.
> 
> Actually I wonder whether it should not be in passive voice?
> "Consider the package to which expr is evaluated?". Native speaker needed!
> 
> Andreas



Re: Help with preparing to move from Arch Linux to Guix

2019-05-11 Thread znavko
Hello! While you haven't get the answer by some hackers I offer you to read 
znavko's blog where links to manuals are collected:
http://live-znavko.pantheonsite.io (http://live-znavko.pantheonsite.io/)

The limitation of saving files into '/etc/' directory does not exist, as I 
know. You may put your own files there, but only configuration files will be 
modified there by running `guix system reconfigure confis.scm`.
Now I have there old files dhcpd.conf and sddm.conf from my previous 
generations where I had these services. And even after removing those 
generation and garbage collection they remain there. So, there are no such 
limitation for '/etc/'.

Yes, Arch has awesome docs, I've been using it for configure touchpad tap for 
slim configuration in Guix System's config.
Sometimes it is difficult to understand how to use strings and types in 
config.scm, what is G-expression, why to use twice '(xorg-configuration 
(xorg-configuration ...))' and other quirks.

All the configurations should be passed to your system config file config.scm 
that is using in `guix system reconfigure config.scm`. All the services accept 
configurations only from there. I think it is not proper way to edit those 
files in '/etc/' after `guix system reconfigure ..`.

Cannot say about configs for samba, vpn, may be you'll get info reading package 
definitions here 
http://git.savannah.gnu.org/cgit/guix.git/tree/gnu/packages/samba.scm 
(http://git.savannah.gnu.org/cgit/guix.git/tree/gnu/packages/samba.scm)

znavko.

May 10, 2019 9:50 PM, "Doron Behar" mailto:doron.be...@gmail.com)> wrote:

 Hello Guix community,

I'm very excited ever since I've discovered Guix. I have been using Arch
Linux user for years and everything I've found annoying with Arch Linux
(especially as a maintainer of a few AUR packages), finally has an
elegant and robust solution.

I haven't done the transition yet. There are still around 100 packages I
use on my Arch installation which are not available on Guix and I guess
I'll need to contribute their Guile definitions my self.

My main question though, regards general system configuration. I have a
Guix 1.0.0 image burned on a USB which I boot to every once in a while
to prepare my self for the transition. I must say that while I've
inspected the filesystem of the installation media, I was astounded by
the genius design of it! I can see how it all works (notably the
symlinks) and I can see how it wonderfully enables the reproducibility
and rollback features of Guix.

Anyway, to come to the bottom of it, I've searched the documentation and
couldn't find an answer regarding what-so-ever configurations in `/etc/`.

Pretty much everything that makes Arch Linux impressive, is it's
documentation on the aspect of everything that is needed to be put in
every file in `/etc/` so the system can be tweaked exactly the way one
wishes.

I noticed that in Guix, all the files in /etc/ are read only. I
understand why - `guix system` is responsible for reading a Scheme file
that will create an etc store that will be used for the configuration of
the whole system and I'm not supposed to touch anything in /etc/
manually.. But, I couldn't find how to generally do stuff there.

I have dozens of very personal configurations I've done in my current
Arch system's /etc/ which I have no clue how to port them all and make
sure all of them are picked in the transition. Here are just a few
examples:

- tinc (VPN software): This one expects to find cryptographic key files
to in `/etc/tinc/`.
- samba: Where do I define my shares?
- pam: gnome keyring daemon autostart on login (Arch documents how to
achieve this without a login manager, see
https://wiki.archlinux.org/index.php/GNOME/Keyring#PAM_method 
(https://wiki.archlinux.org/index.php/GNOME/Keyring#PAM_method)).
- vconsole.conf: just another example for a file I've put some stuff in.

I noticed that there is a section in the manual called: Services (#8.8)
and it shows the built-in support of Guix to many common services such
as printing for example. Printing is a good example where I don't
understand how it's supposed to actually work at the end. When one adds
a printer using the Web UI in http://localhost:631 (http://localhost:631) , 
files in
`/etc/cups/` are modified and this is not tracked by `/etc/config.scm` I
suppose.. Most importantly, one cannot predict the contents of these
files after a printer is added. Not to mention that `/etc/` is all
readonly!

And there is so much more.. Additionally, some files in my current
/etc/, have passwords written in them and I wonder whether it's
considered safe to put these strings right away in `/etc/config.scm`..

Anyway, I hope this email is not too long and I could get some pointers
to places I missed in the documentation..

Thanks, Doron.


Re: Input method change in GNU IceCat installed via Guix

2019-05-12 Thread znavko
Hello, Zelphir!
I had such problem on Gnome+Wayland. It did not used another newly added 
layout, but only US even when I choose Russian in the applet in the gnome 
toolbar (the bar on top). It was for all apps under Gnome+Wayland. But I only 
tried to config system for it, so I had not purpose to solve it.
I have no such problem in Xfce4.
What is your desktop environment and display server? Also your system config 
might be needed.

May 12, 2019 10:10 AM, "Zelphir Kaltstahl"  wrote:

> Hi Guix Users!
> 
> Recently I installed GNU IceCat via Guix. A few days ago I noticed
> something:
> 
> I cannot switch input method when the GNU IceCat window is focused. My
> shortcut was CTRL+tilde before and I already tried changing it to the
> more common CTRL+ALT+space, but that also does not work. To me it seems,
> that IceCat does not bubble up the keyboard event for this shortcut to
> the system and then the system (Xubuntu 18.04) does not notice, that I
> pressed the input method switching shortcut. But that is only a guess,
> as I do not really know how the order of keyboard event processing is
> organized.
> 
> If it was only switching a few characters on the keyboard, I could live
> with simply typing differently, but when I want to input Chinese
> characters, I currently need to open another program, any text editor
> not having this issue, and then type there and copy paste it into IceCat.
> 
> I am using Fcitx for input method management. My GNU IceCat version is
> `60.3.0esr (64-bit)`.
> 
> Another application where it does not work is Emacs. However, there the
> useful built-in IM exists which can be switched to by: `C-u
> C- chinese-py ` so I do not need it there.
> 
> What can I do to make IM switching work when IceCat is focused?
> 
> Regards,
> 
> Zelphir



Re: Compression software for common compressing formats

2019-05-19 Thread znavko
I use archive manager: `guix package -s file-roller`

May 19, 2019 6:37 AM, "Adam Mazurkiewicz"  wrote:

> I am looking for the software to extract and compress files as zip,
> bz2 etc. Something like Xarchiver in Debian. What to install for this?



How to add Verdana font for Icecat?

2019-05-20 Thread znavko
Hello! I've installed Icecat for another user and then fonts packages:
glibc-utf8-locales, font-adobe-source-han-sans, font-gnu-freefont-ttf, 
font-wqy-microhei, font-cns11643

But Icecat has no choice for the font Verdana there, and sans-serif looks nasty.

On my account Icecat has Verdana as dafalut font and everything ok.

Please, what to do for Icecat use Verdana? It absents in font list in Icecat 
under second user account.


How to start Guix on Asus K50C ?

2019-05-20 Thread znavko
I try to boot from usb with the latest Guix on Asus K50C, specifications [1].

Guix shows black screen after some kernel lines on boot.
I tried to edit Grub entry deleting modprobe.blacklist=radeon, but got nothing.
Will you offer me how to install Fuix on Asus K50C?
[1] https://www.asus.com/Laptops/K50C/specifications/


Re: How to start Guix on Asus K50C ?

2019-05-21 Thread znavko
Yes, this works, and I've got console installer menu. Thanks!


May 21, 2019 8:18 AM, "Giovanni Biscuolo"  wrote:

> Hello znavko,
> 
> zna...@disroot.org writes:
> 
>> nomodeset not helped.
> 
> can you please try using "vga=791"
> 
> I had a similar issue recently and setting vga as above solved it
> 
> HTH! Gio'.
> 
> [...]
> 
> --
> Giovanni Biscuolo
> 
> Xelera IT Infrastructures



Re: error in bootloader config while system init

2019-05-21 Thread znavko
ion: ((line . 336) (column . 2) (filename . 
"gnu/system/file-systems.scm"))> #< device: "/gnu/store" 
mount-point: "/gnu/store" type: "none" flags: (read-only bind-mount) options: 
#f mount?: #t needed-for-boot?: #f check?: #f create-mount-point?: #f 
dependencies: () location: ((line . 349) (column . 2) (filename . 
"gnu/system/file-systems.scm"))>)


This info lacks from manual.


May 21, 2019 1:23 PM, "Ludovic Courtès"  wrote:

> Hi znavko,
> 
> Giovanni Biscuolo  skribis:
> 
>> In gnu/system.scm:
>> 974:26 0 (operating-system-bootcfg #< kernel:…> …)
>> 
>> gnu/system.scm:974:26: In procedure operating-system-bootcfg:
>> In procedure struct_vtable: Wrong type argument in position 1 (expecting 
>> struct): #f
> 
> [...]
> 
>> (file-systems (cons (file-system (device "/dev/sdb1") (mount-point "/mnt") 
>> (type "ext4"))
>> %base-file-systems))
> 
> I think Guix is trying to tell you, with its own words *cough*, that
> your OS config does not specify a root file system. Indeed, there’s
> “/mnt” there, but no “/”.
> 
> HTH!
> 
> Ludo’.



Re: How to add Verdana font for Icecat?

2019-05-20 Thread znavko
no.
but I've copied my files into /home/mom/.fonts and icecat started to work fine.

$ ls /home/mom/.fonts
'a_AvanteLt Light.ttf' 'Minion Pro Bold.ttf'
'Academy Old Regular.ttf' 'Myriad Pro Light Italic.ttf'
'Academy Regular.ttf' 'Myriad Pro Light Regular.ttf'
'a_FuturaRound Bold.ttf' pehlevi.ttf
'AvantGarde Regular.ttf' 'PF Monumenta Pro Regular.ttf'
'Century Gothic Regular.ttf' 'Pragmatica Bold.ttf'
'Century Schoolbook Regular.ttf' 'Pragmatica Cyrillic.ttf'
'FreeSet Regular.ttf' 'Pravda Regular.ttf'
'Izhitsa Regular.ttf' 'Tracia Regular.ttf'
'Lazurski Regular.ttf' 'Verdana Regular.ttf'
May 20, 2019 6:30 PM, "Gábor Boskovits" mailto:boskov...@gmail.com?to=%22G%C3%A1bor%20Boskovits%22%20)>
 wrote:
Hello, 
 mailto:zna...@disroot.org)> ezt írta (időpont: 2019. máj. 
20., H, 12:04): Hello! I've installed Icecat for another user and then fonts 
packages:
glibc-utf8-locales, font-adobe-source-han-sans, font-gn,u-freefont-ttf, 
font-wqy-microhei, font-cns11643

But Icecat has no choice for the font Verdana there, and sans-serif looks nasty.

On my account Icecat has Verdana as dafalut font and everything ok.

Please, what to do for Icecat use Verdana? It absents in font list in Icecat 
under second user account. 
Did you update the fc cache? 
Best regards, 
g_bor


Re: How to start Guix on Asus K50C ?

2019-05-20 Thread znavko
I have switched to another tty and install it now. but it is not useful.
I think it looks strange when you're seeing black screen after boot messages.

May 20, 2019 5:52 PM, zna...@disroot.org wrote:

> I try to boot from usb with the latest Guix on Asus K50C, specifications [1].
> 
> Guix shows black screen after some kernel lines on boot.
> I tried to edit Grub entry deleting modprobe.blacklist=radeon, but got 
> nothing.
> Will you offer me how to install Fuix on Asus K50C?
> [1] https://www.asus.com/Laptops/K50C/specifications



Re: error in bootloader config while system init

2019-05-21 Thread znavko
ystem-boot-parameters #<…> …)
> 889:4 2 (operating-system-initrd-file #< kern…>)
> In unknown file:
> 1 (filter # #)
> In gnu/system/file-systems.scm:
> 241:6 0 (file-system-needed-for-boot? _)
> 
> gnu/system/file-systems.scm:241:6: In procedure file-system-needed-for-boot?:
> In procedure struct_vtable: Wrong type argument in position 1 (expecting 
> struct): (#<
> device: "none" mount-point: "/dev/pts" type: "devpts" flags: () options: 
> "gid=996,mode=620" mount?:
> #t needed-for-boot?: #f check?: #f create-mount-point?: #t dependencies: () 
> location: ((line . 325)
> (column . 2) (filename . "gnu/system/file-systems.scm"))> #< 
> device: "tmpfs"
> mount-point: "/dev/shm" type: "tmpfs" flags: (no-suid no-dev) options: 
> "size=50%" mount?: #t
> needed-for-boot?: #f check?: #f create-mount-point?: #t dependencies: () 
> location: ((line . 336)
> (column . 2) (filename . "gnu/system/file-systems.scm"))> #< 
> device: "/gnu/store"
> mount-point: "/gnu/store" type: "none" flags: (read-only bind-mount) options: 
> #f mount?: #t
> needed-for-boot?: #f check?: #f create-mount-point?: #f dependencies: () 
> location: ((line . 349)
> (column . 2) (filename . "gnu/system/file-systems.scm"))>)
> 
> This info lacks from manual.
> 
> May 21, 2019 1:23 PM, "Ludovic Courtès"  wrote:
> 
>> Hi znavko,
>> 
>> Giovanni Biscuolo  skribis:
>> 
>>> In gnu/system.scm:
>>> 974:26 0 (operating-system-bootcfg #< kernel:…> …)
>>> 
>>> gnu/system.scm:974:26: In procedure operating-system-bootcfg:
>>> In procedure struct_vtable: Wrong type argument in position 1 (expecting 
>>> struct): #f
>> 
>> [...]
>> 
>>> (file-systems (cons (file-system (device "/dev/sdb1") (mount-point "/mnt") 
>>> (type "ext4"))
>>> %base-file-systems))
>> 
>> I think Guix is trying to tell you, with its own words *cough*, that
>> your OS config does not specify a root file system. Indeed, there’s
>> “/mnt” there, but no “/”.
>> 
>> HTH!
>> 
>> Ludo’.



Re: Input method change in GNU IceCat installed via Guix

2019-05-12 Thread znavko
Have you added the keyboard layout switcher applet to the Xfce4-panel ? screen: 
http://0x0.st/zAmH.png
Does it change layout in Icecat with mouse click on it?

May 12, 2019 11:33 AM, "Zelphir Kaltstahl" mailto:zelphirkaltst...@gmail.com?to=%22Zelphir%20Kaltstahl%22%20)>
 wrote:
Hi, 

I am running Xfce4 and the display server is: 

$ ps -e | grep tty7 1319 tty7 00:14:38 Xorg 

What does "system config" entail? 

Regards, 

Zelphir 
On 5/12/19 12:41 PM, zna...@disroot.org (mailto:zna...@disroot.org) wrote:  

Hello, Zelphir! I had such problem on Gnome+Wayland. It did not used 
another newly added layout, but only US even when I choose Russian in the 
applet in the gnome toolbar (the bar on top). It was for all apps under 
Gnome+Wayland. But I only tried to config system for it, so I had not purpose 
to solve it. I have no such problem in Xfce4. What is your desktop environment 
and display server? Also your system config might be needed. May 12, 2019 10:10 
AM, "Zelphir Kaltstahl"  
(mailto:zelphirkaltst...@gmail.com) wrote: 

Hi Guix Users! Recently I installed GNU IceCat via Guix. A few days ago 
I noticed something: I cannot switch input method when the GNU IceCat window is 
focused. My shortcut was CTRL+tilde before and I already tried changing it to 
the more common CTRL+ALT+space, but that also does not work. To me it seems, 
that IceCat does not bubble up the keyboard event for this shortcut to the 
system and then the system (Xubuntu 18.04) does not notice, that I pressed the 
input method switching shortcut. But that is only a guess, as I do not really 
know how the order of keyboard event processing is organized. If it was only 
switching a few characters on the keyboard, I could live with simply typing 
differently, but when I want to input Chinese characters, I currently need to 
open another program, any text editor not having this issue, and then type 
there and copy paste it into IceCat. I am using Fcitx for input method 
management. My GNU IceCat version is `60.3.0esr (64-bit)`. Another application 
where it does not work is Emacs. However, there the useful built-in IM exists 
which can be switched to by: `C-u C- chinese-py ` so I do 
not need it there. What can I do to make IM switching work when IceCat is 
focused? Regards, Zelphir


Re: Input method change in GNU IceCat installed via Guix

2019-05-12 Thread znavko
Sorry, I do not recognize it as Xfce4, but I do not know what it is, may be 
another theme, or may be another DE like Mate??
Need to look into your system configuration file. This is a file used to build 
system, like /etc/config.scm
it is using in 'guix system reconfigure /etc/config.scm'. Can you attach it?
For example, my config for my xfce4 environment is this now:
https://gitgud.io/znavko/guix-configs/blob/master/config-xfce-wpa-dhclient.scm

The lines are necessary:

  (services (cons*   ;; xfce4 desktop, dhcp-client, slim  (service 
xfce-desktop-service-type) ;; this is me xfce4 service 
So I need to look your config.scm
Also I do not believe you use xfce4. Do you have such processes?

# ps -ef | grep xfce
bob 474 397 0 15:13 ? 00:00:00 /bin/sh 
/gnu/store/idk8wyfb5bpay3gqqp70gs837anf9pwr-xfce4-session-4.12.1/etc/xdg/xfce4/xinitrc
bob 486 474 0 15:13 ? 00:00:01 xfce4-session
bob 489 1 0 15:13 ? 00:00:00 /home/bob/.guix-profile/bin/dbus-launch 
--sh-syntax --exit-with-session xfce4-session
bob 509 1 0 15:13 ? 00:00:00 
/gnu/store/5zz8rlspw3qvr4idp4vryyn9r2szs4kx-xfconf-4.12.1/lib/xfce4/xfconf/xfconfd
bob 515 486 0 15:13 ? 00:00:09 xfce4-panel --display :0.0 --sm-client-id 
248198f72-1aca-4421-8f98-ce6240c9426e
bob 525 486 0 15:13 ? 00:00:04 xfce4-terminal --geometry=80x24 --display :0.0 
--role=xfce4-terminal-1557645126-40294034 --show-menubar --show-borders 
--hide-toolbar --active-tab --working-directory /home/me --tab 
--working-directory /home/me --tab --working-directory /home/me --sm-client-id 
204d2f364-dca9-4041-bcdc-1ab3ada0b3ab
bob 531 1 0 15:13 ? 00:00:00 xfce4-power-manager --restart --sm-client-id 
2b023f61e-2005-4f90-aae4-10d1a4ccf529
bob 563 515 0 15:13 ? 00:00:00 
/gnu/store/jcrqg5bc7m6z231qdbc5m6hwdzvq3640-xfce4-panel-4.12.2/lib/xfce4/panel/wrapper-1.0
 /run/current-system/profile/lib/xfce4/panel/plugins/libsystray.so 6 14680095 
systray Notification Area Area where notification icons appear
bob 566 515 0 15:13 ? 00:00:00 
/gnu/store/jcrqg5bc7m6z231qdbc5m6hwdzvq3640-xfce4-panel-4.12.2/lib/xfce4/panel/wrapper-2.0
 /run/current-system/profile/lib/xfce4/panel/plugins/libbattery.so 11 14680096 
battery Battery Monitor Show and monitor the battery status
bob 568 515 1 15:13 ? 00:00:45 
/gnu/store/jcrqg5bc7m6z231qdbc5m6hwdzvq3640-xfce4-panel-4.12.2/lib/xfce4/panel/wrapper-2.0
 /run/current-system/profile/lib/xfce4/panel/plugins/libpulseaudio-plugin.so 14 
14680097 pulseaudio PulseAudio Plugin Adjust the audio volume of the PulseAudio 
sound system
bob 570 515 0 15:13 ? 00:00:02 
/gnu/store/3jvgnm0az29xj73zq5n1i27c4nk5bwi7-xfce4-xkb-plugin-0.7.1/libexec/xfce4/panel-plugins/xfce4-xkb-plugin
 12 14680098 xkb-plugin Keyboard Layouts Keyboard layouts setup and switch 
plugin
root 2787 2778 0 16:27 pts/2 00:00:00 grep --color=auto xfce
May 12, 2019 1:21 PM, "Zelphir Kaltstahl" mailto:zelphirkaltst...@gmail.com?to=%22Zelphir%20Kaltstahl%22%20)>
 wrote:
I have a switcher in my panel, but it does not look like yours: 

https://postimg.cc/Jyy7JSpt (https://postimg.cc/Jyy7JSpt) 

It always shows the same keyboard icon whether or not I changed to 
another IM in other application, which do not have the issue. Even when I 
switch globally to Pinyin input, IceCat simply writes normal keyboard 
characters. No Chinese character choice pops up. Basically I would not know by 
only looking at Icecat, that anything changed, regardless of which IM I choose. 
OK, I only have German and Chinese Pinyin installed currently. But it seems 
Icecat is completely unaware of any IMs I set in Fcitx. 
On 5/12/19 2:50 PM, zna...@disroot.org (mailto:zna...@disroot.org) wrote: Have 
you added the keyboard layout switcher applet to the Xfce4-panel ? screen: 
http://0x0.st/zAmH.png (http://0x0.st/zAmH.png)
Does it change layout in Icecat with mouse click on it?

May 12, 2019 11:33 AM, "Zelphir Kaltstahl" mailto:zelphirkaltst...@gmail.com?to=%22Zelphir%20Kaltstahl%22%20)>
 wrote:
Hi, 

I am running Xfce4 and the display server is: 

$ ps -e | grep tty7 1319 tty7 00:14:38 Xorg 

What does "system config" entail? 

Regards, 

Zelphir 
On 5/12/19 12:41 PM, zna...@disroot.org (mailto:zna...@disroot.org) wrote:  

Hello, Zelphir! I had such problem on Gnome+Wayland. It did not used 
another newly added layout, but only US even when I choose Russian in the 
applet in the gnome toolbar (the bar on top). It was for all apps under 
Gnome+Wayland. But I only tried to config system for it, so I had not purpose 
to solve it. I have no such problem in Xfce4. What is your desktop environment 
and display server? Also your system config might be needed. May 12, 2019 10:10 
AM, "Zelphir Kaltstahl"  
(mailto:zelphirkaltst...@gmail.com) wrote: 

Hi Guix Users! Recently I installed GNU IceCat via Guix. A few days ago 
I noticed something: I cannot switch input method when the GNU IceCat window is 
fo

Wrong type argument in position 1 (expecting struct): #

2019-05-08 Thread znavko
Hello! I try to reconfigure system with Gnome, sddm and wayland.
I also use sddm-configuration to define use wayland for greeter, but get the 
error for my misconfiguration:

# cat config.scm
...
 (services (cons*
 ;(service xfce-desktop-service-type)
 (service gnome-desktop-service-type)
 (service dhcp-client-service-type)
 (service sddm-service
 (sddm-configuration
 (display-server "wayland")))
...
)

# guix system reconfigure config.scm
Backtrace:
 14 (primitive-load "/root/.config/guix/current/bin/guix")
In guix/ui.scm:
 1734:12 13 (run-guix-command _ . _)
In ice-9/boot-9.scm:
 829:9 12 (catch _ _ # …)
 829:9 11 (catch _ _ # …)
In guix/scripts/system.scm:
 1301:8 10 (_)
In guix/status.scm:
 768:4 9 (call-with-status-report _ _)
In guix/scripts/system.scm:
 1159:4 8 (process-action _ _ _)
In guix/store.scm:
 623:10 7 (call-with-store _)
 1794:24 6 (run-with-store _ _ #:guile-for-build _ #:system _ # _)
In guix/scripts/system.scm:
 1175:13 5 (_ _)
 882:18 4 (perform-action reconfigure #< kerne…> …)
In gnu/system.scm:
 851:19 3 (operating-system-derivation _)
In gnu/services.scm:
 743:6 2 (instantiate-missing-services _)
In guix/combinators.scm:
 45:26 1 (fold2 # …)
In gnu/services.scm:
 733:11 0 (adjust-service-list _ (#< type: # …) …)

gnu/services.scm:733:11: In procedure adjust-service-list:
In procedure struct_vtable: Wrong type argument in position 1 (expecting 
struct): #
Please, let me know how to understand such errors. Here, I saw the same 
structure 
https://www.gnu.org/software/guix/manual/en/guix.html#index-sddm_002dservice


config-znavko-gnome.scm
Description: Binary data


Re: How to start Guix on Asus K50C ?

2019-05-20 Thread znavko
nomodeset not helped.
yes, ctrl_alt+f3 switched to another tty. I can install another console.

May 20, 2019 8:08 PM, "pelzflorian (Florian Pelz)"  
wrote:

> On Mon, May 20, 2019 at 05:37:35PM +, zna...@disroot.org wrote:
> 
>> I try to boot from usb with the latest Guix on Asus K50C, specifications [1].
>> 
>> Guix shows black screen after some kernel lines on boot.
>> I tried to edit Grub entry deleting modprobe.blacklist=radeon, but got 
>> nothing.
>> Will you offer me how to install Fuix on Asus K50C?
>> [1] https://www.asus.com/Laptops/K50C/specifications
> 
> Can you try adding
> 
> nomodeset
> 
> after or in place of modprobe.blacklist=radeon?
> 
> This should turn off any Intel modesetting, if this is what causes this.
> 
> If not, can you press Ctrl+Alt+F3 to switch to a shell?
> 
> Regards,
> Florian



error in bootloader config while system init

2019-05-20 Thread znavko
Hello! I want to install guix, but have troubles with bootloader configuration. 
I parted my disk this way:

# fdisk -l /dev/sdb

Disk /dev/sdb: 59.6 GiB, 64023257088 bytes, 125045424 sectors Units: 
sectors of 1 * 512 = 512 bytes Sector size (logical/physical): 512 bytes / 512 
bytes I/O size (minimum/optimal): 512 bytes / 512 bytes Disklabel type: gpt 
Disk identifier: 3E7A5583-EC16--BD05-F488879F5F8 Device Start End Sectors 
Size Type /dev/sdb1 2048 104859647 104857600 50G Linux filesystem /dev/sdb2 
104859648 125045390 20185743 9.6G Linux swap  
# guix system init /mnt/etc/config.scm /mnt 2>err
# cat err | nc termbin.com 
https://termbin.com/r3oh

# cat /mnt/etc/config.scm | nc termbin.com 
https://termbin.com/r5rq
Please, what is wrong?

(operating-system (host-name "antelope") (timezone "Europe/Moscow") 
(locale "en_US.utf8") (bootloader (bootloader-configuration (bootloader 
grub-bootloader) (target "/dev/sdb"))) (file-systems (cons (file-system (device 
"/dev/sdb1") (mount-point "/mnt") (type "ext4")) %base-file-systems)) 
(swap-devices '("/dev/sdb2"))


Re: Tor Routing

2019-05-02 Thread znavko
No, I think it is quite different stuff. Networkmanager is a service. But 
torify is used for programs.
Do you know how to configure icecat or ungoogled-chromium to use tor?
for ungoogled-chromium: 
https://lists.gnu.org/archive/html/help-guix/2019-04/msg00063.html
for icecat: https://wiki.gentoo.org/wiki/Tor#Firefox

May 2, 2019 8:30 AM, "Raghav Gururajan" mailto:r...@disroot.org?to=%22Raghav%20Gururajan%22%20)> 
wrote:
Ah! That's awesome. If I want to route everything, should I do "torify 
networkmanager"?

May 2, 2019 4:26 AM, zna...@disroot.org (mailto:zna...@disroot.org) wrote:
 The command 'torify' from torsocks package (`guix package -i torsocks`) is for 
you.
Examples: `$ torify filezilla`, `$ torify ssh`.

As for tor-hidden-service declaration in cgit 
(http://git.savannah.gnu.org/cgit/guix.git/tree/gnu/services/networking.scm#n781),
 tor is listening specified ports. So you can add ports in tor-hidden-service 
as example there.
I've not tried this, cause tor network might fall down, so I use it manually 
running `tor` in one terminal and `torify ssh ..` in another.
May 2, 2019 8:08 AM, "Raghav Gururajan" mailto:r...@disroot.org)> wrote:
 Hello Guix!

To route all my system's traffic through by Tor by default, what and how should 
I declare Tor
Service in System Services? I tried the guide but I am not able to understand. 
I am looking for
exact syntax and configuration.

Thank you!

Regards,
RG.


Re: Tor Routing

2019-05-02 Thread znavko
The command 'torify' from torsocks package (`guix package -i torsocks`) is for 
you.
Examples: `$ torify filezilla`, `$ torify ssh`.

As for tor-hidden-service declaration in cgit 
(http://git.savannah.gnu.org/cgit/guix.git/tree/gnu/services/networking.scm#n781),
 tor is listening specified ports. So you can add ports in tor-hidden-service 
as example there.
I've not tried this, cause tor network might fall down, so I use it manually 
running `tor` in one terminal and `torify ssh ..` in another.
May 2, 2019 8:08 AM, "Raghav Gururajan" mailto:r...@disroot.org)> wrote:
 Hello Guix!

To route all my system's traffic through by Tor by default, what and how should 
I declare Tor
Service in System Services? I tried the guide but I am not able to understand. 
I am looking for
exact syntax and configuration.

Thank you!

Regards,
RG.


How to merge two po files from different versions?

2019-05-07 Thread znavko
Hello! I want to merge my two files: https://gitgud.io/znavko/guix-manual-ru-exp
The latest is guix-manual-1.0.0-pre3.ru.po, so the lines there should rest 
untouched.
But that file lacks some lines I had in guix-manual-1.0.0-pre3.ru_RU.po.

For example the guix-manual-1.0.0-pre3.ru
lacks translation on line 7564:
7564: #. type: Plain text
#: doc/guix.texi:3402
msgid "The garbage collector has a set of known @dfn{roots}: any file under 
@file{/gnu/store}
...
But guix-manual-1.0.0-pre3.ru_RU.po
has translation of this text on line 10698:
10698: #. type: Plain text
#: doc/guix.texi:3389 doc/guix.texi:3402
msgid ""
"The garbage collector has a set of known @dfn{roots}: any file under @file{/"
...
Those two files differ with endline symbols. My old 
guix-manual-1.0.0-pre3.ru_RU.po has many lines in each message, but the new 
file guix-manual-1.0.0-pre3.ru has msgid texts in one long line.

The simple 'msgcat *.po > new.po' is not correct, cause the line numbering 
breaks in a new file.
Please, how to transfer translated strings from the 
guix-manual-1.0.0-pre3.ru_RU.po into guix-manual-1.0.0-pre3.ru not breaking the 
latter?


Re: How to merge two po files from different versions?

2019-05-07 Thread znavko
Here it is my repository with both files: 
https://gitgud.io/znavko/guix-manual-ru-exp


May 7, 2019 9:23 AM, zna...@disroot.org wrote:

> Hello! I want to merge my two files: 
> https://gitgud.io/znavko/guix-manual-ru-exp
> The latest is guix-manual-1.0.0-pre3.ru.po, so the lines there should rest 
> untouched.
> But that file lacks some lines I had in guix-manual-1.0.0-pre3.ru_RU.po.
> 
> For example the guix-manual-1.0.0-pre3.ru
> lacks translation on line 7564:
> 7564: #. type: Plain text
> #: doc/guix.texi:3402
> msgid "The garbage collector has a set of known @dfn{roots}: any file under 
> @file{/gnu/store}
> ...
> But guix-manual-1.0.0-pre3.ru_RU.po
> has translation of this text on line 10698:
> 10698: #. type: Plain text
> #: doc/guix.texi:3389 doc/guix.texi:3402
> msgid ""
> "The garbage collector has a set of known @dfn{roots}: any file under @file{/"
> ...
> Those two files differ with endline symbols. My old 
> guix-manual-1.0.0-pre3.ru_RU.po has many lines
> in each message, but the new file guix-manual-1.0.0-pre3.ru has msgid texts 
> in one long line.
> 
> The simple 'msgcat *.po > new.po' is not correct, cause the line numbering 
> breaks in a new file.
> Please, how to transfer translated strings from the 
> guix-manual-1.0.0-pre3.ru_RU.po into
> guix-manual-1.0.0-pre3.ru not breaking the latter?



Re: How to merge two po files from different versions?

2019-05-07 Thread znavko
No, sorry. Your commands not work. That msgid from line 7564 rests 
untranslated, so it did not transfered from my guix-manual-1.0.0-pre3.ru_RU.po.
Ooh la la!

May 7, 2019 2:19 PM, "pelzflorian (Florian Pelz)"  
wrote:

> On Tue, May 07, 2019 at 09:26:13AM +, zna...@disroot.org wrote:
> 
>> The simple 'msgcat *.po > new.po' is not correct, cause the line numbering 
>> breaks in a new file.
>> Please, how to transfer translated strings from the 
>> guix-manual-1.0.0-pre3.ru_RU.po into
>> guix-manual-1.0.0-pre3.ru not breaking the latter?
> 
> I do not understand what the issue is with line numbers.
> 
> Does this work?
> 
> msgcat --no-wrap *.po > new.po
> msgmerge -U --no-wrap --previous --lang=ru new.po guix-manual-1.0.0-pre3.ru.po
> 
> Regards,
> Florian



Re: Bluetooth

2019-05-02 Thread znavko
My workable config is:

(operating-system
...
  (services
  ...
 (modify-services  
  (remove (lambda (service)
(member (service-kind service)
(list ntp-service-type 
avahi-service-type 
  
network-manager-service-type
  gdm-service-type)))
  %desktop-services) ;end of remove lambda 
services

  (wpa-supplicant-service-type config =>
   
(wpa-supplicant-configuration
(interface "wlp2s0")
(config-file 
"/etc/wpa_supplicant/wpa_supplicant.conf")))

  (bluetooth-service config =>
  (bluetooth-configuration
   (auto-enable? #t)))
  

  (elogind-service-type
   c => (elogind-configuration (handle-lid-switch 
'ignore)))
  ) ;;end of modify-services
  )
)


So if I am correct:

 (modify-services
  %desktop-services
  (bluetooth-service config =>
  (bluetooth-configuration
   (auto-enable? #t)))
  


May 2, 2019 10:12 AM, "Raghav Gururajan"  wrote:

> In continuation to my previous email in this thread:
> 
> It appears bluetooth service is included in %desktop-services.
> 
> I already modified %desktop-services to include openvpn-plugin with the 
> following syntax:
> (services (cons* (service gnome-desktop-service-type)
> (modify-services %desktop-services
> (network-manager-service-type
> config => (network-manager-configuration
> (inherit config)
> (vpn-plugins
> (list network-manager-openvpn)))
> 
> Now, what is the syntax for appending the bluetooth-service modification 
> (auto-enable? #t) to the
> above config??
> 
> Thank you!
> 
> May 2, 2019 6:02 AM, "Raghav Gururajan"  wrote:
> 
>> Mine is RYF Certified TET-X200T. I bought exactly this 
>> https://tehnoetic.com/laptops/tet-x200t.
>> Bluetooth worked fine when I was using Trisquel and Hyperbola.
>> 
>> May 2, 2019 5:53 AM, zna...@disroot.org wrote:
>> 
>>> Many bluetooth devices are not supported by linux-libre kernel. Which you 
>>> have?
>>> try here https://lists.gnu.org/archive/html/help-guix/2018-10/msg00045.html
>>> https://lists.gnu.org/archive/html/help-guix/2019-01/msg00057.html
>>> there is option auto-enable #f, so that config is important.
>>> http://git.savannah.gnu.org/cgit/guix.git/tree/gnu/services/desktop.scm#n412
>>> 
>>> May 2, 2019 9:34 AM, "Raghav Gururajan"  wrote:
>> 
>> Hello Guix!
>> 
>> I have added "bluetooth-service [#:bluez bluez] [#:auto-enable? #t]" to my 
>> system services. But I
>> am not able to use bluetooth as user. In GNOME settings, it's no bluetooth 
>> found" or if I turn on
>> the button, it turns off again. I have added the user to "lp" group as well. 
>> What should be the
>> issue?
>> 
>> Thank you!



Re: Bluetooth

2019-05-02 Thread znavko
Many bluetooth devices are not supported by linux-libre kernel. Which you have?
try here https://lists.gnu.org/archive/html/help-guix/2018-10/msg00045.html
https://lists.gnu.org/archive/html/help-guix/2019-01/msg00057.html
there is option auto-enable #f, so that config is important.
http://git.savannah.gnu.org/cgit/guix.git/tree/gnu/services/desktop.scm#n412


May 2, 2019 9:34 AM, "Raghav Gururajan"  wrote:

> Hello Guix!
> 
> I have added "bluetooth-service [#:bluez bluez] [#:auto-enable? #t]" to my 
> system services. But I
> am not able to use bluetooth as user. In GNOME settings, it's no bluetooth 
> found" or if I turn on
> the button, it turns off again. I have added the user to "lp" group as well. 
> What should be the
> issue?
> 
> Thank you!



Re: G-Expressions manual. change user shell in guix config.scm

2019-05-04 Thread znavko
I just want to change user shell. So i know how to do it. And you have cleared 
a bit for me what is formed object and what is file, and what is file-append 
function.

May 4, 2019 11:24 AM, "rendaw" <7e9wc56emja...@s.rendaw.me> wrote:

> On 5/4/19 8:19 PM, zna...@disroot.org wrote:
> 
>> (shell #~#$dash) -- compiles too, but again:
>> 
>> bob $ su - mom
>> Password:
>> /gnu/store/bqmib4vf9mr8dkqx4dqpcqrnb93giwci-dash-0.5.10.2:
>> /gnu/store/bqmib4vf9mr8dkqx4dqpcqrnb93giwci-dash-0.5.10.2: Is a directory
>> bob $
> 
> Could you perhaps provide some details on what you are expecting to
> happen here?  This error is expected - shell needs a path to an
> executable, not a directory.  Both `#~#$dash` and `dash` become paths to
> directories.



Re: G-Expressions manual. change user shell in guix config.scm

2019-05-04 Thread znavko
(shell #~#$dash) -- compiles too, but again:

bob $ su - mom
Password: 
/gnu/store/bqmib4vf9mr8dkqx4dqpcqrnb93giwci-dash-0.5.10.2: 
/gnu/store/bqmib4vf9mr8dkqx4dqpcqrnb93giwci-dash-0.5.10.2: Is a directory
bob $ 

this works all right: (shell (file-append dash "/bin/dash"))


May 4, 2019 11:12 AM, "rendaw" <7e9wc56emja...@s.rendaw.me> wrote:

> On 5/4/19 7:53 PM, zna...@disroot.org wrote:
> 
>> For $~#$dash it says unbound variable:
>> 
>> (use-mosules ...
>> (gnu packages shells)
>> (guix gexp)
>> )
>> ...
>> (user-account (name "mom") (group "users")
>> (supplementary-groups '("wheel" "netdev" "audio" "video"))
>> (home-directory "/home/mom")
>> (shell $~#$dash))
>> 
>> # guix system reconfigure config.scm
>> /root/config.scm:24:32: error: #{$~#$dash}#: unbound variable
>> hint: Did you forget a `use-modules' form?
> 
> You have $~#$ but you should have #~#$ instead.  But this is the same as
> just having `(shell dash)` which causes the next error:
> 
>> For just a string 'shell dash' compilation is ok, but after user login in 
>> terminal it says 'dash is
>> a directry' and does not allow login:
>> 
>> (user-account (name "mom") (group "users")
>> (supplementary-groups '("wheel" "netdev" "audio" "video"))
>> (home-directory "/home/mom")
>> (shell dash))
>> 
>> # guix system reconfigure config.scm
>> ..ok...
>> 
>> bob $
>> bob $ su - mom
>> Password:
>> /gnu/store/bqmib4vf9mr8dkqx4dqpcqrnb93giwci-dash-0.5.10.2:
>> /gnu/store/bqmib4vf9mr8dkqx4dqpcqrnb93giwci-dash-0.5.10.2: Is a directory
>> bob $
> 
> `dash` is a package object which is "lowered" and becomes a string of
> the path to the directory:
> `/gnu/store/bqmib4vf9mr8dkqx4dqpcqrnb93giwci-dash-0.5.10.2`
> 
> `(shell ...)` needs a path to an executable (the shell program), that
> is: `/gnu/store/bqmib4vf9mr8dkqx4dqpcqrnb93giwci-dash-0.5.10.2/bin/dash`
> 
> Therefore you need the string-append or file-append expressions to add
> the final "/bin/dash".  See the examples from my previous email.
> 
> Cheers,
> rendaw



Re: G-Expressions manual. change user shell in guix config.scm

2019-05-04 Thread znavko
For $~#$dash it says unbound variable:

(use-mosules ...
 (gnu packages shells)
 (guix gexp)
 )
...
(user-account (name "mom") (group "users")
  (supplementary-groups '("wheel" 
"netdev" "audio" "video"))
  (home-directory "/home/mom")
  (shell $~#$dash))

# guix system reconfigure config.scm
/root/config.scm:24:32: error: #{$~#$dash}#: unbound variable
hint: Did you forget a `use-modules' form?


For just a string 'shell dash' compilation is ok, but after user login in 
terminal it says 'dash is a directry' and does not allow login:

(user-account (name "mom") (group "users")
  (supplementary-groups '("wheel" 
"netdev" "audio" "video"))
  (home-directory "/home/mom")
  (shell dash))

# guix system reconfigure config.scm
..ok...

bob $
bob $ su - mom
Password: 
/gnu/store/bqmib4vf9mr8dkqx4dqpcqrnb93giwci-dash-0.5.10.2: 
/gnu/store/bqmib4vf9mr8dkqx4dqpcqrnb93giwci-dash-0.5.10.2: Is a directory
bob $


Yes, I am not familiar with Guile. But this is very barrier for people to use 
Guix.
I want some tutorial or may be examples in one place.


May 4, 2019 6:11 AM, "rendaw" <7e9wc56emja...@s.rendaw.me> wrote:

> On 5/4/19 12:36 AM, zna...@disroot.org wrote:
> 
>> I want to try to use G-expressions to change 'mom' user shell to dash.
>> I have this error:
>> 
>> # guix system reconfigure config-znavko.scm
>> ...
>> building 
>> /gnu/store/zhmd8fr5v86wnaf6apcz4281c008fjv5-shepherd-user-homes.scm.drv...
>> building /gnu/store/6wnbkfdqy3qmbcjz00d1w5p8mw1rkyaa-shells.drv...
>> /builder for `/gnu/store/6wnbkfdqy3qmbcjz00d1w5p8mw1rkyaa-shells.drv' failed 
>> with exit code 1
>> build of /gnu/store/6wnbkfdqy3qmbcjz00d1w5p8mw1rkyaa-shells.drv failed
>> View build log at 
>> '/var/log/guix/drvs/6w/nbkfdqy3qmbcjz00d1w5p8mw1rkyaa-shells.drv.bz2'.
>> cannot build derivation 
>> `/gnu/store/36ah9x5q8nj6y01fs32brcndmkgyvqmv-etc.drv': 1 dependencies
>> couldn't be built
>> building /gnu/store/kvdsb795wn1ic8p9kcdsbkd9vw5v4dm2-shepherd.conf.drv...
>> cannot build derivation 
>> `/gnu/store/cmfly4pn3hs2y38km0l3yn3phkxy84xj-system.drv': 1 dependencies
>> couldn't be built
>> guix system: error: build of 
>> `/gnu/store/cmfly4pn3hs2y38km0l3yn3phkxy84xj-system.drv' failed
>> 
>> # tail -n1 /var/log/guix/drvs/6w/nbkfdqy3qmbcjz00d1w5p8mw1rkyaa-shells.drv
>> ERROR: Wrong type to apply: 
>> "/gnu/store/bqmib4vf9mr8dkqx4dqpcqrnb93giwci-dash-0.5.10.2"
>> it is here:
>> (user-account (name "mom") (group "users")
>> (supplementary-groups '("wheel" "netdev" "audio" "video"))
>> (home-directory "/home/mom")
>> (shell #~(#$dash)))
>> I read Guix Refernce Manual 'G-Expressions' section, but there types 
>> described quite a little:
>> Scheme Syntax: #~exp Scheme Syntax: (gexp exp)
>> 
>> Return a G-expression containing exp. exp may contain one or more of the 
>> following forms: #$obj
>> (ungexp obj)
>> 
>> Introduce a reference to obj. obj may have one of the supported types, for 
>> example a package or a
>> derivation, in which case the ungexp form is replaced by its output file 
>> name—e.g.,
>> "/gnu/store/…-coreutils-8.22.
>> 
>> If obj is a list, it is traversed and references to supported objects are 
>> substituted similarly.
>> 
>> If obj is another gexp, its contents are inserted and its dependencies are 
>> added to those of the
>> containing gexp.
>> 
>> If obj is another kind of object, it is inserted as is.
>> My wrong config is attached.
>> 
>> But I've found on github workable example
>> https://github.com/meiyopeng/guix-config/blob/master/meiyo/systems/default.scm
>> 
>> And rewrite config with file-append Scheme procedure. This works:
>> 
>> (user-account (name "mom") (group "users")
>> (supplementary-groups '("wheel" "netdev" "audio" "video"))
>> (home-directory "/home/mom")
>> (shell (file-append dash "/bin/dash")))
>> 
>> But I am confused, cause I do not know why config works without #~ and #~ 
>> but only file-append
>> function? Is it still G-Expression (shell (file-append dash "/bin/dash"))?
> 
> I'm not 100% sure I'm correct, but I think there are a couple issues here.
> 
> So first of all, I think you have extra parentheses.  You're saying you
> want the gexp of the "form" where the lowered dash is the first element,
> but you actually want the gexp of the lowered dash itself (no form).
> It's the difference between `("/gnu/store/...-dash/")` and
> `"/gnu/store/...-dash/"` (the former might be evaluated as an invalid
> function call).
> 
> So try:
> 
> #~#$dash
> 
> instead of
> 
> #~(#$dash)
> 
> However, `dash` is already an object that lowers to a string, and since
> `(shell ...)` needs a (n object that lowers to a) path string the #~#$
> is unnecessary - 

emacs does not give me to add quotes around my word in Scheme-Mode

2019-05-04 Thread znavko
Hello!
I use emacs 26.2 to edit my guix config.scm. It is awesome, but rests unobvious 
things I cannot get.
When I have word that I want to place in quotes, emacs does not give me to add 
quote before the word and after -- instead of this emacs closes quotes 
automatically and does not give me to delete only one quote. Like this:

(shell (file-append dash /bin/dash/)) -- I want to place /bin/dash into quotes
(shell (file-append dash "" /bin/dash/)) -- here I've just typed one quote, but 
emacs autofinished it.
(shell (file-append dash /bin/dash/)) -- here I've tried to delete one quote, 
but emacs has deleted both!
(shell (file-append dash "")) -- so I can only delete my word and add quotes
(shell (file-append dash "/bin/dash/")) -- and only then type it again.

It is so bad inconvenient, extraordinary for editor. Please, how to deal with 
it?


Re: G-Expressions manual. change user shell in guix config.scm

2019-05-04 Thread znavko
This two equivalents work:

(shell (file-append dash "/bin/dash")) -- this is advanced guix variant with 
new file-append function, this variant does not need (use-modules (guix gexp))

(shell #~(string-append #$dash "/bin/dash"))  -- this is guile function 
string-append and gexp, ungexp functions, this variant does not need 
(use-modules (guix gexp)) too.



May 4, 2019 11:36 AM, "rendaw" <7e9wc56emja...@s.rendaw.me> wrote:

> On 5/4/19 8:29 PM, zna...@disroot.org wrote:
> 
>> I just want to change user shell. So i know how to do it. And you have 
>> cleared a bit for me what is
>> formed object and what is file, and what is file-append function.
>> 
>> May 4, 2019 11:24 AM, "rendaw" <7e9wc56emja...@s.rendaw.me> wrote:
>> 
>>> On 5/4/19 8:19 PM, zna...@disroot.org wrote:
>> 
>> (shell #~#$dash) -- compiles too, but again:
>> 
>> bob $ su - mom
>> Password:
>> /gnu/store/bqmib4vf9mr8dkqx4dqpcqrnb93giwci-dash-0.5.10.2:
>> /gnu/store/bqmib4vf9mr8dkqx4dqpcqrnb93giwci-dash-0.5.10.2: Is a directory
>> bob $
>>> Could you perhaps provide some details on what you are expecting to
>>> happen here? This error is expected - shell needs a path to an
>>> executable, not a directory. Both `#~#$dash` and `dash` become paths to
>>> directories.
> 
> (file-append obj "some string") is a convenient alternative to
> #~(string-append #$obj "some string").
> 
> In the latter "obj" becomes (for example)
> "/gnu/store/bqmib4vf9mr8dkqx4dqpcqrnb93giwci-dash-0.5.10.2", and
> "(string-append ...)" combines
> "/gnu/store/bqmib4vf9mr8dkqx4dqpcqrnb93giwci-dash-0.5.10.2" and
> "/bin/dash" to produce
> "/gnu/store/bqmib4vf9mr8dkqx4dqpcqrnb93giwci-dash-0.5.10.2/bin/dash"



how to understand this SELinux stuff?

2019-05-04 Thread znavko
Hello! I am translating SELinux info messages. There are some hard 
formulations, but this is the best:

#. type: enumerate
#: doc/guix.texi:1291
msgid "We could generate a much more restrictive policy at installation time, 
so that only the @emph{exact} file name of the currently installed 
@code{guix-daemon} executable would be labelled with @code{guix_daemon_exec_t}, 
instead of using a broad regular expression. The downside is that root would 
have to install or upgrade the policy at installation time whenever the Guix 
package that provides the effectively running @code{guix-daemon} executable is 
upgraded."

I cannot understand the latter sentence. What is the 'guix package that 
provides the effectively running guix-damon'? Can I say just: if guix-daemon's 
executable was upgraded?


Re: how to understand this SELinux stuff?

2019-05-04 Thread znavko
I think your words are most clear. Thank you, Ricardo Wurmus!

May 4, 2019 7:58 PM, "Ricardo Wurmus"  wrote:

>> #. type: enumerate
>> #: doc/guix.texi:1291
>> msgid "We could generate a much more restrictive policy at installation 
>> time, so that only the
>> @emph{exact} file name of the currently installed @code{guix-daemon} 
>> executable would be labelled
>> with @code{guix_daemon_exec_t}, instead of using a broad regular expression. 
>> The downside is that
>> root would have to install or upgrade the policy at installation time 
>> whenever the Guix package
>> that provides the effectively running @code{guix-daemon} executable is 
>> upgraded."
>> 
>> I cannot understand the latter sentence. What is the 'guix package that 
>> provides the effectively
>> running guix-damon'? Can I say just: if guix-daemon's executable was 
>> upgraded?
> 
> The point here is that the absolute file name of “guix-daemon” may very
> well differ over time. You may be running
> /gnu/store/abcdefg…-guix-…/bin/guix-daemon today and
> /gnu/store/xyz…-guix-…/bin/guix-daemon tomorrow. SELinux policies work
> by defining rules matching absolute file names, so if the rule were to
> attached to a *specific* item in the store it would have to be updated
> whenever the daemon would be used from a *different* location in the
> store, such as after upgrades.
> 
> --
> Ricardo



G-Expressions manual. change user shell in guix config.scm

2019-05-03 Thread znavko
I want to try to use G-expressions to change 'mom' user shell to dash.
I have this error:

# guix system reconfigure config-znavko.scm
...
building 
/gnu/store/zhmd8fr5v86wnaf6apcz4281c008fjv5-shepherd-user-homes.scm.drv...
building /gnu/store/6wnbkfdqy3qmbcjz00d1w5p8mw1rkyaa-shells.drv...
/builder for `/gnu/store/6wnbkfdqy3qmbcjz00d1w5p8mw1rkyaa-shells.drv' failed 
with exit code 1
build of /gnu/store/6wnbkfdqy3qmbcjz00d1w5p8mw1rkyaa-shells.drv failed
View build log at 
'/var/log/guix/drvs/6w/nbkfdqy3qmbcjz00d1w5p8mw1rkyaa-shells.drv.bz2'.
cannot build derivation `/gnu/store/36ah9x5q8nj6y01fs32brcndmkgyvqmv-etc.drv': 
1 dependencies couldn't be built
building /gnu/store/kvdsb795wn1ic8p9kcdsbkd9vw5v4dm2-shepherd.conf.drv...
cannot build derivation 
`/gnu/store/cmfly4pn3hs2y38km0l3yn3phkxy84xj-system.drv': 1 dependencies 
couldn't be built
guix system: error: build of 
`/gnu/store/cmfly4pn3hs2y38km0l3yn3phkxy84xj-system.drv' failed

# tail -n1 /var/log/guix/drvs/6w/nbkfdqy3qmbcjz00d1w5p8mw1rkyaa-shells.drv
ERROR: Wrong type to apply: 
"/gnu/store/bqmib4vf9mr8dkqx4dqpcqrnb93giwci-dash-0.5.10.2"
it is here:
(user-account (name "mom") (group "users")
(supplementary-groups '("wheel" "netdev" "audio" "video"))
(home-directory "/home/mom")
(shell #~(#$dash)))
I read Guix Refernce Manual 'G-Expressions' section, but there types described 
quite a little: Scheme Syntax: #~exp  Scheme Syntax: (gexp exp)   

Return a G-expression containing exp. exp may contain one or more of 
the following forms:  #$obj (ungexp obj)  

Introduce a reference to obj. obj may have one of the supported types, 
for example a package or a derivation, in which case the ungexp form is 
replaced by its output file name—e.g., "/gnu/store/…-coreutils-8.22. 

If obj is a list, it is traversed and references to supported objects 
are substituted similarly. 

If obj is another gexp, its contents are inserted and its dependencies 
are added to those of the containing gexp. 

If obj is another kind of object, it is inserted as is. 
My wrong config is attached.

But I've found on github workable example 
https://github.com/meiyopeng/guix-config/blob/master/meiyo/systems/default.scm

And rewrite config with file-append Scheme procedure. This works:

 (user-account (name "mom") (group "users")
 (supplementary-groups '("wheel" "netdev" "audio" "video"))
 (home-directory "/home/mom")
 (shell (file-append dash "/bin/dash")))

But I am confused, cause I do not know why config works without #~ and #~ but 
only file-append function? Is it still G-Expression (shell (file-append dash 
"/bin/dash"))?


config-znavko.scm
Description: Binary data


how restart networking after ifconfig down?

2019-05-05 Thread znavko
I wrote bash-script checking external ip and disabling network interface if it 
is a real ip, not vpn.
But I do not know why networking does not work after down and up the interface?

# ifconfig wlp2s0 down
# ifconfig wp2s0 up

# herd restart networking
Service networking is not running.
Service networking could not be started.

# rfkill list
0: phy0: Wireless LAN
 Soft blocked: no
 Hard blocked: no

# herd status
...
Stopped:
 - networking
 - term-auto
 - user-homes
 - wpa-supplicant
But my own connection script works:
# cat 1
#!/bin/sh

#connect to wi-fi through wpa_supplicant

#herd stop wpa-supplicant
rfkill unblock wifi
wpa_supplicant -B -i wlp2s0 -c /etc/wpa_supplicant/wpa_supplicant.conf
sleep 2
dhclient -v wlp2s0
#herd restart networking
Where to get error and how to solve this? Why herd does not start networking?


hack my smartphone. get root access on android 6

2019-05-05 Thread znavko
Hello! I want just to replace LowBattery.ogg in /system/media/audio/ui on my 
Android phone by Haier with my muted sound.
I cannot get root access, cause all the web contains unworkable apks and 
unacceptable exe-files.
Kongoroot, towelroor, supersu do not work, gnuroot no more maintained.
Will you help me with it?

I only tried mutter (from guix) + xserver (on android) to use android as 
display. But my knowledge and search results end there.
Phone: Tele2_Mini_1_1
Android: 6.0
How to replace that lowbattery file?


Re: switch off cpu fan on lenovo g50-30

2019-07-04 Thread znavko
With thinkfan.conf.simple having this:

# thinkfan

ERROR: TpFanDriver: Initializing fan control in /proc/acpi/ibm/fan: No such 
file or directory


With  thinkfan.conf.complex this:

# thinkfan

ERROR: SensorDriver: Initializing fan control in /proc/acpi/ibm/thermal: No 
such file or directory


Linux-libre has no fan control module for lenovo g50-30. How to get it?


July 4, 2019 5:24 PM, "Efraim Flashner"  wrote:

> I often turn to Debian when I have a problem like this one. In the
> source (I assume in ours and not just in theirs) There's an example
> folder with two example configs¹ so I'd suggest checking them out and
> seeing if they look right.
> 
> ¹https://sources.debian.org/src/thinkfan/0.9.3-2/examples
> 
> -- 
> Efraim Flashner  אפרים פלשנר
> GPG key = A28B F40C 3E55 1372 662D 14F7 41AA E7DC CA3D 8351
> Confidentiality cannot be guaranteed on emails sent or received unencrypted



Re: switch off cpu fan on lenovo g50-30

2019-07-04 Thread znavko
As there [1] said  have no fan control module:

 pwm_fan sysfs-path

Control a sysfs PWM fan. Many hwmon drivers that provide a `temp*_input' 
file also allow fan control, although there may also be drivers that are 
specific to either temperature reading or fan control. You can search for a PWM 
control file e.g. with `find /sys -type f -name "pwm?"'. Note that with PWM, 
fan levels usually range from 0 to 255, although besides a file like `pwm1' 
there may also be `pwm1_min' and `pwm1_max' that specify different (soft or 
recommended?) limits for a particular fan.


# find /sys -type f -name "pwm?"
#
# find /sys -type f -name "pwm*"
# 

Have you on your linux-libre?

[1] https://www.mankier.com/5/thinkfan.conf

July 4, 2019 5:24 PM, "Efraim Flashner"  wrote:

> I often turn to Debian when I have a problem like this one. In the
> source (I assume in ours and not just in theirs) There's an example
> folder with two example configs¹ so I'd suggest checking them out and
> seeing if they look right.
> 
> ¹https://sources.debian.org/src/thinkfan/0.9.3-2/examples
> 
> -- 
> Efraim Flashner  אפרים פלשנר
> GPG key = A28B F40C 3E55 1372 662D 14F7 41AA E7DC CA3D 8351
> Confidentiality cannot be guaranteed on emails sent or received unencrypted



Re: switch off cpu fan on lenovo g50-30

2019-07-04 Thread znavko
yes. I ran, but thinkfan cannot use module:

# modprobe thinkpad_acpi fan_control=1
# 
# thinkfan

ERROR: SensorDriver: Initializing fan control in /proc/acpi/ibm/thermal: No 
such file or directory


Say me how to type thinkpad.conf to use thinkpad_acpi module?

# modinfo thinkpad_acpi
filename:   
/run/booted-system/kernel/lib/modules/5.1.15-gnu/kernel/drivers/platform/x86/thinkpad_acpi.ko
license:GPL
version:0.26
description:ThinkPad ACPI Extras
author: Henrique de Moraes Holschuh 
author: Borislav Deianov 
alias:  dmi:bvnIBM:bvrI[MU]ET??WW*
alias:  tpacpi
srcversion: 0CECBC9452E671846F915F0
alias:  acpi*:LEN0268:*
alias:  acpi*:LEN0068:*
alias:  acpi*:IBM0068:*
depends:snd,video,ledtrig-audio,nvram
retpoline:  Y
intree: Y
name:   thinkpad_acpi
vermagic:   5.1.15-gnu SMP mod_unload modversions 



should I somehow define this modules file in thinkfan.conf?


July 4, 2019 8:28 PM, "pelzflorian (Florian Pelz)"  
wrote:

> On Thu, Jul 04, 2019 at 08:13:44PM +, zna...@disroot.org wrote:
> 
>> As there [1] said have no fan control module:
> 
> I assume you did try the modprobe command from the message:
> 
> https://lists.gnu.org/archive/html/guix-devel/2016-04/msg01231.html
> 
> Regards,
> Florian



Re: guix pull behind proxy not working

2019-07-04 Thread znavko
If you want any idea, I use freevpn.me and vpnbook.com accounts with 'openvpn' 
package. All guix commands download normally. And in terminal I have vpn ip 
(for freevpn.me):

$ curl ifconfig.io
51.15.151.165

But really I am not sure which is my ip when guix downloads.


July 4, 2019 12:53 PM, mar...@famic.de wrote:

> Hi there!
> 
> This is my first contact with Guix System and I managed to install it as
> Virtualbox guest system behind a corporate proxy. Well, this was already
> quite a challenge and succeeded only due the workaround
> (https://guix-devel.gnu.narkive.com/k3oBoFqW/changing-http-proxy-settings-in-guixsd),
> but now `guix install` works, I can install new packages (given a
> warning about never calling `guix pull`). However, calling `guix pull`
> and `guix system reconfigure` still fails due to unreachable network.
> Does it need different proxy settings? What can I do?
> 
> Here is the guix-configuration part of my /etc/config.scm (omitting my
> proxy address details):
> 
> (define %my-services
> (modify-services %desktop-services
> (guix-service-type config =>
> (guix-configuration
> (inherit config)
> (http-proxy "http://:")
> 
> Thanks for any ideas,
> Martin



Why reproducibility is breaking by metadata?

2019-07-02 Thread znavko
Hello, Guix Help! I am translating Guix manual and found that the author is 
entirely given to reproducibility. It leads to such phrases that metadata 
breaks reproducibility when he describes '--save-provenance' flag of 'guix 
pack' command here:

'This option is not enabled by default because, like timestamps, provenance 
information contributes nothing to the build process. In other words, there is 
an infinity of channel URLs and commit IDs that can lead to the same pack. 
Recording such “silent” metadata in the output thus potentially breaks the 
source-to-binary bitwise reproducibility property. '

I did not expected such a categorical statement. I think, it does not actually 
break reproducibility but only complicates checks. If we have to talk about 
reproducibility to ignoramus, saying 'this option breaks reproducibility 
option' have to have remark 'simply put' or 'plainly'.


switch off cpu fan on lenovo g50-30

2019-07-04 Thread znavko
Hello! Sometimes I need my laptop Lenovo G50-30 is silent, need to switch off 
CPU fan.
Basically this laptop had no cpu fan but only passive cooling system. I had 
inserted cpu fan by my hands and there were fan power joint on the motherboard. 
This is nice. I hope Guix Linux-Libre has necessary fan control driver for my 
laptop.

There is package 'thinkfan' in Guix repository. Would you advice me how to 
config it and is it possible to switch off fan?

# thinkfan

ERROR: /etc/thinkfan.conf: No such file or directory
# lsmod
Module Size Used by
mmc_block 49152 0
fuse 114688 2
ccm 20480 9
joydev 24576 0
intel_rapl 24576 0
intel_soc_dts_thermal 20480 0
intel_soc_dts_iosf 20480 1 intel_soc_dts_thermal
intel_powerclamp 20480 0
coretemp 20480 0
kvm 647168 0
irqbypass 16384 1 kvm
punit_atom_debug 16384 0
cmdlinepart 16384 0
snd_hda_codec_hdmi 57344 1
snd_hda_codec_conexant 24576 1
snd_hda_codec_generic 77824 1 snd_hda_codec_conexant
ledtrig_audio 16384 2 snd_hda_codec_generic,snd_hda_codec_conexant
rtsx_usb_ms 24576 0
intel_spi_platform 16384 0
intel_spi 24576 1 intel_spi_platform
rtsx_usb_sdmmc 32768 0
crct10dif_pclmul 16384 1
spi_nor 45056 1 intel_spi
memstick 20480 1 rtsx_usb_ms
mtd 65536 3 cmdlinepart,intel_spi
iTCO_wdt 16384 0
iTCO_vendor_support 16384 1 iTCO_wdt
arc4 16384 2
crc32_pclmul 16384 0
uvcvideo 98304 0
videobuf2_vmalloc 20480 1 uvcvideo
videobuf2_memops 20480 1 videobuf2_vmalloc
videobuf2_v4l2 24576 1 uvcvideo
ath9k 155648 0
videobuf2_common 45056 2 videobuf2_v4l2,uvcvideo
rtsx_usb 24576 2 rtsx_usb_sdmmc,rtsx_usb_ms
ath9k_common 24576 1 ath9k
videodev 204800 3 videobuf2_v4l2,uvcvideo,videobuf2_common
media 53248 4 videodev,videobuf2_v4l2,uvcvideo,videobuf2_common
ath9k_hw 479232 2 ath9k_common,ath9k
usbmouse 16384 0
ath3k 24576 0
usbkbd 16384 0
hci_uart 122880 0
btusb 49152 0
ghash_clmulni_intel 16384 0
btqca 20480 1 hci_uart
ath 32768 3 ath9k_common,ath9k,ath9k_hw
btrtl 20480 2 hci_uart,btusb
btbcm 16384 2 hci_uart,btusb
btintel 24576 2 hci_uart,btusb
cryptd 24576 1 ghash_clmulni_intel
mac80211 843776 1 ath9k
bluetooth 577536 7 btrtl,btqca,btintel,hci_uart,btbcm,ath3k,btusb
i915 1540096 6
r8169 81920 0
cec 45056 1 i915
input_leds 16384 0
drm_kms_helper 172032 1 i915
psmouse 151552 0
snd_hda_intel 45056 3
cfg80211 704512 4 ath9k_common,ath9k,ath,mac80211
realtek 20480 1
i2c_i801 32768 0
serio_raw 20480 0
lpc_ich 24576 0
drm 421888 7 drm_kms_helper,i915
snd_hda_codec 135168 4 
snd_hda_codec_generic,snd_hda_codec_conexant,snd_hda_codec_hdmi,snd_hda_intel
i2c_algo_bit 16384 1 i915
fb_sys_fops 16384 1 drm_kms_helper
snd_hda_core 90112 5 
snd_hda_codec_generic,snd_hda_codec_conexant,snd_hda_codec_hdmi,snd_hda_intel,snd_hda_codec
syscopyarea 16384 1 drm_kms_helper
sysfillrect 16384 1 drm_kms_helper
snd_hwdep 20480 1 snd_hda_codec
sysimgblt 16384 1 drm_kms_helper
snd_pcm 110592 4 snd_hda_codec_hdmi,snd_hda_intel,snd_hda_codec,snd_hda_core
snd_timer 40960 1 snd_pcm
video 45056 1 i915
snd 86016 14 
snd_hda_codec_generic,snd_hda_codec_conexant,snd_hda_codec_hdmi,snd_hwdep,snd_hda_intel,snd_hda_codec,snd_timer,snd_pcm
ecdh_generic 28672 1 bluetooth
pwm_lpss_platform 16384 0
soundcore 16384 1 snd
pwm_lpss 16384 1 pwm_lpss_platform
i2c_hid 28672 0
mac_hid 16384 0
rfkill_gpio 16384 0
virtio_rng 16384 0
virtio_console 32768 0
virtio_net 57344 0
virtio_blk 20480 0
virtio_balloon 24576 0
virtio_pci 24576 0
virtio 16384 6 
virtio_rng,virtio_console,virtio_balloon,virtio_pci,virtio_blk,virtio_net
virtio_ring 32768 6 
virtio_rng,virtio_console,virtio_balloon,virtio_pci,virtio_blk,virtio_net
isci 143360 0
libsas 81920 1 isci
scsi_transport_sas 40960 2 isci,libsas
pata_atiixp 16384 0
pata_acpi 16384 0
nls_iso8859_1 16384 0
wp512 36864 0
serpent_generic 32768 0
xts 16384 0
dm_crypt 40960 0
hid_apple 16384 0
hid_generic 16384 0
usbhid 53248 0
hid 131072 4 i2c_hid,usbhid,hid_apple,hid_generic
uas 24576 0
usb_storage 69632 1 uas
ahci 40960 2
libahci 32768 1 ahci


Re: switch off cpu fan on lenovo g50-30

2019-07-04 Thread znavko
I see this now:

# pwmconfig
# pwmconfig revision $Revision$ ($Date$)
This program will search your sensors for pulse width modulation (pwm)
controls, and test each one to see if it controls a fan on
your motherboard. Note that many motherboards do not have pwm
circuitry installed, even if your sensor chip supports pwm.

We will attempt to briefly stop each fan using the pwm controls.
The program will attempt to restore each fan to full speed
after testing. However, it is ** very important ** that you
physically verify that the fans have been to full speed
after the program has completed.

/root/.guix-profile/sbin/pwmconfig: There are no pwm-capable sensor modules 
installed



# fancontrol
Loading configuration from /etc/fancontrol ...
Error: Can't read configuration file



July 4, 2019 7:29 AM, "Efraim Flashner"  wrote:

> On Thu, Jul 04, 2019 at 06:42:40AM +, zna...@disroot.org wrote:
> 
>> Hello! Sometimes I need my laptop Lenovo G50-30 is silent, need to switch 
>> off CPU fan.
>> Basically this laptop had no cpu fan but only passive cooling system. I had 
>> inserted cpu fan by my
>> hands and there were fan power joint on the motherboard. This is nice. I 
>> hope Guix Linux-Libre has
>> necessary fan control driver for my laptop.
>> 
>> There is package 'thinkfan' in Guix repository. Would you advice me how to 
>> config it and is it
>> possible to switch off fan?
>> 
>> # thinkfan
>> 
>> ERROR: /etc/thinkfan.conf: No such file or directory
> 
> efraim@macbook41 ~/workspace/guix$
> /./gnu/store/c8pmmbpx3q881baivkrcmi01lrj4si4j-thinkfan-1.0.2/sbin/thinkfan 
> --help
> ERROR: Invalid command line: Unknown option: --
> Usage: thinkfan [-hnqzD [-b BIAS] [-c CONFIG] [-s SECONDS] [-p [SECONDS]]]
> -h This help message
> -s Maximum cycle time in seconds (Integer. Default: 5)
> -b Floating point number (-10 to 30) to control rising temperature
> exaggeration (see README). Default: 5.0
> -c Load different configuration file (default: /etc/thinkfan.conf)
> -q Be more quiet. Can be specified up to three times so that only errors
> are logged.
> -v Enable verbose logging (e.g. log temperatures continuously).
> -p Use the pulsing-fan workaround (for worn out fans). Takes an optional
> floating-point argument (0 ~ 10s) as depulsing duration. Default 0.5s.
> -d Don't read S.M.A.R.T. temperature from sleeping disks
> -D DANGEROUS mode: Disable all sanity checks. May result in undefined
> behaviour!
> 
> Unless you want to write a system service for it, I'd figure out where
> there's a thinkfan.conf file (we don't seem to have it installed with
> the package) and run 'sudo -E thinkfan -c /path/to/thinkfan.conf'
> 
> --
> Efraim Flashner  אפרים פלשנר
> GPG key = A28B F40C 3E55 1372 662D 14F7 41AA E7DC CA3D 8351
> Confidentiality cannot be guaranteed on emails sent or received unencrypted



Re: switch off cpu fan on lenovo g50-30

2019-07-04 Thread znavko
Hello, Efraim Flashner! I want your support cause my question is not figuring 
out from the web.
For typing my config for 'thinkfan' need to write thinkfan.conf, and there, I 
think, it is necessary to define temperature control kernel module. 
After running `sensors-detect` (from 'lmsensors' package) this config file 
appeared:

# cat /etc/sysconfig/lm_sensors
# Generated by sensors-detect on Thu Jul  4 12:53:51 2019
# This file is sourced by /etc/init.d/lm_sensors and defines the modules to
# be loaded/unloaded.
#
# The format of this file is a shell script that simply defines variables:
# HWMON_MODULES for hardware monitoring driver modules, and optionally
# BUS_MODULES for any required bus driver module (for example for I2C or SPI).

HWMON_MODULES="coretemp"


As I understood 'coretemp' is that module I can use in thinkfan.conf.  I see 
`sensors` is using coretemp-isa-


# sensors
soc_dts0-virtual-0
Adapter: Virtual device
temp1:+42.0°C  

acpitz-acpi-0
Adapter: ACPI interface
temp1:+60.0°C  (crit = +90.0°C)

soc_dts1-virtual-0
Adapter: Virtual device
temp1:+42.0°C  

coretemp-isa-
Adapter: ISA adapter
Core 0:   +46.0°C  (high = +105.0°C, crit = +105.0°C)
Core 1:   +46.0°C  (high = +105.0°C, crit = +105.0°C)
Core 2:   +52.0°C  (high = +105.0°C, crit = +105.0°C)
Core 3:   +52.0°C  (high = +105.0°C, crit = +105.0°C)


Ok. But I need to use 'coretemp' file from /proc as in example here [1]. But I 
do not know where is it:

# find /proc -name 'corete*'
# 


Please, can you help me?


[1] https://www.mankier.com/5/thinkfan.conf



July 4, 2019 7:29 AM, "Efraim Flashner"  wrote:

> On Thu, Jul 04, 2019 at 06:42:40AM +, zna...@disroot.org wrote:
> 
>> Hello! Sometimes I need my laptop Lenovo G50-30 is silent, need to switch 
>> off CPU fan.
>> Basically this laptop had no cpu fan but only passive cooling system. I had 
>> inserted cpu fan by my
>> hands and there were fan power joint on the motherboard. This is nice. I 
>> hope Guix Linux-Libre has
>> necessary fan control driver for my laptop.
>> 
>> There is package 'thinkfan' in Guix repository. Would you advice me how to 
>> config it and is it
>> possible to switch off fan?
>> 
>> # thinkfan
>> 
>> ERROR: /etc/thinkfan.conf: No such file or directory
> 
> efraim@macbook41 ~/workspace/guix$
> /./gnu/store/c8pmmbpx3q881baivkrcmi01lrj4si4j-thinkfan-1.0.2/sbin/thinkfan 
> --help
> ERROR: Invalid command line: Unknown option: --
> Usage: thinkfan [-hnqzD [-b BIAS] [-c CONFIG] [-s SECONDS] [-p [SECONDS]]]
> -h This help message
> -s Maximum cycle time in seconds (Integer. Default: 5)
> -b Floating point number (-10 to 30) to control rising temperature
> exaggeration (see README). Default: 5.0
> -c Load different configuration file (default: /etc/thinkfan.conf)
> -q Be more quiet. Can be specified up to three times so that only errors
> are logged.
> -v Enable verbose logging (e.g. log temperatures continuously).
> -p Use the pulsing-fan workaround (for worn out fans). Takes an optional
> floating-point argument (0 ~ 10s) as depulsing duration. Default 0.5s.
> -d Don't read S.M.A.R.T. temperature from sleeping disks
> -D DANGEROUS mode: Disable all sanity checks. May result in undefined
> behaviour!
> 
> Unless you want to write a system service for it, I'd figure out where
> there's a thinkfan.conf file (we don't seem to have it installed with
> the package) and run 'sudo -E thinkfan -c /path/to/thinkfan.conf'
> 
> --
> Efraim Flashner  אפרים פלשנר
> GPG key = A28B F40C 3E55 1372 662D 14F7 41AA E7DC CA3D 8351
> Confidentiality cannot be guaranteed on emails sent or received unencrypted



Emacs pomode: spellcheck only inside msgstr with both languages

2019-04-21 Thread znavko
Hello! Russian translation of guix-manual is currently on the line #3661 (about 
6%). Need your help
and answers.
I've configured spellcheck in emacs with aspell, and configured autoselect of 
Russian dictionary.
It works the whole document when I type `M-x ispell`. Ad sure it does not know 
English words, but they present in the Russian translations too.

1) how to force ispell to check only msgsrt ?

2) how to make ispell skip English words in msgstr?

3) why 'Introduction' contains 'GNU@tie{}Guix' instead of 'GNU Guix'? is it 
correct? 

#. type: Plain text
#: doc/guix.texi:329
msgid ""
"You can install GNU@tie{}Guix on top of an existing GNU/Linux system where "
"it complements the available tools without interference "
"(@pxref{Installation}), or you can use it as a standalone operating system "
"distribution, @dfn{Guix@tie{}System}@footnote{We used to refer to Guix "
"System as ``Guix System Distribution'' or ``GuixSD''.  We now consider it "
"makes more sense to group everything under the ``Guix'' banner since, after "
"all, Guix System is readily available through the @command{guix system} "
"command, even if you're using a different distro underneath!}.  @xref{GNU "
"Distribution}."

4) It may be much easier to read the Guix manual translation compiled into texi 
and then into html. How can I perform this?

Here it is my current work: https://gitgud.io/znavko/guix-manual-ru
I will push it into translation project when check carefully.



Xfce4 localization in Guix System for only one exact user

2019-08-02 Thread znavko
Hello! This is from those question people want just find one or two lines to 
paste in terminal and to get effect.
I did not find solution.
Please, how to make Xfce4 menus (right mouse click, maybe Main Menu) become 
Russian for only one user 'mom'?

As I know, packages are installing using locale settings. So, I need to 
configure my locale and reinstall Xfce4 (reconfigure system).

I have installed locale package as as Guix Manual says [1] with this command:

$ guix install glibc-locales
I have now 'locale' command in guix (but do not know exactly if it is provided 
with glibc-locales? and is it providing with glibc-utf8-locales ?):

$ locale
LANG=en_US.utf8
LC_CTYPE="en_US.utf8"
LC_NUMERIC="en_US.utf8"
LC_TIME="en_US.utf8"
LC_COLLATE="en_US.utf8"
LC_MONETARY="en_US.utf8"
LC_MESSAGES="en_US.utf8"
LC_PAPER="en_US.utf8"
LC_NAME="en_US.utf8"
LC_ADDRESS="en_US.utf8"
LC_TELEPHONE="en_US.utf8"
LC_MEASUREMENT="en_US.utf8"
LC_IDENTIFICATION="en_US.utf8"
LC_ALL=
And I've found in the web the way to change locale that might work on Guix 
System:

$ localedef -c -i ru_RU -f UTF-8 ru_RU.utf8
cannot create temporary file: 
/run/current-system/locale/2.28/locale-archive.g44JbZ: Read-only file system

But as I can see need to do this by sudo user. So it will change locale for 
entire system. But I want localize Xfce4 for only user 'mom'.
Can I do it?
[1] http://guix.gnu.org/manual/en/guix.html#Locales-1


Re: Fonts and Language in Icecat

2019-08-02 Thread znavko
thank you, Tibias. I've created new vriable with this instructions: 
https://support.mozilla.org/en-US/kb/about-config-editor-firefox
and now my Icecat browser has Russian interface with that langpack you've 
advised.

August 2, 2019 5:11 AM, "Tobias Geerinckx-Rice"  wrote:

> Znavko!
> 
> zna...@disroot.org 写道:
> 
>> But Russian language pack does not make any change in my Icacat.
>> I have 'Icecat 60.6.1esr (64-bit)' and used 60.30/, 60.7.0/
>> directories from ftp gnuzilla. No one
>> langpack translates menus into Russian: http://0x0.st/zfdK.png
> 
> I tested it, it works fine, now I want to learn Russian:
> https://www.tobias.gr/ruok.png
> 
> Did you set the variable I asked you to?
> 
> С уважением,
> 
> T G-R



Re: Xfce4 localization in Guix System for only one exact user

2019-08-03 Thread znavko
Yes, Julien, you are right!
Changing config file to this:

(operating-system ...
  (locale "ru_RU.utf8"))

and running as root:

# guix pull
# guix package -u
# guix system reconfigure /etc/config.scm
# guix package -u

made all my applications work on Russian: Xfce, Gimp, LibreOffice, Audacity and 
so on:

http://0x0.st/zOsk.png

But the next question is: how to make Russian environment only for defined 
user, not for all users?

You said, my DM may have it. I use Slim and did not found such configs. Also 
`guix search xfce` did not display something like xfce4-settings. And I did not 
found language settings in xfce settings manager.

My question rests unanswered.


August 2, 2019 5:14 PM, "Julien Lepiller"  wrote:

> Le 2 août 2019 18:50:23 GMT+02:00, zna...@disroot.org a écrit :
> 
>> Hello! This is from those question people want just find one or two
>> lines to paste in terminal and to get effect.
>> I did not find solution.
>> Please, how to make Xfce4 menus (right mouse click, maybe Main Menu)
>> become Russian for only one user 'mom'?
>> 
>> As I know, packages are installing using locale settings. So, I need to
>> configure my locale and reinstall Xfce4 (reconfigure system).
>> 
>> I have installed locale package as as Guix Manual says [1] with this
>> command:
>> 
>> $ guix install glibc-locales
>> I have now 'locale' command in guix (but do not know exactly if it is
>> provided with glibc-locales? and is it providing with
>> glibc-utf8-locales ?):
>> 
>> $ locale
>> LANG=en_US.utf8
>> LC_CTYPE="en_US.utf8"
>> LC_NUMERIC="en_US.utf8"
>> LC_TIME="en_US.utf8"
>> LC_COLLATE="en_US.utf8"
>> LC_MONETARY="en_US.utf8"
>> LC_MESSAGES="en_US.utf8"
>> LC_PAPER="en_US.utf8"
>> LC_NAME="en_US.utf8"
>> LC_ADDRESS="en_US.utf8"
>> LC_TELEPHONE="en_US.utf8"
>> LC_MEASUREMENT="en_US.utf8"
>> LC_IDENTIFICATION="en_US.utf8"
>> LC_ALL=
>> And I've found in the web the way to change locale that might work on
>> Guix System:
>> 
>> $ localedef -c -i ru_RU -f UTF-8 ru_RU.utf8
>> cannot create temporary file:
>> /run/current-system/locale/2.28/locale-archive.g44JbZ: Read-only file
>> system
>> 
>> But as I can see need to do this by sudo user. So it will change locale
>> for entire system. But I want localize Xfce4 for only user 'mom'.
>> Can I do it?
>> [1] http://guix.gnu.org/manual/en/guix.html#Locales-1
> 
> Not sure I can help. First, you don't need to generate a locale, it's already 
> available as
> ru_RU.UTF-8 (or similar). Your graphical session will need to be loaded with 
> that locale.
> 
> To do so, either set it globally with the locale field in your config.scm, or 
> find a way to have it
> loaded by the user. Maybe your login manager allows you to set a locale, 
> which might work, or
> configure the desktop environment to use the locale. This is not something 
> managed by guix, but
> with user preferences. Maybe you will need a separate package for that 
> (xfce4-settings or
> something).
> 
> Sorry I can't provide much more help.



Screencast recording on Guix System

2019-08-02 Thread znavko
Hello! I use Gimp for grab screen (File - Create - From screenshot).
But now I want record screencast to make video with my actions. Is there any 
package on guix for fulfill this?


Ho to hide settings on a new tab Icecat

2019-08-03 Thread znavko
Hello! Need to set 'Search' and 'Top sites' blocks to the top of Icecat tab.
But there is 'Privacy settings' block in the top, screen: http://0x0.st/zOid.png
Please, how to hide or delete it at all?


Re: Fonts and Language in Icecat

2019-08-01 Thread znavko
Thank you, Tobias!
I've changed to these fonts configurations and it is working: 0x0.st/zf0M.png

But Russian language pack does not make any change in my Icacat.
I have 'Icecat 60.6.1esr (64-bit)' and used 60.3.0/, 60.7.0/ directories from 
ftp gnuzilla. No one
langpack translates menus into Russian: http://0x0.st/zfdK.png


August 1, 2019 6:20 PM, "Tobias Geerinckx-Rice"  wrote:

> Znavko,
> 
> zna...@disroot.org 写道:
> 
>> I have copied fonts to mom account and its content is this:
>> $ ls /home/mom/.fonts/
> 
> The XDG ‘.local/fonts’ directory is preferred by upstream and
> probably more future-proof, although .fonts might still work.
> 
> Have you run ‘fc-cache -rv’ and restarted IceCat after
> installing fonts?
> 
> If /var/cache/fontconfig exists, delete it first[0].
> 
>> And also how to make Icecat menus are Russian?
> 
> You can download ‘language packs’ at
> 
> https://ftp.gnu.org/gnu/gnuzilla/60.7.0/langpacks
> 
> then set ‘intl.locale.requested’ to ‘ru_RU’ in about:config
> (you may need to create this key).
> 
> Kind regards,
> 
> T G-R
> 
> [0]: https://debbugs.gnu.org/cgi/bugreport.cgi?bug=36862



Re: Fonts and Language in Icecat

2019-08-02 Thread znavko
There is only these variables :

http://0x0.st/zfny.png

and starting with 'intl.locale' there is only 'intl.locale.matchOS' :
http://0x0.st/zfnt.png

But I like your patience.


August 2, 2019 5:11 AM, "Tobias Geerinckx-Rice"  wrote:

> Znavko!
> 
> zna...@disroot.org 写道:
> 
>> But Russian language pack does not make any change in my Icacat.
>> I have 'Icecat 60.6.1esr (64-bit)' and used 60.30/, 60.7.0/
>> directories from ftp gnuzilla. No one
>> langpack translates menus into Russian: http://0x0.st/zfdK.png
> 
> I tested it, it works fine, now I want to learn Russian:
> https://www.tobias.gr/ruok.png
> 
> Did you set the variable I asked you to?
> 
> С уважением,
> 
> T G-R



Re: Fonts and Language in Icecat

2019-08-02 Thread znavko
signomi. alla pos to dimiourgiso; den xero ti na wthhso.

August 2, 2019 10:37 AM, zna...@disroot.org wrote:

> There is only these variables :
> 
> http://0x0.st/zfny.png
> 
> and starting with 'intl.locale' there is only 'intl.locale.matchOS' :
> http://0x0.st/zfnt.png
> 
> But I like your patience.
> 
> August 2, 2019 5:11 AM, "Tobias Geerinckx-Rice"  wrote:
> 
>> Znavko!
>> 
>> zna...@disroot.org 写道:
>> 
>>> But Russian language pack does not make any change in my Icacat.
>>> I have 'Icecat 60.6.1esr (64-bit)' and used 60.30/, 60.7.0/
>>> directories from ftp gnuzilla. No one
>>> langpack translates menus into Russian: http://0x0.st/zfdK.png
>> 
>> I tested it, it works fine, now I want to learn Russian:
>> https://www.tobias.gr/ruok.png
>> 
>> Did you set the variable I asked you to?
>> 
>> С уважением,
>> 
>> T G-R



Re: GuixSD doesn't boot on UEFI

2019-07-28 Thread znavko
Yeah, this happens. I thank occasion I can use Guix on my Lenovo G50-30!
I plan to buy new notebook and hope Guix will play there normally. If not, I 
will use Trisquel. I like Guix and Trisquel, for they use free software.

July 28, 2019 1:04 PM, luka...@tutanota.com wrote:

> Sorry, I am annoyed by Guix now... I rather use Nix
> 
> Jul 28, 2019, 1:13 PM by pelzflor...@pelzflorian.de:
> 
>> On Sat, Jul 27, 2019 at 12:31:55PM +0200, luka...@tutanota.com wrote:
>> 
>>> I have a Trekstor Surfbook A13B running Parabola (so other 
>>> installers/distros work fine)
>>> Installer works on other PCs, so the installer is not corrupt.
>> 
>> 1.0.1 still freezes old Macbooks; the patch fixing this behavior was
>> commited after 1.0.1. Does the ci.guix.gnu.org have a more recent
>> post-1.0.1 installer image to try?
>> 
>> Regards,
>> Florian



Re: GuixSD doesn't boot on UEFI

2019-07-26 Thread znavko
I had black screen when Guix Installer loaded (it is really buggy), I just 
switched to another tty.
Do you see boot messages or what is going after you choose usb as boot device?
Can you press Alt + f5 to open another tty?

July 26, 2019 3:38 PM, luka...@tutanota.com wrote:

> Hello everyone,
> GuixSD Installer freezes my UEFI-only PC, image was successfully verified 
> over gpg.
> Please help.
> 
> Lukas Friedrich



Fonts and Language in Icecat

2019-08-01 Thread znavko
Hello! I have some troubles in the second user account 'mom' in Guix System in 
Icecat browser.
It has ugly fonts for guix manual code. Here it is screen:
http://0x0.st/zf0K.png

My languages and fonts configs in Icecat are these: http://0x0.st/zf0N.png

I have copied fonts to mom account and its content is this:
$ ls /home/mom/.fonts/
'a_AvanteLt Light.ttf' 'Minion Pro Bold.ttf'
'Academy Old Regular.ttf' 'Myriad Pro Light Italic.ttf'
'Academy Regular.ttf' 'Myriad Pro Light Regular.ttf'
'a_FuturaRound Bold.ttf' pehlevi.ttf
'AvantGarde Regular.ttf' 'PF Monumenta Pro Regular.ttf'
'Century Gothic Regular.ttf' 'Pragmatica Bold.ttf'
'Century Schoolbook Regular.ttf' 'Pragmatica Cyrillic.ttf'
'FreeSet Regular.ttf' 'Pravda Regular.ttf'
'Izhitsa Regular.ttf' 'Tracia Regular.ttf'
'Lazurski Regular.ttf' 'Verdana Regular.ttf'
How to do that code displays well?

And also how to make Icecat menus are Russian?


How to update Guix not destroying Xfce4 ?

2019-09-26 Thread znavko
Hello, Guix Help! I had issue with Xfce4, described here: 
https://lists.gnu.org/archive/html/bug-guix/2019-09/msg00070.html

Now time passed. But the same result.
After `guix pull && guix system reconfigure /etc/config.scm` I get unworkable 
Xfce4, menus do not displaying after each reboot.

I've made `guix pull --switch-generation=98 && guix system roll-back` after my 
new today's try. And this 98 generation's commit is ok.
But those commits from September 2019 are bad wrong. When use one of those 
september's commits and doing `guix system reconfigure /etc/config.scm` I get 
Xfce4 not works.

Here are my commits:

# guix describe

Generation 98 Aug 05 2019 22:59:02 (current)
 guix 7b88b71
 repository URL: https://git.savannah.gnu.org/git/guix.git
 branch: master
 commit: 7b88b7112045004479a788dda050dce940202adc

# guix pull -l > znavko-commits

Attached.

Please, I think something was changed, and my current config is wrong. Can you 
check it? Can you say what to do?


znavko-commits
Description: Binary data


znavko-config.scm
Description: Binary data


Slim auto-login disallow me to login with another user

2019-06-28 Thread znavko
Hello, Guix! I have configured Slim to do autologin with user 'mom'. I use 
xfce4+slim. So it works.
But I have expected it is possible to logout from 'mom' and login with 'bob'.
But not! After pressing in Xfce4 'Logout' it does logout but thereafter login 
again with mom.
Please, is it possible to do something?
I tried to use another tty to kill slim, xorg services but I do not know 
exactly which process to kill and what to run to start session.

My config's lines:
 (users (cons* (user-account (name "bob") (group "users")
 (supplementary-groups '("wheel" "netdev" "audio" "video"))
 (home-directory "/home/bob"))
 (user-account (name "mom") (group "users")
 (supplementary-groups '("wheel" "netdev" "audio" "video"))
 (home-directory "/home/mom"))
 %base-user-accounts))
 (services (cons*
 (service xfce-desktop-service-type)
 (service dhcp-client-service-type)
 (service slim-service-type
 (slim-configuration
 ;;(auto-login? #t)
 ;;(default-user "mom")
 (xorg-configuration
 (xorg-configuration
 (extra-config 
 '("Section "InputClass"
Identifier "touchpad"
Driver "libinput"
MatchIsTouchpad "on"
Option "Tapping" "on"
EndSection")
 
 )

 (modify-services 
 (remove (lambda (service)
 (member (service-kind service)
 (list ntp-service-type avahi-service-type
 bluetooth-service network-manager-service-type
 gdm-service-type)))
 %desktop-services) ;end of remove lambda services

 (wpa-supplicant-service-type config =>
 (wpa-supplicant-configuration
 (interface "wlp2s0")
 (config-file "/etc/wpa_supplicant/wpa_supplicant.conf")))

 (elogind-service-type
 c => (elogind-configuration (handle-lid-switch 'ignore)))
 ) ;;end of modify-services
 )) ;;end of services

 ;; Allow resolution of '.local' host names with mDNS.
 (name-service-switch %mdns-host-lookup-nss)

 ;;blacklist ugly sound speaker, blacklist ideapad_laptop for prevent soft 
blocking wlan
 (kernel-arguments 
'("modprobe.blacklist=pcspkr,snd_pcsp,bluetooth,ideapad_laptop"))


How to configure Xorg to use downloaded Sis 771 driver on Guix?

2019-06-16 Thread znavko
Hello! I use Asus K50C where VGA Adapter is Sis 771/671 Intel. It works on 
resolution most 1024x768, and this is incorrect (should be 1366x768). As I know 
only sis driver can help here.

I've downloaded Sis driver here http://w3.sis.com for Linux and want to try to 
configure Xorg to use it.
I am looking to manual and cannot determine how to configure Xorg to use sis 
driver:

Data Type: xorg-configuration  drivers (default: '()) 

This must be either the empty list, in which case Xorg chooses a 
graphics driver automatically, or a list of driver names that will be tried in 
this order—e.g., ("modesetting" "vesa").

Please, help me with my Asus K50C.
Where to put sis driver? If I need to describe new package for sis driver it is 
impossible for me this time. Can you help?


Re: How to configure Xorg to use downloaded Sis 771 driver on Guix?

2019-06-16 Thread znavko
oops, not sure it is intel.

here i've placed driver https://gitgud.io/znavko/sis771

Can anybody write package definition ? 

June 16, 2019 1:52 PM, zna...@disroot.org wrote:

> Hello! I use Asus K50C where VGA Adapter is Sis 771/671 Intel. It works on 
> resolution most
> 1024x768, and this is incorrect (should be 1366x768). As I know only sis 
> driver can help here.
> 
> I've downloaded Sis driver here http://w3.sis.com for Linux and want to try 
> to configure Xorg to
> use it.
> I am looking to manual and cannot determine how to configure Xorg to use sis 
> driver:
> 
> Data Type: xorg-configuration drivers (default: '()) 
> 
> This must be either the empty list, in which case Xorg chooses a graphics 
> driver automatically, or
> a list of driver names that will be tried in this order—e.g., ("modesetting" 
> "vesa").
> 
> Please, help me with my Asus K50C.
> Where to put sis driver? If I need to describe new package for sis driver it 
> is impossible for me
> this time. Can you help?



Re: Cannot install Guix 1.0.1 on Asus K50C

2019-06-16 Thread znavko
Hi, Florian! I have reinit system with config like this:

(initrd-modules (append (list "sata_sis")
%base-initrd-modules))

where underscore is placed instead of dash: sata_sis.

I did not understand where should I type --skip-checks, sorry.

Also, I am not sure partitioning is right:

Disk /dev/sdb: 59.6 GiB, 64023257088 bytes, 125045424 sectors
Units: sectors of 1 * 512 = 512 bytes
Sector size (logical/physical): 512 bytes / 512 bytes
I/O size (minimum/optimal): 512 bytes / 512 bytes
Disklabel type: gpt
Disk identifier: AB9A165C-BB51-8C47-813D-10219657F602

Device Start End Sectors Size Type
/dev/sdb1 2048 157695 155648 76M BIOS boot
/dev/sdb2 157696 105625599 105467904 50.3G Linux filesystem
/dev/sdb3 105625600 125045390 19419791 9.3G Linux swap

I use BIOS Grub, so I created a separate partition of type BIOS boot and size 
76Mb. Am I right of
its size? And I fulfilled this:

parted /dev/sdb set 1 bios_grub on

as it is described here:
https://www.gnu.org/software/grub/manual/grub/html_node/BIOS-installation.html#BIOS-installation

Also, may be I need to update by usb flash, cause there is Guix 1.0.1 of age 3 
weeks. Might be the
new image has some bugfixes for me?

The result of initialization and reboot is the next. Boot stops on locksource 
as it was before. And above I see this:

isci: Intel(R) C600 SAS Controller Driver - version 1.2.0 
ext2s_checks_if_mount: Can't check if filesystem is mounted due to missing mtab 
e2fsck: No such file or directory while trying open /dev/sdb2 
Possibly non-existent device?
File system check on /dev/sdb2 failed
Spawning Bourne-like REPL.
GNU Guile 2.2.4

Please, should I type /dev/sda everywhere in config.scm instead of /dev/sdb? 
When I boot to usb my ssd disk is showing like /dev/sdb, but when I boot from 
ssd disk it is /dev/sda, so this config does not work. And this ubiquitous 
option was not described in manual. I always read:
"For legacy systems, the target field names a device, like /dev/sda;... "

So, what to do?

This is my config:

(operating-system (host-name "antelope") (timezone "Europe/Moscow") (locale 
"en_US.utf8")
  (bootloader (bootloader-configuration 
(bootloader grub-bootloader) 
(target "/dev/sdb")))
  (file-systems (cons (file-system 
(device "/dev/sdb2") 
(mount-point "/") 
(type "ext4")) 
%base-file-systems))
  (swap-devices '("/dev/sdb3"))

  (initrd-modules (append (list "sata_sis")
  %base-initrd-modules))

June 15, 2019 6:54 PM, "pelzflorian (Florian Pelz)" 
 wrote:

> On Sat, Jun 15, 2019 at 06:22:00PM +, zna...@disroot.org wrote:
> 
>> I've changed config. Added initrd-modules that guix offered to me. And I 
>> reinitialized system.
>> […]
>> ERROR: In procedure open-file: No such file or directory:
>> "/gnu/store/qvhashahsh-linux-modules/sata-sis.ko"
> 
> It is looking for sata-sis.ko, but the file is called sata_sis.ko.
> 
> I remember .
> 
> Does this solution help, i.e. using sata_sis in initrd-modules and
> perhaps using --skip-checks as described there?
> 
> Regards,
> Florian



Re: Cannot install Guix 1.0.1 on Asus K50C

2019-06-16 Thread znavko
Thank you! The installation was finished ok. But 'reboot' after system 
initialization (as manual says) did not worked ever on my Asus K50C.

I've used in config the name of device as /dev/sda everywhere, and Guix runs 
ok. Think, manual should have notices about it for those not want to use label 
of device. 
Also if I do not use separate partition for bios grub, guix says that it is not 
allowed (but on my other laptop i have only one partition for root and grub).
Also the size of grub partition was 200Mb first, and somebody said I need only 
1Mb, but I've seen my other notebook's /boot directory has files about 20Mb, so 
I've create boot partition with 80Mb space. And I see this now:

# du -h /boot
2.3M/boot/grub/fonts
4.2M/boot/grub/locale
2.4M/boot/grub/i386-pc
8.9M/boot/grub
8.9M/boot


The next trouble connects to my VGA Display Adapter Sis 771/671 and its driver. 
I've solved this on ubuntu, and now I will push another email for get my screen 
works normal resolution on Guix.


June 16, 2019 8:40 AM, "pelzflorian (Florian Pelz)" 
 wrote:

> On Sun, Jun 16, 2019 at 08:17:56AM +, zna...@disroot.org wrote:
> 
>> Hi, Florian! I have reinit system with config like this:
>> 
>> (initrd-modules (append (list "sata_sis")
>> %base-initrd-modules))
>> 
>> where underscore is placed instead of dash: sata_sis.
> 
> Yes.
> 
>> I did not understand where should I type --skip-checks, sorry.
> 
> Maybe you do not need it. If it fails without --skip-checks, it is
> `guix system reconfigure --skip-checks /path/to/your/config.scm`.
> Please try without --skip-checks first. It may be a bug if this is
> necessary.
> 
>> I use BIOS Grub, so I created a separate partition of type BIOS boot and 
>> size 76Mb. Am I right of
>> its size?
> 
> I believe it is sufficient, although you do not need to use a separate
> /boot partition.
> 
>> Also, may be I need to update by usb flash, cause there is Guix 1.0.1 of age 
>> 3 weeks. Might be the
>> new image has some bugfixes for me?
> 
> I do not know if there were changes to kernel modules.
> 
>> Please, should I type /dev/sda everywhere in config.scm instead of /dev/sdb? 
>> When I boot to usb my
>> ssd disk is showing like /dev/sdb, but when I boot from ssd disk it is 
>> /dev/sda, so this config
>> does not work. And this ubiquitous option was not described in manual. I 
>> always read:
>> "For legacy systems, the target field names a device, like /dev/sda;... "
>> 
>> So, what to do?
> 
> Please use UUIDs to name the devices, as described in the manual.
> 
> Regards,
> Florian



Re: Why 'iw dev' does not show wireless device?

2019-10-09 Thread znavko
(Double). Yes, Tobias, I've dug this finally. This wifi card is not supported 
by LinuxLibre.

Please, would you give me advice, what to choose from mass-market ( in Russia 
dns-shop.ru )
for LinuxLibre and Guix in price under 540 euro ( 40.000 Roubles ) ???

I found this https://certification.ubuntu.com/desktop
But not sure it will exactly work with LinuxLibre. Also h-node lack some 
contemporary models.

October 6, 2019 6:17 PM, "Tobias Geerinckx-Rice"  wrote:

> Znavko,
> 
> zna...@disroot.org 写道:
> 
>> # lspci -vvnn > wifi
>> # nano wifi
>> ...
>> Network controller: Qualcomm Atheros QCA9377 802.11ac Wireless
>> Network Adapter
>> ...
>> Kernel driver in use: ath10k_pci
>> Kernel modules: ath10k_pci
>> Please, what to do? I cannot get the name of the network device.
> 
> All ath10k devices of which I'm aware require proprietary firmware
> blobs that Guix won't ship and Linux-Libre won't load. Even
> though the kernel driver is loaded, I suspect you'll find some
> firmware-related errors in dmesg.
> 
> I'm sorry,
> 
> T G-R



Why 'iw dev' does not show wireless device?

2019-10-06 Thread znavko
Hello! I want to install the latest Guix 1.0.1 x86_84 on Acer Aspire 3 
A315-42-R1JJ, AMD Ryzen 3 3200U/AMD Radeon Vega 6.
I've deleted from grub 'modprobe.blacklist=radeon' and added 'nomodeset' cause 
I have radeon and without 'nomodeset' option boot just freezes.

But I cannot see wifi. I've unblocked it with
# rfkill list
0: acer-wireless: Wireless LAN
 Soft blocked: yes
 Hard blocked: no
...
# rfkill unblock wifi
# rfkill list
0: acer-wireless: Wireless LAN
 Soft blocked: no
 Hard blocked: no
...

But iw does not see wireless device:
# iw dev
#

# ip link
1: lo:...
2: enp3s0
#

# lspci -vvnn > wifi
# nano wifi
...
Network controller: Qualcomm Atheros QCA9377 802.11ac Wireless Network Adapter
...
Kernel driver in use: ath10k_pci
Kernel modules: ath10k_pci
Please, what to do? I cannot get the name of the network device.


Does OS Guix works fine with Intel UHD Grapics 630?

2020-02-26 Thread znavko
Hello! I choose PC and have a question choosing processor.

Here I've found what will work with Guix, as I think:
https://www.citilink.ru/catalog/computers_and_notebooks/computers/1120107/
ACER Veriton ES2710G, Intel Core i3 6100, DDR4 8Gb, 1000Gb, Intel HD Graphics 
530, Free DOS, [dt.vqeer.080]

Intel Core i3 6100 has graphics controller - Intel HD Graphics 530
that is presented on h-node:
https://h-node.org/videocards/catalogue/en/1/1/undef/undef/undef/undef/video-card-works/undef?search_string=graphics+530=Search

So, I think this PC with core i3 6100 is suitable and will work with OS Guix.

There is another PC with core i5
https://www.citilink.ru/catalog/computers_and_notebooks/computers/1193819/
ACER Aspire XC-886, Intel Core i5 9400, DDR4 8Gb, 128Gb(SSD), Intel UHD 
Graphics 630, noOS, [dt.bdder.01p]

I'd prefer Core i5 9400, but I am not sure graphic card is suitable, cause 
h-node has only this:
https://h-node.org/videocards/catalogue/en/1/1/undef/undef/undef/undef/video-card-works/undef?search_string=graphics+630=Search

There is on h-node only Intel HD 630, but there is not Intel UHD 630.

Please, does Guix work on Core i5 9400 with Intel UHD Graphics 630 ?

znavko.


Which usb wi-fi adapter from those to choose?

2020-02-19 Thread znavko
Hello! I want to buy usb wifi-adapter for PC. I've discovered that RYF 
recommends only devices from abroad webshops, but I cannot order from there, 
cause there is no guarantee their services are good and clean (RYF certifies 
only devices but not vendors and their services, I know).

I want to buy in my city from Russian webshop. Please, let me know which device 
from those I can use under Guix:
https://www.dns-shop.ru/catalog/17a9eac716404e77/adaptery-wi-fi/

There are no Atheros.

Only Asus, DEXP, Zyxel, Intel, TP-Link, D-Link, Tenda, Xiami.

Can I run something without any additional drivers compilations, just typing 
'ifconfig wlp2s0 up && wpa_supplicant -B -i wlp2s0 -c w.conf && dhclient -v 
wlp2s0' ???


Re: Watching HTML5 video on GNU Guix?

2019-12-26 Thread znavko
ffmpeg was installed:

$ guix install ffmpeg
The following package will be upgraded:
   ffmpeg   4.2.1 → 4.2.1   
/gnu/store/rc3j2svk1jcviig5qk9q49k5z2giwc6r-ffmpeg-4.2.1

substitute: updating substitutes from 'https://ci.guix.gnu.org'... 100.0%
The following derivation will be built:
   /gnu/store/q77mx4rwzp2f9dlfcwyfrq2jr6iqd189-profile.drv
The following profile hooks will be built:
   /gnu/store/6vy42kw25p39ns5nc59ah5h5ybqv2bxh-manual-database.drv
   /gnu/store/86586pml7sbkpr0q99ks8qybqrjz8y90-ca-certificate-bundle.drv
   /gnu/store/9g63hzqwyxhngi3w54qak81zy34smwak-gtk-im-modules.drv
   /gnu/store/bdk8kd8riawgy8xxxiw892g40669g1a2-xdg-desktop-database.drv
   /gnu/store/djqd46r7kyby9rf039sgxbw1sry3wpl5-info-dir.drv
   /gnu/store/fah28q0y8dxzayym4z7vixdq6yk41wkm-glib-schemas.drv
   /gnu/store/hrvmv6kzxf6qpnbl19i5b4wflb5f4j77-xdg-mime-database.drv
   /gnu/store/jzflbgzgsdjgfhhxdb92pmmn1zazjhc6-gtk-icon-themes.drv
   /gnu/store/q97kj7m0239f4n4w024ai0wymb7cf05p-fonts-dir.drv
building CA certificate bundle...
building fonts directory...
generating GLib schema cache...
creating GTK+ icon theme cache...
building cache files for GTK+ input methods...
building directory of Info manuals...
building database for manual pages...
building XDG desktop file cache...
building XDG MIME database...
building /gnu/store/q77mx4rwzp2f9dlfcwyfrq2jr6iqd189-profile.drv...
85 packages in profile



Those two video are working (cause youtube had converted them, I think).

On the other videos that are not displaying and often this is live streams (I 
think, youtube did not converted them to acceptable format)
these Javascript warnings with WebGL errors appear in terminal:

https://www.youtube.com/watch?v=9K26GI4C3uY

$ icecat
JavaScript error: resource:///modules/sessionstore/SessionStore.jsm, line 1325: 
uncaught exception: 2147746065
JavaScript warning: 
https://mail.disroot.org/rainloop/v/1.12.1/static/js/min/openpgp.min.js, line 
0: Successfully compiled asm.js code (total compilation time 94ms)
JavaScript warning: 
https://mail.disroot.org/rainloop/v/1.12.1/static/js/min/openpgp.min.js, line 
0: Successfully compiled asm.js code (total compilation time 7ms)
JavaScript warning: 
https://mail.disroot.org/rainloop/v/1.12.1/static/js/min/openpgp.min.js, line 
0: Successfully compiled asm.js code (total compilation time 2ms)
console.warn: LoginRecipes: "getRecipes: falling back to a synchronous message 
for:" "https://www.youtube.com;
JavaScript warning: 
https://www.youtube.com/yts/jsbin/player_ias-vfl22ubNH/ru_RU/base.js, line 
5359: Error: WebGL warning: getContext: Disallowing antialiased backbuffers due 
to blacklisting.
JavaScript warning: 
https://www.youtube.com/yts/jsbin/player_ias-vfl22ubNH/ru_RU/base.js, line 
5359: Error: WebGL warning: : Failed to create WebGL context: 
WebGL is currently disabled.
JavaScript warning: 
https://www.youtube.com/yts/jsbin/player_ias-vfl22ubNH/ru_RU/base.js, line 
5359: Error: WebGL warning: getContext: Disallowing antialiased backbuffers due 
to blacklisting.
JavaScript warning: 
https://www.youtube.com/yts/jsbin/player_ias-vfl22ubNH/ru_RU/base.js, line 
5359: Error: WebGL warning: : Failed to create WebGL context: 
WebGL is currently disabled.
JavaScript warning: 
https://www.youtube.com/yts/jsbin/player_ias-vfl22ubNH/ru_RU/base.js, line 
5359: Error: WebGL warning: getContext: Disallowing antialiased backbuffers due 
to blacklisting.
JavaScript warning: 
https://www.youtube.com/yts/jsbin/player_ias-vfl22ubNH/ru_RU/base.js, line 
5359: Error: WebGL warning: : Failed to create WebGL context: 
WebGL is currently disabled.


Icecat console displays:
Error: WebGL warning: getContext: Disallowing antialiased backbuffers due to 
blacklisting. base.js:5359:276
Error: WebGL warning: : Failed to create WebGL context: WebGL is 
currently disabled. base.js:5359:276
Blocked https://www.youtube.com/watch?v=9K26GI4C3uY from extracting canvas data 
because no user input was detected. base.js:2900:157

and many ties this:
Request to access cookie or storage on 
“https://i.ytimg.com/vi/sfw1IB58HYA/hqdefault.jpg?sqp=-oaymwE…qpAwsIARUAAIhCGAFwAQ===AOn4CLDPtI4kQ5jl0Nq6M8f7wUF2sjlv6g”
 was blocked because we are blocking all third-party storage access requests 
and content blocking is enabled.


Also coub.com does not show any video (but only preview and loading gif). And 
terminal says:

JavaScript error: , line 0: AbortError: The fetching process for the media 
resource was aborted by the user agent at the user's request.
JavaScript warning: 
https://coubsecureassets-a.akamaihd.net/assets/site-b958a1e64d3db9f33ba277dc34d32a3d334e338bb81cf62fbc7f469c80a20fb6.js,
 line 39617: Error: This error message will be blank when 
privacy.resistFingerprinting = true.  If it is really necessary, please add it 
to the whitelist in MediaError::GetMessage: Failed to init decoder
JavaScript warning: 
https://coubsecureassets-a.akamaihd.net/assets/site-b958a1e64d3db9f33ba277dc34d32a3d334e338bb81cf62fbc7f469c80a20fb6.js,

Watching HTML5 video on GNU Guix?

2019-12-26 Thread znavko
Hello! I've updated my system having now working Xfce4, this bug was fixed: 
https://issues.guix.gnu.org/issue/37342

But now I cannot watch HTML5 videos in IceCat 68.3.0esr (64-bit), cause it does 
not support one of formats video hosting is using.
It says: "In current time your browser does not support any of available video 
formats."

All those extensions in Icecat are disabled, so LibreJS, LibrifyJS, Searxes 
blocker - are disabled.

I have a question of how to use this part of the internet and work on GNU Guix 
simultaneously.


Re: Autoplay videos in Icecat

2020-03-25 Thread znavko
Hello! Thank you for reminder. I only selected "Custom" content blocking and 
unblocked Cookies.
Refresh of all tabs did not make effect, but restart browser make effect.
So allowing Cookies makes videos start playing automatically.

March 25, 2020 5:35 PM, "Amin Bandali"  wrote:

> Hello,
> 
> zna...@disroot.org writes:
> 
>> Hello, users! Can you recommend something to make Icecat autostart videos 
>> (that are really
>> autoplayable and start when I use another browser).
>> I cannot remember what I did, but I had this on my laptop. Now I've 
>> installed Guix on PC and do not
>> have autoplay videos in Icecat.
>> ddg.gg did not answer me.
>> Please, how autoplay videos in Icecat?
> 
> This would probably be more appropriate for the help-gnuzilla list, but
> anyway, try this: open about:preferences#privacy, scroll down to the
> Permissions section, and uncheck the "Block websites from automatically
> playing sound" option to allow automatic playback on all sites, or leave
> it checked but instead click the "Exceptions..." button in front of it,
> and fine-tune which websites you would like to allow or block from
> automatically playing sound.
> 
> Hope this helps.



Autoplay videos in Icecat

2020-03-25 Thread znavko
Hello, users! Can you recommend something to make Icecat autostart videos (that 
are really autoplayable and start when I use another browser).
I cannot remember what I did, but I had this on my laptop. Now I've installed 
Guix on PC and do not have autoplay videos in Icecat.
ddg.gg did not answer me.
Please, how autoplay videos in Icecat?


<    1   2   3   >