20111214

Android 2.2.2 - LG Optimus V wifi tether

I tried different wifi tethering apps (like 'quick settings') but they don't work.  Everytime I try to connect it would say 'network not available' . To get tethering to actually work I had to root the phone then download 'wifi tether' from the android market.

The source below wrote a great how to. The only thing I would add is to browse the site and download the jailbreak (gingerbreak) directly from your phone.


http://www.itsmytechworld.com/android-device/howtorootandroidversionfroyo222

vmware-cmd suspend example

list vm's
vmware-cmd -U username -P password -H servername -l

get a vm 's state
vmware-cmd -U username -P password -H servername /vmfs/volname/vmname/vmname.vmx getstate

suspend a vm's
vmware-cmd [vm-cfg-path] start [powerop_mode]
vmware-cmd -U username -P password -H servername /vmfs/volname/vmname/vmname.vmx suspend soft

If you are wondering why i put this half ass post together. I did it b/c every article I found online only mentioned to add suspend at the end of the command and it didn't work. I had to also specify the powerop_mode

vmware-cmd [vm-cfg-path] suspend [powerop_mode]   powers on a previously powered off or resumes a suspended virtual machine. The [powerop_mode] could be contain one of the following: ‘hard’, ‘soft’ or ‘trysoft’. If this option is not defined the default value will be soft.

20111201

raritan dominion kx ii - error vm share mode denied

i kept getting error about vm share mod off (or something like that) when I try to connect an iso through usb. I wish I saved the exact error message.. anyway, the resolution was to update the firmware on the specific port.

go to maintenance, cim firmware upgrade, and upgrade the one with the problem. From what i can recall, I upraded the firmware on the whole unit itself awhile back and that gave me the latest CIM firmware...

hope this helps someone out there as google didnt show any results...
oh and ignore grammer and syntax...im lazy

20111130

freebsd 8.2 vmware-toolbox-cmd timesync


I was trying to use vmware timesync because every time i suspend freebsd the ntpd daemon dies and i loose sync.. I used to write a cron to fix that but I decided to test vmware's time sync feature

to enable it i ran
vmware-toolbox-cmd timesync enable

but I got error

/libexec/ld-elf.so.1: Shared object "libintl.so.8" not found, required by "libglib-2.0.so.0"


/libexec/ld-elf.so.1: Shared object "libpcre.so.0" not found, required by "libglib-2.0.so.0"



the fix:

ln -s /usr/local/lib/libintl.so.9 /usr/local/lib/libintl.so.8

ln -s /usr/local/lib/vmware-tools/lib64-63/libpcre.so.0/libpcre.so.0 /usr/local/lib/

setup static address in openSUSE 12

stupid shit doesn't match SLES or Redhat..

vi /etc/sysconfig/network/ifcfg-eth0


BOOTPROTO='static'
BROADCAST=''
ETHTOOL_OPTIONS=''
IPADDR='192.168.0.164'
MTU=''
NAME='82545EM Gigabit Ethernet Controller (Copper)'
NETMASK='255.255.255.0'
NETWORK=''
REMOTE_IPADDR=''
STARTMODE='auto'
USERCONTROL='yes'


the gateway can't be specified in ifcfg-eth0 or /network


vi /etc/sysconfig/network/routes


default 192.168.0.1 - -

installing vmware vsphere CLI v5 on debian 6


aptititude install libxml-libxml-perl  perl-doc  libssl-dev e2fsprogs libarchive-zip-perl libcrypt-ssleay-perl libclass-methodmaker-perl libdata-dump-perl libsoap-lite-perl

echo "ubuntu" > /etc/tmp-release
export httpproxy=
export ftp_proxy=

also a note: When I was running at 256mb the server would run out of memory. I had to bump it up to 1gb ram to install.


sources
http://www.digitalllama.net/2011/02/vmware-vsphere-cli-install-on-debian.html
http://communities.vmware.com/message/1862765#1862765

20111116

Arch Linux and Cisco Anyconnect vpn

I got Arch Linux to run Cisco anyconnect 2.5.3041 vpn.


  • Basically the auto install fails and it lets me manually install vpnsetup.sh
  • I ran the script as root but it fails b/c it tries to look for lsmod in /sbin and arch has it in /bin. The easiest solution was to create a symlink ln -s /bin/lsmod /sbin/lsmod
  • Then I manually installed my company profile.xml into /opt/cisco/vpn/profile/ (I got a copy of the profile from my mac machine)
  • last I manually started the vpn client /opt/cisco/vpn/bin/vpnui & 
Google didn't help so I am writing this to say it works

20111110

changing SKINS amule.conf, amuled, amuleweb, remote.conf

ok really annoying as i keep forgetting how to add diff skins in a mule so I'm writing this as a ref point

create amuleweb config ONLY if you don't have one.
amuleweb --write-amuleweb --write-config --host=localhost --admin-pass=adminpassword -t chicane -a -G guestpassword




man amuleweb (it is very helpful)


it saved to remote.conf by default but you can copy the results to amule.conf and run
amuleweb --amule-config-file=/home/al/.aMule/amule.conf &



example remote.conf:
al@vmsrvub102:~$ cat .aMule/remote.conf 
Locale=
[EC]
Host=localhost
Port=4712
Password=
[Webserver]
Port=4711
UPnPWebServerEnabled=0
UPnPTCPPort=50001
Template=chicane
UseGzip=0
AllowGuest=1
AdminPassword=
GuestPassword=


To find skins run

$ locate amule
output:
/usr/share/amule/webserver




I took pictures of templates for reference.


chicane


default


litoral


php-default


20110922

building fuppes 660 on ubuntu 10.04


These instructions are originally from here but I made some minor modifications b/c it didn't work using the original instructions. I tried installing the fuppes660.getdeb.deb package but I didn't get video support with it.


add universe and multiverse to your sources.list
Install Dependencies:
aptitude install autoconf build-essential \
ffmpeg gettext libavformat-dev libexiv2-dev libfaad-dev \
libffmpegthumbnailer-dev libmad0-dev libmagickcore-dev libmagickwand-dev \
libmp3lame-dev libmp4v2-dev libmpcdec-dev libpcre3-dev libsimage-dev \
libsqlite3-dev libswscale-dev libtag1-dev libtool libtwolame-dev \
libxml2-dev subversion uuid-dev
Get the source code:
wget http://downloads.sourceforge.net/project/fuppes/fuppes/SVN-660/fuppes-0.660.tar.gz
tar xfv fuppes-0.660.tar.gz
cd fuppes-0.660
Confgure the source code:
autoreconf -vfi
./configure --prefix=/usr --enable-faad --enable-lame --enable-mad \
--enable-transcoder-ffmpeg --enable-twolame --disable-imagemagick --disable-ffmpegthumbnailer (this caused make error so I disabled it)
make
Install:
sudo make install

20110919

rsyslogd: could not open dynamic file ... - discarding message

ubuntu 10.04.3 LTS 

issue: 
error showing up in /var/log/syslog 
"could not open dynamic file ... - discarding message"

cause: 
/etc/rsyslog.conf parameter
     $PrivDropToUser syslog
     $PrivDropToGroup adm

fix: comment those two lines out and my syslog starting creating the files just fine. I didn't have to change the rsyslog permissions or anything else.


what's strange is the sources online said to do the complete opposite?!
https://bugs.launchpad.net/ubuntu/+source/rsyslog/+bug/484336
http://kb.monitorware.com/trouble-getting-dynamic-files-work-t10054.html
http://ilostmynotes.blogspot.com/2010/01/using-rsyslog-to-log-with-dynamic-file.html

20110908

evms_activate is not available - cryptsetup luks broken

ubuntu 11.04

I removed my encrypted swap from /etc/crypttab and /etc/fstab and next reboot caused a problem

evms_activate is not available



Here is what I did to fix it:


-boot of live cd into rescue mode
-vgscan
-vgchange -ay (activating my volume group)
-cryptsetup luksOpen /dev/mapper/vg-root   vg-root_crypt (unencrypting my lv root)
-mount /dev/mapper/vg-root_crypt   /mnt
-mount /dev/sda /mnt/boot (wherever the boot loader is)
-for i in /dev /dev/pts /proc /sys; do sudo mount $i /mnt$i; done
-chroot /mnt
-dpkg-reconfigure grub-pc
-dpkg-reconfigure linux-image-2.6.38-11-generic (whatever your latest is)
-update-grub
-grub-intall /dev/sda (wherever the boot loader is)


disclaimer: This is a scratchpad. I write without spell/grammar check without a care. Research before you run what I typed here.

20110902


Error: xxxx requires the cURL extension.

fix was
aptitude install php5-curl && /etc/init.d/apache2 restart

20110829

a freebsd v8.2 VM on virtualbox v4.1 headless

bridge network does work if you change the nic type

example:
vboxmanage modifyvm MYvmNAME --nictype1 Am79C970A

20110817

arch linux - gnome v3


I couldnt get the network-manager-applet to auto start on startup or after wake up. Installing wicd fixed the issue. Oh, and wicd does not intergrate with gnome 3 taskbar.

20110811

creating a new .bashrc in Mac OS X
or  .profile .bash_profile

vi ~/.bashrc
add your PATH
PATH=$PATH:/sbin:/usr/sbin
export PATH


add location to alias file

if [ -f ~/.bash_aliases ]; then
    . ~/.bash_aliases
fi


reload config "source ~/.bashrc"


I found that if I hose my terminal and cant get back in I can run commands by right clicking the terminal from the dock.

20110607

kept getting nagios error check_by_ssh

remote execution failed @@@@@@

i found

/var/lib/nagios/.ssh/known_hosts

is where you need to remove offending host

20110306

Nagios on Debian v6.0 Squeeze
Example check_tcp

define service{
     use generic-service
     host_name vm-arch
     service_description eMule-HTTP
     check_command check_tcp!4711
}

I'm writing this because the other examples I found did not work