LinuxQuestions.org
Help answer threads with 0 replies.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie
User Name
Password
Linux - Newbie This Linux forum is for members that are new to Linux.
Just starting out and have a question? If it is not in the man pages or the how-to's this is the place!

Notices

Reply
 
Search this Thread
Old 02-23-2007, 04:22 PM   #1
jogl_z_8
Member
 
Registered: Oct 2005
Location: SW Ontario Canada
Distribution: Debian
Posts: 98

Rep: Reputation: Disabled
How To Run Browser From Command Line


I've just installed Sid successfully (a major accomplishment for me) with Gnome running.

How can I run a browser, Iceweasel or Epiphany, from a console command line (eg: tty2). Sorry, I'm an old QNX guy and we called them consoles.

I would like to get to the point of running all aps from command lines and doing away with the fancy desktops.

Thanks,
JP.
 
Old 02-23-2007, 04:32 PM   #2
Mega Man X
Guru
 
Registered: Apr 2003
Location: ~
Distribution: Ubuntu, FreeBSD, Solaris, DSL
Posts: 5,339

Rep: Reputation: 63
Do you mean running totally on the console, for example, without running the X-server at all or using a Desktop Environment? I don't think that is possible... at least not with Epiphany or Iceweasel.

There are, however, some command line only browsers, such as links and lynx, but I personally don't find them very useful, but that is not for me to judge:

http://lynx.browser.org/

http://packages.debian.org/unstable/net/links2

Links2 can actually run some graphics if you use the "-g" flag.

Just another tip. If you want to use a less fancy desktop, take a look into alternatives such as flux/black/openbox. They are really that great and if your Linux PC is the one you have on your signature, those light weight window managers will save you a lot of useful memory which could be used for something much more important than Gnome services...

Regards!

Last edited by Mega Man X; 03-19-2007 at 02:02 PM.
 
Old 02-23-2007, 04:35 PM   #3
pljvaldez
Guru
 
Registered: Dec 2005
Location: Somewhere on the String
Distribution: Debian Squeeze (x86)
Posts: 6,092

Rep: Reputation: 269Reputation: 269Reputation: 269
If you just want a window manager, try something like fluxbox, icewm, windowmaker, etc. In linux, you have to run the X server or you can't have any gui apps. You can keep a terminal open though and run all your commands from it.
 
Old 02-23-2007, 05:40 PM   #4
jogl_z_8
Member
 
Registered: Oct 2005
Location: SW Ontario Canada
Distribution: Debian
Posts: 98

Original Poster
Rep: Reputation: Disabled
I just want the x server but not the big hungry desktop (well, I'm hoping that it is the gnome desktop that eats up the resources).

I was thinking that I could write a little shell that said something like:

X this or that
iceweasel or opera or firefox

and bingo, away she goes.

JP.
 
Old 02-23-2007, 06:33 PM   #5
pljvaldez
Guru
 
Registered: Dec 2005
Location: Somewhere on the String
Distribution: Debian Squeeze (x86)
Posts: 6,092

Rep: Reputation: 269Reputation: 269Reputation: 269
Gnome definitely is hungry. You can try twm or fvwm.

aptitude install twm

There should be a way to make it open your favorite terminal program (aterm, xterm, eterm, etc) automagically when you startup...

After you do that, you may want permanently stop gdm (the graphical login manager) since that'll also eat resources. I typically use sysv-rc-conf (you'll have to install it) to enable or disable services for different runlevels. It's a command line ui that uses the arrow keys and space bar to set[*] for each service.
 
Old 02-23-2007, 06:51 PM   #6
pljvaldez
Guru
 
Registered: Dec 2005
Location: Somewhere on the String
Distribution: Debian Squeeze (x86)
Posts: 6,092

Rep: Reputation: 269Reputation: 269Reputation: 269
I found a way to start applications from the command line -- xinit. I did manage to start iceweasel with xinit iceweasel, but terminals (xterm, eterm, etc) seemed to fail to load. And of course, you can't move the windows around since you're not running a window manager.

I just found that xinit by itself from a command line will just open an xterm. Again, you can't move windows around so you can only really open one program at a time...

Last edited by pljvaldez; 02-23-2007 at 06:54 PM.
 
Old 02-23-2007, 07:24 PM   #7
jogl_z_8
Member
 
Registered: Oct 2005
Location: SW Ontario Canada
Distribution: Debian
Posts: 98

Original Poster
Rep: Reputation: Disabled
I'll try iceWM just for fun.

I did:

aptitude install icewm

and all seemed to go well. Now how do I run icewm instead of gnome?

Thanks,
JP.
 
Old 02-23-2007, 07:25 PM   #8
pljvaldez
Guru
 
Registered: Dec 2005
Location: Somewhere on the String
Distribution: Debian Squeeze (x86)
Posts: 6,092

Rep: Reputation: 269Reputation: 269Reputation: 269
Usually you just log out and then change the "Session" on the login screen.

EDIT: http://www.icewm.org/FAQ/IceWM-FAQ-3.html#ss3.3

Last edited by pljvaldez; 02-23-2007 at 07:26 PM.
 
Old 02-23-2007, 07:29 PM   #9
jogl_z_8
Member
 
Registered: Oct 2005
Location: SW Ontario Canada
Distribution: Debian
Posts: 98

Original Poster
Rep: Reputation: Disabled
That's too easy,

Thanks,
JP.
 
Old 02-23-2007, 07:33 PM   #10
pljvaldez
Guru
 
Registered: Dec 2005
Location: Somewhere on the String
Distribution: Debian Squeeze (x86)
Posts: 6,092

Rep: Reputation: 269Reputation: 269Reputation: 269
If you want to save even more RAM, shut down gdm/kdm/xdm (whatever graphical login was there) and use startx after you login to the console. You'll have to edit some files in your home directory to get icewm started, but it shouldn't be too bad.

http://www.icewm.org/FAQ/IceWM-FAQ-3.html#ss3.3
 
Old 02-23-2007, 11:03 PM   #11
SciYro
Senior Member
 
Registered: Oct 2003
Location: hopefully not here
Distribution: Gentoo
Posts: 2,038

Rep: Reputation: 51
Why does everyone assume that X is the only display device? Its not, X is crappy and should be done away with, that said, there are no real alternatives. The best course of action (as already stated) is to just not use desktop environments, and instead install whatever software you want to create a desktop.

As for graphical displays, has no one ever heard of the framebuffer? Linux has support for it, and there are graphical programs written to make use of it, such as mplayer, and some image viewer i cant remember the name of. Dirctfb even provides a desktop of sorts. Sure, there arnt a army of framebuffer programs, but its still a plausible display device, and probably the best contender to X on the desktop.

edit: and yes, there are framebuffer web browsers, i think lynx or links support it. Anyones, at least of those "text mode" web browsers supports the framebuffer, and yes, even mouse support with gdm (is that its name?)

Last edited by SciYro; 02-23-2007 at 11:05 PM.
 
Old 02-24-2007, 06:46 PM   #12
dasy2k1
Member
 
Registered: Oct 2005
Location: 127.0.0.1
Distribution: Ubuntu 12.04 X86_64
Posts: 956

Rep: Reputation: 34
if you want a lightweight but fully fetured graphical enviroment i recomend XFCE
i ahev used it a lot on machines of all specs and like the ease of use and the speed on low end machines.
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
need to control a browser from the command line nephish Linux - Software 6 11-21-2005 05:55 PM
command line web browser chingyenccy Linux - Newbie 4 05-06-2005 07:41 AM
PERL script OK at command line, not in browser alvo Programming 4 12-19-2004 08:28 AM
Command line version of Hardware Browser? weshutchins Linux - Hardware 2 09-22-2004 03:24 PM
Command-Line Browser JoshSmith41 Linux - Software 6 01-08-2004 12:42 PM


All times are GMT -5. The time now is 07:55 AM.

Main Menu
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
identi.ca: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration