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-19 07:29

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

Originally Posted by 9000 (Post 756452)
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.


Okay,,, sorry for the confusion. I think i understand now,,, i'll let you know when i succeeded already, thanks :D

I've already reverted the /etc/profile, sorry my apology.

9000 2010-07-19 07:43

Re: N900:How to connect internet using proxy
 
My apology indeed, it's so much we can do over the air.

Actually I just found out in other thread here that people has discussed this before and come up with the same solution. I'm not sure if you should pursue in this direction. Your choice. ^^

edcarsky 2010-07-19 09:06

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

Originally Posted by 9000 (Post 756470)
My apology indeed, it's so much we can do over the air.

Actually I just found out in other thread here that people has discussed this before and come up with the same solution. I'm not sure if you should pursue in this direction. Your choice. ^^

Ok, i have now little problem.

I dont have leafpad and cannot now install apps through Apps Manager, message error:

http://repository.maemo.org........... (as in all repo catalogs)
could not resolve 'xxx.xx.x.xx'

please advise another option how to remove or re solve my exported proxy. so in that way i can use apps manager.

i read some thread, i think unset http_proxy or something,,, please give me right command syntax, maybe this would be help.

NOTE: Browser still working

9000 2010-07-19 09:35

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

Originally Posted by edcarsky (Post 756534)
Ok, i have now little problem.

I dont have leafpad and cannot now install apps through Apps Manager, message error:

http://repository.maemo.org........... (as in all repo catalogs)
could not resolve 'xxx.xx.x.xx'

please advise another option how to remove or re solve my exported proxy. so in that way i can use apps manager.

i read some thread, i think unset http_proxy or something,,, please give me right command syntax, maybe this would be help.

NOTE: Browser still working

Try this:

Code:

root
cat /etc/profile | grep -i -v http_proxy > profile.tmp
cat profile.tmp

The last line display the content of the profile.tmp you've just created in the second line.

If you think it sounds alright (no more http_proxy, and the rest looks good), then you can copy it back to /etc/profile:

Code:

cp profile.tmp /etc/profile
Actually you don't need to reboot. I've tested any change to /etc/profile takes effect immediately.

Hope this help.

edcarsky 2010-07-19 09:44

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

Originally Posted by 9000 (Post 756559)
Try this:

Code:

root
cat /etc/profile | grep -i -v http_proxy > profile.tmp
cat profile.tmp

The last line display the content of the profile.tmp you've just created in the second line.

If you think it sounds alright (no more http_proxy, and the rest looks good), then you can copy it back to /etc/profile:

Code:

cp profile.tmp /etc/profile
Actually you don't need to reboot. I've tested any change to /etc/profile takes effect immediately.

Hope this help.

Thank you, i'ts now back to normal, i can now use Apps Manager.

mathina 2010-07-19 09:50

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

Originally Posted by 9000 (Post 749136)
I must say beforehand that I have no working proxy to test the following myself, but normally the systemwise http proxy work this way. So please tell me the result.

In /etc/profile add the following:

Code:

http_proxy="http://username:password@addressofproxy"
I dont know if you need to restart.

i would suggest you to use The onion router (TOR)

9000 2010-07-19 10:00

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

Originally Posted by mathina (Post 756573)
i would suggest you to use The onion router (TOR)

Good idea...with some setup it might be able work to fit his purpose. Please give him some pointers.

9000 2010-07-19 15:31

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

Originally Posted by edcarsky (Post 756570)
Thank you, i'ts now back to normal, i can now use Apps Manager.

This shows that the http_proxy took effect but the format is incorrect. However, before you pursue in this direction any further you really need to get familiar with at least one text editor.

edcarsky 2010-07-20 09:59

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

i think its working already,,, Mauku and some apps are still not working especially VoIP (i really need to use IM's through my device),,, any option in mind???

9000 2010-07-20 10:35

Re: N900:How to connect internet using proxy
 
From what you described I dont see it ever working at all. I must have missed something.


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

vBulletin® Version 3.8.8