Showing posts with label Damn Small Linux. Show all posts
Showing posts with label Damn Small Linux. Show all posts

Saturday, July 26, 2008

changes to my .gtkrc file settings

Setting .gtkrc fonts // edit with nano or gedit.
# include "/usr/share/themes/Default/gtk/gtkrc"
style "default"
{
font = "-*-lucida-bold-r-*-*-18-*-*-*-*-*-*-*"
}

class "*" style "default"
style  "-*-lucida-bold-r-*-*-18-*-*-*-*-*-*-*"
{
}

//----------------- and changes to my .gtkrc-2.0 file setting below ----------------// style "default" { font_name = "Sans Serif 15" } class "*" style "default" gtk-font-name = "Sans Serif 15" ############# # ( ok ) the above works with gimp2.0 # ( ok ) firefox2 looks ok. gtk1 and gtk2 settings are unique. I use icewm for my desktop. I'm not a big fan of desktop environments like KDE and GNOME. I spent all day googleing gtk fonts size before findind a couple of forums that pointed me in right direction to ajust my gtk1 and gtk2 fonts because my fonts on aps like firefox2 looked to small when my display was set to 1024x768. When my desktop 800x600 the font size looked normal size but the 800x600 display was killing my eyes. so i had to make the change to 1024x768 to kepp my eyes from falling out of my head. now if only i can fix my QT aps because they still have small fonts. i have QT3 on my system so far i have only found tips for QT4 aps damn google has failed me . ( -QT4) search still fails me. ############ //---------------- Now i have to fix my custom icewm theme to display larger menu fonts. ---------------------// /usr/share/icewm/themes/my-(XP-new)-rollup-AxA-BIG-FONTS/default.theme ( default.theme.BAK ) (( my old font setting for icewm menu )) # Menu font MenuFontName= "-adobe-helvetica-medium-r-normal-*-*-100-*-*-p-*-iso8859-1" #---------------------- # new settings #----------------------- ( my new menu font theme ) # Menu font MenuFontName="-*-sans-medium-r-normal-*-*-100-*-*-p-*--*-*" MenuFontNameXft="sans:size=24:medium" //----------------- cool now I have real big menu fonts and my eyes wont fall out of my head now. I don't have to strain my eyes any more trying to read small menu fonts any more. ------------------// I still need to fix my QT fonts . maybe net time i will figure that one out if google doesn't fail me.

Wednesday, April 2, 2008

mkisofs ( damn-small-linux ) uci iso

mini uci iso how to. for damn small linux apps.

1.sample . mini uci iso how to.

@sample
((( THIS IS A WORK AROUND ! ))

part1.

$ mkisofs -R -hide-rr-moved -cache-inodes -pad BitTornado/  | create_compressed_fs - 65536 > BitTornado_new-stable2008_axa.uci.iso
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
part2
$ md5sum *.uci.iso  > BitTornado.uci.md5.txt
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
AND DONE.

I will post on how to mount the compressed iso image at the bottum of the page.


((( DXL )))
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~

my notes.
NOTES.

NOTES for this system.
SYSTEM --> linux.
OS. ------> 'Damn small linux '
ABOUT. --> 'read the tittle at the top of the page.'
INFO.user. webpage. --> 'AXA' --> Anthony Wardcraft --> 

wardcraft.blogspot.com


# uci how to note.
# y2008 april axa.
/2008/April/2ND/ first draft. ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~

2.dsl @dsl
((( THIS is from the official dsl book.))))

# $ mkisofs -R -hide-rr-moved -cache-inodes -pad zile/ \ 
 | create_compressed_fs - 65536 > ../zile.uci
@axa notes.
" This looks like a buch of bs ^ up there.
make a '.iso' file not foo '.uci' file."
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
3.dsl@dsl
Run the mkisofs command, run it through the create_compressed_fs command to compress the resulting ISO image, and create the updated uci file (called zile.uci). Options to mkisofs command allow Rock Ridge extensions for Linux file naming (-R), cause each hard linked file to only appear once on the CD-ROM image (-cache-inodes), and pads the image by 150 sectors (-pad):

~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~


How to mount a compressed iso

