recentpopularlog in

mechazoidal : linux   222

« earlier  
nixos/ at master · andywhite37/nixos · GitHub
"elow are the steps I took and various notes from my attempt to dual boot NixOS with and existing Windows 10 installation on a new Lenovo Thinkpad X1 Carbon (6th Edition). I wanted to keep a small Windows partition for gaming/etc. and install NixOS on a much larger partition for software development. [...] in the end, there was quite a bit of reading and crossing of fingers involved, but I got NixOS installed and up and running with no problems at all! Also, at no point in the process was I unable to boot into the Windows OS!"
repo:github  linux  sysadmin  windows  nix 
11 days ago by mechazoidal
Steam under Linux - Valve Developer Community
- winetricks
- if dual-booting, it's possible to symlink the steamapps folder from linux to windows
- do not use compiz or any other fancy compositors
- avoid ntfs-3g / FUSE
steam  linux  wine  tips  windows  games 
11 days ago by mechazoidal
Valve's ACO Helps Put New Life Into Radeon GCN 1.0 GPUs With ~9% Better Linux Gaming Performance - Phoronix
Valve sponsors a non-LLVM compiler for Radeon GPUs(any using GCN 1.0+). It's the backend of the Mesa Radeon Vulkan driver?
Note that _using_ it requires using the AMDGPU kernel module at boot time
gpu  vulkan  linux  2020 
17 days ago by mechazoidal
GitHub - libhybris/libhybris: Hybris is a solution that commits hybris, by allowing us to use bionic-based HW adaptations in glibc systems
"In a nutshell, it is a compatibility layer that allows traditional Linux software to talk to the hardware via the usual Android hardware libraries. It’s not a perfect solution but it has at least allowed a few Linux-based projects to hit the road running rather than starting from the ground up."
pmz  repo:github  android  linux  osdev 
17 days ago by mechazoidal
CS50 Programmer's Manual
Manual pages for the C standard library (and the CS50 Library), with student-friendly annotations.
unix  c  linux  programming  reference 
5 weeks ago by mechazoidal
The Linux Wacom Project – Wacom device support on Linux
Provides a kernel driver(input-wacom), X11 driver(xf86-input-wacom), and libwacom(application support).
drivers  linux  pmz  hardware 
7 weeks ago by mechazoidal
FGA: Readiness protocol problems with Unix daemons
Discussing how daemon processes can signify readiness to an overall system, and how a lot of systems get it wrong AND bad habits from the 80's.
unix  linux  systemd  osdev  reference 
10 weeks ago by mechazoidal
Blobless boot with RockPro64 - Andrius Stikonas
"RockPro64 is based on Rockchip’s rk3399 SoC, so if you have some other rk3399 board, you might still find this guide useful."
osdev  linux  pmz  hardware 
10 weeks ago by mechazoidal
GnuBee: — FLOSS Devices at Reasonable Prices
Mike T recommended these as a libre NAS/Synology box, buut: (2018)
- since it's Mediatek it's an out-of-tree patch to support the hardware
- the authors are more focused on hardware at this point, so the official github repo is *crickets*
- firmware+kernel revision are linked, and there are still plenty of bugs(clock-skew, no iotop, etc.)
linux  hardware  computers  nas 
10 weeks ago by mechazoidal
Gadget Framework allows Linux to emulate any kind of usb device(using OTG?)
usb  pmz  linux 
december 2019 by mechazoidal
"Powered by the same Quad-Core ARM Cortex A53 64-Bit SOC used in our popular PINE A64 Single Board Computer, the PinePhone runs mainline Linux as well as anything else you’ll get it to run.

The purpose of the PinePhone isn’t only to deliver a functioning Linux phone to end-users, but also to actively create a market for such a device, as well as to support existing and well established Linux-on-Phone projects. "
cellphone  hardware  gear  linux  pmz  to-get 
december 2019 by mechazoidal
PinePhone review | Drew DeVault’s Blog
"Let me make this clear: right now, there are very few people, perhaps only dozens, for whom this phone is the right phone, given the current level of software support. I am not using it as my daily driver, and I won’t for some time. The only kind of person I would recommend this phone to is a developer who believes in the phone and wants to help build the software necessary for it to work. However, it seems to me that all of the right people are working on the software end of this phone — everyone I’d expect from the [postmarketOS] community, from KDE, from the kernel hackers — this phone has an unprecedented level of community support and the software _will_ be written."

pmz: this would probably be the best HW to target for an inferno/plan9 fork, and it's only $150??
pmz  linux  hardware  review  2019  cellphone  pinephone 
december 2019 by mechazoidal
postmarketOS // real Linux distribution for phones
Alpine Linux distro for phones/small-devices. Note that while they advertise(and mostly work on) Android devices, it is _not_: requires an android environment("anbox"), and is not fully compatible.

OTOH, they want to work on both Android and ios devices
linux  pmz  os  cellphone 
december 2019 by mechazoidal
VFX Reference Platform
"a set of tool and library versions to be used as a common target platform for building software for the VFX industry. Its purpose is to minimise incompatibilities between different software packages, ease the support burden for Linux-based pipelines and encourage further adoption of Linux by software vendors. The Reference Platform is updated annually by a group of software vendors in collaboration with the Visual Effects Society Technology Committee."
(major technologies covered: gcc/glibc, python, qt, numpy, openexr, ptex, opensubdiv, openvdb, alembic, FBX, OpenColorIO, ACES, boost, Intel TBB/MKL, and C++ revision)
piperesearch  standards  programming  reference  linux 
december 2019 by mechazoidal
Creating sockets — Idea of the day
Some parts of this are Linux-specific(systemd, strace), but the AF_UNIX family is widly available(even on windows now!). Even some niche tips like "try calling connect(AF_UNSPEC) on a connected socket for faster reset"
linux  networking  reference  programming  unix 
november 2019 by mechazoidal
Nicolas Mattia – Nix: A Reproducible Setup for Linux and macOS
"I’ve used GNU stow. I’ve stored my dotfiles in a Git repository. I’ve written scripts to extract and load sets of packages with aptitude. It never worked reliably. Now I have a solution that actually works. I’m using a few text files that describe my entire setup, store them on GitHub, and don’t anymore fear upgrading my system, losing my laptop or spawning short-lived development instances. Let me show you how."

Note vim plugins section: keeping python versions separate between them!
nix  osx  linux  tips 
october 2019 by mechazoidal
Rosegarden: music software for Linux
"music composition and editing environment based around a MIDI sequencer that features a rich understanding of music notation and includes basic support for digital audio.

Rosegarden is an easy-to-learn, attractive application that runs on Linux, ideal for composers, musicians, music students, and small studio or home recording environments."
midi  software  linux  audio  music  tools 
october 2019 by mechazoidal
syzbot and the tale of thousand kernel bugs | Linux Security Summit 2018
"Each bug fork is effectively a new bug for most practical purposes.Hundreds of thousands of bugs for Google. Millions of bugs industry-wide."

@nickpsecurity: "All together, these facts mean we have no way of knowing how secure Linux is or isn’t in practice due to all the hidden and unknown breaches that are in all probability still happening. All we can know for sure, proven empirically by tools like I linked, is its consistently-horrible Q.A. makes it an magnet for attackers."
linux  pdf  presentation  security  2017  osdev 
september 2019 by mechazoidal
VMPK. Virtual MIDI Piano Keyboard
Note that this has hard dependencies on Drumstick and ALSA, so it is linux/mac only
midi  linux  tools 
september 2019 by mechazoidal
Systemd vs. Docker []
The systemd and Docker teams do not get along: mostly because they really want to do the same thing, and There Can Be Only One.
2016  linux  from:lwn  docker  systemd 
august 2019 by mechazoidal
djmount - mount AV device as filesystem
Obsolete, but might be handy as reference: it reads all local upnp/dlna AV Media Servers and exports them as a FUSE filesystem
fuse  linux  repo:sourceforge  dlna  upnp  pmz  plan9 
august 2019 by mechazoidal
Patch workflow with mutt - 2019 - Linux Kernel Monkey Log
A Linux kernel dev shows what he needs in an email client for proper dev tasks. Spoilers: it's heavily based around git and the patch quilt scripts
email  git  mutt  software_development  linux 
august 2019 by mechazoidal
"It provides a lightweight audio & MIDI server and a fully documented user-space API to access either the server or directly the hardware in a uniform way. Sndio is designed to work for desktop applications, but pays special attention to synchronization mechanisms and reliability required by music applications."

