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 04-10-2009, 06:59 PM   #1
demonbladenet
Member
 
Registered: Dec 2008
Posts: 38

Rep: Reputation: 15
Question I'm having aprob;em wth a mkdir command in the terminal


I seem to be having a real problem with the following command
mkdir ~/.gnome2/rhythmbox/plugins/

I get the following from the terminal

mark@mark-desktop:~$ mkdir ~/.gnome2/rhythmbox/plugins/
mkdir: cannot create directory `/home/mark/.gnome2/rhythmbox/plugins/': No such file or directory
mark@mark-desktop:~$
I need this to install a couple of plugins into rythmbox Any help would be appreciated
I'm using Ubuntu 9 and it has Gnome 2.26 installed
 
Old 04-10-2009, 07:11 PM   #2
ic_torres
Member
 
Registered: Nov 2005
Location: ABAP
Distribution: slackware 12.0, Vector Linux STD 6.0 and 5.8, ZenWalk 4.6.1, OpenBSD 3.9
Posts: 389

Rep: Reputation: 34
Quote:
Originally Posted by demonbladenet View Post
I seem to be having a real problem with the following command
mkdir ~/.gnome2/rhythmbox/plugins/

I get the following from the terminal

mark@mark-desktop:~$ mkdir ~/.gnome2/rhythmbox/plugins/
mkdir: cannot create directory `/home/mark/.gnome2/rhythmbox/plugins/': No such file or directory
mark@mark-desktop:~$
I need this to install a couple of plugins into rythmbox Any help would be appreciated
I'm using Ubuntu 9 and it has Gnome 2.26 installed

try using mkdir -p

mine worked :

mkdir -p ~/.testdir/testdir2/testdir3
 
Old 04-10-2009, 07:18 PM   #3
Robhogg
Member
 
Registered: Sep 2004
Location: Old York, North Yorks.
Distribution: Debian 7 (mainly)
Posts: 653

Rep: Reputation: 88
Does the directory ~/.gnome2/rhythmbox definitely exist? If not, you'd have to create this before creating a directory within it.
 
Old 04-10-2009, 07:25 PM   #4
demonbladenet
Member
 
Registered: Dec 2008
Posts: 38

Original Poster
Rep: Reputation: 15
can you explain Robhogg? i'have Rythmbox installed but I thought the command was creating ~/.gnome2/rhythmboxif not what coomands do need tobe able to run the commands listed in my post? Windows=brainrot!!
 
Old 04-10-2009, 07:31 PM   #5
i92guboj
Gentoo support team
 
Registered: May 2008
Location: Lucena, Córdoba (Spain)
Distribution: Gentoo
Posts: 4,063

Rep: Reputation: 381Reputation: 381Reputation: 381Reputation: 381
Quote:
Originally Posted by demonbladenet View Post
can you explain Robhogg? i'have Rythmbox installed but I thought the command was creating ~/.gnome2/rhythmboxif not what coomands do need tobe able to run the commands listed in my post? Windows=brainrot!!
You are trying to create a directory called "~/.gnome2/rhythmbox/plugins/".

By default mkdir can only create one level. That means that to create a directory called "~/.gnome2/rhythmbox/plugins/" first you need to make sure that "~/.gnome2/rhythmbox/" exist. And to create that one, you first need to make sure that "~/.gnome2/" exists.

So, you either do this:

Code:
mkdir "~/.gnome2/" # this one probably exists already
mkdir "~/.gnome2/rhythmbox/"
mkdir "~/.gnome2/rhythmbox/plugins/"
Or use this:

Code:
mkdir -p "~/.gnome2/rhythmbox/plugins/"
-p instructs mkdir to create multiple levels when necessary.
 
Old 04-10-2009, 07:32 PM   #6
demonbladenet
Member
 
Registered: Dec 2008
Posts: 38

Original Poster
Rep: Reputation: 15
so how do I check to see if the directory ~/.gnome2/rhythmbox exists? And if not what commands should I use to take care of this? And If I have Rythmbox installed and working won't that directory already exist?

See what 10yrs of Windows can do?? BRAINROT
 
Old 04-10-2009, 07:34 PM   #7
demonbladenet
Member
 
Registered: Dec 2008
Posts: 38

Original Poster
Rep: Reputation: 15
checking out that last post that i recieved
 
Old 04-10-2009, 07:35 PM   #8
i92guboj
Gentoo support team
 
Registered: May 2008
Location: Lucena, Córdoba (Spain)
Distribution: Gentoo
Posts: 4,063

Rep: Reputation: 381Reputation: 381Reputation: 381Reputation: 381
Quote:
Originally Posted by demonbladenet View Post
so how do I check to see if the directory ~/.gnome2/rhythmbox exists?
This will tell you.

Code:
ls -d ~/.gnome2/rhythmbox/
Quote:
And If I have Rythmbox installed and working won't that directory already exist?
Not necessarily. As for the installation, it won't touch anything inside your home directory. When you install programs in linux they don't touch anything inside your user account. Only in the system directories.

When you first start a program the needed config files are usually created. But sometimes there's nothing to be saved unless you actually modify the default config. I have no idea how rythmbox works, so I can't speak about that.
 
Old 04-10-2009, 08:03 PM   #9
demonbladenet
Member
 
Registered: Dec 2008
Posts: 38

Original Poster
Rep: Reputation: 15
thanks!

Thanks now on to the next question can you decompress a file into the directory ?
The direction looks like this:

1. Download
* audiodynamic-0.2.tar.gz The latest version. Includes some fixes made by Denis Malinovsky.
* audiodynamic-0.1.tar.gz
2. Create local plugin directory: mkdir ~/.gnome2/rhythmbox/plugins/
3. Decompress archive: tar -xzvf audiodynamic.tar.gz -C ~/.gnome2/rhythmbox/plugins/
4. Restart Rhythmbox

I already have the audiodynamics down loaded on to my desktop but not yet decompressed
 
Old 04-10-2009, 08:05 PM   #10
i92guboj
Gentoo support team
 
Registered: May 2008
Location: Lucena, Córdoba (Spain)
Distribution: Gentoo
Posts: 4,063

Rep: Reputation: 381Reputation: 381Reputation: 381Reputation: 381
That should be it. However it all depends on what's inside the package. You can use -t instead of -x to simulate the extraction without actually extracting anything.

Code:
tar -tzvf audiodynamic.tar.gz
 
Old 04-10-2009, 08:10 PM   #11
demonbladenet
Member
 
Registered: Dec 2008
Posts: 38

Original Poster
Rep: Reputation: 15
I'm still not real clear....I need to open that directory ("~/.gnome2/rhythmbox/plugins/") right? and the use the command above? If so what command opens said directory?
 
Old 04-10-2009, 08:31 PM   #12
i92guboj
Gentoo support team
 
Registered: May 2008
Location: Lucena, Córdoba (Spain)
Distribution: Gentoo
Posts: 4,063

Rep: Reputation: 381Reputation: 381Reputation: 381Reputation: 381
In command line, you use "cd" to change the current directory. However, if you use this command you said above:

Code:
tar -xzvf audiodynamic.tar.gz -C ~/.gnome2/rhythmbox/plugins/
You don't need to enter in that directory. Tar will uncompress everything there for you.

On a graphical browser you can just natigate into that directory. However, since ~/.gnome2 has a leading dot on its name, it will be hidden by default. Your graphical browser should have an option to show hidden files somewhere.
 
Old 04-10-2009, 08:35 PM   #13
demonbladenet
Member
 
Registered: Dec 2008
Posts: 38

Original Poster
Rep: Reputation: 15
Tried It...Got this


tar: audiodynamic.tar.gz: Cannot open: No such file or directory
tar: Error is not recoverable: exiting now
tar: Child returned status 2
tar: Error exit delayed from previous errors
 
Old 04-10-2009, 08:40 PM   #14
i92guboj
Gentoo support team
 
Registered: May 2008
Location: Lucena, Córdoba (Spain)
Distribution: Gentoo
Posts: 4,063

Rep: Reputation: 381Reputation: 381Reputation: 381Reputation: 381
Quote:
Originally Posted by demonbladenet View Post
Tried It...Got this


tar: audiodynamic.tar.gz: Cannot open: No such file or directory
tar: Error is not recoverable: exiting now
tar: Child returned status 2
tar: Error exit delayed from previous errors
That means that audiodynamic.tar.gz is not on the current directory. You first need to locate it. Once you have located it then you can proceed. For example, if it's on the directory ~/Desktop, then you can do this:

Code:
tar -xzvf ~/Desktop/audiodynamic.tar.gz -C ~/.gnome2/rhythmbox/plugins/
Or:

Code:
cd ~/Desktop
tar -xzvf audiodynamic.tar.gz -C ~/.gnome2/rhythmbox/plugins/
 
Old 04-10-2009, 08:56 PM   #15
demonbladenet
Member
 
Registered: Dec 2008
Posts: 38

Original Poster
Rep: Reputation: 15
Got this:
mark@mark-desktop:~$ cd ~/Desktop
mark@mark-desktop:~/Desktop$ tar -xzvf audiodynamic.tar.gz -C ~/.gnome2/rhythmbox/plugins/
tar: audiodynamic.tar.gz: Cannot open: No such file or directory
tar: Error is not recoverable: exiting now
tar: Child returned status 2
tar: Error exit delayed from previous errors
mark@mark-desktop:~/Desktop$

but the name is a litlle different .. there is a -0.2.tar.gz...I'll see if that helps.....
Nope..Got this

mark@mark-desktop:~$ tar -xzvf audiodynamic-0.2.tar.gz -C ~/.gnome2/rhythmbox/plugins/
tar: audiodynamic-0.2.tar.gz: Cannot open: No such file or directory
tar: Error is not recoverable: exiting now
tar: Child returned status 2
tar: Error exit delayed from previous errors
 
  


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
mkdir & cp in one command? une Linux - Software 1 03-11-2007 10:18 PM
ata6: command timeout errors wth my promise sata card reeseslover531 Linux - Hardware 1 02-02-2007 11:15 AM
About -p Option Of Mkdir Command George2 Linux - Software 4 04-25-2006 07:33 AM
mkdir command digitalgravy Linux - General 5 08-12-2004 02:03 PM
can I use date command with mkdir? ewto Linux - General 6 06-16-2004 09:47 AM


All times are GMT -5. The time now is 04:53 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