:::: MENU ::::

2009/12/27



          Telnet is an insecure service. It is recommended that you use ssh service. However sometime telnet server or service is needed. Here are instructions to enable telnet:

Install telnetd server

sudo apt-get install telnetd
Restart inetd service:
sudo /etc/init.d/openbsd-inetd restart

2009/12/26

 

 What is vi?

The default editor that comes with the UNIX operating system is called vi (visual editor). [Alternate editors for UNIX environments include pico and emacs, a product of GNU.]
The UNIX vi editor is a full screen editor and has two modes of operation:
  1. Command mode commands which cause action to be taken on the file, and
  2. Insert mode in which entered text is inserted into the file.
In the command mode, every character typed is a command that does something to the text file being edited; a character typed in the command mode may even cause the vi editor to enter the insert mode. In the insert mode, every character typed is added to the text in the file; pressing the (Escape) key turns off the Insert mode.
While there are a number of vi commands, just a handful of these is usually sufficient for beginning vi users. To assist such users, this Web page contains a sampling of basic vi commands. The most basic and useful commands are marked with an asterisk (* or star) in the tables below. With practice, these commands should become automatic.
NOTE: Both UNIX and vi are case-sensitive. Be sure not to use a capital letter in place of a lowercase letter; the results will not be what you expect.


To Get Into and Out Of vi


To Start vi

To use vi on a file, type in vi filename. If the file named filename exists, then the first page (or screen) of the file will be displayed; if the file does not exist, then an empty file and screen are created into which you may enter text.



There seems to be a known bug with the Gnome Network Manager included with the Ubuntu 8.10 release that resets any static ip address settings that are set manually when the system is rebooted reverting back to a DHCP setup. These steps will remove the Gnome Network Manager and help you manually setup the required files for your static network configuration.


Solution 1
Step 1 – Remove the Gnome Network Manager: You need to complete this step first because if left installed this application will overwrite any changes you make to your configuration when the system is rebooted. This is apparently where the bug is located.
To remove the Gnome Network Manager issue the following command in the terminal:
sudo update-rc.d -f NetworkManager remove
This will disable and remove the Gnome Network Manager application. Now you will have to edit your configuration manually.
Restart your System
Step 2

2009/12/13

A. Những điểm chưa đúng ở bài cũ trước đây:

Thứ 1: Điểm đầu tiên chưa thật chính xác ở bài cũ là tác giả khuyên dùng ngay sysprep ở trên bất cứ máy tính đang chạy XP. Trong trường hợp máy này có sẵn card sound, modem, card màn hình đều riêng và nếu làm Sysprep để chạy trên các máy khác sound on board sẽ tạo ra quá nhiều bị rác rến do driver thừa thãi quá nhiều, hay khác nhau như chipset Sis hay Intel .. trong WinXP này dù là không cần đến, đều có thể gây xung đột sau này.

Do vậy, muốn làm Ghost XP chạy cho nhiều máy cấu hình khác nhau, bạn phải chuẩn bị trước: Không phải làm trên bất kỳ máy nào mà tốt là nên làm Sys prep trên máy chưa gắn bất cứ card PCI nào ( sound modem , TV card.. ) . Như thế, khi reboot máy lại nó sẽ cập nhật lại dễ dàng các driver thêm vào ở các Slot PCI như card sound hay card màn hình

Thứ 2: Điểm sai thứ hai là trong các mục License agreement khi chạy file setupmgr.exe , tác giả lại nói chọn yes , fully automate là sai, phải chọn là not, not fully automate.
Vì như thế khi phần đặt tên name mới để trống, dành riêng cho Sysprep làm việc được . Nếu không, tên này khó thay đồi tuỳ theo máy khác nhau được .

Thứ 3:

2009/12/07