Skip to main content

Posts

Authorization error with API user knife initialization `knife configure -i`

Notice these errors. First error shows the API user of knife (root) failed to authenticate: # knife client list WARN: HTTP Request Returned 401 Unauthorized: Failed to authenticate! /usr/lib/ruby/1.8/net/http.rb:2101:in `error!': 401 "Unauthorized" (Net::HTTPServerException) from /usr/lib/ruby/gems/1.8/gems/chef-0.9.6/lib/chef/rest.rb:217:in `api_request' from /usr/lib/ruby/gems/1.8/gems/chef-0.9.6/lib/chef/rest.rb:268:in `retriable_rest_request' from /usr/lib/ruby/gems/1.8/gems/chef-0.9.6/lib/chef/rest.rb:198:in `api_request' from /usr/lib/ruby/gems/1.8/gems/chef-0.9.6/lib/chef/rest.rb:101:in `get_rest' from /usr/lib/ruby/gems/1.8/gems/chef-0.9.6/lib/chef/api_client.rb:185:in `list' from /usr/lib/ruby/gems/1.8/gems/chef-0.9.6/lib/chef/knife/client_list.rb:35:in `run' from /usr/lib/ruby/gems/1.8/gems/chef-0.9.6/lib/chef/application/knife.rb:115:in `run' from /usr/lib/ruby/gems/1.8/...

Wavecom WMOD2 manuals / AT commands

http://mirakulo.com/pub/wavecom-wmod2/ [ ] WMOD2Buserman.pdf 20-Jun-2010 16:27 164K [ ] X421Modem.zip 20-Jun-2010 16:28 578K [ ] XModem_dwl_v10.PDF 20-Jun-2010 16:28 599K [ ] atph2step3.pdf 20-Jun-2010 16:27 1.4M [ ] step3relnote7c.pdf 20-Jun-2010 16:28 58K

Docsis-server install in Ubuntu 8.04

Base guide is here http://users.accesscomm.ca/docsis_server/howto_1.html I installed docsis first so this package might have dependencies already installed from docsis. wget http://users.accesscomm.ca/docsis_server/docsis-server-current.tar.bz2 bunzip aptitude install m4 ./configure it will look for m4 see if m4 is installed `which m4` if not, aptitude install m4 if already installed, mod configure script to do the m4 check correctly: look for this line, if test "x$ac_is_gnu_m4" = "xGNU"; then change it to: if test "x$ac_is_gnu_m4" = "xm4"; then run ./configure again if you get this error: checking for mysql_config... /usr/libexec/mysql_config configure: error: You need at least mysql 4.0.0, get it at http://www.mysql.com aptitude install mysql-client mysql-server libmysqlclient15-dev run ./configure again make make install verify root@tds-stg-dhcp02:~/docsis_server-3.5# ls /usr/local/sbin/ Count_IPs Delete_Old_Leases FindIP ListMessa...

docsis source code install in Ubuntu 8.04

wget http://downloads.sourceforge.net/project/docsis/docsis/docsis-0.9.5/docsis-0.9.5.tar.gz?use_mirror=nchc untar goto docsis-0.9.5 dir aptitude install m4 bison libsnmp-base libsnmp15 snmpd libsnmp-dev flex ./configure it will look for m4 see if m4 is installed `which m4` if not, aptitude install m4 if already installed, mod configure script to do the m4 check correctly: look for this line, if test "x$ac_is_gnu_m4" = "xGNU"; then change it to: if test "x$ac_is_gnu_m4" = "xm4"; then run ./configure again it will look for bison, aptitude install bison and run ./configure again `make` make sure you install flex or you will get an error from sed about a file not being found if you get an error about floor: undefined reference to `floor' goto root@tds-stg-dhcp02:~/docsis-0.9.5# vim src/Makefile look for this line: LINK = $(LIBTOOL) --mode=link --tag=CC $(CCLD) $(AM_CFLAGS) $(CFLAGS) \ $(AM_LDFLAGS) $(LDFLAGS) -o $@ and add the math funct...

UUID conflict and iclassify

If you noticed that iclassify node is overwritten when updating facts using icagent, this is because icagent UUID is conflicting. At first, I thought it's VMware's BIOS UUID. Download and install a fresh copy of iclassify (with icagent), and run to initialize a fresh icagent UUID. You might encounter: agent.rb:26:in `initialize': undefined method `random_create' for UUID:Class (NoMethodError) Fix: use uuidtools (1.0.3)

iClassify sv errors

Problem: 5000: false: warning: /etc/sv/mongrel-iclassify-5000: unable to open supervise/status: file does not exist 5001: false: warning: /etc/sv/mongrel-iclassify-5001: unable to open supervise/ok: file does not exist 5002: false: warning: /etc/sv/mongrel-iclassify-5002: unable to open supervise/ok: file does not exist 5003: false: warning: /etc/sv/mongrel-iclassify-5003: unable to open supervise/ok: file does not exist 5004: false: warning: /etc/sv/mongrel-iclassify-5004: unable to open supervise/ok: file does not exist Fix: I am not sure if this is the correct combination: aptitude install svtools Reboot machine.

Ebay scammer

+639056538210 09056538210 Gene Paminiano Claiming to be his wife: Ramona Carmen Paminiano City States savings account# 011-22-001124-3 TIP: Do not push with the transaction without hearing the seller/buyer's voice on the phone. Record the conversation for publicity purposes.

Zenoss: monitor free VMWare ESXi version

