Page 2 of 3 FirstFirst 123 LastLast
Results 11 to 20 of 21

Thread: HOWTO: Ubuntu CLI versions & Framebuffer Programs

  1. #11
    Join Date
    Nov 2004
    Location
    Quebec
    Beans
    741
    Distro
    Kubuntu 12.04 Precise Pangolin

    Re: HOWTO: Ubuntu CLI versions & Framebuffer Programs

    sweet thanks!
    About Moc though, there is no man pages so how on earth does it work??

    when i run moc all i get is 'can be found in the following 2 packages and then whants to install about 40mb of files? this can't be the best option lol
    ~
    Desktop:ASRock P4i65GV/P4 2.8ghz 2gbram
    Laptop:Toshiba L350-PSLD8C Centrino64 dualcore 2ghz 4gbram

  2. #12
    Join Date
    Oct 2007
    Location
    ISS
    Beans
    1,429

    Re: HOWTO: Ubuntu CLI versions & Framebuffer Programs

    Quote Originally Posted by trash View Post
    sweet thanks!
    About Moc though, there is no man pages so how on earth does it work??

    when i run moc all i get is 'can be found in the following 2 packages and then whants to install about 40mb of files? this can't be the best option lol
    The name of the package is moc but the executable is mocp. See

    Code:
    man mocp
    Start with "mocp" and press "h" to get help. To exit press "Q", that is SHIFT+q.

    If you only press "q" then it will detach moc and continue playing. To stop it retype "mocp" and exit using shift+q.

  3. #13
    Join Date
    Nov 2004
    Location
    Quebec
    Beans
    741
    Distro
    Kubuntu 12.04 Precise Pangolin

    Re: HOWTO: Ubuntu CLI versions & Framebuffer Programs

    Quote Originally Posted by Vivaldi Gloria View Post
    The name of the package is moc but the executable is mocp. See

    Code:
    man mocp
    Start with "mocp" and press "h" to get help. To exit press "Q", that is SHIFT+q.

    If you only press "q" then it will detach moc and continue playing. To stop it retype "mocp" and exit using shift+q.
    OHHHH of course mocp, how silly of me

    Thanks!
    ~
    Desktop:ASRock P4i65GV/P4 2.8ghz 2gbram
    Laptop:Toshiba L350-PSLD8C Centrino64 dualcore 2ghz 4gbram

  4. #14
    Join Date
    Oct 2007
    Location
    ISS
    Beans
    1,429

    Re: HOWTO: Ubuntu CLI versions & Framebuffer Programs

    Quote Originally Posted by trash View Post
    OHHHH of course mocp, how silly of me

    Thanks!
    You're welcome. Not silly of you because it's a bit unexpected. I guess they didn't use "moc" because there's already another app caled moc. I added a note to howto.

    Cheers.

  5. #15
    Join Date
    Nov 2004
    Location
    Quebec
    Beans
    741
    Distro
    Kubuntu 12.04 Precise Pangolin

    Re: HOWTO: Ubuntu CLI versions & Framebuffer Programs

    Oh that reminds me:
    Code:
    sudo nano /etc/udev/rules.d/40-permission.rule
    should be..
    Code:
    sudo nano /etc/udev/rules.d/40-permissions.rules
    cheers
    ~
    Desktop:ASRock P4i65GV/P4 2.8ghz 2gbram
    Laptop:Toshiba L350-PSLD8C Centrino64 dualcore 2ghz 4gbram

  6. #16
    Join Date
    Oct 2007
    Location
    ISS
    Beans
    1,429

    Re: HOWTO: Ubuntu CLI versions & Framebuffer Programs

    40-permissions.rules corrected. Thanks.

  7. #17
    Join Date
    Mar 2006
    Beans
    Hidden!

    Re: Ubuntu CLI versions & Framebuffer Programs

    Quote Originally Posted by Vivaldi Gloria View Post
    Note that xubuntu alt CD doesn't contain this feature
    It does for 8.04.1, I am typing from it now
    No longer participating......

  8. #18
    Join Date
    Oct 2007
    Location
    ISS
    Beans
    1,429

    Re: Ubuntu CLI versions & Framebuffer Programs

    Quote Originally Posted by Jose Catre-Vandis View Post
    It does for 8.04.1, I am typing from it now
    You're right mate. Just verified it. Thanks. Edited the OP accordingly.

  9. #19
    Join Date
    Jun 2007
    Location
    North London; England
    Beans
    697

    Re: Ubuntu CLI versions & Framebuffer Programs

    Quote Originally Posted by Vivaldi Gloria View Post
    PART C. Framebuffer Programs

    This list consists (mostly) of terminal programs which use framebuffer to show images, web pages, videos etc. You can do all these without using X at all!

    1. To enable mouse support in the terminal install gpm:
    Code:
    sudo apt-get install gpm
    Then edit
    Code:
    sudo nano /etc/udev/rules.d/40-permissions.rules
    and add the following line to the end:

    Code:
    KERNEL=="mice",           MODE="0666"
    and restart.

    You can select text to copy and middle-click to paste. This also works between different terminals. For example select a text in tty1, then press (ctrl+)alt+F3 and middle-click to paste in tty3.

    To enable mouse support in nano edit the /etc/nanorc file and comment out the line "set mouse". "When enabled, mouse clicks can be used to place the cursor, set the mark (with a double click), and execute shortcuts."


    2. links2 is a webbrowser which can use framebuffer:
    Code:
    sudo apt-get install links2
    Now start with

    Code:
    links2 -g
    to get the graphical version.

    On a side note, see also surfraw which is a frontend to various web search pages including wikipedia & google.

    http://surfraw.alioth.debian.org/


    3. To see images install fbi:

    Code:
    sudo apt-get install fbi
    Then use for example
    Code:
    fbi *.jpg
    in a directory with images.


    4. To read pdf also use fbi which needs imagemagick to show pdf files:
    Code:
    sudo apt-get install fbi imagemagick
    Now

    Code:
    fbi file.pdf
    will do the job.

    Another program is fbgs - "poor man's PostScript/pdf viewer for the linux framebuffer console" which also works quite good.

    Note that there is a good command line pdf maniplation program: pdftk.


    5. You can use mplayer (or mplayer-nogui) to watch videos:
    Code:
    sudo apt-get install mplayer
    Now I can watch videos with

    Code:
    mplayer -vo fbdev -fs -vf scale=1280:-3 FileName
    mplayer -vo fbdev -fs -vf scale=-3:1024 FileName
    Use the first one if the width of the video is larger than the height. Otherwise, use second. I have an alias in .bashrc so I don't have to remember them.

    My framebuffer resolution is 1280x1024. Change the commands above for your resolution accordingly.


    6. I cannot get vlc and xine to work with framebuffer. In theory they should work. When I try to use vlc with one of

    Code:
    vlc video_file
    vlc --vout fb video_file
    something weird happens. It plays the video as ascii animation. It uses only the text console! It's really fun. You've got to see it to believe it.

    But there is a problem. I don't know how to stop the video! To stop I goto ALT+F2 console and kill vlc from there. This leaves the original terminal (ALT+F1) in a weird state so to get it back use the command
    Code:
    reset

    7. There are good music players around. I prefer MOC (Music On Console). It plays everything and you can change the config file to your liking. It even uses themes. (Note that you install the package named "moc" but you start it with "mocp").

    I don't know any music player which uses framebuffer.


    8. For terminal programs in general see the links given in Part B-11 of this howto.
    wheni try to run mplayer , i get an error "/dev/fb0 permission denied"


    how do i give my self permission ?

    Thanks Markp1989

    edit: VLC plays , the video is make up of random letters and numbers of different colours?

    is that how its ment to look?
    Last edited by markp1989; May 20th, 2009 at 10:15 PM.
    Desktop:i7 875k|4gb OCZ platinum ddr3 2000|Evga P55 LE mobo|OCZ RevoDrive 50gb|ATI 5850 Black Edition|Silverstone FT02|corsair tx650
    Portable: 13" Macbook Pro 2.8ghz i7 16gb RAM | Asus EEE TF101 | Samsung Galaxy S2

  10. #20
    Join Date
    Feb 2007
    Beans
    42

    Re: HOWTO: Ubuntu CLI versions & Framebuffer Programs

    I had the same problem with fbi on 8.10 Intrepid, to get fbi to work in a non root account the user must be added to the 'video' group.

    I used vigr and there is a GUI app for this too, but this should work too,
    Code:
    sudo usermod -a -G video username
    (replace username with the username of the account you are adding)

    hth

    Phill

Page 2 of 3 FirstFirst 123 LastLast

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •