On Tuesday, January 24, 2012 01:46:15 PM Rafael Skodlar did opine:

[...]
 
> 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 -

I probably have 5 or 7 tabs open, su- at any one time.  Biggest problem 
then is that x belongs to gene, and root collects megabytes of x errors 
when root forgets to use vim and tries to use gedit.
 
> 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".

Yup.
 
> - 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.

That makes a lot of sense, doing it that way, but since nfs is working now, 
I'll likely skip it.  Once I get the forward path in nfs set, then I can 
redirect pcb-gcodes output files directly to the 
~/gene/emc2/nc_files/project_subdir on the milling machine, and only be 
missing one thing.

And that is either a stream file editor to manipulate the X<value> in a 
.bot. file to be X<value + 2.195>, thereby offsetting the file back to the 
board pocket in the board fixture.

sed comes to mind, but apparently has no math functions, only text, so its 
DOA as a simple solution.

pcb-gcode does the "Mirror" function by negating the Xvalues it writes to a  
.bot. file, but that makes the mirror on the minus side of X0.0 and I need 
to offset it back to the right so it hits the board turned over on the Y 
axis and remounted to the fixture.  This could also be done if its 
possible, in the file setup header if a "for the duration of the file" 
gcode "touch off" could be done without moving the machine itself as long 
as there is a matching "touch off cancel" so we leave it in a known state 
for the next run.

Actually, moving the machines X to the right by the length of the board in 
the gcode input, then doing the "touch off" would also get the job done.  
So the success of that depends on how hard it is to do an in-code touch 
off.  Either way should allow near perfect registration of the top & bottom 
of the board.

Either method would allow correcting this pcb-gcode shortcoming.  I got a 
msg back from the author but he is in school, up to his butt in study 
alligators and can't get back to it for a while.
 
> 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-47470
> 63

Chuckle, I need that this morning (morning?  Duh, it's past 2pm), the 2nd 
cup hasn't kicked in yet. :(

I've now been searching the package repo looking for a sed-like util that 
can do the additions.  4 hours wasted and I am only down the the middle of 
the p's.  Sigh.

Cheers, Gene
-- 
"There are four boxes to be used in defense of liberty:
 soap, ballot, jury, and ammo. Please use in that order."
-Ed Howdershelt (Author)
My web page: <http://coyoteden.dyndns-free.com:85/gene>
We have only two things to worry about:  That things will never get
back to normal, and that they already have.

------------------------------------------------------------------------------
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