Wednesday, April 25, 2012

Configure Remote Server Administration Tools for Windows 7

  1. Download & install   Windows6.1-KB958830-x86-RefreshPkg.msu
    **Remote Server Administration Tools for Windows 7 with SP1 can be installed ONLY on computers that are running the Enterprise, Professional, or Ultimate editions of Windows 7 or Windows 7 with SP1.**
  2. Complete all installation steps in the wizard, and then click Finish to exit the wizard when installation is finished.
  3. In the Programs and Features area, click Turn Windows features on or off.
  4. If you are prompted by User Account Control to enable the Windows Features dialog box to open, click Continue.
  5. In the Windows Features dialog box, expand Remote Server Administration Tools.
  6. Select the remote management tools that you want to install.
  7. Click OK.
  8. Configure the Start menu to display the Administration Tools shortcut, if it is not already there.

    • Right-click Start, and then click Properties.
    • On the Start Menu tab, click Customize.
    • In the Customize Start Menu dialog box, scroll down to System Administrative Tools, and then select Display on the All Programs menu and the Start menu. Click OK. Shortcuts for snap-ins installed by Remote Server Administration Tools for Windows 7 with SP1 are added to the Administrative Tools list on the Start menu.

How to Use Microsoft Management Console (MMC)?

  1. Start  ->  Administrative tool -> Remote Desktop
  2. Console root _Remote Desktop  -> Right click on remote desktop icon
  3. Add new connection (Only for windows server)
  4. Fill in Computer name or IP address , connection name and username
  5. Repeat the connection for other server/pc
  6. Save the Remote desktops  in Desktop.
  7. Done



The SMART_HOST macro allows you to specify the host that should relay all outgoing mail that you are unable to deliver directly, and the mail transport protocol to use to talk to it.
Make sure sendmail was install in your server, if not install first:
  # aptget install sendmail                                                                    
Open your configuration file:# vi /etc/mail/sendmail.mcAppend or modify macro that read as follows :define(`SMART_HOST',`')Replace with your actual smtp server address. If line contains word, dnl remove the dnl word. Regenerate a new config file with m4 command:# m4 /etc/mail/ > /etc/mail/sendmail.cfRestart sendmail service:# /etc/init.d/sendmail restart

Tuesday, April 24, 2012

UBUNTU - Check Network Interface Usage

How to check network interface usage?

Open Ubuntu servern and run this command.
# vnstat -u -i eth0
# vnstat



  1. Open Unix Server
  2. Login as root (sudo su)
  3. Type command:
    # setenv EDITOR ee
    # visudo
  4. Add within this line to add new sudoer:
    ## User privilege specification
    root ALL=(ALL) ALL
    hassan ALL=(ALL) ALL
  5. Press ESC to save & exit.
  6. Done.

Monday, April 16, 2012

UNZIP .bz2 in UNIX Server & Linux Server

How to unzip .bz2 files in UNIX Server ?

*Make sure your server got bzip2, or Install bzip2 first.
  1. Install bzip2 in UNIX
    # cd /usr/ports/archivers/bzip2
    # make install clean
    # rehash
  2. Go to the file path and run this command:
    # bzip2 -d  filename.bz2

    * This will an uncompressed file in the current directory called ‘file’ and will delete the original bz2 archive. If you want to keep the original file, add the -k option like:
    # bzip2 -dk  filename.bz2

    A useful option for bzip2 is the -c switch which causes bzip2 to write the uncompressed output to stdout which can easily be redirected to another option. For instance, to search the compressed file file.bz2 for the string tech-recipes, use:
    bzip2 -dc file2.bz2 | grep tech-recipes

How to unzip .bz2 in Linux Server?

  1. Go to the file path and run this command:
    # nohup bunzip2  filename.bz2  &

Monday, April 2, 2012

Date Timezone Problem in Unix(BSD) Server

Case: System cannot login OR Timezone Error in application.


  1. # cd usr/local/etc/
  2. ee php.ini
  3. Search keyword: date.timezone
  4. Read reference setting:
  5. Change / add timezone
     date.timezone = "Asia/Kuala_Lumpur"
  6. Checking date in server

  7. if not same you have to setting up using this command
  8. Restart APACHE service
    #/usr/local/etc/rc.d/apache22 restart

Moodle: Failed write to disk problem

"Failed to write file to disk"

I've been experience the same problem in wordpress before. 
It was caused by temp folder full. So user failed to upload any files to the system.

  1. Check your temp folder in moodle
    Eg: /mnt/data/moodle/moodledata/temp/backup/
  2. Delete the temp content inside this folder
  3. Try upload file to system
  4. Upload function should be ok by now.
Good luck!