Without a DE or WM
If I install arch and Xorg can I run still play video with ffplay for example. I assume I can still use vim and ranger, ncmpcpp, and mutt. I am just wondering how light-weight I can go and still do what what need to do I.e. answering emails, listening to podcasts, etc. I have an old eeepc and just use it for leisure trips.
About this post
- Posted
- Archived
- Score
- 9 · 100% up
- Kind
- Text
- ID
- 2vm4pf
29 comments
Is there something you are trying to do but can't? This...really isn't even a question.
There should be a question mark there, but there's the question.
Why not just install a lightweight WM like bspwm or i3?
Well, depending on exactly what you want to get done with it, I think you should be able to manage pretty well with just the VCs - if you're comfortable with the apps you mentioned, and don't need anything beyond their capabilities. Just start X when you need to do something graphical, and shut it down after, I guess?
If you were really desperate to avoid X you could probably play videos in the console with that ascii art library but that might be taking things too far :P
edit: oh, and i was gong to say - if this isn't your daily driver machine (sounds like it's not), and you don't have any specific technical hitches - why not just go for it? Install arch, and see if you can get your tasks done with the bare install. If not, install programs as required until you can. Once you can accomplish your desired tasks, that's your answer for how minimal you (personally) can go. I don't think anyone here can really answer it for you without knowledge of what exactly you need the machine to do.
Mplayer can play videos directly to the framebuffer, so no need to watch videos in ASCII art. Also, w3m is one of the few (only?) console browsers that display images properly, just as you'd see them in whatever graphical application.
Yeah, I mentioned ASCII mostly in jest. I didn't know about mplayer's framebuffer ability, but given its versatility I suppose it's hardly surprising...
I do have w3m installed (for use within ranger, in a graphical terminal), and was impressed the first time I tried it out. Didn't make the connection that it would work on a VC too, though.
lololol
libcacaFTWYou can respond to emails and listen to podcasts from the terminal. You can use the framebuffer for video and if you really want to lynx or similar for internet access. That would have a minor footprint. If you want actual video through X for example, but don't want a wm, you could probably live with something like
exec xtermand launch mpv or whatever there to have it overlap, then return to the terminal otherwise.I'd recommend w3m over Lynx simply because it can display images.
Actually, I do this too, I have a decade-old laptop with 512MB of RAM, everything helps. Look at the Arch Wiki entry for Xinitrc, tells you what you need to know to have X11 do what you need straight from the command line. You probably do want to have a WM in there though, sometimes things do glitch out without one. I use EvilWM, feel free to pick and choose.
The only thing I would need x for is playing videos right. I can have it ask me if I want to startx. I do that now with the .xinit. Can I startx and play videos full screen with ffmpeg and no wm? That is my question.
You can play videos directly to the framebuffer using mplayer, from the console without needing X. You can find my script for it in my
.zshrc.localin my dotfiles repo here.You can take out the check for $TERM and change the function name if you like. Don't forget to change the numerical values to match your resolution.
startx will work with programs, though as far as I can tell not options. So I guess you could startx a gui, like smplayer, and then play the video's. aka
However startx ffplay /path/to/file.mkv doesn't work. Though I guess you can do something like
and it will play the video fine. In fact, I just tried it.
Based version:
Then you could do something like:
Use http://dwm.suckless.org/
Seconded. dwm is great! awesome is also a good choice for resource-constrained systems.
A light weight WM will use less resources than some of the newer command line tools. I'm serious.
this.
dwm, for example.
This post is relevant to your interest. http://www.reddit.com/r/unixporn/comments/2c0yvy/spending_a_week_in_the_tty/
twm or jwm
Vlc also works in the framebuffer.
You can do most things in console that is without the X system, calender, events, mail, time, music, even some games, hell even conky has an output to console option. Combined with Screen-VS and you pretty much don't need a WM or DE.
As for video, I've heard of programs that can play videos in console using the framebuffer or something like that, the name of which slips me at the moment.
Deleted before we saved it.