HN comment: "'it doesn't look like sndio targets the application->application audio routing use-case, nor does it appear to prefer a lower latency audio pull-API. So, it does not look like by design it can be a jack replacement."
midi  audio  unix  openbsd  linux  API  pmz 
august 2019 by mechazoidal
container-runtime-series Blog Posts - Ian Lewis
- An Introduction to Container Runtimes
- Anatomy of a Low-Level Container Runtime
- High-Level Runtimes
- Kubernetes Container Runtimes & CRI
Linux  containers  reference  sysadmin  k8s 
july 2019 by mechazoidal
Goodbye Docker: Purging is Such Sweet Sorrow | Lobsters
Soo, apparently there are other tools that can create Linux namespaces at this point (even systems??)
lobsters  discussion  linux  docker  containers 
july 2019 by mechazoidal
musl libc
"lightweight, fast, simple, free, and strives to be correct in the sense of standards-conformance and safety." Note that it's meant for the Linux kernel, even another unix is probably not a porting slam dunk
osdev  library  c  libc  linux  compilers 
june 2019 by mechazoidal
A Tiling Desktop Environment | Lobsters
Discussion only. Note tips on using gnome 2, if you can't get away from a full DE
linux  gnome  lobsters  discussion 
june 2019 by mechazoidal
xdotool - fake keyboard/mouse input, window management, and more - semicomplete
"This tool lets you simulate keyboard input and mouse activity, move and resize windows, etc. It does this using X11’s XTEST extension and other Xlib functions.

Additionally, you can search for windows and move, resize, hide, and modify window properties like the title. If your window manager supports it, you can use xdotool to switch desktops, move windows between desktops, and change the number of desktops."
x11  tools  unix  linux 
may 2019 by mechazoidal
"a growing collection of the unix tools that nobody thought to write long ago when unix was young."
Note that it's a tad Linux-centric, and also includes a "parallel" tool which MAY conflict with GNU parallel in some packaging systems.
unix  tools  text  shell  linux 
april 2019 by mechazoidal
Turbid User’s Guide
"We discuss how to configure and use turbid, which is a Hardware Random Number Generator (HRNG), also called a True Random Generator (TRNG). [...] In contrast to a Pseudo-Random Generator, it has no internal state to worry about. In particular, we describe a low-cost high-performance implementation, using the computer’s audio I/O system."
pmz: note that this depends on ALSA, but theoretically any computer with an audio subsystem could use similar techniques
random  math  electronics  hardware  security  pmz  linux  audio 
april 2019 by mechazoidal
What causes Ruby memory bloat? – Joyful Bikeshedding
"Fragmentation turns out to be mostly a red herring. There's still gains to be had by reducing fragmentation, but main problem is the fact that the [glibc] memory allocator doesn't like to free memory back to the kernel.

The solution turns out to be, fortunately, super simple[MALLOC_ARENA_MAX=2] But finding the solution and the root cause… not so much."
programing  optimization  ruby  linux  2019 
march 2019 by mechazoidal
Ringing in a new asynchronous I/O API []
Linux io_uring: super-fast userspace io through a kernel interface
lwn  linux  io  osdev  2019 
march 2019 by mechazoidal
Fixing Unix/Linux/POSIX Filenames: Control Characters (such as Newline), Leading Dashes, and Other Problems
"In general, kernels should emphasize mechanism not policy. The problem is that currently there’s no mechanism for enforcing *any* policy[on filename characters]. Yet it’s often easy for someone to create filenames that trigger file-processing errors in others’ programs (including system programs), leading to foul-ups and exploits. Let administrators determine policies like which bytes must never occur in filenames, which bytes must not be prefixes, which bytes must not be suffixes, and whether or not to enforce UTF-8. "

