LinuxQuestions.org
Download your favorite Linux distribution at LQ ISO.
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 09-19-2009, 08:31 AM   #1
r00ster
Member
 
Registered: May 2007
Location: boundary beach, bc
Distribution: 3.2.0-4-686-pae #1 SMP Debian 3.2.60-1+deb7u3 i686 GNU/Linux
Posts: 224

Rep: Reputation: 15
Unzipping downloaded .zip file to root folder.


This is a real DAQ, but... I created a folder in "~/.local/share", to whit “vlc/skins2”. The idea was, to unzip a file now on my Desktop “vlc-skins2.zip” to that folder via:
Code:
unzip /home/pilgrim/desktop/vlc-skins.zip  ~/.local/share/vlc/skins2.
It doesn't work. When I do a “ls -a” on "~/.local/share" I see the folder as "vlc%2fskins2" ... with an altered delimiter. The tree view of the folder reads, “vlc/skins2”. I've not come across this phenom before and I'd like to find out what it means. Do I have to change the name of the destination folder to “vlc%2fskins2”? If so, what do I need to understand if I come across this again?

I took a shot at deleting the file I created “vlc/skins2” in “~/.local/share” and went ahead with:
Code:
unzip /home/pilgrim/desktop/vlc-skins.zip  ~/.local/share
to see if the code would create its own file/folder.

Code:
# unzip /home/pilgrim/desktop/vlc-skins.zip  ~/.local/share
Archive:  /home/pilgrim/desktop/vlc-skins.zip
caution: filename not matched:  /root/.local/share
So that doesn't work either.
 
Old 09-19-2009, 08:44 AM   #2
fordeck
Member
 
Registered: Oct 2006
Location: Utah
Posts: 520

Rep: Reputation: 61
What happens if you try:

Code:
unzip /home/pilgrim/desktop/vlc-skins.zip -d ~/.local/share/vlc/skins2
I think you need the -d in order to have the files extracted to a directory other than the current directory.


Regards,

Fordeck
 
Old 09-19-2009, 08:47 AM   #3
colucix
LQ Guru
 
Registered: Sep 2003
Location: Bologna
Distribution: CentOS 6.5 OpenSuSE 12.3
Posts: 10,509

Rep: Reputation: 1976Reputation: 1976Reputation: 1976Reputation: 1976Reputation: 1976Reputation: 1976Reputation: 1976Reputation: 1976Reputation: 1976Reputation: 1976Reputation: 1976
The "%2f" sequence is the hexadecimal notation of "/" (slash). Take in mind that zip/unzip at the origins were the *nix ports of the pkzip/pkunzip DOS programs. You often see hexadecimal notations in URLs, just to make an example.

By the way, the problem here is that maybe youuu misunderstood the meaning of arguments to the unzip command:
Code:
unzip <options> file[.zip]  [file(s) ...]
here files are the name of the archived files you want to extract (the source, not the destination). Here is the complete synopsis:
Code:
unzip [-Z] <options> file[.zip] [file(s) ...] [-x xfile(s) ...] [-d exdir]
where at the end of the command line you see -d exdir. This is the way to specify a destination directory different from the current working dir (default). Your command should be:
Code:
unzip /home/pilgrim/desktop/vlc-skins.zip -d ~/.local/share/vlc/skins2
if I interpret well your requirement (some doubt on the vlc/skins2 part).

Edit: too late.. Fordeck beat me!
 
Old 09-19-2009, 08:52 AM   #4
druuna
LQ Veteran
 
Registered: Sep 2003
Posts: 10,532
Blog Entries: 7

Rep: Reputation: 2387Reputation: 2387Reputation: 2387Reputation: 2387Reputation: 2387Reputation: 2387Reputation: 2387Reputation: 2387Reputation: 2387Reputation: 2387Reputation: 2387
Hi,

Shouldn't that be:

unzip /home/pilgrim/desktop/vlc-skins.zip -d~/.local/share/vlc/skins2 ??

Hope this helps.

