ProgrammingThis forum is for all programming questions.
The question does not have to be directly related to Linux and any language is fair game.
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.
If you have any problems with the registration process or your account login, please contact us. If you need to reset your password, click here.
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
Get a virtual cloud desktop with the Linux distro that you want in less than five minutes with Shells! With over 10 pre-installed distros to choose from, the worry-free installation life is here! Whether you are a digital nomad or just looking for flexibility, Shells can put your Linux machine on the device that you want to use.
Exclusive for LQ members, get up to 45% off per month. Click here for more info.
Hi, Is there a documented and predifined process for depersonalizing linux OS image?
we create image of our product which also includes OS and ship so before shipping we need to depersonalize this OS image, like removing macaddress, ssh keys, HOSTNAME etc..
this is what i know of may be more attributes to remove.
was searching on google and couldnt find much help full. please let me know any reference or way.. thanks
Hi, Is there a documented and predifined process for depersonalizing linux OS image?
we create image of our product which also includes OS and ship so before shipping we need to depersonalize this OS image, like removing macaddress, ssh keys, HOSTNAME etc.. this is what i know of may be more attributes to remove.
was searching on google and couldnt find much help full. please let me know any reference or way.. thanks
Used Linux OS: CentOS 6.2
Thanks
No, and you won't find any documented process on this. Mainly because there's no way for ANYONE to define it. Whatever services you have on your system/image may be completely different than what anyone else has. You can put the configurations ANYWHERE, make symbolic links, etc., which will make the system unlike any other. That's up to you.
So, since you've built the custom image, you know where everything is, and what the 'etc' is that you're talking about. Only you can edit/change/document what's needed.
I agree. You won't find any documented process. However if you would have started the build process with some forethought you could have made a baseline (disk image or 'md5deep -r /' or used versioning) and roll back unnecessary changes. All that's left now is package verification, as in 'rpm -Vva', visual inspection of any changes plus those files not part of any package. Depending on how your product is isolated within the OS or not it may in the end be easier / more efficient / quicker to start over...
yes make sense, let me define my requirement more clear then,
i just want to remove hostname, IP Address, gateway, dns, netmask, hw mac adress, ssh keys rest is my application specific that i will take care of. so is there a neater way to do this or i can simply remove these entries from various files in /etc ?
yes make sense, let me define my requirement more clear then,
i just want to remove hostname, IP Address, gateway, dns, netmask, hw mac adress, ssh keys rest is my application specific that i will take care of. so is there a neater way to do this or i can simply remove these entries from various files in /etc ?
You were clear to start with...so was the answer. No, there isn't a better way to do it, other than editing those files manually. But since you only have to do it ONCE, it shouldn't be a huge task. All you're talking about is removing a few files, and editing a few others.
There is no need to do that. I think we all perfectly understand what you need to do.
Quote:
Originally Posted by ajayyadavmca
so is there a neater way to do this or i can simply remove these entries from various files in /etc ?
I already suggested you how to start cleaning up. I also suggested a way that I consider neat, however your definition of "a neater way" may be different. You've seen two opinions now and the clear hint there isn't any formal process so better not push further but just do it.
Last edited by unSpawn; 07-17-2012 at 06:28 PM.
Reason: //Typo
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.