Posts Categorized: linux

Run a Linux Mint Web App from the CLI

I wanted to run 4-5 applications based on a keyboard shortcut on Linux Mint. The shortcut key runs a shell script that launches the applications I want for that key press. Some of the applications Creating the keyboard shortcut is straight-forward in Mint and is shown below: Then the script I wanted to run could… Read more »

Exclude Directories for Disk Usage (du)

ncdu

I sometimes want to omit directories from my disk usage (du -sh *) checks. This includes virtual files systems such as proc / dev and also mounts to other filesystems (data in the example below). This is what works for me: du –exclude={proc,sys,dev,data} -sh * The equals sign appears to be optional and worked both… Read more »

Labeling Partitions with LABEL and PARTLABEL

So working on a system that had incorrect partitioning configured.  In /etc/fstab the partitions were configured with: PARTLABEL=data1 /data1 ext4 defaults 0 0 PARTLABEL=data2 /data2 ext4 defaults 0 0 but the partitions did not have PARTLABELS set. The LABEL and PARTLABEL can be viewed with: lsblk -o name,label,partlabel,mountpoint,size,uuid To set the label property use: e2label… Read more »

Zookeeper install on CentOS 7

Good concise article here on devopscube for installing zookeeper cluster. I’ve added some of my own bits: Firewall Disable firewalld or allow ports 2181 3888 2888 Install Java yum install java-1.8.0-openjdk Install Zookeeper Download ZooKeeper from the Apache: wget http://mirrors.ukfast.co.uk/sites/ftp.apache.org/zookeeper/zookeeper-3.4.10/zookeeper-3.4.10.tar.gz mv zookeeper-3.4.10.tar.gz /opt cd /opt tar xzf zookeeper-3.4.10.tar.gz ln -s zookeeper-3.4.10 ./zookeeper cd zookeeper mkdir… Read more »

Yakuake not restoring window height & width

git branch

I found that Yakuake was re-opening with an 80% width and about 30% height but I prefer 100% wide and 80% high. So it looks like my settings were saving into the file: ~/.config/yakuakerc But this was possibly not the file that was being read when Yakuake started. I added the [Window] Height=80 Width=100 entries… Read more »

Manic Miner on Linux

I was reminded about how much time I had spent as a kid playing Manic Miner on an Amstrad 464 and decided to give it a try on my current desktop (Linux Mint) so for future reference… I grabbed the code created by here: git clone https://github.com/lkundrak/manicminer.git Installed a few dependencies: apt-get install libx11-dev libxext-dev… Read more »

Mount Files Virtually via Dell iDRAC

Use fallocate to create a new 300 MB file : fallocate -l 300M disk_image.img Create an ext4 file system within the image file: mkfs.ext4 disk_image.img Create a mount point: mkdir /mnt/disk_image mount it: mount -t auto -o loop disk_image.img /mnt/disk_image Then on the Dell iDRAC use the ‘Virtual Media’ menu to ‘Map Removable Disk…’  :… Read more »