Post a Comment
I lived over a decade without X on Windows.
I could live without X on *nix as I've deal with it regularly but if faced with it permanently, my system would quickly become far less interesting.
Looking at a black screen with white text 24/7 only generates so much excitement. Your also guaranteed a migraine headache to top it off.
For others, one has to imagine how much power a blinking white cursor draws from their $2000+ gaming system and how great of an investment that might have been for the owner.
Edited 2007-05-22 06:48
White text? Wow -- I've been using colorized tools even on the Solaris development servers here. I color code my PuTTY screens depending on the server I'm logged into, I use color ls, Midnight Commander, syntax highlighting in vim, etc.
There's no reason at all to force yourself into a monochrome world, even at the command line. :-)
Edited 2007-05-22 15:31
True, that would be nice. :-)
On the mainframe side I ended up writing a compiler results parsing program that would spin through the rather lengthy results output of our FORTRAN compiler and highlight key information (white is normal, grey is caution/warning, red is Bad Stuff).
http://www.visi.com/~rsteiner/errchk.gif
I may do the same thing under Solaris here. The gcc compiler spits out a ton of crap. :-)
I could live without X on *nix as I've deal with it regularly but if faced with it permanently, my system would quickly become far less interesting.
As we say, use the right tool for the job. GUI applications are the best tools for a lot of tasks. Personally, I use mostly GUI apps at home, but I reach for the terminal for almost all system administration and some file management tasks simply because it's easier--for me. At work, I spend most of my time in about a dozen terminals ssh'ed into a remote box. I have a script that checks my open terminals and starts a new one with a unique foreground color in order of my personal color preferences. This way I can quickly find the orange terminal I was using for cscope, for example. It's all about what works for me, which might seem weird or even frightening to other people.
Looking at a black screen with white text 24/7 only generates so much excitement. Your also guaranteed a migraine headache to top it off.
In my experience, looking at predominantly white screens common in GUI environments by default is more likely to cause headaches and eye strain than looking at mostly black screens. I always use black backgrounds wherever practical, because shining all that unnecessary light at my eyes all day is sure the accelerate the deterioration of my vision as I get older.
For others, one has to imagine how much power a blinking white cursor draws from their $2000+ gaming system and how great of an investment that might have been for the owner.
Actually, that blinking cursor sucks more power than you might think, particularly due to the way that modern CPUs manage their power states. A completely idle machine with a blinking cursor has to wake up every half second or so to make the cursor blink, which can even prevent the machine from ever entering the deeper sleep states. This is usually irrelevant on full-blown desktop, since there are all sorts of applications and daemons waking up left and right to poll stuff and pat themselves on the back. When the blinking cursor in the terminal becomes the limiting factor on idle power consumption, we know the PowerTOP project has been successful.
I used just CLI apps for a year on my old pentium I 233Mhz 64MB toshiba laptop in 2005.
I used:
elinks(web browser with tab support)
irssi+bitlbee(irc and IM)
zgv (for graphics viewing)
vim (text editing)
mutt (email)
Pretty much everything is doable, except interactive graphics editing and accessing broken websites.
The problem is that there are many broken websites with broken layouts and stupid uses of javascript or flash. With AJAX becoming more popular less and less sites are usable in elinks.
- Jesse McNelis
> Playing video in flash is certainly broken.
If playing video in flash doesn't work for you, then it's likely a problem with your distro, not with the website. I can watch Youtube videos on both OSX and Windows, and for what I know Linux should do it too, so it's probably not the website that is broken.
>> Playing video in flash is certainly broken.
>If playing video in flash doesn't work for you, then >it's likely a problem with your distro, not with the >website. I can watch Youtube videos on both OSX and >Windows, and for what I know Linux should do it too, so >it's probably not the website that is broken.
You misunderstand. Playing video in flash is a broken concept not a broken implementation.
It's not standard.
It doesn't work if you don't have a flash plugin.
It uses a generic plugin to load a code (that can be potentially malicious) to ask the plugin to display the video, which is utterly complicated for something that should be as simple as <embed src="..."/>.
"Playing video in flash is certainly broken."
"Broken" is not the word I would have used. I'd say (ab)using "Flash" as a replacement for HTML, images and video streaming is sick.
Most video portals today use "Flash". I would not complain if "Flash" would be an open standard, implemented as a standard feature in every major browser, such as the Javascript interpreter or the HTML and image renderer. But it's not that easy today. I think the company manufacturing "Flash" is to be blamed here, as well as the content providers pushing "Flash" onto users' desktops.
"We already have perfectly fine media players to play videos on. eg. mplayer"
We had them years ago, but nobody uses them. Open standards? Pah! Interoperability? Hah! Worst solution always wins. :-)
"There is no reason to force a user to use a media player that the site owner decides."
But that's the way it is. You want this? You need that. Some web sites even require outdated and strange browsers to work, and why is this? Because some Skriptkiddie is not smart enough to use Javascript properly.
"""
"Broken" is not the word I would have used. I'd say (ab)using "Flash" as a replacement for HTML, images and video streaming is sick.
"""
Broken, abused, or sick, I must say that when I run into a site with embedded Flash video, I know it is going to work on a Flash-capable Linux box.
Even with the various mplayer, vlc, and Real plugins installed, I usually read "Click Here To View a Mother Fighting Off a Shark To Save Her Kids" as "Abandon All Hope Ye Who Enter Here". Typically, I get a popup embedded "player" that just sits there dead on the screen asking if I'm high or low bandwidth, and whether I want Windows Media or Real Video.
I hate flash. But I will give it credit for actually working across platforms.
I'm not sure if mplayer is a "perfectly fine media player"... As much as I hate flash, it "just works".
Mplayer and Xine are just not as friendly. Can I fast-forward and rewind to any place in the file? Can I wait until the video is buffered completely? Sometimes... but usually it doesn't work.
And it's not just mpeg, flv, wmv, etc. files - ogg files don't play any better.
"Mplayer and Xine are just not as friendly. Can I fast-forward and rewind to any place in the file?"
Yes, you just press the cursor keys to navigate in a file, or you click on the buttons provided by kmplayer or gmplayer.
If you have a file that does not support navigation, such as malformed and strangely encoded WMV or AVI streams, you use the proper options, such as -ni, -nobps, -idx and -forceidx (last one always works).
"Can I wait until the video is buffered completely?"
I think you can, just make the setting in mplayer.conf fit your needs.
"Sometimes... but usually it doesn't work."
But it should. Always. Personally, I did not encounter any of the problems you began to describe. But maybe it's because I'm using an older version of mplayer on the box I just tested (mplayer-gtk-esound-0.92.1_1 there). I think other circumstances apply there.
"And it's not just mpeg, flv, wmv, etc. files - ogg files don't play any better."
Hmmm... cannot confirm. Allthough I'm using ogg123 and xmms for ogg file playback, mplayer plays it just fine.
It's a matter of choosing the best tool for a particular job... and deciding, in an informed way, what the best tool is.
I switch from GUI to command line all the time, depending upon which is most capable, and what I am most comfortable with, in a particular situation.
And it is important to note that personal experience plays a large part in that decision. Someone who always uses GUIs will be most comfortable with one. Armed with their hammer, every problem will always look like a nail. It's easy to dance the "One Note Samba"... just keep doing things the way you have always done them!
Sounds like I'm championing the command line doesn't it? But I'm not, really.
Times change. If lynx, links, elinks, or elinks2 fail to be useful as web "pages" and web "sites" start to be overshadowed by ajaxified web "applications", then so be it. Acknowledge it.
If you cling to a tool that is no longer useful, even though it used to be, then you will become an anachronism, stuck in the past.
You really do have to do three things:
1. Sample what you can of what tools are out there, both old and new.
2. Be ready to change the way you do things *when it makes sense to*.
3. Stick to your guns *when it makes sense to*.
I use GUIs more than I used to. I can't imagine using elinks to browse the web when Epiphany is easily available on the machine that I am using. But wget might sometimes trump Firefox when I just want a file.
And I tend to file people who insist upon using Mutt, and then complain about how people send them incompatible emails, to be a bit weird.
But I am using mutt at a couple of client sites, where I need an easily scriptable way to send mail as an smtp client rather than server, since the IP address of the machines in question would be filtered by many mail servers on the Internet at large. (Because they are dynamic IPs, not because my clients are spammers!)
Edit: Add disclaimer about my clients not being spammers. ;-)
Edited 2007-05-22 20:59
"""
I ended up using mailx rather than mutt, but I guess that either would do
.
"""
I didn't know mailx would do that. I'm sure I looked over the mailx man page, and it looked like it would only send the mail itself, directly.
I'd prefer to use mailx, as it sounds the simpler solution. How did you do it?
Edited 2007-05-22 21:19
"But I am using mutt at a couple of client sites, where I need an easily scriptable way to send mail as an smtp client rather than server, since the IP address of the machines in question would be filtered by many mail servers on the Internet at large. "
WHat exactly does "as a client" mean here? If it means "using the ISP's mail relay" you could just use any mta (sendmail, postfix , whatever), have it always use the ISP relay and just use mail/mailx.
"There are always people who will call progress bad."
Maybe because it's true sometimes?
Car manufacturers are not tired inventing cars that do need more and more gas and emit more and more CO2, just to get you from A to B. There are better alternatives. But some people think they need a bulldozer in city traffic.
Good progress?
The SS had "great" progress in murdering people. They did not shoot them because this way got to expensive. They used "modern methods" like Zyklon-B gas insted and raised their "successes".
Good progress?
Not every progress is good, especially if it leads into the wrong direction. "Wrong" can be universal (measured at ethic and moral considerations) or very individual (measured at personal skills, needs, or preference). You are the one to decide which solution fits your requirements best.
Offering choice is progress.
Taking choice is progress.
"What about word processing and PDF ?"
% pdflatex bratwurst.tex
% pdftotext bratwurst.pdf - | less
% lpr bratwurst.pdf
No problems. But remember: While the term word processing refers to things usually done with OpenOffice, LaTeX is for typesetting, which is the more professional "big brother" of word processing. It requires few time to learn, but is very powerful. It can even do presentations (foiltex + xpdf -fullscreen)! :-)
"The problem is that there are many broken websites with broken layouts and stupid uses of javascript or flash. With AJAX becoming more popular less and less sites are usable in elinks. "
Let me be more precise: With the improper use of "Flash" or AJAX, sites become inaccessible, especially for blind people who rely on having the valid HTML tags and attributes set (img alt, longdesc). Lynx et al. are good to test if your web site is barrier free. If it runs in a text mode browser, blind people can read it via a braille device. Actually, these devices transform characters (not images!) into "mechanical" sensory inputs a blind person can receive. Software that reads page content to the user works in a similar way. Actually, this is not done otherwise today.
Maybe, you could say: If a page is not receptable, it is not worth looking at... attention, provocant claim... :-)
I thought that while I'm trying to configure X, I'd be trying to configure X. Not watch a movie, look at pretty pictures or read Wikipedia.
Listen to music...maybe. Everything else can wait until I've got X installed and functioning properly. If you've got a decent X configuration file around it shouldn't take you long to hack into service. I've got a couple I've written from scratch that I've used on a few occasions. With the crap removed and structured much more sanely than most distributions can handle (or indeed as the default one that X spits out).
Indeed. A more appropriate summary would say "while you compile X." This is true in the case of source-based distro users who compile everything. Although I never tried it, one method of installing Gentoo is to boot a live CD that has X Windows and a DE (Gnome/KDE, whatever you fancy) then go about extracting the stage tarball, chroot when you need to etc. You're already in a graphical desktop so you can surf or play games while you wait for packages to compile.
However the article is about CLI software, in which case I'd use one of the function keys to switch to another virtual terminal and use the CLI tools, if they were on the live cd.
I used to use the Norton Commander too. Much easier than plain old DOS. I still prefer to use the Midnight Commander in Linux instead of just the command line. And everyone knows that if you use linux, you just have to use the command line at some point.
Back in the DOS days I used the SEA image viewer by photodex to look at any pictures.
"I used to use the Norton Commander too. Much easier than plain old DOS. I still prefer to use the Midnight Commander in Linux instead of just the command line."
The MC is a great innovation. Most operations done are "source target operations", such as copying, moving, or symlinking. Therefore, the standard MC layout is great. I do use it for most tasks. Even its editor, mcedit, is a powerful tool. It even supports syntax highlighting. Proper bindings (mc.ext) will enable power to connect file types to operations, such as playing OGG files (ogg123) or processing tex files (pdflatex).
"And everyone knows that if you use linux, you just have to use the command line at some point. "
This is correct for UNIX, too. If everything else fails, the CLI still works and lets you do most of the work, There are great applications for CLI use, some of them are much faster than their GUI brothers.
Last to mention, CLI allows you to use a system via SSH or console without any configuration. Having X redirected to another system needs some more configuration to run.
While the CLI seems obsoleted to most users today, it is fully programmable. You can connect inputs and outputs, redirect, remote control applications and other stuff, depending on the shell and applications used. Especially the GUI is not fully programmable, so it won't fit some very special needs or requirements.
For people coming from a Slackware background it is not that hard. Links provides framebuffer browser, there is a console based mp3 player (Orpheus or mpg321, you name it and it is there), IRC client (BX), Instant Messenger (LICQ or others), everything has a corresponding console tool, even MPlayer has framebuffer output support for video.
Pretty much the same thing here. At work, I use a notebook (Thinkpad Z61t) running XP Pro. My job is writing/modifying shell scripts (Korn shell) and Perl scripts in a Unix environment (Solaris 8 & 10). To do this, I use SecureCRT (I also use PuTTY, but I generally have around a half-dozen open sessions or more, so SecureCRT comes in handy!).
I do have a Linux box behind me, that I use to develop the scripts with (our instances of Solaris are quite lacking), but I usually just use PuTTY or SecureCRT in there too. As an added bonus, SecureCRT gives me cut & paste capabilities between the session windows.
Wow. Email. Web browsing, Listening to music.
So boring.
But how about playing your favorite First Person Shooter or watching movies on a text console?
aalib, a drop in replacement for SVGALib, which renders to ascii art rather than a graphical screen, does just that.
You haven't lived until you have played Quake on a Wyse60! Or over telnet!
Screenshots of TTYQuake here:
http://tinyurl.com/2nc6nw
And the home page:
http://tinyurl.com/3by8ya
Edited 2007-05-22 05:23
using aalib is like watching b/w movies, use cacalib instead :]
ps: there is aaut too http://icculus.org/~chunky/ut/aaut/
pss: aaQ2 anyone? http://www.jfedor.org/aaquake2/
Edited 2007-05-22 06:49
<p>But knowing there are CLI apps that don't need X to run can revive very old boxes for some new use.</p>
<p>Think of http://geexbox.org/en/index.html">GeeXboX
Why limit yourself? Every day, I use Linux command line, X, Microsoft Windows, PalmOS and a hoard of other electrical and electronic devices.
The usage of the command line is essential, as is the usage of a graphical interface. They are just used for different things, is all. Ever try to write an X script? When last did you use lynx for browsing?
Do you remember last summer when you could watch the World Cup live in ASCII, using telnet? The site is still up, you can still replay the games that were broadcast.
http://ascii-wm.net/
I love it! 
or maybe probably it's a kind of game. But if 1% of computer users use Linux, I am sure not the tenth part of 1% of Linux users (one thousanth yes) will try this.
But anybody who reads this will instinctively think: yes, Linux for crazy geeks. This article is totally counterproductive and basically useless.
"""
This article is totally counterproductive and basically useless.
"""
When people post this kind of response to articles like this one, I can't help wondering what they are doing on this site in the first place.
The fare on Slashdot may suit you better. But I find the company more colorful and interesting here.
Edited 2007-05-22 14:03
Most of what I do happen inside screen. I use vim as my editor, mutt for email, irssi for IRC, mpd + ncmpc for music, rtorrent for... well, torrents, and no matter how hard I try forcing myself to use a civilized GTK file manager, I usually end up handling files from the command line.
There was a time when I played back video and displayed images on the console through svgalib. This differs next to nothing from how I use mplayer and qiv under X today, so I know the console would work for this as well.
My most important application by FAR, however, is the web browser. For this, there is no console alternative that is good enough, and no, elinks does NOT cut it. The interwebs were never meant to be text only in the first place. On the good side, though, this means that I'm not locked in to any desktop in particular. Switching to any other OS will be no problem as long as it has a decent web browser.
> I'm really productive without bloatware like KDE/Gnome.
KDE/Gnome are not bloatware.
They can run quite smoothly on relatively modest hardware. And they can provide just a nice basic DE if you strip 'em down a bit (window manager, file manager, a few config tools).
They're just not for you, apparently.
There is a huge inflation of the word "bloatware" in software land.
> KDE/Gnome are not bloatware.
emerge -pv gnome
Total: 218 packages (218 new)
emerge -pv kde
Total: 57 packages
And I have almost all my use flags turned off. I'm not saying it can't be stripped down, but on most distros, thats what you're going to get when you install gnome or kde.
ion3 is enough for me. Besides a web browser and rxvt-unicode, I don't need (or use for that matter) any other x apps. And I prefer to surf in full screen in another workspace anyway. I'm not saying this is better than using gnome or kde; different solutions for different needs. If anything I wish I was less dependent on the keyboard. My wrists can't take many more years of this.
Those looking for a good text based browser should checkout w3m. It's the best of the bunch imho.
"Yes, ask an administrator for example. Imo the console in Unix is more powerful than every X application."
As I mentioned before, the command line is fully programmable, a feature that no X application provides. This is its strength. Maybe today's administrators see no need for a CLI access, but in case of trouble, you're happy with it. Maybe I'm a bit old fashioned, but I would not be happy with a system that does not provide the most direct and easiest access to its power.
"I'm really productive without bloatware like KDE/Gnome."
Na na, I don't think KDE or Gnome are bloatware. Use the right tool for every task. Both KDE and Gnome, as well as other desktop environments or window managers have their right to exist, their purpose, their fans, and are able to help doing a lot of things.
Good old days, lynx later links for web, pine and mutt for e-mail, telnet for mud games (oh hell, there are dozens of windows games I forgot the storyline of, but I always remember every detail of my favourite mud to this day), coding and programming really no issue with vi and joe, mpg123 abd mp3blaster for music, ripping writing really no issue, screen resolution no issue, movie playing on framebuffer with mplayer also no issue (hell, that's how I used to play divx-encoded movies on an old cyrix 200mhz back in the days and it worked fantastically), licq/micq for icq-ing, p2p clients by the dozen, and I could go on until the Sun goes down and forward.
survive one full day without using the X server
One day ? Joke.
I own a Toshiba Libretto 50CT (a small laptop the size of a VHS tape) which has modest hardware : Pentium 90, 16MB RAM, 850 MB HD. Actually I run MS DOS/Win3.1 'cause I use it mainly for old games (rediscovering goold old SSI's Dark Sun
).
But I would like to install Linux when I will get a 16 bit network PCMCIA card and surf with it. I know there are light distros for this kind of computer - like Deli Linux - but why wasting its precious ressources with X apps? I'd most probably get much better perfs with CLI apps.
So yes, this can be useful for some people and I found the article rather interisting as I didn't know of all these apps (Raggle and Twin)...
OK, the following isn't quite the same what the author had in mind, but it's useful. Install "links2" (apt-get install links2 if using Debian/Ubuntu). Open and xterm and type:
links2 -g
You get a really fast browser that's kind of a cross between text-mode and graphical. Works really well and I use it quite a lot, especially on slow web sites. It does not have all the bells and whistles of Firefox or even Konqueror, but it does a respectable job and is lightening fast.
Edited 2007-05-22 12:10
I'm already using almost exclusively console applications: mutt, lynx, ViM, {ogg,mpg}123, mplayer, and the like. I have a Matrox G450, so matroxfb and the framebuffer console work very nicely: good for watching movies and viewing images. I don't edit photographs, and for text documents, I use LaTeX exclusively. One can even view PDF documents in framebuffer console with fbgs.
Do I still use X? Yes. The reasons are twofold:
- It's more convenient to have several or dozens of console sessions open. I could use GNU screen, and I sometimes do, but dwm is a comfortable solution.
- Some websites I use daily simply do not work with lynx, links, or elinks. This is sad, and I have to resort to Firefox.
Lynx is actually more convenient to use than Firefox, believe it or not. Having said this, people will no doubt point me to all Firefox plugins that allow me to navigate pages with ViM keys, add numbers next to each link and textfield (and one can then follow the link by typing in the number), and allow me to edit textfields with ViM, not the built-in editor. Lynx has one more advantage: it's superfast in rendering pages. Of course, this has to do with lack of image, CSS, and Javascript support...
Could yes live without X? Sure. Does it make sense? Not really, unless you are running on ancient hardware (such as a 486).
Sure. Does it make sense? Not really, unless you are running on ancient hardware (such as a 486).
Then again, there would probably be a use for a text-only OS that could bring old Goodwill machines back to life. There was an article here just the other day about the TRS m100.
(My next-door neighbor still uses his 286, and wonders why nobody is making software for it anymore...)
FreeDOS is not a shabby alternative. Linux or OpenBSD are not either, but as time goes on, they both accumulate more and more features and use more and more disk space. It's still possible to install both on less than a first-generation Pentium, but it may not be trivial.
I have used Slackware 10 on a 486 laptop with 8 MB of RAM comfortably -- but installing it took a couple of days, some null modem cable magic, and a special boot floppy, not to mention a custom kernel image. If you can live with old software, you can certainly use something from the same age as the hardware. In my case, that would be Slackware 3.4.
The problem with old software is that it may be full of security holes. This is not always true, as many security holes are created by adding features, but I think it is a concern, especially if you decide to put into use dozens of old machines as, say, network terminals. Personally, I don't mind old software at all, because it's usually sleeker and even faster than more feature rich one, and it still gets the job done marvellously.
If it were not for my DVD movies and FLAC collection, I could downgrade to a 486 any day. Sure, it might take longer to compile a program, but I'm not in a hurry.
when I am away from home I tend to ssh into my Debian(used to be kbuntu) box. I use pine for my email, vi or pico for my text editor, and elinks for my browser. I also burn DVDs from the CLI when I am in a hurry. I don't IM from there, as I have not found a MSN cli client. This article gave me a good image viewer, and I decided to try out Midnight Commander too.
"I also burn DVDs from the CLI when I am in a hurry.
Same here, too. Things like
% vobcopy
or
% copycd
are faster to be done than click'n'wait in a GUI. Especially for diagnostics the text mode is very useful, and if you have setup your mail subsystem well, you can do things like
% pciconf -lv | mail -s "blablubb.local's hardware" bigadmin@bigunixbox.foo
or do even strange things like
% cat ${LOGFILES} | grep "<" | grep ">" | grep -v "CTCP" | cut -d '<' -f 2 | cut -d '>' -f 1 | sort | uniq -d | xargs echo > nicklist.txt
where no GUI application is available for.
"This article gave me a good image viewer, and I decided to try out Midnight Commander too."
You'll obey to the mighty Commander, at least at Midnight. :-)
I run text mode every once in awhile usually during the building a new LFS build(and when procrastinating the building of a new X client under LFS). My favorite apps: CenterICQ for IM client and links built with framebuffer support for full graphical webpages outside of X. Or I would just restart into Mandriva.
"Looks like the only thing you can't do without X is take screenshots
"
Take a photo with a camera - no X needed. :-)
It's possible to store the pure text content of a screen with the copy & paste feature the middle mouse button and the virtual terminals provide. But this does not copy colors or attributes. Maybe there's a program to read the terminals screen buffer including them...
Actually I don't use X either in BeOS
http://revolf.free.fr/beos/shots/shot_xemacs_zeta_pretty_gonx.png
(just have the shortcut on the desktop)
In the same vein as what we're talking about, I just found this article about running everyone's favourite Ubuntu without X. Nice lists of apps.
http://doc.gwos.org/index.php/CLIEdit
Life without X is lightening fast. Web content - uhm, good and decent web content - can easily be viewed with lynx or e/links. Writing a letter in nano - nay, I don't particularly need vi or emacs - is a sheer pleasure. Listening to music, burning CD's, do some calculating etc. It's all there - without the baggage excess of X.





