How To Burn a DVD From The Command Line in Linux.


I have put together a guide on creating your own DVD recording using only the terminal in Linux.

I will go through the steps one by one,

To get started, you will need to install a few tools as root:

apt-get install ffmpeg dvdauthor genisoimage rename

ffmpeg is the swiss army knife of this operation, providing both the codecs and the ability to transcode videos from one format to another.
Dvdauthor creates the titles and such in DVD format.
Genisoimage creates the DVD.
Im keeping this simple. For more information on these programs check the man page for each or Google.

You will need to create a new directory ‘Videos’ and a text file that will be used to string your videos together before transcoding.
1, Create a text file ‘cam.txt’ using whatever editor works for you! I use geany.

geany cam.txt

This will be used by ffmpeg to string all of your videos together into one movie.
Inside cam.txt place:

# this is a comment
file ’01.mp4′
file ’02.mp4′
file ’03.mp4′
file ’04.mp4′
file ’05.mp4′
file ’06.mp4′
file ’07.mp4′
file ’08.mp4′
file ’09.mp4′
file ’10.mp4′
file ’11.mp4′

During the proccess of making a DVD this file will be copied to ‘Videos’ to be adjusted for use there.
2. Next create the directory ‘Videos’ if not already there:

mkdir ~/Videos

Now we are ready to get started!

3.  Copy any videos from your GoPro or TomTom to ~/Videos. (or any other camera!) These will all need to be the same format for this tutorial, i.e. .mp4. Change as needed

4. Open a terminal and cd to ~/Videos:

cd ~/Videos

5. Use the program rename to put all your newly transferred files in numbered order:

rename 's/.+/our $i; sprintf("%02d.mp4", 1+$i++)/e' *

6. Copy cam.txt to ~/Videos (we do this new every time because the values change from project to project:

cp ~/cam.txt ~/Videos

After copying over cam.txt to ~/Videos, open it up and change the number of lines to the same number of videos in ~/Videos and save. This will allow ffmpeg to use the cam.txt list as a reference.

7. The command below will string all your videos together into one movie:

ffmpeg -f concat -i cam.txt -c copy Movie.mp4

8. Now we are ready to change the format from mp4 to mpeg2, which is still the standard for creating a DVD. The below command also pads the video on your television, creating a black border around the movie.  Because the quality is reduced when making a DVD,  Adding the padding is a wonderful thing if you have a large screen television.

The ‘-b:v 8600k’ will increase the bitrate of your video allowing for a higher quality.

ffmpeg -i Movie.mp4 -vf “pad=5/4*iw:5/4*ih:(ow-iw)/2:(oh-ih)/2” -b:v 8600k -target ntsc-dvd movievideo.mpg

Feel free to add the addition of -aspect 16:9 if desired:

ffmpeg -i Movie.mp4 -vf “pad=5/4*iw:5/4*ih:(ow-iw)/2:(oh-ih)/2” -b:v 8600k -target ntsc-dvd -aspect 16:9 movievideo.mpg

9. While still in ~/Videos, Make the directory to perform the work for dvdauthor and genisoimage:

mkdir dvd

10. Move your newly transcoded movie to ~/Videos/dvd:

mv ~/Videos/movievideo.mpg ~/Videos/dvd

11. Change directory over to~/Videos/dvd:

cd ~/Videos/dvd

12. You will need to set the variable for your television screen. Either NTSC or PAL. For the United States, use NTSC:


13. Now we let dvdauthor set up the movie for dvd production:

dvdauthor -o dvd/ -t movievideo.mpg

14. And set the titles:

dvdauthor -o dvd/ -T

15. Use genisoimage to create the iso you will use to burn to disk:

genisoimage -dvd-video -V HOMEVIDEO -o dvd.iso dvd/

16. Move your iso up one level:

mv ~/Videos/dvd/dvd.iso ~/Videos/dvd.iso

17. If you are short of hard drive space, you may want to remove all of the production parts prior to burning:

rm -r ~/Videos/dvd &
rm ~/Videos/*.mp4 &
rm ~/Videos/cam.txt

18. Go up one level:

cd ~/Videos

19. Burn your dvd!

growisofs -dvd-video -Z /dev/sr0=dvd.iso

There you go! This is just one of several tutorials online on the creation of a dvd. Hopefully this is the one you have been looking for.  Please leave comments for improvements and such!


How to use Newsbeuter in Linux

Newsbeuter is an RSS/Atom feed reader for text terminals. RSS and Atom are a
number of widely-used XML formats to transmit, publish and syndicate articles,
for example news or blog articles.

Simply put, Newsbeuter allows me to get all of my news articles in the morning with a single click! It is a very powerful program with bunches of options.

In order to try it out, simply type newsbeuter into a terminal.

Now, that being said, you can also do the below customizations in ~/.newsbeuter.

These are my own that provide a slightly better experience with colors and more sites.

I am using Lynx for the web browser portion of this. All settings can be changed in ~/.newsbeuter/config including the default browser.

You can use whatever browser you prefer, but lynx opens in the same window and uses the same basic navigation.

apt-get install lynx

Here is a list of urls you can try: put them in ~/.newsbeuter/urls
### This is for password example: http://username:password@hostname.domain.tld/feed.rss

Now for the configuration:
Open a terminal and make a directory in ~/.newsbeuter for configuration:

nano ~/.newsbeuter/config

Add these items for a better experience, and a place to start making changes:

auto-reload yes
browser lynx
cleanup-on-quit yes
download-path “~/downloads/podcasts”
notify-screen yes
player mplayer
refresh-on-startup yes
reload-time 20
reload-threads 2

# Write error log
error-log “~/.newsbeuter/error.log”

# binds —————————————————————-

unbind-key t
unbind-key R
bind-key \ reload-all
bind-key “RIGHT” select-tag
bind-key “SPACE” open

# hide articles matching: ———————————————

ignore-article “*” “title =~ \”Sponsor\””
ignore-article “*” “title =~ \”Advertisement\””
ignore-mode “display”

# formatting and colorization ——————————————

articlelist-format “%4i %f %D %?T?|%-17T| ?%t”

highlight feedlist “^ *[0-9]+ *N ” color156 default
highlight articlelist “^ *[0-9]+ *N ” color156 default

highlight article “(^Feed:.*|^Title:.*|^Author:.*)” color75 default
highlight article “(^Link:.*|^Date:.*)” color75 default
highlight article “^Podcast Download URL:.*” color71 default
highlight article “^Links:” white color240 underline
highlight article “\\[[0-9][0-9]*\\]” color72 default bold
highlight article “\\[image [0-9][0-9]*\\]” color72 default bold
highlight article “\\[embedded flash: [0-9][0-9]*\\]” color72 default bold
highlight article “:.*\\(link\\)$” color74 default
highlight article “:.*\\(image\\)$” color74 default
highlight article “:.*\\(embedded flash\\)$” color74 default

color listnormal white default
color listfocus default color240
color info default color240

Add a line to your personal menu to open Newsbeuter. The one I use includes sizing the window a bit:)

[exec] (Newsbeuter) {/usr/bin/lxterminal –geometry=102×44 -e newsbeuter}
This opens an lxterminal with Newsbeuter.

So, thats it! Let me know how newsbeuter is working for you.

How to root the LG G Pad 8.3 GPE (Google Play Edition) using debian linux

Home screen on my rooted GPad.

Home screen on my rooted GPad.

How to unlock the bootloader and root in Debian Linux.
This guide assumes you are in root for the commands, and have a basic understanding of the terminal. Use sudo if you wish. Part of this comes from this guide:

  • And part from this guide:

  • I’m using amd/64 AntiX (debian)

    YOU ARE RESPONSIBLE FOR ANY CHANGES/PROBLEMS YOU MAY HAVE. While I try to be as thorough as necessary, I cannot know every detail of your particular setup. I suggest multiple points of research before you attempt this guide.

    You will need to go into developer options on your device to enable debugging on your tablet. To do this go to settings/about tablet/build number, and tap on build several times to unlock the developer options.
    Developer Options
    You will need to create the udev rules for your phone on your computer.
    use lsusb in your terminal to find the manufactures code of your device. it will show up as a nexus 4 device.

    Create a blank file in your computer in /etc/udev/rules.d/99-android.rules.
    You can use gedit if you like:

    gedit /etc/udev/rules.d/99-android.rules

    Put the following inside and save, changing the manufactures code as necessary to fit your device, and change “your-login” to your login name on your computer.
    # Google Nexus devices
    SUBSYSTEM=="usb", ATTR{idVendor}=="18d1", MODE="0666", OWNER="your-login" # Google Nexus devices

    18d1 is the manufacturers code.

    You will then want to restart udev on your computer:
    service udev restart

    you will now have permissions to access your android device.

    Now to download adb and get started. you should probably not use adb from the repositories, as it may be an older version. the gpe is using kitkat android and needs the latest build. It is a good idea to get rid of any old adb files on your computer.

    1. apt-get purge android-tools-adb android-tools-fastboot
    ##You shouldn’t use adb from the repositories. The above code removes any old builds##

    To use adb with a amd/64, you will need a few dependencies:
    apt-get update && apt-get install libc6:i386 libncurses5:i386 libstdc++6:i386

    2. Down load the latest adb bundle from here:

  • into the folder of your choosing.

    3. unzip
    This unzips into the same folder.

    4. Move the bundle to /opt:
    mv adt-bundle-linux-x86_64-20131030 /opt/android-sdk-linux-x86_64-20131030

    Other google products reside in /opt, this should too. This takes a minute or so on slow machines.

    5. link to /usr/bin/ for easy command access:

    ln -s /opt/android-sdk-linux-x86_64-20131030/sdk/platform-tools/adb /usr/bin
    ln -s /opt/android-sdk-linux-x86_64-20131030/sdk/platform-tools/fastboot /usr/bin

    6. We are ready to begin working on the device! first start the adb server and look for your device. adb start-server
    adb devices

    You will then need to confirm the connection on your tablet screen to allow access from your computer.

    7. Now we can start the process of unlocking the bootloader.
    adb reboot bootloader
    fastboot oem unlock

    Start and wait to fully reboot. This will factory reset the device, at least it did mine, and so you will have to go back into developer options on your device to enable debugging.

    To have root, you will need to download “SuperSu” from the playstore to your phones sd card, and also need to install a custom recovery. Do this ON YOUR TABLET.
    At the time of this post (1-11-14) the latest twrp is probably the way to go and can be downloaded through here

  • If this link doesn’t work, look on the twrp site for one that works on your device.

    8. Download supersu on your device through the Google Play Store to your tablets sd card.

    9. download the TWRP image THROUGH YOUR COMPUTER, and place in the folder /opt/android-sdk-linux-x86_64-20131030/sdk/platform-tools, and rename it to:

    10.. reconnect your computer to your device and open a root terminal:
    cd /opt/android-sdk-linux-x86_64-20131030/sdk/platform-tools
    fastboot flash recovery recovery.img

    11. On the tablet, use the volume buttons to scroll onto “Restart Bootloader” and hit power to select it.

    After the bootloader reloads, use the volume buttons to scroll onto “Recovery Mode” and power to select it.

    You should then be greeted with your newly installed custom recovery.

    12. Navigate to the supersu zip and install. Reboot!! YES!!!!! you’re rooted!

    Flagstone Patio Made Easy In 7 Steps

    Step 1. Choose the ideal location for your patio or walkway and decide on the size of your area. Choose areas that are close to an entrance with level ground keeping in mind whether you will be in shade or sun depending on your preferences and needs. You will want an area large enough to have a table, chairs, and even a grill or kiddie pool. Make sure to measure the area of your patio or walkway for ordering stone and sand. Sand will be used as a stable base to set your flagstone into place.

    Step 2. Mark the area with chalk or rope and dig down approximately three inches checking for level depth as you go, or use heavy metal edging from your local steel company or garden center if you want a raised patio. I recommend the installation of metal edging whether you dig down or not in order to keep weeds out of your patio. If you choose to install a raised patio, a good weed barrier is recommended, and the grass should still be removed prior to installation.


    Step 3. Buy your flagstone and sand. Your local stone company should provide a good variety of 1½” flagstone for your use. Using stone that is less than 1½” is not recommended as you will have issues keeping your stone from being dislodged. Most stone yards will deliver for a small fee. You can expect to get anywhere from 50sq.ft. To 80sq.ft. Per ton of stone depending on the quality and moisture content. Sand can be purchased at your local block company, or you can have it delivered from most lumber yards. To figure out yardage for sand, multiply the width x length x depth of your area in feet, and divide by 27. This is how much sand you will need to finish the job. A little extra won’t hurt. 1½” is equal to .125′ (for calculator use).

    Step 4. When beginning my patio layout I like to start with a cross in the center and then fill in the holes. This will allow you to get your patio level and make some of the joints line up easier. For large patios it may look like a multi pane window before the rest of the patio has been filled.

    Make sure to use a 4′ level while doing this . Not so much for the individual stones, but so the stones will be level in relation to each other. This way when your patio is all filled in you will not have any depressions for water to collect. Try to keep your joints no larger than the thickness of your thumb. I have done large patios even smaller! This will not be easy for a beginner, so I recommend a good hammer and chisel to break off bad areas of stone, and to trim stone to fit.

    I lay out all my stone around my work area so I can see the edges and puzzle it into place. When setting your stone use the other end of your hammer to pound the stones into place. This will vibrate the stone into the sand assuring a tight fit and no room to give.

    Step 5. Once your patio has been completely filled in, you will want to fill in your cracks with pea gravel. Pea gravel can be bought at most garden centers in bags, or at landscape supply companies and gravel yards in bulk. Regardless of the color of stone, I find the small brown pea gravel to work and look the best.

    This is no time to get sloppy. Expect to be on your hands and knees for a while working the gravel into the joints. Use of a pointed tool is a good idea to pack the gravel tight.

    Step 6. Sweep off your patio well, filling in the cracks with the dust. The dust will gradually sink to the bottom leaving the pea gravel exposed and will serve to fortify your joints. Last but not least, spray off your patio using a hose to clean of your stone and gravel and bring out the natural colors of your flagstone.

    Step 7. Throw a party! You just did a hell of a lot of work and deserve some relaxation. Everybody will be amazed with your work and knowledge of the craft. Of course, you can always call Cedar Masonry to install your patio for you, or to get a hint if you get stuck with a particular problem. Good luck and Best Regards, David Wyckoff – Owner, Ceder Masonry Company.

    houzz interior design ideas


    latest Fluxbox Tips, Tricks, and Hints

    I have yet to find a window manager better than fluxbox.
    Very few window managers do as much with so little, or are so easy to configure. Good job Fluxbox team. Thank you for your dedication. I never fail to find more hidden uses and features. Maybe someday I’ll be able to return in kind.

    Anyway, I have updated all of my guides here as of 5-17-09.

    Fluxbox with style Deepflux, and GTK theme Deepcyan

    Fluxbox with style Deepflux, and GTK theme Deepcyan