Thursday 23 February 2012

Redhat 6 on POWER 6 using VNC

1. How to clone : use dd command and then if u had done the network config, now you should edit the ifcfg-eth0/1/2/3/??? and change the HW address inside those file(s) following your target machine, otherwise the target has eth2/3 instead of 0/1 (if u have 2 ports)


2. Install as normal, by using SMS mode in POWER6 (either by choose "open firmware" from advance button in "activate" profile section OR press an immediate number 1 after menu booting)


3. If you overwrite an AIX LPAR, installation will fail with message "vfs unable to mount". In this case you go to Open firmware (either by choose "open firmware" from advance button in "activate" profile section OR press an immediate number ? after menu booting). In OF prompt, type "dev nvram" and then "wipe-nvram".


4. Reboot again and go to SMS mode again.

5. Type "tab" to see available option (rescue, vnc, auto=nodmraid), or just enter to pass through.

6. No need test media

7. Everything as normal until.. the selecting disk

8. When you see the menu contain 3 options (Enitre disk, free space, overwrite linux partition), below that there is supposed to be disk(s) that you can use. if not there, can lead to hang when u do something.

9. Figure out first why the disk(s) are not there.

10. After solved, go as normal.

11. Redhat 6 does not install many thing by default / only 2GB.

12. install createrepo by rpm command in cd-linux-ppc64/Packages (must install 2 dependencies bfore that, which is told after you run that command).
run : createrepo target-directory-where-the-repodata-local-reside

13. configure group installation: createrepo -g cd-linux-ppc64/repodata/xxxxx-comps-xxxx.xml target-directory-where-the-repodata-local-reside (must install 2 dependencies bfore that, which is told after you run that command)

13. yum grouplist

14. yum install Desktop

15. yum install tigervnc

16. activate : vncserver (config in /usr/bin/vncserver file), can see ur current options ps -ef | grep Xvnc, can initally use the option like vncserver -geometry 1024x768 -geometry 800x600. Then form client you can choose which, by command xrandr

17. from vncviewer somewhere : use IP and port 590X (X should be 1 for the first vncserverprocess) Might need to stop iptables services first.

18. can test in terminal : xset q --> to see the vnc properties

19. mmhh, but maybe you dont have terminal yet, install xterm. or install gnome-terminal. better yet install with gnome-terminal-xxxxxx to make "open terminal" available in right-click desktop.

20. Now u might see the font in gnome terminal is weird, in this case you must install packages bitmap-xxxxx, and use that font.

Wednesday 1 February 2012

Disabling usb storage devices on windows XP

Disabling at BIOS:
Problem is your usb mouse/keyboard might not work.


Using gpedit:

Basically works well to prevent but only prevent for plug-before usb storage.
This one is same like u do manually in the regedit HKLM/CCS/Services/Usbstor/start value 4.
But gpedit will update periodically incase registry is changed by someone.

TIPS : use removeable device adm template which can donwnload at internet, import it by gpedit.msc, and when view PLEASE use "filter" and untick "ALL the RADIO button" otherwise you will see nothing in the right view of gpedit.msc

TROUBLE : when you plug a new-plug usb disk, it will change the "start" value to "3" and can be used after it automatically install the driver.

Tricks : Go to usbstor KEY and set permission to nothing can do anything, additionally also go to usbstor.sys file in \windows\system32\drivers and alter permission to nothing again.

In this point, the newly-plug usb device is detected but driver installation will fail. when you attach again next time the usb device will not be detected cause it is already plug-before usb device.