Quit X! screen-vs is more fun!

screen-vs is what I’ve come to call screen with the vertical split patch applied, for no real reason other than that’s what the PKGBUILD is called in AUR, and I adopted the name when I drafted my own port for Crux. screen with that patch is more fun than a bag of cats, and the things you can do with it along with a little framebuffer love are amazing.

Here’s an example, a sidebar screenshot from a day or two ago you might remember. …

If you are uninitiated, that’s mocp running across the top of the screen, with mc down the side on the left, and htop and iftop on the right. That’s more or less a normal screen setup these days, when I am not demanding that the Thinkpad do something unusual.

As an example of “unusual,” when I scrape Jamendo for worthwhile jazz albums, I usually split the screen like this.

The benefit in that is having mc at the top as a file manager, so I can unzip and dump files into the folders I choose, or jettison them altogether if they suck. On the top right is iftop, watching my bandwidth and so forth, while the bulk of the screen is dedicated to elinks, which is rather like an expectorant for the Internet. Clears out the gunk, and leaves you with the important parts.

But best of all, for the naysayers in the crowd, the ones who will cling desperately to X because it’s somehow the “only” answer to proper image display. …

That, friends, is mplayer on the top left, running a DVD rip while alsamixer is available on the right. At the bottom, iftop on the right (I was transferring a file between machines when I snapped that image) and at left, of course, htop watching the system profile.

And what a system profile it is. A 550MHz machine maxed out at 192Mb of PC100, a machine that was a thrift-shop special a year and a half ago, a machine that most people would probably give away rather than have to look at another day, a machine with only 4MB of video memory and an 800×600 screen … and it’s doing all that on about 5 percent of its processor power and around 31MB of memory.

That’s the best endorsement I can offer for handing X its pink slip. Who needs all of the trappings and dead weight that come with X — let alone a full honking desktop environment like Ubuntu’s Gnome — when you can get all these things for almost nothing?

Trust me. Start over from scratch. Tear out all the crud and take a look at how you can do all the same things with far less baggage. You’ll thank me later. … :twisted:

About these ads

62 Responses to “Quit X! screen-vs is more fun!”


  1. 1 Jose Catre-Vandis 2009/05/21 at 11:54 PM

    Can we have one of your “Like a Pro” for screen. I am running Xubuntu 9.04 (cli install) so vertical split should be there by default. I have a handle on dvtm but can’t see how screen can add to my cli happiness? Do you have some suggestions for .screenrc?

    Great blog, it’s my daily fix :)

  2. 2 Jose Catre-Vandis 2009/05/21 at 11:57 PM

    Oh, have you had a play with directvnc? I have a headless Windows virtual machine for a few non linux things, and directvnc provides graphical vnc access to it. Just need to match the resolution of your “guest” to your “host”. Great :)

  3. 3 Rahul Pisharody 2009/05/22 at 2:05 AM

    Hell, yeah. I was actually inspired by your blog and had been using my Arch install without X server running.

    But pressing complaints from my brother and his complaints on being GNU/Linux too uncool and the release of Jaunty prompted me to install Ubuntu again.

    I started my life through PCLinux -> Debian -> Ubuntu -> Slackware -> Arch and back again, now to Ubuntu.

    Thanks for all the tips and yeah, I’m waiting for a “like a pro” on screen :)

  4. 4 dawn 2009/05/22 at 2:24 AM

    How do you run mplayer inside screen? MPlayer just won’t display a video in the framebuffer in screen for me…

  5. 5 fuxter 2009/05/22 at 2:31 AM

    dear K.Mandla,
    i would really love to set up my eeepc that x-less style.
    but i tried few times and couldn’t really set up my framebuffer. a nice “Like a Pro” for setting framebuffer, configuring screen and dvtm would be really nice. pardon my russian.
    if you’d also include some usefull tricky autologin scripts (like autostarting screen and dvtm with some programs and playing some “welcome” sound of course).
    i would really appreciate it and you’s save me much nerves on my current condition.
    anyway, thanks for this blog.

    • 6 Viletimes 2009/05/22 at 11:36 AM

      If you have an nVidia card in your system, you really need to try this at the command line with mplayer:

      mplayer -vo cvidix video.avi

      • 7 rbanavara 2010/12/08 at 3:19 PM

        How do you get cvidix to work. I have nvidia 8600 MGT card and when i try this on console, it give some error like driver not found (though fbdev works nicely).

  6. 8 fuxter 2009/05/22 at 3:13 AM

    btw, i believe, you meant alsamixer

  7. 10 Jose Catre-Vandis 2009/05/22 at 5:04 AM

    @ dawn

    # /usr/bin/mplayer -vo fbdev file.avi

    in it’s simplest form. On my main machine where I am running a framebuffer at full resolution (vga=794 – 1280×1024), i use the following to run the video at full screen

    #/usr/bin/mplayer -vo fbdev -fs -vf scale=1280:-3 file.avi

    on my Acer Aspire One, which only runs a framebuffer at 800×600 I use

    #/usr/bin/mplayer -vo fbdev -vf scale=640:480 file.avi

    Others may have better suggestions :)

    • 11 Auriza Akbar 2009/11/28 at 1:58 AM

      To view movie fullscreen with mplayer, I usually use these command:
      $ sudo mplayer -vo fbdev -fs -zoom -xy [maxwidth] movie.mp4

      Sometimes, it some video screwed up. To solve this I remove the -fs option.

  8. 12 falst 2009/05/22 at 5:34 AM

    @fuxter
    I’m running my EeePC 1000HE with Arch without X, using KMS (http://wiki.archlinux.org/index.php/Intel_Graphics#Kernel_mode_setting_.28KMS.29), which really improves the experience, just if you weren’t aware of it already :).

  9. 14 johnraff 2009/05/22 at 1:28 PM

    Until K.Mandla puts together his screen guide, (a full cli ubuntu remix might be nice someday!) Ubuntu users might want to check out the screen-profiles (now called byobu) package:
    http://arstechnica.com/open-source/news/2009/04/ubuntu-brings-advanced-screen-features-to-the-masses.ars
    https://help.ubuntu.com/9.04/serverguide/C/screen-profiles.html
    https://launchpad.net/byobu

  10. 15 dawn 2009/05/23 at 12:52 AM

    @Jose Catre-Vandis, thanks although that wasn’t my question. I use the fbdev driver too :). I was under the impression there was something wrong, but apparently it was specific to a single video. You can get rid of -vo fbdev by specifying the driver in ~/.mplayer/config, after xv (or whatever you use in X). mplayer plays video with whichever of the drivers that works.

    By the way I’m thinking about writing a script compute the correct size for the full screen video, because mplayer’s scaling doesn’t keep the aspect ratio.

    • 16 Jose Catre-Vandis 2009/05/23 at 2:19 AM

      @ dawn

      Yep, sorry, reread your question after I posted ans saw the word “screen” ! :(

      However mplayer works for me in screen using these commands, but have to be root or use sudo

      • 17 Jose Catre-Vandis 2009/05/25 at 5:09 AM

        I see what you mean now, mplayer takes over the whole display as opposed to running inside the “region” of the split.

        • 18 K.Mandla 2009/05/25 at 7:35 AM

          Yes, I guess I should be a little more explicit, in that mplayer is just “painting” the video output onto the framebuffer, regardless of whatever is set to appear in that space. It’s not confined to that box, which is why it’s probably necessary to work around it.

  11. 19 Bryan 2009/05/23 at 10:28 AM

    Excuse my ignorance when I ask but…
    What are the main differences between dvtm and screen-vs? Is it simply that screen allows for manual management of screen real estate while dvtm has pre ordered layouts or is there more to it?

    I’ve never been a fan of screen’s method of control (:split etc.) and I find I MUCH prefer dvtm (even though I don’t care for the emacs style ^g modifier.)

    • 20 armornick 2009/05/23 at 1:51 PM

      For a start, Screen has a ^a modifier instead of a ^g modifier. Read the manpage for the hotkeys ;)
      Besides that, screen is a multiplexer while dvtm is a window manager. This means that dvtm doesn’t hide the borders of the windows you’ve opened (except in full-screen mode). I also think screen is a bit more advanced, since sessions can be detached and reopened later.

    • 21 K.Mandla 2009/05/23 at 9:25 PM

      Everything armornick said I can concur with. I also find that responsiveness in screen is slightly better than dvtm, although (as always) I can’t really prove that and it sort just falls into the “gut feeling” category.

      screen also seems to require a little reverse thinking: You arrange the “windows” as you like, then pop applications in and out. dvtm, for my money, behaves a little more like a window manager, in that you can shift windows around and reorder them.

      I like screen-vs more than dvtm, but I also think dvtm has some bonuses. I tend to use whichever I feel like at the time.

      • 22 Bryan 2009/05/25 at 12:17 AM

        That makes sense, though I still believe I’m a bit more partial to dvtm, just because I prefer the managed mode of interaction it gives me.

        The modifier I was referring too was the dvtm modifier, which is ^g. I was simply commenting on how I don’t care for the emacs style of modifier keys, which are present in both dvtm and screen.

        Since my query, I’ve installed screen (patched with support for vertical split) and I have to say that I like it – though I’m not a fan of the fact that i have to arrange everything as I want it to be – so I’ll probably stick with dvtm for the forseeable future. Thanks for the explanation guys :)

  12. 23 John Bohlke 2009/05/24 at 4:09 AM

    I was just curious what codec you used for that dvd-rip?

  13. 25 redandwhitestripes 2009/05/29 at 9:12 PM

    Thank you for this. It seems it will be tough to get it working in Puppy, though.

  14. 26 colonelcrayon 2009/05/31 at 3:29 AM

    Look at what you’ve done now! You just had to make me ditch X, didn’t you :P

    One quick question: have you (or anyone else) found a good framebuffer image viewer that works inside screen? Having to exit screen to us fbi is a pain…

  15. 27 colonelcrayon 2009/05/31 at 5:37 AM

    Never mind. I’ve solved my own problem by setting my second tty to autologin. I can just jump over there to view images :)

  16. 29 The Doctor 2009/07/03 at 1:49 PM

    I’d like to give a +1 for a screen “Like a pro”

  17. 30 CptPicard 2009/11/30 at 1:57 AM

    Meh, just boot straight into Emacs after getting the kernel up and running, you get “window-management” as a bonus.

    For those who insist on having X, xmonad is worth checking out. It is a very nice window manager.

  18. 31 gumball 2009/12/31 at 4:54 AM

    what do you do for web browsing? links?

    only reason I really need X is for proper web browsing…

  19. 33 mike.e 2010/01/06 at 5:48 PM

    Hi
    I love the commandline and re using old equipment at high speeds and first found this site from the ‘one week at 100mhz’ post!

    I installed DVTM but I cant see where the config files are. So I just run SCREEN for now on my 500mhz VIA ~3w (formerly a wyse thinclient)

    Id like a gumstix + screen but thisl do!

    • 34 K.Mandla 2010/01/07 at 7:36 AM

      With dvtm, I believe you edit the config.h file in the source, then recompile the program. It’s a little inconvenient, but the program itself takes almost no time to compile, so it’s not a big deal, I suppose. ;)

  20. 35 Girofaryon 2010/01/07 at 10:51 PM

    Hello, first af all thanks very much for this very interesting blog.

    Even if I use screen in every session, I still need a graphical desktop to run Firefox (with vimperator pluggin), mplayer and… an IM events and mail notifier.

    I once used w3m as my main browser (this one can display pictures) but the browsing was not comfortable, as 99% is to be displayed on a graphical browser. I’m more efficient as fast reading web stuff with Firefox.

    Does mplayer-framebuffer needs more CPU than mplayer-X ?

    And about screen, did anyone set up a nice console notification (inside screen) for IMAP mail and for events like instant messaging (I’m using mcabber which is a nice jabber client) ?

    Thank you !

    • 36 K.Mandla 2010/01/08 at 8:37 AM

      Text-based surfing takes a little while to get used to. I trapped myself at a text-based machine for a few weeks and it became natural. But of course there are some things that just won’t ever work at the console. Each person has his or her way of doing things. …

      From my perspective, mplayer at the framebuffer uses less than under X, but that’s because X is so big and heavy to start with. If it’s easier for a machine to run mplayer at the framebuffer, I would suspect that’s because it doesn’t have to handle the entire framework of X at the same time. I am not an expert, though. …

      I’ll have to check the mail notifications in screen; I hadn’t seen those. Do you have a link to a howto or a wiki page about them? :)

      • 37 Girofaryon 2010/01/08 at 6:27 PM

        You must be right about mplayer-framebuffer, often simplicity means efficiency ; “keep it simple”.

        Conky could be a nice mail notification :

        ” Most of you will already know GNU Screen, but did you know that you can use display conky stats *in a screen session* ?”
        http://wiki.conky.be/index.php/Conky_and_GNU_Screen

        In combination with the built-in POP/IMAP support, conky could be the right tool, isn’t it ?

  21. 38 Mats Rauhala 2010/02/06 at 9:08 PM

    Do you use DirectFB for framebuffer? I just installed Gentoo on my old laptop
    and was considering of using only console and framebuffer applications in it,
    but DirectFB has its own keyboard listeners or something, and without disabling
    the keyboard module, all the keyboard input is given twice. Imagine my
    frustration when I tried to to go “hhttpp::::////rreeddiitt..ccoomm”.

    So I put “disable-modules=keyboard” to ~/.directfbrc and all seemed good, until
    I tried to switch ttys and I couldn’t. As far as I see it, by disabling the
    keyboard module, I disabled normal console behavior such as Control-F1. This
    makes using for example links impossible for me.

    • 39 K.Mandla 2010/02/07 at 8:12 AM

      The framebuffer support you see in screenshots is only done through the kernel support. I have tinkered very little with DirectFB, mostly because in Crux it’s only available through an outside port (in other words, it’s not in core, opt or contrib) and I haven’t had much luck setting it up.

      On the other hand, I do use things like links2 -g or similar applications when I am using Debian or Arch, but that probably doesn’t help with your question. … :(

  22. 40 Perry 2011/02/04 at 6:45 AM

    I would very much like to have access to your screen-vs prot for crux, if at all possible. Also fbterm, if it isn’t too much to ask.

    • 41 K.Mandla 2011/02/04 at 6:52 AM

      I believe the port for screen-vs is elsewhere on this site; try the “Crux” category on the right.

      I don’t recall if I ever made a port for fbterm for Crux though. I’ll dig around and see if I can find it.

  23. 42 navin kumar inwati 2011/03/20 at 2:31 PM

    my quere is that my screen gone alter to horizontal to vertical, how i get the original screen?


  1. 1 Top Posts « WordPress.com Trackback on 2009/05/24 at 9:14 AM
  2. 2 Howto: Patch and set up screen-vs « Motho ke motho ka botho Trackback on 2009/05/24 at 10:10 PM
  3. 3 xentalion's status on Tuesday, 26-May-09 13:10:17 UTC - Identi.ca Trackback on 2009/05/26 at 10:10 PM
  4. 4 On the menu « Motho ke motho ka botho Trackback on 2009/06/07 at 9:44 PM
  5. 5 Pictures at an exhibition « Motho ke motho ka botho Trackback on 2009/06/18 at 8:39 AM
  6. 6 What’s to like? « Motho ke motho ka botho Trackback on 2009/07/12 at 10:43 PM
  7. 7 The coolest tools in the box « Motho ke motho ka botho Trackback on 2009/07/13 at 10:47 AM
  8. 8 Putting the Pentium back to work « Motho ke motho ka botho Trackback on 2009/08/03 at 9:35 AM
  9. 9 Noteworthy Linux console fonts « Motho ke motho ka botho Trackback on 2009/08/24 at 9:58 AM
  10. 10 The price you pay « Motho ke motho ka botho Trackback on 2009/11/07 at 8:44 AM
  11. 11 MPlayer for the framebuffer only « Motho ke motho ka botho Trackback on 2009/11/23 at 8:08 PM
  12. 12 An X for every application « Motho ke motho ka botho Trackback on 2009/11/29 at 10:53 PM
  13. 13 Cool and fun: screen-vs inside Yakuake « Motho ke motho ka botho Trackback on 2009/12/21 at 10:53 AM
  14. 14 Ubuntu 9.10 at 120Mhz, 80Mb « Motho ke motho ka botho Trackback on 2010/01/16 at 8:30 AM
  15. 15 A Windows XP-ish Debian at 120Mhz « Motho ke motho ka botho Trackback on 2010/01/24 at 8:23 AM
  16. 16 Console news, feed and e-mail readers « Motho ke motho ka botho Trackback on 2010/01/27 at 10:37 PM
  17. 17 vtclock: One more console clock can’t hurt « Motho ke motho ka botho Trackback on 2010/06/26 at 9:51 PM
  18. 18 cdm: Manage desktops from the console « Motho ke motho ka botho Trackback on 2010/06/28 at 7:28 AM
  19. 19 Xorg or Wayland: Color me disinterested « Motho ke motho ka botho Trackback on 2010/11/20 at 7:47 PM
  20. 20 Still with ConnochaetOS « Motho ke motho ka botho Trackback on 2011/05/26 at 9:38 PM

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s




Welcome!



Visit the Wiki!

Some recent desktops


May 6, 2011
Musca 0.9.24 on Crux Linux
150Mhz Pentium 96Mb 8Gb CF
 


May 14, 2011
IceWM 1.2.37 and Arch Linux
L2300 core duo 3Gb 320Gb

Some recent games


Apr. 21, 2011
Oolite on Xubuntu 11.04
L2300 core duo 3Gb 320Gb

Enter your email address to subscribe to this blog and receive notifications of new posts.

Join 405 other followers

License

This work is licensed under the GNU Free Documentation License. Please see the About page for details.

Blog Stats

  • 3,959,782 hits

Archives


Follow

Get every new post delivered to your Inbox.

Join 405 other followers

%d bloggers like this: