Proper way to delete channel/repository/packages in Spacewalk

This is the way to remove the channel together with repository. It will also remove the packages from the file system. The workflow is as follows: remove subchannels and master channel remove repos remove orphan packages sync/clean up file system…

Docker: Error running DeviceCreate (createSnapDevice) dm_task_run failed

Reconfigure Docker instance running out of the space. Recreate data file up to 20GB. service docker stop rm -rf /var/lib/docker /etc/init.d/docker restart dd if=/dev/zero of=/var/lib/docker/devicemapper/devicemapper/data bs=1G count=0 seek=20

Format JSON in Vim

Very quick and easy solution to format API JSON response within the Vim. :%!python -m json.tool

Spacewalk not responding – “Starting tomcat6: Error code 4”

In case you see “Starting tomcat6: Error code 4”, make sure you have some free space on the file system…

Nagios time in far future

In case of the time being too far in the future you can go to: /etc/init.d/nagios stop mv /var/nagios/retention.dat{,.old} /etc/init.d/nagios start/etc/init.d/nagios stop mv /var/nagios/retention.dat{,.old} /etc/init.d/nagios start

OpenWrt on TP-LINK TL-WR904N

I have successfully installed OpenWrt Attitude Adjustment 12.09 on TP-LINK TL-WR904N Rev. 1.0 Ver 1.3. This HW is not described on OpenWrt HW list, but I have flashed it successfully with openwrt-ar71xx-generic-tl-wr941nd-v4-squashfs-factory.bin. BusyBox v1.19.4 (2013-03-14 11:28:31 UTC) built-in shell (ash)…

OpenWrt on Tenda W307R

I have successfully installed OpenWrt Attitude Adjustment 12.09 on Tenda W307R Rev. V2.0. This HW is not described on OpenWrt HW list, but I have flashed it successfully with openwrt-ramips-rt305x-w306r-v20-squashfs-factory.bin. BusyBox v1.19.4 (2013-03-15 02:26:13 UTC) built-in shell (ash) Enter ‘help’…

Set window name in Tmux to hostname

This is the quick way to set window name to hostname connected to. printf "\033k`hostname -s`\033\\"printf "\033k`hostname -s`\033\\" See http://superuser.com/questions/249293/rename-tmux-window-name-to-prompt-command-ps1-or-remote-ssh-hostname

Fork me on GitHub