Pages

Showing posts with label config. Show all posts
Showing posts with label config. Show all posts

Tuesday, August 7, 2007

Debian Ad Hoc Wireless Networking

The following example uses eth1 for the wifi interface though this may be wlan0, ath0 or something else in your case.
Preparation

Ensure that network manager has been stopped and then bring the interface down.

sudo /etc/dbus-1/event.d/25NetworkManager stop
sudo ifdown eth1
Configuration
  1. Switch the card into ad hoc mode

  • sudo iwconfig eth1 mode ad-hoc
  1. Set the channel/frequency that you want to use.

  • sudo iwconfig eth1 channel 11
  1. Add the name (ssid) for the network you want to create/join. Use single quotes if there is a space in the name.

  • sudo iwconfig eth1 essid 'name'
  1. Add a WEP encryption key

  • sudo iwconfig eth1 key 1234567890
Activation
  1. Bring the interface back up

  • sudo ifconfig eth1 up
  1. Start dhclient to get an address

  • sudo dhclient eth1
  1. If you want to do it manually, you will have to make up an IP address.

  • sudo ifconfig eth1 10.0.0.1 netmask 255.255.255.0
echo 1 > /proc/sys/net/ipv4/ip_forward

iptables -t nat -A POSTROUTING -o eth0 -j MASQUERADE

Reference

https://help.ubuntu.com/community/WifiDocs/Adhoc

Thursday, June 28, 2007

GPG key error at apt-get

Depends:
# apt-get install debian-keyring debian-archive-keyring

If you get o follow error from an unofficial repository:

 W: GPG error: ftp://ftp.ragner.net etch Release: The following
signatures couldn't be verified because the public key is not available:
NO_PUBKEY 08GC463D1F41D098

Take the GPG key
# gpg --keyserver subkeys.pgp.net --recv-keys 08GC463D1F41D098

and add to apt

gpg --export --armor 08GC463D1F41D098 | sudo apt-key add -

End

Tuesday, June 12, 2007

Ploblem with start up apache2 on debian etch

If you run /etc/init.d/apache2 start but the apache2 do not start.
A solution can to be
edit /etc/default/apache2 and change NO_START to be 0

Saturday, May 12, 2007

How to configure Debian Brazilian locale

Configure your xserver, here is the xorg:
# dpkg-reconfigure xserver-xorg

My keyboard layout "us" and own variant "us_intl"
$ cat /etc/X11/xorg.conf
...
Section "InputDevice"
Identifier "Generic Keyboard"
Driver "kbd"
Option "CoreKeyboard"
Option "XkbRules" "xorg"
Option "XkbModel" "pc104"
Option "XkbLayout" "us"
Option "XkbVariant" "us_intl"
EndSection
...

Now configure your locales and select the default:
# dpkg-reconfigure locales

Reboot your system:
# init 6

Friday, May 11, 2007

Configuring Postfix to do smtp/relay

# aptitude install postfix sasl2-bin

  Edit /etc/postfix/main.cf

#
# Transport com relay autenticado
#

smtp_sasl_auth_enable = yes
smtp_sasl_security_options = noanonymous
smtp_sasl_password_maps = hash:/etc/postfix/saslpass

Edit /etc/postfix/saslpass

smtp.servername userlogin:password

Then, run:

  # postmap /etc/postfix/saslpass
# postfix reload
References

http://www.postfix.org/

Configurando o Postfix pra fazer smtp/relay autenticado

Monday, May 7, 2007

Configuring Wireless Connection

After you read Configuring Wireless 2100 Driver for Linux

Install wireless tools:
# aptitude install wireless-tools

Scanning wireless network:
# iwlist eth1 scanning
eth1 Scan completed :
Cell 01 - Address: 00:13:60:17:3D:60
ESSID:"netid"
Protocol:IEEE 802.11b
Mode:Master
Channel:1
Encryption key:off
Bit Rates:1 Mb/s; 2 Mb/s; 5.5 Mb/s; 11 Mb/s
Quality:50 Signal level:0 Noise level:0
Extra: Last beacon: 204ms ago


# iwconfig eth1 essid netid

#dhclient eth1

Configuring Wireless 2100 Driver for Linux

# aptitude install ipw2100-modules-[kernel version]
* LOADING FIRMWARE VIA HOT-PLUG

Before you can load the driver, you need the firmware image. You can find
instructions for obtaining the firmware by going to:

http://ipw2100.sf.net/firmware.php.

Once you have the firmware, unzip the archive. You should find seven (4)
files within it:

LICENSE A copy of the firmware license
ipw2100-(version number).fw Boot strap image
ipw2100-(version number)-i.fw Used in IBSS mode
ipw2100-(version number)-p.fw Used in monitor mode

You need to place all of these files into the hotplug firmware directory,
e.g. /usr/lib/hotplug/firmware/ or /lib/firmware/. Check the contents
of the /etc/hotplug/firmware.agent to determine the specific location for your
distribution.

Reference

http://ipw2100.sourceforge.net/INSTALL