Also note the top on how to 'rm' weird files: "rm ./-r" or "rm ./*"
PR: note section on "no leading/trailing space", for internal names or mapping to a filesystem
unix  linux  filesystems  shell  piperesearch  osdev  reference  posix 
march 2019 by mechazoidal
avxsynth/avxsynth: Linux Port of Avisynth
"In particular, we are interested in AviSynth as a frame server front-end to the encode step of our media pipeline."

The docs on the internals might be useful, but hasn't been updated since 2015.
repo:github  video_editor  tools  avisynth  linux  piperesearch 
february 2019 by mechazoidal
TonidoPlug 2 | Arch Linux ARM
"a commercially developed version of the SheevaPlug. They are essentially identical except for a missing serial UART/JTAG developer board in the TonioPlug. The TonidoPlug comes with Ubuntu 9.04 and the Tonido software preinstalled. TonidoPlugs are popular with developers because they boot from USB by default, making installation of other operating systems painless and bricking the device is almost impossible."

But note that mainline Debian does NOT support it due to the lack of debug/JTAG interface( )
hardware  reference  linux 
january 2019 by mechazoidal
GitHub - squires/infinity-pedal: linux driver for the Infinity IN-USB-2 foot pedal
"The pedal is a USB HID device, and the kernel's hiddev driver will claim it and
present it as a hiddev device (for example, /dev/usb/hiddev0). By defualt on
Ubuntu system, udev does not create the device with permissions allowing
reading by non-root users. So you need to add a new udev rule to allow
userspace programs to read from the hiddev device."
linux  repo:github  drivers 
january 2019 by mechazoidal
KaiOS - Wikipedia
A fork of B2G, which was itself a fork of FirefoxOS. Meant to go with the India-based JioPhone: "merging the power of a smartphone with the affordability of a feature phone"
pmz  wikipedia  os  linux  mobile 
january 2019 by mechazoidal
Hope you like reading ldd output! · GitHub
"A week ago I was CC'd in on a thread about Linux packaging, and how to avoid doing it the wrong way (i.e. RPM, Deb, etc.). I've always used MojoSetup and I've never forced distributions to do any additional work, but this is still a new concept to a lot of people. Additionally, Amos suggested that I expand on Itch's FNA appendix, so here's a guide on how I package my games."
gist  gamedev  packaging  linux 
january 2019 by mechazoidal
GitHub - ncopa/lddtree: Fork of pax-utils'
Differences from pax-utils' bash version:
- don't use /bin/bash
- resolv symlinks
- fall back to objdump and readelf if scanelf is not found depends on scanelf from pax-utils or objdump and readelf from binutils.
linux  tools  programming  repo:github  linkers 
january 2019 by mechazoidal
PCI passthrough adventures with libvirt. | aixxe
lobsters: "I found this to be very useful, for all of the consumer grade hardware coming out that only supports Windows.

