Gstreamer
That’s the default Ubuntu player, used by Totem. To correctly visualize you video files with Totem proceed as follows:
1) Open a terminal and enter:
gstreamer-properties
2) Move to the video tag.
3) In default video plugin select “X Window System (without Xv)”.
4) Click on try to verify if it works fine.
5) Close this window, problems solved.Vlc
That’s my preferred player, I always use it and surely many of you do too. It is very important to have it working correctly, so:
1) Run vlc.
2) Settings –> Preferences.
3) Selct video and then outpoot modules.
3) Check the little “Advanced options” check box on the button left corner of this window.
4) New options will now appear, so in video outpoot choose “X11 video out”.
5) Save and exit. Mission completed.
MplayerI never use it and every time I try to open something with it, it never works ;P but if you use it…:
1) Run Mplayer.
2) Right click on the screen and select Preferences.
3) Select the video tag and in available drivers choose X11 (XImage/Shm).
4) Save and restart the application.Xine
Very useful if you use Kaffeine or Totem with xine:
1) Run xine.
2) File –> configure –> preferences.
3) In experience_level select “Master Of The Known Universe” so that all the setting become visible.
4) Select the video tag.
5) In driver choose “xshm”.
6) Restart Xine.
Showing posts with label Linux. Show all posts
Showing posts with label Linux. Show all posts
Sunday, November 23, 2008
Черный экран видео с Beryl 'om
Чтоб можно было нормально смотреть видео при этом не выключая берила:
Friday, November 21, 2008
Куча нюансов
В линуксе с Си куча проблем оказывается, надо заботится буквально о каждой мелочи.
Чтобы правельно считать нескольно отдельных строчек с пробелами:
scanf(" %[^\n]",answer);
scanf(" %[^\n]",answer);
обязательно пробел до экспрешона, а то этот сканф сожрет
предыдущий ентер из stdin'a и будет доволен...
fflush(stdin) чего то не помогает ...
Вместо stricmp в линухе функция для сравнения без учета регистров strcasecmp();
инклуд: strings.h
To be continued...
Чтобы правельно считать нескольно отдельных строчек с пробелами:
scanf(" %[^\n]",answer);
scanf(" %[^\n]",answer);
обязательно пробел до экспрешона, а то этот сканф сожрет
предыдущий ентер из stdin'a и будет доволен...
fflush(stdin) чего то не помогает ...
Вместо stricmp в линухе функция для сравнения без учета регистров strcasecmp();
инклуд: strings.h
To be continued...
Tuesday, November 11, 2008
Fancy stuff
Screenlets installation (FC7 & FC8)
screenlets for gnome site
Weather screenlet
Screenlet pack
---------------------
lm_sensors
screenlets for gnome site
Weather screenlet
Screenlet pack
---------------------
lm_sensors
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:
Posts (Atom)
