Skip to main content
  1. Tags/

Linux

2020

Getting Terraform to apply only when a change exists using Make
··1982 words·10 mins
Tips & How-To's Terraform Linux Bash Make
This post explains Terraform’s exit codes in detail and how you can use them to skip a terraform apply when no changes are needed.

2016

Bash bashings..
··131 words·1 min
Tips & How-To's Bash Linux Popd Pushd
Since my new job involves lot more of Linux, shell scripting bash and automation, I’ve been trying to brush up my Linux skills. Ran into this “problem” today where there’s an init script which handles unicorn start/stop/reload and we were debugging some kinks around this. The init script had a chain of cd to the directory and the unicorn invoke script. Was trying to figure out why unicorn wasn’t starting up, till I read a bit more and dropped to using echo to understand what’s happening

2013

Alienware X51 with Ubuntu makes no sense
··724 words·4 mins
Opinions Games Linux
This morning in my half-woken state, as I was checking Hacker News, I spotted this piece about Alienware launching the X51 with Ubuntu. I initially thought I was dreaming, and woke up immediately and read the piece, and I was left dumbfounded when I read it again to be sure. Kind of dumbfounded at Dell launching an Alienware X51 with Ubuntu https://alienware.com/ubuntu/ Not sure what’s Dell thinking - there aren’t any great native AAA games available, can’t imagine this would make studios to make Linux ports either
Reviving my dead Windows 8 install with no bootable USB/DVD and Linux Mint & Cr48
··587 words·3 mins
News Tips & How-To's Cr48 Linux Mint Windows
Couple of months ago, just about a month before #cpgweds - the engagement my Envy 14 laptop started showing signs of dying - weird noises coming from the vents, system freezing arbitrarily, system getting incredibly hot - and that’s really unusual because the Envy’s cooling system is probably one of the best that I’ve seen in a laptop. Soon enough, it became clear that a fan was not working - my idle temperatures hit 85 degrees C, and start any game or even xbmc, and the temperatures would hit 95-100 and shutdown sooner or later.

2010

Am I the only person who gets ln -s the wrong way round every time?
··105 words·1 min
Tips & How-To's Commands Linux
ln -s d1 d2 # Am I the only person who gets this the wrong way round every fucking time? Similar to most people who have posted there - I used to still get it wrong every time. It’s become a habit for me to do a man ln or ln -help before I execute this command :\ Great tip here though: but then I finally found out about the relationship between ln and cp
find command examples
··518 words·3 mins
Tips & How-To's Applications Linux Ubuntu
I’ve used find extensively and always wanted to writeup a nice post on this, but the linked post trumps my effort! Copy pasted from his blog, as the person’s allowed to do so. Also, as a general note - before using exec with the actual command, do preview it! remove empty directories # # find . -depth -type d -empty -exec rmdir {} \; change various file attributes # find .
Removing file named -rf in Unix
··66 words·1 min
Tips & How-To's Commands Linux Tutorials
I did something crazy at some point that created a file called “-rf” on my filesystem. Now I can’t figure out how to delete it. I’ve tried rm "-rf" rm \-rf But these just exit immediately. Arrgh! Anyone know how to remove this file? Preferably without accidentally cleaning out my whole folder. heh. What’re the odds, eh? via Removing “-rf” file in Unix - Super User.
[How to] Search through Bash history
··84 words·1 min
Tips & How-To's Linux Bash Applications
Quick tip - if you use the Terminal as much as I do, ever been in a situation where you’ve written a particularly long command, and then want to issue that command again but can’t recall it ? Use the history command, and pipe it to grep to search it! history | grep -i <search-term> This will give you all commands with the search term and the corresponding line number.
HOWTO: Starcraft 2 on Linux with Wine
··207 words·1 min
Tips & How-To's Applications Linux
Starcraft 2 [runs] under my Linux install with no issues. Since the game’s official release a few days ago I have been getting a good bit of traffic on those two pages - so I figured I would put together a quick HOWTO for getting Starcraft 2 working on your Linux distro of choice. The game runs under Wine 1.2 and/or CrossoverGames 9.1. Crossover 9.1 Starcraft 2 is listed as “officially support” and as such you will find that it has an entry in the automated games installer.
Is Oracle trying to kill VirtualBox? >>> No.
··240 words·2 mins
Linked Linux
It seems Oracle is hellbent on destroying whatever good Sun had done to the Open Source Ecosystem. The latest product to get the axe seems to be none other than the Flagship Virtualization program xVM VirtualBox. [….] All tests show that VirtualBox 3.2 lacks any semblance of stability, crashing any operating system running on it randomly. VirtualBox 3.1.8, using the binary-only release for Linux, works like a charm. It is also apparent that VirtualBox 3.