Archivo

Entradas Etiquetadas ‘debian’

Google Chrome OS

viernes, 20 de noviembre de 2009 Sin comentarios

Google Chrome OS

Google Chrome OS:

uname -a

Linux localhost 2.6.30-chromeos-intel-menlow #1 SMP Fri Nov 20 02:53:44 UTC 2009 i686 GNU/Linux

cat /etc/debian_version

squeeze/sid

dpkg -l

OUTPUT

lsb_release -a

No LSB modules are available.
Distributor ID: Ubuntu
Description: Ubuntu 9.10 (development branch)
Release: 9.10
Codename: karmic

So full name:

Google Chrome OS (Cromium OS) – Ubuntu 9.10 Karmic Koala – Debian squeeze/sid 6.0 – Gnu/Linux

JSON File with Google Chrome settings:

/home/chronos/[user@gmail.com]/.config/google-chrome/Local State

Links:

Build Chromium OS

Download Google Chrome OS Virtual Machine (VMware and VirtualBox)

  • Categories: multimedia, unix/linux, web Tags: , , , ,

    Debian squeeze/sid

    jueves, 8 de octubre de 2009 3 comentarios

    Debian squeeze/sid

    I installed Debian Lenny on my notebook, but i want to test squeeze so I do this:

    # as root
    sed -i 's/lenny/squeeze/g' /etc/apt/sources.list
    aptitude update
    aptitude install apt dpkg aptitude
    aptitude full-upgrade
    # after reboot 
    upgrade-from-grub-legacy # to use grub2

    I experimented some issues with dependencies but everything now is ok.

    Categories: unix/linux Tags:

    USB Scan Antivirus

    martes, 14 de julio de 2009 Sin comentarios

    USB Scan Antivirus

    I made this script to clean USB Drives:

    usbscan.sh:

    #!/bin/bash
    # Author: Albertux (Alberto Isaac Ayala Esquivias)
    # Email: <albertoi7@gmail.com>
    # Web: http://www.AyalaSoft.com
    #
    # First install clamav: sudo apt-get install clamav 
    # copy usbcan.desktop on /home/$USER/Desktop
    # copy usbscan on /home/$USER/bin/ 
    #
    # This script tested on Debian or Ubuntu
     
    USB="sdb1" # check first using mount command or cat /etc/mtab
     
    IFS=$'\t\n'
    LIGHT_RED="\033[1;31m"
    LIGHT_GREEN="\033[1;32m"
    LIGHT_BLUE="\033[1;34m"
    YELLOW="\033[1;33m"
    NORMAL="\033[0m"
     
    echo -e "${LIGHT_GREEN}"
    echo "#   #  #### ####       ####  ####  ###  #   #"
    echo "#   # #     #   #     #     #     #   # ##  #"
    echo "#   #  ###  ####   #   ###  #     ##### # # #"
    echo "#   #     # #   #         # #     #   # #  ##"
    echo " ###  ####  ####      ####   #### #   # #   #"
    echo -e "${NORMAL}"
    echo -n "Inserte el USB y precione [Enter]"
    read
    sleep 5
     
    USB_TMP=`cat /etc/mtab | grep $USB  | awk '{print $2}'`
    USB_PATH=`echo $USB_TMP | sed -e 's/\\\040/ /g'`
     
    if [ -z $USB_PATH ];
    then
    	echo -en "\n${LIGHT_RED}AVIZO!${NORMAL} \"USB no detectado, precione [Enter]\""
    	read
    	exit
    fi
     
    echo -e "\nUSB localizado en [${LIGHT_BLUE}$USB_PATH${NORMAL}]"
    echo -e "\n${YELLOW}AVIZO!${NORMAL} \"No desconecte el USB hasta que se le indique\"\n"
    clamscan --remove --infected --recursive $USB_PATH > usbscan.log 2> usbscan.err.log
    umount /dev/sdb1
    echo -en "\n${YELLOW}LISTO!${NORMAL} \"Puede desconectar el USB, precione [Enter]\""
    read

    usbscan.desktop:

    [Desktop Entry]
    Encoding=UTF-8
    Version=1.0
    Type=Application
    Terminal=true
    Icon[en_US]=gnome-panel-launcher
    Exec=/home/aayala/usbscan.sh
    Name[en_US]=USB SCAN
    Name=Antivirus
    Icon=/home/aayala/bin/.virus.png

    eicar.com (virus test file):

    X5O!P%@AP[4\PZX54(P^)7CC)7}$EICAR-STANDARD-ANTIVIRUS-TEST-FILE!$H+H*

    virus.png:

    Notes:
    The scan is slow but efective

    Categories: security, windows Tags: , , ,

    Debian Lenny Intel(R) Pro/Wireless

    martes, 12 de mayo de 2009 2 comentarios

    Debian Lenny Intel(R) Pro/Wireless

    After you install Debian using netInstall using wire interface you can install the firmware that support your wireless interface this is example script:

    #!/bin/bash
    # Debian Lenny Wireless script for Intel(R) Pro/Wireless 4954 or 3945
    # Author: Albertux (Alberto Isaac Ayala Esquivias)
    # Mail: <albertoi7@gmail.com>
    # Web: http://Albertux.AyalaSoft.com
     
    if [[ $EUID -ne 0 ]]; then 
      echo "You must be a root user" 2>&1
      exit 1
    fi
     
    for m in iwl4965 iwl3945
    do
      model=$(echo `dmesg  | grep $m | awk ' { print $3 }' |  wc -l`)
      if [ $model -ne 0 ]; then
        model=$m
        break;
      fi
    done
     
    if [ "$model" != "$m" ]; then
      echo -e "\e[01;33mWARNING!"
      echo -e "\e[01;33mDoesn't have Intel(R) PRO/Wireless 4965 or 3945 Models\e[00m"
      exit;
    else
      echo -e "\e[01;32mYou have Intel(R) PRO/Wireless $model\e[00m"
    fi
     
    firmware=$(echo `dpkg -l | grep firmware-iwlwifi | awk '{ print $1 }'`)
    mod=$(echo `lsmod  | awk '{ print $1 }'  | grep $model`)
     
    if [ "$firmware" != "ii" ]; then
      echo -e "Install firmware ..."
      apt-get install firmware-iwlwifi
    fi
     
    if [ "$model" != "$mod" ]; then
      echo -e "Install module ..."
      modprobe $model
    fi
    echo -e "\nname\t  description\n"
    iwconfig
    echo -n "Name of the interface with wireless extensions: "
    read iface
     
    ifconfig $iface up
    clear
    echo -e "Scanning Wireless ..."
    iwlist $iface scanning 
     
    echo -n "essid: "
    read essid
     
    echo -n "Need Key (y/n): "
    if [ "$op" = "n" ]; then
      iwconfig $iface essid "$essid"
    else
      echo -n "key: "
      read key
      iwconfig $iface essid "$essid" key "$key"
    fi
     
    echo -n "Static IP? (y/n): "
    read op
     
    if [ "$op" = "n" ]; then
      dhclient $iface
    else
     echo -n "What ip you want: "
     read ip
     ifconfig $iface $ip
    fi
     
    echo -n "Gateway: "
    read gw
     
    route add default gw $gw $iface
    Categories: network, unix/linux Tags: , ,

    Debian Lenny 5.0

    domingo, 15 de febrero de 2009 Sin comentarios
    Categories: community, unix/linux Tags:

    Switch to our mobile site