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 »
Posts Categorized: linux
Add AWS CLI to Alpine Linux
I seem to regularly look this one so adding it here for future reference.
Ansible Ad Hoc Commands
Just for future reference: ansible -i /tmp/ips -f 10 -m shell -a “sudo docker restart logstash” all
Exclude Directories for Disk Usage (du)
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
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 »
rpcbind.socket failed to listen on sockets: Address family not supported by protocol
Using CentOS 7 this problem arose after a reboot and NFS shares would not mount. Trying to start the rpcbind service: systemctl start rpcbind gave the following error message via jounralctl -xe : rpcbind.socket failed to listen on sockets: Address family not supported by protocol So it looks like net.ipv6.conf.all.disable_ipv6 = 1 was set in… 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 »