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