Linux Scroll

Just another WordPress.com site

Category Archives: Uncategorized

chkconfig

chkconfig – manage runlevel for system

$ chkconfig --list telnet

telnet 0:off 1:off 2:on 3:on 4:on 5:on 6:off

Set the telnet service on at level345:

$ chkconfig --level 345 telnet on

Set the telnet service off at level345:

$ chkconfig --level 345 telnet off

Add the telnet service:

$ chkconfig --add telnet

Delete the telnet service:

$ chkconfig --del telnet
Advertisements

Ubuntu support winrar

Install winrar:

$ sudo apt-get -y install rar unrar

gedit 中文乱码问题

gedit中文乱码问题

Alt + F2

gconf-editor
apps->gedit-2->preferences->encodings
auto_detected 增加GB2312
将GB2312值移到ISO-8859-15上面

Windows XP startup shell

Windows XP statuop shell

HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows NT\CurrentVersion\Winlogon\Shell

Launch root terminal

Quickly launch root terminal:

Alt + F2

$ gksu gnome-terminal

Apply patch file in linux

Use dry-run before apply patch:

$ patch --dry-run -p1 -i 000-fixed.patch

patching file coding.cpp

dry-run = simulate patch

If no error, apply the patch file:

$ patch -p1 -i 000-fixed.patch

patching file coding.cpp

Failure output:

$ patching file 000-fixed.patch

Hunk #1 FAILED at 819.

$ patch -p0 < fixed.patch

make: *** No rule to make target `menuconfig’. Stop. Compiling android

Compile android source code in ubuntu:
menuconfig must run in kernel folder:

$ make menuconfig