Skip to content

NileshGR

NileshGR

A curious generalist

A curious generalist

sysadmin

  • Linux rename network interface using udev rules

    Sometimes it is convenient to have user assigned names to network interfaces – particularly when the MAC address of the interface remains constant but the bus on which it is attached may change because it’s a virtual machine. All that is required to be done is create a file /etc/udev/rules.d/persistent-net.rules [...]

    Continue reading
  • Hibernate support on Ubuntu 20.04 with encrypted swap and encrypted root filesystem

    So I installed Ubuntu 20.04 on my laptop with encrypted root filesystem with bcache support since I have a NVME SSD along with the usual hard disk in it. While setting up encrypted root filesystem the installer will not allow you to have unencrypted swap – and the default encrypted [...]

    Continue reading
  • Speeding up PHP CLI applications using OpCache

    I run a few PHP based applications which require background jobs, and I use the usual crond via crontab to run the jobs. PHP has an excellent feature – OpCache which can cache the compiled code in memory to speed up the web applications, where typically the PHP-FPM process is [...]

    Continue reading
  • Change username and hostname for Ubuntu instances on AWS

    If you have used Ubuntu images on AWS, you might have noticed that the default username of the user on the instance is ‘ubuntu’. And the hostname is dynamically generated according to the public IP. Both of these can be changed using cloud-config supported on Ubuntu images – the config [...]

    Continue reading
  • Using privileged mode (become) in Ansible without a password

    So I was working on automating some stuff using Ansible when the necessity to have password less superuser access came up. A simple way would be adding the ansible management key to the root account itself and allow SSH to root, but allowing ssh to root is usually a bad [...]

    Continue reading
Previous1234Next

Connect with me

NileshGR • Software Engineer • NileshGR • Network Engineer • NileshGR • Software Consultant •NileshGR • Software Engineer • NileshGR • Network Engineer • NileshGR • Software Consultant •

Based in Pune, Maharashtra, India

License (unless specified otherwise): CC-BY 4.0 Creative Commons BY 4.0

Trademarks belong to respective owners

Page load link
Go to Top