2008年10月23日木曜日

Ubuntu使ってみたメモ

vinoとかいうリモートコントロールするシステムがあるらしい。
vnc4serverをインストール。
rootになるにはsudo su。


~/.vnc/xstartup
4行目は何時もどおりコメントアウト。
5行目は/bin/sh /etc/X11/xinit/xinitrcへと変更。


Gnomeのエラー軽減。
gconf-editorの/apps/gnome_settings_daemon/plugins/keyboard と /apps/gnome_settings_daemon/plugins/mouse のactiveのチェックを外す

参考サイト様
http://pc.watanet.com/?p=344
http://d.hatena.ne.jp/rx7/20080919/p2
http://d.hatena.ne.jp/elsal/20070215/1171475560


sshd
apt-get install openssh-server

Cygwin OpenSSH problem of start service.

OS WindowsVista x86-64


$ ssh-host-config -y
*** Query: Overwrite existing /etc/ssh_config file? (yes/no) yes
*** Info: Creating default /etc/ssh_config file
*** Query: Overwrite existing /etc/sshd_config file? (yes/no) yes
*** Info: Creating default /etc/sshd_config file
*** Info: Privilege separation is set to yes by default since OpenSSH 3.3.
*** Info: However, this requires a non-privileged account called 'sshd'.
*** Info: For more info on privilege separation read /usr/share/doc/openssh/READ
ME.privsep.
*** Query: Should privilege separation be used? (yes/no) yes
*** Warning: The file /etc/passwd is not readable by all.
*** Warning: Please run 'chmod +r /etc/passwd'.
*** Warning: The file /etc/group is not readable by all.
*** Warning: Please run 'chmod +r /etc/group'.
*** ERROR: Problem with LocalSystem or Adminstrator IDs


$ ls -l /etc/passwd
-r-xr-x---+ 1 matsumura Users 745 Sep 26 02:37 passwd

$ ls -l /etc/group
-r-xr-x---+ 1 matsumura Users 1147 Sep 26 02:37 group

$ chmod +r /etc/passwd

$ chmod +r /etc/group

$ ls -l /etc/passwd
-r-xr-xr--+ 1 tsumura Users 745 Sep 26 02:37 passwd

$ ls -l /etc/group
-r-xr-xr--+ 1 tsumura Users 1147 Sep 26 02:37 group

$ ssh-host-config -y
*** Query: Overwrite existing /etc/ssh_config file? (yes/no) yes
*** Info: Creating default /etc/ssh_config file
*** Query: Overwrite existing /etc/sshd_config file? (yes/no) yes
*** Info: Creating default /etc/sshd_config file
*** Info: Privilege separation is set to yes by default since OpenSSH 3.3.
*** Info: However, this requires a non-privileged account called 'sshd'.
*** Info: For more info on privilege separation read /usr/share/doc/openssh/READ
ME.privsep.
*** Query: Should privilege separation be used? (yes/no) yes
*** Warning: The permissions on the directory /var are not correct.
*** Warning: They must match the regexp d..x..x..[xt]
*** ERROR: Problem with /var directory. Exiting.

$ chmod 111 /var

$ ls -l /
d--x--x--x+ 14 tsumura Users 4096 Oct 22 12:25 var

$ ls -l /etc/passwd
-r-xr-xr--+ 1 tsumura Users 745 Sep 26 02:37 /etc/passwd

$ chmod +w /etc/passwd

$ ls -l /etc/passwd
-rwxr-xr--+ 1 tsumura Users 745 Sep 26 02:37 /etc/passwd

2008年10月3日金曜日

http://image01.wiki.livedoor.jp/d/i/dfi_wiki/84f8cfb8.pdf

2008年10月2日木曜日

DDO.JPの更新メモ

DNS.sh

#! /bin/sh
wget -O DNSResult.html http://free.ddo.jp/dnsupdate.php?dn=ドメイン名&pw=パスワード &
firefox DNSResult.html &
exit 0