segunda-feira, 3 de dezembro de 2012

segunda-feira, 12 de novembro de 2012

terça-feira, 23 de outubro de 2012

Slackware 14 WiFi Configuration

/etc/rc.d/rc.inet1.conf:
Code:

IFNAME[4]="wlan1"
IPADDR[4]=""
NETMASK[4]=""
USE_DHCP[4]="yes"
WLAN_WPA[4]="wpa_supplicant"

Replace wlan1 with your wireless interface.

/etc/wpa_supplicant.conf:
Code:

ctrl_interface=/var/run/wpa_supplicant
ctrl_interface_group=root
eapol_version=1
ap_scan=1
fast_reauth=1
#country=US

# WPA protected network, supply your own ESSID and WPAPSK here:
network={
  scan_ssid=0
  ssid="your-wireless-network"
  proto=WPA RSN
  key_mgmt=WPA-PSK
  pairwise=CCMP TKIP
  group=CCMP TKIP WEP104 WEP40
  psk="your-password-plain-text"
  priority=10
}

# Plaintext connection (no WPA, no IEEE 802.1X),
# nice for hotel/airport types of WiFi network.
network={
  key_mgmt=NONE
  priority=0
}

Pronto!

terça-feira, 3 de julho de 2012

DDNS Cliente NO-IP no Debian 6 AMD64

#cd /usr/local/src
#wget https://www.no-ip.com/client/linux/noip-duc-linux.tar.gz
#tar -zxvf noip-duc-linux.tar.gz
#cd noip-2.1.9-1/
#aptitude install gcc
#aptitude install make
#make && make install
#/usr/local/bin/noip2

Pronto! 

quinta-feira, 21 de junho de 2012

Debian amd64 no Notebook

http://ftp.br.debian.org/debian/dists/stable/main/installer-amd64/current/images/hd-media/boot.img.gz
http://debian.pop-sc.rnp.br/debian-cd/6.0.5/amd64/iso-cd/debian-6.0.5-amd64-netinst.iso

[root@bl ~]# fdisk /dev/sdb
Welcome to fdisk (util-linux 2.21.2).

Changes will remain in memory only, until you decide to write them.
Be careful before using the write command.


WARNING: GPT (GUID Partition Table) detected on '/dev/sdb'! The util fdisk doesn't support GPT. Use GNU Parted.


Command (m for help):  p

Disk /dev/sdb: 7933 MB, 7933526016 bytes
255 heads, 63 sectors/track, 964 cylinders, total 15495168 sectors
Units = sectors of 1 * 512 = 512 bytes
Sector size (logical/physical): 512 bytes / 512 bytes
I/O size (minimum/optimal): 512 bytes / 512 bytes
Disk identifier: 0x1d459011

   Device Boot      Start         End      Blocks   Id  System
/dev/sdb1   *           0     1320959      660480    0  Empty
/dev/sdb2             164        1299         568   ef  EFI (FAT-12/16/32)
/dev/sdb3            1348        3587        1120    0  Empty

Command (m for help):  d
Partition number (1-4): 3
Warning: partition 3 has empty type
Partition 3 is deleted

Command (m for help): d
Partition number (1-4): 2
Partition 2 is deleted

Command (m for help): d
Selected partition 1
Partition 1 is deleted

Command (m for help): 1
1: unknown command
Command action
   a   toggle a bootable flag
   b   edit bsd disklabel
   c   toggle the dos compatibility flag
   d   delete a partition
   l   list known partition types
   m   print this menu
   n   add a new partition
   o   create a new empty DOS partition table
   p   print the partition table
   q   quit without saving changes
   s   create a new empty Sun disklabel
   t   change a partition's system id
   u   change display/entry units
   v   verify the partition table
   w   write table to disk and exit
   x   extra functionality (experts only)

Command (m for help):  p

Disk /dev/sdb: 7933 MB, 7933526016 bytes
255 heads, 63 sectors/track, 964 cylinders, total 15495168 sectors
Units = sectors of 1 * 512 = 512 bytes
Sector size (logical/physical): 512 bytes / 512 bytes
I/O size (minimum/optimal): 512 bytes / 512 bytes
Disk identifier: 0x1d459011

   Device Boot      Start         End      Blocks   Id  System

Command (m for help): n
Partition type:
   p   primary (0 primary, 0 extended, 4 free)
   e   extended
Select (default p): p
Partition number (1-4, default 1): 1
First sector (2048-15495167, default 2048):
Using default value 2048
Last sector, +sectors or +size{K,M,G} (2048-15495167, default 15495167):
Using default value 15495167
Partition 1 of type Linux and of size 7.4 GiB is set

Command (m for help):  t
Selected partition 1
Hex code (type L to list codes): 6
Changed system type of partition 1 to 6 (FAT16)

Command (m for help): a
Partition number (1-4): 1

Command (m for help): p

Disk /dev/sdb: 7933 MB, 7933526016 bytes
255 heads, 63 sectors/track, 964 cylinders, total 15495168 sectors
Units = sectors of 1 * 512 = 512 bytes
Sector size (logical/physical): 512 bytes / 512 bytes
I/O size (minimum/optimal): 512 bytes / 512 bytes
Disk identifier: 0x1d459011

   Device Boot      Start         End      Blocks   Id  System
/dev/sdb1   *        2048    15495167     7746560    6  FAT16

Command (m for help): w
The partition table has been altered!

Calling ioctl() to re-read partition table.

WARNING: If you have created or modified any DOS 6.x
partitions, please see the fdisk manual page for additional
information.
Syncing disks.
[root@bl ~]# 
[root@bl ~]# mkfs.vfat -I -F 32 -n usbdisk /dev/sdb
mkfs.vfat 3.0.12 (29 Oct 2011)
[root@bl ~]# 
[root@bl ~]#  zcat boot.img.gz > /dev/sdb
[root@bl ~]#  cp debian-6.0.5-amd64-netinst.iso /run/media/leo/Debian\ Inst/

terça-feira, 19 de junho de 2012

Install VirtualBox 4.1.16 on Fedora 17


#cd /etc/yum.repos.d/
#wget http://download.virtualbox.org/virtualbox/rpm/fedora/virtualbox.repo
#yum update
#yum install gcc dkms kernel-devel 
#yum install VirtualBox-4.1 
#service vboxdrv setup
#usermod -a -G vboxusers user_name 
$VirtualBox
 
Pronto! 
Fonte: 

Live USB Fedora 17

#dd if=Fedora-16-x86_64-Live-Desktop.iso of=/dev/sdb bs=8M
http://fedoraproject.org/wiki/How_to_create_and_use_Live_USB 

segunda-feira, 11 de junho de 2012

SARG Debian 6 Squeeze

# echo "deb http://backports.debian.org/debian-backports squeeze-backports main" >> /etc/apt/sources.list
# apt-get update
# apt-get install sarg

#vi sarg.cron.sh

#!/bin/bash
YESTERDAY=$(date --date "1 day ago" +%d/%m/%Y)
sarg -f /etc/sarg/sarg.conf -d $YESTERDAY-$YESTERDAY

#crontab  -l
00 01 * * * /etc/sarg/sarg.cron.sh

Pronto!

SARG

Generates HTML reports on sites accessed and blocked.
http://sarg.sourceforge.net/sarg.php

Linux Mint

Linux Mint is an elegant, easy to use, up to date and comfortable GNU/Linux desktop distribution.
http://www.linuxmint.com/

Remover comentários de arquivos conf

#egrep -v "^#|^$" arquivo.conf > arquivo_sem_comentarios.conf

Pronto!

segunda-feira, 4 de junho de 2012

NoMachine NX - Desktop Virtualization and Remote Access ...

An enterprise-class multi-platform solution for remote access and virtual desktop delivery. The solution of choice for Enterprises remotely deploying Linux, Unix, ... http://www.nomachine.com

terça-feira, 29 de maio de 2012

SmokePing

SmokePing keeps track of your network latency:

    Best of breed latency visualisation.
    Interactive graph explorer.
    Wide range of latency measurment plugins.
    Master/Slave System for distributed measurement.
    Highly configurable alerting system.
    Live Latency Charts with the most 'interesting' graphs.
    Free and OpenSource Software written in Perl written by Tobi Oetiker, the creator of MRTG and RRDtool
    http://oss.oetiker.ch/smokeping

domingo, 27 de maio de 2012

sábado, 26 de maio de 2012

tail access.log Squid3 Debian 6 Squeeze

# tail -f /var/log/squid3/access.log | awk '{print$3 " " $8 " " $7}'

acl squid3 + Debian 6

acl acesso_livre src "/etc/l3unix/squid3/acesso_livre.txt"
acl acesso_restrito src "/etc/l3unix/squid3/acesso_restrito.txt"
acl acesso_controlado src "/etc/l3unix/squid3/acesso_controlado.txt"

acl blacklist url_regex -i "/etc/l3unix/squid3/blacklist.txt"
acl whitelist dstdomain "/etc/l3unix/squid3/whitelist.txt"

http_access allow acesso_livre

http_access allow whitelist acesso_restrito
http_access deny acesso_restrito

http_access deny blacklist acesso_controlado
http_access allow acesso_controlado

http_access allow localhost
http_access deny all

Squid: Optimising Web Delivery

Squid is a caching proxy for the Web supporting HTTP, HTTPS, FTP, and more. It reduces bandwidth and improves response times by caching and reusing frequently-requested web pages. Squid has extensive access controls and makes a great server accelerator. It runs on most available operating systems, including Windows and is licensed under the GNU GPL. http://www.squid-cache.org/

PHP: Hypertext Preprocessor

Server-side HTML embedded scripting language. It provides web developers with a full suite of tools for building dynamic websites: native APIs to Apache and ... http://www.php.net/

MySQL

MySQL :: The world's most popular open source database http://www.mysql.com/

BandwidthD

BandwidthD tracks usage of TCP/IP network subnets and builds html files with graphs to display utilization. Charts are built by individual IPs, and by default ... http://bandwidthd.sourceforge.net/

MRTG - Tobi Oetiker's MRTG - The Multi Router Traffic Grapher

A tool to monitor the traffic load on network-links. Raw data collected via SNMP. http://oss.oetiker.ch/mrtg/

Nagios - The Industry Standard in IT Infrastructure Monitoring

Nagios provides enterprise-class Open Source monitoring of hosts, services, ... Learn why organizations around the world trust Nagios to handle their IT ... http://www.nagios.org/

quinta-feira, 24 de maio de 2012

WebHTB - Linux Traffic Shaping, Network Client Bandwidth Control ...

WebHTB is Powerful, Easiest and very Used Bandwidth Manager, based on Hierarchical Token Bucket (HTB), client bandwidth traffic management for your ... www.webhtb.ro

sábado, 19 de maio de 2012

sexta-feira, 18 de maio de 2012

install Mediawiki Debian 6 Squeeze

root@debian:~# aptitude install mediawiki
Os NOVOS pacotes a seguir serão instalados: 
  mediawiki
0 pacotes atualizados, 1 novos instalados, 0 a serem removidos e 0 não atualizados.
É preciso obter 11,7 MB de arquivos. Depois do desempacotamento, 42,4 MB serão usados.
Obter:1 http://linorg.usp.br/debian/ squeeze/main mediawiki all 1:1.15.5-2squeeze4 [11,7 MB]
Buscados 11,7 MB em 2min 36s (75,1 kB/s)                                                                                                                              
Pré-configurando pacotes ...
Selecionando pacote previamente não selecionado mediawiki.
(Lendo banco de dados ... 38096 ficheiros e directórios actualmente instalados.)
Desempacotando mediawiki (de .../mediawiki_1%3a1.15.5-2squeeze4_all.deb) ...
Configurando mediawiki (1:1.15.5-2squeeze4) ...
Reloading web server config: apache2.
                                                 
root@debian:~#

quarta-feira, 9 de maio de 2012

Temas Bisigi Gnome Debian 6

http://www.bisigi-project.org

Adicione o repositório no seu sources.list:
deb http://ppa.launchpad.net/bisigi/ppa/ubuntu lucid main
#deb-src http://ppa.launchpad.net/bisigi/ppa/ubuntu lucid main

Adicione a chave GPG:
#apt-key adv --keyserver keyserver.ubuntu.com --recv-keys 881574DE

#aptitude update
#aptitude install gtk2-engines-murrine
#aptitude install bisigi-themes

Pronto!

terça-feira, 8 de maio de 2012

Montar compartilhamento Windows no Debian 6

#aptitude install smbfs
#mount -t cifs -o username=leo,password=123456 //172.16.0.2/share /mnt/share/

Pronto!

Virtualbox 4.1 no Debian 6

Adicione o repositório no seu sources.list:
deb http://download.virtualbox.org/virtualbox/debian squeeze contrib

Adicione a chave GPG:
# wget -q http://download.virtualbox.org/virtualbox/debian/oracle_vbox.asc -O- | apt-key add -

#aptitude update
#aptitude install dkms
#aptitude install virtualbox-4.1
#aptitude install linux-headers-`uname -r`

Pronto!

segunda-feira, 7 de maio de 2012

Flashplayer 11 + Firefox 12 + Debian 6

Download Flash:
http://get.adobe.com/br/flashplayer/

#tar zxvf install_flash_player_11_linux.i386.tar.gz

#cp libflashplayer.so /usr/lib/mozilla/plugins/

Pronto!

Iniciar Virtualbox no boot do Debian 6

 Adicione a seguinte linha no seu rc.local:

 #su - leo -c "/usr/bin/VBoxHeadless --startvm Debian&"

 Pronto!

Firefox 12.0 no Debian 6

 Download Firefox:
 http://www.mozilla.org

 Descompacte na pasta /opt/firefox

 Crie um link simbolico de /opt/firefox/firefox para /usr/bin/firefox

 Pronto!

domingo, 6 de maio de 2012

Servidor Debian 6.0 Squeeze

http://servidordebian.wikidot.com/

Instalador Debian no Pendrive

Download
http://ftp.br.debian.org/debian/dists/stable/main/installer-i386/current/images/hd-media/boot.img.gz

#zcat boot.img.gz > /dev/sdb

#cp debian-6.0.3-i386-netinst.iso /media/pendrive

Pronto!