startx and then firefox


 
Thread Tools Search this Thread
Top Forums Shell Programming and Scripting startx and then firefox
# 1  
Old 12-04-2008
startx and then firefox

I have edited /etc/inittab to auto login as root in level 3
and edited .bash_profile to auto start x window

I would like to auto start a firefox browser after go into x window.
I tried to add "firefox" in /etc/rc.d/rc.local but no effects.
Anyone have suggestion?

Thanks in advance.
# 2  
Old 12-16-2008
Solution ...

i have no idea what you did ... but ill tell you what i did and you can take it from there...

*Firsts start the session, mostly like you did
nohup startx -- `which Xvfb` :99 -screen 0 1680x1024x24 & sleep 7

&sleep 7 , is so the session will start and you can still use the same session.

* Start Firefox
DISPLAY=:99 firefox & sleep 7
This will start firefox, you may have to kill the firefox in this session in order to open the other one.

* Confirm it is up and working
DISPLAY=:99 import -window root ~/Desktop/screenshot.png

You may need to install magis.... something to take the screenshot.

So startx, open firefox, and take screenshot ...

havent found the way to navigate in x99 using firefox . Smilie
Login or Register to Ask a Question

Previous Thread | Next Thread

10 More Discussions You Might Find Interesting

1. AIX

Startx xclock on virtual lpar

Hello, Is there a way to run xclock or startx on LPAR, since LPAR doesn't have any console or it is connected to HMC usually the way is to export the display to some PC which has Xmanager running on it, but in my case, I want to run xmanager on the AIX Lpar and run on it the... (2 Replies)
Discussion started by: filosophizer
2 Replies

2. Ubuntu

startx not working for 8.04.4

Hi, I am running Ubuntu 8.04.4 on a Sun Blade 1000 SPARC. I installed both kubuntu and xubuntu in attempt to load a gui onto the machine. Both fail when trying to start them. When I use startx I get the following error: (EE) Failed to laod module... (0 Replies)
Discussion started by: swilso
0 Replies

3. Debian

kde, startx on debian

Hello :-)! I installed Debian (I downloaded it on may 2009 so it is new version) from CD. I run it and see only text console. I try to type "kde" or "startx" but it doens't recognize those commands. That's difficult for me to believe that Linux from CD doesn't contain graphical interface so I... (2 Replies)
Discussion started by: johnyjj2
2 Replies

4. Shell Programming and Scripting

Scripts after startx

I want to autorun a shell script which inculde start two java programs and some shell scripts I using fedora 9 and I had put in Personal > Sessions /bin/sh /myscript.sh but it got a problem when I start firefox from one of the java program, it said "Firefox is already running but not... (3 Replies)
Discussion started by: uativan
3 Replies

5. UNIX Desktop Questions & Answers

KDE and startx

Hello, Ive installed freeBSD 6.0 - and the prompt part of the system works well. Ive then tried to install KDE for graphic interface to the unix system. The problem is: Whenever I run "$ startx" it starts some graphical interface, but its totally swirled, you can sense that in the background... (1 Reply)
Discussion started by: congo
1 Replies

6. UNIX for Advanced & Expert Users

startx / xterm

When I try to run startx or xterm the window opens fine, however when using keyboard incorrect chars are displayed, e.g pressing return displays 2 (0 Replies)
Discussion started by: gefa
0 Replies

7. Debian

error startx with debian

hello i have installed xfree86 with debian 2.4, but i have the message when i launch startx: XIO: fatal IO error 104 (Connection reset by peer) on X server ":0.0" after 0 requests (0 known processed) with 0 events remaining. xauth: (argv):1: bad display name "uxdev1000.lobino.fr:0"... (0 Replies)
Discussion started by: pascalbout
0 Replies

8. UNIX for Dummies Questions & Answers

Help with FreeBSD and startx.

Hello everyone. I just installed FreeBSD recently and when I type the command startx, I get the following errors: (EE) failed to load module "fbdev" (EE) <default pointer> cannot find which device to use (EE) xf860Open erial: No evice specified (EE) <default pointer> cannot open input... (3 Replies)
Discussion started by: cosmotron
3 Replies

9. UNIX for Dummies Questions & Answers

startx, xauth msg and Solaris 8

I just built my first Solaris 8 machine. I start x using this command (assume I'm in the correct directory): ./startx After I run this command, I receive this extremely frustrating message: /startx: XAUTHORITY=//.Xauthority: is not an identifier Can someone tell me what I am doing... (4 Replies)
Discussion started by: rpeteg
4 Replies

10. UNIX for Dummies Questions & Answers

StartX

Hi guys :) I'm having a slight problem. Every time I run the StartX command from my csh, it just says cannot access terminal. Can anyone tell me why this is and what it means? Thank you :) hellz. (15 Replies)
Discussion started by: hellz
15 Replies
Login or Register to Ask a Question