/var/guix/db/db.sqlite corruption

2019-08-02 Thread Mike Gerwitz
A while back, I ran out of disk space while running `guix package -i`,
during a build.  I then noticed that `guix gc` would, after outputting
some number of "deleting" lines, fail with an error that's approximately
this (I forgot to make a copy):

  guix gc: error: executing SQLite query: malformed database image

This error appears to come from nix/libstore/sqlite.cc, and the last
portion of the message comes from `sqlite3_errmsg`, so I don't think
this is Guix's fault.

I had already run e2fsck on many occasions since this happened a couple
months back and there are no disk errors.

To work around it, I dumped the DB:

  $ sqlite3 db.sqlite .dump > ~/bak.sql

The final line of that file contains this:

  ROLLBACK; -- due to errors

Understandable.  I replaced that with "COMMIT;", and:

  $ mv db.sqlite{,-bak}
  $ sqlite3 db.sqlite < ~/bak.sql

This produced a database that was 4MiB smaller than the original. :x
But now `guix gc` works.[*]

So my questions are:

  - Is there a way to regenerate the database?
  - What bad things could happen with what I just did?

Thanks, and please nobody reading this message in a list archive in the
future do the above without first reading replies to this thread; I
don't want to be responsible for anything bad that may result! :)

[*]: Actually, I had some other bizarre issues.  After I recreated the
DB, I started getting more generic I/O errors.  There were no errors in
dmesg.  But when I moved the file to a different location (e.g. my home
directory), it worked (via `sqlite3`).  If I moved it back to
`/var/guix/db/db.sqlite`, I/O errors once again.  If I ran `.dump` from
that dir, empty.  If I moved it to my home dir and ran `.dump`, I got
the full dump.  This problem didn't resolve until after a reboot.  I
haven't seen anything like that before, and I don't want to
speculate.  I should have tried flushing the kernel I/O cache before
rebooting to see if that would have fixed it.

-- 
Mike Gerwitz
Free Software Hacker+Activist | GNU Maintainer & Volunteer
GPG: D6E9 B930 028A 6C38 F43B  2388 FEF6 3574 5E6F 6D05
https://mikegerwitz.com


signature.asc
Description: PGP signature


Re: Screencast recording on Guix System

2019-08-02 Thread hub . lombard
Hi znavko,


- Mail original -
De: zna...@disroot.org
À: "help-guix" 
Envoyé: Vendredi 2 Août 2019 20:30:19
Objet: Screencast recording on Guix System

>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?


I use obs (OBS Studio)

You can install it:

$ guix install obs (It's available)

To make a screencast: + (in "sources")

Then you load: Capture d'écran (XSHM)

Hope it helps,

Hubert



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?


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

2019-08-02 Thread Julien Lepiller
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.



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: 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: 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