ついに完成!無線LAN環境
こんにちは。みなさん元気ですか?最近うちのクラスで風邪&インフルエンザが流行って大変です。
昨日は最初、4人くらいしか休んでいなかったのですが、学年末テストだからといって無理をして来た人が風邪をまき散らし、その後テストということもあり部屋を密封したせいで次々と顔を青くして早退。
結局17/36人くらいがいなくなりました。
今日も半分くらいの人が休みましたが、午前中に3年生を送る会があったので、朝からは学級閉鎖にはなりませんでしたが、昼ごろになってうちの学年は学年閉鎖で強制帰宅、全校では部活動停止になりました。
後で聞いたのですが、中学校は基本的に1割休めば学級閉鎖になるそうです。
つまりうちのクラスは昨日の朝の時点で学級閉鎖にしなければならなかった、ということです。
はやいうちに学級閉鎖にしておけばこんなに広まらずにすんだのに・・・。
ところで、今週の月曜日の夕方、待望のGW-US54Miniが届きまして、勉強を急いで終わらせた後、インストールしていました。そこで、ここでは簡単にVinelinux4.1へのインストール方法を説明します。
下準備として、/sbin:/usr/sbinにPATHを通しておいてください。一時的に通すなら、
# export PATH=$PATH:/sbin:/usr/sbin
と打ちます。
まず、ドライバをダウンロードするのですが、Planexのサイトからダウンロードできるやつは、なぜかコンパイルのときにエラーや警告がでまくったので、GW-US54Miniに入っているチップ、zd1211用のドライバを使います。
コンパイルとインストールは
# make
# make install
# modprobe -v zd1211
これだけです。簡単です。
ここまでいったらGW-US54Miniを挿し、
# /sbin/ifconfig
と打ってみます。wlan0という項目が表示されていれば成功です。このままだと子機として動作するので
# vi /etc/sysconfig/network-scripts/ifcfg-wlan0
で設定します。なければ作ります。
参考までに私の設定です。ルータにつながっているネットワーク(eth0)が192.168.0.0/24です。
※あくまで参考です。詳しいことは「network-scripts」などでググってください
# ZyDAS ZD1211 802.11b/g USB-WLAN
TYPE=Wireless
DEVICE=wlan0 ←デバイス名
ONBOOT=yes ←自動起動
BOOTPROTO=none ←IPアドレスの自動取得をしない
IPADDR=192.168.1.2 ←wlan0のIPアドレス。eth0などと同じネットワークにするとeth0ごと使えなくなっちゃいます。
NETMASK=255.255.255.0 ←自宅内LANの場合、普通はこれでOK
GATEWAY=192.168.0.1 ←ルータのIPアドレス
MODE=Master ←親機モード
ESSID=mywlan ←SSID。隣の家などの他の無線LANネットワークと重複しないような名前にします。
KEY=s:************* ←WEPキー。13文字の半角英数字
USERCTL=no ←他のユーザからの変更を禁止する
さて、ここまでいったらwlan0を再起動します。
このとき、なぜか一回抜いて挿し直さないとうまくいかないようです。
# ifdown wlan0 #終了したらGW-US54Miniを抜く
# ifup wlan0 #起動したらGW-US54Miniを挿す
これでとりあえず接続できるようになりました。ためしにDSやPSPから接続してみてください。きっとGW-US54Miniに接続はできたと思いますが、インターネットにはつながらないと思います。ここでつながればそれはそれでいいのですが。すくなくとも、私の環境ではつながりませんでした。
なぜなら、wlan0とeth0の間をパケットが通れないからです。違うネットワークでそのままでは通信できません。これには、Linuxでeth0とwlan0をルーティングしなければなりません。
そこで使うのがiptablesです。これをつかうとパケットのルーティング、フィルタリング、NAT、IPマスカレードなど、一般的に使われるネットワーク関係のことはほとんどこれでできます。普通は以下をところどころ書き直せばOKだと思いますが、詳しく知りたい場合はこちらを参照してください。iptables
# echo 1 > /proc/sys/net/ipv4/ip_forward #パケットのフォワーディングを有効にする
# iptables -A FORWARD -i wlan0 -o eth0 -s 192.168.1.0/24 -j ACCEPT #eth0からwlan0へのフォワーディング
# iptables -A FORWARD -m state --state ESTABLISHED,RELATED -j ACCEPT #それに関連したパケットもフォワーディング
# iptables -t nat -A POSTROUTING -o eth0 -s 192.168.1.0/24 -j MASQUERADE #IPマスカレード
とりあえずこれでいけるとおもいます。ポートやホストごとにがっちりファイアウォールをつくってあり、うまくいかない場合は各自で設定してください。セキュリティなども考えていませんので各自で改造してください。
コメント
обсерватория в казани экскурсия | 2025/06/15 02:44 PM
Казань ночью — это нечто!
Экскурсия оставила массу
эмоций.
экскурсии в казани 2025 цены и описание | 2025/06/15 06:44 AM
Тур в Болгар помог узнать больше о Татарстане.
Рекомендую!
аудиторская проверка для бюджетных организаций Минск | 2025/06/12 01:05 AM
Помогли восстановить бухгалтерский учет.
Очень профессиональный подход!
https://www.harvard.edu/ | 2025/06/11 09:32 PM
# Harvard University: A Legacy of Excellence and Innovation
## A Brief History of Harvard University
Founded in 1636, **Harvard University** is the oldest and one of the most prestigious higher education institutions in the United
States. Located in Cambridge, Massachusetts, Harvard has
built a global reputation for academic excellence, groundbreaking research, and
influential alumni. From its humble beginnings as a small college established to
educate clergy, it has evolved into a world-leading university that shapes the
future across various disciplines.
## Harvard’s Impact on Education and Research
Harvard is synonymous with **innovation and intellectual leadership**.
The university boasts:
- **12 degree-granting schools**, including the renowned **Harvard Business
School**, **Harvard Law School**, and **Harvard Medical School**.
- **A faculty of world-class scholars**, many of whom are Nobel laureates,
Pulitzer Prize winners, and pioneers in their fields.
- **Cutting-edge research**, with Harvard leading initiatives in artificial intelligence, public health, climate change,
and more.
Harvard’s contribution to research is immense, with billions of dollars allocated
to scientific discoveries and technological advancements each year.
## Notable Alumni: The Leaders of Today and Tomorrow
Harvard has produced some of the **most influential figures** in history, spanning politics, business, entertainment, and science.
Among them are:
- **Barack Obama & John F. Kennedy** – Former U.S.
Presidents
- **Mark Zuckerberg & Bill Gates** – Tech visionaries (though Gates did not
graduate)
- **Natalie Portman & Matt Damon** – Hollywood icons
- **Malala Yousafzai** – Nobel Prize-winning activist
The university continues to cultivate future leaders who shape industries and drive global progress.
## Harvard’s Stunning Campus and Iconic Library
Harvard’s campus is a blend of **historical charm and modern innovation**.
With over **200 buildings**, it features:
- The **Harvard Yard**, home to the iconic **John Harvard Statue** (and the famous “three lies” legend).
- The **Widener Library**, one of the largest university libraries in the world, housing **over 20 million volumes**.
- State-of-the-art research centers, museums, and performing arts venues.
## Harvard Traditions and Student Life
Harvard offers a **rich student experience**, blending academics with vibrant traditions,
including:
- **Housing system:** Students live in one of 12
residential houses, fostering a strong sense of community.
- **Annual Primal Scream:** A unique tradition where students de-stress by running through Harvard Yard before finals!
- **The Harvard-Yale Game:** A historic football rivalry that unites alumni and students.
With over **450 student organizations**, Harvard students engage in a diverse range of extracurricular activities, from entrepreneurship to performing arts.
## Harvard’s Global Influence
Beyond academics, Harvard drives change in **global policy,
economics, and technology**. The university’s research impacts healthcare,
sustainability, and artificial intelligence, with partnerships across industries worldwide.
**Harvard’s endowment**, the largest of any university, allows it to fund
scholarships, research, and public initiatives, ensuring a
legacy of impact for generations.
## Conclusion
Harvard University is more than just a school—it’s a **symbol of excellence,
innovation, and leadership**. Its **centuries-old traditions,
groundbreaking discoveries, and transformative education** make it one of the most influential institutions in the world.
Whether through its distinguished alumni, pioneering research, or vibrant student life, Harvard
continues to shape the future in profound ways.
Would you like to join the ranks of Harvard’s legendary scholars?
The journey starts with a dream—and an application!