snips

Twitter

Vim and Python in Conda

vim and conda conda wget -S https://repo.continuum.io/miniconda/Miniconda3-latest-Linux-x86_64.sh and run but DON’T allow it to add miniconda to the PATH (yet) note you’ll replace /dev/shm with your choice location alias sa='source /dev/shm/miniconda3/bin/activate' alias sd='source /dev/shm/miniconda3/bin/deactivate' alias conda='/dev/shm/miniconda3/bin/conda' compile vim note you’ll replace /dev/shm with your choice location git clone https://github.com/vim/vim.git make uninstall && make clean && make distclean && \ ./configure --with-features=huge --enable-pythoninterp --enable-python3interp --prefix=/dev/shm/vim_install/ && \ make VIMRUNTIMEDIR=/dev/shm/vim_install/share/vim/vim80 && make install verify python is OK (this will use your system python for now Read more...

Arch Linux - rootfs in ram / boot to ram

Arch Linux - rootfs in ram / boot to ram Arch comes with some simple scripts for booting root fs into ram. liveroot takes only some simple configuration First, install the package yaourt -S liveroot This puts the required hooks into /usr/lib/initcpio An example mkinitcpio.conf is placed into /usr/share/liveroot I modified the MODULES line as follows MODULES="zram ext2 btrfs overlay" And to the HOOKS line I added encrypt and oroot - mine ends up looking like this Read more...

Arch Linux - Quick nice fonts in Google Chrome

Get rid of standard jaggy fonts Edit /etc/fonts/local.conf <fontconfig> <match target="font"> <edit mode="assign" name="rgba"> <const>rgb</const> </edit> </match> <match target="font"> <edit mode="assign" name="hinting"> <bool>true</bool> </edit> </match> <match target="font"> <edit mode="assign" name="hintstyle"> <const>hintslight</const> </edit> </match> <match target="font"> <edit mode="assign" name="antialias"> <bool>true</bool> </edit> </match> <match target="font"> <edit mode="assign" name="lcdfilter"> <const>lcddefault</const> </edit> </match> <match target="font"> <edit name="embeddedbitmap" mode="assign"> <bool>false</bool> </edit> </match> </fontconfig> Read more...

Arch Install - UEFI Boot with BTRFS root filesystem

Disk Formatting Three partitions for this example - EFI, swap and then a single BTRFS for everything else One consequence is that you can’t snapshot /boot (as it’s formatted to FAT32)… Create GPT Partition Table disk EFI partition, FAT32 format, 512M (will mount on /boot ) e.g. /dev/sda1 swap e.g. /dev/sda2 BTRFS filesystem for root,var,home etc e.g. /dev/sda3 Install Arch mkswapfs / swapon etc mount /dev/sda3 /mnt btrfs subvolume create /mnt/@root btrfs subvolume create /mnt/@var btrfs subvolume create /mnt/@snapshots umount /mnt mount -o noatime,compress=lzo,space_cache,subvol=@root /dev/sda3 /mnt mkdir /mnt/{boot,var,. Read more...