From mboxrd@z Thu Jan 1 00:00:00 1970 From: ludo@gnu.org (Ludovic =?utf-8?Q?Court=C3=A8s?=) Subject: Re: how to "install" guixsd on a digitalocean server Date: Fri, 07 Apr 2017 23:37:43 +0200 Message-ID: <87zifrsxug.fsf@gnu.org> References: <87pogo8lqj.fsf@pobox.com> Mime-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable Return-path: Received: from eggs.gnu.org ([2001:4830:134:3::10]:60742) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1cwbZm-0002OP-Qh for guix-devel@gnu.org; Fri, 07 Apr 2017 17:37:51 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1cwbZi-0000af-67 for guix-devel@gnu.org; Fri, 07 Apr 2017 17:37:50 -0400 In-Reply-To: <87pogo8lqj.fsf@pobox.com> (Andy Wingo's message of "Fri, 07 Apr 2017 14:07:16 +0200") List-Id: "Development of GNU Guix and the GNU System distribution." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: guix-devel-bounces+gcggd-guix-devel=m.gmane.org@gnu.org Sender: "Guix-devel" To: Andy Wingo Cc: guix-devel@gnu.org Hi Andy, Andy Wingo skribis: > I just "installed" GuixSD on a DigitalOcean droplet. You can't actually > install GuixSD; you have to mutate an existing installation into > GuixSD. But fine. Thanks a lot for the detailed report! It shows just how much room for improvement there is. Some of the issues are not simple to fix, but we should do something about it. > But at this point it started carping about locales. The manual doesn't > mention what you need to do until later on, but what you do is this: > > ~/.guix-profile/bin/guix package -i glibc-utf8-locales > export GUIX_LOCPATH=3D$HOME/.guix-profile/lib/locale > > Then what init file do you add to for the environment variables? I > think it's ~/.profile but IDK. I did this: > > echo 'source ~/.guix-profile/etc/profile' >> ~/.profile > > However this didn't include the LOCPATH thing, so you have to do this > too: > > echo 'export GUIX_LOCPATH=3D$HOME/.guix-profile/lib/locale' >> ~/.pro= file In , I fixed it by adding =E2=80=98glibc-utf8-locales=E2=80=99 and =E2=80=98glib= c-final=E2=80=99 to the tarball, and also documenting ~/.guix-profile/etc/profile. We have to be aware that this will only placate people whose locale is in this set, but that=E2=80=99s already an improvement, I think. > OK. Only problem now is that ~/.guix-profile/etc/profile has absolute > paths in it, instead of pointers into the user's $HOME. Humm. Yeah, one has to define GUIX_PROFILE. > Anyway! Off to update my Guix: > > guix pull > > Unfortunately this failed due to lack of memory. I had installed on the > smallest instance with 512MB memory. So for now I bumped it up to 1G > and retried and was able to upgrade. Then: Yeah. :-/ > guix package -i emacs > > but I found that was installing X things and cancelled; had to ask on > IRC what was the right thing because guix package --search=3Demacs showed > too much info for me to find emacs-no-x :) =E2=80=98guix package -A emacs=E2=80=99 or =E2=80=98guix package -s emacs |= grep ^name=E2=80=99 would have helped, but not that convenient, I agree. > (operating-system > (host-name "guix-potluck") Oh oh! :-) > That's all. Hope yall find this useful. Now, to clean up the remaining > Debian bits! Neat, congrats! If DigitalOcean supports it, we could ship a GuixSD qcow2/whatever image that=E2=80=99s directly usable without having to go through this Debian ste= p, as Leo suggested recently. Ludo=E2=80=99.