LinuxQuestions.org
Review your favorite Linux distribution.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie
User Name
Password
Linux - Newbie This Linux forum is for members that are new to Linux.
Just starting out and have a question? If it is not in the man pages or the how-to's this is the place!

Notices


Reply
  Search this Thread
Old 03-17-2005, 03:45 AM   #61
Lyko
Member
 
Registered: Mar 2005
Posts: 69

Original Poster
Rep: Reputation: 15

sudo bash ~/My Downloads/jre-1_5_0_01-linux-i586.bin
/home/bobby/My: /home/bobby/My: No such file or directory

That keeps coming up. I am not sure what to do.
 
Old 03-17-2005, 03:48 AM   #62
nadroj
Senior Member
 
Registered: Jan 2005
Location: Canada
Distribution: ubuntu
Posts: 2,539

Rep: Reputation: 59
if you have spaces in arguments (the filename/path is an argument/parameter in this case), you must surround it all by double quotes "
 
Old 03-17-2005, 03:50 AM   #63
Lyko
Member
 
Registered: Mar 2005
Posts: 69

Original Poster
Rep: Reputation: 15
This showed up after the user agreement

Unpacking...
tail: cannot open `/home/bobby/My' for reading: No such file or directory
tail: cannot open `Downloads/jre-1_5_0_01-linux-i586.bin' for reading: No such file or directory
Checksumming...
1
The download file appears to be corrupted. Please refer
to the Troubleshooting section of the Installation
Instructions on the download page for more information.
Please do not attempt to install this archive file.
bobby@cpe-24-174-165-252:~ $
 
Old 03-17-2005, 03:52 AM   #64
nadroj
Senior Member
 
Registered: Jan 2005
Location: Canada
Distribution: ubuntu
Posts: 2,539

Rep: Reputation: 59
what did you type in exactly?
you should have typed
Code:
sudo bash "~/My Downloads/jre-1_5_0_01-linux-i586.bin"
 
Old 03-17-2005, 03:55 AM   #65
Lyko
Member
 
Registered: Mar 2005
Posts: 69

Original Poster
Rep: Reputation: 15
When I typed

Code:
sudo bash "~/My Downloads/jre-1_5_0_01-linux-i586.bin"
I got

~/My Downloads/jre-1_5_0_01-linux-i586.bin: ~/My Downloads/jre-1_5_0_01-linux-i586.bin: No such file or directory

When I typed


Code:
sudo bash ~/"My Downloads/jre-1_5_0_01-linux-i586.bin"
I got the user agreement that went bad.
 
Old 03-17-2005, 04:01 AM   #66
nadroj
Senior Member
 
Registered: Jan 2005
Location: Canada
Distribution: ubuntu
Posts: 2,539

Rep: Reputation: 59
i dont want to think and going to bed in min... rename your My Downloads folder to MyDownloads (remove the space). and try the command again, so the path will have no spaces, and you dont need the dbl quotes
 
Old 03-17-2005, 10:45 AM   #67
Padma
Member
 
Registered: Aug 2003
Location: Omaha, NE, USA
Distribution: PCLinuxOS 2007
Posts: 808

Rep: Reputation: 30
Run the command with quotes as in your first example, but replace the "~" with "/home/<yourname>". When you run the command as "sudo", you are telling it to run as root, and I doubt root has the file "/root/My Downloads/jre-1_5_0_01-linux-i586.bin".

Edit: sudo might understand the "~" as being you, but from your error message, it is having trouble resolving it. Specifiying the complete directory path should still take care of it.

Last edited by Padma; 03-17-2005 at 10:48 AM.
 
Old 03-17-2005, 01:15 PM   #68
nadroj
Senior Member
 
Registered: Jan 2005
Location: Canada
Distribution: ubuntu
Posts: 2,539

Rep: Reputation: 59
ya, padma.. i dont think that since using sudo will replace /home/username with /root, ie i dont think it will look in roots home folder rather than the currently logged in users' folder. but ya, specifying the complete path might be good to try. i used sudo and ~ and it worked fine but i didnt have any spaces
 
Old 03-17-2005, 06:52 PM   #69
Lyko
Member
 
Registered: Mar 2005
Posts: 69

Original Poster
Rep: Reputation: 15
Ok, I moved the jre SH file to my desktop, to make things simpler. These are the error messages I got.

Code:
sudo bash "~/Desktop/jre-1_5_0_01-linux-i586.bin"Desktop
~/Desktop/jre-1_5_0_01-linux-i586.binDesktop: ~/Desktop/jre-1_5_0_01-linux-i586.binDesktop: No such file or directory
bobby@cpe-24-174-165-252:/usr/java $ ~/Desktop/jre-1_5_0_01-linux-i586.binDesktop: ~/Desktop/jre-1_5_0_01-linux-i586.binDesktop: No such file or directory
bash: /home/bobby/Desktop/jre-1_5_0_01-linux-i586.binDesktop:: No such file or directory
As well as...

Code:
sudo bash "/home/bobby/Desktop/jre-1_5_0_01-linux-i586.bin
And all that did was change the curstor to a ">"
 
Old 03-17-2005, 08:31 PM   #70
Lyko
Member
 
Registered: Mar 2005
Posts: 69

Original Poster
Rep: Reputation: 15
I did it, I did it, hot damn I did it! It finally is working. It took me 2 days to download a single file, but it is done! Thanks everyone, and especially nadroj, who has spent long nights explaining and helping. This ends this thread, but we made it to page 5, so good work.
 
Old 03-17-2005, 09:41 PM   #71
TxLonghorn
Member
 
Registered: Feb 2004
Location: Austin Texas
Distribution: Mandrake 9.2
Posts: 569

Rep: Reputation: 183Reputation: 183
As Jase said, you have to be root.
Open a terminal (console)
You will see that on your menu.
At the command prompt, enter
su
(root password) - (invisible)
cd /home/bobby/My Downloads
rpm -ivh 3ddesktop-x.y.z.tar.gz
Then follow the package instructions
 
Old 03-17-2005, 09:43 PM   #72
TxLonghorn
Member
 
Registered: Feb 2004
Location: Austin Texas
Distribution: Mandrake 9.2
Posts: 569

Rep: Reputation: 183Reputation: 183
Oops, I appologize for the previous post - I got lost in this long thread
 
Old 03-17-2005, 09:53 PM   #73
nadroj
Senior Member
 
Registered: Jan 2005
Location: Canada
Distribution: ubuntu
Posts: 2,539

Rep: Reputation: 59
so all is well lyko? gj and your welcome. things similar to this should be somewhat more comfortable from herein.
your post before last looked like you type the wrong path to the file so you got the error that the file/directory didnt exist, because it didnt.
note: i think with limewire in order to connect you have to share files.. at least mine wouldnt connect till i was sharing files.
good luck
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
Help on basic C vivekr Programming 12 12-01-2005 08:20 AM
really basic os? gravy Linux - Newbie 7 02-26-2005 10:20 PM
basic Ryan450 Linux - General 5 08-21-2004 12:59 AM
Really Basic ?'s Susan Linux - Newbie 3 10-26-2001 02:51 PM
I'm a BASIC chap, looking for some info on BASIC programming CragStar Programming 2 01-21-2001 10:19 AM


All times are GMT -5. The time now is 01:51 PM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration