Thursday, November 19, 2009

change runlevel in ubuntu

There is ni /etc/inittab file in Ubuntu because Ubuntu has /etc/event.d/rc-default file

You can fix this problem by editing /etc/event.d/rc-default file
First backup file,
Code:
sudo cp /etc/event.d/rc-default /etc/event.d/rc-default.bakup
Open vi /etc/event.d/rc-default
Code:
sudo vi /etc/event.d/rc-default
Find all lines read as - telinit 2 and replace with telinit 3
Code:
telinit 3
Reboot the system

Debian Linux

Debian, as well as most of the distributions based on it, like early Ubuntu, does not make any distinction between runlevels 2 to 5.

Debian Linux runlevels
ID Description
0 Halt
1 Single-User mode
2-5 Full Multi-User with console logins and display manager if installed
6 Reboot

[edit] Ubuntu

Ubuntu 6.10 (Edgy Eft) and later contain Upstart as a replacement for the traditional init-process, but they still use the traditional init scripts and Upstart's SysV-rc compatibility tools to start most services and emulate runlevels.

Wednesday, October 21, 2009

err when remod


ERROR: Removing 'hello': Device or resource busy

how to fix it? see below:
http://kerneltrap.org/node/15857

Thursday, October 8, 2009

HD on youtube

&fmt=18

add this code to the end of the url of youtube, you can watch HD video

Wednesday, September 16, 2009

gnd problem

之前已發現allegro中,gnd的rat已沒有顯示,
不過當時還以為如果沒有電氣連接,
在DRC check中可以檢查出來,
不過這次的電機控制板說明,是不可以的,
現在可以想到的解決辦法,
只能手工把這些網路連接起來。

Wednesday, August 26, 2009

RGBToJpegFile

BOOL JpegFile::RGBToJpegFile(CString fileName,
BYTE *dataBuf,
UINT widthPix,
UINT height,
BOOL color,
int quality) // quality value 1-100.



Tuesday, August 25, 2009