You are not logged in.

#1 2012-05-28 00:14:42

ioos
Member
Registered: 2011-01-25
Posts: 125

Broken X. Posting with Links! Now what?

I don't intend to fix xorg. I was going to do a fresh install soon anyway. I just want to ask some dumb questions about what is possible from here. First of all, does pre-startx have a specific name so that I can search more effectively? tty? console? x-less archlinux?

So far:
The internet is still there, but much less interesting without the cat pictures and videos. Also, most sites are poorly formatted (suprise!) and don't have much color. On the plus side, I can still listen to loud rap music with mpc.

I've installed the gentoo bashrc to get the pretty colors and added some of my own aliases. Next maybe trying to add a clock to the PS1. I've also got several user sessions open that I can switch to with Alt+Fn. Although I haven't found many reasons to do this since I can only see one at a time.

More dumb questions:
What now?
Is it possible to see more than one console at a time? (assuming not)
What about images?  (browser or local)
Or more output lines?
How about opening an RDC client to a win server? (ok, longshot)
Maybe just some tips?
Or telling me what basic function of linux I'm not grasping?
Or what I should have read to avoid posts like this in the future?

If it matters:
I have fairly new and decent hardware with integrated ati graphics. It's for fun smile

Offline

#2 2012-05-28 00:24:04

jasonwryan
Anarchist
From: .nz
Registered: 2009-05-09
Posts: 30,426
Website

Re: Broken X. Posting with Links! Now what?

Installing tmux or screen will allow you to see more than one console, provide scrollback and also copy/paste...


Arch + dwm   •   Mercurial repos  •   Surfraw

Registered Linux User #482438

Offline

#3 2012-05-28 00:35:35

Pres
Member
Registered: 2011-09-12
Posts: 423

Re: Broken X. Posting with Links! Now what?

For images you can use an application such as fbi. w3m is a browser that supports images. You can even watch videos from the console with mplayer or vlc, but I've since forgotten the specific commands for that (vlc worked better in my experience).

Also, you can scroll up and down with Shift + PageUp/PageDown (if you don't already know that). You can also use the ScrollLock key to pause output.

Offline

#4 2012-05-28 00:37:27

Trilby
Inspector Parrot
Registered: 2011-11-29
Posts: 30,571
Website

Re: Broken X. Posting with Links! Now what?

What about images?  (browser or local)
Google "linux framebuffer".  Install fbida from extra.  You can view images, pdfs, etc.
Links2 can be compiled with framebuffer support for a graphical webbrowser without X

Or more output lines?
Change your console font, or get fbterm for a framebuffered terminal emulator

How about opening an RDC client to a win server? (ok, longshot)
Dunno

Maybe just some tips?
Get tmux, get frame buffer apps.  I've even heard that there is some level of a gtk port to framebuffer so many "gui" apps will run without X.  I have not tried this myself.

Or telling me what basic function of linux I'm not grasping?
All of them.  Sorry, but that IS linux IMHO.  X is just one tool.  The only reason I run X at all is because people will inevitably send me docs,docxs,ppts,and crap loads of other stuff they expect me to look at.  Having an running X session is slightly more convenient than worrying about converting all those into console-viewable formats ... though I do so with most of them anyways.

Or what I should have read to avoid posts like this in the future?
Everything ;o)
You might be interested in INX, a linux distro intentionally lacking X with console-only software.

Last edited by Trilby (2012-05-28 00:38:49)


"UNIX is simple and coherent" - Dennis Ritchie; "GNU's Not Unix" - Richard Stallman

Offline

#5 2012-05-28 01:46:56

cfr
Member
From: Cymru
Registered: 2011-11-27
Posts: 7,198

Re: Broken X. Posting with Links! Now what?

I just realised that I am much, much more confused than I realised.

If you don't need a "graphical user interface" (e.g. X) to have graphics, what do you need it for?

Sorry, but that IS linux IMHO.

So what is linux exactly? Not that I thought linux was X. I thought linux was the kernel... and that pretty much _everything_ else was external. (Compared with e.g. at least some BSDs which I believe work differently.)


CLI Paste | How To Ask Questions

Arch Linux | x86_64 | GPT | EFI boot | refind | stub loader | systemd | LVM2 on LUKS
Lenovo x270 | Intel(R) Core(TM) i5-7200U CPU @ 2.50GHz | Intel Wireless 8265/8275 | US keyboard w/ Euro | 512G NVMe INTEL SSDPEKKF512G7L

Offline

#6 2012-05-28 02:00:03

Trilby
Inspector Parrot
Registered: 2011-11-29
Posts: 30,571
Website

Re: Broken X. Posting with Links! Now what?

I said what I need it for: it's just a bit easier to open all the documents people send me.

There is no magic in a GUI, I don't see anything that can be done in a GUI that couldn't be done in the console - which was why it seemed to contrast with the OP's initial position of feeling like nothing could be done without X.


"UNIX is simple and coherent" - Dennis Ritchie; "GNU's Not Unix" - Richard Stallman

Offline

#7 2012-05-28 03:27:34

adamrehard
Member
From: NY, USA
Registered: 2011-11-03
Posts: 154

Re: Broken X. Posting with Links! Now what?

ioos wrote:

More dumb questions:
What now?
Is it possible to see more than one console at a time? (assuming not)
What about images?  (browser or local)
Or more output lines?
How about opening an RDC client to a win server? (ok, longshot)
Maybe just some tips?
Or telling me what basic function of linux I'm not grasping?
Or what I should have read to avoid posts like this in the future?


Just to add my reasons for X:
I have X for two reasons. Chromium and Virtualbox.
I want Chromium, and am forced to use Virtualbox for the unwashed masses.

How about opening an RDC client to a win server? (ok, longshot)
Without X, probably not. I'm not sure, but I'm guessing not.

Or telling me what basic function of linux I'm not grasping?
Linux is a kernel. Nothing more. It's everything else that makes Linux, Linux. (or GNU/Linux)

Or what I should have read to avoid posts like this in the future?
Everything you can. That general enough for you? smile

Last edited by adamrehard (2012-05-28 03:30:20)


"The box said requires Vista or better, so I installed Arch"
Windows != Linux

Offline

#8 2012-05-28 07:51:59

DSpider
Member
From: Romania
Registered: 2009-08-23
Posts: 2,273

Re: Broken X. Posting with Links! Now what?

For a decent browser (Firefox, Chromium, etc) you'll need Xorg. CLI (command-line interface) browsers are ok for relatively bug-free websites with simple layouts like archlinux.org, but don't expect to open anything complex with lots of ads and shit. If you like minimalism and the colour black that much you can use a tiling WM (window manager) like awesome, dwm, xmonad, i3, etc on top of Xorg. They're all very functional WM's. Check out the screenshots: https://bbs.archlinux.org/viewforum.php?id=47

https://wiki.archlinux.org/index.php/Co … w_Managers


PS: Next time try to be more specific with your titles. I thought you wanted to fix it, not avoid it.

Last edited by DSpider (2012-05-28 07:59:32)


"How to Succeed with Linux"

I have made a personal commitment not to reply in topics that start with a lowercase letter. Proper grammar and punctuation is a sign of respect, and if you do not show any, you will NOT receive any help (at least not from me).

Offline

#9 2012-05-28 10:35:20

Trilby
Inspector Parrot
Registered: 2011-11-29
Posts: 30,571
Website

Re: Broken X. Posting with Links! Now what?

Perhaps I'm the one missing something.  I didn't get that the OP wanted to avoid X, only that he wanted to learn to be productive in the console since X is temporarily absent from his system.


"UNIX is simple and coherent" - Dennis Ritchie; "GNU's Not Unix" - Richard Stallman

Offline

#10 2012-05-28 17:51:28

bananagranola
Member
From: US
Registered: 2011-08-07
Posts: 88
Website

Re: Broken X. Posting with Links! Now what?

I think it's not that Xorg is the only "provider" of graphics. It's just the more complicated one, and the one that can actually display the pretty GUIs to which Linux-users generally refer. However, the console has graphics as well, in the most basic sense: it shows colors and letters on a screen, and as mentioned can even show framebuffer pictures and PDFs and such things. (Though that's how I'm thinking of it; someone correct me if I'm wildly off base.)

Oh, and I think Linux IS the kernel, as you said, and Xorg is just another component. But somehow I feel "closer" to the "heart" of Linux (my goodness, it's like a song) in the terminal than in a flashy app. Forget that. Trilby said it better below.

As to "what next," maybe look into some console-based applications. Although I use Xorg for opening documents like Trilby, and for a modern browser like DSpider (even the "lightweight" dwb and its relatives require Xorg), I've slowly grown to love CLI-based applications for most other things. I use ranger (file manager), newsbeuter (rss), mutt (email), moc (music), and a couple others. And there are other cli alternatives to all of those, many of which I like more than apps with GUIs.

Also, if you're not familiar with the basic command-line tools already, perhaps get used to commands like grep, find, ls, cd, rm, mv, etc. Maybe even pick sides in the vim-emacs fight. Similar to you, I broke Xorg on one of my machines awhile back and consciously decided not to fix it. It's forced me to learn to be productive with those tools. I've also noticed that CLI tools tend to become very instinctive over time, where using them becomes almost automatic.

Last edited by bananagranola (2012-05-28 18:05:59)

Offline

#11 2012-05-28 18:00:50

Trilby
Inspector Parrot
Registered: 2011-11-29
Posts: 30,571
Website

Re: Broken X. Posting with Links! Now what?

I expressed my opinion unclearly.  Of course linux is the kernel.  But "linux" is often used interchangably with "GNU/linux" and it was in this sense that I was referring to it.  In the console, one still has access to all the things one would do with the linux kernel with the GNU utilities and a vast array of powerful applications.  The console is no less linux than is a fancy gui interface under X.


"UNIX is simple and coherent" - Dennis Ritchie; "GNU's Not Unix" - Richard Stallman

Offline

#12 2012-05-28 23:57:59

ioos
Member
Registered: 2011-01-25
Posts: 125

Re: Broken X. Posting with Links! Now what?

Hey guys, thanks so much for all of the useful suggestions. I apologize for any confusion caused by the title. I spent most of my Sunday messing with different things after removing xorg and all of it's dependents. (Went from 1200 packages to 300!) tmux has turned my world upside down. I can actually be productive without X now. I need to read some more about framebuffer and directbuffer. I'm not really sure what's the difference. I read in another post that directbuffer can be thought of as X replacement, is that right? Like wayland? And the framebuffer is where I see everything, like GRUB and the console login...and even X?

I'm able to view images now, but I can't get any of the browsers quite right. links -g only works for root, although I think I've added my user to all of the necessary groups. I've read the man page for w3m, but I still find it unintuitive to navigate.  The mouse version from the AUR fails to build. The last is netsurf. I've read that it should work in the frame buffer, but that fails to build as well. I did notice that it pulls in gtk2 though. That must be for the X version? Surely toolkits won't work out side of X?

As far as I could find, those are the only browsers that will load images. The others, elinks, lynx and the rest are text only. Please correct me if I'm wrong.

Even more dumb questions:
Can I replace screen with tmux? The tmux wiki says to start it in bashrc, but won't that still be starting it from within screen? Or maybe I should ask: what starts screen?
How is directbuffer supposed interact with screen or tmux? For example, is it possible to open a links -g window inside of one tmux panel? fbterm isn't working but I'm still not sure what it's for. I suspect that there's an order that I should be using these... Also, why do the multi-directbuffer packages depend on xorg?

This is kind of exciting (for me) to be able to do all of these things without X. I'd kind of like to force myself to use it this way for a while, but I really need to connect to that  windows server in order to finish up some java classes. That being said: INX looks neat! It might just find itself along side arch on my new ssd.

Offline

#13 2012-05-29 00:47:24

Trilby
Inspector Parrot
Registered: 2011-11-29
Posts: 30,571
Website

Re: Broken X. Posting with Links! Now what?

I'll answer the few bits there that I can.  I don't know anything about the differences between framebuffer and directbuffer, I've only (knowingly) used the former.  Your interpretation sounds reasonable.

Tmux and screen are, in a sense, interchangeable.  They are two different programs with similar purposes/goals.  I personally prefer tmux, but only by a narrow margin - there's not a whole lot of difference.

I don't see a purpose in running one from within the other - just pick one.  Either one could be started from .bashrc - I prefer to just launch them from the command line once inside bash, but there isn't much of a reason, just personal preference.  Of course in bashrc, you want to make sure you are not already within a session otherwise you'll get into an ugly cycle of bash->tmux->bash->tmux, etc.

Screen is launched just the same way as tmux: either directly from the command line, or from a bashrc or profile.  If you didn't start screen, it's not running.

It is possible (stress possible, I don't know how often it's done) for "X" toolkits to be used in some framebuffer (perhaps this is directbuffer).  So it is possible that some apps install the toolkit to use that way.  However, I suspect in most cases packages just come with X11-gui and framebuffer options together - so unless you recompile it yourself, it'll drag in the toolkit dependencies.


"UNIX is simple and coherent" - Dennis Ritchie; "GNU's Not Unix" - Richard Stallman

Offline

#14 2012-05-29 01:06:55

cfr
Member
From: Cymru
Registered: 2011-11-27
Posts: 7,198

Re: Broken X. Posting with Links! Now what?

@Trilby

Thanks very much for clarifying your earlier comments.

@ioos

I like screen a lot although I have stopped using it since I switched to linux. That said, I've not used tmux. Just screen is definitely very nice and it does become second nature. (And I only every used a tiny, tiny fraction of what I know it can do.)

I always liked alpine but I have also stopped using that since switching to linux. I still prefer it to thunderbird (which is what I'm using now), though. Just I can't get it to work as smoothly under linux as I could before switching.

Thinking about this has made me realise that I use CLI applications *less* since I switched to linux. Odd... Linux is the first OS on which I've used a GUI email client... (And I really wish I could get alpine to work well and return to it! I really don't like GUI for email still.)


CLI Paste | How To Ask Questions

Arch Linux | x86_64 | GPT | EFI boot | refind | stub loader | systemd | LVM2 on LUKS
Lenovo x270 | Intel(R) Core(TM) i5-7200U CPU @ 2.50GHz | Intel Wireless 8265/8275 | US keyboard w/ Euro | 512G NVMe INTEL SSDPEKKF512G7L

Offline

Board footer

Powered by FluxBB