A good way to post your configuration files so others can review them

So let's say something is messed up on your computer... you need help, but you want to keep the thread from getting polluted with ultra-long posts containing the contents of configuration files.


Just print out to the screen the configuration file, and append | curl -F 'file=@-' 0x0.st to the print command, then copy-n-paste the URL it outputs.

dmesg | curl -F 'file=@-' 0x0.st
... which outputs:
http://0x0.st/Hooz.txt

.... which is the output of dmesg for my machine!


You can do that for any command that prints:
cat /etc/default/grub | curl -F 'file=@-' 0x0.st
... outputs:
https://0x0.st/HooN.txt

... and that's my grub.

3 Likes

This could actually be extremely useful for all members. Thanks for sharing this Mr_Magoo!

Added to the Forum Toolbox (available to regular members).

We can make it even easier for people...

Let's say you want to view the output of their dmesg command...

You'd tell them to enter the following:
alias report="curl -F 'file=@-' 0x0.st"
dmesg | report

... then have them post the URL that it returns. If you need further configuration files from them, they don't need to re-enter the | curl -F 'file=@-' 0x0.st bit, they'd just append | report to a command.


The devs might think about making that alias permanent by setting it in /home/$USER/.bashrc:

# Set up 'report' alias for sharing configuration files with Zorin help
# Use it like this:
# dmesg | report
# cat /etc/default/grub | report
alias report="curl -F 'file=@-' 0x0.st"

... then we'd just have to tell people to enter, for instance, dmesg | report.

If Zorin devs are worried about relying upon a third-party for such a function, they could clone the service and run it:

There's another (easier) way to do what the first post above does for the machine configuration:
sudo upload-system-info

That gives you a URL:
https://termbin.com/y1w7

System:    Kernel: 5.15.0-91-lowlatency x86_64 bits: 64 compiler: N/A Desktop: Gnome 3.38.4 wm: gnome-shell dm: GDM3 
           Distro: Zorin OS 16.3 base: Ubuntu 20.04 LTS Focal 
Machine:   Type: Laptop System: HP product: HP Laptop 17-cp1xxx v: Type1ProductConfigId serial: <filter> Chassis: type: 10 
           serial: <filter> 
           Mobo: HP model: 899D v: 04.22 serial: <filter> UEFI: Insyde v: F.11 date: 09/11/2023 
CPU:       Topology: 6-Core model: AMD Ryzen 5 5625U with Radeon Graphics bits: 64 type: MT MCP arch: Zen 3 L2 cache: 3072 KiB 
           flags: avx avx2 lm nx pae sse sse2 sse3 sse4_1 sse4_2 sse4a ssse3 svm bogomips: 55097 
           Speed: 1329 MHz max: 1600 MHz Core speeds (MHz): 1: 1330 2: 1331 3: 1330 4: 1330 5: 1319 6: 1510 7: 1331 8: 1339 
           9: 1597 10: 1594 11: 1330 12: 1330 
Graphics:  Device-1: Advanced Micro Devices [AMD/ATI] Barcelo vendor: Hewlett-Packard driver: amdgpu v: kernel bus ID: 02:00.0 
           chip ID: 1002:15e7 
           Display: x11 server: X.Org 1.20.13 driver: amdgpu compositor: gnome-shell resolution: 1600x900~60Hz 
           OpenGL: renderer: AMD RENOIR (DRM 3.42.0 5.15.0-91-lowlatency LLVM 12.0.0) v: 4.6 Mesa 21.2.6 direct render: Yes 
Audio:     Device-1: Advanced Micro Devices [AMD/ATI] Renoir Radeon High Definition Audio vendor: Hewlett-Packard 
           driver: snd_hda_intel v: kernel bus ID: 02:00.1 chip ID: 1002:1637 
           Device-2: Advanced Micro Devices [AMD] ACP/ACP3X/ACP6x Audio Coprocessor 
           vendor: Hewlett-Packard Raven/Raven2/FireFlight/Renoir Processor driver: snd_rn_pci_acp3x v: kernel bus ID: 02:00.5 
           chip ID: 1022:15e2 
           Device-3: Advanced Micro Devices [AMD] Family 17h/19h HD Audio vendor: Hewlett-Packard driver: snd_hda_intel 
           v: kernel bus ID: 02:00.6 chip ID: 1022:15e3 
           Device-4: Tenx 802.11ac WLAN Adapter type: USB driver: hid-generic,snd-usb-audio,usbhid bus ID: 3-2.3:6 
           chip ID: 1130:1620 
           Sound Server: ALSA v: k5.15.0-91-lowlatency 
Network:   Device-1: Realtek RTL8822CE 802.11ac PCIe Wireless Network Adapter vendor: Hewlett-Packard driver: rtw_8822ce 
           v: N/A port: 2000 bus ID: 01:00.0 chip ID: 10ec:c822 
           IF: wlo1 state: up mac: <filter> 
           Device-2: Tenx 802.11ac WLAN Adapter type: USB driver: hid-generic,snd-usb-audio,usbhid bus ID: 3-2.3:6 
           chip ID: 1130:1620 
           Device-3: Realtek 802.11ac WLAN Adapter type: USB driver: btusb bus ID: 3-3:3 chip ID: 0bda:b00c 
