Open xie186 opened 5 years ago
#Link: https://guix.gnu.org/manual/en/html_node/Binary-Installation.html#Binary-Installation
48 cd /tmp
49 uname -a
50 wget https://ftp.gnu.org/gnu/guix/guix-binary-1.0.1.x86_64-linux.tar.xz
51 wget https://ftp.gnu.org/gnu/guix/guix-binary-1.0.1.x86_64-linux.tar.xz.sig
52 gpg --verify guix-binary-1.0.1.x86_64-linux.tar.xz.sig
wget https://sv.gnu.org/people/viewgpg.php?user_id=15145 \
-qO - | gpg --import -
gpg --verify guix-binary-1.0.1.x86_64-linux.tar.xz.sig
tar --warning=no-timestamp -xf guix-binary-1.0.1.x86_64-linux.tar.xz
mv var/guix /var/ && mv gnu /
ls /gnu/store/
57 ls /var/guix
58 ls ~root/.config/guix/
59 mkdir -p ~root/.config/guix
60 ln -sf /var/guix/profiles/per-user/root/current-guix ~root/.config/guix/current
61 GUIX_PROFILE="`echo ~root`/.config/guix/current" ;
62 source $GUIX_PROFILE/etc/profile
63 groupadd --system guixbuild
64 for i in `seq -w 1 10`; do useradd -g guixbuild -G guixbuild -d /var/empty -s `which nologin` -c "Guix build user $i" --system guixbuilder$i; done
65 guix-daemon --build-users-group=guixbuild &
66 ls
67 ps
68 jobs
69 cp ~root/.config/guix/current/lib/systemd/system/guix-daemon.service /etc/systemd/system/
70 kill 24943
71 systemctl start guix-daemon && systemctl enable guix-daemon
72 systemctl
73 apt instlal systemctl
74 apt install systemctl
75 systemctl
76 sudo dpkg -l | grep systemd
77 sudo apt-get install --reinstall systemd
78 systemctl start guix-daemon && systemctl enable guix-daemon
79 systemctl
80 mkdir -p /usr/local/bin
81 cd /usr/local/bin
82 ln -s /var/guix/profiles/per-user/root/current-guix/bin/guix
You need to run this before using guix install
guix-daemon --build-users-group=guixbuild
$ guix install glibc-locales
$ export GUIX_LOCPATH=$HOME/.guix-profile/lib/locale
Substitute Server Authorization:
guix archive --authorize < /root/.config/guix/current/share/guix/ci.guix.gnu.org.pub
To install Docker on Ubuntu, in the terminal window enter the command:
sudo apt install docker.io
sudo service docker start
sudo service docker status
sudo docker pull rocker/rstudio
docker run -d --name rstudio -v $HOME:/home/`whoami` -e PASSWORD=secret -p 8787:8787 rocker/tidyverse
If it works, the command will print the ID of the new container and exit. Now you can open your browser at http://localhost:8787, enter “rstudio” as unsername, and “secret” as password.
systemctl restart guix-daemon
guix archive --authorize < ./gnu/store/ncknl03pkmamrxg7q9nxi1rn1qhvwbi9-guix-1.0.1/share/guix/ci.guix.gnu.org.pub
Error message from "guix install pigx-bsseq"