Saturday, March 29, 2008

Space Cube




The "Space Cube" claims to be the smallest PC in the world - it measures a mere 2.1" x 2.1" x 1.8". Talk about being portable! Its hard drive is actually a 64MB SDRAM card, and it is equipped with a LAN port, USB connectivity, and a monitor connector as well.







Thursday, March 27, 2008

How to use my old pc as a Router / FireWall / GateWay

One of the great things you can do with an old computer is to make a server from it.
since i have one i thought why not creating a Router + Gateway + Firewall from it ?
here is what i did :

first off all i installed Debian Lenny on it.
then read several tutrials .
and started to work.

The first thing was setting the Ethernet interfaces correctly (i used 3 old NICs).
while eth0 is the first one
eth1 is connected to Wi-Fi
=== Network configuration ===

my /etc/network/interfaces :


auto eth0
iface eth0 inet static
address 192.168.0.1
netmask 255.255.255.0
network 192.168.0.0
broadcast 192.168.0.255


this was to set the eth0 as fixed ip (static).

i edited my /etc/hosts as (on all the computers:



192.168.0.1 myservername.mydomainname myservername
192.168.0.2 mylaptop.mydomainname mylaptop


=== Samba Shares ===
i edited my /etc/samba/smb.conf (this is not a secure server !)


workgroup = MYDOMAINNAME
netbios name = %h
server string = %h server this is the main computer

[ISO]
path = /mnt/hda2/iso
browsable = yes
writeable = no
guest ok =yes
comment = ISO files

[APT]
path = /mnt/hda2/apt
comment = Deb files
browsable = yes
guest ok=yes



=== Gateway ===

Added new forwarding script to /etc/network/if-up.d/00-firewall
this script forwards all communication from eth0 to eth1.



#!/bin/sh

PATH=/usr/sbin:/sbin:/bin:/usr/bin

#
# delete all existing rules.
#
iptables -F
iptables -t nat -F
iptables -t mangle -F
iptables -X

# Always accept loopback traffic
iptables -A INPUT -i lo -j ACCEPT


# Allow established connections, and those not coming from the outside
iptables -A INPUT -m state --state ESTABLISHED,RELATED -j ACCEPT
iptables -A INPUT -m state --state NEW -i ! eth1 -j ACCEPT
iptables -A FORWARD -i eth1 -o eth0 -m state --state ESTABLISHED,RELATED -j ACCEPT

# Allow outgoing connections from the LAN side.
iptables -A FORWARD -i eth0 -o eth1 -j ACCEPT

# Masquerade.
iptables -t nat -A POSTROUTING -o eth1 -j MASQUERADE

# Don't forward from the outside to the inside.
iptables -A FORWARD -i eth1 -o eth1 -j REJECT

# Enable routing.
echo 1 > /proc/sys/net/ipv4/ip_forward


=== DHCP SERVER ===

Ive added a dhcp server for diffrent machines :
ive edited the config file :


ddns-update-style none;

#my dns

option domain-name-servers 145.253.2.75, 193.174.32.18;

default-lease-time 86400;
max-lease-time 604800;

authoritative;

# Ips

subnet 192.168.0.0 netmask 255.255.255.0 {
range 192.168.0.200 192.168.0.229;
option subnet-mask 255.255.255.0;
option broadcast-address 192.168.0.255;
option routers 192.168.0.1;
}

To Do :

* Secure samba
* Add Users policies.
* Configure exim

Thanks to :

http://www.aboutdebian.com/network.htm
http://www.aboutdebian.com/lan.htm
http://users.pandora.be/mydotcom/howto/lanconnect/router/linux.htm
www.debian-administration.org/articles/23
http://myrtfm.blogspot.com/

Saturday, March 22, 2008

סקייפ השיקה מכשיר טלפון שמאפשר למנוייה לנהל שיחות טלפון באינטרנט ללא צורך במחשב



המכשיר, אותו השיקה סקייפ בשיתוף עם חברת הסלולר 3, יוצע תמורת כמאה דולרים באוסטרליה, אוסטריה, דנמרק, הונג קונג, איטליה, אירלנד, מקאו, שבדיה ובריטניה ● השיחות בין משתמשי סקייפ יהיו בחינם, ועל שיחות ליעדים אחרים יחולו התעריפים הרגילים של 3
אנתוני גונזאלווס, InformationWeek
סקייפ השיקה אתמול (ב') מכשיר טלפון חדש שמאפשר למנוייה לנהל שיחות טלפון בחינם, ללא צורך במחשב, בתשע מדינות שונות. לצורך היוזמה חברה סקייפ לחברת הסלולר הבריטית 3. מכשיר ה-3 Skypephone, יוצע תמורת כ-100 דולרים והשימוש בו לא יהיה כרוך בתשלום של דמי מנוי ל-3. השירות יוצע באוסטרליה, אוסטריה, דנמרק, הונג קונג, איטליה, אירלנד, מקאו, שבדיה ובריטניה: המדינות בהן פועלת כיום חברת 3.
מכשיר 3 Skypephone מצויד בלחצן בודד שמאפשר לחייג ולשלוח מסרים מיידיים במהירות. לדברי אריק לז'יה, מנהל לפיתוח עסקי בסקייפ, יכולים משתמשי סקייפ להציג במכשיר את ספר הטלפונים שלהם בקלות רבה. ניתן לחייג מהמכשיר גם למי שאינם מנויי סקייפ, ועל שיחות אלה יחולו התעריפים הרגילים של חברת הסלולר 3. המכשיר אינו תומך בשירותי SkypeOut ו-SkypeIn של סקייפ.
"אפשר להכניס את המכשיר לכיס ולקחת אותו לכל מקום", אמר לז'יה. "מעתה לא זקוקים עוד משתמשי סקייפ למחשב כדי לנהל שיחות, והם יכולים לחייג כמו בטלפון רגיל". לדברי לז'יה המכשיר החדש תומך בסיכומים אליהם הגיעה סקייפ עם רשות התקשורת הפדרלית (FCC) בארה"ב, והוא יוצע גם בארה"ב "ברגע שהשוק האמריקני יהיה ליברלי יותר". מג וויטמן, מנכ"ל eBay, מסרה לא מכבר, כי סקייפ ביקשה מ-FCC לפתוח את השוק לתחרות במקביל למכרז שייערך בחודש ינואר הקרוב על טווח התדרים של 700 מגה-הרץ.
המכשיר פותח בשנה האחרונה, בשיתוף עם Qualcomm, על בסיס פלטפורמת BREW של Qualcomm. במכשיר 3 Skypephone שולבה גם טכנולוגיה של iSkoot האמריקנית והוא מיוצר על ידי AMOI הסינית. המכשיר פועל ברשתות UMTS ו-WCDMA אך לא ברשתות CDMA2000. בעתיד יפעל מכשיר 3 Skypephone גם ברשתות GSM.

Thursday, March 13, 2008

Cygwin




What Is Cygwin?
Cygwin is a Linux-like environment for Windows. It consists of two parts:
A DLL (cygwin1.dll) which acts as a Linux API emulation layer providing substantial Linux API functionality.
A collection of tools which provide Linux look and feel.
The Cygwin DLL currently works with all recent, commercially released x86 32 bit and 64 bit versions of Windows, with the exception of Windows CE.

Note that the official support for Windows 95, Windows 98, and Windows Me will be discontinued with the next major version (1.7.0) of Cygwin.

What Isn't Cygwin?
Cygwin is not a way to run native linux apps on Windows. You have to rebuild your application from source if you want it to run on Windows.
Cygwin is not a way to magically make native Windows apps aware of UNIX ® functionality, like signals, ptys, etc. Again, you need to build your apps from source if you want to take advantage of Cygwin functionality.

ok and at the end were to get that click >>

and the home page of the program is http://www.cygwin.com/