We confirmed that the free ESXi version does not allow SNMP gets, only traps. The original script was taken from here: http://communities.vmware.com/docs/DOC-7170 Modified script: http://mirakulo.com/pub/esxi/check_esx_wbmem.py We added Fan and power supply, hinted from this page: http://www.stephenjc.com/2009/01/whatsup-vmware-esxi-monitor-these.html Use this guide to add the Data source: http://www.zenoss.com/community/docs/howtos/create-modify-nagios-templates Added as template under: /Devices /Server /VMWare /ESXi /Templates /esxi-monitor /check_esx_wbmem Name: check_esx_wbmem Source Type: Command Enable true Use SSH false Component: blank Event class: /VMWare/ESXi Severity: Error Cycle time: 60 Parser: auto Command template: /usr/local/zenoss/python/bin/python /opt/zenoss/libexec/check_esx_wbmem.py https://${dev/manageIp}:5989 root passwd To bind this template to ESXi nodes, go to the device: Example: /Devices /Server /VMWare /ESXi /esxi-01.prod.corp.org then to its temp...

Auto-update putty session list in mRemote

> Steps to repro: > > 1) Create a connection with Protocol set to SSH2. > 2) Browse Putty session list. (Ooops. I want to use a session in the list) > 3) Create the session under Putty > 4) Go back to mRemote and browse Putty session list. > > Session list still does not have the newly created session. The author suggested: start putty by going to Tools - Options - Advanced - Launch PuTTY solves the problem.

Ubuntu on Intel D945GCLF (with Intel Atom)

The rig: D945GCLF board Intel Atom @ 1.6GHZ w/HT It looks like it's a linux kernel bug: http://www.gossamer-threads.com/lists/linux/kernel/982159 The ethernet controller is: Realtek Semiconductor Co., Ltd. RTL8101E PCI Express Fast Ethernet controller (rev ff) does not seem to work in any of the Ubuntu versions. Fix: recompile the kernel with patch You can download my patched packages here (currently uploading, let me know if something is missing): http://mirakulo.com/pub/linux-image-2.6.24-21-patched/ NOTE: I got the .udeb packages because of this warning: dpkg-gencontrol: warning: deb package with udeb specific field Kernel-Version or you can do the following steps if you don't trust me: apt-get source linux-source-2.6.24 apt-get build-dep linux-source-2.6.24 aptitude install install devscripts build-essential fakeroot cd linux-2.6.24/ Get this patch: http://bugzilla.kernel.org/attachment.cgi?id=17604&action=view patch -p 1 debuild -us -uc -b Install the kernel that...

Stuff that sucks...

1) Linksys WRT54G v7 router . Constant hang that requires hard reboot, Atheros chipset that is currently not supported by dd-wrt firmware according to this . 2) Stage6 . Useless slow piece of shit. 3) Sonicwall VPN appliance. Shit that does not have a Linux client. (Update (2008/10/26 -- not really that shit. Great and easy interface. Lacking: native Linux VPN client and configuration diff logger.)

Windows XP optimization

These are some of the tweaks that I do to speed up my Windoze: - Display Properties > Themes > Windows Classic Theme - System Properties > Advanced > Performance > Adjust for best performance - System Properties > System Restore > Turn off - Disable File Indexing: From My Computer > right-click on the C: Drive > select Properties. Uncheck "Allow Indexing Service to index this disk for fast file searching." Apply changes to "C: sub folders and files," and click OK. - Clean Up Prefetch, temp, and cache files: Download CleanUp! - If VM, turn off Screen Saver. If VMWare, install VMWare Tools. - Defrag disks. Resources http://www.blifaloo.com/info/winxp_speed.php

SSH reverse tunnel

# ssh -nNT -R 10.36.1.6:14344:10.36.1.5:80 10.36.1.6 The "-n" option prevents reading from STDIN. Redirection from /dev/null to STDIN. "-N" tells ssh that the tunnel is not for executing remote commands. "-T" tells ssh not to allocate a pseudo-tty on the remote system. "-T" disables pseudo-tty allocation. Rough diagram: 10.36.1.5:80 To avoid timeout: In /etc/ssh/sshd_config on the server: TCPKeepAlive yes ClientAliveInterval 30 ClientAliveCountMax 99999 To enable binding address in ssh -R : GatewayPorts yes Man page docu for -R switch: -R [bind_address:]port:host:hostport Specifies that the given port on the remote (server) host is to be forwarded to the given host and port on the local side. This works by allocating a socket to listen to port on the remote side, and whenever a connection is made to this port, the connection is forwarded over the secure channel, and a connection is made to host port hostport from the local machine. Port for...

Debian apt GPG keys and repos

# wget http://ftp-master.debian.org/ziyi_key_2005.asc -O - | sudo apt-key add - # wget http://ftp-master.debian.org/ziyi_key_2006.asc -O - | sudo apt-key add - (replace 2006 with current year) deb ftp://sunsite.cnlab-switch.ch/mirror/debian/ unstable main contrib non-free Other keys: mdebian:~# gpg --keyserver wwwkeys.eu.pgp.net --recv-keys A70DAF536070D3A1 mdebian:~# gpg --keyserver wwwkeys.eu.pgp.net --recv-keys B5D0C804ADB11277 mdebian:~# gpg --armor --export A70DAF536070D3A1 | apt-key add - mdebian:~# gpg --armor --export B5D0C804ADB11277 | apt-key add -