The aim of this weblog.
 ・ 基本的にPC関連の設定備忘録
 ・ ゆくゆくは Knowledge Base のような感じで。
 ・ 間違っていたり、もっといい方法がある!、って場合はコメントください。
 ・ 音楽・機械・電気系も徐々にアップします。
 ・ あとは、忘れちゃいけないスピードキューブ!(90秒 -> 60秒 -> 30秒?)

MY DJ MIX
 ・ R&B 5 - Oct 2009 <Tracklist>
 ・ R&B 4 - Jun 2008 <Tracklist>
 ・ J-R&B (J-R&B & J-POP) - May 2007 <Tracklist>
 ・ Minimalized Timbre (Techno & Tech House) - Sep 2006 <Tracklist>
 ・ R&B 3 - Nov 2006 <Tracklist>
 ・ R&B 2 - Mar 2006 <Tracklist>
(Click above links to download MP3)
I am more than happy to DJ at your party. Please feel free to email me !!


2011年04月13日

Windows Server 2008 のパスワードを設定するとき、簡単なパスワードは全部蹴られて、難しいパスワードしか設定できません。数字をいれたり、大文字も使用しないと蹴られる様です。
そんなときの対処方法。

1)ファイル名を指定して実行 から、 gpedit.msc を起動。

2)ローカルグループポリシーエディター が起動します。

3)下記に移動。

コンピューターの構成
Windows の設定
セキュリティの設定
アカウントポリシー

4)複雑さの用件を満たす必要があるパスワード を、無効にする。

これで、どんなパスワードでも設定できます!


投稿時間 : 17:41 個別ページ表示 | コメント (0)
2010年11月19日

If you would like to connect GUI remotely,

Install VNC
# yum install vncserver


Setup VNC with init
Comment and uncomment like below. Then you can use VNC with a current desktop env. Otherwise VNC will boot up with TWM, which is a minimum desktop env.

# nano .vnc/xstartup

#!/bin/sh

# Uncomment the following two lines for normal desktop:
unset SESSION_MANAGER
exec /etc/X11/xinit/xinitrc

#[ -x /etc/vnc/xstartup ] && exec /etc/vnc/xstartup
#[ -r $HOME/.Xresources ] && xrdb $HOME/.Xresources
#xsetroot -solid grey
#vncconfig -iconic &
#xterm -geometry 80x24+10+10 -ls -title "$VNCDESKTOP Desktop" &
#twm &


# /etc/sysconfig/vncservers

VNCSERVERS="1:root"
VNCSERVERARGS[1]="-geometry 1024x768"


Then 1 of VNC Server is always booted up with above resolution once VNC server daemon is started.


Start VNC Server daemon
# /etc/rc.d/init.d/vncserver start
# /sbin/chkconfig vncserver on

(Input VNC password for the first time. Or use vncpasswd to setup password.)


Start or Kill VNC Server forcibly

# vncserver
or
# vncserver -kill :1


Check how many VNC processes are currently working

# ps aux | grep vnc


------------------------
Reference
http://www.nabe.bne.jp/linux/vncserver.html

投稿時間 : 13:09 個別ページ表示 | コメント (0)
2010年06月29日

基本的に、Windows XP上で新規ユーザーを作ると、下記のディレクトリにユーザーフォルダができます。

C:\Documents and Settings\user_name

この中にユーザーのファイル、プロファイル類が入っています。AD環境でも同様。

現在のユーザープロファイルの場所は、DOS窓で set と打つと、USERPROFILE ってとこに出てきます。


AD環境で間違えてユーザーを消してしまうと、同じユーザー名で作り直しても、次回Windowsにログオンすると全く新しいユーザープロファイルが作られて、以前の環境にログインできなくなります。同じユーザー名で作り直しても、以前の環境にはログインできません。
結局同じ名前を後で作っても、同じユーザーとは認識されません。(バックグラウンドのsystem idが違うから。)

基本的には、新しいユーザーを作って、システムのプロパティの、ユーザープロファイルで、ユーザーのファイルの丸々コピーはできます。ただ、設定関係はまったく引き継げません。

ただ、全部また設定しなおすのは大変!


そんなときは、下記レジストリを修正。
ファイル名を指定して実行から、regedit を実行。

HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows NT\CurrentVersion\ProfileList


ここで、このPC内にあるユーザーが一覧できます。
このなかの ProfileImagePath が、実際のユーザープロファイルの場所。ここで自分の好きなディレクトリに変更できます。

基本的にはコレでウマく行くと思います。設定関係もちゃんと保存されています。
ただ、パスワード関係はこのディレクトリに保存されていないみたいで、もう一度聞かれます。
その他にも色々不具合でてくるかもだけど、一応これで昔のプロファイルにログイン出来ます。

ユーザー名を変えたけど以前の環境で入りたいとか、色々応用できると思います。

----------------------------
Reference
http://support.microsoft.com/kb/236621/ja

投稿時間 : 13:21 個別ページ表示 | コメント (0)
2010年01月13日

ドメインコントローラ上で何かをインストールしようとしたら、下記エラーが出る時の対処法。(VMwareを入れようとしたらエラーがでる。)


システム管理者によって、ポリシーはこのインストールを実行できないように設定されています。


1) 管理ツールから、ドメインコントローラセキュリティーポリシーを開く。
2) 「ソフトウェアの制限のポリシー」を右クリックして、「新しいソフトウェアの制限のポリシー」を選択。
3) 「強制」をダブルクリック。
4) 「ローカルの管理者を除くすべてのユーザー」を選択して、OKで抜ける。

その後、再起動。

これで、インストール出来るはずです!!

投稿時間 : 15:22 個別ページ表示 | コメント (0)

プライマリドメインコントローラがWindows Server 2003で、それ以上のバージョンのサーバをドメインコントローラとして追加したい場合、DCの設定中に下記エラーが出ます。今回はWindows Server 2003 R2を追加DCとして入れてみました。


次のエラーにより、操作に失敗しました:
Windows Server 2003 のインストール用にフォレストが準備されていないために Active Directory インストールウィザードを続行できません。
Adprep コマンドラインツールを使ってフォレストおよびドメインの両方を準備してください。
"ソースフォレストの Active Directory スキーマのバージョンはこのコンピュータの Active Directory のバージョンと互換性がありません。"


この場合は、プライマリドメインコントローラのスキーマのバージョンをアップデートしてあげればOK。
スキーマのバージョンはココからチェック出来ます。

1) ファイル名を指定して実行から、adsiedit.msc を起動。
2) [CN=Schema,CN=Configuration,DC=<ドメイン名>] を右クリックし、プロパティ。
3) objectVersion をチェック。

objectVersion - OS
13 - Windows 2000 Server
30 - Windows Server 2003
31 - Windows Server 2003 R2
44 - Windows Server 2008


今回は、30から31にバージョンアップします。

1) Windows Server 2003 R2 のディスク2をプライマリドメインコントローラに入れる。
2) DOS窓を開いて、下記のディレクトリまで移動。

cd D:\CMPNENTS\R2\ADPREP

3) ここで、下記を実行。

adprep.exe /forestprep


これでスキーマがバージョンアップします。その後、ドメインコントローラの追加。

-------------------
Reference
http://support.microsoft.com/kb/917385/ja

投稿時間 : 14:37 個別ページ表示 | コメント (0)
2010年01月08日

開けましておめでとうございます〜。
みなさまお元気でしょうか?
年末年始は、ヨーロッパの色々な国を、ブラブラしておりました。
スペイン最高!ホント住みたい!
ベルギーも良かった〜。


で、みなさん、トマトジュース好き?
僕はかなり好物で、毎晩お風呂上がりに必ず飲みます。
毎日かなりジャンクな生活をしているので、健康になるかな?って思い、かなり前から毎日飲んでます。

トマトジュースって、色んな種類あるの知ってる?
加塩と無塩。
そして、濃縮還元とストレート。


実際、無塩のストレートは、そのものトマトの味です。
か〜な〜り〜、おいしいよ。
トマト好きな人なら、毎日飲みたいくらい!
でも、加塩の濃縮還元って、かなり微妙なんだよね。

で、僕のお気に入りが、コレ。

これは、加塩ストレートなんだけど、か〜な〜り〜、おいしい。
トマト食べてるみたい。
でもね、コレ限定らしくて、もう近くのヤマヤに無くなっちゃった。
毎月、1ヶ月分買ってたのに、すんごくショック!!


おいしいトマトジュース知ってます?
もしくは、これ、まだどこかで買えないかな?
教えて〜〜。

スペインのトマトジュースの種類は異常な程すごかったよ。
リコピニストもびっくりです。
いいなぁ〜☆

投稿時間 : 14:47 個別ページ表示 | コメント (4)
2009年11月02日

In case that system does not boot up since IOS is broken or missing.

TFTP
This is for Cisco 800 series. Make sure IOS file is ready on TFTP site.

Check whether IOS is in flash or not.
boot# list

