Códigos para Nokia N95

Abaixo uma lista dos códigos disponiveis para o N95:
Retirado de:
e http://alexm.unetvale.com.br/blog/2008/04/codigos-para-seu-n95/

Please apply these codes at your own risk!
If you are not completely crazyand use them appropriately, they can
indeed come in quite handy one day!
*#06# – IMEI (serial number).
Structure of the IMEI:XXXXXX (TAC) XX (FAC) XXXXXX (SNR) X (SP)
TAC = type approval code
FAC = final assembly code
SNR = serial number
SP = spare
*#0000# – phone model, firmware version and date
*#7370# or *#res0# – full phone format, wipes everything clean. default
security code 12345 until changed by the user
*#7780# – phone reset, clears settings without deleting most data.
default security code 12345 until changed by the user
*#7370925538# or *#res0wallet# – deletes everything in the wallet,
in case of lost password
*#92702689# or *#war0anty# – lifetime timer
*#2820# or *#bta0# – displays the N95’s bluetooth MAC address
*#62209526# or *#mac0wlan# – displays the N95’s WLAN MAC address
[Green]+[def3]+[*+] – fail-safe reformat, use this as a last resort
if the regular format codes do not work or if the phone won’t completely boot normally

Não deixe de conferir nosso novo blog sobre Linux em : Ubuntu "4us"

Asterisk com o Nokia N95


Instalando Pidgin com Skype

Link: http://eion.robbmob.com/
Alternativa: http://www.stumblerz.de/?p=122

Instale os programas com: sudo apt-get install skype pidgin

Os repositórios medibuntu serão acionados. Ver post específico.

Depois instale o pacote que permite acessar o skype pelo pidgin:
wget http://eion.robbmob.com/skype4pidgin.deb
sudo dpkg -i skype4pidgin.deb

Instruções detalhadas do site: http://eion.robbmob.com/README.txt

Skype plugin for Pidgin/Adium/libpurple

If you've found this file then you'll probably realise that this is the Skype plugin for libpurple.  Yes, it does require Skype to be running as it uses the Skype API to communicate with a running copy of Skype.  The Windows and Linux versions were made by me in a week.  The OS X version has taken lots longer, but it needed reverse engineering of the Skype.framework before it was GPL compatable.


It seems people have wanted a Skype plugin for Gaim/Pidgin/Adium for a long time, however it seems to be rare to find a glib coder who uses Pidgin who also uses Skype.  There seems to have been a lot of stigma over Skype being closed-source and evil, however there has still been a demand for this plugin and the end-user has suffered for long enough.  That was kind of my motivation.  Plus I enjoy both Pidgin and Skype and it made sense to me to combine the two.  I know it's not the ideal solution (to still have Skype running), but if you're going to have it running, you might as well have your buddies in one place, right?


For the binary version of the plugin, either install the appropriate package or .exe for your distro or copy libskype to the appropriate plugins directory.  On Windows its normally C:\Program Files\Pidgin\plugins, on Linux it's normally /usr/lib/purple-2/ or ~/.purple/plugins
On OSX, double click on SkypePlugin.AdiumPlugin to install (may need a restart of Adium).  You may need to delete the old version which is at ~/Library/Application Support/Adium 2.0/Plugins.  If upgrading to Adium 1.2, you will need to delete the account and re-add it.

To install swanky looking icons, extract skype_icons.zip to the pixmaps/pidgin/protocols directory (on Windows, C:\Program Files\Pidgin\pixmaps\pidgin\protocols).
To have the right smilies/emotes in your Skype chat messages, copy themes into the pixmaps/pidgin/emotes/default folder.

To compile from source, the easiest way is extract libskype.zip into the ${PIDGIN_SOURCE}/libpurple/plugins/ directory and compile using "make libpurple.so" or "make -f Makefile.mingw libpurple.dll"

Known Issues

* Pidgin crashes at startup if Skype not running (Linux)
* No notification popup on file being received/notificaitons (Windows)

* Skype sounds still play even when it's hidden

* Adium doesn't show file transfer progress (OS X)
* Unable to send file from within Adium (API Limitation)
* Send file doesn't use the built in libpurple methods. (API Limitation)
* Linux version still opens up Skype message windows. (API Limitation)
* Linux/OSX version doesn't show buddy icons. (API Limitation)
* No typing notifications with official Skype clients. (API Limitation)


Q: Does this plugin require Skype to be running?
A: Yes.

Q: Can you make a version that doesn't need Skype?
A: Not possible right now.

Q: What version of Pidgin do I need to be able to run this plugin?
A: You need at least version 2.1.1 of Pidgin.  You can download updates to Pidgin from www.pidgin.im

Q: What version of Adium do I need to be able to run this plugin?
A: You need version 1.2 to run the latest version of the plugin or 1.1 to run the older version of the plugin.  You can download updates to Adium from www.adiumx.com

Q: Where can I get the protocol icons?
A: Download skype_icons.zip from this website and install the icons into the appropriate pixmaps/pidgin/protocols directory.

Q: How can I hide the Skype icon from the tray?
A: I'm planning to automate and make this cross-platform.

Q: How can I hide the Skype icon from the tray on Windows?
A: Right click on the taskbar, click Properties, click the Customize... button, find Skype in the list, click on it, choose 'Always Hide' from the drop-down box.

Q: How can I hide Skype in OSX?
A: Focus (click on) the Skype window, press ⌘+H to hide the application.  Alternativly, focus the Skype window and choose 'Hide Skype' from the 'Skype' menu.

Q: How can I hide Skype in Linux?
A: A bit more tricky.  What works well for me, is turning off message windows in the Notifications settings in Skype (Options->Chat->Display an event notification).  Otherwise, you can leave the message window open, but move it to another workspace so that it doesn't bother you any more.

Q: The Windows version has feature "X", but the Linux/OSX version doesn't
A: The API on Linux/OSX is more restrictive than the Windows API.  Try keeping up to date with the latest versions of Skype to take advantage of these features as they are implemented by the Skype developers.

Q: Why is "Send file..." not in the conversation menu, but in the "More..." menu instead?
A: The short answer is that Skype doesn't allow file sending in the way that libpurple wants, so it has to do it through a Skype popup instead of a Pidgin popup

Q: I set my status to "Away" but Skype still shows me as "Online"?
A: For some reason the Skype tray icon isn't always what is being seen at the other end.  Just ignore it :)

Q: On OSX, I get bugged with the "Allow API Access" window from Skype every time Adium starts?
A: Turn on "access for assistive devices" See: http://images.apple.com/applescript/uiscripting/gfx/gui.03.jpg


If you've got any questions/problems/comments with this plugin, feel free to flick me an email at eion@robbmob.com or chat message on Skype at bigbrownchunx.

Although none of this is necessary in my country, it may apply in yours.  New Zealand law permits reverse-engineering for purposes of interoperability, so the following legal notices are just a courtesy.

Skype API Terms of Use:
The following statement must be displayed in the documentation of this appliction:
This plugin "uses Skype Software" to display contacts, and chat to Skype users from within Pidgin
"This product uses the Skype API but is not endorsed, certified or otherwise approved in any way by Skype"