FUSE WHAT? fuse did not work for me. I will try cloop.
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
CLOOP works on damn-small-linux 1). part 1 @cloop
$ sudo mount *uci.iso  foo/ -t iso9660 -o ro,loop=/dev/cloop2 

"part2 info check to see if iso is mounted." @SHELL
$ df -h
anthony@box:/mnt/hda3/opt/realplayer-uci$ df -h

Filesystem            Size  Used Avail Use% Mounted on
/dev/hda1             4.6G  3.4G  1.1G  77% /
/dev/hda3              13G  9.9G  2.6G  80% /mnt/hda3

/mnt/hda3/opt/realplayer-uci/realplayer.uci.iso

                       16M   16M     0 100% /mnt/hda3/opt/realplayer-uci/foo
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
UN-MOUNT the file with umount.
2). part 2 @SHELL umount:
$ sudo umount   foo/ 
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
And done untill next time , fair well and good luck.

/2008/April/2ND/.. first post.
/2008/April/10TH... Cleanded up html-notes a little.

Tuesday, April 1, 2008

damn-small-linux ( usb harddrive ) tips

2008april first.axa *edition.

~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
NOT a joke.

My usb harddrive keeps chrashing.


Anthony notes.
DXL:

1). first load... external usb2.0 harddrive module.
~~~~~~~~~~~~~~~~~~~~~~~~~~
1ST).

$ modprobe ehci-hcd

2ND).
NOW.
type lsmod to see if it's loaded.
$ lsmod | grep ehci
~~~~~~~~~~~~~~~~~~~~~~~~~~~
anthony@box:~$ lsmod | grep ehci
ehci-hcd               16616   0 (unused)
usbcore                57824   1 [usb-storage ehci-hcd hid usb-uhci]
~~~~~~~~~~~~~~~~~~~~~~~~~~
3). NOW
plug your USB hard drive in now. and type.
3RD).
$ dmesg
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
# dmesg should display info about your usb drive info, # make and controler for your usb hard drive. # in step 4 we will load more usb storage drivers ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
ehci_hcd 01:09.2: VIA Technologies, Inc. USB 2.0
ehci_hcd 01:09.2: irq 11, pci mem cde8e000
usb.c: new USB bus registered, assigned bus number 4
ehci_hcd 01:09.2: USB 2.0 enabled, EHCI 1.00, driver 2003-Dec-29/2.4
hub.c: USB hub found
hub.c: 4 ports detected
hub.c: new USB device 01:09.2-1, assigned address 2
usb.c: USB device 2 (vend/prod 0x6e1/0x833) is not claimed by any active driver.
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
4). NOW load usb-storage drive as root. @root.
$ modprobe usb-storage
5). NOW.
dmesg to find out what sda is being used.

~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~

scsi1 : SCSI emulation for USB Mass Storage devices
  Vendor: FUJITSU   Model: MPF3102AT         Rev: 0811
  Type:   Direct-Access                      ANSI SCSI revision: 02
Attached scsi disk sda at scsi1, channel 0, id 0, lun 0
SCSI device sda: 20015856 512-byte hdwr sectors (10248 MB)
 sda: sda1 sda2
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
6). It's usauly sda2 on my system so next is to mount from shell. mounting fron shell scipts the fstab and allows faster drive speed
??? because it may be skipping the sync commad.
!!!! replace ( /mnt/usb ) with your prefered mount point.
??? ( /mnt/usbhd ) or something like that.
@anthony
 sudo mount /dev/sda2  /mnt/usb
7). NOW open your file manager as root. to copy files over to your usbhd in fast usb2.0 speed.
@root
$ emelfm
~~~~~~~~~~~~~~~~~~~~~~~~~~~~
8). when your done unmount as root with umount. or with your file manger.
~~~~~~~~~~~~~~~~~~~~~~~~~~
Thats it NOW i can transfer files faster without crashing my system.

((( $ modprobe ehci-hcd ))) thats the magic tool that i was missing.

I kept crashing my transfers and my compter would LOCK UP without it.

