Wednesday, 28 November 2012

Upgrades -to Kubuntu 12.10 Nov 23

Ok, here we go again. This time I replaced the boot drive to a Solid State Drive (SSD)


Then I loaded Win XP on the primary partition so I could use Google Sketchup for creating woodworking drawings in 3D. Scketchup works under Linux, but had mouse problems under Wine. I also needed to convert some old Corel pictures to jpg format, so I decided to reload my old XP so I can  use it for these two purposes.

Windows XP: (Day 1,2,3)

It took me one evening to install it, and another to update it to SP2 and the SP3... then a third night to load the security updates that came out after SP3 was published. &^%$  I remember now why I moved to Kubuntu. (smile)

Kubuntu 12.10 (Quantal) Documentation Here.

I downloaded the newest Kubuntu iso image, which no longer fits on a CD. It now needs to be burned to a DVD due to it's size. I found that I also had to run it from the CD before I saw any menu to install it. I thought at first that I downloaded the wrong image and it was a Ubuntu Live CD.

The installation went very well, taking about 30 minutes. It created a boot menu (grub) on the new SDD drive and left Windows as a boot option, so now every time the machine is turned "On" you can choose to boot Windows XP or Linux.

The drive works very fast, which is very noticeable when booting Windows. Windows takes about 4 seconds to boot up after you select it in the Boot menu.

The drive also does not even get warm, so I never powered the build-in fan on the mount I purchased. Since the drive was shipped with a mounting plate, one does not need to order the fancy mounting kit (seen below) with a fan, that I bought for $19.00


I recommend upgrading your desktop or laptop to one of these Solid State drives, as it's a cheap upgrade and may avoid the purchase of yet a newer computer to run Microsoft. You might like to try Kubuntu for free instead ! <smile>

(lovely)

Wednesday, 21 November 2012

How to mount a CD image

Install gmount from Muon package installer

Go to applications/system tools menu and open Gmount

Create an empty folder. This is where the IMO files will be placed

----did not work

In the terminal window, you can run this Gmount-iso
The Process manager has a Python PID associated with it.

I updated the packages and there was a Python update... Well see if this fixes it


df -h

This is a good way to find out how many Gigabytes you are using on your drives...

chad@chad-desktop:~/Downloads$ df -h

Filesystem      Size  Used Avail Use% Mounted on
/dev/sda1       449G  157G  270G  37% /
udev            2.0G  4.0K  2.0G   1% /dev
tmpfs           807M  876K  806M   1% /run
none            5.0M     0  5.0M   0% /run/lock
none            2.0G  2.2M  2.0G   1% /run/shm
/dev/sdf1       466G  369G   98G  80% /media/500G BLUE2
/dev/sdh1       699G  538G  161G  77% /media/Archived STA



Monday, 22 October 2012

Sound issues

open terminal and type:

alsamixer

look for any muted channels...




Wednesday, 10 October 2012

Clipboard Selection Behavior


Clipboard/Selection Behavior

General

Klipper can be used to set the behavior of the clipboard and selection in KDE.

Note:
The X Window System® uses two separate clipboard buffers: the “selection” and the “clipboard”. Text is placed in the selection buffer by simply selecting it, and can be pasted with the middle mouse button.


To place text in the clipboard buffer, select it and press Ctrl+X or Ctrl+C. Text from the clipboard buffer is pasted using Ctrl+V or by selecting Edit → Paste.

Changing Clipboard/Selection Behavior
 In order to change clipboard/selection behavior, select Configure Klipper... from the Klipper pop-up menu, and in the dialog box that appears, select the General page.

Unchecking Synchronize contents of the clipboard and the selection makes the clipboard and selection function as completely separate buffers as described above. With this option set, the option Ignore selection will prevent Klipper from including the contents of the selection in its clipboard history and from performing actions on the contents of the selection. Selecting Synchronize contents of the clipboard and the selection causes the clipboard and selection buffers to always be the same, meaning that text in the selection can be pasted with either the middle mouse button or the key combination Ctrl+V, and similarly for text in the clipboard buffer.

Tuesday, 9 October 2012

Firefox -download managers Flashgot and Aria

This download manager was installed Oct 9, 2012; updated Nov 4 2012



sudo apt-get install aria
[sudo] password for chad:

Reading package lists... Done
Building dependency tree    
Reading state information... Done
E: Unable to locate package aria
chad@chad-desktop:~$

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

after trouble with Firefox Flashgot, it looked like the download manager was not working
(looking at the Flashgot log)

I installed Aria2 tonight Nov 4

Tuesday, 2 October 2012

Multimedia Player -VLC

https://help.ubuntu.com/community/RestrictedFormats/PlayingDVDs

Ubuntu 10.04 (i386, amd64), 10.10, 11.04, 11.10 and 12.04 (i386, amd64)


