Archive for the ‘Commands’ category

How to check Silverlight version?

December 17th, 2009

Just run the command below on your command prompt and

reg query HKLM\SOFTWARE\Microsoft\Silverlight

You will have the result as below

KEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Silverlight
Version    REG_SZ    3.0.40818.0
UpdateConsentMode    REG_DWORD    0×0

My Silverlight version is 3.0.4

Popularity: 42% [?]

How to restrict access into Wordpress Dashboard via IP address

November 24th, 2009

Have you ever wonder how to restrict your Wordpress Dashboard login via IP address or IP ranges? You could possibly would like to refrain some user from accessing your Wordpress application especially WPMU where it is shared by multi users from all over the world.

Just create a .htaccess file and put it on your wp-admin folder and add below syntax as example below.

allow from “IP address or IP ranges”

The IP ranges added are the IP address that is allow to access the wp-admin folder or the Wordpress Dashboard.

———————————

<Limit GET HEAD POST>
order deny,allow
allow from
192.168.1.0/24
allow from
192.169.1.0/24
deny from all
</LIMIT>

———————————

Give it a try and have fun :D

Popularity: 100% [?]

SpamAssassin Global Domain email whitelist.

November 2nd, 2009

Go to /etc/mail/spamassassin/

Then pico or vi local.cf and add the entry as below if you would like to whitelist the domain from domain.com

whitelist_from *domain.com

Restart exim. Done.

Popularity: 4% [?]

552 Message size exceeds maximum permitted

March 15th, 2009

If your sender encountered such error messages in the bounced mail error as below
=================================================
From: Mail Delivery System
Sent: Sender
To: Recipient
Subject: Mail delivery failed: returning message to sender

This message was created automatically by mail delivery software.

A message that you sent could not be delivered to one or more of its
recipients. This is a permanent error. The following address(es) failed:

username@domain.com
SMTP error from remote mail server after MAIL FROM: SIZE=5000000:
host mail.domain.com [192.168.1.1]: 552 Message size exceeds maximum permitted
================================================

Go to /etc and view the exim.conf files.

> pico /etc/exim.conf

Search for “message_size_limit” and change the limit from 5M to larger size.

—————————-

message_size_limit = 5M

—————————-

And finally, save it and restart Exim services. Done.

Popularity: 8% [?]

How to use FTP on Windows Command Prompt

January 24th, 2009

This is my first post on the techshare. I’ve recently learnt on how use File Transfer Protocol service or FTP service without any third party software or browser. Of course if you would regard a command prompt as a third party software then I have nothing to say.

Before you wish to perform an FTP for upload or download for any files. Please do make sure where is your starting directory for your location your file to be upload or location your file to be download.

For example, I would like to upload a file from my computer’s Desktop and the file name I would like to upload is filename.txt .

C:\Documents and Settings\arren\Desktop

Then launch the command prompt.

Type “cd C:\Documents and Settings\arren\Desktop”

Then your command line should start with C:\Documents and Settings\arren\Desktop>

Next you may start your FTP connection by typing “ftp arrentan.com”

===========================================================

C:\Documents and Settings\arren\Desktop>ftp arrentan.com

Connected to arrentan.com.
220———- Welcome to Pure-FTPd [TLS] ———-
220-You are user number 8 of 50 allowed.
220-Local time is now 17:03. Server port: 21.
220-This is a private system – No anonymous login
220-IPv6 connections are also welcome on this server.
220 You will be disconnected after 30 minutes of inactivity.
User (arrentan.com:(none)):

============================================================

Next, enter your username for your FTP account and password.

============================================================

User (arrentan.com:(none)): username

331 User user OK. Password required
Password:**********

============================================================

After successful login, you will be show your current directory in your remote directory. Or you may check  your current directory by typing “pwd”.

============================================================

230-User username has group access to:  username
230 OK. Current restricted directory is /

ftp>cd www

ftp> pwd
257 “/www” is your current location
============================================================

Then you may upload your file using “put” command.

ftp>put local-file remote-file

#local-file – Specifies the local file to copy.
#remote-file – Specifies the name to use on the remote computer. If not specified, the file is given the local-file name.

============================================================

ftp> put filename.txt filename.txt
200 PORT command successful
150 Connecting to port 5001
226-File successfully transferred
226 146.766 seconds (measured here), 26.72 Kbytes per second
ftp: 4032348 bytes sent in 145.63Seconds 27.69Kbytes/sec.

============================================================

To download the file from remote terminal, you may use the “get” command.

remote-file – Specifies the remote file to copy.

local-file – Specifies the name to use on the local computer. If not specified, the file is given the remote-file name.

============================================================

ftp>get remote-file local-file

ftp> get filename
200 PORT command successful
150-Connecting to port 5002
150 3922.0 kbytes to download

===================================================

Popularity: 3% [?]

Get Adobe Flash playerPlugin by wpburn.com wordpress themes