[edit] Beaten by a mile...... [/edit]

Last edited by druuna; 09-19-2009 at 08:53 AM.
 
Old 09-19-2009, 09:17 AM   #5
r00ster
Member
 
Registered: May 2007
Location: boundary beach, bc
Distribution: 3.2.0-4-686-pae #1 SMP Debian 3.2.60-1+deb7u3 i686 GNU/Linux
Posts: 224

Original Poster
Rep: Reputation: 15
Quote:
Originally Posted by fordeck View Post
What happens if you try:

Code:
unzip /home/pilgrim/desktop/vlc-skins.zip -d ~/.local/share/vlc/skins2
I think you need the -d in order to have the files extracted to a directory other than the current directory.


Regards,

Fordeck
Code:
unzip /home/pilgrim/desktop/vlc-skins.zip -d ~/.local/share/vlc/skins2
checkdir:  cannot create extraction directory: /root/.local/share/vlc/skins2
I tried it first without the /vlc/skins2" folder in "/root/.local/share", and a 2nd try after re-creating the folder.

Code:
~/.local/share# ls -a
.  ..  Trash  vlc%2fskins2
Is the "Extract to" utility an option?
What about simply doing a "Drag Drop" from the DT into the /share folder and trying to unzip it there?

Update:

I dropped the .zip file in and noW show:

Code:
~/.local/share# ls -a
.  ..  Trash  vlc%2fskins2  vlc-skins.zip
What would y'all suggest? I could use the "Extract Here" option. Or extract to the /vlc/skins folder. I'm working from directions on:
http://www.videolan.org/vlc/skins.php
Quote:
Put the downloaded VLT files in the following folder:
On Linux/Unix: ~/.local/share/vlc/skins2

Last edited by r00ster; 09-19-2009 at 09:25 AM.
 
Old 09-19-2009, 09:20 AM   #6
mobinskariya
Member
 
Registered: Sep 2007
Location: Kerala, India
Distribution: ubuntu 10.04
Posts: 367

Rep: Reputation: 55
that will do your job..try it.
 
Old 09-19-2009, 09:25 AM   #7
druuna
LQ Veteran
 
Registered: Sep 2003
Posts: 10,532
Blog Entries: 7

Rep: Reputation: 2387Reputation: 2387Reputation: 2387Reputation: 2387Reputation: 2387Reputation: 2387Reputation: 2387Reputation: 2387Reputation: 2387Reputation: 2387Reputation: 2387
Hi,

Quote:
unzip /home/pilgrim/desktop/vlc-skins.zip -d ~/.local/share/vlc/skins2
checkdir: cannot create extraction directory: /root/.local/share/vlc/skins2
Does the skins2 (or vlc/skins2) directory exist before unzipping the file? It should.
 
Old 09-19-2009, 06:40 PM   #8
colucix
LQ Guru
 
Registered: Sep 2003
Location: Bologna
Distribution: CentOS 6.5 OpenSuSE 12.3
Posts: 10,509

Rep: Reputation: 1976Reputation: 1976Reputation: 1976Reputation: 1976Reputation: 1976Reputation: 1976Reputation: 1976Reputation: 1976Reputation: 1976Reputation: 1976Reputation: 1976
Code:
mkdir -p ~/.local/share/vlc/skins2
unzip /home/pilgrim/desktop/vlc-skins.zip -d ~/.local/share/vlc/skins2
As druuna already noticed!
 
Old 09-19-2009, 08:42 PM   #9
r00ster
Member
 
Registered: May 2007
Location: boundary beach, bc
Distribution: 3.2.0-4-686-pae #1 SMP Debian 3.2.60-1+deb7u3 i686 GNU/Linux
Posts: 224

Original Poster
Rep: Reputation: 15
Quote:
Originally Posted by druuna View Post
Hi,


Does the skins2 (or vlc/skins2) directory exist before unzipping the file? It should.
Something happened to my last post when I responded to druuna. Here is a facsimile.

The answer is Yes & No & Yes.

