Skip to content

Instantly share code, notes, and snippets.

@makefu
Last active January 28, 2020 18:10
Show Gist options
  • Save makefu/32660788ca3538404a46b3681488772b to your computer and use it in GitHub Desktop.
Save makefu/32660788ca3538404a46b3681488772b to your computer and use it in GitHub Desktop.
history of my docker experience
1 history
2 wget
3 curl
4 pacman -S fakeroot make gcc
5 pacman -Sy fakeroot make gcc
6 curl https://aur.archlinux.org/cgit/aur.git/snapshot/nix.tar.gz | tar x
7 curl https://aur.archlinux.org/cgit/aur.git/snapshot/nix.tar.gz | tar xz
8 lsl
9 ls
10 ls -alhtr
11 cd nix/
12 ls
13 EUID=1 makepkg -si
14 env EUID=1 makepkg
15 env EUID=1 makepkg -si
16 pacman -S libsodium boost brotli editline
17 pacman -S libsodium boost brotli
18 env EUID=1 makepkg -si
19 cd /
20 curl https://aur.archlinux.org/cgit/aur.git/snapshot/editline.tar.gz | tar xz
21 cd editline/
22 ls
23 env EUID=1 makepkg -si
24 pacman -S autoconf
25 env EUID=1 makepkg -si
26 pacman -S aclocal
27 pacman -S automake
28 env EUID=1 makepkg -si
29 cd /
30 ls
31 cd nix/
32 ls
33 env EUID=1 makepkg -si
34 pacman -S patch
35 env EUID=1 makepkg -si
36 pacman -S pkgconfig
37 env EUID=1 makepkg -si
38 useradd nixbld
39 groups
40 cat /etc/groups
41 cat /etc/group
42 nix-channel --update
43 gpasswd -a nixbld nixbld
44 cat /etc/group
45 nix-channel --update
46 nix-channel --add https://nixos.org/channels/nixpkgs-unstable
47 nix-channel --update
1 pacman -Sy base-devel
3 curl https://aur.archlinux.org/cgit/aur.git/snapshot/editline.tar.gz | tar xz
4 cd editline/
5 env EUID=1 makepkg -si
6 curl https://aur.archlinux.org/cgit/aur.git/snapshot/nix.tar.gz | tar xz
7 cd nix/
8 pacman -S libsodium boost brotli
9 env EUID=1 makepkg -si
11 useradd nixbld
12 gpasswd -a nixbld nixbld
13 nix-channel --add https://nixos.org/channels/nixpkgs-unstable
14 nix-channel --update
1 ls
2 pacman -S yay
3 pacman -Sy yay
4 git clone https://aur.archlinux.org/yay.git
5 cd yay
6 pacman -S git makepkg
7 pacman -S git
8 git clone https://aur.archlinux.org/yay.git
9 cd yay/
10 ls
11 makepkg -si
12 makepkg -si --help
13 makepkg -si --force
14 which makepkg
15 vi /usr/bin/makepkg
16 pacman -S vi
17 vi /usr/bin/makepkg
18 makepkg -si
19 makepkg -si -F
20 pacman -S fakeroot
21 pacman -S strip
22 makepkg -si -F
23 pacman -S buildutils
24 pacman -S --needed --noconfirm sudo # Install sudo
25 useradd builduser -m # Create the builduser
26 passwd -d builduser # Delete the buildusers password
27 printf 'builduser ALL=(ALL) ALL\n' | tee -a /etc/sudoers # Allow the builduser passwordless sudo
28 chown builduser .
29 ls
30 sudo -u builduser bash -c 'makepkg -si
31 sudo -u builduser bash -c 'makepkg -si'
32 vi /usr/bin/makepkg
33 pacman -S makepkg
34 pacman -Ss makepkg
35 sudo -u builduser bash -c 'makepkg -s'
36 sudo -u builduser bash -c 'makepkg -sF'
37 pacman -Ss strip
38 pacman -S binutils
39 sudo -u builduser bash -c 'makepkg -sF'
40 ls
41 sudo -u builduser bash -c 'makepkg -sF .'
42 vi /usr/bin/makepkg
43 pkgfile
44 pacman -S pkgfile
45 pkgfile --update
46 pkgfile makepkg
47 pacman -S core/pacman
48 sudo -u builduser bash -c 'makepkg -s'
49 pacman -S make
50 sudo -u builduser bash -c 'makepkg -s'
51 pacman -S gcc
52 sudo -u builduser bash -c 'makepkg -s'
53 ls
54 yay
55 pacman -i yay-9.4.4
56 pacman -i yay-9.4.4.tar.gz
57 pacman yay-9.4.4.tar.gz
58 sudo -u builduser bash -c 'makepkg -si'
59 yay install nix
60 yay search nix
61 yay update
62 yay search nix
63 yay nix
64 yay install nix
65 yay -i nix
66 yay --help
67 yay -a nix
68 sudo -u builduser bash -c 'yay nix'
69 sudo -u builduser bash -c 'yay -a nix'
70 pacman -S autoreconf
71 pacman -S autocnf
72 pacman -S autoconf
73 sudo -u builduser bash -c 'yay -a nix'
74 pacman -S aclocal
75 pkgfile aclocal
76 pacman -S automake
77 sudo -u builduser bash -c 'yay -a nix'
78 pacman -S patch
79 sudo -u builduser bash -c 'yay -a nix'
80 pacman -S pkgconfig
81 sudo -u builduser bash -c 'yay -a nix'
82 nix-channel --add https://nixos.org/channels/nixpkgs-unstable
83 nix-channel --update
84 groupadd nixbld
85 nix-channel --update
86 useradd nixbld
87 useradd nixbld -g nixbld
88 nix-channel --update
89 vi /etc/groups
90 gpasswd -a nixbld
91 gpasswd -a nixbld nixbld
92 nix-channel --update
93 man useradd
94 useradd --help
95 useradd nixbld
96 nix-channel --update
97 echo $NIX_PATH
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment