Princess Charmaine’s Honey Store
August 2nd, 2009Hey all, princess Charmaine now has a small honey store (http://store.ourfeistyprincess.com/). As we are all new in running a online store, please bare with us if we made any mistake.
Hey all, princess Charmaine now has a small honey store (http://store.ourfeistyprincess.com/). As we are all new in running a online store, please bare with us if we made any mistake.
Finally I backed up all my files and installed Ubuntu 9.04 (Jaunty Jackalope). When my flashy new
system boot up, I tried to set my “Visual Effect” to “Extra” but it keeps failing.
After a little bit of googling, I found a solution on Ubuntu Forum which resolve the problem by:
$ sudo vi /usr/bin/compiz:69” and press enter)#” sign in front of the line.Then you can logout the current user and login. You should now be able to set your “Visual Effect”!!
Problem: On my HP 8510p Laptop running Ubuntu 8.10, the key mapping for VMWare is screwed up.
Solution: Simple solution is to do
$ echo 'xkeymap.nokeycodeMap = true’ > ~/.vmware/config
Problem: In my office I have a Canon LBP3300 with a network card configured. It used to run with a Windows machine as a print server and now that it has a network card, I would like to print to it. Apparently. it is not as simple as I think it would be on Ubuntu.
Solution: The installation steps for those who are interested:
$ sudo -i# wget http://software.canon-europe.com/files/soft31118/software/CAPTDRV180.tar.gz
# tar xf CAPTDRV180.tar.gz
# cd CANON_UK/Driver/Debian
# dpkg -i cndrvcups-capt_1.80-1_i386.deb cndrvcups-common_1.80-1_i386.deb
# /etc/init.d/cups stop
# mkdir /var/ccpd
# mkdir /var/captmon
# mkfifo /var/ccpd/fifo0
# chmod 777 /var/ccpd/fifo0
# chown root /var/ccpd/fifo0
# chmod -R a+rX /usr/share/cups/model
# /usr/sbin/lpadmin -p LBP3300 -m CNCUPSLBP3300CAPTK.ppd -v ccp:/var/ccpd/fifo0 -E
# /usr/sbin/ccpdadmin -p LBP3300 -o net:192.168.1.200
# vi /etc/apparmor.d/usr.sbin.cupsd----- /etc/apparmor.d/usr.sbin.cupsd -----
/var/run/cups/ rw,
/var/run/cups/** rw,
/var/spool/cups/ rw,
/var/spool/cups/** rw,
# needed for Canon CAPT driver ### <-----insert
/var/ccpd/** rw, ### <-----insert
# third-party printer drivers; no known structure here
/opt/** rix,
----- /etc/apparmor.d/usr.sbin.cupsd -----
# /etc/init.d/cups start
# /etc/init.d/ccpd start
# /etc/init.d/apparmor restart
Problem: Oracle 9i is old but still there are people who is using it. There is quite a bit of steps that need to be taken to install Oracle 9i on CentOS 4.7 (I am not sure if Oracle 9i will ever work on CentOS 5). There are information (bits and pieces) on the Web, I want to record down step by step instruction of installation of Oracle 9i on CentOS 4.7
Solution: The installation is not very hard:
yum install compat-gcc-32 compat-gcc-32-c++ compat-libstdc++-296 compat-l
ibstdc++-33unzip p3006854_9204_LINUX.zip
cd 3006854
sh rhel3_pre_install.sh
#include <errno.h>
#include <sys/syscall.h>
#include <sys/types.h>
#include <sys/wait.h>
pid_t
__libc_wait (int *status)
{
int res;
asm volatile ("pushl %%ebx\n\t"
"movl %2, %%ebx\n\t"
"movl %1, %%eax\n\t"
"int \$0x80\n\t"
"popl %%ebx" : "=a" (res)
: "i" (__NR_wait4), "0" (WAIT_ANY), "c" (status), "d" (0), "S" (
0));
return res;
}gcc -O2 -shared -fpic -xc libwait.c -o libcwait.solibwait.so into /etc/ld.so.preloadcd /usr/bin/
mv gcc gcc34
mv gcc32 gcc/etc/sysctl.conf:# Oracle parameters
kernel.shmall = 2097152
kernel.shmmax = 2147783648
kernel.shmmni = 4096
# semaphores: semmsl, semmns, semopm, semmni
kernel.sim = 256 3200 100 142
fs.file-max = 65536
net.ipv4.ip_local_port_range = 1024 65000
kernel.msgmni = 2878
kernel.msgmax = 8192
kernel.msgmnb = 65535/sbin/sysctl -pgroupadd dba
groupadd oinstall
useradd -c "Oracle software owner" -g oinstall -G dba oracle~/.bash_profile:# Oracle setting
export LD_ASSUME_KERNEL=2.4.19
export ORACLE_BASE=/opt/app/oracle
export ORACLE_HOME=$ORACLE_BASE/product/9.2.0
export ORACLE_SID=p9test
export ORACLE_TERM=xtermexport NLS_LANG=AMERICAN
export ORA_NLS33=$ORACLE_HOME/ocommon/nls/admin/data
export LD_LIBRARY_PATH=$ORACLE_HOME/lib:/lib:/usr/lib:/usr/local/lib
export PATH=$PATH:$ORACLE_HOME/binrunInstallProblem: I was having this problem that need to kill all processes of a user in a cron job and start the processes again using a in a particular user space.
Solution: Might not be the most elegant solution. However, I chose to go with pkill and su. So, a sample bash file:
#/bin/bash
/usr/bin/pkill -u userid
su - userid -c /path/to/startup
Then, just run the bash in a cron job.
Problem: All of a sudden, my totem player in Ubuntu 8.10 start up in full screen mode and can’t leave full screen mode.
Solution: There is a simple solution for this:
rm ~/.config/totem/state.ini