Monday, November 30, 2015

How to get trained for RHCE 7 - any best practices suggestions to pass for 100%?

Official training is good, but you need experience more than training. You should already be using Linux and if you're using RHEL or a clone, you're starting out good - but even Ubuntu or Debian would be very helpful training your skills. So don't be choosy. Setup a file server and/or webserver that you use on your local lan, start using it and as you do, you'll have challenges you have to solve. Work down the list of exam objectives and using online guides or books to help you with the areas you have to train it, start using Linux and better RHEL. After a few months of using it every day, you can then do the training and if you find that you have trouble, practice more on your own.

Join community groups - local LUGs, mailing lists, go to IRC and hang out in the forums and channels around the distribution you're using. PARTICIPATE - don't just ask questions (but do ask) - answer too. Help out. Maybe you can help translating or writing documentation. Or you can file bugs and issues to get things fixed that aren't working. Build a network of people within the Open Source community who'll get to know you and your skills. It will come in handy when you start looking for a job and you'll also be able to help others out who are trying to learn.

I have deleted my windows partition by mistakly so i want to recover my partition or my data

Backups my friend. That's why we have them. There's no way working with computers every day, that you won't screw up now and then, even if you're careful.

If you know _exactly_ what you did, and what was lost, it means you can restore just those parts. Ie. if it's just the partition table that got wiped, you can just restore that and be fine. If you also wiped file system details, boot information etc. you'll have to restore those bits too.

If you do not know what you lost, you either have to do some digging and fine out using IT forrentics principles or do a full restore.

Unless you know the cylinder information for the old partition, you'll have to guess or use recovery tools to help you do forentic analysis on the disk to see if you can find what the values should be. That assumes no data was wiped out by Window's Disk Manager - which it may very well have been. Hopefully somebody on here would know.

It can be easy - if you have the information required to know what was lost, and know what to set it to. Nobody here can tell you since we don't know your system before you deleted things - and exactly what was deleted. There are plenty of tools out there to help you diagnose and search for lost partitions, but that will not help you if more than just the partition entry was deleted. Since we don't know what you did, it's impossible to tell you what to do.

Sunday, November 29, 2015

How to disable USB storage device and external Hard Disk Fedora?

Issue:

How to disable USB storage device and external Hard Disk ( Note:- Don't want to disable USB keyboard and mouse ) in Red hat 7 and CentOS 7.

Solution:

You have to edit and write a few udev policy rules.

You cannot "disable" it (easily) - remove the plugs from the mother board, inactivate them in the bios is as close as you get to disabling things completely. In the end, the way to prevent it's use is to not install software to use a feature, and not provide physical access to a system. Once it's known by the BIOS it's known to the system. You can completely remove USB support from the kernel, but you can still work around that in theory.

So remove FUSE, use udev to set security so the devices cannot be accessed by end users (note that anyone can create device file and use that - so you need other system security like selinux to block for those options). http://weininger.net/how-to-write-udev-rules-for-usb-devices.html is an example of how to do udev. UDev is quite complex and has many many rules that you'll need to visit.

Saturday, November 28, 2015

Which course is best for future life? CCNA or Windows Server or Redhat linux

Deciding career between  CCNA or Windows Server or Redhat linux:

You're going to get 100 answers to that question, nobody can really tell the future. We don't know your background, we don't know the area you live in, your ability to relocate if need be etc. All of which impacts an answer that is useful for you. While data centers are now Linux and Windows primarily, that may not be what you end up working with. You may do Windows support more than anything, or maybe you end up as a storage admin which is skills you don't even list.

The internet runs on Linux - no doubt about it. But are those companies hiring where you live? Or are the companies where you live still mainly using Windows? In the next 4-5 years are you expecting to move to another area? If not, it's the area you live in mainly need Windows skills that is what you need to focus on. If they do Linux then focus on that. If they do both, do both! Common for all IT is networking, so that's not a bad skill to have.

So there's no way you are going to just be able to pick ONE of those. With time you should aim at getting all of them, and then some. Right now, your focus should be on what gets you hired or paid better at companies in your neighborhood You can find that using websites like Payscale, Glassdoor etc.

Friday, November 27, 2015

All the ports are open in Linux by default?

Recently I got a question in my mail from Seth - All the ports are open in Linux by default?

Linux is a kernel - no more, no less. A ton of software is needed in addition to the kernel, and you have a lot of options in regards to what software, and what it needs to do. That's why we have hundreds of distributions and even more if you include embedded devices that all are "Linux" but very very different. So when you ask what "Linux" does, it makes NO SENSE what so ever. You have to be specific here otherwise you're not going to get much of an answer - or rather something that is useful to you.

Presuming you're talking about RHEL or at least CentOS here - and that's a very big if - the firewall is enabled by default yes and will block all but port 22 incoming traffic.

Even some ports like 80 willnot be open on RHEL/CentOS after a default install. The only way you can get http and other services to work without opening the ports in the firewall, is by disabling the firewall (or not installing it).

Btw - note that different installation options results in different configurations. Every installation you do, you should NEVER assume a default setup - always explicitly set the features you depend on.