((( usb-storage ))) by it's self is only good for flash memory. NOT for vfat usb hardrives by it's self.
((( usb-storage need ehci-hcd to work with usb hardrive. ))

~~~~~~~~~~~~~~~~~~~~~~~~~~~
NOW I just have to find the driver that works with ..... my usb dvd-burners.

-------------------------------------
untill next time linux users.

Sunday, March 16, 2008

Mplayer dvd video ripping example.

Mplayer dvd video ripping HOW-TO example.

((( mplayer dump dvd vob file to harddrive )))
CODE 1 :

$ mplayer dvd://1 -dumpstream -dumpfile -o ~/DVD/rip.VOB 
(( OR ))
CODE 2 :
$ mplayer dvd://1 -dumpstream -dumpfile  ~/DVD/rip.VOB 
NOTES:
mplayer will rip the video from the DVD to hard drive. into a directory folder /DVD/ in your home directory. (( ~/ )) tilda is a wildcard for home directory.
NOTE:
But the (( -o )) option is not needed for my version of mplayer so i don't use that option switch.

~~~~~~~~~~~~~~~~ ALSO ~~~~~~~~~~~~~~~~~~~
3).
MPLAYER can also record " streeming internet radio " .

((( mplayer dump " internet radio mp3's cc streem.)))


CODE 3 :
$ mplayer  -dumpstream   http://eldorado-ice.streamguys.us:80/KVEC -dumpfile  2008march-10TH-12pmcc.mp3

Tuesday, July 3, 2007

bleach 116 sub eng. " full episode " ffmpeg Div3

veoh del my video :(
http://www.veoh.com/users/thorncat ---------------------------------------------------

bleach 116 sub eng. " full episode " the red head takes a bath at the end " wow "

#---------------------
# ffmpeg notes. fisrt pass -an
#---------------------
CODE:
$ ffmpeg -i *yourvideo.avi -vcodec msmpeg4 -ab 128 -b 592 -bufsize 4096 -mbd 1 -precmp 0 -cmp 2 -subcmp 2 -s 576x416 -padtop 32 -padbottom 32 -padleft 32 -padright 32 -qmin 4 -qmax 4 -pass 1 -an [q4-4-mbd1]new-p1-simple-msmpeg4.avi
#-------------------------
#  second and final pass.
#------------------------
/* add the time switch -t 00:24:04.6 if you need it*/
CODE:

$ ffmpeg -i *yourvideo.AVI -vcodec msmpeg4 -ab 128 -b 592 -bufsize 4096 -mbd 1 -precmp 0 -cmp 2 -subcmp 2 -s 576x416 -padtop 32 -padbottom 32 -padleft 32 -padright 32 -qmin 4 -qmax 4 -pass 2 [q4-4-mbd1]new-p2-simple-msmpeg4.avi
/* I should now have a medium qualty copy with padding for my TV dvd/divx player. */

-------------------------------------------

I some times just do a simple one pass encode set at -mbd 2 and I end up with the same quality that looks good on standard def TV. " What works well for me is the setting " ( -qmin 4 -qmax 4 ) my standard def TV dose not realy display quality set below 4. BEST quality is ( -qmin 2 -qmax 2 ) and setting the quality to belowe 4 makes the compressed file bigger... Pluss it takes longer to encode...

---------------------------------

I'm using a old pc with a 788mhz intel chip and it takes me over 30min to encode medium quality video set a qualtity 4 if i do a simple one pass encode using the old msmpeg4 Div3 codec... BUT if i try to encoded with divx in HQ it takes me for-ever on my slow pc.

---------------------------------

I wrote this and tagged it as ffmpeg then posted it here at http://wardcraft.blogspot.com so i can refer to this post in the future when I wont to cut and paste instead of typing ever switch into terminal.

Monday, July 2, 2007

bleach 115 "sub eng .full video." ffmpeg msmpeg4 div3

veoh broke my video :( -------------------------------------- bleach 115 "sub eng .full video." with padding

===================================== some ffmpeg NOTES :

ffmpeg -i *.avi -acodec mp3 -ab 96 -vcodec msmpeg4 -b 720 -ar 24000 -mbd 2 -aic 2 -cmp 2 -subcmp 2 -s 480x352 -padtop 32 -padbottom 32 -padright 32 -padleft 32 -r 23.98 -title X -f avi -qmin 3 -qmax 10 -t 00:02:00 new-480x352div3-tube.AVI

===================================== i coded the video like like this back when "?" i downloaded the video because i was trying to make the video aspect the same size as youtubes embedded flv player. But i don't think i like the aspect now. I had the file siting around so i uploaded it. it looks ok on veoh. I have some other file siting on cd's that i can dig up and upload later this week.

======================================

thx for reading.

Tuesday, January 30, 2007

DAMN SMALL LINUX tips - ffmpeg div3 avi



-
Damn Small Linux tips - ffmpeg div3 avi -
A couple of thoughts and small tips
------------------------------------------------
"TESTING How To " pad an anime (*.avi) video using ffmpeg and the video codec msmpeg4/div3.
the video's final aspect we will use is 640 x 480 thats (1.3) .
and a 25min tv show should result in a 144mb video file give or take with a low bitrate of -b 700.
" -t 00:01:00 will create a 1 min sample video."
--------------------------------------
# ffmpeg -i *.avi -vcodec msmpeg4 -ab 128 -b 700 -s 576x416 -padtop 32 -padbottom 32 -padleft 32 -padright 32 -t 00:01:00 new-simple-msmpeg4.AVI
---------------------------------------------

Video transcoding
after converting the Xvid .avi file to msmpeg4/div3 .AVI using ffmpeg
the video did not loose a lot of quality and was able to play in Xine on my linux box
and it also played on my $50 dvd/divx player for my TV.
-
OPTIONAL RUN :
# tcprobe -i *.AVI
to find out more about your video vtag and other info about your video.
tcprobe is part of transcoder
-----------------------------------------------------------------------------
-
Video tips
1.Video Padding Tip. only pad the video if your dvd/divx player over scans the video in a way that
cuts of the edges of the video making the sub title unreadable.
2. Video scaling tip. common aspects for avi files for pc's are 640x480 or 320x240
and for us TV's 352x240 ntsc, all equal close to(1.3) (-aspect 4:3)
3. Video bitrate for animation. depending on your need for speed or quality
-b 700 or -b 500 is a good setting for slow pc's
-
CONS -
con - Div3 is a older video compression standard and is not as sharp Divx , Xvid or H.264.
con - the video compression done with div3 does not create a final file as small as newer avi codecs.
con - i have problem getting all " avi video codecs " to sync the audio correctly
when doing a single pass .
-
PROS -
pro - Since the anime I watch has subs and i'm reading slightly out of sync audio
is not a problem for me.
pro - div3 may be old but it takes less time to encode div3 video.
pro - audio quality is not that important to me when watching subbed
anime so I can drop the audio bitrate to (-ab 64)
-
AUDIO tips.
1. using a low audio bitrate will speed up transcoding time
and make the file smaller.
2. if you use in combination a low video bitrate setting and a low audio
bitrate setting for animation you can get a nice small file.
3. Small files are good for storing on a cd or data dvd.
4. smaller audio and video bitrates run smoother on older pc's
than high bitrate files.
--------------------------------------------------
/////////////////////////////////////////////////////////////
-------------------------------------------------
A COUPLE OF FINAL NOTES :

my OS : Linux $FREE Damn Small Linux
my PC : Was given to me used as A free gift from family,
the computer was doa at os login screen and had windows ME OS on it..
before putting Linux on it I tried windows XP but it ran a little to slow for me.
-
HP intel box :runs at 800mhz
RAM 186mb : junk that was mixed and matched together for $12 from office depot.
VIDEO CARD : Nvidia 128mb pci not pci express. $ 50 walmart.
-
This pc is old and to slow to play DVD's but it does a good job playing avi files
vcd, cvd ,and svcd.
I like avi's and svcd/cvd because their easier to transcode and author than DVD's.
-
IN CONCLUSION " ffmpeg can transcode video into a format suitable for
your storage and playback needs."
Try doing a google search for ffmpeg and give it a try
ALSO check to see if your distro supports
ffmpeg mencoder and transcoder.
-
you may have to add debian-multimedia or some other sites to your
source list

deb http://www.debian-multimedia.org sarge main



------------------------------


filed under bleach , anime ,