A sane way to run my HDMI capture device via my linux server"
linux  virtualization  windows  nvidia  tips 
january 2019 by mechazoidal
VFIO Discussion and Support
Vfio allows passing devices through a VM, so you can run windows as a guest inside Linux and still get GPU performance
gaming  reddit  virtualization  linux  windows 
november 2018 by mechazoidal
An illustration of why it's hard to port outside code into the Linux kernel
@mjn: "Besides being large, I think what makes me slightly wary of ZFS is that it also has a large interface with the rest of the system, and was originally developed in tandem with Solaris/Illumos design and data structures. So any OS that diverges from Solaris in big or small ways requires some porting or abstraction layer, which can result in bugs even when the original code was correct. Here’s a good writeup of such an issue from ZFS-On-Linux."
zfs  linux  osdev 
september 2018 by mechazoidal
mjg59 | Porting Coreboot to the 51NB X210
A Chinese-made replacement for a Thinkpad mobo, but also turns out to come with no firmware flash protection. LET'S GET TO PORTING COREBOOT
coreboot  linux  hardware  intel 
july 2018 by mechazoidal
DaVinci Resolve 15 | Blackmagic Design
Amazing amount of tools and quality, for under $300
(PR: note that they have basic collaboration! it's perforce-ish(lock items while using), but usable!)
video  software  linux  osx  windows  multimedia  piperesearch 
may 2018 by mechazoidal
Spacenav web site
Open source driver for 3dconnexion SpaceNavigator devices. Only Linux and FreeBSD at this point
(Can the driver work with other BSDs?)
usb  unix  x11  linux  hardware  drivers 
april 2018 by mechazoidal
minimodem - general-purpose software audio FSK modem
@nickpsecurity: "Found this looking for something like @tscs37’s idea doing doing I2C over 3.5mm audio jacks. There were lots of EE-type problems people brought up in various threads on that. This is pre-made software, though, so more of us might find it useful. Neat part of the video is author piping a whole man page through the connection."

"includes support for various standard FSK protocols such as Bell103, Bell202, RTTY, TTY/TDD NOAA SAME, and Caller-ID. "

github link:
audio  software  linux  pmz  tools  telecom  modem 
february 2018 by mechazoidal
"aims at the construction of a hardware database in order to identify what devices work with a fully free operating system. [...] h-node lists only hardware that works with free drivers and without non-free firmware. Other GNU/Linux distributions (or Debian with contrib, non-free, or some 3rd-party archives enabled) include non-free firmware files, so they cannot be used for testing."
linux  opensource  reference  wiki  hardware  pmz 
december 2017 by mechazoidal
RWSPS: Automated WiFi Cracking [ch4]
not so much for the script itself(python bleh), but for the workflow
wifi  security  dsec  howto  linux  pentest 
september 2017 by mechazoidal
PulseAudio under the hood
$DIETY, no wonder it's such a mess. It's effectively a private OS scheduler running a micro-scale distributed system.
There are some good critiques at the very end, which do raise some further pointed questions("native" inproc protocol is TCP based?? custom event loop/collection implementations?? RUNNING YOUR ROUTING ALGORITHM IN _MULTIPLE_ MODULES??)
PR: more of a warning and "what not to do"
piperesearch  pulseaudio  reference  linux  audio 
september 2017 by mechazoidal
GitHub - osresearch/heads: A minimal Linux that runs as a coreboot ROM payload to provide a secure, flexible boot environment for laptops and servers.
"a configuration for laptops that tries to bring more security to commodity hardware. Among its goals are:

- Use free software on the boot path
- Move the root of trust into hardware (or at least the ROM bootblock)
- Measure and attest to the state of the firmware
- Measure and verify all filesystems"
repo:github  security  linux  coreboot  pmz 
september 2017 by mechazoidal
"I've ported mjg59's tpmtotp to run from inside the boot ROM of a Thinkpad x230 using CoreBoot with a Linux payload. This provides attestation that the firmware hasn't been tampered with, since the TPM won't unseal the secret to used in the TOTP HMAC unless the PCR values match those expected for the ROM image."
research  security  pmz  firmware  x86  linux  coreboot 
september 2017 by mechazoidal
"a free open source disk encryption software for Windows, Mac OSX and Linux. Brought to you by IDRIX ( and based on TrueCrypt 7.1a."
(although see the "Security Requirements and Protection" for how FDE can fail)
security  windows  osx  linux  cryptography 
august 2017 by mechazoidal
OpenMoko: 10 Years After (Mickey’s Story) -
"My subjective view of the project, my participation, and what I think is left behind: My story, as OpenMoko employee #2."
note points:
- lots of early pie-in-sky design that was killed by initial hardware limitations
- development gap between Neo1973 and Freerunner was in 2007-2008: right when Apple and Google started releasing devices(also during Great Recession, leading to investor pullout)
- "APIs without a reference implementation are worthless and it is often more important to create things that work (de facto), than to have huge committees negotiate (de jure) standards. "
- allowed third-party distros out of the box, which lead to 10 half-working ones instead of a solid base one
- "Transparency – if you design hardware in the open, every single bug (that can perhaps be worked around in software) is immediately being revealed and talked to death. This scares potential buyers."
- "understand the incredible amount of problems a small series of custom smartphone hardware brings – including component sourcing, CAD programs, fighting against Linux mainline, defending a relatively high price, etc."
openmoko  cellphone  smartphone  opensource  history  linux  pmz 
july 2017 by mechazoidal
« earlier      
per page:    204080120160

Copy this bookmark:

to read