Skip to content

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.

9 points28 comments
Open on Reddit
About this post
Posted
Archived
Score
9 · 100% up
Kind
Text
ID
2vm4pf

Author

85
posts
767
comments
6
media
View profile

29 comments

Is there something you are trying to do but can't? This...really isn't even a question.

26 points

If I install arch and Xorg can I run still play video with ffplay for example.

There should be a question mark there, but there's the question.

6 points

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.

6 points

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.

3 points

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.

2 points

You 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 xterm and launch mpv or whatever there to have it overlap, then return to the terminal otherwise.

6 points

I'd recommend w3m over Lynx simply because it can display images.

8 points

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.

5 points

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.

3 points

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.local in 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.

2 points

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

startx $(which smplayer)

However startx ffplay /path/to/file.mkv doesn't work. Though I guess you can do something like

echo "$(which ffplay) /path/to/file.mkv > /tmp/video.sh
startx /tmp/video.sh

and it will play the video fine. In fact, I just tried it.

3 points

Based version:

startx <(echo "THE_COMMAND")

Then you could do something like:

mpv()
{
    startx <(echo "mpv $@")
}
2 points

A light weight WM will use less resources than some of the newer command line tools. I'm serious.

3 points

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.

1 points
unknown author

Deleted before we saved it.

0 points

Keyboard shortcuts

Move and act

jork
Next / previous post or comment
Enteroro
Open the post
f
Open the media viewer
s
Save
h
Hide (the toast has Undo)
Tab
Right after an action: the toast's Undo
x
Collapse the comment
v
Next layout: cards, compact, grid

Go to

/
Search
gthenh
Home
gthena
All
gthens
Subreddits
gthenl
Library
?
This list
Esc
Close a menu or this list

In the viewer

←or→
Previous / next file
↑or↓
Previous / next post
korj
Previous / next post
Space
Play / pause
m
Mute
z
Zoom
s
Save
o
Open the post (on its own page: back to it)
Esc
Close

Keys do nothing while you type in a box.