이 블로그 검색

목요일, 8월 29, 2013

[Linux/ssh] Why does the “password” prompt take forever when I SSH

 It was, in fact, performing reverse DNS resolution. Based on the suggestions below and this article, I added "UseDNS no" to my sshd_config, rebooted ssh, and now the password prompt displays immediately.

When I SSH into my server I am given the standard "login as:" prompt, followed by the "user@host's password:" prompt. For whatever reason, the second one always takes a while to display. My server isn't under any load and typically executes commands quite fast.
Now, we're talking only 10 seconds or so between the time I hit Enter for the username and when the second prompt displays, but when you do this a lot it gets annoying. I suspect Ubuntu is looking up my user account, but it has < 5 accounts on the entire installation.

일요일, 8월 04, 2013

[Linux] user homepage setting

/mod-enabled  userdir.conf  userdir.load
=> [user home]/public_html

enable php in user directory
-> comment follow by instruction in php.conf

토요일, 6월 22, 2013

[hardware] HDD and MEM test

http://www.youtube.com/watch?v=xTkv3rb9Pds

To test most hard drives use Drive Fitness Test 
(DFT).
a) Use your arrow keys select HDD--
Diagnosis--Drive Fitness Test V4.16...Hit "Enter"
b) Select option 2. ATA support only. Hit "Enter"
c) Hit "A" for I Agree (wait for it to load hard 
drive(s))
d) Use arrow keys to make sure correct hard is 
selected Hit "Y" for Yes
e) Then Hit "A" for Advanced Test (this will take 
about 1 to 3 hours depending on how 
big the drive is)

OR

To test other hard drives use GWSCAN
a) Use your arrow keys select HDD--Diagnosis--
GWSCAN V5.12 (Gateway)...Hit "Enter"
b) Select option 1. "Boot UMBPCI (silent)". Hit "Enter"
c) Use your arrow keys and select "Extended Test" Hit 
"Enter"
d) Hit "R" to run the test.
e) When the Quick Test is complete, to continue with 
the Full Media Scan, press the "C" key. 

The extended test will take a couple hours depending 
on the hard drive.

Then test your memory using Memtest 86++ V4.20

Next you will want to test your Memory with 
Memtest86++

a) Use your arrow keys select Memory--Memtest86+ 
V4.20 Hit "Enter"
b) Let this run through at least 3-5 passes. (this will 
take about half a day)

To download Ultimate Boot CD go here: 
http://www.ultimatebootcd.com/downloa...

토요일, 4월 13, 2013

[Mac]how to share file with linux

Example from the forum modified with this option: 
/files 192.168.1.0/24(rw,insecure)

Don't worry about the client section of the writeup, you only want a server.
http://ubuntuforums.org/showthread.php?t=249889

Then on your mac (if you have snow leopard), open Disk utility, go to file->NFS mounts, click the plus, add the server as "nfs://server.local/path/to/files"
The next blank is where you want it mounted on your Mac, I usually put "/network/_whatever_you_want_here_" because it will show up in the 'shared' section of the finder when you click all under network. (for the paths, don't use the quotation marks when typing them in, or anything else I say to type in - just type what is inside the quotes).
For advanced options, I use "soft" and check the "ignore set userid privileges" box as well. Click okay and apply (type in password for your mac) and as long as you set up the server correctly it should map fine.

수요일, 3월 06, 2013

[Windows XP] can't update windows

open registry

  1. Click Start, click Run, type regedit in the Open box, and then click OK.
  2. Expand
    HKEY_CURRENT_USER
    , expand
    Software
    , expand
    Microsoft
    , expand
    Windows
    , expand
    CurrentVersion
    , and then expand
    Policies
    .
  3. If the
    Windows Update
    key exists, click
    Windows Update
    .
  4. In the right pane, if the
    DisableWindowsUpdateAccess
    DWORD value exists, right-click
    DisableWindowsUpdateAccess
    , and then click Delete.
  5. Expand
    HKEY_CURRENT_USER
    , expand
    Software
    , expand
    Microsoft
    , expand
    Windows
    , expand
    CurrentVersion
    , and then expand
    Policies
    .
  6. If the
    Explorer
    key exists, click
    Explorer
    .
  7. In the right pane, if a
    DisableWindowsUpdateAccess
    DWORD exists, right-click
    DisableWindowsUpdateAccess
    , and then click Delete.
  8. In the right pane, if a
    NoWindowsUpdate
    DWORD value exists, right-click
    NoWindowsUpdate
    , and then click Delete.
  9. Expand
    HKEY_LOCAL_MACHINE
    , expand
    Software
    , expand
    Microsoft
    , expand
    Windows
    , expand
    CurrentVersion
    , and then expand
    Policies
    .
  10. If the
    Explorer
    key exists, click
    Explorer
    .
  11. In the right pane, if a
    DisableWindowsUpdateAccess
    DWORD exists, right-click
    DisableWindowsUpdateAccess
    , and then click Delete.
  12. In the right pane, if a
    NoWindowsUpdate
    DWORD value exists, right-click
    NoWindowsUpdate
    , and then click Delete.
  13. Close Registry Editor, and then restart your computer.

if gpedit.msc is available,

  1. Log on to the computer as a local administrator.
  2. Click Start, click Run, type gpedit.msc, and then click OK.
  3. In the left pane, expand User Configuration, expand Administrative Templates, and then click Start Menu and Taskbar.
  4. In the right pane, right-click Disable and remove links to Windows Update, and then click Properties.
  5. Click Disabled, click Apply, and then click OK.
To restore the missing Windows Update shortcut or Microsoft Update shortcut on a computer that is running Windows XP or that is running Windows Server 2003, follow these steps:
  1. Log on to the computer as a local administrator.
  2. Click Start, click Run, type gpedit.msc, and then click OK.
  3. In the left pane, expand User Configuration, expand Administrative Templates, and then click Start Menu and Taskbar.
  4. In the right pane, right-click Remove links and access to Windows Update, and then click Properties.
  5. Click Disabled, click Apply, and then click OK.
To enable access to the Windows Update Web site, follow these steps:
  1. Log on to the computer as a local administrator.
  2. Click Start, click Run, type gpedit.msc, and then click OK.
  3. In the left pane, expand User Configuration, and then expand Administrative Templates.
  4. Expand Windows Components, and then click Windows Update.
  5. In the right pane, right-click Remove access to use all Windows Update Features, and then click Properties.
  6. Click Disabled, click Apply, and then click OK.

화요일, 3월 05, 2013

[Windows AD] Can't RDP on Active Directory server

Cause :
Due to changes made in newer Microsoft Windows Operating Systems, standard limited user accounts may not be able to log in from terminal.

Resolution :
open gpedit.msc on the target server.(must be administrator)
Computer Configuration > Windows Settings > Security Settings > Local Policies > User Rights Assignment

In the right-hand pane, locate the entry named "Allow Log on through Terminal Services "
double-click on it.
Add-User or Group
and add any account you desire to allow to login.

done.!

금요일, 12월 28, 2012

[MS Exchange] public folder

firstly, should know the folder path!


>Add-PublicFolderClientPermission -Identity "\Marketing\West Coast" -AccessRights PublishingEditor -User Kim