Showing posts with label BS. Show all posts
Showing posts with label BS. Show all posts

Saturday, July 21, 2012

Installing new kernel (Debian/Ubuntu/Mint)

Should be quite easy?

 

Move kernel images and initrd to /boot

To probe disks on the system for other operating systems:

# os-probe

Search the new kernel images and update the grub configuration

# update-grub

Reboot!

Sunday, June 17, 2012

Linux Mint 13 Black Splash Screen

In Linux Mint the boot splash screen is completely black. According their website it is by design not a bug. If you want to change the splash screen you can select one by typing the following command and selecting mint-logo:

sudo update-alternatives --config default.plymouth

Saturday, June 02, 2012

postfix dovecot

I had been setting up my own server for website for like 10+ years but still this is my first time to get the e-mail working! Still excited!

I followed a website to use dovecot and postfix. Both are very easy to use! not like sendmail which is horribly complicated.

Basically you need the following packages: (Ubuntu 10.04)
aptitude install postfix dovecot dovecot-pop3d dovecot-imapd dovecot-postfix

For setup, the following is a good guideline:
http://wiki.centos.org/HowTos/postfix

Monday, February 27, 2012

Thursday, February 03, 2011

Typing Chinese in English Ubuntu10.10 or LinuxMint10

aptitude install scim scim-chinese scim-tables-zh

im-switch -z ll_CC -s scim

Sunday, January 23, 2011

command to display motherboard's model

command to display hardware:
$ sudo lshw | less

command to display motherboard's model:
$ sudo dmidecode | less

Wednesday, December 22, 2010

QQ at Ubuntu crash

QQ is a very popular instant messenger software in China. Links to download QQ for Linux:
http://im.qq.com/qq/linux/download.shtml

However, when it runs, it always crash.
(Currently I'm using Ubuntu 8.04LTS)

Edit the following file can solve the problem:
vi /usr/bin/qq
#!/bin/sh

add the following line:
export GDK_NATIVE_WINDOWS=true

Friday, October 30, 2009

USB OTG

USB is a good interface but it can be very complicated and confusing(probably only for developers?)

The USB mini-male has 2 types:

  • Mini-A-male

  • Mini-B-male



The USB OTG devices detect itself as a host or client depends on the ID pin(pin 4). USB Mini-A-male has internal wiring to tie the ID pin to GND, which let the host to identify itself as USB host.

While most of the USB Mini-male cable you see on the market is Mini-B-male, which leave the pin unconnected.

Thursday, June 21, 2007

wordpress import return admin.php

When importing wordpress to wordpress database, there are several problems I encountered.

  1. Unable to create directory "uploads"

  2. If your xml file is big, it forces you to download the admin.php after pressing the "Upload file and import" button.


Fixes:


  1. change mode of your upload directory to writable (chmod 777 uploads)

  2. edit the apache php.ini file to increase the file upload limits

    1. vi /etc/php5/apache2/php.ini

    2. change "memory_limit" from 8M to 20M, or more

    3. change "upload_max_filesize" from 5M to 20M, or more

    4. restart your apache server: /etc/init.d/apache restart





After all these modifications, you should be able to import your wordpress xml file. Good luck!