I'm having aprob;em wth a mkdir command in the terminal
Linux - NewbieThis 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
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
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
Distribution: slackware 12.0, Vector Linux STD 6.0 and 5.8, ZenWalk 4.6.1, OpenBSD 3.9
Posts: 387
Rep:
Quote:
Originally Posted by demonbladenet
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
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!!
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.
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?
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.
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
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.
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?
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.
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
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/
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
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.