rigadicomando.org

Whatever you can cat

Secondary links

  • About
  • Contacts
  • Disclaimer

Creating and using Qemu for a virtual OS Installation

Submitted by admin on Mon, 2006-05-22 14:20.
  • Debian GNU/Linux OS

Create qemu virtual image file:

qemu-img create virt1 1G

On my laptop for some reasons, no cdrom boot was allowed for the virtual installation,
so the loopback device comes useful to do the installation:

dd if=/dev/cdrom of=sarge-netinst.iso

Now boot the new OS installation (I use Debian GNU/Linux for both real and virtual systems)

qemu virt1 -boot d -cdrom sarge-netinst.iso

Then boot the new system (root or sudoed, as you need root privileges for routing)

qemu virt1 -boot c -n /etc/qemu-ifup

  • admin's blog
  • Read more

Print all ANSI colors

Submitted by admin on Mon, 2006-05-08 07:59.
  • bash
  • scripts

(from http://wiki.splitbrain.org/shellsnippets)


for i in 30 31 32 33 34 35 36 37 39
do
for j in 40 41 42 43 44 45 46 47 49
do
# skip if same fore- and backgroundcolor
if [ $j -eq $[ i + 10 ] ]; then
continue
fi
echo -e $i $j "\033[${i};${j}mCOLOR\033[0m"
done
done

  • admin's blog

Simple bash calculator

Submitted by admin on Mon, 2006-05-08 07:50.
  • bash

Put the following little snippet in your .bashrc/.bash_profile and you'll have a handy little calculator:


? () { echo "$*" | bc -l; }

Use like this:

bash$ ? 2*2
4

Thanks textsnippets.com

  • admin's blog

How to list duplicate lines in a text file, with counts next to each unique line

Submitted by admin on Mon, 2006-05-08 07:40.
  • bash
  • scripts

from:

How to list duplicate lines in a text file, with counts next to each unique line - [spugbrap's random notes geek blog] [del.icio.us (bash)]

At some point, last year (it's been in my 'toblog' file all this time), I needed to analyze the lines in a text file, removing duplicate lines, while counting how many times each duplicated line occurred within the file, and sorting from most common to least common.

  • admin's blog
  • Read more

Unlimited Loop

Submitted by fabio on Fri, 2006-02-10 14:22.
  • bash

Generate an infinite loop in the shell

while true ; do date ; sleep 5 ; done

  • fabio's blog
« first‹ previous12345next ›last »

Navigation

  • Feedback
  • News aggregator

ICT users' rights

  • New Documentary Film "Patent Absurdity: how software patents broke the system"
  • Time for nonprofits to leave proprietary fundraising software systems behind
  • Breaking the dependency on proprietary software: A call to nonprofits to refuse Microsoft Windows 7
  • Why is free software important to you? Submit your response to our new video campaign!
  • FSF works with PayPal to the benefit of the free software community
more

High Scalability Architecture

  • The cost of High Availability (HA) with Oracle
  • Strategy: Order Two Mediums Instead of Two Smalls and the EC2 Buffet
  • Hot Scalability Links for April 16, 2010
  • Parallel Information Retrieval and Other Search Engine Goodness
  • Strategy: Saving Your Butt With Deferred Deletes
more

Debian Security

  • DSA-2038 pidgin
  • DSA-2037 kdm (kdebase)
  • DSA-2036 jasper
  • DSA-2035 apache2
  • DSA-2034 phpmyadmin
more

Drupal Security

  • SA-CORE-2010-001 - Drupal core - Multiple vulnerabilities
more

EFF

  • Congress Must Investigate Electronic Searches at U.S. Borders
  • Betrayed MSN Music Customers Deserve More from Microsoft
  • EFF Report: FBI Slowed Terror Investigation with Improper NSL Request
  • State Secrets Claim Should Not Bury Important Surveillance Lawsuit
  • Courtroom Showdown for eBay Seller Over Promo CD Sales
more

Invent Geek

  • The Meeting Light Project
  • the ion cooler 2.0
  • the ultimate dance pad v1.0
  • The Thermaltake MiniFridge Case Mod
  • Inventgeek gets a facelift and a butt tuck
more

 Privacy | Disclaimer | Drupal | Creative Commons

All content on this site is ditributed under Creative Commons License, each individual author is responsible for its own posts.

RoopleTheme