[PLUG] Folder creation/renaming quandary

2016-02-24 Thread John Jason Jordan
Xubuntu 14.04.3 up to date.

Normally I do all my file manipulations in the GUI (Thunar), but this
time it is failing me. Oddly, I get the same strange results from the
command line as well.

I have ripped and encoded a DVD that I own of the movie '8½
1963' (arguably Fellini's crowning achievement). The filename is 8½
1963.mkv, created by Handbrake. Now I wish to create a folder of the
same name (sans .mkv, of course). Thunar says it can't do this because
'the file already exists.' But I am clicking on "create folder,' so
Thunar should realize that I am creating a folder, not a file.

From the command line:

 mkdir 8½ 1963

Resulted in a folder '8½' being created, apocopating the year. Then it
dawned on me that the command line didn't like the space, so I did:

 mkdir 8½\ 1963

Which resulted in the same error message as Thunar:

 mkdir: cannot create directory ‘8½ 1963’: File exists

At this point I just renamed 8½ 1963.mkv by appending a dash to the
name: 8½ 1963-.mkv. But it didn't make any difference; Thunar and the
command line continue to give me the same error messages.

Also, having renamed 8½ 1963.mkv to 8½ 1963-.mkv I used Catfish to
search for 8½ 1963.mkv, and it said there were no such files anywhere
in my entire filesystem.

Note that the filename uses Unicode 00BD, rather than 1/2. I had to do
this because Linux correctly thought that the / was a folder and
wouldn't let Handbrake create it as 8 1/2.mkv. (To get this on your
computer just type Ctrl-Shift-u, then 'bd.')

I may be doing something stupid, but I can't figure out what it might
be. Or maybe ext4 is doing something stupid.

Suggestions?
___
PLUG mailing list
PLUG@lists.pdxlinux.org
http://lists.pdxlinux.org/mailman/listinfo/plug


Re: [PLUG] Folder creation/renaming quandary

2016-02-24 Thread Rich Shepard
On Wed, 24 Feb 2016, John Jason Jordan wrote:

> From the command line:
>
>mkdir 8½ 1963

   Linux doesn't like spaces in file/directory names.

   Consider naming your directory 8.5-1963/ and put the file (preferably with
out spaces in the name) under that.

   In linux and other unices everything is a file. Ergo, you cannot have
directories and individual files with the same name.

Rich
___
PLUG mailing list
PLUG@lists.pdxlinux.org
http://lists.pdxlinux.org/mailman/listinfo/plug


Re: [PLUG] Cascadia IT Conference (apologize for the html)

2016-02-24 Thread Michael Dexter

Atom,

You are still sending it in HTML format.

Michael

On 2/22/16 3:07 PM, Atom Powers wrote:
> Good morning Portland Linux GroupOnce more with
> feeling. I apologize for the HTML garbage in the previous message. (The
> mail client I tested with is a bit too accommodating.)This is your
> friendly reminder that Cascadia IT Conference early-bird registration ends
> with the month.Are you looking to increase your system or network
> administration skills? Would you like to get some professional development
> training from the leaders in the field? If so, please check out Cascadia IT
> Conference (http://casitconf.org";
> target="_blank">http://casitconf.org) happening on March 11th and 12th
> in Seattle, WA for some incredible training opportunities including classes
> such as:Time Management by Thomas Limoncelli author of "The
> Practice of Cloud System Administration", " Time Management for
> System Administrators", and "The Practice of System and Network
> Administration".Deep Packet Inspection with Wireshark by Mike
> Pennacchi who has been ranked as a top instructor at Interop many times
> since 1997.Myth Busting the Network Layer by Stuart Kendrick who is
> an expert in hands on classes where attendees do not want to leave for
> breaks.Automation Tools Bootcamp by Tyler Fitch who is a member of
> Chef's Customer Engineering Team.Check out  href="http://casitconf.org/casitconf16/schedule/";
> target="_blank">http://casitconf.org/casitconf16/schedule/ for a
> full schedule of classes and talks by industry leaders and writers. The
> deadline for early bird discounts is Feb 28th so sign up today at  href="http://casitconf.org/casitconf16/register-now/";
> target="_blank">http://casitconf.org/casitconf16/register-now/ for
> some of the best IT training and professional development in the Pacific
> Northwest.I hope to see you there!
> ___
> PLUG mailing list
> PLUG@lists.pdxlinux.org
> http://lists.pdxlinux.org/mailman/listinfo/plug
>

___
PLUG mailing list
PLUG@lists.pdxlinux.org
http://lists.pdxlinux.org/mailman/listinfo/plug


Re: [PLUG] Folder creation/renaming quandary

2016-02-24 Thread Denis Heidtmann
On Wed, Feb 24, 2016 at 12:28 PM, Rich Shepard 
wrote:
>
>In linux and other unices everything is a file. Ergo, you cannot have
> directories and individual files with the same name.
>
>  "...cannot have ... individual files with the same name." in the same
directory.  But what directory is the directory in?

I just created a file named Desktop in the folder Desktop.

-Denis
___
PLUG mailing list
PLUG@lists.pdxlinux.org
http://lists.pdxlinux.org/mailman/listinfo/plug


Re: [PLUG] Folder creation/renaming quandary

2016-02-24 Thread Dick Steffens
On 02/24/2016 01:18 PM, Denis Heidtmann wrote:
> On Wed, Feb 24, 2016 at 12:28 PM, Rich Shepard 
> wrote:
>> In linux and other unices everything is a file. Ergo, you cannot have
>> directories and individual files with the same name.
>>
>>   "...cannot have ... individual files with the same name." in the same
> directory.  But what directory is the directory in?
>
> I just created a file named Desktop in the folder Desktop.

And I have files with spaces in the names.


-- 
Regards,

Dick Steffens

___
PLUG mailing list
PLUG@lists.pdxlinux.org
http://lists.pdxlinux.org/mailman/listinfo/plug


Re: [PLUG] Folder creation/renaming quandary

2016-02-24 Thread Rich Shepard
On Wed, 24 Feb 2016, Denis Heidtmann wrote:

> I just created a file named Desktop in the folder Desktop.

Denis,

   Interesting. I didn't know it could be done.

Rich
___
PLUG mailing list
PLUG@lists.pdxlinux.org
http://lists.pdxlinux.org/mailman/listinfo/plug


Re: [PLUG] Folder creation/renaming quandary

2016-02-24 Thread David
On 02/24/2016 01:31 PM, Rich Shepard wrote:
> On Wed, 24 Feb 2016, Denis Heidtmann wrote:
>
>> I just created a file named Desktop in the folder Desktop.
>
> Denis,
>
> Interesting. I didn't know it could be done.

The directory and file may not be at the same level, but they may be 
nested without issues.

dafr


___
PLUG mailing list
PLUG@lists.pdxlinux.org
http://lists.pdxlinux.org/mailman/listinfo/plug


Re: [PLUG] Folder creation/renaming quandary

2016-02-24 Thread David
On 02/24/2016 01:28 PM, Dick Steffens wrote:
> On 02/24/2016 01:18 PM, Denis Heidtmann wrote:
>> On Wed, Feb 24, 2016 at 12:28 PM, Rich Shepard 
>> wrote:
>>>  In linux and other unices everything is a file. Ergo, you cannot have
>>> directories and individual files with the same name.
>>>
>>>"...cannot have ... individual files with the same name." in the same
>> directory.  But what directory is the directory in?
>>
>> I just created a file named Desktop in the folder Desktop.
>
> And I have files with spaces in the names.
>
>

Spaces work fine if you escape them, but when it comes to scripting 
things to manipulate files and such and working from the command line, 
it makes escaping the space very, very challenging if not impossible. As 
such, the use of a space (and special characters such as the funky 1/2 
being used) is generally *highly* discouraged.

If you are willing to use these characters you welcome to do so, but 
please don't complain when those characters break things for you in the 
future.

dafr

___
PLUG mailing list
PLUG@lists.pdxlinux.org
http://lists.pdxlinux.org/mailman/listinfo/plug


Re: [PLUG] Folder creation/renaming quandary

2016-02-24 Thread wes
>
>
>  mkdir 8½\ 1963
>
> Which resulted in the same error message as Thunar:
>
>  mkdir: cannot create directory ‘8½ 1963’: File exists
>
> ... I just renamed 8½ 1963.mkv to 8½ 1963-.mkv ...
>
> ... search for 8½ 1963.mkv, and it said there were no such files ...
>
>
you did not specify whether you searched for "8½ 1963" to see if, perhaps,
it actually does already exist? perhaps one of your earlier attempts
succeeded, and you didn't notice?

"8½ 1963" is a different name from "8½ 1963.mkv" so this should not be the
cause of your name collision.

perhaps try creating the directory named "8½ 1963" some place else, and
then move the file "8½ 1963.mkv" into it (assuming this is your goal, you
didn't specify that either), to help determine whether this is an issue
with the unicode character doing something unpredicted, or some issue with
the parent directory (like the name actually already existing)? then if
that works, you can try moving the new "8½ 1963" directory into the desired
parent directory and see what happens.

-wes
___
PLUG mailing list
PLUG@lists.pdxlinux.org
http://lists.pdxlinux.org/mailman/listinfo/plug


Re: [PLUG] Folder creation/renaming quandary

2016-02-24 Thread John Jason Jordan
On Wed, 24 Feb 2016 13:32:40 -0800
David  dijo:

>On 02/24/2016 01:31 PM, Rich Shepard wrote:
>> On Wed, 24 Feb 2016, Denis Heidtmann wrote:
>>
>>> I just created a file named Desktop in the folder Desktop.
>>
>> Denis,
>>
>> Interesting. I didn't know it could be done.
>
>The directory and file may not be at the same level, but they may be 
>nested without issues.

But I continued to get the same error message even after I renamed the
file. Thus, the file and directory name were different. And Catfish
said that no file with the same name as the folder existed.

Regarding spaces and scripts, I have only a couple very short scripts
that I use, and they do not access files or folders with spaces in
them. Furthermore, I usually use Gnome terminal, which happily
automatically escapes all spaces in files that I copy and paste into
it. I would say that the majority of files that I create have spaces in
them, and I never have a problem. 

As for the 'funky' ½ character, that is a valid codepoint in UTF-8. Is
Xubuntu or ext4 not UTF-8 compliant? I use far 'funkier' characters in
filenames all the time when I need a transcription in IPA.

Considering that the error messages that Thunar and Gnome terminal are
giving me say 'the *file* already exists' leads me to conclude that
somehow the filesystem thinks I am creating a file rather than a folder.
Moreover, the file that it thinks exists does not actually exist. 
___
PLUG mailing list
PLUG@lists.pdxlinux.org
http://lists.pdxlinux.org/mailman/listinfo/plug


Re: [PLUG] Folder creation/renaming quandary

2016-02-24 Thread wes
On Wed, Feb 24, 2016 at 2:14 PM, John Jason Jordan 
wrote:

> On Wed, 24 Feb 2016 13:32:40 -0800
> David  dijo:
>
> >On 02/24/2016 01:31 PM, Rich Shepard wrote:
> >> On Wed, 24 Feb 2016, Denis Heidtmann wrote:
> >>
> >>> I just created a file named Desktop in the folder Desktop.
> >>
> >> Denis,
> >>
> >> Interesting. I didn't know it could be done.
> >
> >The directory and file may not be at the same level, but they may be
> >nested without issues.
>
> But I continued to get the same error message even after I renamed the
> file. Thus, the file and directory name were different. And Catfish
> said that no file with the same name as the folder existed.
>
> Regarding spaces and scripts, I have only a couple very short scripts
> that I use, and they do not access files or folders with spaces in
> them. Furthermore, I usually use Gnome terminal, which happily
> automatically escapes all spaces in files that I copy and paste into
> it. I would say that the majority of files that I create have spaces in
> them, and I never have a problem.
>
> As for the 'funky' ½ character, that is a valid codepoint in UTF-8. Is
> Xubuntu or ext4 not UTF-8 compliant? I use far 'funkier' characters in
> filenames all the time when I need a transcription in IPA.
>
> Considering that the error messages that Thunar and Gnome terminal are
> giving me say 'the *file* already exists' leads me to conclude that
> somehow the filesystem thinks I am creating a file rather than a folder.
> Moreover, the file that it thinks exists does not actually exist.
>
>
the error message will claim "the file already exists" whether it's a file,
directory, or anything else.

-wes
___
PLUG mailing list
PLUG@lists.pdxlinux.org
http://lists.pdxlinux.org/mailman/listinfo/plug


Re: [PLUG] Folder creation/renaming quandary

2016-02-24 Thread David
On 02/24/2016 02:14 PM, John Jason Jordan wrote:
> On Wed, 24 Feb 2016 13:32:40 -0800
> David  dijo:
>
>> On 02/24/2016 01:31 PM, Rich Shepard wrote:
>>> On Wed, 24 Feb 2016, Denis Heidtmann wrote:
>>>
 I just created a file named Desktop in the folder Desktop.
>>>
>>> Denis,
>>>
>>>  Interesting. I didn't know it could be done.
>>
>> The directory and file may not be at the same level, but they may be
>> nested without issues.
>
> But I continued to get the same error message even after I renamed the
> file. Thus, the file and directory name were different. And Catfish
> said that no file with the same name as the folder existed.

Having no experience with Catfish, I can't help you here. Perhaps the 
filesystem has a phantom memory of a file or directory with the exact 
name you are trying to create. To clear this, try to umount the 
partition and run fsck on it. If that isn't possible, you may also 
consider a 'find' on the directory with the _exact_ name as the target.

> Regarding spaces and scripts, I have only a couple very short scripts
> that I use, and they do not access files or folders with spaces in
> them. Furthermore, I usually use Gnome terminal, which happily
> automatically escapes all spaces in files that I copy and paste into
> it. I would say that the majority of files that I create have spaces in
> them, and I never have a problem.

If your tools suit your needs, please continue to use them. You appear 
to be a power user and I have more of an operations background where 
scripts that call lists and use variables for operations, the spaces are 
more difficult to escape or predict in behavior. I'm naturally 
pointy-clicky averse, so my experience is different than yours.

> As for the 'funky' ½ character, that is a valid codepoint in UTF-8. Is
> Xubuntu or ext4 not UTF-8 compliant? I use far 'funkier' characters in
> filenames all the time when I need a transcription in IPA.

In my experience, any character that requires multiple keystrokes are 
equally avoided for the above reasons. There is nothing wrong with them, 
but they may break other things in odd ways down the road. I can only 
hope this is NOT the case for you.

> Considering that the error messages that Thunar and Gnome terminal are
> giving me say 'the *file* already exists' leads me to conclude that
> somehow the filesystem thinks I am creating a file rather than a folder.
> Moreover, the file that it thinks exists does not actually exist.

Yes, the inode table seems to think the name is in use in that 
directory. See my above remarks about fsck and find.

Good luck.

dafr

___
PLUG mailing list
PLUG@lists.pdxlinux.org
http://lists.pdxlinux.org/mailman/listinfo/plug


Re: [PLUG] Folder creation/renaming quandary

2016-02-24 Thread John Jason Jordan
On Wed, 24 Feb 2016 15:00:56 -0800
David  dijo:

>> But I continued to get the same error message even after I renamed
>> the file. Thus, the file and directory name were different. And
>> Catfish said that no file with the same name as the folder existed.
>
>Having no experience with Catfish, I can't help you here. Perhaps the 
>filesystem has a phantom memory of a file or directory with the exact 
>name you are trying to create. To clear this, try to umount the 
>partition and run fsck on it. If that isn't possible, you may also 
>consider a 'find' on the directory with the _exact_ name as the target.

It certainly is acting as though there is a phantom memory of a file or
directory, so I had high hopes that umounting and running fsck would
solve the problem. Sadly:

jjj@Devil-Bonobo:/media/jjj$ sudo fsck /dev/sdc1
[sudo] password for jjj: 
fsck from util-linux 2.20.1
e2fsck 1.42.9 (4-Feb-2014)
Movies: clean, 5360/152621056 files, 264645440/1220942336 blocks

After remounting the error message continues.

I discovered that if I replace the space with a dot the folder is
created without error. I did not change the '½' character, so this
should at least demonstrate that it is unlikely that my '½' character
is the cause of the problem. And most of the hundreds of folders in
that partition have spaces in them, so nothing is adding up here.

At some point I must continue with my life, so I'm just going to leave
folder with the dot in it and move on.
___
PLUG mailing list
PLUG@lists.pdxlinux.org
http://lists.pdxlinux.org/mailman/listinfo/plug


[PLUG] proxy.pac

2016-02-24 Thread Robert Citek
Greetings all,

I have created a SOCKS proxy on a remote server that listens on port
:5150 and have manually configured my browsers (Chrome, Firefox) to
use it.

As the next step, I would like to create a proxy.pac file to
automatically configure my web browsers to use the SOCKS proxy.  I
have created a proxy.pac file similar to the one on this page:

https://mikewest.org/2007/01/auto-configuring-proxy-settings-with-a-pac-file

which looks like this:

function FindProxyForURL(url, host) {
  return "SOCKS 10.1.2.10:5150";
}

It seems to work.  Except, that when I change the proxy port on the
remote from :5150 to :5151, my browser still is able to connect to
remote sites.

I have a number of questions, but foremost is, how can I tell if the
browser is using the proxy or not?

Regards,
- Robert
___
PLUG mailing list
PLUG@lists.pdxlinux.org
http://lists.pdxlinux.org/mailman/listinfo/plug


Re: [PLUG] proxy.pac

2016-02-24 Thread Bill Barry
On Wed, Feb 24, 2016 at 6:45 PM, Robert Citek  wrote:
> Greetings all,
>
> I have created a SOCKS proxy on a remote server that listens on port
> :5150 and have manually configured my browsers (Chrome, Firefox) to
> use it.
>
> As the next step, I would like to create a proxy.pac file to
> automatically configure my web browsers to use the SOCKS proxy.  I
> have created a proxy.pac file similar to the one on this page:
>
> https://mikewest.org/2007/01/auto-configuring-proxy-settings-with-a-pac-file
>
> which looks like this:
>
> function FindProxyForURL(url, host) {
>   return "SOCKS 10.1.2.10:5150";
> }
>
> It seems to work.  Except, that when I change the proxy port on the
> remote from :5150 to :5151, my browser still is able to connect to
> remote sites.
>
> I have a number of questions, but foremost is, how can I tell if the
> browser is using the proxy or not?
>

Would whatismyip.com distinguish them?

Bill
___
PLUG mailing list
PLUG@lists.pdxlinux.org
http://lists.pdxlinux.org/mailman/listinfo/plug


Re: [PLUG] Folder creation/renaming quandary

2016-02-24 Thread David
On 02/24/2016 05:37 PM, John Jason Jordan wrote:
> On Wed, 24 Feb 2016 15:00:56 -0800
> David  dijo:
>
>>> But I continued to get the same error message even after I renamed
>>> the file. Thus, the file and directory name were different. And
>>> Catfish said that no file with the same name as the folder existed.
>>
>> Having no experience with Catfish, I can't help you here. Perhaps the
>> filesystem has a phantom memory of a file or directory with the exact
>> name you are trying to create. To clear this, try to umount the
>> partition and run fsck on it. If that isn't possible, you may also
>> consider a 'find' on the directory with the _exact_ name as the target.
>
> It certainly is acting as though there is a phantom memory of a file or
> directory, so I had high hopes that umounting and running fsck would
> solve the problem. Sadly:
>
> jjj@Devil-Bonobo:/media/jjj$ sudo fsck /dev/sdc1
> [sudo] password for jjj:
> fsck from util-linux 2.20.1
> e2fsck 1.42.9 (4-Feb-2014)
> Movies: clean, 5360/152621056 files, 264645440/1220942336 blocks
>
> After remounting the error message continues.

Well, quite honestly it was a long shot at best (IMO) and I didn't have 
a lot of faith in it, but something to try. It's still worth using the 
find to see what returns:

$ find /media/jjj/$WHATEVER -name "8½ 1963" -ls

This is just a sample that may return something, and then again it may 
not. There are a lot of options with this command, this is just a simple 
test.

> I discovered that if I replace the space with a dot the folder is
> created without error. I did not change the '½' character, so this
> should at least demonstrate that it is unlikely that my '½' character
> is the cause of the problem. And most of the hundreds of folders in
> that partition have spaces in them, so nothing is adding up here.

That is consistent with a file or directory by that exact name existing 
already and the system won't let you execute the mkdir as a result.

> At some point I must continue with my life, so I'm just going to leave
> folder with the dot in it and move on.

There is always that

dafr

___
PLUG mailing list
PLUG@lists.pdxlinux.org
http://lists.pdxlinux.org/mailman/listinfo/plug


Re: [PLUG] proxy.pac

2016-02-24 Thread Robert Citek
On Wed, Feb 24, 2016 at 7:56 PM, Bill Barry  wrote:
> On Wed, Feb 24, 2016 at 6:45 PM, Robert Citek  wrote:
>> I have a number of questions, but foremost is, how can I tell if the
>> browser is using the proxy or not?
>
> Would whatismyip.com distinguish them?

That worked perfectly.  Thanks, Bill.

Now I know my manual proxy settings work just fine, but my proxy.pac
file does not.  I'll post details on that after I try a few more
things.

Regards,
- Robert
___
PLUG mailing list
PLUG@lists.pdxlinux.org
http://lists.pdxlinux.org/mailman/listinfo/plug