maemo.org - Talk

maemo.org - Talk (https://talk.maemo.org/index.php)
-   Nokia N900 (https://talk.maemo.org/forumdisplay.php?f=44)
-   -   N900:How to connect internet using proxy (https://talk.maemo.org/showthread.php?t=38054)

edcarsky 2010-07-18 06:15

Re: N900:How to connect internet using proxy
 
Quote:

Originally Posted by 9000 (Post 755014)
Run the following in xterminal and send me the result to my PM here:

Code:


export | grep -i http_proxy


Still nothing happen. :(

9000 2010-07-18 07:40

Re: N900:How to connect internet using proxy
 
then you have not setup the http_proxy properly.

I said last time if it doesn't work you may want to try reboot. Have you rebooted yet?

cat /etc/profile and take a look yourself to see if http_proxy has been appended to the last.

edcarsky 2010-07-18 10:49

Re: N900:How to connect internet using proxy
 
Quote:

Originally Posted by 9000 (Post 755530)
then you have not setup the http_proxy properly.

I said last time if it doesn't work you may want to try reboot. Have you rebooted yet?

cat /etc/profile and take a look yourself to see if http_proxy has been appended to the last.

Yah i did, and still nothing happen :(

9000 2010-07-18 13:05

Re: N900:How to connect internet using proxy
 
Quote:

Originally Posted by edcarsky (Post 755665)
Yah i did, and still nothing happen :(

Ok, show me the cat result and PM to me.

edcarsky 2010-07-18 13:58

Re: N900:How to connect internet using proxy
 
Quote:

Originally Posted by 9000 (Post 755752)
Ok, show me the cat result and PM to me.

Can't send you PM, maybe you settings required. pls see below infos you need.

home/user # cat /etc/profile
# /etc/profile: system-wide .profile file for the Bourne shell (sh(1))
# and Bourne compatible shells (bash(1), ksh(1), ash(1), ...).

export PATH="/usr/bin:/bin"

umask 022
source /etc/osso-af-init/af-defines.sh
export http_proxy=http://xxx.xx.x.xx:8080/
export http_proxy=http://xxx.xx.x.xx:8080/
/home/user #

9000 2010-07-18 14:51

Re: N900:How to connect internet using proxy
 
Look like your result is quite different from ours. I've entered the line into my own /etc/profile and I got the following:
Code:

export | grep -i http_proxy
export http_proxy="http://127.0.0.1/"

The only different are the quotes. You could try adding back the quotes, however at this point I recommend you not messing with it any further. You need to revert the change now.

1) Install leafpad
2) run the following in xterminal
Code:

sudo leafpad /etc/profile
3) remove the last two lines containing http_proxy
4) click on the top bar to drop down a menu where you could find 'Save'. Save the file
5) Exit the program

edcarsky 2010-07-19 06:21

Re: N900:How to connect internet using proxy
 
Quote:

Originally Posted by 9000 (Post 755822)
Look like your result is quite different from ours. I've entered the line into my own /etc/profile and I got the following:
Code:

export | grep -i http_proxy
export http_proxy="http://127.0.0.1/"

The only different are the quotes. You could try adding back the quotes, however at this point I recommend you not messing with it any further. You need to revert the change now.

1) Install leafpad
2) run the following in xterminal
Code:

sudo leafpad /etc/profile
3) remove the last two lines containing http_proxy
4) click on the top bar to drop down a menu where you could find 'Save'. Save the file
5) Exit the program

in this part, it required password and it's not accepting my entry pass, i don't remember any pass here, sorry (any option how to retrieve my pass here?)

How can i remove this part by right syntax?

9000 2010-07-19 06:33

Re: N900:How to connect internet using proxy
 
Quote:

Originally Posted by edcarsky (Post 756430)
in this part, it required password and it's not accepting my entry pass, i don't remember any pass here, sorry (any option how to retrieve my pass here?)

How can i remove this part by right syntax?

Don't worry, you can just enter root and run leafpad instead:

Code:

root
leafpad /etc/profile


edcarsky 2010-07-19 06:45

Re: N900:How to connect internet using proxy
 
Quote:

Originally Posted by 9000 (Post 756436)
Don't worry, you can just enter root and run leafpad instead:

Code:

root
leafpad /etc/profile


THERE'S 2 THINGS I NEED TO KNOW:

1. Nokia-N900:~# leafpad /etc/profile
-sh: leafpad: not found

2. please give me the right command how to delete/remove exported (http_proxy), i think i have few installed proxies already :(

NOTE: we are dealing here is how to reconfig our proxy IP connection so the 3rd party applications will be able to work into it via proxy setup. :)

9000 2010-07-19 07:09

Re: N900:How to connect internet using proxy
 
Quote:

Originally Posted by edcarsky (Post 756442)
THERE'S 2 THINGS I NEED TO KNOW:

1. Nokia-N900:~# leafpad /etc/profile
-sh: leafpad: not found

2. please give me the right command how to delete/remove exported (http_proxy), i think i have few installed proxies already :(

NOTE: we are dealing here is how to reconfig our proxy IP connection so the 3rd party applications will be able to work into it via proxy setup. :)

You need to install leafpad in app manager first. Look at #36, I explicitly told you to install leafpad first.

leafpad is the right command for you to remove that http_proxy lines in your /etc/profile

Other text editor might be not be too suitable for you.

It's not that http_proxy does not work for you. The problem is your http_proxy does not appear even though you've enter it in your /etc/profile. Therefore, in view of your situation I'd recommend you to revert what you've done rather than pursue any further.

I hope you'd understand.


All times are GMT. The time now is 23:24.

vBulletin® Version 3.8.8