boot# set file-name = c800-y6-mw.121-5.yc2.bin (IOS name on TFTP)
boot# set serv-ip = 192.168.10.51 (IP address for TFTP)
boot# set unit-ip = 192.168.10.2 (IP address for Router)
boot# set netmask = 255.255.255.0 (Subnet mask)
boot# set gate-ip = 192.168.10.1 (In case that TFTP is on other network)

boot# save
Save above setup.

boot# upload tftp
Download from TFTP.

boot# save file = c800-y6-mw.121-5.yc2.bin
Save IOS from RAM to flash

boot# boot

投稿時間 : 16:23 個別ページ表示 | コメント (0)

This is how to collect data for Router and network when it is unstable.

Router# show tech-support (page)

You can show all results with show command at once. This is good to see a router and netowrk status with one command. page option can show data page by page.

If you would like to see password too.
Router# show tech-support password

Router# show logging
Show log data which Router has output.

Router(config)# logging console (level)

Router can output a real time message. You need to specify below level.

level0 : emergencies
level1 : alerts
level2 : critical
level3 : errors
level4 : warnings
level5 : notifications
level6 : informational
level7 : debugging

Router(config)# logging hostname or IP-address
You can save a log file to syslog server.

Router# show processes cpu
You can see CPU occupancy when Router is slow.

投稿時間 : 15:26 個別ページ表示 | コメント (0)
2009年10月27日

This is how to backup IOS.

TFTP
Download TFTP software from below. This is for Mac OS X.
http://mac.softpedia.com/get/Utilities/TFTP-Server.shtml

(When uploading files to this TFTP software, a blank file has to be created first prior to upload your file from router by clicking "Create File" from menu. Otherwise you will always get a error message "Access violation". See HELP of this software for more details.)


Check which IOS is installed.
Router# show flash

Send IOS from flash to tftp server.
Router# copy flash tftp
Source filename []? c800-y6-mw.121-5.yc2.bin
Address or name of remote host []? 192.168.10.50
Destination filename [c800-y6-mw.121-5.yc2.bin]?

Then IOS file has been uploaded to TFTP server!!


-------------
Reference
http://atnetwork.info/ccna/copy_ios_backup.html

投稿時間 : 17:33 個別ページ表示 | コメント (0)

Static Routing
Router(config)# ip route destination-network subnet-mask (address or interface) (administrative instance) (permanent)

If you input permanent, this routing information is not deleted even though interface is shut down.

For example,
Router(config)# ip route 172.16.1.0 255.255.255.0 192.168.1.1

You can check this setup with below commands.
To see setup,
Router# show running-config
To see routing info,
Router# show ip route
To see active routing protocols,
Router# show ip protocols

Default Routing
If there is no routing information for destination network on the router, all packets are sent to here. (If no setup for default routing, all packets are lost.)
Router(config)# ip route 0.0.0.0 0.0.0.0 (address or interface) (administrative instance) (permanent)

For example,
Router(config)# ip router 0.0.0.0 0.0.0.0 192.168.0.1

If you would like to delete the setup,
Router(config)# no ip route (address or interface) (administrative instance)

Just put no to above setup, then it will be deleted.


RIP
Set RIP as routing protocol,
Router(config)# router rip
Router(config-router)# network network-address

For example,
Router(config)# router rip
Router(config-router)# network 192.168.0.0
Router(config-router)# network 192.168.1.0

Kill RIP auto routing update
Router send a RIP information to another router every 30 seconds by UDP 520 port. It sometimes occupies network bandwidth. This is how to kill auto sending.

Only specific interface,
Router(config)# router rip
Router(config-router)# passive-interface interface-name

Or all interfaces,
Router(config)# router rip
Router(config-router)# passive-interface default

This is example for killing all routing update except FastEther0/0,
Router(config)# router rip
Router(config-router)# network 192.168.1.0
Router(config-router)# passive-interface default
Router(config-router)# no passive-interface FastEther0/0

Clear routing table
Clear all routing table,
Router# clear ip route *

Clear routing table only for specific network,
Router# clear ip router 192.168.2.0


OSPF
To setup OSPF as a routing protocol,
Router(config)# router ospf process-ID
Router(config-router)# network network-address wild-card-mask area area-number

For example,
Router(config-router)# network 172.16.0.0 0.0.255.255 area 0

Check information for OSPF neighbor (check status for neighborhood routers)
Router# show ip ospf neighor

Check status for OSPF interface on router
Router# show ip ospf interface interface-name

投稿時間 : 14:14 個別ページ表示 | コメント (0)
« TOP »