Works for old releases that are no longer supported if you have repositories on Cd/Dvd or somewhere. So, anything from 9.04 onwards. The latest LTS, 10.04, and the radically different 11.04 also work this way.
  • Install the libdvdread4 package (no need to add third party repositories) via Synaptic or command line:
sudo apt-get install libdvdread4

  • Then open a terminal window and execute:
sudo /usr/share/doc/libdvdread4/install-css.sh

  • Rebooting may be necessary.
After this, VLC will automatically use it. Some programs may need recompilation.
If after doing all this, you still get messages about not being able to play DVDs, check that the DVD drive has a region set (see below).

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

the above worked fine. VLC now can read the DVD


Kaffeine also works!


Saturday, 15 September 2012

Record Screen -with avconv


http://askubuntu.com/questions/167683/how-to-add-microphone-audio-into-avconvs-video-in-x11grab-mode


now this worked to create an mp4 video !!!


avconv -f alsa -i pulse -f x11grab -r 30 -s 1366x768 -i :0.0 -vcodec libx264 -preset ultrafast -threads 4 -y myscreencast.mp4

^C to stop encoding and save the file. 



* To determine your screen resolution, go to System Settings under "Hardware" to find out.
I am using 1920 x 1200.


Sept 15, 2012

Since upgrading to Kubuntu Precise, my HP1200 Laser printer no longer worked. I fixed this by going into

Settings/System Settings/Hardware/Printer Configuration


I deleted the printer and re-installed it using the HP LaserJet 1200 hpijs pcl3, 3.12.2


that fixed the problem.

<smile>

