Posts

Showing posts from November, 2013

Completely wipe Chrome data on Mac

find ~/Library/ -type d -name 'Chrome' -exec rm -rfv {} \;

Chromecast tricks

is casting a tabdon't do full screeninstead, shrink browser window to size of original videowhat is put on the screen is relative to the window sizeseems to save on bandwidthpassed through your wireless routerless broken stream therefore

Building latest collectd on Amazon Linux server in AWS

yum install byacc flex automake libtool libgcrypt-devel glib2-devel libtool-ltdl-devel perl-ExtUtils-MakeMakercomments below imply this may be necessary: apt-get install bison git clone https://github.com/collectd/collectd.gitcd collectd./build.sh./configuremake   Some helpful libs, start over to use them
yum install lvm2-devel net-snmp-devel liboping-devel libpcap-devel libesmtp-devel libcurl-devel libmnl-devel Dated: Nov, 2013

Openbox: monitor laptop battery via CLI and notify-send

while (true);do acpi -b | perl -n -e 's/.*?(\d+)%.*/$1/;chomp;print "$_...";if ($_ <= 15) {`notify-send batalert:$_`};';sleep 180;done
Would like a beep, but can't get one, no PC speaker on MacBook Air and mplayer buffers.

Change X / Openbox screen brightness on CLI

sudo apt-get -y install xbacklightxbacklight +10xbacklight +10xbacklight +10xbacklight -10xbacklight -10xbacklight -10

Recover wireless of Ubuntu on MacBook Air 4,2

sudo apt-get --reinstall install bcmwl-kernel-sourcesudo modprobe -r b43 ssb wl brcmfmac brcmsmac bcmasudo modprobe wl Broadcom 802.11 Linux STA wireless driver source

wicd: Could not connect to wicd's D-bus interface

I don't know why, she swallowed the fly.

After

Wicd needs to access your computer's network cardsCould not connect to wicd's D-Bus interface
Do

sudo mv -v /etc/resolv.conf /etc/resolv.conf.backupsudo ln -s /run/resolvconf/resolv.conf /etc/resolv.confsudo rm -v /var/lib/wicd/resolv.conf.origsudo service wicd startyum -y install wicd-gtkwicd-gtk Taken: http://linuxforums.org.uk/index.php?topic=10995.0

Zenoss on Amazon Linux

Someone saved my life tonight, Sugarbear: http://binarynature.blogspot.com/2012/11/zenoss-core-4-installation.html

Also taken: http://magazine.redhat.com/2007/12/04/hacking-rpms-with-rpmrebuild/

WARNING: USE AT OWN RISK
remove non-critical, unmet dependencies in rpmget good version of rpmrebuildwget ftp://fr2.rpmfind.net/linux/opensuse/ports/update/12.3/noarch/rpmrebuild-2.9-7.4.1.noarch.rpmyum localinstall rpmrebuild-2.9-7.4.1.noarch.rpmwget http://downloads.sourceforge.net/project/zenoss/zenoss-4.2/zenoss-4.2.4/4.2.4-1897/zenoss_core-4.2.4-1897.el6.x86_64.rpmrpmrebuild -e -n -p zenoss_core-4.2.4-1897.el6.x86_64.rpmremove linesRequires:      libgcj%dir %attr(0755, root, root) "/etc/sudoers.d"# ensure that the system uses the /etc/sudoers.d directorySUDOERSD_TOKEN="#includedir /etc/sudoers.d"SUDOERSD_FOUND=`/bin/egrep "^$SUDOERSD_TOKEN" /etc/sudoers`if [ -z "$SUDOERSD_FOUND" ]; then   echo "# zenoss rpm, ensure that /etc/sudoers.d loads"…

Listen to internet radio without Flash on Mac and Linux CLI

NOTE: nice classical music option! https://github.com/klutometis/radio/blob/master/radio.sh
OS typeMacbrew install mplayerSee this if you hit the bug: https://github.com/mxcl/homebrew/issues/23503Linux (Debian-based)apt-get install mplayerplay on CLImplayer <stream>e.g. mplayer http://www.antenne.de/webradio/channels/das-schlager-karussell.m3u  Or/else: paste stream link into a browser directlyuse VLC to play stream

Read ext4 on Mac

install xcodeinstall brewbrew install ext4fusefollow any instructions on changing permissionsext4fuse <device> <mountpoint>