quinta-feira, 1 de agosto de 2013

Grub no Debian 7

Como adicionar ao Grub do Debian 7 o meu segundo HD com Windows 7?

os-prober um script para detecção de outros SOs instalados.
update-grub que gera um novo arquivo de configuração grub.cfg.

Mãos a massa!
Logado como root execute:

root@hulk:~# aptitude search os-prober
i A os-prober                       - Utilitário para detectar outros SOs em um
p   os-prober:i386                  - Utilitário para detectar outros SOs em um

root@hulk:~# os-prober
/dev/sdc1:Windows 7 (loader):Windows:chain

root@hulk:~# update-grub
Generating grub.cfg ...
Found background image: /usr/share/images/desktop-base/desktop-grub.png
Found linux image: /boot/vmlinuz-3.2.0-4-amd64
Found initrd image: /boot/initrd.img-3.2.0-4-amd64
Found Windows 7 (loader) on /dev/sdc1
done

root@hulk:~# shutdown -r now

Pronto!



quinta-feira, 10 de janeiro de 2013

daloRADIUS

daloRADIUS is an advanced RADIUS web platform aimed at managing Hotspots and general-purpose ISP deployments. It features rich user management, graphical reporting, accounting, and integrates with GoogleMaps for geo-locating (GIS). daloRADIUS is written in PHP and JavaScript and utilizes a database abstraction layer which means that it supports many database systems, among them the popular MySQL, PostgreSQL, Sqlite, MsSQL, and many others.

http://www.daloradius.com/

quinta-feira, 3 de janeiro de 2013

Bitvise Tunnelier is an SSH and SFTP client for Windows.


Tunnelier is an SSH and SFTP client for Windows. It is developed and supported professionally by Bitvise. Tunnelier is robust, easy to install, easy to use, and supports all features supported by PuTTY, as well as the following:
  • graphical SFTP file transfer;
  • single-click Remote Desktop tunneling;
  • auto-reconnecting capability;
  • dynamic port forwarding through an integrated proxy;
  • an FTP-to-SFTP protocol bridge.
Tunnelier is free for personal use, as well as for individual commercial use inside organizations. You can download Tunnelier here.

terça-feira, 1 de janeiro de 2013

Setting Reverse Proxy With Apache2 on Debian 6


Load modules

#a2enmod proxy
#a2enmod proxy_http

Reload Apache

#/etc/init.d/apache2 force-reload

Virtualhost Configuration

#cd /etc/apache2/sites-available/
#vi website

<VirtualHost *:80>
        ServerName website.no-ip.org
        ProxyPass       /       http://192.168.x.y
        ProxyPassReverse        /       http://192.168.x.y
</VirtualHost>

Disable Default

#a2dissite default

Enable new Virtualhost

#a2ensite website

Restart Apache

#/etc/init.d/apache2 restart

Ok!

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