「Ubuntuメモ」の編集履歴(バックアップ)一覧はこちら

Ubuntuメモ」(2008/04/26 (土) 00:14:30) の最新版変更点

追加された行は緑色になります。

削除された行は赤色になります。

[[DHCPから固定IPアドレスに変更する]] *DHCPから固定IPアドレスに変更する -まず、/etc/network/interfaces を編集する。 >auto eth0 >iface eth0 inet dhcp  ↑を↓に書き換える。 >auto eth0 >iface eth0 inet static >address xxx.xxx.xxx.xxx # ←設定したいIPアドレス >netmask 255.255.255.0 >broadcast 192.168.0.255 >gatewaqy 192.168.0.1 -ネットワークの再起動 ># sudo /etc/init.d/networking restart 以上。 ---- *sambaのインストール [[鬼瓦実験室::Ubuntuでsamba>http://onigawara.dip.jp/blognplus/index.php?e=6#comments]] の通りにやったらできた。 >sudo apt-get install samba >sudo cp /etc/samba/smb.conf /etc/samba/smb.conf.original -sambaユーザを登録する。 >$ sudo smbpasswd -a hogehoge >New SMB password: >Retype new SMB password: -WindowsXPとの共有ディレクトリを作成する。ここでは/home/samba。パーミッションは777とた。 >$ sudo mkdir /home/samba >$ sudo chmod 777 /home/samba -設定ファイルの書き換え。 >$ sudo vi /etc/samba/smb.conf 変更箇所は次の通り。 >workgroup = MSHOMEを次のようにWORKGROUPと変更 >workgroup = WORKGROUP : (interfaces =127.0.0.0/8 eth0)の次の行に1行追記 >hosts allow = 192.168.1. 192.168.2. 127. -[homes]を書き換え (defaultの状態) >;[homes] >; browseable = no >; writable = no >; create mask = 0600 >; directory mask = 0700 >; path = /home/samba/netlogon >; guest ok = yes >; share modes = no (書き換え後) >[homes] >browseable = no >writable = yes >create mask = 0744 >directory mask = 0755 >path = /home/samba >guest ok = yes >share modes = no -sambaを再起動。 >$ sudo /etc/init.d/samba restart
[[DHCPから固定IPアドレスに変更する]] [[sambaのインストール]] ----

表示オプション

横に並べて表示:
変化行の前後のみ表示: