Showing posts with label Linux. Show all posts
Showing posts with label Linux. Show all posts

Sunday, November 21, 2010

Solution for sudo: port: command not found

0 comments
I knew that there are many out there who encounter the same problem as me. I've seen galore of post in the forum but most of them are left with no answer. Sometimes the answer is too complicated to understand. So here is one simple solution for you who is searching for one.. I don't know whether it will works for you or not but at least it works for me.

I got this problem when i first install macports in my macbook. I'm using OS X10.6.3 (Snow leopard) After the installation, I tried to run this command:
   sudo port -v selfupdate

but I got this output:
   sudo: port: command not found

My macbook doesn't recognize any of my sudo command. I did some research on the internet and found a solution that works for me.

Add these 3 lines to your .bash_profile. If you don't have that file, you should have .profile file. To open the file, you should run this line on your terminal.
open .profile
Then add these lines to the file and save it.
export PATH=$PATH:/opt/local/bin
export MANPATH=$MANPATH:/opt/local/share/man
export INFOPATH=$INFOPATH:/opt/local/share/info

After that r-esource the file and you're done.
source .profile

Happy trying!!!








Thursday, April 23, 2009

Ubuntu + Umobile

2 comments
While I was searching for solution to get my Umobile broadband connected to the internet using Ubuntu OS last 2 days, I can see that a lot of people were also in my shoes. So I decided to explain in details how I get to overcome this problem sucessfully.

First of all, I'm using Ubuntu 8.10 but I think this should work for whatever version of ubuntu. Bare in mind, this solution is only for model E220 HSDPA modem.

1. Applications -----> Accessories -----> Terminal
sudo gedit /etc/wvdial.conf
Press ENTER & input your password if neccessary

2. gedit application will pop out end edit it with this
[Dialer Defaults]
Phone = *99***1#
Stupid Mode = 1
Modem = /dev/ttyUSB0
Username = user
Password = pass
ISDN = 0
New PPPD = yes
Baud = 1843200
Init2 = ATZ
Init3 = ATQ0 V1 E1 S0=0 &C1 &D2 +FCLASS=0
Modem Type = Analog Modem


Save & Close..

3. Restart

4. Applications -----> Accessories -----> Terminal

sudo wvdial


Press Enter

----------------------------------------------------------------------

If u're getting this for ur last few lines, meaning that u are connected

--> Carrier detected. Starting PPP immediately.
--> Starting pppd at Fri Apr 24 09:37:23 2009
--> Pid of pppd: 7864
--> Using interface ppp0
--> local IP address 10.21.3.71
--> remote IP address 10.64.64.64
--> primary DNS address 123.136.100.2
--> secondary DNS address 123.136.100.3
5. Final step.. Open your firefox..

Press File option and uncheck 'work offline' checkbox. You can now start surfing
-------------------------------------------------------------------------

If you're getting this error message

--> Cannot open /dev/ttyUSB0: No such file or directory
--> Cannot open /dev/ttyUSB0: No such file or directory
--> Cannot open /dev/ttyUSB0: No such file or directory

Plug off your modem and plug in back.. wait for 10 seconds and start redialing again. Everything should works fine..

Tuesday, April 21, 2009

Ubuntu

2 comments
At last.. After days of trying, I manage to get my connection to Umobile using Ubuntu 8.10.. Actually, for Ubuntu version 8.04 and above, they have this network manager thingy where u can automatically get connected to the internet but the problem is , the options given didn't include connection for umobile. I tried to edit the data for celcom and maxis option to Umobile but still can't connect..

Then I tried to use shell scripting provided by this blog..Although the instruction given is for celcom but at least the modem model was the same. Tried a few times but still the same but on my nth times trying, suddenly I got connected. The only problem now is the connection is quite slow.. Anyone has any idea on this?

p/s : 2nd day of no electricity and still surviving..
 

Journey 2 Millions Copyright © 2008 Black Brown Pop Template by Ipiet's Blogger Template