Post tagged: sudo

flatpak

Flatpak is a utility for software deployment and package management for Linux. It is advertised as offering a sandbox environment in which users can run application software in isolation from the rest of the system. Flatpak was developed as part of the freedesktop.org project and was originally called xdg-app …

Linux stuff

Sudoers

Since sudo v1.9, it is possible to use the following statements:

  • #includedir
  • @includedir

This is useful better for adding sudo rules rather than modifying the /etc/sudoers file.

Make sure that the includedir statement is the LAST entry in /etc/sudoers and the files in the directory:

  • names …

Installing Void Linux

I made the switch to void linux. Except for compatibility issues around glibc, it works quite well. Most compatibility I have worked around with a combination of Flatpaks, chroots and namespaces.

The high lights of void linux:

  • musl build - which is very lightweigth
  • Does not depend on systemd …

How to encrypt linux partitions with LUKS

There are plenty of reasons why people would need to encrypt a partition. Whether they're rooted it in privacy, security, or confidentiality, setting up a basic encrypted partition on a Linux system is fairly easy. This is especially true when using LUKS, since its functionality is built directly into the …

Retropie

  • DVD player
  • Bluetooth receiver
  • keyboard

  • good keyboard bindings

  • how to exit games
  • convert probox into binding keys
  • where are key codes saved

  • Write image:
  • gunzip < retropie-4.3-rpi2_rpi3.img.gz | sudo dd of=/dev/sde bs=4M
  • Configure config.txt
  • hdmi_force_hotplug=1
  • hdmi_drive=2
  • Boot and configure keyboard
  • D-Pad => D-Pad
  • start …

using cachefiles on an Linux NFS share

If you often mount and access a remote NFS share on your system, you will probably want to know how to improve NFS file access performance. One possibility is using file caching. In Linux, there is a caching filesystem called FS-Cache which enables file caching for network file systems such …

android development

Android devs

Install JAVA

yum install java-1.8.0-openjdk java-1.8.0-openjdk-devel

Install SDK Tools:

Download the sdk-tools zip from here

mkdir /opt/android
cd /opt/android

The sdk should go under /opt/android/tools

unzip sdk-tools.zip
sudo chmod a+x $(sudo find . -type f -executable )

Create a …

HP Envy 4504 Set-up

I bought a HP Envy 4504. Overall I am happy with it. This is how I configure it so I can use with Linux.

This mini howto applies to ArchLinux, void linux and Centos/RedHat distributions.

Installation

Archlinux:

cups, hplip, python2, sane

Centos:

cups, hplip, hplip-gui, sane

Some optional dependancies …

Enable local file caching for NFS share on Linux

In Linux, there is a caching filesystem called FS-Cache which enables file caching for network file systems such as NFS. FS-Cache is built into the Linux kernel 2.6.30 and higher. In order for FS-Cache to operate, it needs cache back-end which provides actual storage for caching. One such …