I sent my Congratulations as well to the Kubuntu Forum (http://www.kubuntuforums.net/) for doing such a good job of the upgrade to 12.04 (Kubuntu Precise)

<smile>

Sunday, 26 August 2012

ffmpeg commands

$  which ffmpeg                                  gives you path to ffmpeg

 $  ffmpeg                                              give you stats on ffmpeg

 $  ffmpeg --version                             gives you version

 $  ffmepg --help                                   give you the help menu

 $  ffmpeg --formats                              gives you a list of formats




This is a list of conversion commands within ffmpeg:

Getting info from a video file:

                                 $ ffmpeg -i video.avi

Turn X images to a video sequence

                           $ ffmpeg -f image2 -i image%d.jpg video.mpg

            This command will transform all the images from the current directory (named image1.jpg, image2.jpg, etc…) to a video file named video.mpg.

Turn a video to X images

                       $ ffmpeg -i video.mpg image%d.jpg

This command will generate the files named image1.jpg, image2.jpg, …

The following image formats are also available : PGM, PPM, PAM, PGMYUV, JPEG, GIF, PNG, TIFF, SGI.

Encode a video sequence for the ipad/iphone/ipod

$ ffmpeg -i source_video.avi input -acodec aac -ab 128kb -vcodec mpeg4 -b 1200kb -mbd 2 -flags +4mv+trell -aic 2 -cmp 2 -subcmp 2 -s 320x180 -title X final_video.mp4

Explanations :

Source : source_video.avi
Audio codec : aac
Audio bitrate : 128kb/s
Video codec : mpeg4
Video bitrate : 1200kb/s
Video size : 320px par 180px
Generated video : final_video.mp4

Encode video for the PSP

$ ffmpeg -i source_video.avi -b 300 -s 320x240 -vcodec xvid -ab 32 -ar 24000 -acodec aac final_video.mp4

Explanations :

Source : source_video.avi
Audio codec : aac
Audio bitrate : 32kb/s
Video codec : xvid
Video bitrate : 1200kb/s
Video size : 320px par 180px
Generated video : final_video.mp4

Extracting sound from a video, and save it as Mp3

$ ffmpeg -i source_video.avi -vn -ar 44100 -ac 2 -ab 192 -f mp3 sound.mp3

Explanations :

Source video : source_video.avi
Audio bitrate : 192kb/s
output format : mp3Generated sound : sound.mp3

Convert a wav file to Mp3

$ ffmpeg -i son_origine.avi -vn -ar 44100 -ac 2 -ab 192 -f mp3 son_final.mp3

Convert .avi video to .mpg

$ ffmpeg -i video_origine.avi video_finale.mpg

Convert .mpg to .avi

$ ffmpeg -i video_origine.mpg video_finale.avi

Convert .avi to animated gif(uncompressed)

$ ffmpeg -i video_origine.avi gif_anime.gif

Mix a video with a sound file

$ ffmpeg -i son.wav -i video_origine.avi video_finale.mpg

Convert .avi to .flv

$ ffmpeg -i video_origine.avi -ab 56 -ar 44100 -b 200 -r 15 -s 320x240 -f flv video_finale.flv

Convert .avi to dv

$ ffmpeg -i video_origine.avi -s pal -r pal -aspect 4:3 -ar 48000 -ac 2 video_finale.dv

Or:

$ ffmpeg -i video_origine.avi -target pal-dv video_finale.dv

Convert .avi to mpeg for dvd players

$ ffmpeg -i source_video.avi -target pal-dvd -ps 2000000000 -aspect 16:9 finale_video.mpeg

Explanations :

target pal-dvd : Output format
ps 2000000000 maximum size for the output file, in bits (here, 2 Gb)
aspect 16:9 : Widescreen

Compress .avi to divx

$ ffmpeg -i video_origine.avi -s 320x240 -vcodec msmpeg4v2 video_finale.avi

Compress Ogg Theora to Mpeg dvd

$ ffmpeg -i film_sortie_cinelerra.ogm -s 720x576 -vcodec mpeg2video -acodec mp3 film_terminée.mpg

Compress .avi to SVCD mpeg2

NTSC format:

$ ffmpeg -i video_origine.avi -target ntsc-svcd video_finale.mpg

PAL format:

$ ffmpeg -i video_origine.avi -target pal-svcd video_finale.mpg

Compress .avi to VCD mpeg2

NTSC format:

$ ffmpeg -i video_origine.avi -target ntsc-vcd video_finale.mpg

PAL format:

$ ffmpeg -i video_origine.avi -target pal-vcd video_finale.mpg

Multi-pass encoding with ffmpeg

$ ffmpeg -i fichierentree -pass 2 -passlogfile ffmpeg2pass fichiersortie-2


convert a live stream

$ ffmpeg -i http://serveraddress/streamvideo.asf -target ntsc-dvd -aspect 1.3333 -s 176x108 yourvideo.flv');

 or

$ ffmpeg -i rtmp://severaddress/myApp/myStream -acodec copy -vcodec copy -y myStream.flv   (red5)

combine two flv's with mencoder

$ mencoder.exe -fps 29.97 1.flv -fps 29.97 2.flv -o combine.flv -of lavf -ovc copy -oac copy


get movie duration with ffmpeg

function duration($videofile)
{
ob_start();
passthru("ffmpeg.exe -i "". $videofile . "" 2>&1");
$duration = ob_get_contents();
ob_end_clean();
preg_match('/Duration: (.*?),/', $duration, $matches);
$duration = $matches[1];
return($duration);
}


Extract a Video Clip on the Command-Line with avconv (ffmpeg)




If you want a quick and easy way to extract a clip from a larger video it doesn't get much simplier than using avconv (the new ffmpeg.) All you need to know is the start time and duration of the section you'd like to extract. Once you have those you can plug them in to the following command.
avconv -ss <start-time> -t <duration> -i long-video.mp4 -codec copy funny-clip.mp4
If for example you'd like to take a 48 second clip starting at 32 minutes and 15 seconds you'd use the following.
avconv -ss 00:32:15 -t 00:00:48 -i long-video.mp4 -codec copy funny-clip.mp4
Of course you can use any of the conversion capabilities of avconv in the process, here we're preserving the input codecs.
If you happen to be on an older system with ffmpeg the you'll need to make a slight modification to the command and specify copy for both audio and video.
ffmpeg -ss 00:32:15 -t 00:00:48 -i long-video.mp4 -vcodec copy -acodec copy funny-clip.mp4


----------------------------------------
Re. FFmpeg ffmpeg and avconv

when I run ffmpeg on ubuntu, it shows:
ffmpeg 
ffmpeg version v0.8, Copyright (c) 2000-2011 the Libav developers
  built on Feb 28 2012 13:27:36 with gcc 4.6.1
This program is not developed anymore and is only provided for compatibility. Use avconv instead (see Changelog for the list of incompatible changes).
Hyper fast Audio and Video encoder
usage: ffmpeg [options] [[infile options] -i infile]... {[outfile options] outfile}...

Use -h to get full help or, even better, run 'man ffmpeg'
I found avconv on http://libav.org, I am just perplexed by them





This message is rather misleading and understandably is a source of confusion. Ubuntu now uses libav which is a fork of the FFmpeg project. The fork was basically a non-amicable result of conflicting personalities and development styles within the FFmpeg community. (It is worth noting that the maintainer for Debian/Ubuntu switched from FFmpeg to libav on his own accord probably due to being involved with the libav fork.)
For a while both libav and FFmpeg separately developed their own versions of ffmpeg. libav then renamed their ffmpeg to avconv to distance themselves from the FFmpeg project. During the transition period the message you see was displayed to tell users to start using avconv instead their version of ffmpeg. This confuses some users into thinking that FFmpeg (the project) is dead, which is not true. Unfortunate wording, but I can't imagine libav not expecting such a response by general users.
This message was removed upstream when ffmpeg was finally removed from the libav source, but it still shows up in Ubuntu because the libav source Ubuntu uses is from the ffmpeg-to-avconv transition period. After some back-and-forth it was decided to change the wording, but as of 2012-05-15 the fix is still currently "in progress" for Ubuntu Precise (see Ubuntu bug #939863).
share|improve this answer
see http://rpm.pbone.net/index.php3/stat/45/idpl/16986939/numer/1/nazwa/avconv for manual


If anyone would like to add to this list please comment below and it will be added.

ipad Supported Formats

iPad/iPad 2 Supported Video Format

  • H.264 video up to 720p, 30 frames per second, Main Profile level 3.1 with AAC-LC audio up to 160 Kbps, 48kHz, stereo audio in .m4v, .mp4, and .mov file formats;
  • MPEG-4 video, up to 2.5 Mbps, 640 by 480 pixels, 30 frames per second, Simple Profile with AAC-LC audio up to 160 Kbps per channel, 48kHz, stereo audio in .m4v, .mp4, and .mov file formats;
  • Motion JPEG (M-JPEG) up to 35 Mbps, 1280 by 720 pixels, 30 frames per second, audio in ulaw, PCM stereo audio in .avi file format.

iPad/iPad 2 Supported Audio Format

  • HE-AAC (V1 and V2)
  • AAC (8 to 320 Kbps)
  • Protected AAC (from iTunes Store)
  • MP3 (8 to 320 Kbps)
  • MP3 VBR, Audible (formats 2, 3, and 4, Audible Enhanced Audio, AAX, and AAX+)
  • Apple Lossless
  • AIFF
  • WAV

Guides & Help

Other *buntu guides and help manuals

  • Kubuntuguide -- Kubuntu uses the popular KDE desktop environment
  • Lubuntu -- Lubuntu can run with as little as 256 Mb RAM. It is better for older machines with limited resources.
  • official Ubuntu Server Guide -- a good starting reference for server packages
  • Ubuntu Doctors Guild -- a collection of tips for using (K)ubuntu Linux in health care environments
  • SkoleLinux -- a collection of (open-source) educational tools for Debian/Ubuntu Linux


source: http://ubuntuguide.org/wiki/Ubuntu:Lucid#How_to_find_out_which_version_of_Ubuntu_you.27re_using


see also: http://www.ubuntulinuxhelp.com/

New Applications

New Applications Resources

Version of Ubuntu?



lsb_release -a

Current Version:


chad@ubuntu:~$ lsb_release -a
No LSB modules are available.
Distributor ID: Ubuntu
Description:    Ubuntu 12.04.2 LTS
Release:        12.04
Codename:       precise




Original Version:

chad@chad-desktop:~$ lsb_release -a

LSB Version:    core-2.0-ia32:core-2.0-noarch:core-3.0-ia32:core-3.0-noarch:core-3.1-ia32:core-3.1-noarch:core-3.2-ia32:core-3.2-noarch:core-4.0-ia32:core-4.0-noarch
Distributor ID: Ubuntu
Description:    Ubuntu 10.04.4 LTS
Release:        10.04
Codename:       lucid

chad@chad-desktop:~$ ^C
chad@chad-desktop:~$

Thursday, 31 May 2012

Delete files and Directories


Quick way to delete directories that are not empty:

rm -rf directoryname

this will delete all files and directories under directoryname

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





How to remove Files that will not Delete in Dolphin

Delete or remove files with inode number

ls -il

(lists the files with their Inode numbers

e.g.

781956 drwx------  3 viv viv 4096 2006-01-27 15:05 gconfd-viv
781964 drwx------  2 viv viv 4096 2006-01-27 15:05 keyring-pKracm
782049 srwxr-xr-x  1 viv viv    0 2006-01-27 15:05 mapping-viv
781939 drwx------  2 viv viv 4096 2006-01-27 15:31 orbit-viv
781922 drwx------  2 viv viv 4096 2006-01-27 15:05 ssh-cnaOtj4013
781882 drwx------  2 viv viv 4096 2006-01-27 15:05 ssh-SsCkUW4013
782263 -rw-r--r--  1 viv viv    0 2006-01-27 15:49 \+Xy \+\8



find . -inum 782263 -exec rm -i {} \;



If you have file like name like name "2005/12/31" then no UNIX or Linux command can delete this file by name. Only method to delete such file is delete file by an inode number. Linux or UNIX never allows creating filename like 2005/12/31 but if you are using NFS from MAC OS or Windows then it is possible to create a such file.

Tuesday, 13 March 2012

KeePassX --a wonderful password manager

KeePassX is a "must-have" application which lets you safely keep all your passwords in an encrypted database  file. I first started to use it under Windows but the application is Open Source and worked just as well under Linux. It even used the same database file so I could simple open it under Kubuntu.


<smile>