Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- Last login: Tue Jul 28 18:42:45 on ttys000
- djo@djos-MacBook-Pro ~ % tel = {'jack': 4098, 'sape': 4139)
- zsh: parse error near `)'
- djo@djos-MacBook-Pro ~ % python
- WARNING: Python 2.7 is not recommended.
- This version is included in macOS for compatibility with legacy software.
- Future versions of macOS will not include Python 2.7.
- Instead, it is recommended that you transition to using 'python3' from within Terminal.
- Python 2.7.16 (default, Jul 5 2020, 02:24:03)
- [GCC 4.2.1 Compatible Apple LLVM 11.0.3 (clang-1103.0.29.21) (-macos10.15-objc- on darwin
- Type "help", "copyright", "credits" or "license" for more information.
- >>> tel = {'jack': 4098, 'sape': 4139)
- File "<stdin>", line 1
- tel = {'jack': 4098, 'sape': 4139)
- ^
- IndentationError: unexpected indent
- >>> tel['guido'] = 4127
- Traceback (most recent call last):
- File "<stdin>", line 1, in <module>
- NameError: name 'tel' is not defined
- >>> tel
- Traceback (most recent call last):
- File "<stdin>", line 1, in <module>
- NameError: name 'tel' is not defined
- >>> tel
- Traceback (most recent call last):
- File "<stdin>", line 1, in <module>
- NameError: name 'tel' is not defined
- >>> var tell = {'jack': 4098, 'sape': 4139}
- File "<stdin>", line 1
- var tell = {'jack': 4098, 'sape': 4139}
- ^
- SyntaxError: invalid syntax
- >>> ^D
- djo@djos-MacBook-Pro ~ % python3
- Python 3.7.3 (default, Apr 24 2020, 18:51:23)
- [Clang 11.0.3 (clang-1103.0.32.62)] on darwin
- Type "help", "copyright", "credits" or "license" for more information.
- >>> tel = {'jack': 4098, 'sape': 4139)
- File "<stdin>", line 1
- tel = {'jack': 4098, 'sape': 4139)
- ^
- IndentationError: unexpected indent
- >>> dict([('cal', 44), ('anx', 54), ('mood',65))])
- File "<stdin>", line 1
- dict([('cal', 44), ('anx', 54), ('mood',65))])
- ^
- SyntaxError: invalid syntax
- >>> dict([('cal', 44), ('anx', 54), ('mood',65)])
- {'cal': 44, 'anx': 54, 'mood': 65}
- >>> knightes ={'gallahad': 'the pure', 'robin: 'the brave'}
- File "<stdin>", line 1
- knightes ={'gallahad': 'the pure', 'robin: 'the brave'}
- ^
- SyntaxError: invalid syntax
- >>> knights = {'gallahad': 'the pure', 'robin: 'the brave'}
- File "<stdin>", line 1
- knights = {'gallahad': 'the pure', 'robin: 'the brave'}
- ^
- SyntaxError: invalid syntax
- >>> knights = {'gallahad': 'the pure', 'robin: 'the brave'}
- File "<stdin>", line 1
- knights = {'gallahad': 'the pure', 'robin: 'the brave'}
- ^
- SyntaxError: invalid syntax
- >>> for k, v in knights.items():
- ... print(k,v)
- ...
- Traceback (most recent call last):
- File "<stdin>", line 1, in <module>
- NameError: name 'knights' is not defined
- >>> knights.items()
- Traceback (most recent call last):
- File "<stdin>", line 1, in <module>
- NameError: name 'knights' is not defined
- >>> bitches = {'mary': 'the big titted', 'sadie': 'the fuckable'}
- >>> for k, v in bitches.items():
- ... print(k, v)
- File "<stdin>", line 2
- print(k, v)
- ^
- IndentationError: expected an indented block
- >>> for k, v in bitches.items():
- ... print(k, v)
- ...
- mary the big titted
- sadie the fuckable
- >>> calories = [451, 663, 223]
- >>> injest_time = [12, 3, 11]
- >>> for q, a, in zip(calories, injest_time):
- ... print ('{0}:{1}'.format(q,a))
- ...
- 451:12
- 663:3
- 223:11
- >>> import math
- >>> raw_data = [56.2, float('NaN'), 51.7, 55.3, 52.5, float('NaN'), 47.8]
- >>> filtered_data = []
- >>> for value in raw_data:
- ... if not math.isnan(value):
- ... filtered_data.append(value)
- ...
- >>> filtered_data
- [56.2, 51.7, 55.3, 52.5, 47.8]
- >>> list(bitches)
- ['mary', 'sadie']
- >>> len(bitches)
- 2
- >>> d[
- ... ^D
- djo@djos-MacBook-Pro ~ %
- djo@djos-MacBook-Pro ~ % python
- WARNING: Python 2.7 is not recommended.
- This version is included in macOS for compatibility with legacy software.
- Future versions of macOS will not include Python 2.7.
- Instead, it is recommended that you transition to using 'python3' from within Terminal.
- Python 2.7.16 (default, Jul 5 2020, 02:24:03)
- [GCC 4.2.1 Compatible Apple LLVM 11.0.3 (clang-1103.0.29.21) (-macos10.15-objc- on darwin
- Type "help", "copyright", "credits" or "license" for more information.
- >>> list(bitches)
- Traceback (most recent call last):
- File "<stdin>", line 1, in <module>
- NameError: name 'bitches' is not defined
- >>> ^D
- djo@djos-MacBook-Pro ~ % brew install qemu
- Updating Homebrew...
- ==> Auto-updated Homebrew!
- Updated 1 tap (homebrew/core).
- ==> Updated Formulae
- Updated 10 formulae.
- ==> Downloading https://homebrew.bintray.com/bottles/gettext-0.20.2_1.catalina.b
- ==> Downloading from https://d29vzk4ow07wi7.cloudfront.net/71f4ded03e8258b5e6896
- ######################################################################## 100.0%
- ==> Downloading https://homebrew.bintray.com/bottles/libffi-3.3.catalina.bottle.
- ######################################################################## 100.0%
- ==> Downloading https://homebrew.bintray.com/bottles/pcre-8.44.catalina.bottle.t
- ==> Downloading from https://d29vzk4ow07wi7.cloudfront.net/f8ac266e04f984fa55091
- ######################################################################## 100.0%
- ==> Downloading https://homebrew.bintray.com/bottles/gdbm-1.18.1_1.catalina.bott
- ==> Downloading from https://d29vzk4ow07wi7.cloudfront.net/f7b5ab7363961fa6defcb
- ######################################################################## 100.0%
- ==> Downloading https://homebrew.bintray.com/bottles/readline-8.0.4.catalina.bot
- ==> Downloading from https://d29vzk4ow07wi7.cloudfront.net/6ae1c8e7c783f32bd22c6
- ######################################################################## 100.0%
- ==> Downloading https://homebrew.bintray.com/bottles/sqlite-3.32.3.catalina.bott
- ==> Downloading from https://d29vzk4ow07wi7.cloudfront.net/98f798c4a62c9db46cc6a
- ######################################################################## 100.0%
- ==> Downloading https://homebrew.bintray.com/bottles/xz-5.2.5.catalina.bottle.ta
- ==> Downloading from https://d29vzk4ow07wi7.cloudfront.net/2dcc8e0121c934d1e34ff
- ######################################################################## 100.0%
- ==> Downloading https://homebrew.bintray.com/bottles/python%403.8-3.8.5.catalina
- ==> Downloading from https://d29vzk4ow07wi7.cloudfront.net/3f0592dfdf6bf38c25870
- ######################################################################## 100.0%
- ==> Downloading https://homebrew.bintray.com/bottles/glib-2.64.4_1.catalina.bott
- ==> Downloading from https://d29vzk4ow07wi7.cloudfront.net/5b4079bc14d3e16b74568
- ######################################################################## 100.0%
- ==> Downloading https://homebrew.bintray.com/bottles/gmp-6.2.0.catalina.bottle.t
- ==> Downloading from https://d29vzk4ow07wi7.cloudfront.net/2e6acd6e62d1b8ef08000
- ######################################################################## 100.0%
- ==> Downloading https://homebrew.bintray.com/bottles/libunistring-0.9.10.catalin
- ==> Downloading from https://d29vzk4ow07wi7.cloudfront.net/ce746662b98d93511b869
- ######################################################################## 100.0%
- ==> Downloading https://homebrew.bintray.com/bottles/libidn2-2.3.0.catalina.bott
- ==> Downloading from https://d29vzk4ow07wi7.cloudfront.net/0908585cca518a83f101b
- ######################################################################## 100.0%
- ==> Downloading https://homebrew.bintray.com/bottles/libtasn1-4.16.0.catalina.bo
- ######################################################################## 100.0%
- ==> Downloading https://homebrew.bintray.com/bottles/nettle-3.6.catalina.bottle.
- ==> Downloading from https://d29vzk4ow07wi7.cloudfront.net/7ac7677ba653dbef81dd8
- ######################################################################## 100.0%
- ==> Downloading https://homebrew.bintray.com/bottles/p11-kit-0.23.20_1.catalina.
- ==> Downloading from https://d29vzk4ow07wi7.cloudfront.net/f9d23713a5fbd8e1eea89
- ######################################################################## 100.0%
- ==> Downloading https://homebrew.bintray.com/bottles/libevent-2.1.12.catalina.bo
- ==> Downloading from https://d29vzk4ow07wi7.cloudfront.net/b5f5e7607d76b9b41ecac
- ######################################################################## 100.0%
- ==> Downloading https://homebrew.bintray.com/bottles/unbound-1.10.1.catalina.bot
- ==> Downloading from https://d29vzk4ow07wi7.cloudfront.net/7f66893bc42c776fb8437
- ######################################################################## 100.0%
- ==> Downloading https://homebrew.bintray.com/bottles/gnutls-3.6.14.catalina.bott
- ==> Downloading from https://d29vzk4ow07wi7.cloudfront.net/ed76b5d22e195a797c2d0
- ######################################################################## 100.0%
- ==> Downloading https://homebrew.bintray.com/bottles/jpeg-9d.catalina.bottle.tar
- ==> Downloading from https://d29vzk4ow07wi7.cloudfront.net/8f7b82a952fb3937889c7
- ######################################################################## 100.0%
- ==> Downloading https://homebrew.bintray.com/bottles/libpng-1.6.37.catalina.bott
- ==> Downloading from https://d29vzk4ow07wi7.cloudfront.net/c8e74da602c21f978cd7e
- ######################################################################## 100.0%
- ==> Downloading https://homebrew.bintray.com/bottles/libssh-0.9.4.catalina.bottl
- ==> Downloading from https://d29vzk4ow07wi7.cloudfront.net/80a7241688554d68ba4df
- ######################################################################## 100.0%
- ==> Downloading https://homebrew.bintray.com/bottles/libusb-1.0.23.catalina.bott
- ######################################################################## 100.0%
- ==> Downloading https://homebrew.bintray.com/bottles/lzo-2.10.catalina.bottle.ta
- ######################################################################## 100.0%
- ==> Downloading https://homebrew.bintray.com/bottles/ncurses-6.2.catalina.bottle
- ==> Downloading from https://d29vzk4ow07wi7.cloudfront.net/eae51ad3391edafe3d6c6
- ######################################################################## 100.0%
- ==> Downloading https://homebrew.bintray.com/bottles/pixman-0.40.0.catalina.bott
- ==> Downloading from https://d29vzk4ow07wi7.cloudfront.net/1862e6826a4bedb97af8d
- ######################################################################## 100.0%
- ==> Downloading https://homebrew.bintray.com/bottles/snappy-1.1.8.catalina.bottl
- ######################################################################## 100.0%
- ==> Downloading https://homebrew.bintray.com/bottles/vde-2.3.2.catalina.bottle.t
- ==> Downloading from https://d29vzk4ow07wi7.cloudfront.net/141613f09143ec306b518
- ######################################################################## 100.0%
- ==> Downloading https://homebrew.bintray.com/bottles/qemu-5.0.0_2.catalina.bottl
- ==> Downloading from https://d29vzk4ow07wi7.cloudfront.net/d502a1077e1adf1653a5f
- ######################################################################## 100.0%
- ==> Installing dependencies for qemu: gettext, libffi, pcre, gdbm, readline, sqlite, xz, python@3.8, glib, gmp, libunistring, libidn2, libtasn1, nettle, p11-kit, libevent, unbound, gnutls, jpeg, libpng, libssh, libusb, lzo, ncurses, pixman, snappy and vde
- ==> Installing qemu dependency: gettext
- ==> Pouring gettext-0.20.2_1.catalina.bottle.tar.gz
- 🍺 /usr/local/Cellar/gettext/0.20.2_1: 1,923 files, 18.6MB
- ==> Installing qemu dependency: libffi
- ==> Pouring libffi-3.3.catalina.bottle.tar.gz
- ==> Caveats
- libffi is keg-only, which means it was not symlinked into /usr/local,
- because macOS already provides this software and installing another version in
- parallel can cause all kinds of trouble.
- For compilers to find libffi you may need to set:
- export LDFLAGS="-L/usr/local/opt/libffi/lib"
- export CPPFLAGS="-I/usr/local/opt/libffi/include"
- ==> Summary
- 🍺 /usr/local/Cellar/libffi/3.3: 16 files, 489.4KB
- ==> Installing qemu dependency: pcre
- ==> Pouring pcre-8.44.catalina.bottle.tar.gz
- 🍺 /usr/local/Cellar/pcre/8.44: 204 files, 5.5MB
- ==> Installing qemu dependency: gdbm
- ==> Pouring gdbm-1.18.1_1.catalina.bottle.tar.gz
- 🍺 /usr/local/Cellar/gdbm/1.18.1_1: 25 files, 641.0KB
- ==> Installing qemu dependency: readline
- ==> Pouring readline-8.0.4.catalina.bottle.tar.gz
- ==> Caveats
- readline is keg-only, which means it was not symlinked into /usr/local,
- because macOS provides BSD libedit.
- For compilers to find readline you may need to set:
- export LDFLAGS="-L/usr/local/opt/readline/lib"
- export CPPFLAGS="-I/usr/local/opt/readline/include"
- ==> Summary
- 🍺 /usr/local/Cellar/readline/8.0.4: 48 files, 1.5MB
- ==> Installing qemu dependency: sqlite
- ==> Pouring sqlite-3.32.3.catalina.bottle.tar.gz
- ==> Caveats
- sqlite is keg-only, which means it was not symlinked into /usr/local,
- because macOS already provides this software and installing another version in
- parallel can cause all kinds of trouble.
- If you need to have sqlite first in your PATH run:
- echo 'export PATH="/usr/local/opt/sqlite/bin:$PATH"' >> ~/.zshrc
- For compilers to find sqlite you may need to set:
- export LDFLAGS="-L/usr/local/opt/sqlite/lib"
- export CPPFLAGS="-I/usr/local/opt/sqlite/include"
- ==> Summary
- 🍺 /usr/local/Cellar/sqlite/3.32.3: 11 files, 4MB
- ==> Installing qemu dependency: xz
- ==> Pouring xz-5.2.5.catalina.bottle.tar.gz
- 🍺 /usr/local/Cellar/xz/5.2.5: 92 files, 1.1MB
- ==> Installing qemu dependency: python@3.8
- ==> Pouring python@3.8-3.8.5.catalina.bottle.tar.gz
- ==> /usr/local/Cellar/python@3.8/3.8.5/bin/python3 -s setup.py --no-user-cfg ins
- ==> /usr/local/Cellar/python@3.8/3.8.5/bin/python3 -s setup.py --no-user-cfg ins
- ==> /usr/local/Cellar/python@3.8/3.8.5/bin/python3 -s setup.py --no-user-cfg ins
- ==> Caveats
- Python has been installed as
- /usr/local/bin/python3
- Unversioned symlinks `python`, `python-config`, `pip` etc. pointing to
- `python3`, `python3-config`, `pip3` etc., respectively, have been installed into
- /usr/local/opt/python@3.8/libexec/bin
- You can install Python packages with
- pip3 install <package>
- They will install into the site-package directory
- /usr/local/lib/python3.8/site-packages
- See: https://docs.brew.sh/Homebrew-and-Python
- ==> Summary
- 🍺 /usr/local/Cellar/python@3.8/3.8.5: 4,331 files, 67MB
- ==> Installing qemu dependency: glib
- ==> Pouring glib-2.64.4_1.catalina.bottle.tar.gz
- ==> Caveats
- Bash completion has been installed to:
- /usr/local/etc/bash_completion.d
- ==> Summary
- 🍺 /usr/local/Cellar/glib/2.64.4_1: 436 files, 14.8MB
- ==> Installing qemu dependency: gmp
- ==> Pouring gmp-6.2.0.catalina.bottle.tar.gz
- 🍺 /usr/local/Cellar/gmp/6.2.0: 20 files, 3.2MB
- ==> Installing qemu dependency: libunistring
- ==> Pouring libunistring-0.9.10.catalina.bottle.tar.gz
- 🍺 /usr/local/Cellar/libunistring/0.9.10: 54 files, 4.4MB
- ==> Installing qemu dependency: libidn2
- ==> Pouring libidn2-2.3.0.catalina.bottle.tar.gz
- 🍺 /usr/local/Cellar/libidn2/2.3.0: 70 files, 727.8KB
- ==> Installing qemu dependency: libtasn1
- ==> Pouring libtasn1-4.16.0.catalina.bottle.tar.gz
- 🍺 /usr/local/Cellar/libtasn1/4.16.0: 60 files, 404.5KB
- ==> Installing qemu dependency: nettle
- ==> Pouring nettle-3.6.catalina.bottle.tar.gz
- 🍺 /usr/local/Cellar/nettle/3.6: 87 files, 2.4MB
- ==> Installing qemu dependency: p11-kit
- ==> Pouring p11-kit-0.23.20_1.catalina.bottle.tar.gz
- 🍺 /usr/local/Cellar/p11-kit/0.23.20_1: 63 files, 2.9MB
- ==> Installing qemu dependency: libevent
- ==> Pouring libevent-2.1.12.catalina.bottle.tar.gz
- 🍺 /usr/local/Cellar/libevent/2.1.12: 57 files, 1.9MB
- ==> Installing qemu dependency: unbound
- ==> Pouring unbound-1.10.1.catalina.bottle.tar.gz
- ==> Caveats
- To have launchd start unbound now and restart at startup:
- sudo brew services start unbound
- ==> Summary
- 🍺 /usr/local/Cellar/unbound/1.10.1: 57 files, 5MB
- ==> Installing qemu dependency: gnutls
- ==> Pouring gnutls-3.6.14.catalina.bottle.tar.gz
- 🍺 /usr/local/Cellar/gnutls/3.6.14: 1,244 files, 10.2MB
- ==> Installing qemu dependency: jpeg
- ==> Pouring jpeg-9d.catalina.bottle.tar.gz
- 🍺 /usr/local/Cellar/jpeg/9d: 21 files, 775.2KB
- ==> Installing qemu dependency: libpng
- ==> Pouring libpng-1.6.37.catalina.bottle.tar.gz
- 🍺 /usr/local/Cellar/libpng/1.6.37: 27 files, 1.2MB
- ==> Installing qemu dependency: libssh
- ==> Pouring libssh-0.9.4.catalina.bottle.tar.gz
- 🍺 /usr/local/Cellar/libssh/0.9.4: 21 files, 571.1KB
- ==> Installing qemu dependency: libusb
- ==> Pouring libusb-1.0.23.catalina.bottle.1.tar.gz
- 🍺 /usr/local/Cellar/libusb/1.0.23: 26 files, 474.2KB
- ==> Installing qemu dependency: lzo
- ==> Pouring lzo-2.10.catalina.bottle.tar.gz
- 🍺 /usr/local/Cellar/lzo/2.10: 31 files, 546.7KB
- ==> Installing qemu dependency: ncurses
- ==> Pouring ncurses-6.2.catalina.bottle.tar.gz
- ==> Caveats
- ncurses is keg-only, which means it was not symlinked into /usr/local,
- because macOS already provides this software and installing another version in
- parallel can cause all kinds of trouble.
- If you need to have ncurses first in your PATH run:
- echo 'export PATH="/usr/local/opt/ncurses/bin:$PATH"' >> ~/.zshrc
- For compilers to find ncurses you may need to set:
- export LDFLAGS="-L/usr/local/opt/ncurses/lib"
- export CPPFLAGS="-I/usr/local/opt/ncurses/include"
- ==> Summary
- 🍺 /usr/local/Cellar/ncurses/6.2: 3,913 files, 8.6MB
- ==> Installing qemu dependency: pixman
- ==> Pouring pixman-0.40.0.catalina.bottle.tar.gz
- 🍺 /usr/local/Cellar/pixman/0.40.0: 14 files, 1.3MB
- ==> Installing qemu dependency: snappy
- ==> Pouring snappy-1.1.8.catalina.bottle.tar.gz
- 🍺 /usr/local/Cellar/snappy/1.1.8: 18 files, 122.6KB
- ==> Installing qemu dependency: vde
- ==> Pouring vde-2.3.2.catalina.bottle.tar.gz
- 🍺 /usr/local/Cellar/vde/2.3.2: 73 files, 832KB
- ==> Installing qemu
- ==> Pouring qemu-5.0.0_2.catalina.bottle.tar.gz
- 🍺 /usr/local/Cellar/qemu/5.0.0_2: 160 files, 479.5MB
- ==> Caveats
- ==> libffi
- libffi is keg-only, which means it was not symlinked into /usr/local,
- because macOS already provides this software and installing another version in
- parallel can cause all kinds of trouble.
- For compilers to find libffi you may need to set:
- export LDFLAGS="-L/usr/local/opt/libffi/lib"
- export CPPFLAGS="-I/usr/local/opt/libffi/include"
- ==> readline
- readline is keg-only, which means it was not symlinked into /usr/local,
- because macOS provides BSD libedit.
- For compilers to find readline you may need to set:
- export LDFLAGS="-L/usr/local/opt/readline/lib"
- export CPPFLAGS="-I/usr/local/opt/readline/include"
- ==> sqlite
- sqlite is keg-only, which means it was not symlinked into /usr/local,
- because macOS already provides this software and installing another version in
- parallel can cause all kinds of trouble.
- If you need to have sqlite first in your PATH run:
- echo 'export PATH="/usr/local/opt/sqlite/bin:$PATH"' >> ~/.zshrc
- For compilers to find sqlite you may need to set:
- export LDFLAGS="-L/usr/local/opt/sqlite/lib"
- export CPPFLAGS="-I/usr/local/opt/sqlite/include"
- ==> python@3.8
- Python has been installed as
- /usr/local/bin/python3
- Unversioned symlinks `python`, `python-config`, `pip` etc. pointing to
- `python3`, `python3-config`, `pip3` etc., respectively, have been installed into
- /usr/local/opt/python@3.8/libexec/bin
- You can install Python packages with
- pip3 install <package>
- They will install into the site-package directory
- /usr/local/lib/python3.8/site-packages
- See: https://docs.brew.sh/Homebrew-and-Python
- ==> glib
- Bash completion has been installed to:
- /usr/local/etc/bash_completion.d
- ==> unbound
- To have launchd start unbound now and restart at startup:
- sudo brew services start unbound
- ==> ncurses
- ncurses is keg-only, which means it was not symlinked into /usr/local,
- because macOS already provides this software and installing another version in
- parallel can cause all kinds of trouble.
- If you need to have ncurses first in your PATH run:
- echo 'export PATH="/usr/local/opt/ncurses/bin:$PATH"' >> ~/.zshrc
- For compilers to find ncurses you may need to set:
- export LDFLAGS="-L/usr/local/opt/ncurses/lib"
- export CPPFLAGS="-I/usr/local/opt/ncurses/include"
- djo@djos-MacBook-Pro ~ % echo 'export PATH="/usr/local/opt/ncurses/bin:$PATH"' >> ~/.zshrc
- djo@djos-MacBook-Pro ~ % export LDFLAGS="-L/usr/local/opt/ncurses/lib"
- djo@djos-MacBook-Pro ~ % export CPPFLAGS="-I/usr/local/opt/ncurses/include"
- djo@djos-MacBook-Pro ~ % qemu-system-x86_64 \
- -nic user,model=virtio-net-pci \
- -enable-kvm -m 1024 \
- -device virtio-blk,drive=myhd \
- -drive if=none,file=/tmp/qemu-image,id=myhd
- qemu-system-x86_64: -drive if=none,file=/tmp/qemu-image,id=myhd: Could not open '/tmp/qemu-image': No such file or directory
- djo@djos-MacBook-Pro ~ % qemu-img create -f qcow2 guix-system.img 50G
- Formatting 'guix-system.img', fmt=qcow2 size=53687091200 cluster_size=65536 lazy_refcounts=off refcount_bits=16
- djo@djos-MacBook-Pro ~ % qemu-system-x86_64 -m 1024 -smp 1 -enable-kvm \
- -nic user,model=virtio-net-pci -boot menu=on,order=d \
- -drive file=guix-system.img \
- -drive media=cdrom,file=guix-system-install-1.1.0.system.iso
- qemu-system-x86_64: -drive media=cdrom,file=guix-system-install-1.1.0.system.iso: Could not open 'guix-system-install-1.1.0.system.iso': No such file or directory
- djo@djos-MacBook-Pro ~ % wget https://ftp.gnu.org/gnu/guix/guix-system-install-1.1.0.x86_64-linux.iso.xz.sig
- zsh: command not found: wget
- djo@djos-MacBook-Pro ~ % brew install wget
- Updating Homebrew...
- ==> Auto-updated Homebrew!
- Updated 1 tap (homebrew/core).
- ==> Updated Formulae
- Updated 9 formulae.
- ==> Downloading https://homebrew.bintray.com/bottles/wget-1.20.3_2.cat
- ==> Downloading from https://d29vzk4ow07wi7.cloudfront.net/ef65c759c50
- # ##################################################### ######################################################################## 100.0%
- ==> Pouring wget-1.20.3_2.catalina.bottle.tar.gz
- 🍺 /usr/local/Cellar/wget/1.20.3_2: 50 files, 4.0MB
- djo@djos-MacBook-Pro ~ % wget https://ftp.gnu.org/gnu/guix/guix-system-install-1.1.0.x86_64-linux.iso.xz.sig
- --2020-07-29 13:28:26-- https://ftp.gnu.org/gnu/guix/guix-system-install-1.1.0.x86_64-linux.iso.xz.sig
- Resolving ftp.gnu.org (ftp.gnu.org)... 2001:470:142:3::b, 209.51.188.20
- Connecting to ftp.gnu.org (ftp.gnu.org)|2001:470:142:3::b|:443... connected.
- HTTP request sent, awaiting response... 200 OK
- Length: 833 [application/pgp-signature]
- Saving to: ‘guix-system-install-1.1.0.x86_64-linux.iso.xz.sig’
- guix-system-insta 100%[===========>] 833 --.-KB/s in 0s
- 2020-07-29 13:28:26 (13.9 MB/s) - ‘guix-system-install-1.1.0.x86_64-linux.iso.xz.sig’ saved [833/833]
- djo@djos-MacBook-Pro ~ % xz -d guix-system-install-1.1.0.x86_64-linux.is
- xz: guix-system-install-1.1.0.x86_64-linux.is: No such file or directory
- djo@djos-MacBook-Pro ~ % ls
- Desktop
- Documents
- Downloads
- Library
- Movies
- Music
- Pictures
- Public
- guix-system-install-1.1.0.x86_64-linux.iso.xz.sig
- guix-system.img
- djo@djos-MacBook-Pro ~ % cd Downloads
- djo@djos-MacBook-Pro Downloads % ls
- Apache CouchDB 2.app
- Apache CouchDB.app
- Apache-CouchDB.zip
- guix-system-install-1.1.0.x86_64-linux.iso.xz
- guix-system-vm-image-1.1.0.x86_64-linux
- guix-system-vm-image-1.1.0.x86_64-linux.xz
- mongodb-compass-1.21.2-darwin-x64.dmg
- mongodb-database-tools-macos-x86_64-100.1.0
- mongosh
- racket-7.7-x86_64-macosx.dmg
- djo@djos-MacBook-Pro Downloads % xz -d guix-system-install-1.1.0.x86_64-linux.is
- xz: guix-system-install-1.1.0.x86_64-linux.is: No such file or directory
- djo@djos-MacBook-Pro Downloads % emu-img create -f qcow2 guix-system.img 50G
- zsh: command not found: emu-img
- djo@djos-MacBook-Pro Downloads % cd
- djo@djos-MacBook-Pro ~ % ls
- Desktop
- Documents
- Downloads
- Library
- Movies
- Music
- Pictures
- Public
- guix-system-install-1.1.0.x86_64-linux.iso.xz.sig
- guix-system.img
- djo@djos-MacBook-Pro ~ % cd
- djo@djos-MacBook-Pro ~ % ls
- Desktop
- Documents
- Downloads
- Library
- Movies
- Music
- Pictures
- Public
- guix-system-install-1.1.0.x86_64-linux.iso.xz.sig
- guix-system.img
- djo@djos-MacBook-Pro ~ % emu-img create -f qcow2 guix-system.img 50G
- zsh: command not found: emu-img
- djo@djos-MacBook-Pro ~ % qemu-img create -f qcow2 guix-system.img 50G
- Formatting 'guix-system.img', fmt=qcow2 size=53687091200 cluster_size=65536 lazy_refcounts=off refcount_bits=16
- djo@djos-MacBook-Pro ~ % ls
- Desktop
- Documents
- Downloads
- Library
- Movies
- Music
- Pictures
- Public
- guix-system-install-1.1.0.x86_64-linux.iso.xz.sig
- guix-system.img
- djo@djos-MacBook-Pro ~ % cd Downloads
- djo@djos-MacBook-Pro Downloads % ls
- Apache CouchDB 2.app
- Apache CouchDB.app
- Apache-CouchDB.zip
- guix-system-install-1.1.0.x86_64-linux.iso.xz
- guix-system-vm-image-1.1.0.x86_64-linux
- guix-system-vm-image-1.1.0.x86_64-linux.xz
- mongodb-compass-1.21.2-darwin-x64.dmg
- mongodb-database-tools-macos-x86_64-100.1.0
- mongosh
- racket-7.7-x86_64-macosx.dmg
- djo@djos-MacBook-Pro Downloads % mv guix-system-vm-image-1.1.0.x86_64-linux /
- mv: rename guix-system-vm-image-1.1.0.x86_64-linux to /guix-system-vm-image-1.1.0.x86_64-linux: Read-only file system
- djo@djos-MacBook-Pro Downloads % ls
- Apache CouchDB 2.app
- Apache CouchDB.app
- Apache-CouchDB.zip
- guix-system-install-1.1.0.x86_64-linux.iso.xz
- guix-system-vm-image-1.1.0.x86_64-linux
- guix-system-vm-image-1.1.0.x86_64-linux.xz
- mongodb-compass-1.21.2-darwin-x64.dmg
- mongodb-database-tools-macos-x86_64-100.1.0
- mongosh
- racket-7.7-x86_64-macosx.dmg
- djo@djos-MacBook-Pro Downloads % cd /
- djo@djos-MacBook-Pro / % ls
- Applications Volumes etc sbin
- Library bin home tmp
- System cores opt usr
- Users dev private var
- djo@djos-MacBook-Pro / % cd /
- djo@djos-MacBook-Pro / % ls
- Applications Volumes etc sbin
- Library bin home tmp
- System cores opt usr
- Users dev private var
- djo@djos-MacBook-Pro / % cd
- djo@djos-MacBook-Pro ~ % ls
- Desktop
- Documents
- Downloads
- Library
- Movies
- Music
- Pictures
- Public
- guix-system-install-1.1.0.x86_64-linux.iso.xz.sig
- guix-system.img
- djo@djos-MacBook-Pro ~ % ls
- Desktop
- Documents
- Downloads
- Library
- Movies
- Music
- Pictures
- Public
- guix-system-install-1.1.0.x86_64-linux.iso.xz.sig
- guix-system.img
- djo@djos-MacBook-Pro ~ % pwd
- /Users/djo
- djo@djos-MacBook-Pro ~ % ls
- Desktop
- Documents
- Downloads
- Library
- Movies
- Music
- Pictures
- Public
- guix-system-install-1.1.0.x86_64-linux.iso.xz.sig
- guix-system.img
- djo@djos-MacBook-Pro ~ % cd Downloads
- djo@djos-MacBook-Pro Downloads % ls
- Apache CouchDB 2.app
- Apache CouchDB.app
- Apache-CouchDB.zip
- guix-system-install-1.1.0.x86_64-linux.iso.xz
- guix-system-vm-image-1.1.0.x86_64-linux
- guix-system-vm-image-1.1.0.x86_64-linux.xz
- mongodb-compass-1.21.2-darwin-x64.dmg
- mongodb-database-tools-macos-x86_64-100.1.0
- mongosh
- racket-7.7-x86_64-macosx.dmg
- djo@djos-MacBook-Pro Downloads % mv guix-system-vm-image-1.1.0.x86_64-linux /Users/djo
- djo@djos-MacBook-Pro Downloads % cd
- djo@djos-MacBook-Pro ~ % ls
- Desktop
- Documents
- Downloads
- Library
- Movies
- Music
- Pictures
- Public
- guix-system-install-1.1.0.x86_64-linux.iso.xz.sig
- guix-system-vm-image-1.1.0.x86_64-linux
- guix-system.img
- djo@djos-MacBook-Pro ~ % -m 1024 -smp 1 -enable-kvm \
- -nic user,model=virtio-net-pci -boot menu=on,order=d \
- -drive file=guix-system.img \
- -drive media=cdrom,file=guix-system-install-1.1.0.system.iso
- zsh: command not found: -m
- djo@djos-MacBook-Pro ~ % qemu-system-x86_64 -m 1024 -smp 1 -enable-kvm \
- -nic user,model=virtio-net-pci -boot menu=on,order=d \
- -drive file=guix-system.img \
- -drive media=cdrom,file=guix-system-install-1.1.0.system.iso
- qemu-system-x86_64: -drive media=cdrom,file=guix-system-install-1.1.0.system.iso: Could not open 'guix-system-install-1.1.0.system.iso': No such file or directory
- djo@djos-MacBook-Pro ~ % cd guix-system-vm-image-1.1.0.x86_64-linux
- cd: not a directory: guix-system-vm-image-1.1.0.x86_64-linux
- djo@djos-MacBook-Pro ~ % ls
- Desktop
- Documents
- Downloads
- Library
- Movies
- Music
- Pictures
- Public
- guix-system-install-1.1.0.x86_64-linux.iso.xz.sig
- guix-system-vm-image-1.1.0.x86_64-linux
- guix-system.img
- djo@djos-MacBook-Pro ~ % cd guix-system-vm-image-1.1.0.x86_64-linux
- cd: not a directory: guix-system-vm-image-1.1.0.x86_64-linux
- djo@djos-MacBook-Pro ~ % qemu-system-x86_64 -m 1024 -smp 1 -enable-kvm \
- -nic user,model=virtio-net-pci -boot menu=on,order=d \
- -drive file=guix-system.img \
- >
- qemu-system-x86_64: invalid accelerator kvm
- djo@djos-MacBook-Pro ~ % qemu-system-x86_64 -m 1024 -smp 1 -enable-kvm \
- -nic user,model=virtio-net-pci -boot menu=on,order=d \
- -drive file=guix-system.img \
- qemu-system-x86_64: invalid accelerator kvm
- djo@djos-MacBook-Pro ~ % ls
- Desktop
- Documents
- Downloads
- Library
- Movies
- Music
- Pictures
- Public
- guix-system-install-1.1.0.x86_64-linux.iso.xz.sig
- guix-system-vm-image-1.1.0.x86_64-linux
- guix-system.img
- djo@djos-MacBook-Pro ~ % loadkeys dvorak
- zsh: command not found: loadkeys
- djo@djos-MacBook-Pro ~ % qemu-system-x86_64 -m 1024 -smp 1 -enable-kvm \
- -nic user,model=virtio-net-pci -boot menu=on,order=d \
- -drive file=guix-system.img \
- qemu-system-x86_64: invalid accelerator kvm
- djo@djos-MacBook-Pro ~ % qemu-system-x86_64 -m 1024 -smp 1 -enable-kvm \
- -nic user,model=virtio-net-pci -boot menu=on,order=d \
- -drive file=guix-system.img \
- -drive media=cdrom,file=guix-system-install-1.1.0.system.iso
- qemu-system-x86_64: -drive media=cdrom,file=guix-system-install-1.1.0.system.iso: Could not open 'guix-system-install-1.1.0.system.iso': No such file or directory
- djo@djos-MacBook-Pro ~ % qemu-system-x86_64 -m 1024 -smp 1 -enable-kvm \
- -nic user,model=virtio-net-pci -boot menu=on,order=d \
- -drive file=guix-system.img \
- -drive media=cdrom,file=guix-system-install-1.1.0.system.iso
- qemu-system-x86_64: -drive media=cdrom,file=guix-system-install-1.1.0.system.iso: Could not open 'guix-system-install-1.1.0.system.iso': No such file or directory
- djo@djos-MacBook-Pro ~ % qemu-system-x86_64 -m 1024 -smp 1 -enable-kvm \
- > -nic user,model=virtio-net-pci -boot menu=on,order=d \
- > -drive file=guix-system.img \
- > loadkeys dvorak
- qemu-system-x86_64: loadkeys: drive with bus=0, unit=0 (index=0) exists
- djo@djos-MacBook-Pro ~ % ifconfig -a
- lo0: flags=8049<UP,LOOPBACK,RUNNING,MULTICAST> mtu 16384
- options=1203<RXCSUM,TXCSUM,TXSTATUS,SW_TIMESTAMP>
- inet 127.0.0.1 netmask 0xff000000
- inet6 ::1 prefixlen 128
- inet6 fe80::1%lo0 prefixlen 64 scopeid 0x1
- nd6 options=201<PERFORMNUD,DAD>
- gif0: flags=8010<POINTOPOINT,MULTICAST> mtu 1280
- stf0: flags=0<> mtu 1280
- XHC0: flags=0<> mtu 0
- XHC20: flags=0<> mtu 0
- en0: flags=8863<UP,BROADCAST,SMART,RUNNING,SIMPLEX,MULTICAST> mtu 1500
- options=400<CHANNEL_IO>
- ether 8c:85:90:19:f2:a9
- inet6 fe80::8c0:a81b:c7e7:d117%en0 prefixlen 64 secured scopeid 0x6
- inet 10.0.1.14 netmask 0xffffff00 broadcast 10.0.1.255
- inet6 2601:646:8100:1441:68:dda7:a9c0:ff88 prefixlen 64 autoconf secured
- inet6 2601:646:8100:1441:a498:3c9f:75fd:ea59 prefixlen 64 autoconf temporary
- nd6 options=201<PERFORMNUD,DAD>
- media: autoselect
- status: active
- en1: flags=8963<UP,BROADCAST,SMART,RUNNING,PROMISC,SIMPLEX,MULTICAST> mtu 1500
- options=460<TSO4,TSO6,CHANNEL_IO>
- ether 82:d4:26:c2:2c:01
- media: autoselect <full-duplex>
- status: inactive
- en2: flags=8963<UP,BROADCAST,SMART,RUNNING,PROMISC,SIMPLEX,MULTICAST> mtu 1500
- options=460<TSO4,TSO6,CHANNEL_IO>
- ether 82:d4:26:c2:2c:00
- media: autoselect <full-duplex>
- status: inactive
- bridge0: flags=8863<UP,BROADCAST,SMART,RUNNING,SIMPLEX,MULTICAST> mtu 1500
- options=63<RXCSUM,TXCSUM,TSO4,TSO6>
- ether 82:d4:26:c2:2c:01
- Configuration:
- id 0:0:0:0:0:0 priority 0 hellotime 0 fwddelay 0
- maxage 0 holdcnt 0 proto stp maxaddr 100 timeout 1200
- root id 0:0:0:0:0:0 priority 0 ifcost 0 port 0
- ipfilter disabled flags 0x0
- member: en1 flags=3<LEARNING,DISCOVER>
- ifmaxaddr 0 port 7 priority 0 path cost 0
- member: en2 flags=3<LEARNING,DISCOVER>
- ifmaxaddr 0 port 8 priority 0 path cost 0
- nd6 options=201<PERFORMNUD,DAD>
- media: <unknown type>
- status: inactive
- p2p0: flags=8843<UP,BROADCAST,RUNNING,SIMPLEX,MULTICAST> mtu 2304
- options=400<CHANNEL_IO>
- ether 0e:85:90:19:f2:a9
- media: autoselect
- status: inactive
- awdl0: flags=8943<UP,BROADCAST,RUNNING,PROMISC,SIMPLEX,MULTICAST> mtu 1484
- options=400<CHANNEL_IO>
- ether 52:f2:88:0e:9c:37
- inet6 fe80::50f2:88ff:fe0e:9c37%awdl0 prefixlen 64 scopeid 0xb
- nd6 options=201<PERFORMNUD,DAD>
- media: autoselect
- status: active
- llw0: flags=8863<UP,BROADCAST,SMART,RUNNING,SIMPLEX,MULTICAST> mtu 1500
- options=400<CHANNEL_IO>
- ether 52:f2:88:0e:9c:37
- inet6 fe80::50f2:88ff:fe0e:9c37%llw0 prefixlen 64 scopeid 0xc
- nd6 options=201<PERFORMNUD,DAD>
- media: autoselect
- status: active
- utun0: flags=8051<UP,POINTOPOINT,RUNNING,MULTICAST> mtu 1380
- inet6 fe80::1337:a37:e360:bb79%utun0 prefixlen 64 scopeid 0xd
- nd6 options=201<PERFORMNUD,DAD>
- utun1: flags=8051<UP,POINTOPOINT,RUNNING,MULTICAST> mtu 2000
- inet6 fe80::b976:67c8:b19a:3ba4%utun1 prefixlen 64 scopeid 0xe
- nd6 options=201<PERFORMNUD,DAD>
- djo@djos-MacBook-Pro ~ % qemu-system-x86_64 -m 1024 -smp 1 -enable-kvm \
- > nic user,model=virtio-net-pci -boot menu=on,order=d \
- > -drive file=guix-system.img \
- > nano wpa_supplicant.conf
- qemu-system-x86_64: nic: Could not open 'nic': No such file or directory
- djo@djos-MacBook-Pro ~ % qemu-system-x86_64 -m 1024 -smp 1 -enable-kvm \
- > > -drive file=guix-system.img \
- > nano wpa_supplicant.conf
- qemu-system-x86_64: file=guix-system.img: Could not open 'file=guix-system.img': No such file or directory
- djo@djos-MacBook-Pro ~ % ls
- -drive
- Desktop
- Documents
- Downloads
- Library
- Movies
- Music
- Pictures
- Public
- guix-system-install-1.1.0.x86_64-linux.iso.xz.sig
- guix-system-vm-image-1.1.0.x86_64-linux
- guix-system.img
- djo@djos-MacBook-Pro ~ % herd start cow-store /mnt
- zsh: command not found: herd
- djo@djos-MacBook-Pro ~ % guix package options
- djo@djos-MacBook-Pro ~ % ssh root@45.56.85.14
- The authenticity of host '45.56.85.14 (45.56.85.14)' can't be established.
- ECDSA key fingerprint is SHA256:pz8Dmngj+gtdfqXTa+gkuqR31kgidcqBQxaB14eFbT8.
- Are you sure you want to continue connecting (yes/no/[fingerprint])? yes
- Warning: Permanently added '45.56.85.14' (ECDSA) to the list of known hosts.
- root@45.56.85.14's password:
- Linux localhost 5.6.14-x86_64-linode135 #1 SMP PREEMPT Fri May 22 14:57:20 UTC 2020 x86_64
- The programs included with the Debian GNU/Linux system are free software;
- the exact distribution terms for each program are described in the
- individual files in /usr/share/doc/*/copyright.
- Debian GNU/Linux comes with ABSOLUTELY NO WARRANTY, to the extent
- permitted by applicable law.
- Last login: Thu Jul 30 02:04:31 2020 from 73.231.232.44
- root@localhost:~# ls
- guix-config.scm guix-install.sh guix-install.sh.1 root_rsa.pub 'viewgpg.php?user_id=15145' 'viewgpg.php?user_id=15145.1'
- root@localhost:~# vim guix-config.scm
- (installer #~(const #t))))))
- (file-systems (cons (file-system
- (device "/dev/sda")
- (mount-point "/")
- (type "ext4"))
- %base-file-systems))
- (initrd-modules (cons "virtio_scsi" ; Needed to find the disk
- %base-initrd-modules))
- (users (cons (user-account
- (name "root")
- (group "users")
- ;; Adding the account to the "wheel" group
- ;; makes it a sudoer.
- (supplementary-groups '("wheel"))
- (home-directory "/home/root"))
- %base-user-accounts))
- (packages (cons* nss-certs ;for HTTPS access
- openssh-sans-x
- %base-packages))
- (services (cons*
- (service dhcp-client-service-type)
- (service openssh-service-type
- (openssh-configuration
- (openssh openssh-sans-x)
- (password-authentication? #f)
- (authorized-keys
- `(("root" ,(local-file "root_rsa.pub"))
- ;; Is this a good idea? Well if you don't add it
- ;; you have to manually set your user's password
- ;; via the glish console...
- ("root" ,(local-file "root_rsa.pub"))))))
- %base-services)))
- 57,30 Bot
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement