LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Newbie (https://www.linuxquestions.org/questions/linux-newbie-8/)
-   -   How can I use the browser on dedicated server (https://www.linuxquestions.org/questions/linux-newbie-8/how-can-i-use-the-browser-on-dedicated-server-676260/)

Raakh 10-14-2008 09:18 AM

How can I use the browser on dedicated server
 
I have a dedicated server and RHE installed. I want to browse website on my dedicated server whilst accessing it remotely.
Is that possible?

Thanks & kind regards

Vasto 10-14-2008 11:54 AM

Quote:

Originally Posted by Raakh (Post 3309743)
I have a dedicated server and RHE installed. I want to browse website on my dedicated server whilst accessing it remotely.
Is that possible?

Thanks & kind regards

You should be able to do this using ssh.

From the terminal, connect using the following command replacing user with your username and dedicatedserver.com with the address of your server.
Code:

ssh -X -c blowfish user@dedicatedserver.com
Then you should be able to launch firefox with:
Code:

firefox &
The ampersand at the end allows you to continue using the terminal while firefox is launched. It is unnecessary if you don't plan to do this.

You could also browse the web non-graphically using links or lynx.

Also, it would probably be more ideal for you to setup a proxy on your server if the reason you want to run the browser on the server is privacy.

Raakh 10-18-2008 06:29 AM

Sorry for the delayed reply

[root@server ~]# firefox &
[1] 6696
[root@server ~]#

[root@server ~]# ssh -X -c blowfish zafar@207.62.77.34
zafar@207.62.77.34's password:
Last login: Sat Oct 18 05:49:51 2008 from server.mydomain.com
-bash-3.00$ firefox &
[1] 10299
-bash-3.00$


-bash-3.00$ firefox &
[2] 10597
[1] Exit 1 firefox
-bash-3.00$

Raakh 10-19-2008 02:28 AM

Any help will be highly appreciated

Thanks again

Vasto 10-19-2008 11:13 PM

I'm a bit confused as to what the problem is. What happens when you do this:

Code:

ssh -X -c blowfish zafar@207.62.77.34
zafar@207.62.77.34's password:
-bash-3.00$ firefox &
[1] 10299
-bash-3.00$

Firefox should show up with a window on your desktop. Perhaps trying it without the "&" to see if any errors show up in the terminal.

billymayday 10-19-2008 11:31 PM

If you don't have X installed, just ssh in and use elinks (or similar). elinks is a command line browser.

Raakh 10-20-2008 11:11 AM

Quote:

Originally Posted by Vasto (Post 3316097)
I'm a bit confused as to what the problem is. What happens when you do this:

Code:

ssh -X -c blowfish zafar@207.62.77.34
zafar@207.62.77.34's password:
-bash-3.00$ firefox &
[1] 10299
-bash-3.00$

Firefox should show up with a window on your desktop. Perhaps trying it without the "&" to see if any errors show up in the terminal.

-bash-3.00$ firefox
-bash-3.00$

nothing happened

Thanks again

john test 10-20-2008 11:53 AM

Might try ssh into the server and at the command prompt:
Code:

$ firefox localhost/yourwebsitename

Raakh 10-20-2008 12:06 PM

Quote:

Originally Posted by john test (Post 3316647)
Might try ssh into the server and at the command prompt:
Code:

$ firefox localhost/yourwebsitename

-bash-3.00$ firefox localhost/www.yahoo.com
-bash-3.00$ firefox www.yahoo.com
-bash-3.00$ firefox & www.yahoo.com
[1] 11142
-bash: www.yahoo.com: command not found
-bash-3.00$

thanks again

Vasto 10-20-2008 03:51 PM

Perhaps your sshd isn't set up for it.

Set it up according to this link and that may solve the issue.

http://www.cyberciti.biz/tips/runnin...h-session.html

Raakh 10-23-2008 08:10 AM

Quote:

Originally Posted by Vasto (Post 3316885)
Perhaps your sshd isn't set up for it.

Set it up according to this link and that may solve the issue.

http://www.cyberciti.biz/tips/runnin...h-session.html

Thanks for your reply

I set it to yes and restarted but same position

Code:

[root@server ~]# /etc/init.d/sshd restart
Stopping sshd:                                            [  OK  ]
Starting sshd:                                            [  OK  ]
[root@server ~]# ssh -X -c blowfish zafar@myserver.com
zafar@globalsteelweb.com's password:
Last login: Thu Oct 23 06:44:37 2008 from 78.110.110.118
-bash-3.00$ firefox &
[1] 9845
-bash-3.00$ firefox


Vasto 10-23-2008 11:29 PM

Hmmm, I am pretty clueless. I don't know why it isn't working for you. Maybe someone else knows why (and I'm curious as to the answer). *Bump*


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