Saturday, December 29, 2012

debian no sound

turns out there are a few processes locked up the sound device lsof /dev/snd/* to find out what those processes are, and kill -9 those processes, then the sound works again for me

Wednesday, December 26, 2012

debian Logitech Z205 usb speaker

find your usb device through here cat /proc/asound/cards edit ~/.asoundrc 1 pcm.!default {
2 type hw
3 card 2
4 }
5 ctl.!default {
6 type hw
7 card 2
8 }
sudo /etc/init.d/alsa-utils restart

Tuesday, December 18, 2012

mysqld unknown option --skip-bdb

/usr/sbin/mysqld: unknown option '--skip-bdb' because Using BerkeleyDB is now discouraged as its support will cease in 5.1.12. so edit file /etc/mysql/my.cnf #skip-bdb

Saturday, December 1, 2012

easy_install uninstall

$ easy_install -m [PACKAGE] It removes all dependencies of that package then $ rm -rf .../python2.X/site-packages/[PACKAGE].egg

Saturday, November 17, 2012

scp download partial file

use this instead sudo rsync --partial --progress --rsh=ssh

Tuesday, October 23, 2012

mysqldump dump individual, ungrouped inserts

mysqldump dump individual, ungrouped inserts, so you can debug each insert. mysqldump --add-drop-table --extended-insert=FALSE --complete-insert=TRUE

Saturday, October 6, 2012

nikon d90 CHR (CHA) error

ERROR
got nikon d90 CHR (CHA) error today, turns out there are some dirt in the SD card, the
Solution:
I solved it by blowing some air to it (learned this from the Nintendo Cartridge days)

Wednesday, October 3, 2012

debian NO_PUBKEY 1C4CBDCDCD2EFD2A

Error:
GPG error: Release: The following signatures couldn't be verified because the public key is not available: NO_PUBKEY 1C4CBDCDCD2EFD2A

Solution:
gpg -a --output /tmp/pub.asc --export 1C4CBDCDCD2EFD2A sudo apt-key add /tmp/pub.asc && rm /tmp/pub.asc

Tuesday, October 2, 2012

magento disable checkout with multiple addresses

- Admin - System->Configuration - Left Menu->Sales section->Shipping Settings - Option->"Allow Shipping to multiple addresses" to "No"

Friday, September 28, 2012

linux extract .tar.bz2

to extract bz2 a bzipped file, use the following tar -jxvvf yourfile.tar.bz2

Wednesday, March 7, 2012

Disable ssh root direct login

in /etc/ssh/sshd_config
 
/PermitRootLogin yes

change to 
 
/PermitRootLogin no

then

/etc/init.d/ssh restart

Tuesday, March 6, 2012

linux check if two files are identical

linux check if two files are identical

use md5sum to check if their hash are identical

debian, linux, what is my current I/O scheduler?

debian, linux, what is my current I/O scheduler?

cat /sys/block/sda/queue/scheduler
cat /sys/block/sdb/queue/scheduler

difference between ubuntu server and ubuntu desktop

what is the difference between Ubuntu server and Ubuntu desktop?

Kernel Differences:

  • The Server Edition uses the Deadline I/O scheduler instead of the CFQ scheduler used by the Desktop Edition.
  • Preemption is turned off in the Server Edition.
  • The timer interrupt is 100 Hz in the Server Edition and 250 Hz in the Desktop Edition.

convert ubuntu 10.04 desktop edition to ubuntu 10.04 server edition

convert ubuntu 10.04 desktop edition to ubuntu 10.04 server edition

sudo apt-get update
sudo apt-get install linux-headers-server linux-image-server linux-server

Thursday, March 1, 2012

debian apt-get install trac 0.12

do this

sudo apt-get install trac

at this point you will install only  trac 0.11

then download Trac-0.12.3.tar.gz

tar -xpzvvf Trac-0.12.3.tar.gz

cd Trac-0.12.3

sudo easy_install Genshi

sudo python ./setup.py install

then finally a successful build of trac 0.12 on debian 5.0/6.0

Friday, February 17, 2012

Saturday, February 11, 2012

Tuesday, January 31, 2012

ubuntu 404 Not Found [IP: 91.189.92.169 80]

the ubuntu is no longer supported, so in /etc/apt/sources.list change http://us.archive.ubuntu.com/ubuntu/ to http://old-releases.ubuntu.com/ubuntu/

Monday, January 23, 2012

debian NO_PUBKEY AAFF4A5B336064B5

error message:

W: GPG error: http://deb.opera.com stable Release: The following signatures couldn't be verified because the public key is not available: NO_PUBKEY AAFF4A5B336064B5


reason:
key is outdated


solution:
wget -O - http://deb.opera.com/archive.key | sudo apt-key add -

Friday, January 6, 2012

hp laserjet p1102w setup on debian 6

hp laserjet p1102w setup on debian 6


commands:

wget http://prdownloads.sourceforge.net/hplip/hplip-3.11.12.run
 sh hplip-3.11.12.run


then run hp-setup to download some additional software then you are good to go