Π’Π²ΠΎΡΡΠ΅ΡΠΊΠΈΠΉ ΠΏΠΎΠ΄Ρ ΠΎΠ΄ ΠΊ ΠΎΠ³ΡΠ°Π±Π»Π΅Π½ΠΈΡ Π±Π°Π½ΠΊΠ° ΠΏΡΠΎΡΠ²ΠΈΠ» ΠΏΠΎΠ»ΡΠ·ΠΎΠ²Π°ΡΠ΅Π»Ρ ΡΠ΅ΡΠ²ΠΈΡΠ° ΠΎΠ½Π»Π°ΠΉΠ½-ΠΎΠ±ΡΡΠ²Π»Π΅Π½ΠΈΠΉ Craigslist.org: ΠΎΠ½ ΠΏΡΠ΅Π΄Π»ΠΎΠΆΠΈΠ» 28,5 Π΄ΠΎΠ»Π»Π°ΡΠΎΠ² ΠΊΠ°ΠΆΠ΄ΠΎΠΌΡ, ΠΊΡΠΎ ΠΏΡΠΈΠ΄Π΅Ρ Π² ΡΠΊΠ°Π·Π°Π½Π½ΠΎΠ΅ Π²ΡΠ΅ΠΌΡ ΠΊ ΠΎΡΠΈΡΡ ΠΊΡΠ΅Π΄ΠΈΡΠ½ΠΎΠΉ ΠΎΡΠ³Π°Π½ΠΈΠ·Π°ΡΠΈΠΈ Π² Π³ΠΎΠ»ΡΠ±ΠΎΠΉ ΡΡΡΠ±ΠΎΠ»ΠΊΠ΅ Ρ Π΄Π»ΠΈΠ½Π½ΡΠΌΠΈ ΡΡΠΊΠ°Π²Π°ΠΌΠΈ, ΠΆΠ΅Π»ΡΠΎΠΌ ΡΠΏΠ°ΡΠ°ΡΠ΅Π»ΡΠ½ΠΎΠΌ ΠΆΠΈΠ»Π΅ΡΠ΅, Π² Π·Π°ΡΠΈΡΠ½ΡΡ ΠΎΡΠΊΠ°Ρ ΠΈ Ρ ΡΠ΅ΡΠΏΠΈΡΠ°ΡΠΎΡΠΎΠΌ Π½Π° Π»ΠΈΡΠ΅. ΠΠΈΡΠ΅Π³ΠΎ Π½Π΅ ΠΏΠΎΠ΄ΠΎΠ·ΡΠ΅Π²Π°ΡΡΠ°Ρ ΠΌΠ°ΡΡΠΎΠ²ΠΊΠ° "ΡΠ»Π΅ΡΠΌΠΎΠ±Π±Π΅ΡΠΎΠ²" Π΄ΠΎΠ»ΠΆΠ½Π° Π±ΡΠ»Π° ΠΎΠ±Π΅ΡΠΏΠ΅ΡΠΈΡΡ ΡΠ²ΠΎΠ΅Π³ΠΎ ΡΠΎΠ΄Π° ΠΎΡΠ²Π»Π΅ΠΊΠ°ΡΡΠΈΠΉ ΠΌΠ°Π½ΡΠ²Ρ.
ΠΠΎ Π²ΡΠΎΡΠ½ΠΈΠΊ, ΠΊΠΎΠ³Π΄Π° ΠΎΠΊΠΎΠ»ΠΎ ΠΎΡΠΈΡΠ° Bank of America Π² ΠΌΠ°Π»Π΅Π½ΡΠΊΠΎΠΌ Π³ΠΎΡΠΎΠ΄ΠΊΠ΅ ΠΠΎΠ½ΡΠΎ (40 ΠΊΠΌ ΠΎΡ Π‘ΠΈΡΡΡΠ»Π°) ΡΠΎΠ±ΡΠ°Π»Π°ΡΡ ΡΠΎΠ»ΠΏΠ° ΠΈΡΡΡΠΈΡ Π»ΡΠ³ΠΊΠΎΠ³ΠΎ Π·Π°ΡΠ°Π±ΠΎΡΠΊΠ° Π»ΡΠ΄Π΅ΠΉ Π² ΡΠΊΠ°Π·Π°Π½Π½ΠΎΠΉ ΡΠΊΠΈΠΏΠΈΡΠΎΠ²ΠΊΠ΅, ΠΊ Π±Π°Π½ΠΊΡ ΠΏΠΎΠ΄ΡΠ΅Ρ Π°Π»Π° ΠΈΠ½ΠΊΠ°ΡΡΠ°ΡΠΎΡΡΠΊΠ°Ρ ΠΌΠ°ΡΠΈΠ½Π°. ΠΠ· ΡΠΎΠ»ΠΏΡ Π²ΡΡΠΊΠΎΡΠΈΠ» ΠΎΠ΄ΠΈΠ½ ΡΠ΅Π»ΠΎΠ²Π΅ΠΊ, Π±ΡΡΠ·Π½ΡΠ» Π² Π»ΠΈΡΠΎ ΠΈΠ½ΠΊΠ°ΡΡΠ°ΡΠΎΡΡ Π³Π°Π·ΠΎΠΌ ΠΈΠ· Π±Π°Π»Π»ΠΎΠ½ΡΠΈΠΊΠ°, ΡΡ Π²Π°ΡΠΈΠ» ΠΌΠ΅ΡΠΎΠΊ Ρ Π΄Π΅Π½ΡΠ³Π°ΠΌΠΈ ΠΈ Π²Π½ΠΎΠ²Ρ Π·Π°ΡΠ΅ΡΡΠ»ΡΡ Π² ΠΌΠ°ΡΡΠ΅ ΡΠ²ΠΎΠΈΡ ΠΊΠ»ΠΎΠ½ΠΎΠ².
ΠΠΎ ΡΠ»ΠΎΠ²Π°ΠΌ ΠΏΠΎΠ»ΠΈΡΠ΅ΠΉΡΠΊΠΈΡ , Π²ΡΠΊΠΎΡΠ΅ Π΄Π΅ΡΠ·ΠΊΠΈΠΉ Π³ΡΠ°Π±ΠΈΡΠ΅Π»Ρ Π±Π»Π°Π³ΠΎΠΏΠΎΠ»ΡΡΠ½ΠΎ ΡΠΊΡΡΠ»ΡΡ ΠΎΡ ΠΏΡΠ΅ΡΠ»Π΅Π΄ΠΎΠ²Π°Π½ΠΈΡ. Π Π΄Π°Π½Π½ΡΠΉ ΠΌΠΎΠΌΠ΅Π½Ρ Π°Π³Π΅Π½ΡΡ Π€ΠΠ ΠΏΡΡΠ°ΡΡΡΡ ΡΡΡΠ°Π½ΠΎΠ²ΠΈΡΡ Π»ΠΈΡΠ½ΠΎΡΡΡ ΡΠ΅Π»ΠΎΠ²Π΅ΠΊΠ°, Π΄Π°Π²ΡΠ΅Π³ΠΎ ΠΎΠ±ΡΡΠ²Π»Π΅Π½ΠΈΠ΅. ΠΠΎΠΊΠ° ΡΡΠΎ Π½ΠΈΠΊΡΠΎ Π°ΡΠ΅ΡΡΠΎΠ²Π°Π½ Π½Π΅ Π±ΡΠ». Π’Π°ΠΊΠΆΠ΅, ΡΡΠ΄Ρ ΠΏΠΎ Π²ΡΠ΅ΠΌΡ, Π½Π΅ ΠΏΠΎΠ»ΡΡΠΈΠ»ΠΈ ΡΠ²ΠΎΡ Π²ΠΎΠ·Π½Π°Π³ΡΠ°ΠΆΠ΄Π΅Π½ΠΈΠ΅ Π³ΡΠ°ΠΆΠ΄Π°Π½Π΅, Π²ΡΡΡΡΠΏΠΈΠ²ΡΠΈΠ΅ Π² ΡΠΎΠ»ΠΈ ΠΏΠΎΡΠΎΠ±Π½ΠΈΠΊΠΎΠ².
Monday, October 06, 2008
Saturday, May 24, 2008
Some bash scripts.
Make your console nicer and more useful:
user-) cd Download/Insert this code to .bashrc file in your home folder:
WD=/home/user/Download
user-Download-)
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="\[[00;31m\]\u\[[00;33m\]$HostBit\[[00;32m\]$DirBit\[[0m\]-) " ;;
*) PS1="\u$HostBit$DirBit-) " ;;
esac
}
SetPS1
thcd()
{
builtin cd "$@"
if test -t 1
then
case $TERM in
xterm) echo "WD=[00;31m`pwd`[0m" >&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:
Required software:
- VLC player
- Libmad Library
- Xine-lib-extras-nonfree
- Amarok-extras-nonfree
- Amarok player(yum install amarok)
- VLC and VLC front-end Miro.
- Kaffeine(yum install kaffeine)
- Audacious
- XMMS
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.
enable - execute program
source - include other file to current script
Switching workspace in command line:
GNOME DESKTOP
Restoring GRUB:
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 0Script commands:
enable
source
GNOME DESKTOP
- [ program wmctrl needed ] ( yum install wmctrl )
- wmctrl -s desktopNum
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 )
- 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)
Required software:
Installation:
- make
- make install
- install -c -m 0644 gspca.ko /lib/modules/`uname -r`/kernel/drivers/usb/media/ (Π½Π°Π²ΡΡΠΊΠΈΠΉ ΡΠ»ΡΡΠ°ΠΉ Π΅ΡΠ΅ ΡΠ°Π·)
- /sbin/modprobe gspca
- /sbin/lsmod | grep gspca (ΠΏΡΠΎΠ²Π΅ΡΠΊΠ°)
- ls -lad /dev/video* (ΠΏΡΠΎΠ²Π΅ΡΠΊΠ°)
Subscribe to:
Comments (Atom)
