LinuxQuestions.org
Download your favorite Linux distribution at LQ ISO.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Slackware
User Name
Password
Slackware This Forum is for the discussion of Slackware Linux.

Notices


Reply
  Search this Thread
Old 01-13-2007, 07:58 PM   #1
ezor
Member
 
Registered: Mar 2006
Location: Toytown, NY
Distribution: Suse10.2 FreeBSD6.2
Posts: 83

Rep: Reputation: 15
Run X without a windowmanager?


I did a small Slack 11.0 install on an old Dell that I want to use just for internet surfing. It's networked to my other Linux box with broadband connection to the net.

I don't want to use a window manager, just run firefox (and maybe a couple other programs) from the command line. When finished with the program, quit and be back in Bash. In xwmconfig, a window manager must be selected, so I chose fluxbox. Accordingly, the last line of xinitrc reads "exec /usr/X11R6/bin/startfluxbox" I commented this line out, hoping that no window manager would be started, just X, but fluxbox comes up anyway.

It seems that what I'm trying to do should be possible, but how?
 
Old 01-13-2007, 08:08 PM   #2
Simon Bridge
LQ Guru
 
Registered: Oct 2003
Location: Waiheke NZ
Distribution: Ubuntu
Posts: 9,211

Rep: Reputation: 198Reputation: 198
Um... firefox requires a windows manager to work. What: you think it can draw those windows by itself? (Technically one could create a graphical browser that does... good luck finding one.)

You can run a text-only browser (like lynx) without X... but anything that expects to open a window will need a windows manager. Just go for the most minimal you can find.
 
Old 01-13-2007, 10:02 PM   #3
Lufbery
Senior Member
 
Registered: Aug 2006
Location: Harrisburg, PA
Distribution: Slackware 64 14.2
Posts: 1,180
Blog Entries: 29

Rep: Reputation: 135Reputation: 135
Try just typing "xinit" (without the quotes).

You'll get just an xterm window and nothing else. This is bare-bones X-windows. You'll still have to configure X (xorgconfig, I think), but you'll be able to run programs like Firefox. I Think, however, you'll only be able to run one program at a time.

Regards,

-Drew
 
Old 01-13-2007, 10:42 PM   #4
Wynd
Member
 
Registered: Jul 2001
Distribution: Slackware 12
Posts: 511

Rep: Reputation: 32
Or try:

startx `which firefox`
 
Old 01-13-2007, 10:51 PM   #5
Prostetnic_Jeltz
Member
 
Registered: Feb 2006
Posts: 66

Rep: Reputation: 16
you don't need a wm - just copy the system .xinitrc to ~/, then comment out the wm line. or, you can copy it to another name, and tell startx to use that: "startx </path/to/filename>"

you can start whatever programs you want by listing them in the .xinitrc, but you won't be able to manipulate their size or position after starting, and popups and dialogs won't have borders. for standard programs like xterm, you can use the -geometry flag to set size/position, but I'm not sure how to set the initial size of firefox (maybe in about:config ? - it must be saved somewhere on exit, as it carries between restarts, but I couldn't find it). but firefox will work that way - I just tried it.

you can run an xterm as the last line of the .xinitrc, without an "&" after the command - exiting from that will kill X. I use the borderless xterm to launch games like ET, to avoid running an unnecessary wm - not that flux uses that many resources, but every bit helps when running old hardware

EDIT: I just tried the great idea Wynd suggested - that's an even better solution. thanks!

Last edited by Prostetnic_Jeltz; 01-13-2007 at 10:57 PM.
 
Old 01-13-2007, 11:00 PM   #6
ezor
Member
 
Registered: Mar 2006
Location: Toytown, NY
Distribution: Suse10.2 FreeBSD6.2
Posts: 83

Original Poster
Rep: Reputation: 15
Quote:
Originally Posted by Lufbery
Try just typing "xinit" (without the quotes).

You'll get just an xterm window and nothing else. This is bare-bones X-windows. You'll still have to configure X (xorgconfig, I think), but you'll be able to run programs like Firefox. I Think, however, you'll only be able to run one program at a time.

Regards,

-Drew
You are correct. After posting my question I did type "xinit" and got the bare x with xterm from which I did run firefox without a window manager.

Actually, last week I saw a post, somewhere, from a person who made a dedicated internet surfer out of an old computer. Turn it on and firefox is up and running automatically. Unfortunately, I lost the post, but I'll figure it out.

Thanks.
 
  


Reply



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
WindowManager isra Mandriva 2 03-06-2006 01:05 AM
LFS and Windowmanager Cirdan Linux From Scratch 10 12-08-2005 03:13 AM
WindowManager Help aggrosk8rdude VectorLinux 8 07-04-2005 05:21 AM
Windowmanager. Trygve Programming 4 03-31-2004 05:19 PM
Kde - Windowmanager!! Help please!!! borrocop Linux - General 7 01-31-2003 04:16 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Slackware

All times are GMT -5. The time now is 10:29 PM.

Main Menu
Advertisement
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
Open Source Consulting | Domain Registration