Monday, October 06, 2008

ВворчСский ΠΏΠΎΠ΄Ρ…ΠΎΠ΄ ΠΊ ΠΎΠ³Ρ€Π°Π±Π»Π΅Π½ΠΈΡŽ Π±Π°Π½ΠΊΠ° проявил ΠΏΠΎΠ»ΡŒΠ·ΠΎΠ²Π°Ρ‚Π΅Π»ΡŒ сСрвиса ΠΎΠ½Π»Π°ΠΉΠ½-объявлСний Craigslist.org: ΠΎΠ½ ΠΏΡ€Π΅Π΄Π»ΠΎΠΆΠΈΠ» 28,5 Π΄ΠΎΠ»Π»Π°Ρ€ΠΎΠ² ΠΊΠ°ΠΆΠ΄ΠΎΠΌΡƒ, ΠΊΡ‚ΠΎ ΠΏΡ€ΠΈΠ΄Π΅Ρ‚ Π² ΡƒΠΊΠ°Π·Π°Π½Π½ΠΎΠ΅ врСмя ΠΊ офису ΠΊΡ€Π΅Π΄ΠΈΡ‚Π½ΠΎΠΉ ΠΎΡ€Π³Π°Π½ΠΈΠ·Π°Ρ†ΠΈΠΈ Π² Π³ΠΎΠ»ΡƒΠ±ΠΎΠΉ Ρ„ΡƒΡ‚Π±ΠΎΠ»ΠΊΠ΅ с Π΄Π»ΠΈΠ½Π½Ρ‹ΠΌΠΈ Ρ€ΡƒΠΊΠ°Π²Π°ΠΌΠΈ, ΠΆΠ΅Π»Ρ‚ΠΎΠΌ ΡΠΏΠ°ΡΠ°Ρ‚Π΅Π»ΡŒΠ½ΠΎΠΌ ΠΆΠΈΠ»Π΅Ρ‚Π΅, Π² Π·Π°Ρ‰ΠΈΡ‚Π½Ρ‹Ρ… ΠΎΡ‡ΠΊΠ°Ρ… ΠΈ с рСспиратором Π½Π° Π»ΠΈΡ†Π΅. НичСго Π½Π΅ ΠΏΠΎΠ΄ΠΎΠ·Ρ€Π΅Π²Π°ΡŽΡ‰Π°Ρ массовка "Ρ„Π»Π΅ΡˆΠΌΠΎΠ±Π±Π΅Ρ€ΠΎΠ²" Π΄ΠΎΠ»ΠΆΠ½Π° Π±Ρ‹Π»Π° ΠΎΠ±Π΅ΡΠΏΠ΅Ρ‡ΠΈΡ‚ΡŒ своСго Ρ€ΠΎΠ΄Π° ΠΎΡ‚Π²Π»Π΅ΠΊΠ°ΡŽΡ‰ΠΈΠΉ ΠΌΠ°Π½Ρ‘Π²Ρ€.

Π’ΠΎ Π²Ρ‚ΠΎΡ€Π½ΠΈΠΊ, ΠΊΠΎΠ³Π΄Π° ΠΎΠΊΠΎΠ»ΠΎ офиса Bank of America Π² малСньком Π³ΠΎΡ€ΠΎΠ΄ΠΊΠ΅ ΠœΠΎΠ½Ρ€ΠΎ (40 ΠΊΠΌ ΠΎΡ‚ Биэттла) ΡΠΎΠ±Ρ€Π°Π»Π°ΡΡŒ Ρ‚ΠΎΠ»ΠΏΠ° ΠΈΡ‰ΡƒΡ‰ΠΈΡ… Π»Ρ‘Π³ΠΊΠΎΠ³ΠΎ Π·Π°Ρ€Π°Π±ΠΎΡ‚ΠΊΠ° людСй Π² ΡƒΠΊΠ°Π·Π°Π½Π½ΠΎΠΉ экипировкС, ΠΊ Π±Π°Π½ΠΊΡƒ ΠΏΠΎΠ΄ΡŠΠ΅Ρ…Π°Π»Π° инкассаторская машина. Из Ρ‚ΠΎΠ»ΠΏΡ‹ выскочил ΠΎΠ΄ΠΈΠ½ Ρ‡Π΅Π»ΠΎΠ²Π΅ΠΊ, Π±Ρ€Ρ‹Π·Π½ΡƒΠ» Π² Π»ΠΈΡ†ΠΎ инкассатору Π³Π°Π·ΠΎΠΌ ΠΈΠ· Π±Π°Π»Π»ΠΎΠ½Ρ‡ΠΈΠΊΠ°, схватил мСшок с дСньгами ΠΈ вновь затСрялся Π² массС своих ΠΊΠ»ΠΎΠ½ΠΎΠ².

По словам полицСйских, вскорС Π΄Π΅Ρ€Π·ΠΊΠΈΠΉ Π³Ρ€Π°Π±ΠΈΡ‚Π΅Π»ΡŒ Π±Π»Π°Π³ΠΎΠΏΠΎΠ»ΡƒΡ‡Π½ΠΎ скрылся ΠΎΡ‚ прСслСдования. Π’ Π΄Π°Π½Π½Ρ‹ΠΉ ΠΌΠΎΠΌΠ΅Π½Ρ‚ Π°Π³Π΅Π½Ρ‚Ρ‹ Π€Π‘Π  ΠΏΡ‹Ρ‚Π°ΡŽΡ‚ΡΡ ΡƒΡΡ‚Π°Π½ΠΎΠ²ΠΈΡ‚ΡŒ Π»ΠΈΡ‡Π½ΠΎΡΡ‚ΡŒ Ρ‡Π΅Π»ΠΎΠ²Π΅ΠΊΠ°, давшСго объявлСниС. Пока Ρ‡Ρ‚ΠΎ Π½ΠΈΠΊΡ‚ΠΎ арСстован Π½Π΅ Π±Ρ‹Π». Π’Π°ΠΊΠΆΠ΅, судя ΠΏΠΎ всСму, Π½Π΅ ΠΏΠΎΠ»ΡƒΡ‡ΠΈΠ»ΠΈ своё Π²ΠΎΠ·Π½Π°Π³Ρ€Π°ΠΆΠ΄Π΅Π½ΠΈΠ΅ Π³Ρ€Π°ΠΆΠ΄Π°Π½Π΅, Π²Ρ‹ΡΡ‚ΡƒΠΏΠΈΠ²ΡˆΠΈΠ΅ Π² Ρ€ΠΎΠ»ΠΈ пособников.

Saturday, May 24, 2008

Some bash scripts.

Make your console nicer and more useful:
user-) cd Download/
WD=/home/user/Download
user-Download-)
Insert this code to .bashrc file in your home folder:
function SetPS1()
{
local HostBit=""
if test "$OS" = "Linux"
then
if test "`who|grep "$USER"|grep \"tty[1-6]\"`" = ""
then
HostBit="@\h"
fi
fi
local DirBit="-\W"
test "`pwd`" = "$HOME" && DirBit=""
case "$TERM" in
xterm|linux) PS1="\[\]\u\[\]$HostBit\[\]$DirBit\[\]-) " ;;
*) PS1="\u$HostBit$DirBit-) " ;;
esac
}

SetPS1

thcd()
{
builtin cd "$@"
if test -t 1
then
case $TERM in
xterm) echo "WD=`pwd`" >&2
echo -n "]0;XT `basename \"\`pwd\`\"`" >&2 ;;
*) echo "WD=`pwd`" >&2 ;;
esac
fi
SetPS1
}
alias cd='thcd'

Installing audio and mp3 support.

MP3 support for Amarok player.
Required software:
Some good MP3 players:

Friday, May 23, 2008

Linux commands and tricks

Just Commands:
sleep X -
sleeps for X seconds
chroot -
root to selected dir
slocate - find file from database suppressing all permission warnings.
which - shows where
specified program is located in PATH
w - show who is logged on and what they are doing
tput - change cursor location, colour, text format.


Change last entered command:
^what_to_change^how_change - changes last entered command.
$:man bash
$:^ba^c ( that will give - man csh )

Changing default shell:
/etc/passwd holds starting shells for each user on machine.

Auto Mounting:
/etc/fstab holds all devices that should be mounted automatically.
/dev/sda3 /win ntfs defaults 0 0
Script commands:
enable - execute program
source - include other file to current script


Switching workspace in command line:

GNOME DESKTOP
  • [ program wmctrl needed ] ( yum install wmctrl )
  • wmctrl -s desktopNum
Restoring GRUB loader:

Restoring GRUB:
  • Boot from live CD(say knoppix)
  • mount /dev/sda1 /media/sda1
    (mount system)
  • chroot /media/sda1
  • grub-install /dev/sda
    ( or /dev/sdaNUM, where NUM is partition )
OR
  • mount /dev/sda1 /
    (mount system)
  • grub
    ( opens grub terminal )
  • find /boot/grub/stage1
    ( shows partitions where grub is installed )
  • root (hd0,partNum)
    ( partNum you can get from previous command, hd0 - means first hard disk, hd1 will be second.. )
  • setup (hd0)
    ( if grub has to be installed to MBR. Or [ setup (hd0,partNum) ] - installs GRUB to linux root partition)

Thursday, May 22, 2008

Настройка Π²Π΅Π±ΠΊΠ°ΠΌΠ΅Ρ€Ρ‹(A4tech PK-635)


Camera: A4tech PK-635

Required software: Installation:
  1. make
  2. make install
  3. install -c -m 0644 gspca.ko /lib/modules/`uname -r`/kernel/drivers/usb/media/ (навсякий случай Π΅Ρ‰Π΅ Ρ€Π°Π·)
  4. /sbin/modprobe gspca
  5. /sbin/lsmod | grep gspca (ΠΏΡ€ΠΎΠ²Π΅Ρ€ΠΊΠ°)
  6. ls -lad /dev/video* (ΠΏΡ€ΠΎΠ²Π΅Ρ€ΠΊΠ°)
Useful links: https://help.ubuntu.com/community/Webcam