In my futzing around with the vlc folders in a different directory, “/usr/share” I created a folder “/vlc/skins2” thinking (big mistake) that I needed it to install the .zip file. I didn't realize at that time that the legit folder, the one set up when I installed vlc in the first place, was already extant in the right directory.

When I finally cottoned on to my bad assumption and found the right folder, I saw the “/vlc/skins2” folder and made another bad assumption that it was the one I had created.
So I deleted it by way of experimenting to see if the “unzip to” would create it; which it didn't of course. So I re-created it as “vlc/skins2”.

What was confusing me was that when I went to “/home/pilgrim/.local/share” it wasn't the same folder as “/root/.local/share”.
This confusion was brought about because none of the codes I tried would unzip the file on my DT to: “~/.local/share/vlc/skins2”, so I went hunting around to see what was what.

Nevertheless: I took the easy route, opened Konqueror as su, and drag/dropped the .zip file in:
“~/.local/share”. “~/.local/share# ls -a
. .. Trash vlc%2fskins2 vlc-skins.zip”

Before I mess things up further let me check options.
Is the [1] KDE GUI “Extract to/here” the same thing as [2] “unzip to/here” from the command line? I've been assuming they are the same.

Right clicking on the “vlc-skins .zip” icon in “~/.local/share” folder contents window, the drop down menu give the option:
[1]
Code:
“Destination folder: /root/vlc/skins2”.
Or from a root terminal would this code be OK?
[2]
Code:
# unzip ~/.local/share/vlc-skins.zip  ~/.local/share/vlc/skins2
I apologize for being so tedious. But I've never had this kind of a problem before and it's making me paranoid.

Last edited by r00ster; 09-19-2009 at 08:44 PM.
 
Old 09-20-2009, 10:58 PM   #10
r00ster
Member
 
Registered: May 2007
Location: boundary beach, bc
Distribution: 3.2.0-4-686-pae #1 SMP Debian 3.2.60-1+deb7u3 i686 GNU/Linux
Posts: 224

Original Poster
Rep: Reputation: 15
Follow up

Well; I tried. I opened Konqueror as root, called up the “~/.local/share” folder, Right Clicked the “vlc-skins.zip” icon and from the KDE GUI menu clicked “Extract to/here” that opened a dialoq box:
Quote:
Extract all files ... Destination folder [name folder]
But when I entered:
Code:
/root/.local/share/vlc/skins2
as the destination folder name I got prompted:
Quote:
Create folder /root/.local/share/vlc/skins2?
The folder (icon) was right beside it in the /share folder!

I also tried entering “/vlc/skins2” and “vlc/skins2”... no joy. For some reason, the GUI app doesn't recognize (?) that “/vlc/skins2” folder. That is how this mess began in the first place. I couldn't d/l that “vlc-skins.zip” file to “~/.local/share” folder; no how, no way. And yes; I was doing it as su/root.

So: I did the “drag/drop” maneuver again and “moved” the errant .zip to “/vlc/skin2” folder and extracted it “in situ”.

Whooop!!!

This has to be the most frustrating exercise I've met in years.

Now: the regime to get a skin is “supposed” to be: <http://www.techzilo.com/vlc-skins/>
Quote:
Once the skin is installed, open VLC settings and change interface from native to skins. Then, right click anywhere and go to Interface>Choose Skin to select your skin. VLC needs to be restarted to change to skins mode.
That looked straightforward. But it weren't. When I went to vlc “Settings” > change interface to “Skins2” I got the standard dialoq box titled “Open a Skins File” ... It went thusly:
Quote:
Settings > Change Interface > skins2 > File System > root > “chaos.vlt” [Open]
vlc “closed”/exited by itself.
Restart
Opened vlc
No change (no new skin)

