Monday, March 24, 2014

Windows 7 : Remove error "Cannot find 'csrcs.exe' make sure you typed the name correctly"

1.    Open Task Manager, locate this exe (csrcs.exe or csrsc.exe but not csrss.exe), and kill the process.
2.    Now type msconfig in the Run box, and then go to startup tab.
3.    Locate this exe file, if any, and then remove it from there as well.
4.    Now search the file in the C: drive.
5.    Permanently delete the file (csrcs.exe or csrsc.exe only) from the computer.
6.   Navigate to HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\WindowsNT\CurrentVersion\Winlogon\
7.  On the right side, there is a key named “Shell”, it may be having a value “explorer.exe csrcs.exe”. Just modify it to delete the csrcs.exe from it (not explorer.exe). 
8.  Restart the computer.

Tuesday, March 18, 2014

Sistem QMS : Kedudukan Kabel NIC

-------------------------------------------------- PIN ---------------------------------------------
(Putih/Biru) (Biru) (Putih/Hijau) (Hijau) (Putih/Oren) (Oren) (Putih/Coklat) (Coklat)


CentOS 6.5 : Setting Boot Grub

Lokasi fail grub:

/boot/grub/grub.conf


Thursday, March 13, 2014

Centos 6.5 : Check OS Version

cat /proc/version
@
uname -a
@
cat /etc/issue

* i686 = 32-bit
* x86_64 = 64-bit

Monday, March 3, 2014

CentOS 6.3 : Install VLC Player

1. Taip : cd /etc/yum.repos.d/
2. Taip : wget http://pkgrepo.linuxtech.net/el6/release/linuxtech.repo
3. Taip : yum install vlc

Link :
https://rajivpandit.wordpress.com/2013/02/10/vlc-media-player-installation-on-linux-centos-6-3/comment-page-1/

Monday, January 27, 2014

Windows : Error "The proxy server is refusing connection" pada browser Mozilla Firefox

Cara-cara:

-Tools > Options > Advance > Tab "Network" > Connection > Setttings
-Connection Settings > Tick "No proxy"


Link: http://www.youngzsoft.net/ccproxy/proxy-server-refusing-connections.htm

Tuesday, January 14, 2014

Linux : Tengok bilangan file/email dalam direktori

ls -l "nama_direktori" |wc -l

Linux : Restart Network

service network restart

atau

/etc/init.d/network restart

(juga - stop, start, status)

Linux : Mount & Unmount Pendrive/USB

Mount
-dmesg (last line adalah pendrive/USB. Cth; /dev/sda1@sdb1)
-mkdir pendrive @ /mnt/pendrive
-mount /dev/sda1 /pendrive @ /mnt/pendrive

Unmount
-unmount pendrive
-eject /dev/sda1

*bila blinking dah berhenti, remove pendrive/USB

Linux : Change Hostname

cd /etc/sysconfig/
vi network

hostname='hostname yg berkaitan'

Thursday, December 26, 2013

CentOS : Network Setting

Fail berada di:
/etc/sysconfig/network-scripts
Nama fail:
ifcfg-eth0 / ifcfg-eth1

Format untuk setting secara manual:
DEVICE=eth1
BOOTPROTO=none
ONBOOT=yes
HWADDR=xx:xx:xx:xx:xx:xx
bootproto=none
ipaddr=xxx.xxx.xxx.xxx
prefix=xx
gateway=xxx.xxx.xxx.xxx
dns1=
xxx.xxx.xxx.xxx
dns2=
xxx.xxx.xxx.xxx
NETMASK=
xxx.xxx.xxx.xxx
IPADDR=xxx.xxx.xxx.xxx
GATEWAY=xxx.xxx.xxx.xxx
TYPE=Ethernet
DEFROUTE=YES


#Jangan lupa untuk restart service network:
   /etc/init.d/network restart                  (start/stop/restart/status)

   @
  service network restart                        (start/stop/restart/status)

Friday, December 20, 2013

CentOS : Cronjob - Setiap Jumaat, 8.00 Malam

* 20 * * 5 (command line)

#Nak edit cronjob:
  crontab -e

#Nak listkan cronjob:
  crontab -l

#Jangan lupa untuk restart service cronjob:
   /etc/init.d/crond restart                  (start/stop/restart/status)

#Untuk tengak status service cronjob:
   /etc/init.d/crond status

#Nak check & update security patches:
  yum --security check-update
  yum update --security

NetVault : Error Semasa Install Ejen Client Bakbone

Kemungkinan library bagi NetVault berkenaan tidak di install.

Cara-cara:
1. Taip langkah berikut dan ENTER:
    yum install ld-linux.so.2

2. Kemudian, tengok service berkenaan dah hidup@tidak:
    ps -ef

Nak install APM bagi ejen berkenaan:
>Client Management
   >Di server berkenaan: klik kanan & install software.

Link support :
support.quest.com

Linux : Check Berapa Lama Server Hidup/Tidak Down/Shutdown/Restart (Uptime)

1. Buka console/terminal.
2. Taip "uptime", kemudian ENTER.

Friday, December 13, 2013

Ubuntu 10.04 (Server) : Nak remove INODE yang dah penuh dalam storage (100%)

Masalah ruangan server penuh, sedangkan ruangan HDD masih kosong (tak boleh nak save, edit dll). Kemungkinan INODE dah penuh.

OS Linux lain pun boleh guna cara ini.

Cara-Cara:
1.    Taip “df –i” dan ENTER. Kalau “df -h” tidak nampak space INODE.

2.    To count all the files in a directory and all it's subdirectories. Taip:
       for i in /*; do echo $i; find $i | wc -l; done

3.    Tengok mana directori mana yang bersaiz besar sekali. Catatkan.

4.    Dalam kes ini direktori /var paling besar. Jadi, gantikan arahan diatas dengan arahan ini. Taipkan:
       for i in /var/*; do echo $i; find $i | wc -l; done

5.    Tengok mana direktori mana yang bersaiz besar sekali. Catatkan.

6.    Ulang sub-direktori bagi direktori berkenaan (/var/spool). Catatkan.
       for i in /var/spool/*; do echo $i; find $i | wc -l; done

7.    Tengok direktori mana yang bersaiz besar sekali. Catatkan.

8.    Ulang sub-direktori bagi direktori berkenaan (/var/spool/postfix). Catatkan.
       for i in /var/spool/postfix/*; do echo $i; find $i | wc -l; done

9.    Ulang sub-direktori bagi direktori berkenaan (/var/spool/postfix/maildrop). Catatkan.
       for i in /var/spool/postfix/maildrop/*; do echo $i; find $i | wc -l; done

10.  Delete fail-fail yang ada dalam direktori berkenaan. Taip:
       rm -rf /var/spool/postfix/maildrop/*

11.  Sekiranya tidak dapat delete menggunakan command “fm -rf ” seperti di atas (langkah 10), gunakan command “find dan delete”:
       cd /var/spool/postfix/maildrop        (masuk ke dalam direktori berkenaan)
       ls -l | wc -l && time find -type f -delete >> /var/spool/remove_log

12.  Selesai. Ruangan telah menjadi kecil.

13.  Pastikan untuk memantau dari masa ke semasa fail log atau apa-apa fail yang dijana secara automatik. Delete fail-fail lama sekiranya perlu.


Sebelum

Selepas

Citrix XenServer : Cara Nak Force Shutdown VM

* Sekiranya force shutdown cara biasa tak berkesan

1. Log into the Xenserver host that is running your VM with issues via ssh or console via XenCenter

2. Run the following command to list VMs and their UUIDs
xe vm-list

3. First you can try just the normal shutdown command with force
xe vm-shutdown uuid= force=true

4. If that just hangs, use CONTROL+C to kill it off and try to reset the power state. The force is required on this command
xe vm-reset-powerstate uuid= force=true

5. If the VM is still not shutdown, we may need to destroy the domain

6. Run this command to get the domain id of the VM. It is the number in the first row of output
list_domains

7. Now run this command using the domain ID from the output of step 6
/opt/xensource/debug/xenops destroy_domain –domid


Link:
http://gimpland.org/now/2013/01/citrix-xenserver-how-to-force-shutdown-virtual-machines/

Tuesday, June 12, 2012

Linux : Lokasi REPO File

CentOS
/etc/yum.conf

Ubuntu
/etc/apt/sources.list

Friday, May 25, 2012

Ubuntu : Default bahasa telah bertukar ke bahasa lain

>> Dalam /etc/default/locale

LANG=zh_CH
*bahasa Cina

tukar kepada

LANG=en_US.UTF-8
*bahasa Inggeris

>> Kemudian restart pc.

Tuesday, May 22, 2012

Ubuntu : Classic Start Menu

Taip :
sudo apt-get install gnome-panel

Apabila selesai, logoff skrin & klik pada gambar 'gear'.

Pilih option yg lama.