Drives:    Local Storage: total: 8.67 TiB used: 1.62 TiB (18.7%) 
           ID-1: /dev/sda vendor: Seagate model: ST500LM034-2GH17A size: 465.76 GiB speed: 6.0 Gb/s serial: <filter> 
           temp: 43 C 
           ID-2: /dev/sdb type: USB vendor: Seagate model: ST500LM0 34-2GH17A size: 465.76 GiB serial: <filter> 
           ID-3: /dev/sdc type: USB vendor: Seagate model: ST500LM0 34-2GH17A size: 465.76 GiB serial: <filter> 
           ID-4: /dev/sdd type: USB vendor: Seagate model: BUP Portable size: 3.64 TiB serial: <filter> 
           ID-5: /dev/sde type: USB vendor: Seagate model: ST2000DL003-9VT166 size: 1.82 TiB serial: <filter> 
           ID-6: /dev/sdf type: USB vendor: Western Digital model: WD My Passport 0748 size: 1.82 TiB serial: <filter> 
           ID-7: /dev/sdg type: USB model: MXT-USB Storage Device size: 29.72 GiB serial: <filter> 
RAID:      Device-1: bpool type: zfs status: ONLINE size: 1.88 GiB free: 1.61 GiB Components: online: N/A 
           Device-2: rpool type: zfs status: ONLINE size: 460.00 GiB free: 455.00 GiB Components: online: N/A 
Partition: ID-1: / size: 445.15 GiB used: 4.06 GiB (0.9%) fs: zfs raid: rpool/ROOT/ubuntu_s7m3w6 
           ID-2: /boot size: 1.75 GiB used: 265.1 MiB (14.8%) fs: zfs raid: bpool/BOOT/ubuntu_s7m3w6 
           ID-3: /var/log size: 441.09 GiB used: 384 KiB (0.0%) fs: zfs raid: rpool/ROOT/ubuntu_s7m3w6/var/log 
           ID-4: swap-1 size: 2.00 GiB used: 0 KiB (0.0%) fs: swap dev: /dev/sda2 
           ID-5: swap-2 size: 2.00 GiB used: 0 KiB (0.0%) fs: swap dev: /dev/sdc2 
           ID-6: swap-3 size: 2.00 GiB used: 0 KiB (0.0%) fs: swap dev: /dev/sdb2 
Sensors:   System Temperatures: cpu: 45.0 C mobo: 0.0 C gpu: amdgpu temp: 43 C 
           Fan Speeds (RPM): N/A 
Repos:     Active apt repos in: /etc/apt/sources.list 
           1: deb [arch=amd64,i386] http://us.archive.ubuntu.com/ubuntu/ focal main restricted
           2: deb [arch=amd64,i386] http://us.archive.ubuntu.com/ubuntu/ focal-updates main restricted
           3: deb [arch=amd64,i386] http://us.archive.ubuntu.com/ubuntu/ focal universe
           4: deb [arch=amd64,i386] http://us.archive.ubuntu.com/ubuntu/ focal-updates universe
           5: deb [arch=amd64,i386] http://us.archive.ubuntu.com/ubuntu/ focal multiverse
           6: deb [arch=amd64,i386] http://us.archive.ubuntu.com/ubuntu/ focal-updates multiverse
           7: deb [arch=amd64,i386] http://us.archive.ubuntu.com/ubuntu/ focal-backports main restricted universe multiverse
           8: deb [arch=amd64,i386] http://security.ubuntu.com/ubuntu focal-security main restricted
           9: deb [arch=amd64,i386] http://security.ubuntu.com/ubuntu focal-security universe
           10: deb [arch=amd64,i386] http://security.ubuntu.com/ubuntu focal-security multiverse
           Active apt repos in: /etc/apt/sources.list.d/kelebek333-ubuntu-mint-tools-focal.list 
           1: deb http://ppa.launchpad.net/kelebek333/mint-tools/ubuntu focal main
           Active apt repos in: /etc/apt/sources.list.d/zorin.list 
           1: deb https://packages.zorinos.com/stable focal main
           2: deb https://packages.zorinos.com/patches focal main
           3: deb https://packages.zorinos.com/apps focal main
           4: deb https://packages.zorinos.com/drivers focal main restricted
           Active apt repos in: /etc/apt/sources.list.d/zorinos-ubuntu-apps-focal.list 
           1: deb https://ppa.launchpadcontent.net/zorinos/apps/ubuntu focal main
           Active apt repos in: /etc/apt/sources.list.d/zorinos-ubuntu-drivers-focal.list 
           1: deb https://ppa.launchpadcontent.net/zorinos/drivers/ubuntu focal main
           Active apt repos in: /etc/apt/sources.list.d/zorinos-ubuntu-patches-focal.list 
           1: deb https://ppa.launchpadcontent.net/zorinos/patches/ubuntu focal main
           Active apt repos in: /etc/apt/sources.list.d/zorinos-ubuntu-stable-focal.list 
           1: deb https://ppa.launchpadcontent.net/zorinos/stable/ubuntu focal main
Info:      Processes: 502 Uptime: 9d 23h 12m Memory: 62.15 GiB used: 6.51 GiB (10.5%) Init: systemd v: 245 runlevel: 5 
           Compilers: gcc: N/A Shell: upload-system-i running in: gnome-terminal inxi: 3.0.38
1 Like