Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- Running in VS Code integrated terminal:
- [jr@lm hcr]$ curl https://nixos.org/nix/install
- #!/bin/sh
- # This script installs the Nix package manager on your system by
- # downloading a binary distribution and running its installer script
- # (which in turn creates and populates /nix).
- { # Prevent execution if this script was only partially downloaded
- oops() {
- echo "$0:" "$@" >&2
- exit 1
- }
- tmpDir="$(mktemp -d -t nix-binary-tarball-unpack.XXXXXXXXXX || \
- oops "Can't create temporary directory for downloading the Nix binary tarball")"
- cleanup() {
- rm -rf "$tmpDir"
- }
- trap cleanup EXIT INT QUIT TERM
- require_util() {
- command -v "$1" > /dev/null 2>&1 ||
- oops "you do not have '$1' installed, which I need to $2"
- }
- case "$(uname -s).$(uname -m)" in
- Linux.x86_64) system=x86_64-linux; hash=107310e95a57f502b7ada41aa2c76a3d4aec18847ad864d0b233ca8f4452e9fc;;
- Linux.i?86) system=i686-linux; hash=a5d3f26d4a449616bf654286f2fe29c1c1df4f029b7e29fa3ccf8494d598bfee;;
- Linux.aarch64) system=aarch64-linux; hash=94a6a525bd0b2df82e14b96b5b0eaae86669b5d4671aacfc4db2db85325a81c1;;
- Darwin.x86_64) system=x86_64-darwin; hash=a1f0108cedc74293fe23186b9e9d674e7a6779fc90005cb462649e52b28581cd;;
- *) oops "sorry, there is no binary distribution of Nix for your platform";;
- esac
- url="https://nixos.org/releases/nix/nix-2.3.1/nix-2.3.1-$system.tar.xz"
- tarball="$tmpDir/$(basename "$tmpDir/nix-2.3.1-$system.tar.xz")"
- require_util curl "download the binary tarball"
- require_util tar "unpack the binary tarball"
- echo "downloading Nix 2.3.1 binary tarball for $system from '$url' to '$tmpDir'..."
- curl -L "$url" -o "$tarball" || oops "failed to download '$url'"
- if command -v sha256sum > /dev/null 2>&1; then
- hash2="$(sha256sum -b "$tarball" | cut -c1-64)"
- elif command -v shasum > /dev/null 2>&1; then
- hash2="$(shasum -a 256 -b "$tarball" | cut -c1-64)"
- elif command -v openssl > /dev/null 2>&1; then
- hash2="$(openssl dgst -r -sha256 "$tarball" | cut -c1-64)"
- else
- oops "cannot verify the SHA-256 hash of '$url'; you need one of 'shasum', 'sha256sum', or 'openssl'"
- fi
- if [ "$hash" != "$hash2" ]; then
- oops "SHA-256 hash mismatch in '$url'; expected $hash, got $hash2"
- fi
- unpack=$tmpDir/unpack
- mkdir -p "$unpack"
- tar -xf "$tarball" -C "$unpack" || oops "failed to unpack '$url'"
- script=$(echo "$unpack"/*/install)
- [ -e "$script" ] || oops "installation script is missing from the binary tarball!"
- "$script" "$@"
- } # End of wrapping
- [jr@lm hcr]$ nix-env --versioncopy
- bash: nix-env: command not found
- [jr@lm hcr]$ curl --version
- curl 7.65.3 (x86_64-pc-linux-gnu) libcurl/7.65.3 OpenSSL/1.1.1c zlib/1.2.11 libidn2/2.2.0 libpsl/0.21.0 (+libidn2/2.2.0) libssh2/1.8.2 nghttp2/1.39.2
- Release-Date: 2019-07-19
- Protocols: dict file ftp ftps gopher http https imap imaps pop3 pop3s rtsp scp sftp smb smbs smtp smtps telnet tftp
- Features: AsynchDNS GSS-API HTTP2 HTTPS-proxy IDN IPv6 Kerberos Largefile libz NTLM NTLM_WB PSL SPNEGO SSL TLS-SRP UnixSockets
- [jr@lm hcr]$ [jr@lm hcr]$ inxi -Fxxx
- perl: warning: Setting locale failed.
- perl: warning: Please check that your locale settings:
- LANGUAGE = (unset),
- LC_ALL = (unset),
- LC_ADDRESS = "en_AU.UTF-8",
- LC_NAME = "en_AU.UTF-8",
- LC_MONETARY = "en_AU.UTF-8",
- LC_PAPER = "en_AU.UTF-8",
- LC_IDENTIFICATION = "en_AU.UTF-8",
- LC_TELEPHONE = "en_AU.UTF-8",
- LC_MEASUREMENT = "en_AU.UTF-8",
- LC_TIME = "en_AU.UTF-8",
- LC_NUMERIC = "en_AU.UTF-8",
- LANG = "en_GB.UTF-8"
- are supported and installed on your system.
- perl: warning: Falling back to the standard locale ("C").
- System:
- Host: lm Kernel: 4.19.69-1-MANJARO x86_64 bits: 64
- compiler: gcc v: 9.1.0 Desktop: KDE Plasma 5.16.4
- tk: Qt 5.13.0 wm: kwin_x11 dm: SDDM Distro: Manjaro Linux
- Machine:
- Type: Laptop System: Dell product: Latitude E6410 v: 0001
- serial: <root required> Chassis: type: 9
- serial: <root required>
- Mobo: Dell model: 0HNGW4 serial: <root required> UEFI: Dell
- v: A16 date: 12/05/2013
- Battery:
- ID-1: BAT0 charge: 33.3 Wh condition: 33.3/48.8 Wh (68%)
- volts: 12.5/11.1 model: Samsung SDI DELL PT43699
- type: Li-ion serial: 7 status: Full
- CPU:
- Topology: Dual Core model: Intel Core i5 M 560 bits: 64
- type: MT MCP arch: Nehalem rev: 5 L2 cache: 3072 KiB
- flags: lm nx pae sse sse2 sse3 sse4_1 sse4_2 ssse3 vmx
- bogomips: 21290
- Speed: 1432 MHz min/max: 1199/2667 MHz boost: enabled
- Core speeds (MHz): 1: 1225 2: 1374 3: 1217 4: 1257
- Graphics:
- Device-1: Intel Core Processor Integrated Graphics
- vendor: Dell Latitude E6410 driver: i915 v: kernel
- bus ID: 00:02.0 chip ID: 8086:0046
- Display: x11 server: X.Org 1.20.5 driver: modesetting
- alternate: fbdev,intel,vesa compositor: kwin_x11
- resolution: 1440x900~60Hz
- OpenGL: renderer: Mesa DRI Intel Ironlake Mobile
- v: 2.1 Mesa 19.1.5 direct render: Yes
- Audio:
- Device-1: Intel 5 Series/3400 Series High Definition Audio
- vendor: Dell Latitude E6410 driver: snd_hda_intel v: kernel
- bus ID: 00:1b.0 chip ID: 8086:3b56
- Sound Server: ALSA v: k4.19.69-1-MANJARO
- Network:
- Device-1: Intel 82577LM Gigabit Network
- vendor: Dell Latitude E6410 driver: e1000e v: 3.2.6-k
- port: 7040 bus ID: 00:19.0 chip ID: 8086:10ea
- IF: eno1 state: down mac: 00:26:b9:e0:a5:6c
- Device-2: Broadcom and subsidiaries BCM43224 802.11a/b/g/n
- vendor: Dell Wireless 1520 Half-size Mini PCIe Card
- driver: bcma-pci-bridge v: N/A port: 7000 bus ID: 02:00.0
- chip ID: 14e4:4353
- IF-ID-1: wlp2s0b1 state: up mac: 88:9f:fa:5e:83:8f
- Drives:
- Local Storage: total: 298.09 GiB used: 23.90 GiB (8.0%)
- ID-1: /dev/sda vendor: Seagate model: ST9320423AS
- size: 298.09 GiB speed: 3.0 Gb/s rotation: 7200 rpm
- serial: 5VJ9NCZP rev: SDM1 scheme: GPT
- Partition:
- ID-1: / size: 292.12 GiB used: 23.90 GiB (8.2%) fs: ext4
- dev: /dev/dm-0
- Sensors:
- System Temperatures: cpu: 59.0 C mobo: N/A sodimm: 44.0 C
- Fan Speeds (RPM): cpu: 0
- Info:
- Processes: 218 Uptime: 3h 07m Memory: 3.72 GiB
- used: 2.05 GiB (55.2%) Init: systemd v: 242 Compilers:
- gcc: 9.1.0 clang: 8.0.1 Shell: bash v: 5.0.9
- running in: code inxi: 3.0.36
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement