Some heretics asking me hard to make non-kosher formats of documents I am usually writing in *.odt
So I am thinking it will not be so sinfully to make some files in *.doc, when some heretics can not understand how it is fun and rightful to use *.odt files. Ubuntu is humane as we all know and maybe my actions will make them more tolerant and they become new adepts of Ubuntology.
# At first I installed unoconv
sudo aptitude install unoconv
#Then I made nautilus script:
#!/bin/bash
# AUTHOR: (c) Ivan Ivanoff
# VERSION: 1.0
# LICENSE: GPL (http://www.gnu.org/licenses/gpl.html)
# REQUIRES: unoconv
# NAME: odt2doc
# DESCRIPTION: Created 20090731
# Check that the user select files (subdirectories are forbidden)
for File in "$@"
do
if [ -f "$File" ]; then
ext=${File##*.}
if [ "$ext" == "odt" ]; then
unoconv -f doc "$File" 2>&1 | zenity --width=300 --percentage=100 --progress --title "Processing documents" --text "Converting to DOC format\.\.\." --pulsate --auto-close
fi
fi
done
zenity --info --title "Processing documents" --width=300 --text "Done, my Lord\!"
And when I put this in ~/.gnome2/nautilus-scripts/odt2doc.sh I can convert files just opening context menu with RMB.
PROFIT!
20090730
My Intel 4500HD Super Video
#Here how to get good performance and DRI2 and to be happy Ubuntu user!
#
#Just create
sudo nano /etc/apt/sources.list.d/intel-bleeding-edge-of-progress.list
#with those lines:
deb http://ppa.launchpad.net/ubuntu-x-swat/x-updates/ubuntu jaunty main
deb-src http://ppa.launchpad.net/ubuntu-x-swat/x-updates/ubuntu jaunty main
#Then we need special PGP key for this repo:
sudo apt-key adv --recv-keys --keyserver keyserver.ubuntu.com AF1CDFA9
#And as usual:
sudo apt-get update
sudo apt-get dist-upgrade
#Do not forget to change Accelaration Method:
sudo nano /etc/X11/xorg.conf
#with this in Device Section:
Option "AccelMethod" "UXA"
...
PROFIT!
#
#Just create
sudo nano /etc/apt/sources.list.d/intel-bleeding-edge-of-progress.list
#with those lines:
deb http://ppa.launchpad.net/ubuntu-x-swat/x-updates/ubuntu jaunty main
deb-src http://ppa.launchpad.net/ubuntu-x-swat/x-updates/ubuntu jaunty main
#Then we need special PGP key for this repo:
sudo apt-key adv --recv-keys --keyserver keyserver.ubuntu.com AF1CDFA9
#And as usual:
sudo apt-get update
sudo apt-get dist-upgrade
#Do not forget to change Accelaration Method:
sudo nano /etc/X11/xorg.conf
#with this in Device Section:
Option "AccelMethod" "UXA"
...
PROFIT!
20090519
Workaround against "/dev/videoX-swapping" for my tv-tuner
Here how to fight with "/dev/videoX-swapping" when you have more then one video device as I do. I use tv-tuner "Beholder M6 Extra".
Just create start script for you video application like this:
#!/bin/bash
VIDEONAME='video (Beholder'
AUDIONAME='saa7134'
VIDEODEVICE=/dev/`find /sys/devices -name name -exec grep "$VIDEONAME" {} + | awk -F\/ '{print $(NF-1)}'`
AUDIODEVICE=hw.`cat /proc/asound/modules | grep $AUDIONAME | awk -F\ '{print $(NF-1)}'`,0
cd /media/TEMP2
mplayer -vf screenshot -vo xv tv:// -tv device=$VIDEODEVICE:driver=v4l2:buffersize=1024:chanlist=russia:normid=17:outfmt=yv12:channels=1-Первый,2-НТВ:chanlist=russia:fps=25:width=640:height=480:alsa:adevice=$AUDIODEVICE:volume=30:amode=1:audiorate=32000:forceaudio:immediatemode=0:tdevice=/dev/vbi0:tformat=3:tlang=33 -font "/usr/share/fonts/truetype/msttcorefonts/Impact.ttf" -delay 0.2 -framedrop -ontop 1>/dev/null 2>/dev/null
Also you can see how to make good tv application with mplayer and Kuzkina Mat'. If you have better decisions - just show me them.
Just create start script for you video application like this:
#!/bin/bash
VIDEONAME='video (Beholder'
AUDIONAME='saa7134'
VIDEODEVICE=/dev/`find /sys/devices -name name -exec grep "$VIDEONAME" {} + | awk -F\/ '{print $(NF-1)}'`
AUDIODEVICE=hw.`cat /proc/asound/modules | grep $AUDIONAME | awk -F\ '{print $(NF-1)}'`,0
cd /media/TEMP2
mplayer -vf screenshot -vo xv tv:// -tv device=$VIDEODEVICE:driver=v4l2:buffersize=1024:chanlist=russia:normid=17:outfmt=yv12:channels=1-Первый,2-НТВ:chanlist=russia:fps=25:width=640:height=480:alsa:adevice=$AUDIODEVICE:volume=30:amode=1:audiorate=32000:forceaudio:immediatemode=0:tdevice=/dev/vbi0:tformat=3:tlang=33 -font "/usr/share/fonts/truetype/msttcorefonts/Impact.ttf" -delay 0.2 -framedrop -ontop 1>/dev/null 2>/dev/null
Also you can see how to make good tv application with mplayer and Kuzkina Mat'. If you have better decisions - just show me them.
Intro
This blog was created for myself only. Though you all can be here and you can watch my aspirations to do something good in my wonderful Ubuntu Linux.
Подписаться на:
Сообщения (Atom)
