Great post Tanjir bro... Very informative and explanatory. Thanks.
--
Abu Ashraf Masnun
Grad Student, BBA,
Khulna University.
http://masnun.com


On Sat, Aug 15, 2009 at 11:01 AM, tanjir <[email protected]> wrote:

> Very good question. We often tell users to run commands, but I guess most
> times users don't really know what they mean.
> So, in the proposed solution, you were asked to run these two commands:
> 1. sudo chmod 755 netbeans-6.7.sh
> sudo: this command is used before other commands. For example, here, "chmod
> 755 something.sh" is a command by itself. But the command runs as current
> user. If you add sudo before this command, it will run as root user. Just
> for fun create a file called foo.txt. And copy like following "sudo cp
> foo.txt bar.txt" (It simply copies foo.txt file to bar.txt). Then type "ls
> -al" (it lists all the files and related information). You will see the
> owner of bar.txt is root. Now you can't remove bar.txt by "rm bar.txt", you
> have to use "sudo rm bar.txt". Once you remove try the same cp command
> without sudo (e.g. cp foo.txt bar.txt) and do "ls -al" and see the owner now
> is you.
> chmod: stands for change mode of the file. Using chmod you can modify the
> file permission. By default in ubuntu, files don't have executable
> permission, so here you ar adding executable permission. To know more about
> chmod, read this article: http://ss64.com/bash/chmod.html
> 2. sudo ./netbeans-6.7.sh
> You can run ./netbeans-6.7.sh as well. Usually that is what you will do
> most of the times. But this case, as you are installing a software, and it
> requires to access some files and directories which are owned by root, you
> are told to add sudo before the command. ./executable.sh is same as running
> any .exe file in DOS. The difference is, you can not only run .sh but also
> few other extensions (.pl, .tcl and so on) with proper headings.
> (one warning for this type of execution: for example you have exec.sh file
> inside foo directory. So you can run a) "./foo/exec.sh" or b) "cd foo" and
> "./exec.sh". Both looks innocent and same; but they are not. In the case a
> your current directory is one level up. So if your .sh file needs any
> resource inside foo directory, it won't be able to find them. The proper
> command will be case b.)
> -----
> tanjir
> visit http://www.tanjir.net
>
>
> --- On Sat, 8/15/09, Sharmin Akter <[email protected]> wrote:
>
> > From: Sharmin Akter <[email protected]>
> > Subject: Re: [Ubuntu-BD] Problem regarding netbeans
> > To: "Ubuntu Bangladesh" <[email protected]>, "Lenin" <
> [email protected]>
> > Received: Saturday, August 15, 2009, 4:02 AM
> > Thanks a lot. But how do you know
> > that I should issue those commands? What does they
> > signifies?
> >
> > On Sat, 15/08/2009 at 2:30pm, "Lenin" <[email protected]>
> > wrote:
> > > On Sat, Aug 15, 2009 at 1:59 PM, saeed ahmed <[email protected]>
> > wrote:
> > >
> > >> hello jui,
> > >>
> > >> download the neatbeans c/c++ IDE from here
> > >>
> > >> http://www.netbeans.org/downloads/start.html?platform=linux
> 〈=en&option=
> > >> cpp&version=6.7.1
> > >>
> > >> it will download a .sh format file. save this file
> > into your home
> > >> directory. then run the following command.
> > >>
> > >> sudo chmod 755 netbeans-6.7.sh
> > >>
> > >> sudo ./netbeans-6.7.sh  et viola!
> > >>
> > >
> > > When I wrote about NetBeans I suggested to go there
> > directly. The repo
> > > contains only 6.1 verion probably. But at netbeans.org
> > you get the latest
> > > and stable one and also more than that of the repo
> > offers you. Follow what
> > > Saeed bro has suggested. Thats all you need.
> > >
> > > Thanks
> > > --
> > > Ubuntu Bangladesh | http://ubuntu-bd.org
> > > [email protected]
> > > https://lists.ubuntu.com/mailman/listinfo/ubuntu-bd
> >
> >
> > -----
> > With best wishes-
> > Sharmin Akter Jui
> >
> > Powered by the 6zap. Sign up at http://www.6zap.com for an account that
> provides
> > advanced e-mail, calendar and contacts capabilities.
> >
> > --
> > Ubuntu Bangladesh | http://ubuntu-bd.org
> > [email protected]
> > https://lists.ubuntu.com/mailman/listinfo/ubuntu-bd
>
>
>      __________________________________________________________________
> Make your browsing faster, safer, and easier with the new Internet
> Explorer® 8. Optimized for Yahoo! Get it Now for Free! at
> http://downloads.yahoo.com/ca/internetexplorer/
>
> --
> Ubuntu Bangladesh | http://ubuntu-bd.org
> [email protected]
> https://lists.ubuntu.com/mailman/listinfo/ubuntu-bd
>
-- 
Ubuntu Bangladesh | http://ubuntu-bd.org
[email protected]
https://lists.ubuntu.com/mailman/listinfo/ubuntu-bd

Reply via email to