On 01/23/2012 06:31 AM, gene heskett wrote:
> On Monday, January 23, 2012 08:49:08 AM Rafael Skodlar did opine:
>
>>> There is security, and there is Pain in the Ass obnoxiousness, this is
>>> the latter.
>>>
>>> I'd be much appreciative of an idiot-proof (and I'm apparently the
>>> idiot)
>>
>> Don't do that too often as we might assume something :-) Your emails are
>> amusing and educational also.
>
> Like most old fart farts, I do find the mental processes are slowing,
> particularly the short term memory aspects.  I will be the first to admit
> that the tested IQ I had at age 12, 65 years ago, 147, has faded enough
> that its starting to get my attention.  Now I have to grab the eagle book
> Ed was kind enough to print and send me and dbl-check just about everything
> I do if its been 20 minutes since I last did it.  TBH, that hurts, a lot.
>
> How much of that can be thrown at the number of calendars I've thrown away,
> and how much to the blood vessel damages that type 2 diabetes is doing to
> me, is probably open for debate.  I really worry when the glucose hits
> 200+, but its been years since I tested under 135 2 checks in a row.
>
>>> method of send this stuff around on my home, private as I can make it,
>>> network.
>>>
>>> Thanks all.
>>>
>>> Cheers, Gene
>>
>> The following needs to be done as root or use sudo:
>>
>> * assume one side is the NFS server:
> This machine
>> - install package autofs
> done
>> - edit /etc/exports with something like
>> /home/gene    (rw,sync,no_subtree_check)
> done
>> - restart autofs
> this worked, it wasn't running
>> service nfs-kernel-server restart
> no such service on a pclos machine
>> test with
>> showmount -e<- to get
>> Export list for<servername>:
>> /home/gene *
> [root@coyote gene]# showmount -e
> Export list for coyote.coyote.den:
> /home/gene *
>
>> * on the workstation side:
>> - install package autofs
>> - edit /etc/auto.master to enable auto.net function
>> /net    -hosts<- line that likely needs to be uncommented
> service autofs restart
> returns:
>   autofs start/running, process 24811
>
>> that will let you see (automount) servers' export under
>> /net/<servername>
>> where<servername>  is your "other PC". ls /net shows nothing while 'ls
>> /net/<servername>   should show exported files in your home directory.
>> Now let's test this setup:
>> touch /net/<servername>/xxx
>> ls -l /net/<servername>/xxx
> gene@shop:/etc$ ls /net/coyote
> home
> and:
> gene@shop:/etc$ ls /net/coyote/home/gene/eagle
> lathe-encoder  ulp
> gene@shop:/etc$ ls /net/coyote/home/gene/eagle/lathe-encoder
> eagle.epf          lathe-encoder.b#2            lathe-encoder.bot.etch.tap
> lathe-encoder.pro  lathe-encoder.top.drill.tap
> lathe-encoder.b##  lathe-encoder.b#3            lathe-encoder.bot.mill.tap
> lathe-encoder.s#1  lathe-encoder.top.etch.tap
> lathe-encoder.b#1  lathe-encoder.bot.drill.tap  lathe-encoder.brd
> lathe-encoder.sch  lathe-encoder.top.mill.tap
> gene@shop:/etc$
>

Good, you are making a progress.

> Amazingly (to me) it looks like it is working.  A first since I switched
> from amigados to linux in 1997.
>

There were some bugs in autofs scripts which caused a lot of grief in 
the industry for a while.

> One more test from the shop box
> gene@shop:/etc$ touch /net/coyote/home/gene/killroy-was-here
> touch: cannot touch `/net/coyote/home/gene/killroy-was-here': Permission
> denied
>
> So its a one way deal at best.  I can fire up mc and copy a directories
> contents from here to the shop, and just did, but I can't move anything
> back.  To get things like the drill files in sync, it needs to be a 2 way
> deal.  Is this as simple as making matching entries for exports and such on
> both machines so that each machine is both client and server?
>

Yes, make similar config on another side, restart NFS, and it should work.

> Thank you very much, Rafael.  Nothing beats clear&  concise instructions.
>
> Cheers, Gene

What I have in all my Linux workstations is this:
- in konsole (my favorite GUI terminal) I open a number of tabs. First 
one is always reserved for root. I label it root and to use it I normally do
sudo su -

that gives me full root environment needed to manage packages, hard 
mount files, ISO images, etc. manually. That way I can easily remember 
what I'm doing in each "tab".

- in screen utility I also create first text screen for use as root. 
Others are named by function or remote host.

If you are going to rename or change UID or GID it's best to do it in 
text terminal, i.e. not under KDE or Gnome for yourself as you'll pull 
the rug under your feet. You could create a new user with desired 
UID/GID in GUI but you'll need to make different login account name. The 
easiest IMO is to do the following:

- Assuming you are at GUI login prompt, don't login, use Ctrl-Alt-F1 to 
go to text mode terminal,

- login and become root with 'sudo su -' (ubuntu and some other distros)

- edit /etc/passwd to change UID and GID
<user>:x:1000:1000:user name,,,:/home/<user>:/bin/bash
           ^^   ^^

- run command pwconv

- edit /etc/group
<user>:x:1000:
           ^^
- run
chown -R <user>.<user> /home/<user>
to change ownership to all files in users home directory.

- Reboot and you should be able to login as a user with new UID/GID.

If you make a mistake in the passwd file and cannot login anymore, 
reboot and use live CD (ubuntu, knoppix, fedora, etc.), to bootup, mount 
root partition, edit/fix passwd file and reboot. No need to reinstall.

Now make some coffee:
http://blip.tv/linuxconfau/building-a-linux-powered-coffee-roaster-4747063

-- 
Rafael

------------------------------------------------------------------------------
Keep Your Developer Skills Current with LearnDevNow!
The most comprehensive online learning library for Microsoft developers
is just $99.99! Visual Studio, SharePoint, SQL - plus HTML5, CSS3, MVC3,
Metro Style Apps, more. Free future releases when you subscribe now!
http://p.sf.net/sfu/learndevnow-d2d
_______________________________________________
Emc-users mailing list
Emc-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/emc-users

Reply via email to