Back to:
Quote:
Settings > Change Interface > skins2 > File System > root, R clicked on/highlighted “chaos.vlt”.
New dialog box asking “Open Location”.
Screenshot (forum attachment utility doesn't like 110.0 KB PNG Image from Ksnapshot)
[img=http://img33.imageshack.us/img33/7327/17971598.th.png]

Right!!! I knew where that was going!

Suffice it to say, I've tried entering every combination of uri </root/.local/share/vlc/skins2> in that dialog box and they all produce error messages.

And that's where I am.

Last edited by r00ster; 09-20-2009 at 11:21 PM. Reason: Missing attachment
 
Old 09-21-2009, 11:07 PM   #11
bendib
Member
 
Registered: Feb 2009
Location: I'm the rat in your couch.
Distribution: Fedora on servers, Debian on PPC Mac, custom source-built for desktops
Posts: 174

Rep: Reputation: 40
If you are in GNOME, you can run a su -c "nautilus --browser" in red hat/fedora or sudo nautilus in debian/ubuntu, find the file, right click, extract here. Copy the extracted files wherever you want. Don't assume everything must be done the hard way. If you are root, just start nautilus and right click, extract here, copy files.
 
Old 09-23-2009, 07:17 AM   #12
r00ster
Member
 
Registered: May 2007
Location: boundary beach, bc
Distribution: 3.2.0-4-686-pae #1 SMP Debian 3.2.60-1+deb7u3 i686 GNU/Linux
Posts: 224

Original Poster
Rep: Reputation: 15
Quote:
Originally Posted by bendib View Post
If you are in GNOME, you can run a su -c "nautilus --browser" in red hat/fedora or sudo nautilus in debian/ubuntu, find the file, right click, extract here. Copy the extracted files wherever you want. Don't assume everything must be done the hard way. If you are root, just start nautilus and right click, extract here, copy files.
bendib;

I'm using Debian/GNU/KDE/Konqueror/Iceweasel.

I've got my files so messed up now, I don't know what the heck I'm doing anymore.Those blasted skins files/ folders/contents both zipped and unzipped..... are all over the place in half a dozen root files & folders, on my Desktop... I'm going to have to spend half a day just finding & deleting them from where they don't belong.

Quote:
Copy the extracted files wherever you want.
OK: Now that makes sense. I copied the unzipped files to a folder on my DT “vlc/skins2”.
When I open vlc > Settings > Switch Interface > Skins2 > Open a skin file (Helper Menu) > Highlight Desktop > double click vlc/skins2 > Click on one of the Skins “chaos.vlt”> vlc closes/exits.

Restart

Open vlc (No Change. Default skin returns) > Settings > Switch Interface > Skins2 > Open a skin file (Helper Menu) > Highlight Desktop > double click vlc/skins2 > Click on one of the Skins “carbon.vlt”> vlc closes/exits.

Restart

Open vlc (No Change. Default skin returns) > Settings > Switch Interface > Skins2
The “carbon.vlt” skin appeared! Yay! I don't like it at all.

When I tried to change it via “Preferences” > check “skinnable interface” “Save” I still get no option to change the skin; i.e., recall the Helper Menu. I just tried “carbon.vlt” to see if the problem was that the “chaos.vlt” was wonky; which it seem it was.

In fact, I can't get back to the default vlc page at all. When I start it, the carbon skin emerges.I did find the access to the Preferences again. But what do I have to do to get a skin I'd like?

Suggestions?

Edit: ... I found the sol'n. Go to preferences > interface menu and just click "Reset".

Last edited by r00ster; 09-23-2009 at 08:49 PM.
 
  


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
how to install firefox 3.0.3 after downloaded as a zip file from the terminal? tonyblue Linux - Software 2 10-18-2008 02:28 PM
How to ensure that the zip file is completely downloaded. indiancosmonaut Programming 10 05-01-2008 12:48 PM
Unzipping .zip files in linux dr_zayus69 Linux - Software 5 09-27-2004 07:47 PM
Unzipping a .zip file sduffy89 Linux - Software 3 08-25-2004 09:55 AM
unzipping .zip files...how?? Robert0380 Linux - General 2 04-11-2002 05:54 AM


All times are GMT -5. The time now is 05:30 AM.

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