#amazon(B00JKIS8QQ) #amazon(B00U178112)
 
 

コマンド

ipconfig

C:\>ipconfig [オプション]
オプション説明
/?Display this help message
/allDisplay full configuration information.
/releaseRelease the IP address for the specified adapter.
/renewRenew the IP address for the specified adapter.
/flushdnsPurges the DNS Resolver cache.
/registerdnsRefreshes all DHCP leases and re-registers DNS names
/displaydnsDisplay the contents of the DNS Resolver Cache.
/showclassidDisplays all the dhcp class IDs allowed for adapter.
/setclassidModifies the dhcp class id.

fc

スクリプト

private.bat

 @echo off
 netsh interface ip set address "ローカル エリア接続" static 192.168.0.101 255.255.255.0 192.168.0.254 1
 netsh interface ip set dns  "ローカル エリア接続" static 192.168.0.101
 netsh interface ip set wins "ローカル エリア接続" static none
 @echo off
 netsh interface ip set address "ローカル エリア接続" dhcp
 netsh interface ip set dns  "ローカル エリア接続" dhcp
 netsh interface ip set wins "ローカル エリア接続" dhcp

flushdns.bat

 @echo off
 ipconfig /flushdns

otpsock.reg

 [HKEY_CURRENT_USER\Software\NEC\WinSock\otpsock\keywords]
 "otp-md4/key"=dword:00000001

Cygwin

sshd

win$ ssh-host-config -yenter.png
Generating /etc/ssh_host_key
Generating /etc/ssh_host_rsa_key
Generating /etc/ssh_host_dsa_key
Generating /etc/ssh_config file
Privilege separation is set to yes by default since OpenSSH 3.3.
However, this requires a non-privileged account called 'sshd'.
For more info on privilege separation read /usr/share/doc/openssh/README.privsep.

Should privilege separation be used? (yes/no) yes
Warning: The following function requires administrator privileges!
Should this script create a local user 'sshd' on this machine? (yes/no) yes
Generating /etc/sshd_config file
Added ssh to C:\WINDOWS\system32\drivers\etc\services


Warning: The following functions require administrator privileges!

Do you want to install sshd as service?
(Say "no" if it's already installed as service) (yes/no) yes

Which value should the environment variable CYGWIN have when
sshd starts? It's recommended to set at least "ntsec" to be
able to change user context without password.
Default is "ntsec".  CYGWIN=ntsecenter.png

The service has been installed under LocalSystem account.
To start the service, call `net start sshd' or `cygrunsrv -S sshd'.

Host configuration finished. Have fun!

cron

  1. setup.exe で cron, をインストール
  2. Cygterm を管理者として実行
  3. サービス登録
    win$ cygrunsrv -I cron -p /usr/sbin/cron -a -n
    
  4. 起動
    win$ cygrunsrv -S cron
    

IPv6の利用

IPv6環境の起動

C:\>ipv6 install
Installing...
Succeeded.

利用

C:\>ping6 www.v6pc.jp

Pinging www.v6pc.jp [2001:218:2001:3000::11]
from fe80::20d:5eff:fe40:a5b7%5 with 32 bytes of data:

Reply from fe80::20d:5eff:fe40:a5b7%5: 宛先アドレスに到達できません。
Reply from fe80::20d:5eff:fe40:a5b7%5: 宛先アドレスに到達できません。
Reply from fe80::20d:5eff:fe40:a5b7%5: 宛先アドレスに到達できません。
Reply from fe80::20d:5eff:fe40:a5b7%5: 宛先アドレスに到達できません。

Ping statistics for 2001:218:2001:3000::11:
    Packets: Sent = 4, Received = 0, Lost = 4 (100% loss),

トップ   編集 凍結 差分 バックアップ 添付 複製 名前変更 リロード   新規 一覧 検索 最終更新   ヘルプ   最終更新のRSS
Last-modified: 2021-04-12 (月) 16:07:08