baumi's blog

baumi's personal blog … Linux, OS X, Windows, Random things, …

gdb cheat sheet

This is just a small list i’ve collected for myself. Not meant to be complete … set disassembly-flavor intel …. obligatory life saver 😉 x/100bs $rsp ……. ASCII dump stack (byte-wise) x/100ws $rsp ……. ASCII dump stack (lower word-bytes only) x/80x $rsp ………. HEX dump stack x/80xb 0x7fffffffd880 ….. HEX dump memory address xxd from […]

LENOVO Thinkpad X1 T450s X250: BIOS update with GNU/Linux – create bootable USB drive (create bootable USB drive with geteltorito)

—– NEW METHOD —– sudo fwupdmgr refresh sudo fwupdmgr get-updates sudo fwupdmgr update Im BIOS muss “Windows BIOS/UEFI Update” aktiviert sein … —– OLD METHOD —– GUI Alternativen: “Laufwerke” von Linux -> (rechts oben im Menü) Laufwerksabbild Wiederherstellen und .img oder .iso aussuchen https://www.fossmint.com/woeusb-create-bootable-windows-usb-sticks-from-linux/ balenaEtcher: https://www.balena.io/etcher/ CLI: 1. Download bootable “BIOS Update (bootable CD)” from […]

Elementary OS: disable ecryptfs home folder encryption, or: manually mounting ecryptfs encrypted homedir (e.g. from backup)

UPDATE – Better, easier way taken from http://askubuntu.com/questions/4950/how-to-stop-using-built-in-home-directory-encryption 1 .Backup the home directory while you are logged in sudo cp -rp /home/user /home/user.backup 1.1. Check that your home backup has everything!!! 2. reboot into single user mode via grub (shift during boot, edit, add “single” as a parameter. for details see https://www.cyberciti.biz/faq/grub-boot-into-single-user-mode/) 3. Delete your […]

GNU/Linux: optimizing system settings for SSD disks

Usually every file read access also produces writes to the SSD, because the system updates the file atime (access time). For most systems you can safely turn it off, which will not only give a small speed increase but also prolong the lifetime of your SSD: sudo vi /etc/fstab # [file system] [mount point] [type] […]

The new aluminium is BLACK

I would have loved to upgrade to a new macbook pro this year. Unfortunately, Apple made it quite unattractive (to say it in a very diplomatic way ^^). I have been working for years now on a MBP mid-2012 (previously early 2011), hires matte display, 16GB ram, 1TB flash drive. So in order to get […]

Running Apple OSX 10.12.2 macOS Sierra in VM VMware workstation player under GNU/Linux Elementary OS

1) Download OSX disk image for VMware: Mojave: https://www.geekrar.com/download-macos-mojave-vmware-virtualbox/ Sierra: https://drive.google.com/drive/folders/0B2BGAPbTu7vhM1M1THdhX01Jejg 2) Get VMware workstation and/or player http://www.vmware.com/products/player/playerpro-evaluation.html 3) Install VMware unlocker, see https://blog.b-nm.at/2016/12/27/vmware-unlocker-for-os-x/ If you get IOError: [Errno 2] No such file or directory: ‘/usr/lib/vmware/lib/libvmwarebase.so.0/libvmwarebase.so.0’ substitute ‘/usr/lib/vmware/lib/libvmwarebase.so.0/libvmwarebase.so.0’ with ‘/usr/lib/vmware/lib/libvmwarebase.so/libvmwarebase.so’ in lnx-install.sh and unlocker.py, then rerun lnx-install.sh 4) Create new VM for “maxOS OSX”. If […]

VMware Unlocker for running macOS / OS X under Linux and/or Windows

UPDATE 05/2017: when updating VMware workstation, the suspended/paused OSX VM seems to work fine but won’t boot up again (e.g. after updating to the latest OSX version which requires a reboot). I had to reinstall the unlocker and it’s working again … i’m still using unlocker v2.0.8 but on git there is a 2.0.9: https://github.com/DrDonk/unlocker […]

Previous Posts Next posts