The use of this plugin requries your acceptance of the Skype EULA (http://www.skype.com/intl/en/company/legal/eula/index.html) which you already accepted when you installed Skype.

Skype is the trademark of Skype Limited


Elisa Media Center

Link: http://www.ubuntugeek.com/how-to-install-elisa-media-center-in-ubuntu.html

Para instalar no ubuntu hardy: apt://elisa

ou acrescente a linha eem sources.list e depois:
deb http://ppa.launchpad.net/elisa-developers/ubuntu hardy  main
$ sudo aptitude update
$ sudo aptitude install elisa elisa-plugins-ugly

Primeiras instruções: https://code.fluendo.com/elisa/trac/wiki/FirstRun

Exemplo de Pastas adicionadas:
locations = ['file:///movies/video/Video/', 'file:///music/Music', 'file:///documents/Downloads/Music']
auto_locations = 1

label = 'TV'
only_media = ['video']
location_type = 'local'

label = 'Music'
only_media = ['audio']
location_type = 'local'

lablel = 'New Music'
only_media = ['audio']

location_type = 'local'

Lista de Pacotes para turbinar Ubuntu (multimedia)

Link: http://www.vivaolinux.com.br/dica/Preparando-seu-Ubuntu-7.04-para-tudo-em-multimidia/

Link: http://ubuntuforum-pt.org/index.php?topic=15522.0

sudo apt-get install twolame lame wv mpc flac
ubuntu-restricted-extras sun-java6-fonts cpdvd faac faad ffmpeg mp3gain x264 mpg123 mpg321 gqmpeg regionset mjpegtools sox mplayer mplayer-fonts mplayer-skins mozilla-mplayer xine-ui libxine1 libxine1-ffmpeg gstreamer0.10-ffmpeg gstreamer-tools gstreamer0.10-pitfdll gstreamer0.10-plugins-bad gstreamer0.10-plugins-bad-multiverse gstreamer0.10-sdl

sudo apt-get install python-coherence

sudo apt-get install rar unrar p7zip p7zip-full unace

Link: https://help.ubuntu.com/community/Medibuntu
sudo wget http://www.medibuntu.org/sources.list.d/hardy.list -O /etc/apt/sources.list.d/medibuntu.list
sudo apt-get update && sudo apt-get install medibuntu-keyring && sudo apt-get update
sudo apt-get update
sudo apt-get install w32codecs libdvdcss2 acroread acroread-plugins mozilla-acroread

sudo apt-get install timidity-interfaces-extra timidity playmidi

then set all midis to open with the command: timidity -ig
The -ig opens it with a GTK gui.

Edite o arquivo sudo gedit /etc/modules e adicione a linha:

crie o diretório mkdir /usr/share/midi/instruments
baixe o arquivo: http://osdir.com/ml/audio.timidity++.general/2006-05/txtjArfghS5FL.txt
e salve como /etc/timidity/timidity.cfg
antes renomeie o arquivo anterior como .old para guardá-lo.
GUS patches:http://www.dcee.net/Files/Music/Gus/
Pro Patches Lite 1.50
wget http://www.dcee.net/Files/Music/Gus/pplt_150.arj
wget http://www.dcee.net/Files/Music/Gus/pplt_150.a01
wget http://www.dcee.net/Files/Music/Gus/pplt_150.a02
wget http://www.dcee.net/Files/Music/Gus/pplt_150.a03
sudo apt-get install arj
arj e pplt_150.arj

No Link tem deb para instalar timidity-patches: http://dir.filewatcher.com/d/Debian/all/sound/timidity-patches_0.1-5_all.deb.10509736.html

iPod on Ubuntu


mserv - jukebox-style music server

Link: http://www.mserv.org/

Link para cliente PHP: http://dougiamas.com/mserv/src/mserv-php-090.tgz
Link do desenvolvedor: http://dougiamas.com/mserv/

Quando instalar mserv, acesse com http://localhost/mserv
De início tem dois usuários:
user=root, pass=root, access=MASTER
user=guest, pass=guest, access=GUEST

Para instalar utilize o comando:
sudo apt-get install mserv mserv-cgi mserv-client mpg123 vorbis-tools music123 mpg321

Uma explicação do que é o mserv esta em: http://www.linuxjournal.com/article/4434

DLNA Server - fuppes


How-to's para analisar

Como ter um mirror do apt local.
Link: http://www.howtoforge.com/local_debian_ubuntu_mirror

Integrating amavisd-new Into Postfix For Spam- And Virus-Scanning
Link: http://www.howtoforge.com/amavisd_postfix_debian_ubuntu

Instalando eeepc-ubuntu on 1000H

Link: http://www.array.org/ubuntu/
Link: http://forum.eeeuser.com/viewtopic.php?id=38030

Primeiro instale o ubuntu através de um cartão de memória ou pendrive com o utilitário UNetbootin. É preciso que o cartão esteja formatado com FAT32 e tenha 1Gb.
Utilize a distro :

Pode criar um USB distro com o software abaixo:

Instruções em inglês no site:

adicionar a linha: deb http://www.array.org/ubuntu hardy eeepc
com os comandos:
wget http://www.array.org/ubuntu/array.list
sudo mv -v array.list /etc/apt/sources.list.d/

chave pública:
wget http://www.array.org/ubuntu/array-apt-key.asc
sudo apt-key add array-apt-key.asc

Atualize o cache do apt: sudo apt-get update

Instalação do kernel personalizado para o eeepc:
sudo apt-get install linux-eeepc linux-headers-eeepc

Reinicie pelo novo kernel, se der tudo certo retire as referências ao kernel genérico:
sudo apt-get remove linux-generic linux-image-generic linux-headers-generic linux-restricted-modules-generic

opcionalmente instaale também:
sudo apt-get install linux-image-eeepc

Altere o /etc/fstab retirando a linha do cdrom para não ter conflitos no futuru:
/dev/sdc1       /media/cdrom0   udf,iso9660 user,noauto,exec 0       0

Depois crie o diretório: sudo mkdir /media/MMCSD
e acrescente no sudo gedit /etc/fstab :
/dev/sdb1 /media/MMCSD auto user,auto,exec,rw 0 0

Para trabalhar com telas pequenas faça:
gconftool-2 --set /apps/nautilus/preferences/desktop_font --type string "Sans 8"
gconftool-2 --set /desktop/gnome/interface/document_font_name --type string "Sans 8"
gconftool-2 --set /desktop/gnome/interface/font_name --type string "Sans 8"
gconftool-2 --set /apps/metacity/general/titlebar_font --type string "Sans Bold 8"
gconftool-2 --set /desktop/gnome/interface/monospace_font_name --type string "Monospace 8"
gconftool-2 --set /desktop/gnome/interface/toolbar_style --type string "icons"
gconftool-2 --type bool --set /apps/compiz/plugins/move/allscreens/options/constrain_y 0

Correções de recursos de som:

sudo gedit /etc/acpi/events/eeepc-hotkey

event=hotkey ATKD
action=/etc/acpi/eeepc-hotkeys.sh %e

sudo gedit /etc/acpi/eeepc-hotkeys.sh
case $code in
# Fn+F7 -- mute/unmute speakers
acpi_fakekey 113
# Fn+F8 -- decrease volume
acpi_fakekey 114
# Fn+F9 -- increase volume
acpi_fakekey 115

E depois:

sudo chmod +x /etc/acpi/eeepc-hotkeys.sh

sudo /etc/init.d/acpid restart

gconftool-2 --set /desktop/gnome/sound/default_mixer_tracks --type list --list-type string "[PCM]"

Executar módulos ao iniciar o eeepc:
sudo gedit /etc/modules

pciehp pciehp_debug=1 pciehp_force=1

Tem post que aconselha estes módulos:
pciehp pciehp_debug=1 pciehp_force=1
snd_hda_intel model=auto

Mas este comentário é interessante:

NOTE: The EeePC does require extra modules not included in this list (like rt2860sta, atl1e, eeepc_acpi,
snd_hda_intel), but Ubuntu should automatically load them on startup. There is no need to explicitly specify these modules within this
Mais dicas em: http://forum.eeeuser.com/viewforum.php?id=43

Script que promete corrigir muita coisa sobre as teclas especiais:

Para ter tecla especial de wireless pode ser feito:
sudo gedit /etc/acpi/eeepc-wireless-toggle.sh
WLANSTATE=$(cat $wlan_control)
case $WLANSTATE in
ifconfig ath0 down
modprobe -r ath_pci
echo 0 > $wlan_control
modprobe -r pciehp
modprobe pciehp pciehp_force=1 pciehp_debug=1
echo 1 > $wlan_control
modprobe ath_pci
echo 0 > $wlan_control
echo 1 > $wlan_control
Para evitar o início do evolution quando conecta o cabo de força:
sudo chmod -x /etc/acpi/mailbtn.sh

Melhorando a nevagação: https://launchpad.net/netbook-remix

deb http://ppa.launchpad.net/netbook-remix-team/ubuntu hardy main
deb-src http://ppa.launchpad.net/netbook-remix-team/ubuntu hardy main

Não instale o pacote: ume-config-netbook
Instale somente:
sudo apt-get install go-home-applet human-netbook-theme maximus metacity ume-launcher window-picker-applet

Once installed, you'll need to add maximus to autostart for your session. You'll also need to setup the gnome-panel to look like the
screenshots, basically:
* Delete bottom panel
* Setup top panel like: GoHomeApplet|WindowPickerApplet|NotificationArea|MixerApplet|Clock
O resultado é algo do tipo:

Outros temas:
  1. Save the file HumanCompact.tar.bz2 to your computer.
  2. Open the gnome’s appearence dialog with System > Preferences > Appearance.
  3. Drag and drop the downloaded file into the Theme tab of the appearance dialog.
  4. Choose “Apply new theme” in the popup dialog.
Para ter controle sobre a frequencia da CPU instale:
sudo apt-get remove powernowd
sudo apt-get install cpufrequtils sysfsutils
sudo modprobe p4_clockmod

A CPU ficará lenta até que se altere o arquivo:
sudo gedit /etc/sysfs.conf
adicionando a linha: devices/system/cpu/cpu0/cpufreq/scaling_governor = ondemand

e colocando no arquivo sudo gedit /etc/modules as linhas:

E crie dois arquivos com os comandos abaixo:
sudo echo > /etc/acpi/ac.d/90-cpufreq.sh '#!/bin/sh'
sudo echo >> /etc/acpi/ac.d/90-cpufreq.sh '/usr/bin/cpufreq-selector -g performance'
sudo echo > /etc/acpi/battery.d/90-cpufreq.sh '#!/bin/sh'
sudo echo >> /etc/acpi/battery.d/90-cpufreq.sh '/usr/bin/cpufreq-selector -g ondemand'
sudo chmod +x /etc/acpi/ac.d/90-cpufreq.sh
sudo chmod +x /etc/acpi/battery.d/90-cpufreq.sh

Agora faça um rebbot....

Com o comando abaixo usuários normais podem alterar a frequencia da cpu com o applet apropriado:
sudo chmod +s /usr/bin/cpufreq-selector

Os comandos abaixo resolvem algumas questões de desligamento de camera, etc...
sudo apt-get install module-assistant eeepc-acpi-source
sudo m-a a-i eeepc-acpi
sudo sh -c 'echo eeepc-acpi >> /etc/modules'

Problemas com som podem ser resolvidos adicionando ao arquivo:
sudo gedit /etc/modprobe.d/snd-hda-intel
o texto:
options snd-hda-intel model=auto

Altere o arquivo:
sudo gedit /etc/default/alsa
alterando a linha para:

Crie o arquivo: sudo gedit /usr/lib/pm-utils/sleep.d/45sound
if [ ! -x /sbin/alsa ]; then
exit 0;
case "$1" in
/sbin/alsa suspend
/sbin/alsa resume
exit $?

e depois:
sudo chmod +x /usr/lib/pm-utils/sleep.d/45sound

Para configurar swap file ou invés de uma partição:
ou mais simples: sudo apt-get install swapd
e configuração:
# swapd.conf - config file for swapd
# Copyright 2000 Neven Lovric 

# Memory limit in kilobytes.
# When the total amount of free memory gets below this number, swapd creates
# a new swap file.
# 16384 or more recommended
memlimit 85660

# Pause between memory checks in miliseconds.
# When the total amount of free memory is above , swapd will pause
# for  miliseconds before checking memory again.
# 1000 should be ok for most systems
pause 1000

# Swap file size in kilobytes.
# >= 64, 4096 recommended
swapsize 131072

# Maximum number of swap files.
# No more than  swap files will be used.
# 0 = unlimited (as many as the kernel will allow)
# 8 = maximum number of swaps in the default kernel
maxswaps 0

# Timeout in seconds.
# If the last created swap file is unused for  seconds, it will be
# removed. The last created swapfile is considered unused when there are
# more than  +  kb of free memory (physical + swap).
# 60 is nice
timeout 60

# Swap directory where all the swap files are kept.
swapdir /swap

# PID file (where the currently running swapd stores it's PID so a new swapd
# can find it)
pidfile /var/run/swapd.pid

# Full path to mkswap.
mkswap /sbin/mkswap

Link genérico: http://wiki.eeeuser.com/

Uma forma de instalar Wine

Link: http://tecnologia.comopiniao.com.br/linux/como-instalar-o-google-chrome-no-ubuntu/


Primeiro, vamos adicionar o repositório com a última versão do wine, para isso, basta digitar os comandos abaixo:
wget -q http://wine.budgetdedicated.com/apt/387EE263.gpg -O- | sudo apt-key add - sudo wget http://wine.budgetdedicated.com/apt/sources.list.d/hardy.list -O /etc/apt/sources.list.d/winehq.list
Agora, vamos instalar a última versão do Wine
sudo apt-get update sudo apt-get install wine
Vamos precisar de algumas bibliotecas que são necessárias para o Chrome rodar, para isso, vamos usar o Winetricks
wget http://www.kegel.com/wine/winetricks cp winetricks /usr/sbin sudo chmod a+x /usr/sbin/winetricks winetricks riched20 riched30 flash
Esses comandos vão instalar o próprio Winetricks, as bibliotecas riched20, riched32 e o plugin flash.

Algumas opções do winetricks:
Link: http://wiki.winehq.org/winetricks

Usage: winetricks [options] package [package] ...

This script can help you prepare your system for Windows applications that mistakenly assume all users' systems have all the needed redistributable runtime libraries or fonts. Some options require the Linux 'cabextract' program.

-q quiet. You must have already agreed to the EULAs.
-v verbose
-V display Version

art2kmin MS Access 2000 runtime. License required!
colorprofile Standard RGB color profile
comctl32 MS common controls 5.80
comctl32.ocx MS comctl32.ocx and mscomctl.ocx, comctl32
wrappers for VB6
corefonts MS Arial, Courier, Times fonts
dcom98 MS DCOM, override the Wine implementation
dirac0.8 the obsolete Dirac 0.8 directshow filter
Sponsored by Lattica
directx9 MS DirectX 9 user redistributable MoinMoin Powered
divx divx video codec
dotnet11 MS .NET 1.1 (requires Windows license)
dotnet20 MS .NET 2.0 (requires Windows license)
ffdshow ffdshow video codecs
flash Adobe Flash Player ActiveX and firefox plugins
fontfix Fix bad fonts which cause crash in some apps (e.g. .net).
gdiplus MS gdiplus.dll (from powerpoint viewer)
gecko The HTML rendering Engine (Mozilla)
icodecs Intel Codecs (Indeo)
jet40 MS Jet 4.0 Service Pack 8
liberation Red Hat Liberation fonts (Sans, Serif,Mono)
mdac25 MS MDAC 2.5: Microsoft ODBC drivers, etc.
mdac27 MS MDAC 2.7
mdac28 MS MDAC 2.8
mfc40 MS mfc40 (Microsoft Foundation Classes from Visual C++ 4)
mfc42 MS mfc42 (see vcrun6 below)
mono19 mono-1.9.1-gtksharp-2.10.4-win32-2
msi2 MS Installer 2.0
msls31 MS Line Services 3.1 (needed by native riched?)
msxml3 MS XML version 3
msxml4 MS XML version 4
msxml6 MS XML version 6
ogg ogg filters/codecs: flac, theora, speex,vorbis, schroedinger
pdh MS pdh.dll (Performance Data Helper)
quicktime72 Apple Quicktime 7.2
riched20 MS riched20 and riched32
riched30 MS riched30
tahoma MS Tahoma font (not part of corefonts)
vb3run MS Visual Basic 3 runtime
vb4run MS Visual Basic 4 runtime
vb5run MS Visual Basic 5 runtime
vb6run MS Visual Basic 6 runtime
vcrun6 MS Visual C++ 6 sp4 libraries (mfc42,msvcp60, msvcrt)
vcrun2003 MS Visual C++ 2003 libraries(mfc71,msvcp71,msvcr71)
vcrun2005 MS Visual C++ 2005 libraries(mfc80,msvcp80,msvcr80)
vcrun2005sp1 MS Visual C++ 2005 sp1 libraries
vcrun2008 MS Visual C++ 2008 libraries(mfc90,msvcp90,msvcr90)
vjrun20 MS Visual J# 2.0 libraries (requires dotnet20)
wmp9 MS Windows Media Player 9 (requires Windows license)
wmp10 MS Windows Media Player 10 (requires Windows license)
wsh51 MS Windows Scripting Host 5.1
wsh56 MS Windows Scripting Host 5.6
wsh56js MS Windows scripting 5.6, jscript only, nocscript
wsh56vb MS Windows scripting 5.6, vbscript only,no cscript
xvid xvid video codec

autohotkey Autohotkey (open source gui scripting language)
firefox3 Firefox Version 3
kde KDE for Windows installer
mpc Media Player Classic
vlc VLC media player

allfonts All listed fonts (corefonts, tahoma, liberation)
allcodecs All listed codecs (xvid, ffdshow, icodecs)
fakeie6 Set registry to claim IE6sp1 is installed
native_mdac Override odbc32 and odbccp32
nt40 Set windows version to nt40
win98 Set windows version to Windows 98
win2k Set windows version to Windows 2000
winxp Set windows version to Windows XP
vista Set windows version to Windows Vista
winver= Set windows version to default (winxp)
volnum Rename drive_c to harddiskvolume0 (needed by some installers)

sources.list para analisar

Vale a pena dar uma olhada nestes topicos disponiveis com o source.llist abaixo:

Sources.list do Ubuntu 8.04 com fontes para o Ubuntu Tweak e o GNU Enterprise.

deb http://ppa.launchpad.net/tualatrix/ubuntu hardy main
deb-src http://ppa.launchpad.net/tualatrix/ubuntu hardy main

deb http://www.gnuenterprise.org/downloads current/


Link: http://linuxpoison.blogspot.com/2008/07/fetchmail-configuration.html

First make an empty file named “.fetchmailrc” in your home directory. The easiest way for it is to use the command “touch”.
$ cd ~/
$ touch .fetchmailrc

Then change the permission of that file to 600 (that is, readable and writable only by the owner of the file).
$ chmod 600 .fetchmailrc

Now add these lines to .fetchmailrc file

poll SERVER with proto PROTOCOL
user REMOTE_USER there with password REMOTE_PASSWORD is LOCAL_USER here

You must replace all the capital-letter words with the real values.

SERVER is the name of server you use to receive e-mails.
PROTOCOL is the type of SERVER (for example, IMAP or POP3). If you don’t know, use AUTO.
REMOTE_USER is the user name of the account you have on the SERVER.
REMOTE_PASSWORD is the password for REMOTE_USER.
LOCAL_USER is the user name of the account you have on your machine. Don’t use “root”.

Example: You can have multiple account configuration

poll pop.anydomain.com with proto POP3
user nikesh there with password password is otheruser here

poll pop.otherdomain with proto POP3
user user1 there with password pass is user2 here

It’s the time to run fetchmail.
$ fetchmail

You can use “-v” option to see what is going on.
$ fetchmail -v

For an automatic pick-up of your mail, you could write your own script that calls fetchmail every hour and delivers the mail. But in stead of using the cron-daemon you can start fetchmail also in daemon mode. This is very easily done by this command : fetchmail –daemon 3600

Interval (3600) is a numeric argument that specifies the polling interval in seconds.

Link : http://www.howtoforge.com/debian_etch_fetchmail

Fetchmail is a program for retrieving emails from remote servers. Imagine you have five email accounts on five different servers. Of course, you don't want to connect to each of them to get your emails. This is where fetchmail comes into play. If you have a user account on a Linux server, you can make fetchmail download emails from remote servers and put them into just one mailbox (the one of your Linux user), from where you can retrieve them with your email client (e.g. Thunderbird or Outlook).
Or imagine you have an email account at a provider that doesn't do spam- and virus filtering. In that case you could use fetchmail to download the mails to your own server and pipe them through spam- and virus filters (e.g. SpamAssassin and ClamAV) before you download the mails with your email client.
I do not issue any guarantee that this will work for you!
apt-get install fetchmail
gedit /etc/default/fetchmail
# This file will be used to declare some vars for fetchmail
gedit /etc/fetchmailrc

# /etc/fetchmailrc for system-wide daemon mode
# This file must be chmod 0600, owner fetchmail

set daemon        300                # Pool every 5 minutes
set syslog                        # log through syslog facility
set postmaster  root
set no bouncemail                # avoid loss on 4xx errors
# on the other hand, 5xx errors get
# more dangerous...

# Hosts to pool

# Defaults ===============================================================
# Set antispam to -1, since it is far safer to use that together with
# no bouncemail
timeout 300
antispam -1
batchlimit 100

poll pop.someprovider.tld protocol POP3 user "[email protected]" there with password "secret" is falko here
poll mail.otherprovider.tld protocol POP3 user "ftimme" there with password "verysecurepassword" is falko here fetchall
poll mailin.tillsprovider.tld protocol POP3 user "tbrehm" there with password "iwonttellyou" is till here keep

At the beginning of the file we have some global options such as set daemon 300 (which means fetchmail should retrieve emails every 300 seconds) that control the operation of the program. The meanings of the above options are as follows:
  • set daemon: Set a background poll interval in seconds.
  • set syslog: Do error logging through syslog.
  • set postmaster: Give the name of the last-resort mail recipient (default: user running fetchmail, "postmaster" if run by the root user).
  • set no bouncemail: Direct error mail to the local postmaster (as per the "postmaster" global option above).
Then we have the server and the user options options. These go together into the lines beginning with poll; if there are options that are the same for each poll line, we can as well specify them before the poll lines in a section that begins with defaults: (such as timeout, antispam, and batchlimit in our example).
  • timeout: Server inactivity timeout in seconds (default 300).
  • antispam: Specify what SMTP returns are interpreted as spam-policy blocks.
  • batchlimit: Specify the maximum number of messages that will be shipped to an SMTP listener before the connection is deliberately torn down and rebuilt (defaults to 0, meaning no limit).
The poll lines are self-explanatory; as you see fetchmail retrieves emails from both of falko's external email accounts and puts them into one account.
You will notice that the poll lines have different endings (e.g. nofetchall (default), fetchall, keep, nokeep). The meanings are as follows:
  • nofetchall: Retrieve only new messages (default). If nothing else is specified (e.g. fetchall, keep), this means nofetchall.
  • fetchall: Fetch all messages whether seen or not.
  • keep: Don't delete seen messages from server.
  • nokeep: Delete seen messages from server.
To learn more about all available configuration settings, take a look at man fetchmail
chmod 600 /etc/fetchmailrc
chown fetchmail /etc/fetchmailrc
/etc/init.d/fetchmail start

Outro Link: http://www.webmonkey.com/tutorial/Set_Up_a_Debian_or_Ubuntu_Machine_as_a_Maildrop

Compartilhar Internet ou DCHP Server

Compartilhamento de Internet

Link: http://ubuntuforums.org/showthread.php?t=91370

1. Start by configuring the network card that interfaces to the other computers on you network:
# ifconfig ethX ip
where ethX is the network card and ip is your desired server ip address (Usually is used)

2. Then configure the NAT as follows:
# iptables -t nat -A POSTROUTING -o ethX -j MASQUERADE
where ethX is the network card that the Internet is coming from
# echo 1 > /proc/sys/net/ipv4/ip_forward

3. Install dnsmasq and ipmasq using apt-get:
# apt-get install dnsmasq ipmasq

4. Restart dnsmasq:
# /etc/init.d/dnsmasq restart

5. Reconfigure ipmasq to start after networking has been started:
# dpkg-reconfigure ipmasq

6. Repeat steps 1 and 2.

7. Add the line "net.ipv4.ip_forward = 1" to /etc/sysctl.conf
# gedit /etc/sysctl.conf

8. Reboot. (Optional)

DHCP Server

Link: http://www.debianadmin.com/howto-setup-dhcp-server-and-dynamic-dns-with-bind-in-debian.html
Link: http://lani78.wordpress.com/2008/08/12/dhcp-server-update-dns-records/
Link: http://lani78.wordpress.com/2008/08/09/setting-up-a-dns-for-the-local-network/
Link: http://lani78.wordpress.com/2008/08/10/setting-up-a-dhcp-server-on-ubuntu-hardy-heron/

sudo apt-get install dhcp3-server
Note: Don’t be alarmed if the startup fails; that’s because you haven’t configured it yet.

First, we need to tell the DHCP server to only run on eth1:
sudo gedit /etc/default/dhcp3-server

enter the following line save and exit file.

sudo gedit /etc/dhcp3/dhcpd.conf
ddns-update-style none;
default-lease-time 600;
max-lease-time 7200;
#Máscara da rede
option subnet-mask;
#Broadcast que será utilizado na rede
option broadcast-address;
#Roteador da rede que neste caso será o próprio servidor DHCP
option routers;
#Servidor de domínio da rede (DNS) que também é o próprio servidor
option domain-name-servers;
#Nome do domínio da rede
option domain-name "casa.lan";
#Aqui mostra qual a rede que será utilizada no DHCP Server e o
#range de IPs que será utilizado para enviar para as máquinas da rede
subnet netmask {
option routers router.casa.lan;

Configurar interface ETH1
cp /etc/network/interfaces /etc/network/interfaces.old
gedit /etc/network/interfaces

auto eth1
iface eth1 inet static

sudo /etc/init.d/networking restart        
/etc/init.d/dhcp3-server start
Navegando pela Net - All Rights Reserved
Proudly powered by Blogger