tag:blogger.com,1999:blog-63717082024-03-08T10:57:58.902-08:00Rob's daily blogComments and info from my daily life. From computers to photography.Unknownnoreply@blogger.comBlogger194125tag:blogger.com,1999:blog-6371708.post-37686643810935195232016-07-30T09:20:00.002-07:002016-07-30T09:20:50.088-07:00Working on a new blogIt's been a long time since I authored a blog posting. It's not that I've been away from tech or not having the time to post, but I wanted to create a new blog focused on technologies I'm focusing on at work. Right now, my work has been looking towards goals with reducing hours in the Operation Center, which leads me to explore automation platforms like Ansible and Python in general. So this month I'm going to fork off this blog and create a new blog which contains the tech stuff, then my personal blog (this one) will stay with life topics.<br />
<br />
Hope this makes things easier for myself and especially my readers.Unknownnoreply@blogger.com0tag:blogger.com,1999:blog-6371708.post-34944155534659615222015-08-09T11:46:00.001-07:002015-08-09T11:46:53.955-07:00Looking back upon O'Reilly School of TechnologyAs mentioned in the news, it looks like O'Reilly School of Technology is closing and giving students until end of this year to complete their course work. I posted about O'Reilly and my experience with the intro Linux class, which I liked but did have some objections. Basically, with the cost, felt you should have more materials and features included.<br />
<br />
Looking back at the class, comparing this with the offering in 2015, it's very hard to justify the cost. Let's just use the example of the Intro to Linux class, at the time was close to $250 after a large discount. You can basically complete the same class for <a href="http://training.linuxfoundation.org/free-linux-training" target="_blank">free through the Linux certification</a> and Edx. Not only that, but the amount of resources has grown, not to mention more videos plus books. In other words, it's hard to pay staffing for a paid class if it's competing again free resources.<br />
<br />
I'm hoping in the future we still see a trend towards more Linux based training. With the trend of learning to code making big waves, I still see a large lack of using Linux or even helping people take their code to live use. It's like many of these code schools are missing the gap, and they don't explain any sysadmin skills that would allow users to become "full stack".Unknownnoreply@blogger.com0tag:blogger.com,1999:blog-6371708.post-24419288770791974712014-08-25T13:14:00.000-07:002014-08-25T13:16:58.746-07:00Resetting root password in Red Hat and CentOS 7This process was a bit confusing and according to the official Red Hat documentation, has a few missing steps. I found the answer from another blog and this helped finally get to the real fix. Note, this is tested on CentOS7 on a VMware Workstation Virtual Machine.<br />
<br />
1. During the boot process, press the <b>E</b> key at the Grub2 menu.
<br />
<br />
<div class="separator" style="clear: both; text-align: center;">
<a href="http://3.bp.blogspot.com/-tZJL_OCYpls/U_uXWOvVLBI/AAAAAAAC0BM/qYzWRcxpQZE/s1600/rootpass1.png" imageanchor="1" style="margin-left: 1em; margin-right: 1em;"><img border="0" src="http://3.bp.blogspot.com/-tZJL_OCYpls/U_uXWOvVLBI/AAAAAAAC0BM/qYzWRcxpQZE/s320/rootpass1.png" /></a></div>
<div class="separator" style="clear: both; text-align: center;">
<br /></div>
2. Scroll down using the arrow keys (not the Vi method) to the line starting with "linux". It would look like this "linux16 /vmlinuz-3.10.0..."
<br />
<br />
<div class="separator" style="clear: both; text-align: center;">
<a href="http://3.bp.blogspot.com/-DfQm3hq7FeI/U_uXnhpRJlI/AAAAAAAC0BU/FAKX9rlnbX8/s1600/rootpass2.png" imageanchor="1" style="margin-left: 1em; margin-right: 1em;"><img border="0" src="http://3.bp.blogspot.com/-DfQm3hq7FeI/U_uXnhpRJlI/AAAAAAAC0BU/FAKX9rlnbX8/s320/rootpass2.png" /></a></div>
<div class="separator" style="clear: both; text-align: center;">
<br /></div>
3. Remove the following entries from that line, "rhgb" and "quiet". If you leave these, they mess up the console and do not allow a password more than one character.<br />
<br />
4. Add the following to the end of the line.<br />
<br />
"init=/bin/sh".
<br />
<br />
<div class="separator" style="clear: both; text-align: center;">
<a href="http://2.bp.blogspot.com/-vzKZuuS_m8Q/U_uX5vB-pwI/AAAAAAAC0Bc/uMdL92zmzrw/s1600/rootpass3.png" imageanchor="1" style="margin-left: 1em; margin-right: 1em;"><img border="0" src="http://2.bp.blogspot.com/-vzKZuuS_m8Q/U_uX5vB-pwI/AAAAAAAC0Bc/uMdL92zmzrw/s320/rootpass3.png" /></a></div>
<div class="separator" style="clear: both; text-align: center;">
<br /></div>
5. Press <b>ctrl+x</b> to continue the boot process.<br />
<br />
6. Once the system is booted, you will be at the root user in single user mode. But this is a read only file system.
Validate this by using the following command. This should fail.
# touch /tmp/test<br />
<br />
7. You need to mount the / filesystem. Use the command as follows.<br />
<br />
# mount -o remount, rw /
<br />
<br />
<div class="separator" style="clear: both; text-align: center;">
<a href="http://1.bp.blogspot.com/-SZRfI2WMzak/U_uYg94OEmI/AAAAAAAC0Bk/W7IRk4SJciI/s1600/rootpass4.png" imageanchor="1" style="margin-left: 1em; margin-right: 1em;"><img border="0" src="http://1.bp.blogspot.com/-SZRfI2WMzak/U_uYg94OEmI/AAAAAAAC0Bk/W7IRk4SJciI/s320/rootpass4.png" /></a></div>
<div class="separator" style="clear: both; text-align: center;">
<br /></div>
8. Test again that you can write to / after the remount.<br />
<br />
# touch /tmp/test<br />
<br />
9. Change the password for root.<br />
<br />
# passwd<br />
<br />
10. Touch the following file as a fix file process. This is for SELinux.<br />
<br />
# touch /.autorelabel<br />
<br />
11. Finally start the normal boot process. In some references you can use the reboot command but in my testing, it was not as stable.<br />
<br />
# exec /sbin/init<br />
<br />
12. Now login with the new password!
Unknownnoreply@blogger.com0tag:blogger.com,1999:blog-6371708.post-68330192942452798722014-08-23T01:09:00.001-07:002014-08-23T01:09:38.079-07:00Coming back to my blog and my exam pathIt's been a while since I updated this blog but wanted to keep people updated on my work and learning. Right now, I'm focusing on the Red Hat RHCE exam. About the end of 2012, I studied for the Red Hat RHCSA exam, which is the beginner exam focusing on the Red Hat Linux distro. The exam while difficult was a very good learning experience for myself, considering I'm still pretty new to the Linux world.
Since the certification is only valid for three years, I'm working on the next certification level, the RHCE. This exam is much harder and going to be more of a challenge for myself. The last exam I was able to self study but I really feel that I would greatly benefit from taking the official training class, especially since my work is offering to pay for it. The downside is I won't have the time to full prepare to pass the exam 100% but at least it's going to be five days of asking questions and at least getting to take a exam (even if I fail).
In other notes, I started up a site for the RHCSA and after it was abused by spammers, removed the entire MediaWiki install. It was painful but going to be an excuse to start it up again and remove all Red Hat trademarks from the site, just incase. Unknownnoreply@blogger.com0tag:blogger.com,1999:blog-6371708.post-36920339659666196782014-06-23T14:56:00.000-07:002014-06-23T14:56:22.898-07:00It's been a long timeThis blog hasn't seen much attention in the past two years. Mostly I've been focusing on work and personal life, plus learning as well. Right now my focus on work is moving from system administration to more knowledge of scripting and operational tools. In the next few weeks, I'll start up posting my tutorials and also add more to certification study paths. Unknownnoreply@blogger.com0tag:blogger.com,1999:blog-6371708.post-40240694665184935582012-08-04T03:01:00.002-07:002012-08-04T03:01:05.565-07:00More free resourcesThere's many many sources for education on the Internet that are free or nearly free. Recently I found a few links that are worth sharing.<br />
<br />
<b>Linux command line</b> -<br />
<a href="http://nixsrv.com/llthw" target="_blank">Linux the hard way command line</a> - I haven't run through the site yet but this offers a more advanced tutorial than other sites I've seen. This looks really amazing, but I heard there was some issues with certain commands not work correctly. There's even a handy console session to help practice the commands.<br />
<br />
<a href="http://cli.learncodethehardway.org/" target="_blank">The CLI Crash Course</a> - This is a tutorial that is aimed towards the new command line user. The nice thing is a video class is also offered by <a href="http://www.udemy.com/command-line-crash-course/" target="_blank">Udemy for a very reasonable $9</a>. <br />
<br />
<b>SQL</b> -<br />
<a href="http://sql.learncodethehardway.org/book/" target="_blank">Learn SQL the hard way</a> - Another "learn the hardway" series, this one focusing on SQL. The examples and screenshots are clear as with the other methods.<br />
<br />
<b>Python</b> -<br />
<a href="http://learnpythonthehardway.org/" target="_blank">Learn Python the hard way</a> - This is another one in the series, but also offers video classes from <a href="http://www.udemy.com/learn-python-the-hard-way/" target="_blank">Udemy for $29</a>. <br />
<a href="http://inventwithpython.com/" target="_blank">Invent with Python</a> - I bought the hard copy book recently and enjoy the idea of learning to program while making a game. The book is available for free online but you can order a copy from Amazon as well.<br />
<br />
<b>GIT </b>-<br />
<a href="http://gitimmersion.com/index.html" target="_blank">Git Immersion</a> - This is more for coders and developers but it's also handy for the sysadmin or general user. Git is used for checking in code, and updating it as needed. This tutorial is actually very clear and easy to follow.<br />
<br />
<br />
<br />Unknownnoreply@blogger.com1tag:blogger.com,1999:blog-6371708.post-84587790090668136762012-07-29T10:49:00.002-07:002012-07-29T10:49:24.097-07:00LPI LPIC-1 resourcesI'm working on the exam notes but wanted to write more details I found on the exam. Below are links that may be helpful for anyone studying for the exam.<br />
<br />
<b>Reading </b><br />
<a href="http://en.wikibooks.org/wiki/LPI_Linux_Certification" target="_blank">Wikibooks - LPI Certification </a> - Books cover the LPIC-1 and other LPI certifications<br />
<a href="http://www.happy-monkey.net/LPI/html/" target="_blank">Happy Monkey LPIC-1 Certification</a> - Long listing of the LPIC-1 certification in HTML and PDF formats<br />
<a href="http://www.ibm.com/developerworks/linux/lpi/index.html" target="_blank">IBM Developer Network LPIC-1 Certification</a> - This is slightly outdated but still holds many helpful details<br />
<br />
<br />
<br />
<br />
<br />Unknownnoreply@blogger.com1tag:blogger.com,1999:blog-6371708.post-78571854981385212532012-07-27T17:19:00.000-07:002012-07-27T17:19:01.927-07:00Studying for the LPIC-1 intro and outlineSince I'm studying for this certification I thought it would be a good idea to list the certification notes I have incase someone would like to also use them. The exact details of the exam are located at the LPI site but as with many exams, they are frequently updating the questions. The basis for my notes will be taken from the following link.<br />
<br />
<a href="http://lpi.org/linux-certifications/programs/lpic-1" target="_blank">LPI - LPIC-1 Certification outline </a><br />
<br />
Then to pass the certification, you need to pass two exams listed below. For now LPI has not added the recent updates to the full outline, so you will need to make sure you are current by reading both outlines.<br />
<br />
<a href="http://lpi.org/linux-certifications/programs/lpic-1/exam-101/" target="_blank">LPI - Exam 101 - full outline</a><br />
<a href="http://www.lpi.org/content/exam-101-objective-changes-july-2-2012" target="_blank">LPI - Exam 101 - updates as of July 2, 2012</a><br />
<br />
<a href="http://lpi.org/linux-certifications/programs/lpic-1/exam-102/" target="_blank">LPI - Exam 102 - full outline</a><br />
<a href="http://www.lpi.org/content/exam-102-objective-changes-july-2-2012" target="_blank">LPI - Exam 102 - updates as of July 2, 2012</a><br />
<br />
Since this will focus on the subject of passing the LPIC-1, we will start by going over the requirements of the 101 exam.<br />
<br />
<b>Overview of the 101 exam</b><br />
<br />
Exam 101 is broken down into four main sections.<br />
<br />
1) System Architecture<br />
2) Linux Installation and Package Management<br />
3) GNU and Unix Commands<br />
4) Devices, Linux Filesystems, Filesystem Hierarchy Standard<br />
<br />
Each of the main sections have their subsection, which is related to the main section. For example the main section of Linux Installation and Package Management will discuss how to use the <a href="http://en.wikipedia.org/wiki/Yellowdog_Updater,_Modified" target="_blank">package manager yum</a>.<br />
<br />
Each of the exams has 60 questions that are a mix of multiple choice, multiple answers (choose two answers) and you need to score 500 or higher to pass. You are given 90 minutes to take the exam but this is actually a good amount of time and allows for reviewing of your questions. The exam I took also has a nice feature where you can mark the answers you are not sure with a "review" marker. This allows you to you return to these questions before finishing the exam.<br />
<br />
<b>Who should take this exam</b><br />
<br />
From the <a href="http://lpi.org/linux-certifications/programs" target="_blank">LPI site</a>, this LPIC-1 certification is a listed as a "Junior Level Linux Certification". Currently in the IT world, this certification and the <a href="http://certification.comptia.org/getcertified/certifications/linux.aspx" target="_blank">CompTIA Linux+</a> are the standard Linux intro certifications available. There are many more Linux based certifications but from my personal research and also reading many employment listings, these are the certifications you most often see. Speaking of Linux+, if you pass the LPIC-1 certification you also qualify for the CompTIA Linux+ certification since they both use the same exams.<br />
<br />
If you're just starting out in Linux or have a few years of experience I think this certification would be time well spent. Even if you do not follow through to the exams, the amount of information is much more than a regular Linux user would use, and can be helpful. Keep in mind that while there is technically a lot of information discussed, the total amount of depth is more shallow than other certifications. LPIC-1/Linux+ focuses on both distros (Debian and Red Hat) so their focus is not a deep as say the <a href="http://www.redhat.com/training/certifications/rhcsa/" target="_blank">Red Hat RHCSA certification</a>.<br />
<br />
The questions also covered in the LPIC-1/Linux+ also are not something you often would use everyday in a Linux engineer or sysadmin role. Some comments on the certification have mentioned that the information is so rarely used that it doesn't make sense to study it (configuring IRQ's?) or it's just better to focus on other subjects leaving the details to an Internet search. The Red Hat RHCSA certification is above the LPIC-1/Linux+ in terms of difficulty and method of testing (all fill in the blank questions), and is normally considered the next Linux certification. The RHCSA also focuses more closely upon system administration tasks instead of a little bit of everything.<br />
<br />
<b>What will you need to study for the exam</b><br />
<br />
I would recommend the following to help study for this or any exam.<br />
<br />
<br />
<ul>
<li>Desktop or laptop with a<a href="http://en.wikipedia.org/wiki/X86_virtualization" target="_blank"> processor that supports virtualization</a></li>
<li>Desktop or laptop with at least 4GB of physical memory (the more the better)</li>
<li>Virtualization software (<a href="https://www.virtualbox.org/" target="_blank">Virtual Box</a>, <a href="http://www.vmware.com/products/workstation/overview.html" target="_blank">VMware Workstation</a>, <a href="http://www.vmware.com/products/fusion/overview.html" target="_blank">VMware Fusion</a>)</li>
<li>Books and resources</li>
<li>Time and dedication</li>
</ul>
<div>
If you have a computer that allows virtualization then you can install the study Linux host very easily without having to worry about issues of using two physical machines for studying. Also most virtualization software allows you to take snapshots where you can "freeze" the machine at a certain time point, make some changes and if they don't work, roll back to the saved snapshot. It's extremely helpful when you are working with details of the system that could impact startup. </div>
<div>
<br /></div>
<div>
I would recommend to have at least 4GB of physical memory but since we're working with Linux, the requirements are pretty low. On my person laptop, I'm able to run two Linux hosts (one is Debian and the other is CentOS) very easily with no noticeable lag. Personally I like using my desktop more than my laptop since I can have many virtual machines running, but I can bring my laptop to work and it's very handy to study during lunch time. </div>
<div>
<br /></div>
<div>
Reading books and where to search for the answer is somewhat confusing. Since the <a href="http://www.lpi.org/" target="_blank">LPI</a> who creates the test does not officially offer a book, your left to choose from the popular certification book vendors. I personally used the <a href="http://www.lpimarketplace.com/LPIC_1_CompTIA_Linux_LPIC_1_LX0_101_LX0_102_p/978-0-071-77157-3.htm" target="_blank">All in one LPIC-1/CompTIA Linux+ Certification</a> but heard high reviews for other books such as the <a href="http://www.lpimarketplace.com/CompTIA_Linux_Complete_Study_Guide_p/978-0-470-88845-2.htm" target="_blank">Sybex Linux+</a> and also <a href="http://shop.oreilly.com/product/9780596804886.do" target="_blank">O'Reilly LPIC-1 in a nutshell</a> book. </div>
<div>
<br /></div>
<div>
For the time and dedication, that it really the hardest part since you can't buy time. I would recommend to work on the exams section by section instead of reading the entire outline beginning to end. Making smaller check points for your goal will help stay focused instead of just focusing on finishing the certification. I would also recommend to work backwards, read the outline, then focus your study on these subjects. </div>
<div>
<br /></div>
<div>
Something that also helps, buy a large wall calendar and follow the <a href="http://lifehacker.com/281626/jerry-seinfelds-productivity-secret" target="_blank">Seinfeld method</a>. </div>
<div>
<br /></div>
<div>
<b>Let's get started</b></div>
<div>
<br /></div>
<div>
I'm going to start writing the notes for the System Architecture as I have time, and keep up the pace with my own exam study. </div>
<br />
<br />
<br />Unknownnoreply@blogger.com0tag:blogger.com,1999:blog-6371708.post-63844728956302775142012-07-27T12:05:00.000-07:002012-07-27T12:05:03.831-07:00So close yet so far!Today I took an exam for the <a href="http://lpi.org/linux-certifications/programs/lpic-1/exam-101/" target="_blank">LPIC-1 Linux certification exam</a>, the first of two to complete the certification. I failed by a score less than 20 points from passing, which was much lower score than expected. It's annoying when you don't pass on two parts, first you technically (more on this later) lost the money you spent on the exam. Second, you feel like the time you spent studying was wasted since you didn't pass. But in reality, it's not exactly a lose/lose senario.<br />
<br />
One of the method you prep for an exam is buying a book, then reading the book and focusing on the important details as mentioned by the author. Often times a certification book will focus more on passing the exam than actually getting knowledge of the subject the exam is testing. After this you may use the practice exam included in the book and once scoring high enough, will take the real exam. Hopfully passing the exam and on the way to the full certification.<br />
<br />
But for some users, this doesn't work out so well. Books usually have limited space to discuss technical topics that dwell deeper than a few paragraphs. The narrow focus of just passing the exam often leaves more questions, now I know this command where would I use it? Not to mention that with the copy rights and agreements for the real exams, it's often difficult to find practice exams that are close to or near the real thing. Often you will pass the practice exam but find out the real exam is different.<br />
<br />
So what is the best solution? It's really depending upon the person taking the exams and what they are used to. Personally I found the following to help me while studying.<br />
<br />
<b>Multiple sources for information </b><br />
<br />
I was using just one book for my LPIC-1 study program, and often found myself searching the Internet for a better explanation of the topic that was written in the book. One such topic was "suid" which is when an executable file is set to give the permissions of the owner when ran. The book I was reading explained how to set this up but not why or when it's used. Searching the Internet I found a <a href="http://www.linuxnix.com/2011/12/suid-set-suid-linuxunix.html" target="_blank">great site that actually explained the subject</a> in a much easier method to understand and even offered straight forward examples.<br />
<br />
<br />
At home, I also have two other books on the subject of the LPIC-1 certification and while I try to use one book and then the Internet searching, I will consult with these books plus other Linux books. Reason being is that certification books typically want to focus on passing the exam (which is why I buy them) but it's difficult to explain a complex subject within a limited amount of pages. If you have any doubt about the subject, research it further!<br />
<br />
<b>Real exam vs practice exam</b><br />
<br />
Something that is common with almost every exam book I read is the included practice exam CD. Typically this is a practice exam produced by a popular exam vendor such as <a href="http://www.transcender.com/" target="_blank">Transcender </a>or <a href="http://www.measureup.com/" target="_blank">MeasureUP</a>. Usually the exams are limited compared to the full practice exams from the vendor companies, meaning that they have a smaller question pool or offer less features.<br />
<br />
The big issue I see here is really a strange problem between the test vendors and the practice test vendors. The vendors who write and issue the certifications do not want their certifications to loose value, so they often will have agreements with the test takers to not report any of their questions. This is to make the exams harder to pass and also stop <a href="http://en.wikipedia.org/wiki/Brain_dump" target="_blank">brain dumps</a>. But also how do you study for an exam test if you're not sure what will be asked? Isn't that the point of using a practice exam?<br />
<br />
One of the best advices I heard is save your money from the practice exams and just take the real exam. Now this is not the cheapest method, especially considering that most exams can cost anywhere from $150 (Microsoft exams), $400 (Red Hat RCHSA exams), and even higher for some of the high end exams. But you do get to take the exam in the real setting, and see the actual questions. Even if you do fail, you still come away with the experience and also a grading chart showing what parts you missed and needed work.<br />
<br />
Plus the big benefit, if you score highly you actually pass the exam not just pass a practice exam. The hardest part is spending the money multiple times if you are unsure of your skills for the exam. This is really off set by doing a self study program instead of paying for a video series (usually $500) or taking a certification boot camp ($3,500).<br />
<br />
For now I'm still working on finishing the certification, but I feel much better that I saw so close the first time rather than just guessing how close I was using practice tests.<br />
<br />Unknownnoreply@blogger.com0tag:blogger.com,1999:blog-6371708.post-10272263731560284142012-07-16T11:13:00.002-07:002012-07-16T11:13:24.382-07:00Preparing for an certification examThe past two months I've been studying for the<a href="http://certification.comptia.org/getcertified/certifications/linux.aspx" target="_blank"> Linux+</a>/<a href="http://www.lpi.org/linux-certifications/programs/lpic-1" target="_blank">LPIC-1</a> entry level Linux certification. The certification while entry level contains a large amount of details normally not used in daily operations, but still handy to know. So I went the typical route of buying the best rated book on Amazon, then going through the entire book chapter by chapter to study it. I feel the best way to study is writing down notes of the chapters, so I used Evernote from home and work.<br />
<br />
After finishing the book, I continued on to the practice exams and found that I still didn't pick up most of the details from the book. I knew a large amount of details, improved my Linux knowledge overall, but the obscure details (font servers, etc.) were missed. I started to re-think my plan of studying, maybe I was going about this incorrectly?<br />
<br />
I started to switch course and instead of using the book and going chapter by chapter, I checked out the actual guidelines for the exam. Here's <a href="http://www.lpi.org/linux-certifications/programs/lpic-1/exam-101" target="_blank">LPIC-1 101 exam</a>, which is one of two exams required for the certification. A nice feature of my book is that they include a PDF which following the exam and then gives you the chapter with page number where the topic is discussed. After switching to this method, I started to go down each section and take notes about the topic.<br />
<br />
Since I was going straight to the answers, it was a much faster read and felt that I skipped over the unimportant (for the exam) topics. Also the big benefit is that I know for certain if I have a solid understanding of these topics, I can pretty much pass the test. But why and when would you want to read the book end to end?<br />
<br />
If you need understanding how each component fits together, then I would recommend reading end to end. For example, if you're already using Linux or administration across other operating systems you know that troubleshooting often starts by reading the system logs. So you really don't need much back story as to why it's important to know the locations or using a search command (grep). For the newer users of Linux or someone fresh from school, they might not understand how important the logs are, then it would be good to read the entire chapter about logs and searching.<br />
<br />
Also reading the book end to end allows you better understanding why you would need a search tool like grep then another tool like awk to help filter logs. A final good reason for reading the entire book is the examples and tutorials given in the book. Personally I feel that the tutorials help but the best method to learn is by figuring out yourself, which often leads to more research outside the book's text.<br />
<br />
Something else to add, if you're preparing for an exam, use as many reliable sources of the information they you need. Currently I'm reading two books plus going over with two practice exams, and various information from the Internet. I'm pretty sure you could pass the test with just reading a single book but honestly it's a lot of information and there were questions left unanswered and just not possible to explain given the limited number of pages.<br />
<br />
<br />Unknownnoreply@blogger.com0tag:blogger.com,1999:blog-6371708.post-61610312107906597502012-07-08T22:12:00.001-07:002012-07-08T22:12:54.848-07:00O'reilly School of Technology reviewComputer based teaching is a very to get just right. Sometimes you may presented with too little information while other times, it's too much and hard to follow. I found some of the online classes I taken in the past for work was a 30 page slide show with a short quiz at the end. By the time I was through the first chapter, I was dulled by the information given and lack of interaction. On the side, a class presented me with one or two paragraphs of text and then expecting me to complete an assignment with no outside information.<br />
<br />
But computer based training that is based on-line has many benefits. The pricing of classes is usually cheaper than attending a physical classroom. Also the classes are available 24 hours a day, which works out great work people with changing work hours. Combined with the information you have available anywhere, the benefits are welcome for anyone.<br />
<br />
Recently I took it upon myself to take a class with <a href="http://www.oreillyschool.com/" target="_blank">O'reilly School of Technology</a>, which is part of the O'reilly book publishing company (the animal tech book publisher). The class I enrolled with is the first <a href="http://www.oreillyschool.com/courses/asac1/" target="_blank">Linux/UNIX class</a> for their <a href="http://www.oreillyschool.com/certificates/system-administration.php" target="_blank">System Administration certificate</a>. The class focuses on the file system which includes user/group administration, cron jobs, hard and soft links, plus more. It's a general overview of the system, but not too in depth as there are three other classes (four classes are required to complete the certificate).<br />
<br />
From the start, you work the entire classroom from a web page, which includes accessing the lab server and the lessons. This makes it very handy as you can access your class from any computer with a web browser. Here I tested mostly Google's Chrome on Windows and Mac which no problems. The lab access while handy, does cost an additional monthly fee but going with this during a normal pace you should be done within two months of light weekend work. On the side note, you can also complete the work without the lab but the work will be harder to present to the course instructor.<br />
<br />
When you login to your virtual classroom, you are presented with the following as seen below. You have a file explorer on the left side. Followed by the class lessons and reading in the middle, then on the right is the reading page. Below is the console login for your lab host. The simple method of presenting information worked well but I did noticed from all networks that I connected to, there was a delay in working with the lab console. Also a big plus is the lack of any Adobe Flash on the site, a huge thanks!<br />
<br />
<div class="separator" style="clear: both; text-align: center;">
<a href="http://2.bp.blogspot.com/-JNj-8UBm5KE/T_oz6B1zNGI/AAAAAAAAHHc/0QSJoo-qOLw/s1600/7-8-2012+4-46-52+PM.jpg" imageanchor="1" style="margin-left: 1em; margin-right: 1em;"><img border="0" height="126" src="http://2.bp.blogspot.com/-JNj-8UBm5KE/T_oz6B1zNGI/AAAAAAAAHHc/0QSJoo-qOLw/s400/7-8-2012+4-46-52+PM.jpg" width="400" /></a></div>
<div class="separator" style="clear: both; text-align: center;">
<br /></div>
<div class="separator" style="clear: both; text-align: left;">
The work is typically as follows. You are presented with a small chapter of information on a subject, which includes steps how you can do this in your lab console. Then you have a few assignments where you complete the work by either providing proof to the instructor (edit a file on X host) or by answering the question correctly. Then you are presented with a quiz, in a similar manner. It should be noted that none of these questions are multiple choice, and they are graded by a actual human. </div>
<div class="separator" style="clear: both; text-align: left;">
<br /></div>
<div class="separator" style="clear: both; text-align: left;">
After you submit the homework and quiz, the turn around time for the corrections is about 24~48 hours, but I saw much faster times especially during the weekdays. If you're answers are correct, then you move on to the next step but if they are incorrect, the points where you are incorrect are marked and notes are provided why. It's important to note that the questions do not change as far as I know. This means that if you fail the question on the first time, when you return to answer the question, it's the same. </div>
<div class="separator" style="clear: both; text-align: left;">
<br /></div>
<div class="separator" style="clear: both; text-align: left;">
The total amount of time to complete the class was about a month for myself, and that was taking my time, working on it as I wanted. For someone who was more focused, I'm sure this class could be done in a week, but I'm not sure just how fast the turn around for corrections could be completed.</div>
<div class="separator" style="clear: both; text-align: left;">
<br /></div>
<div class="separator" style="clear: both; text-align: left;">
The biggest question I had before attending this class is the pricing and what I would get from this. I personally dislike on-line classes, and I have taken classes from physical fitness, IT and math based subjects. All of them I felt lacked personal interaction and you mostly received generic answers and replies from the instructor. Also the lack of working with peers in the class also makes it more difficult to interact with other students for additional help or studying outside of the classroom. </div>
<div class="separator" style="clear: both; text-align: left;">
<br /></div>
<div class="separator" style="clear: both; text-align: left;">
With the O'reilly school, I felt that it was a good amount of information and the interaction was much better. While the subject matter felt less than what I expected I did learn from the assignments and also it forced me to really think about my answer since it wasn't just answering a random multiple choice quiz at the end. The depth of knowledge required for this class was entry level into the world of Linux/UNIX and I feel like it was a slightly below my skill level but I still came away with some details I didn't know. </div>
<div class="separator" style="clear: both; text-align: left;">
<br /></div>
<div class="separator" style="clear: both; text-align: left;">
Now if you are more focused on your own studying and can follow along in a book, this might not be the best value for you. You can find books and other learning materials available either <a href="http://tldp.org/" target="_blank">free</a> or for under $50 that offer much more information. But the big difference is that instead of working by yourself, you have someone to correct and assist in the labs with O'reilly. This doesn't sound like much but for some (especially myself) the contact with a instructor was extremely helpful. This also helps get you working harder and staying towards your goal since it's a live person you are working with, assigned to you. </div>
<div class="separator" style="clear: both; text-align: left;">
<br /></div>
<div class="separator" style="clear: both; text-align: left;">
From my experience with this first class in the series, I am not sure I would continue with the other four classes. This is mostly based upon a few factors, one is the cost (at current pricing they are $400 per class plus lab time) and the other is subject matter. I'm currently focusing to complete my <a href="http://www.lpi.org/linux-certifications/programs/lpic-1" target="_blank">LPIC-1 certification</a> this summer and the classes offered by O'reilly while complete do not fully match the requirements of the exam. Also I want to further go into scripting and small amount of <a href="http://www.python.org/" target="_blank">Python</a>. </div>
<div class="separator" style="clear: both; text-align: left;">
<br /></div>
<div class="separator" style="clear: both; text-align: left;">
Personally I would recommend anyone who is interested in the<a href="http://www.oreillyschool.com/" target="_blank"> O'reilly school</a> to take advantage of the trial service which gives you limited access to the classes within seven days. If you don't like it, you can get a money back refund, but only if you do not go further than a set amount of lessons. Read the fine print before going too far in the class work as I heard it's something like 5 assignments (about two hours of work). </div>
<div class="separator" style="clear: both; text-align: left;">
<br /></div>
<br />Unknownnoreply@blogger.com4tag:blogger.com,1999:blog-6371708.post-5830654413340634912012-06-08T00:38:00.003-07:002012-06-08T00:39:21.725-07:00Umask confusionI've been studying for the LPI LPIC-1 test, which is a basic introduction to Linux certification. So far it's been a very interesting experience, really finding out so much more about the nuts and bolts of Linux. But there are some confusion I'm having, and find it best to write it out to solve the problem.<br />
<br />
One confusion is with the Umask function and command. Here's a short summary on the subject.<br />
<br />
In the Linux and UNIX system, new files and directories are created with a default permission. Keep in mind the following.<br />
<br />
<ul>
<li>Read - 4</li>
<li>Write - 2</li>
<li>Execute - 1</li>
</ul>
<br />
<br />
<ul>
<li>Files - 666</li>
<ul>
<li>Owner - Read, Write</li>
<li>Group - Read, Write</li>
<li>Other - Read, Write</li>
</ul>
<li>Directories - 777</li>
<ul>
<li>Owner - Read, Write, Execute</li>
<li>Group - Read, Write, Execute</li>
<li>Other - Read, Write, Execute</li>
</ul>
</ul>
<div>
The owner is the user account who created the account, the group is the group associated with the file (most times it's the same as the user name), and the other is anyone who is authenticated on the system. </div>
<div>
<br /></div>
<div>
Now the issue is that on a system shared by multiple users, these settings leave little to be secured. How can the Linux system have the files locked down but still allow others access? This is where the command umask comes in. Umask allows the system to follow a default setting of security across the system, sort of a lock down depending upon how secure you want it. </div>
<div>
<br /></div>
<div>
Let's first find out what is the current umask setting. </div>
<div>
<ol>
<li>From your command prompt, run the following command</li>
<ol>
<li>#umask</li>
</ol>
<li>You should see a value such as "0022"</li>
</ol>
<div>
For most Linux distributions, the default is 0022. Only the last three values are used, the first "0" is not used. For this detail the settings of umask are as follows. </div>
</div>
<div>
<ul>
<li>umask setting of "0022"</li>
<ul>
<li>First "0" - Not used</li>
<li>Second "0" - Amount to remove from default settings of owner permission</li>
<li>Third "2" - Amount to remove from default settings of group permission</li>
<li>Fourth "2" - Amount to remove from default settings of other permission</li>
</ul>
</ul>
<div>
Sounds confusing but here's how this is calculated. </div>
</div>
<div>
<ul>
<li>umask setting of "0022"</li>
<ul>
<li>Files - default is 666</li>
<ul>
<li>Owner - 666 - 0 = 666 </li>
<li>Group - 666 - 2 = 664</li>
<li>Other - 666 - 2 = 664</li>
</ul>
<li>Directories - default is 777</li>
<ul>
<li>Owner - 777 - 0 = 777</li>
<li>Group - 777 - 2 = 775</li>
<li>Other - 777 - 2 = 775</li>
</ul>
</ul>
</ul>
<div>
As you can see, the setting of "0022" (more commonly reported as 022 since we drop the first zero since it's not used) will remove permissions for Group and Other. This change is not so impacting but if we wanted we could make the system more secure by using higher amounts of umask. For example, 077 would give only the owner of the files the right to read, write and execute. </div>
</div>
<div>
<br /></div>
<div>
Now that we know the basics of the umask command, how can we change this? There's really two methods, one is from the command umask.</div>
<div>
<ol>
<li>From your command prompt, run the following command</li>
<ol>
<li>#umask 0026</li>
</ol>
<li>Now create a directory and file</li>
<ol>
<li>#mkdir testdir</li>
<li>#touch testfile</li>
</ol>
<li>Let's see if the permissions are different than before</li>
<ol>
<li>#ls -l</li>
</ol>
<li>You should see the following permissions</li>
<ol>
<li>Testdir - 751 (rwx-rx-x)</li>
<li>Testfile - 640 (rw-r--)</li>
</ol>
</ol>
<div>
But the change done by umask is not permanent, to do that you need to edit the /etc/profile. You can view the file and find out that there's actually two values given in the file (here we are using CentOS). Why are there two values in the file? </div>
</div>
<div>
<br /></div>
<div class="separator" style="clear: both; text-align: center;">
<a href="http://4.bp.blogspot.com/-owZysPJ7wkY/T9GpN2FVOiI/AAAAAAAAHHQ/HkLj2xOILxc/s1600/screenshot4.jpg" imageanchor="1" style="margin-left: 1em; margin-right: 1em;"><img border="0" height="231" src="http://4.bp.blogspot.com/-owZysPJ7wkY/T9GpN2FVOiI/AAAAAAAAHHQ/HkLj2xOILxc/s400/screenshot4.jpg" width="400" /></a></div>
<div>
<br /></div>
<div>
<br /></div>
<div>
The file script checks for the user account UID, and depending on the number, the user will either receive a umask of 002 or 022. Remember that service accounts are typically UID's under 200, while regular user accounts have UID's starting at 500 (typically). Also root has the UID of 1, so basically the system is giving a less enforced policy for more important accounts. </div>
<div>
<br /></div>
<div>
To view the account UID, in two methods. </div>
<div>
<br /></div>
<div>
<ol>
<li>From the command prompt, run the following command</li>
<ol>
<li>#id -u useraccount</li>
<ol>
<li>Number returned will be your UID</li>
</ol>
<li>#cat /etc/passwd</li>
<ol>
<li>A full listing of all accounts on the system, showing UID</li>
</ol>
</ol>
</ol>
<div>
For more information about umask here are some very good links to read up on. </div>
</div>
<div>
<br /></div>
<div>
<a href="http://www.cyberciti.biz/tips/understanding-linux-unix-umask-value-usage.html" target="_blank">What is umask - Nixcraft</a></div>
<div>
<br /></div>
<div>
<a href="http://www.linuxquestions.org/questions/linux-newbie-8/umask-issues-612030/" target="_blank">Umask - Linux Questions Forum</a></div>
<div>
<br /></div>Unknownnoreply@blogger.com1tag:blogger.com,1999:blog-6371708.post-7361123754905777522012-06-05T16:06:00.001-07:002012-06-05T16:06:37.335-07:00Script to help with timing issues on virtual guestsThere's an issue when running a virtual machine that the time gets incorrectly updated. The problem is that when you suspend the computer, the virtual machine will suspend and return with the incorrect time, instead of updating from the Internet. I have seen this issue more so on Linux than on Windows, but for Linux it's easily fixed by a simple script. Here's the basic steps to get it working.<br />
<br />
<br />
<ol>
<li>Open up Vi or your favorite editor on your virtual machine</li>
<li>Type in the following details</li>
<ol>
<li>#!/bin/bash<br />service ntpd stop<br />sleep 5<br />ntpdate pool.ntp.org<br />sleep 5<br />service ntpd start</li>
</ol>
<li>Save you file</li>
<li>Change the permissions to all the file to be executable</li>
<ol>
<li>Run the following command</li>
<li>#chmod 755 filename</li>
</ol>
<li>Test the command</li>
<ol>
<li>Run the following command</li>
<li>#date</li>
<li>You should see an incorrect time</li>
<li>Run the script, note the "./" before the script name</li>
<li>#./yourtimescriptname</li>
<li>Run the following command</li>
<li>#date</li>
<li>You should see the correct time</li>
</ol>
<li>Now your virtual machine is updated</li>
<li>You can add this script to a cron job or login script to automate the process</li>
</ol>
<div>
So far I just run this manually since I rarely reboot the virtual machine or login or out. You can make a symbolic link or an alias to make things easier to manage. </div>
<div>
<br /></div>
<div>
<br /></div>Unknownnoreply@blogger.com0tag:blogger.com,1999:blog-6371708.post-87242183263801772432012-06-03T02:31:00.002-07:002012-06-03T02:31:23.706-07:00Adding a drive to VMware Workstation Linux guest without restartingRecently I was working on a CentOS 6.2 guest on VMware Workstation 8 and I wanted to add an additional hard drive. From VMware Workstation I knew how to do this but not from the Linux side. Being unfamiliar with this, searched and found a few handy steps to add the drive without rebooting the Linux guest.<br />
<br />
First, let's see what drives are showing up for the Linux guest. From the host we're going to check the /dev directory and see what drives are showing up.<br />
<br />
<div style="font-family: "Courier New",Courier,monospace;">
#cd /dev</div>
<div style="font-family: "Courier New",Courier,monospace;">
#ls</div>
<br />
<br />
<br />
<img alt="" src="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAARMAAACTCAIAAAAiDGqDAAAH70lEQVR4nO2aS5LkKhAEdcl3yT7lLMasX42EgkgqQYDcrRcq0C8/AYno4+e/4/fvhGg8/RUvuTvWTxFnPsnPz/HzE2g/dZ1O+/vzt1HcZFb8gBYbr+dMEveoXWHlOA/eSjnH8U+unxrF+cXTTrd6vXLmCTrK6UZRA9Uz9VXvVs5UEU9WjrCzrVrzbzgFItHNrn2VI+quFRMgYJc49bexeAvRdT12rrrrnYLPlUmxYNNdx41ailctgghWKMrX9mcTIGrXLMz7ZpAHUU4Gh74BopzDPNM09IMoAwAAAMBQHi86+9W+I017YQUvjI36wd+xGIBr1wzB7uGU8Xn8KuUIY6N+mGqTNGDXDMFGOcuRqBxx+QLKuXvF0AQqbD7dSj/OeY2qf3OneH1Dp9LYBuHeatfdT+e03p4M26Wz9tplZnC6qPxnicY2zCQQT9xMPEfcWEc5d4lx/Ju7XQnY1UkSDcppvn9v5Yi7mSMCyqkqR1zljE1ZJCtHXP8S5RwfUfzyzfcgVzk62Ua6EeX08rJvF8oRjaZzzJxMBOX83/i9u3uYvDrCvcWulBFnpHLqdokk0OIpnvDZWDT7etWpxbxKP6t452/40uS7N1waJ0OKjcWIV9NjmAOjdo0j9Oz9Eg4OwurTXLrg4v0gpjEa5tzB0zT0Y3zRBQAAAAAA39JWwS9d9Is3b/ND9XPwGBLtAotodJdeLos3b/ODuHz8Zk60C77iVZ8N+2WY2AkdAMpJRpcTd13VqK8YDH+/X8wk0apsgKPa7AKFmQQNClk3DFFjHeXMMMTM8A5b4aS+nnNQjrOYaXhcLignH1GPXY91V/GctchVTtUPKGd5fHmgHNHoOMd8XC4oJxMz6u9UjpiH25wTXQLlErULKogVy2djMQl0V/GeSyDeXDvq1Httf9ZRUbsAxkH+AYRBNgAuq5emAAAAAABvJFrBb1D3i9eOWuR89B+5pdPQBe34oXX2/iZHvHPUnC83SXNJtAtcmj27Ykj6ZdizuYtyktE1g1Np6DsvRNt+vzl7PJi4U/0fwyaYSdAQ9XXDEDXWUc4M4/0M77AVTupHV7dLRyJdOZOk7CSvsRWiHrse665iy1rkKmeefJ3nTXbDl4fZtSiJypkqWad6meUxo96snBVDIlZ3xa5VRpyoXVBBrFg+G4uRvksjcc8lEG+uHXXqFd54xFFRuwDGQf4BhEE2AC6rl6YAAAAAAG/kWsFvX9ML06JWOx/9hzkz0S6wEHtn+yFMi1o9505oqAu+AuVUu5698/xP3xBdMziVxjaITf1q193ParvT+yVtdoHCTAIx5+zn7ujY7ChHy2mMD5lzknHGSF2tbeb3dOU4/qFaWxJRj12Pnd6lyVWO6RyUszAi5ChHdIX81vDQLFBOJmbU36kcc3XnK8fs6kTULqjwuUgtOrToU3HVBgi7tKNOvdf2Z30YtQtgHOQfQBhkA+Cyd+EKAAAAALAn4nNq9apFEW8eNcpZBY38Kt3QBe3ondC78xcNRmKKO9udw3w1g3RfR0g5q39o6pdhegu1NygnGV1OVP+9YKdg+Pv9YibRm/TFlt6+arMLFGYSNER93TBEhwO/JLtrYc5ZEif1GwK/bjDSlVOdzMeM9ygnH1GPXY+d3rvGJchVjuMH5py1ESFHOaIr5LfoExNBOZmYUX+ncoTVwnyzq3jbrkTtggqi1P5sLCaBvmpM+d4D8eYhk6/td0PMSPH4dgGMg/wDCINsAFxWL00BAAAAAN7ICyt4YWzUD3erIOeDdTqJdoHFq5STuNfub5IOINEucHmVZ/tlGMrZirYd7i0/xYryqdp19zN6Wg/a7AKFmQRtubIo0bHZ8UZ16BmzyGHOycQZI/eWyol05TjuGuBSlJOPqMeux9efm5GrHNNXKGdhRMhRjujy/db20CxQTiZm1N+5zhHzsOmcqQajqF1QQaxTPxuLkS5etQHCLu2oU++1/VkfRu0CGAf5BxAG2QC47F24AgAAAAC8iL2Le2FR1FjtqMEOTLQLWnjJTmioyzn/Wb8l2gWNoJzv7zzeaSgnmYb/IShuk2+Av9/fMJM8ONy02QUKEU4xQJ7ktJnHo2OzIwkxKg1zIHNOMs4YKQYqcYdFSVdOs95yQTn5iFLtenw9fzO/5ypnnuIN5fTCrNyqP1cnUTn+rVDOYny5zin+XB1RhRa72kacB5Vj2gUVPhctRYdGuzZA2OV44ySPO1+N92HULvgWfOqDr96OWa/DJzgKjmPT7Zp09i5cAQAAAABex66VvTAqaq/5SXqMJxPtgnZ2XRMLo6L2zrkTGuqCZDb+mtQvw57NXZSTjPOPAseNczfzuL/fL6YLvUmvH92JNrtAYZYTbdmwKNGx2VHOg7JxnrJlHLvjqALliK6qcmaQjX7QlnEcgSjVrsd352xDrnImkY1+1pZxHIdZuYlL9iBROVX/oJxVYZ1z5dcoMQ8L55hddy39iNoFFX5LtTuHOl2buVsYFfLGtf1B5Rxxu+Bb8KkPvno7oXod/oKj4Di2/keBRDauWgEAAAAA3sXexb2wKGps20f/TiTaBS1UN/iWJnGv/ZtN0nQS7YIcNvN7vwxDOVvhlBPHvXN3crrY76923f00T+vqxja7QGGWE2+QzS/RsdnRgGgclrLMOck4qvCzYQPSldOst1xQTj6iVLse37VsQ65y2oq3HqCcXpiV2/XnZiQqx7/VVMr5A2vG4B6owq/pAAAAAElFTkSuQmCC" /><br />
<br />
Here we can see that there is three drives, sda, sdb and sdc listed on the guest. Under these two drives is three partitions titled sda1 and sda2, plus sdb1. Notied that drive sdc does not have any partitions. This breaks down like this.<br />
<br />
<ul>
<li>SDA</li>
<ul>
<li>SDA1</li>
<li>SDA2</li>
</ul>
<li>SDB</li>
<ul>
<li>SDB1</li>
</ul>
<li>SDC</li>
<ul>
<li>No partitions </li>
</ul>
</ul>
So now, we want to add an additional hard drive then add an partition.<br />
<br />
From VMware Workstation, we're going to add the drive to the guest.<br />
<br />
<ol>
<li>Right click the guest, and click the "Settings"</li>
<li>The Virtual Machine Settings window will open</li>
<li>Click the "add" button</li>
<li>The "Add Hardware Wizard" window will open</li>
<li>Select "Hard Disk" then click the "Next" button</li>
<li>Under the "Select a Disk" leave the default as "Create a new virtual disk", then click the "Next" button</li>
<li>Under the "Select a Disk Type" leave the default as "SCSI", then click the "Next" button</li>
<li>Under the "Specify Disk Capacity", change the value for "Maximum disk size (GB)" to the amount you want. For this example, I will be using 5GB. Then click the "Next" button</li>
<li>Under the "Specify Disk File" leave the file name as default and then click the "Finish" button</li>
<li>Back at the "Virtual Machine Settings" window, click the "OK" button to complete </li>
<li>The new drive has been added to the guest</li>
</ol>
If you check the guest again, you will notice that the new drive does not show up automatically under the /dev directory. There are two solutions to this, one is restarting the guest, the other is a little bit longer method. We're going to follow the second step, which is handy if you wish to keep the system up.<br />
<br />
These commands were posted on another blog, <a href="http://www.cyberciti.biz/tips/vmware-add-a-new-hard-disk-without-rebooting-guest.html" target="_blank">Cyberciti's how to add a new VMware hard disk article</a>. <br />
<br />
First we're going to scan the system for the new drives. We need the host numbers on the guest machine first.<br />
<br />
<ol>
<li>First find the host number on your system</li>
<ol>
<li>Run the following command</li>
<li>#ls /sys/class/scsi_host</li>
<li>You should see the return of "host0" or more </li>
</ol>
<li> Force the system to scan the drives</li>
<ol>
<li>The host number you found in the previous step will be used here.</li>
<li>Run the following command</li>
<li>#echo "- - -" > /sys/class/scsi_host/host2/scan (note on my system it's "host2")</li>
<li>After this you may see a message of the drive scanned on the machine</li>
</ol>
<li>To confirm, check the logs for messages of new drive</li>
<ol>
<li>Run the following command</li>
<li>#tail /var/log/messages</li>
<li> This will be sequential from the last drives. For example, if you see in
/dev drives SDA, SDB, then you should see logs for drive SDC </li>
</ol>
<li>From fdisk we're going to also validate it's showing up</li>
<ol>
<li>Run the following command</li>
<li>#fdisk -l</li>
<li>You should see the drive showing up that matches the drive from step 3</li>
</ol>
<li>From /dev you should also see the new drive listed</li>
<ol>
<li>Run the following command</li>
<li>#ls /dev</li>
<li>You should see the drive showing up that you just added </li>
</ol>
</ol>
Now that we have the drive installed and viewed from the guest, let's create the partition and format. We are going to be using the steps as mentioned in the blog <a href="http://www.cyberciti.biz/faq/linux-disk-format/" target="_blank">Cyberciti's how to add Linux hard disk</a>.<br />
<br />
<ol>
<li>First find the drive has been discovered on the system</li>
<ol>
<li>Run the following command</li>
<li>#fdisk -l | grep 'Disk'</li>
<li>You should see the drive you added in the previous steps shown near the end of the list</li>
<li>Save this information for the next steps. </li>
</ol>
<li>Run fdisk to create the partition on the new disk (if anytime you get lost on commands, type "m" for the command menu</li>
<ol>
<li>Run the following command</li>
<li>#fdisk /dev/sdd (your drive may be different)</li>
<ol>
<li>In fdisk, type "n" to create a new partition</li>
<li>Type "p" for a primary partition</li>
<li>Type "1" for a partition number</li>
<li>Type "1" for a first cylinder number</li>
<li>Type "1G" for size (this can be adjusted for your needs)</li>
<li>Type "w" to write and save the information</li>
<li>This will automatically close fdisk</li>
</ol>
</ol>
<li>Validate the partition is now showing up in /dev directory</li>
<ol>
<li>Run the following command</li>
<li>#ls /dev</li>
<li>You should see the new partition showing up under the drive you just created</li>
</ol>
<li>We're now going to format the partition with ext3 so that it's usable </li>
<ol>
<li>Run the following command </li>
<li> #mkfs.ext3 /dev/sdd1</li>
<li>You should see confirmation the command was successful</li>
</ol>
<li>Finally we are going to mount the drive</li>
<ol>
<li>Run the following commands</li>
<li>#mkdir /disk1</li>
<li>#mount /dev/sdd1 /disk1 (your drive may be different)</li>
</ol>
<li>Confirm the drive is showing up</li>
<ol>
<li>Run the following command</li>
<li>#df -H</li>
<li>You should see your new drive mounted</li>
</ol>
<li>Test the new mount</li>
<ol>
<li>Run the following commands</li>
<li>#touch /disk1/testfile</li>
<li>#ls /disk1</li>
<li>You should see your file written to the new mount</li>
</ol>
<li>Now set the mount at boot</li>
<ol>
<li>Run the following command</li>
<li>#vi /etc/fstab</li>
<li>Add the following line to the fstab file (note, I'm not going to show basic Vi commands here, you can find them across the Internet)</li>
<li>/dev/sdd1 /disk1 ext3 defaults 1 2</li>
<li>Save the file</li>
</ol>
<li>Done!</li>
</ol>
Now you should have a new drive on your virtual machine without restarting the guest. If you don't mind restarting then you can skip steps scanning steps. Also be careful of editing the /etc/fstab file, this can lead to problems with the boot of the machine.<br />
<br />
<br />
<br />
<br />
<br />
<br />
<br />
<br />
<br />
<br />
<br />
<br />Unknownnoreply@blogger.com2tag:blogger.com,1999:blog-6371708.post-67163090453733621132011-12-04T11:55:00.001-08:002011-12-04T14:02:36.321-08:00Install HTOP on FreeBSDWorking with command line I really miss some of the nice graphics you find with Windows based tools. The current <a href="http://en.wikipedia.org/wiki/Resource_Monitor" target="_blank">Windows Resource Monitor</a> included in Windows 7 and Windows Server 2008 is really my favorite. It's great to use for monitoring as it's a real time graph of the system performance. I know that Linux/UNIX tools like <a href="http://www.computerhope.com/unix/top.htm" target="_blank">TOP</a> can do the same but it's just visually easier to view a graph than numbers.<br />
<br />
I recently started to use <a href="http://htop.sourceforge.net/" target="_blank">HTOP</a> which is a more graphical version of TOP but is not as popular. The downside is that while it's more handy, you may need to have it installed manually, it's typically not included by default. Below is a screenshot of HTOP running.<br />
<br />
<div class="separator" style="clear: both; text-align: center;">
<a href="http://4.bp.blogspot.com/-WtpE7ajBpZo/TtvWBtg7yKI/AAAAAAAAG5U/qWQjdO8ORhA/s1600/htop.jpg" imageanchor="1" style="margin-left: 1em; margin-right: 1em;"><img border="0" height="151" src="http://4.bp.blogspot.com/-WtpE7ajBpZo/TtvWBtg7yKI/AAAAAAAAG5U/qWQjdO8ORhA/s400/htop.jpg" width="400" /></a></div>
<br />
Installing HTOP in CentOS is extremely simple.<br />
<br />
<span class="Apple-style-span" style="font-family: 'Courier New', Courier, monospace;"><b>#yum install htop</b></span><br />
<br />
Done! For Debian based systems, use the following command.<br />
<br />
<b><span class="Apple-style-span" style="font-family: 'Courier New', Courier, monospace;">$sudo apt-get install htop</span></b><br />
<br />
Simple and easy, now run htop. But what if you want to install htop for FreeBSD? That's going to take a little bit more work.<br />
<br />
Good news is that HTOP is available from the FreeBSD ports collection. This will make the process much easier that installing from source.<br />
<br />
<a href="http://www.freebsd.org/cgi/cvsweb.cgi/ports/sysutils/htop/">http://www.freebsd.org/cgi/cvsweb.cgi/ports/sysutils/htop/</a><br />
<br />
For the actual installing, I following a few blogs and forum postings. One from <a href="http://daemon80.blogspot.com/2007/09/htop-in-freebsd.html" target="_blank">The Technical Crib</a> pointed me how to install the Linux emulators for FreeBSD. But after following the steps I received another error during the install process, which was covered in this <a href="http://forums.freebsd.org/showthread.php?t=16611" target="_blank">FreeBSD forum posting</a>. Finally, as suggested in the previous link, the fix was to install the source, found how to do that in this <a href="http://www.cyberciti.biz/faq/freebsd-install-kernel-source-code/" target="_blank">Cyberciti blog posting</a>.<br />
<br />
Below I will write out the full steps that worked for me, didn't discover this but it's complied between all the articles I found.<br />
<br />
<b>Installing the requirements </b><br />
<br />
1) Su or login as root<br />
<br />
2) Run the command to enable <a href="http://www.freebsd.org/doc/handbook/linuxemu-lbc-install.html" target="_blank">Linux binarary compatibility for FreeBSD</a>.<br />
<br />
<b><span class="Apple-style-span" style="font-family: 'Courier New', Courier, monospace;">#kldload linux</span></b><br />
<br />
3) Add to the startup<br />
<br />
Edit /etc/rc.conf<br />
<br />
Add following line<br />
<br />
<b><span class="Apple-style-span" style="font-family: 'Courier New', Courier, monospace;">linux_enable="YES"</span></b><br />
<br />
4) Install <a href="http://www.freebsd.org/cgi/cvsweb.cgi/ports/emulators/linux_base-f10/" target="_blank">Linux base port f10</a>.<br />
<br />
<div style="text-align: left;">
<b style="font-family: 'Courier New', Courier, monospace; text-align: -webkit-auto;">#cd /usr/ports/emulators/linux_base-f10</b></div>
<span class="Apple-style-span" style="font-family: 'Courier New', Courier, monospace;"><b><br /></b></span><br />
<span class="Apple-style-span" style="font-family: 'Courier New', Courier, monospace;"><b>#make install clean</b></span><br />
<br />
5) Add linproc to fstab<br />
<br />
Edit /etc/fstab<br />
<br />
Add following line<br />
<br />
<b><span class="Apple-style-span" style="font-family: 'Courier New', Courier, monospace;">linproc /compat/linux/proc linprocfs rw 0 0</span></b><br />
<br />
6) Install <a href="http://www.freebsd.org/cgi/cvsweb.cgi/ports/sysutils/htop/" target="_blank">Htop from the port</a><br />
<br />
#cd /usr/ports/sysutils/htop<br />
<br />
#make install clean<br />
<br />
7) Htop should run!<br />
<br />
<span class="Apple-style-span" style="font-family: 'Courier New', Courier, monospace;"><b>$htop</b></span><br />
<br />
<b>Possible extra step</b><br />
<br />
*note - htop should complete the install with no problems. If you see an error as the following, you may need to install the source files to your computer.<br />
<br />
Error result ***<br />
<br />
<br />
<span class="Apple-style-span" style="font-family: 'Courier New', Courier, monospace;">===> Configuring for lsof-4.84A,5</span><br />
<span class="Apple-style-span" style="font-family: 'Courier New', Courier, monospace;">Creating ./lockf_owner.h from /usr/src/sys/kern/kern_lockf.c</span><br />
<span class="Apple-style-span" style="font-family: 'Courier New', Courier, monospace;">FATAL ERROR: can't read /usr/src/sys/kern/kern_lockf.c</span><br />
<span class="Apple-style-span" style="font-family: 'Courier New', Courier, monospace;">FATAL ERROR: ./lockf_owner.h creation failed (see 00FAQ)</span><br />
<span class="Apple-style-span" style="font-family: 'Courier New', Courier, monospace;">===> Script "Configure" failed unexpectedly.</span><br />
<span class="Apple-style-span" style="font-family: 'Courier New', Courier, monospace;">Please report the problem to ler@lerctr.org [maintainer] and attach the</span><br />
<span class="Apple-style-span" style="font-family: 'Courier New', Courier, monospace;">"/usr/ports/sysutils/lsof/work/lsof_4.84A.freebsd/config.log" including the</span><br />
<span class="Apple-style-span" style="font-family: 'Courier New', Courier, monospace;">output of the failure of your make command. Also, it might be a good idea to</span><br />
<span class="Apple-style-span" style="font-family: 'Courier New', Courier, monospace;">provide an overview of all packages installed on your system (e.g. an `ls</span><br />
<span class="Apple-style-span" style="font-family: 'Courier New', Courier, monospace;">/var/db/pkg`).</span><br />
<span class="Apple-style-span" style="font-family: 'Courier New', Courier, monospace;">*** Error code 1</span><br />
<span class="Apple-style-span" style="font-family: 'Courier New', Courier, monospace;"><br /></span><br />
<span class="Apple-style-span" style="font-family: 'Courier New', Courier, monospace;">Stop in /usr/ports/sysutils/lsof.</span><br />
<span class="Apple-style-span" style="font-family: 'Courier New', Courier, monospace;">*** Error code 1</span><br />
<span class="Apple-style-span" style="font-family: 'Courier New', Courier, monospace;"><br /></span><br />
<span class="Apple-style-span" style="font-family: 'Courier New', Courier, monospace;">Stop in /usr/ports/sysutils/htop.</span><br />
<span class="Apple-style-span" style="font-family: 'Courier New', Courier, monospace;">*** Error code 1</span><br />
<span class="Apple-style-span" style="font-family: 'Courier New', Courier, monospace;"><br /></span><br />
<span class="Apple-style-span" style="font-family: 'Courier New', Courier, monospace;">Stop in /usr/ports/sysutils/htop.</span><br />
<br />
<br />
Error result ***<br />
<br />
I am using FreeBSD version 8.2 stable and saw this error, so I followed one of the <a href="http://forums.freebsd.org/showthread.php?t=16611" target="_blank">links posted</a> and installed the <a href="http://www.cyberciti.biz/faq/freebsd-install-kernel-source-code/" target="_blank">kernel source code</a>. We're going to run through some settings with <a href="http://www.freebsd.org/doc/handbook/using-sysinstall.html" target="_blank">FreeBSD's sysinstaller</a>, it's kinda of confusing but take your time and carefully tab around.<br />
<br />
1) Su as root<br />
<br />
2) Run the sysinstaller<br />
<br />
#sysinstall<br />
<br />
3) Select "Options", then tab to the "Select" button, press enter<br />
<br />
<div class="separator" style="clear: both; text-align: center;">
<a href="http://3.bp.blogspot.com/-Bm06p6BVZzM/TtvpDhLf5NI/AAAAAAAAG5c/mPDdD5mZcoM/s1600/1.jpg" imageanchor="1" style="margin-left: 1em; margin-right: 1em;"><img border="0" height="190" src="http://3.bp.blogspot.com/-Bm06p6BVZzM/TtvpDhLf5NI/AAAAAAAAG5c/mPDdD5mZcoM/s400/1.jpg" width="400" /></a></div>
<br />
<br />
4) Under the Options Editor, use the arrow keys to scroll down to "Release Name" value, we are going to change this by removing the "-p3" after "RELEASE". Press the space bar to open an edit window.<br />
<br />
<div class="separator" style="clear: both; text-align: center;">
<a href="http://2.bp.blogspot.com/-K_ZKpQZL20M/TtvpQ-d-36I/AAAAAAAAG5k/GSVnlWdqYVc/s1600/2.jpg" imageanchor="1" style="margin-left: 1em; margin-right: 1em;"><img border="0" height="193" src="http://2.bp.blogspot.com/-K_ZKpQZL20M/TtvpQ-d-36I/AAAAAAAAG5k/GSVnlWdqYVc/s400/2.jpg" width="400" /></a></div>
<br />
5) In the edit window, remove the "-P3" value. This is done because when we download the source files, it does not know where to find this source. Tab to "Ok" when done. Then press "q" to quit to the main screen.<br />
<br />
<div class="separator" style="clear: both; text-align: center;">
<a href="http://1.bp.blogspot.com/-CB2bdNRsIhc/TtvpxwLi6HI/AAAAAAAAG5s/dEVNFJL5sYo/s1600/3.jpg" imageanchor="1" style="margin-left: 1em; margin-right: 1em;"><img border="0" height="166" src="http://1.bp.blogspot.com/-CB2bdNRsIhc/TtvpxwLi6HI/AAAAAAAAG5s/dEVNFJL5sYo/s400/3.jpg" width="400" /></a></div>
<br />
6) Back at the main sysinstaller screen we are going to select "Configure", then tab to "Select" and press enter.<br />
<br />
<div class="separator" style="clear: both; text-align: center;">
<a href="http://2.bp.blogspot.com/-9VXNkSUzFFQ/TtvqVSbT87I/AAAAAAAAG50/zU19EUoF1H8/s1600/4.jpg" imageanchor="1" style="margin-left: 1em; margin-right: 1em;"><img border="0" height="195" src="http://2.bp.blogspot.com/-9VXNkSUzFFQ/TtvqVSbT87I/AAAAAAAAG50/zU19EUoF1H8/s400/4.jpg" width="400" /></a></div>
<br />
7) Use the arrow keys to select "Distributions" then then use the space bar to select to continue.<br />
<br />
<div class="separator" style="clear: both; text-align: center;">
<a href="http://2.bp.blogspot.com/-w31Zc7IQtxo/TtvrCPXTbNI/AAAAAAAAG58/xMqzCgmsEXs/s1600/5.jpg" imageanchor="1" style="margin-left: 1em; margin-right: 1em;"><img border="0" height="172" src="http://2.bp.blogspot.com/-w31Zc7IQtxo/TtvrCPXTbNI/AAAAAAAAG58/xMqzCgmsEXs/s400/5.jpg" width="400" /></a></div>
<br />
8) On the next page, scroll down again using the arrow keys and select "SRC - Sources for everything". Press the space bar to select.<br />
<br />
<div class="separator" style="clear: both; text-align: center;">
<a href="http://4.bp.blogspot.com/-qx7qk4kK5jg/TtvriVhx_sI/AAAAAAAAG6E/gzNnZG7rEUU/s1600/6.jpg" imageanchor="1" style="margin-left: 1em; margin-right: 1em;"><img border="0" height="208" src="http://4.bp.blogspot.com/-qx7qk4kK5jg/TtvriVhx_sI/AAAAAAAAG6E/gzNnZG7rEUU/s400/6.jpg" width="400" /></a></div>
<br />
9) Under the sub-components, you will need to select two source trees, Base and Sys. Scroll down again using the arrow keys and select the following with the space bar.<br />
<br />
<b><span class="Apple-style-span" style="font-family: 'Courier New', Courier, monospace;">"Base - top-level files in /usr /src"</span></b><br />
<b><span class="Apple-style-span" style="font-family: 'Courier New', Courier, monospace;">"Sys - /usr/src/sys (FreeBSD kernel)"</span></b><br />
<br />
Tab to the "Ok" button again.<br />
<br />
<div class="separator" style="clear: both; text-align: center;">
<a href="http://4.bp.blogspot.com/-e_fBSQ8D6mQ/TtvsX4BJCzI/AAAAAAAAG6M/sJt77t90gA8/s1600/7.jpg" imageanchor="1" style="margin-left: 1em; margin-right: 1em;"><img border="0" height="211" src="http://4.bp.blogspot.com/-e_fBSQ8D6mQ/TtvsX4BJCzI/AAAAAAAAG6M/sJt77t90gA8/s400/7.jpg" width="400" /></a></div>
<br />
10) After this you will be prompted where to install the files from (CD/DVD/FTP, etc.). Since this is a smaller download, I would suggest FTP, and first starting with the main FTP site. Now if the FTP fails with the following error message<br />
<br />
Warning: Can't find the '8.2-RELEASE-P3' distribution on this FTP server<br />
<br />
<b><span class="Apple-style-span" style="font-family: 'Courier New', Courier, monospace;">Go back to step 5 and make sure you edited the name. </span></b><br />
<br />
Htop should finally run as normal! Yes, this was a pain but considering it's running a Linux based tool, wasn't that bad!<br />
<br />
RobUnknownnoreply@blogger.com0tag:blogger.com,1999:blog-6371708.post-16656955372213942062011-11-30T18:18:00.001-08:002011-11-30T18:42:30.712-08:00Alias, making quick custom commandsRecently I placed my home computer on the Internet for a remote access but also to run a personal web page. The problem I had is while I enabled ssh access using only private keys, I was still worried that I might leave a loop hole open on the system.<br />
<br />
So here I was constantly checking the logs for any alerts to SSHD service. The command I would run is something simple, "tail /var/log/messages | grep sshd".<br />
<br />
The results would typically something as simple as a few lines but it would be important to keep up on. Here's an example.<br />
<br />
<br />
<span class="Apple-style-span" style="font-family: 'Courier New', Courier, monospace;"></span><br />
<span class="Apple-style-span" style="font-family: 'Courier New', Courier, monospace;">$ tail /var/log/messages | grep sshd</span><br />
<span class="Apple-style-span" style="font-family: 'Courier New', Courier, monospace;">Nov 25 03:13:59 server1 sshd[927]: error: PAM: authentication error for user from 192.168.1.100</span><br />
<span class="Apple-style-span" style="font-family: 'Courier New', Courier, monospace;">Nov 25 03:14:06 server1 sshd[927]: error: PAM: authentication error for user from 192.168.1.100</span><br />
<span class="Apple-style-span" style="font-family: 'Courier New', Courier, monospace;">Nov 25 05:50:25 server1 sshd[1299]: error: PAM: authentication error for illegal user root from 192.168.1.100</span><br />
<div>
<span class="Apple-style-span" style="font-family: 'Courier New', Courier, monospace;"><br /></span></div>
<br />
<div>
Now this is kinda of a long command to type out each time, I was wondering if I could just type something shorter?</div>
<div>
<br /></div>
<div>
Here's where the alias command comes into play. From your terminal, you can type "alias" and find out what are your current alias commands. </div>
<div>
<br /></div>
<div>
<div>
<span class="Apple-style-span" style="font-family: 'Courier New', Courier, monospace;">$ alias</span></div>
<div>
<span class="Apple-style-span" style="font-family: 'Courier New', Courier, monospace;">g='egrep -i'</span></div>
<div>
<span class="Apple-style-span" style="font-family: 'Courier New', Courier, monospace;">h='fc -l'</span></div>
<div>
<span class="Apple-style-span" style="font-family: 'Courier New', Courier, monospace;">j=jobs</span></div>
<div>
<span class="Apple-style-span" style="font-family: 'Courier New', Courier, monospace;">l='ls -l'</span></div>
<div>
<span class="Apple-style-span" style="font-family: 'Courier New', Courier, monospace;">ll='ls -laFo'</span></div>
<div>
<span class="Apple-style-span" style="font-family: 'Courier New', Courier, monospace;">m=more</span></div>
</div>
<div>
<br /></div>
<div>
We're now going to add our search command as listed above, but make an alias to "searchsshd". </div>
<div>
<br /></div>
<div>
<div>
<span class="Apple-style-span" style="font-family: 'Courier New', Courier, monospace;">$ alias searchsshd='tail /var/log/messages | grep sshd'</span></div>
</div>
<div>
<br /></div>
<div>
Now, when we type "searchsshd" we get the following. </div>
<div>
<br /></div>
<div>
<span class="Apple-style-span" style="font-family: 'Courier New', Courier, monospace;">$ tail /var/log/messages | grep sshd<br />
Nov 25 03:13:59 server1 sshd[927]: error: PAM: authentication error for user from 192.168.1.100<br />
Nov 25 03:14:06 server1 sshd[927]: error: PAM: authentication error for user from 192.168.1.100<br />
Nov 25 05:50:25 server1 sshd[1299]: error: PAM: authentication error for illegal user root from 192.168.1.100</span></div>
<div>
<br /></div>
<div>
Pretty cool! </div>
<div>
<br /></div>
<div>
Rob</div>
<div>
<br /></div>
<div>
<br /></div>
<div>
<br /></div>
<br />
<br />
<br />Unknownnoreply@blogger.com0tag:blogger.com,1999:blog-6371708.post-66357706169744541402011-11-30T17:03:00.001-08:002011-11-30T18:03:51.877-08:00Hard links vs Symbolic linksWorking with Linux and UNIX offers some handy extras not typically found on Windows based systems. One great feature is hard and soft links, which is somewhat like a shortcut that you can create but looks just like a normal file.<br />
<br />
This works great when you need to share a file but do not want to give permissions to the file directly. So how does this work? Every file on a Linux or UNIX based system is mapped to an <a href="http://www.cyberciti.biz/tips/understanding-unixlinux-filesystem-inodes.html" target="_blank">inode</a>. Inodes are the identification of every single file and object on the system. This includes users, files, rights, etc.<br />
<br />
To see the inode values, you can run the command "ls -i".<br />
<br />
<br />
<span class="Apple-style-span" style="font-family: 'Courier New', Courier, monospace;">rob@robmint ~/sandbox $ ls -li</span><br />
<span class="Apple-style-span" style="font-family: 'Courier New', Courier, monospace;">total 4</span><br />
<span class="Apple-style-span" style="font-family: 'Courier New', Courier, monospace;">2098382 -rw-r--r-- 1 rob rob 5 2011-11-30 17:29 testfile</span><br />
<br />
The file "testfile" has a inode value of "2098382".<br />
<br />
Now there are two different links we can create. One is a hard link, the other is a soft link. Here's the difference.<br />
<br />
Hard link - These are files associated to the same inode. They are duplicate files and are independent from the original file. Also as you can see below, look the same but there is a slight hint.<br />
<br />
Let's first create the hard link using the "ln" command.<br />
<br />
<br />
<span class="Apple-style-span" style="font-family: 'Courier New', Courier, monospace;">rob@robmint ~/sandbox $ ln testfile testfilehardlink</span><br />
<div>
<br /></div>
<div>
Now let's see what we created. </div>
<div>
<br /></div>
<br />
<br />
<span class="Apple-style-span" style="font-family: 'Courier New', Courier, monospace;">rob@robmint ~/sandbox $ ls -li</span><br />
<span class="Apple-style-span" style="font-family: 'Courier New', Courier, monospace;">total 8</span><br />
<span class="Apple-style-span" style="font-family: 'Courier New', Courier, monospace;">2098382 -rw-r--r-- 2 rob rob 5 2011-11-30 17:29 testfile</span><br />
<span class="Apple-style-span" style="font-family: 'Courier New', Courier, monospace;">2098382 -rw-r--r-- 2 rob rob 5 2011-11-30 17:29 testfilehardlink</span><br />
<div>
<br /></div>
<div>
Again, we see the inode information is the same, but also note the value of "2". Which tells us that the original file "testfile" is linked two times, once to "testfile" and another to "testfilehardlink". </div>
<div>
<br /></div>
<br />
So we mentioned that hard links are duplicates of the original file, but what happens when we delete the original file? Let's find out. We will delete the file "testfile" and leave behind "testfilehardlink".<br />
<br />
<br />
<span class="Apple-style-span" style="font-family: 'Courier New', Courier, monospace;">rob@robmint ~/sandbox $ rm testfile</span><br />
<span class="Apple-style-span" style="font-family: 'Courier New', Courier, monospace;">rob@robmint ~/sandbox $ ls -li</span><br />
<span class="Apple-style-span" style="font-family: 'Courier New', Courier, monospace;">total 8</span><br />
<span class="Apple-style-span" style="font-family: 'Courier New', Courier, monospace;">2098382 -rw-r--r-- 1 rob rob 5 2011-11-30 17:29 testfilehardlink</span><br />
<div>
<br /></div>
<div>
Now let's see if we can access "testfilehardlink". </div>
<div>
<br /></div>
<div>
<div>
<span class="Apple-style-span" style="font-family: 'Courier New', Courier, monospace;">rob@robmint ~/sandbox $ cat testfilehardlink</span></div>
<div>
<span class="Apple-style-span" style="font-family: 'Courier New', Courier, monospace;">1234</span></div>
</div>
<div>
<br /></div>
<div>
It works! Now, even after deleting the original, you can still access the data. But this looses the benefit of using link since now the file is no longer being updated from the original file. </div>
<div>
<br /></div>
<div>
So now we know hard links, what about soft links? Let's create the soft links using the "ln -s" command. </div>
<div>
<br /></div>
<div>
<div>
<span class="Apple-style-span" style="font-family: 'Courier New', Courier, monospace;">rob@robmint / $ ln -s testfile2 testfilesoftlink</span></div>
</div>
<div>
<br /></div>
<div>
Now let's look at the soft link we created. Notice how there is a visual reminder that it's a soft link. </div>
<div>
<br /></div>
<div>
<div>
<span class="Apple-style-span" style="font-family: 'Courier New', Courier, monospace;">rob@robmint ~/sandbox $ ls -li</span></div>
<div>
<span class="Apple-style-span" style="font-family: 'Courier New', Courier, monospace;">total 8</span></div>
<div>
<span class="Apple-style-span" style="font-family: 'Courier New', Courier, monospace;">2097736 -rw-r--r-- 1 rob rob 10 2011-11-30 17:41 testfile2</span></div>
<div>
<span class="Apple-style-span" style="font-family: 'Courier New', Courier, monospace;">2098382 -rw-r--r-- 1 rob rob 5 2011-11-30 17:29 testfilehardlink</span></div>
<div>
<span class="Apple-style-span" style="font-family: 'Courier New', Courier, monospace;">2098638 lrwxrwxrwx 1 rob rob 9 2011-11-30 17:48 testfilesoftlink -> testfile2</span></div>
</div>
<div>
<br /></div>
<div>
Here we created the the soft link, but let's see how this works if we delete the original file. </div>
<div>
<br /></div>
<div>
<div>
rob@robmint ~/sandbox $ rm testfile2</div>
<div>
rob@robmint ~/sandbox $ ls -li</div>
<div>
total 8</div>
<div>
2098383 -rw-r--r-- 2 rob rob 5 2011-11-30 17:50 testfile</div>
<div>
2098383 -rw-r--r-- 2 rob rob 5 2011-11-30 17:50 testfilehardlink</div>
<div>
2098638 lrwxrwxrwx 1 rob rob 9 2011-11-30 17:48 testfilesoftlink -> testfile2</div>
</div>
<div>
<br /></div>
<br />
Now the original file is deleted, let's try to access the file "testfilesoftlink".<br />
<br />
<br />
<span class="Apple-style-span" style="font-family: 'Courier New', Courier, monospace;">rob@robmint ~/sandbox $ cat testfilesoftlink</span><br />
<span class="Apple-style-span" style="font-family: 'Courier New', Courier, monospace;">cat: testfilesoftlink: No such file or directory</span><br />
<div>
<br /></div>
<div>
As you can see, once the original file is gone, so it the soft link file. This is because the soft link is a link to the inode, not a duplicate file. </div>
<div>
<br /></div>
<div>
Now, why would you want to use soft links over hard links? Soft links are a path back to the file, not to the inode, which means that you can access links across partitions. It's pretty cool feature and when working with longer path names this could be extremely handy. </div>
<div>
<br /></div>
<div>
Rob</div>
<div>
<br /></div>
<div>
<br /></div>
<div>
<br /></div>
<div>
<br /></div>
<br />
<br />
<br />
<br />Unknownnoreply@blogger.com0tag:blogger.com,1999:blog-6371708.post-6206728891647250312011-11-25T16:39:00.001-08:002011-11-25T18:08:58.774-08:00SSH access with keys and no passwordOne of the most handy things about SSH access is setting up the secure keys, allowing to bypass the password but keep a very secure access to the host. This allows a fast connection to the host, but also since you're using a security key, no one else will have access.<br />
<div>
<br /></div>
<div>
For a while I was having issues setting this up, I knew that you needed to create the keys but not sure how to setup ssh access further. So I setup a home server, using FreeBSD 8.2 at home and running a port forwarding from my home router. I wanted to keep this secure as possible, but also allow access from any location, so I could access my home system remotely. </div>
<div>
<br /></div>
<div>
So here's the steps I used and hoping this will be helpful. </div>
<div>
<br /></div>
<div>
First, if you're on a Windows system there might be some issues creating the keys. You can make keys from <a href="http://www.chiark.greenend.org.uk/~sgtatham/putty/">Putty</a> but there is some differences, mostly you will need to rename the files and make some additional editing. In these examples I created the keys on a Ubuntu based system and accessing a FreeBSD host. Please note "user" is your account name and "hostname" is the machine name. </div>
<div>
<br /></div>
<div>
Before starting, make sure you have your remote host setup if needed. Here I'm working on a home machine so I need to first edit the SSH service file located at /etc/ssh/sshd_config. I recommend using your favorite text editor, and will be listing only the important options below. </div>
<div>
<br /></div>
<div>
First, make sure root SSH login is disabled, and only allowing your account to be listed. </div>
<div>
<br /></div>
<div>
<span class="Apple-style-span" style="font-family: 'Courier New', Courier, monospace;"><b></b></span><br />
<div>
<span class="Apple-style-span" style="font-family: 'Courier New', Courier, monospace;"><b>AllowUsers user</b></span></div>
<span class="Apple-style-span" style="font-family: 'Courier New', Courier, monospace;"><b>
</b></span><br />
<div>
<span class="Apple-style-span" style="font-family: 'Courier New', Courier, monospace;"><b><br /></b></span></div>
<span class="Apple-style-span" style="font-family: 'Courier New', Courier, monospace;"><b>
</b></span></div>
<div>
We are also going to disable password authentication. </div>
<div>
<br /></div>
<div>
<div>
<div>
<b><span class="Apple-style-span" style="font-family: 'Courier New', Courier, monospace;">PasswordAuthentication no</span></b></div>
</div>
</div>
<div>
<br /></div>
<div>
Also allow RSA keys.</div>
<div>
<br /></div>
<div>
<div>
<b><span class="Apple-style-span" style="font-family: 'Courier New', Courier, monospace;">RSAAuthentication yes</span></b></div>
<div>
<b><span class="Apple-style-span" style="font-family: 'Courier New', Courier, monospace;">PubkeyAuthentication yes</span></b></div>
<div>
<b><span class="Apple-style-span" style="font-family: 'Courier New', Courier, monospace;">AuthorizedKeysFile .ssh/authorized_keys</span></b></div>
</div>
<div>
<br /></div>
<div>
Save the file and restart sshd service. Now consider if you are accessing a company server the details will be different and these setup steps for the host might be already done. </div>
<div>
<br /></div>
<div>
From your personal computer. </div>
<div>
<br /></div>
<div>
1) Login to a host and access the terminal or console.</div>
<div>
2) From you're home directory, run the following command.</div>
<div>
<b><br /></b></div>
<div>
<span class="Apple-style-span" style="font-family: 'Courier New', Courier, monospace;"><b>user@hostname ~ $ ssh-keygen -t rsa</b></span></div>
<div>
<span class="Apple-style-span" style="font-family: 'Courier New', Courier, monospace;"><br /></span></div>
<div>
<span class="Apple-style-span" style="font-family: inherit;">3) As seen below, you will be asked for the following details. You can take the defaults and press "enter" all the way through. If you would like added security, enter a passphrase when prompted. </span></div>
<div>
<br /></div>
<div>
<div>
<span class="Apple-style-span" style="font-family: 'Courier New', Courier, monospace;"><b>user@hostname ~ $ ssh-keygen -t rsa</b></span></div>
<div>
<span class="Apple-style-span" style="font-family: 'Courier New', Courier, monospace;"><b>Generating public/private rsa key pair.</b></span></div>
<div>
<span class="Apple-style-span" style="font-family: 'Courier New', Courier, monospace;"><b>Enter file in which to save the key (/home/user/.ssh/id_rsa): </b></span></div>
<div>
<span class="Apple-style-span" style="font-family: 'Courier New', Courier, monospace;"><b>Enter passphrase (empty for no passphrase): </b></span></div>
<div>
<span class="Apple-style-span" style="font-family: 'Courier New', Courier, monospace;"><b>Enter same passphrase again: </b></span></div>
<div>
<span class="Apple-style-span" style="font-family: 'Courier New', Courier, monospace;"><b>Your identification has been saved in /home/user/.ssh/id_rsa.</b></span></div>
<div>
<span class="Apple-style-span" style="font-family: 'Courier New', Courier, monospace;"><b>Your public key has been saved in /home/user/.ssh/id_rsa.pub.</b></span></div>
<div>
<span class="Apple-style-span" style="font-family: 'Courier New', Courier, monospace;"><b>The key fingerprint is:</b></span></div>
<div>
<span class="Apple-style-span" style="font-family: 'Courier New', Courier, monospace;"><b>[random letters and numbers] user@hostname</b></span></div>
<div>
<span class="Apple-style-span" style="font-family: 'Courier New', Courier, monospace;"><b>The key's randomart image is:</b></span></div>
</div>
<div>
<div>
<span class="Apple-style-span" style="font-family: 'Courier New', Courier, monospace;"><b>+--[ RSA 2048]----+</b></span></div>
</div>
<div>
<span class="Apple-style-span" style="font-family: 'Courier New', Courier, monospace;"><b>[random image]</b></span></div>
<div>
<br /></div>
<div>
4) Now check your directory and you should see the following files. The specific path is listed above as "/home/user/.ssh" directory. We are using the "a" option to view the .ssh directory since it is hidden. </div>
<div>
<br /></div>
<div>
<div>
<b><span class="Apple-style-span" style="font-family: 'Courier New', Courier, monospace;">user@hostname ~ $ ls -la</span></b></div>
</div>
<div>
<div>
<b><span class="Apple-style-span" style="font-family: 'Courier New', Courier, monospace;">drwx------ 2 user user 4096 2011-11-25 15:18 .ssh</span></b></div>
</div>
<div>
<br /></div>
<div>
5) So we have the directory there, now let's check for the files. We are going to change directory to .ssh and look for the files.</div>
<div>
<br /></div>
<div>
<div>
<b><span class="Apple-style-span" style="font-family: 'Courier New', Courier, monospace;">user@hostname ~/.ssh $ cd .ssh</span></b></div>
</div>
<div>
<br /></div>
<div>
6) We are looking for what files are in the directory. </div>
<div>
<br /></div>
<div>
<div>
<b><span class="Apple-style-span" style="font-family: 'Courier New', Courier, monospace;">user@hostname ~/.ssh $ ls -l</span></b></div>
<div>
<b><span class="Apple-style-span" style="font-family: 'Courier New', Courier, monospace;">total 20</span></b></div>
<div>
<b><span class="Apple-style-span" style="font-family: 'Courier New', Courier, monospace;">drwx------ 2 user user 4096 2011-11-25 15:18 .</span></b></div>
<div>
<b><span class="Apple-style-span" style="font-family: 'Courier New', Courier, monospace;">drwxr-xr-x 57 user user 4096 2011-11-25 14:55 ..</span></b></div>
<div>
<b><span class="Apple-style-span" style="font-family: 'Courier New', Courier, monospace;">-rw------- 1 user user 1675 2011-11-25 15:18 id_rsa</span></b></div>
<div>
<b><span class="Apple-style-span" style="font-family: 'Courier New', Courier, monospace;">-rw-r--r-- 1 user user 393 2011-11-25 15:18 id_rsa.pub</span></b></div>
<div>
<b><span class="Apple-style-span" style="font-family: 'Courier New', Courier, monospace;">-rw-r--r-- 1 user user 884 2011-11-25 15:01 known_hosts</span></b></div>
</div>
<div>
<br /></div>
<div>
7) We have two hosts that are important. id_rsa and id_rsa.pub, these are the two files which we created and will need to access remote hosts. </div>
<div>
<br /></div>
<div>
<b>id_rsa</b> - This is your private key, you keep this on the computer that you are using to access other computers. This is a secure file not to be shared on remote systems but only on hosts you are using for clients. </div>
<div>
<b><br /></b></div>
<div>
<b>id_rsa.pub</b> - This is the public key, you place this file on remote systems that you want to access remotely. </div>
<div>
<br /></div>
<div>
8) Now we have the two files needed, we're going to copy the id_rsa.pub file to our remote system. This command will copy the files from your local id_rsa.pub to the remote host. </div>
<div>
<br /></div>
<div>
<div>
<b><span class="Apple-style-span" style="font-family: 'Courier New', Courier, monospace;">user@hostname ~/.ssh $ cat id_rsa.pub | ssh user@192.168.1.1 'cat >> .ssh/authorized_keys'</span></b></div>
<div>
<b><span class="Apple-style-span" style="font-family: 'Courier New', Courier, monospace;">Password:</span></b></div>
</div>
<div>
<br /></div>
<div>
There is a possibility this might fail. Make sure that under your home directory on the remote system you have .ssh directory and the file authorized_keys already created. If they are not there, then create them as needed. Below, run the commands from your home directory. </div>
<div>
<br /></div>
<div>
<div>
<b><span class="Apple-style-span" style="font-family: 'Courier New', Courier, monospace;">user@hostname ~ $ mkdir .ssh</span></b></div>
</div>
<div>
<br /></div>
<div>
Now we are going to lock down the directory</div>
<div>
<br /></div>
<div>
<b><span class="Apple-style-span" style="font-family: 'Courier New', Courier, monospace;">user@hostname ~ $ chmod 700 .ssh</span></b></div>
<div>
<br /></div>
<div>
Now go inside the .ssh directory</div>
<div>
<br /></div>
<div>
<b><span class="Apple-style-span" style="font-family: 'Courier New', Courier, monospace;">user@hostname ~ $ cd .ssh</span></b></div>
<div>
<br /></div>
<div>
We are going to create a blank file to store the keys</div>
<div>
<br /></div>
<div>
<b><span class="Apple-style-span" style="font-family: 'Courier New', Courier, monospace;">user@hostname ~ $ touch authorized_keys</span></b></div>
<div>
<br /></div>
<div>
Again, we are going to lock this file down as well </div>
<div>
<br /></div>
<div>
<b><span class="Apple-style-span" style="font-family: 'Courier New', Courier, monospace;">user@hostname ~ $ chmod 600 authorized_keys</span></b></div>
<div>
<br /></div>
<div>
Now try the command listed in step 8 again. This should work. </div>
<div>
<br /></div>
<div>
9) Now try to ssh into the server again, you should not be prompted for the password and go straight to the terminal session. </div>
<div>
<br /></div>
<div>
Hope this saves you time and keeps your system secure. </div>
<div>
<br /></div>
<div>
Rob</div>Unknownnoreply@blogger.com0tag:blogger.com,1999:blog-6371708.post-69171613251589973912011-09-04T09:59:00.000-07:002011-09-04T09:59:26.840-07:00Windows Freeware applications list<span class="Apple-style-span" style="font-family: Verdana, sans-serif;">The word free and Windows don't often go together. It's very common to find free open source applications in the Linux world but in Windows it's a bit harder to find, but they are there. </span><br />
<span class="Apple-style-span" style="font-family: Verdana, sans-serif;"><br /></span><br />
<span class="Apple-style-span" style="font-family: Verdana, sans-serif;">Recently I found a few nice listing of free applications that are free or offer free trial versions. Really handy listing and some of the applications are just what you need for something small. </span><br />
<span class="Apple-style-span" style="font-family: Verdana, sans-serif;"><br /></span><br />
<span class="Apple-style-span" style="font-family: Verdana, sans-serif;">So my personal list of free or open source applications for Windows is here. </span><br />
<span class="Apple-style-span" style="font-family: Verdana, sans-serif;"><br /></span><br />
<span class="Apple-style-span" style="font-family: Verdana, sans-serif;"><a href="http://filezilla-project.org/"><b>Filezilla - FTP client and server</b></a></span><br />
<span class="Apple-style-span" style="font-family: Verdana, sans-serif;"><br /></span><br />
<span class="Apple-style-span" style="font-family: Verdana, sans-serif;">Before I found Filezilla I was stuck using either the command line for FTP upload, Dreamweaver, or another paid FTP program. Granted FTP isn't something that requires a great deal of knowledge, but it just made things easier to use a mouse. Filezilla is basically everything you could want in an FTP client, I've been using it for years and never had any issues. </span><br />
<span class="Apple-style-span" style="font-family: Verdana, sans-serif;"><br /></span><br />
<span class="Apple-style-span" style="font-family: Verdana, sans-serif;"><a href="http://free.avg.com/"><b>AVG Free Client - Antivirus </b></a></span><br />
<span class="Apple-style-span" style="font-family: Verdana, sans-serif;"><br /></span><br />
<span class="Apple-style-span" style="font-family: Verdana, sans-serif;">I have never compared anti-virus vendors but the interface of AVG is very simple and easy to use. AVG offers frequent updates and of course they ask that you upgrade to the paid version, which offers more options and protection. Personally it's a tie between AVG and other vendors that offer a free version but AVG seems cleaner.</span><br />
<span class="Apple-style-span" style="font-family: Verdana, sans-serif;"><br /></span><br />
<span class="Apple-style-span" style="font-family: Verdana, sans-serif;"><a href="http://pidgin.im/"><b>Pidgin - IM and IRC client</b></a></span><br />
<span class="Apple-style-span" style="font-family: Verdana, sans-serif;"><br /></span><br />
<span class="Apple-style-span" style="font-family: Verdana, sans-serif;">There's many instant messenger clients and IRC clients out there but the interface of Pidgin is decently easy to use. The only issue is using some of the extra features that are included with the vendor's instant messenger client might not work 100% with Pidgin. For example Yahoo! Messenger conference does not appear to work correctly with Pidgin, but that's a minor issue. </span><br />
<span class="Apple-style-span" style="font-family: Verdana, sans-serif;"><br /></span><br />
<span class="Apple-style-span" style="font-family: Verdana, sans-serif;"><a href="http://www.videolan.org/vlc/"><b>VLC - Media player</b></a></span><br />
<span class="Apple-style-span" style="font-family: Verdana, sans-serif;"><br /></span><br />
<span class="Apple-style-span" style="font-family: Verdana, sans-serif;">VLC is a handy media player that I often use over Windows Media Player. The best feature is this is a very universal player, can play pretty much any file you throw at it. </span><br />
<span class="Apple-style-span" style="font-family: Verdana, sans-serif;"><br /></span><br />
<span class="Apple-style-span" style="font-family: Verdana, sans-serif;"><a href="http://www.foobar2000.org/"><b>FooBar2000 - Music player</b></a></span><br />
<span class="Apple-style-span" style="font-family: Verdana, sans-serif;"><br /></span><br />
<span class="Apple-style-span" style="font-family: Verdana, sans-serif;">My favorite music players have been Winamp and iTunes, but recently I have been using FooBar as it's lightweight and simple to look for files. There is many plugins available for FooBar and if you're looking for the simple music player interface this is highly recommended. </span><br />
<span class="Apple-style-span" style="font-family: Verdana, sans-serif;"><br /></span><br />
<span class="Apple-style-span" style="font-family: Verdana, sans-serif;"><a href="http://cutepdf.com/"><b>CutePDF - Print to PDF</b></a></span><br />
<span class="Apple-style-span" style="font-family: Verdana, sans-serif;"><br /></span><br />
<span class="Apple-style-span" style="font-family: Verdana, sans-serif;">I have a love hate issue with Adobe's PDF format. I like how it's very simple to hold books but creating PDF's was an issue, if you didn't have the software there was little you could do. With CutePDF, you can print to PDF which is very handy and great for "recording" web pages or logging documents. I heavily use this for capturing e-mails or invoices that are in HTML format for archival.</span><br />
<span class="Apple-style-span" style="font-family: Verdana, sans-serif;"><br /></span><br />
<span class="Apple-style-span" style="font-family: Verdana, sans-serif;"><a href="http://www.imgburn.com/"><b>Imgburn - CD DVD burner</b></a></span><br />
<span class="Apple-style-span" style="font-family: Verdana, sans-serif;"><br /></span><br />
<span class="Apple-style-span" style="font-family: Verdana, sans-serif;">Imgburn is very handy for create CD or DVD's plus creating ISO of physical media. The application is lightweight, offers a much simpler method than working with Nero. My only request is disabling the "successful" sound as it's annoying. </span><br />
<span class="Apple-style-span" style="font-family: Verdana, sans-serif;"><br /></span><br />
<span class="Apple-style-span" style="font-family: Verdana, sans-serif;"><b><a href="http://www.truecrypt.org/">TrueCrypt - Encryption </a></b></span><br />
<span class="Apple-style-span" style="font-family: Verdana, sans-serif;"><br /></span><br />
<span class="Apple-style-span" style="font-family: Verdana, sans-serif;">TrueCrypt offers drive and directory encryption, plus ability to encrypt the hard drive upon bootup. Where this comes in handy is when you need to secure a directory from others, or when you need to have a laptop secured even if you loose it. It's also great to use for your USB memory sticks, and I highly recommend this be used since it locks down the file very securely. </span><br />
<span class="Apple-style-span" style="font-family: Verdana, sans-serif;"><br /></span><br />
<span class="Apple-style-span" style="font-family: Verdana, sans-serif;"><a href="http://notepad-plus-plus.org/"><b>Notepad ++ - Text editor</b></a></span><br />
<span class="Apple-style-span" style="font-family: Verdana, sans-serif;"><br /></span><br />
<span class="Apple-style-span" style="font-family: Verdana, sans-serif;">Using Microsoft's Notepad is handy but doesn't offer correct formatting and other tools as does Notepad ++. I really like this application and even after buying a very expensive paid version of another text editor, still use Notepad ++.</span><br />
<span class="Apple-style-span" style="font-family: Verdana, sans-serif;"><br /></span><br />
<span class="Apple-style-span" style="font-family: Verdana, sans-serif;"><a href="http://www.chiark.greenend.org.uk/~sgtatham/putty/"><b>Putty - SSH client</b></a></span><br />
<span class="Apple-style-span" style="font-family: Verdana, sans-serif;"><br /></span><br />
<span class="Apple-style-span" style="font-family: Verdana, sans-serif;">I honestly do not know of another SSH client for Windows that is free and highly used as is Putty. I just recently switched to using SecureCRT, a paid SSH client but only after I needed a feature not included with Putty. But I really liked Putty and used it for many years. </span><br />
<span class="Apple-style-span" style="font-family: Verdana, sans-serif;"><br /></span><br />
<span class="Apple-style-span" style="font-family: Verdana, sans-serif;"><a href="http://technet.microsoft.com/en-us/magazine/2009.04.utilityspotlight.aspx?pr=blog"><b>Rich Copy - File copy utility</b></a></span><br />
<span class="Apple-style-span" style="font-family: Verdana, sans-serif;"><br /></span><br />
<span class="Apple-style-span" style="font-family: Verdana, sans-serif;">I've been using Microsoft's Robocopy and the add on TeraCopy but recently I found Rich Copy from Microsoft. I really like the interface of Rich Copy and the adjustments for the job which is handy for faster computers. It's also good for sync a directory or just auditing. </span><br />
<span class="Apple-style-span" style="font-family: Verdana, sans-serif;"><br /></span><br />
<span class="Apple-style-span" style="font-family: Verdana, sans-serif;">For now these are my favorites and will add some more shortly. </span><br />
<span class="Apple-style-span" style="font-family: Verdana, sans-serif;"><br /></span><br />
<span class="Apple-style-span" style="font-family: Verdana, sans-serif;">Rob</span><br />
<span class="Apple-style-span" style="font-family: Verdana, sans-serif;"><br /></span>Unknownnoreply@blogger.com0tag:blogger.com,1999:blog-6371708.post-80786484212182863202011-09-04T08:46:00.000-07:002011-09-04T08:46:26.136-07:00Searching for disk space on Linux UNIX<span class="Apple-style-span" style="font-family: Verdana, sans-serif;">One of the most confusing issues I had moving to Linux was searching for large files. It's somewhat confusing on Windows but there are many graphical applications available to help with the process. On command line, it's a slightly different process but still similar steps taken. Here's an example of searching for the largest files on a host. </span><br />
<span class="Apple-style-span" style="font-family: Verdana, sans-serif;"><br /></span><br />
<span class="Apple-style-span" style="font-family: Verdana, sans-serif;">First, run the command "df -h" </span><br />
<br />
<br />
<span class="Apple-style-span" style="font-family: 'Courier New', Courier, monospace;">-bash-4.2$ df -h</span><br />
<span class="Apple-style-span" style="font-family: 'Courier New', Courier, monospace;">Filesystem Size Used Avail Capacity Mounted on</span><br />
<span class="Apple-style-span" style="font-family: 'Courier New', Courier, monospace;">/dev/sda1 3.9G 927M 2.7G 25% /</span><br />
<span class="Apple-style-span" style="font-family: 'Courier New', Courier, monospace;">/dev/sda2 10G 10G 0G 99% /home</span><br />
<span class="Apple-style-span" style="font-family: 'Courier New', Courier, monospace;">-bash-4.2$ </span><br />
<span class="Apple-style-span" style="font-family: 'Courier New', Courier, monospace;"><br /></span><br />
<span class="Apple-style-span" style="font-family: Verdana, sans-serif;">Now you know the largest files are in the /home directory. Run the command "cd /home" In the example below, there's only one user, "rob" so I will go straight to the path.</span><br />
<span class="Apple-style-span" style="font-family: 'Courier New', Courier, monospace;"><br /></span><br />
<br />
<div style="font-family: 'Courier New', Courier, monospace;">
-bash-4.2$ cd home/rob</div>
<div style="font-family: 'Courier New', Courier, monospace;">
-bash-4.2$ sudo du -sh *</div>
<div style="font-family: 'Courier New', Courier, monospace;">
9.9G logs</div>
<div style="font-family: 'Courier New', Courier, monospace;">
17M dev</div>
<div style="font-family: 'Courier New', Courier, monospace;">
4.0K documents</div>
<div style="font-family: 'Courier New', Courier, monospace;">
12K tools</div>
<div style="font-family: 'Courier New', Courier, monospace;">
-bash-4.2$</div>
<div style="font-family: 'Courier New', Courier, monospace;">
<br /></div>
<span class="Apple-style-span" style="font-family: Verdana, sans-serif;">We find that in the path /home/rob/logs there is 9.9G of files. One method is to move the files to another directory or you can move the files, compress them then move them back. Just a note, certain files that are already compressed (mp3, jpg, zip) will not compress that well. Others such as text and log files compress extremely well. </span><br />
<span class="Apple-style-span" style="font-family: Verdana, sans-serif;"><br /></span><br />
<span class="Apple-style-span" style="font-family: Verdana, sans-serif;">For the same path /home/rob/logs we find there are many log files taking up the space. </span><br />
<div style="font-family: 'Courier New', Courier, monospace;">
<br /></div>
<br />
<br />
<br />
<div style="font-family: 'Courier New', Courier, monospace;">
-bash-4.2$ ls -lh</div>
<div style="font-family: 'Courier New', Courier, monospace;">
total 5</div>
<div style="font-family: 'Courier New', Courier, monospace;">
-rw-r--r-- 1 robertf users 2.5G Aug 31 23:00 log_083111</div>
<div style="font-family: 'Courier New', Courier, monospace;">
-rw-r--r-- 1 robertf users 2.5G Sep 1 23:00 log_090111</div>
<div style="font-family: 'Courier New', Courier, monospace;">
-rw-r--r-- 1 robertf users 2.5G Sep 2 23:00 log_090211</div>
<div style="font-family: 'Courier New', Courier, monospace;">
-rw-r--r-- 1 robertf users 2.5G Sep 3 23:00 log_090311</div>
<div style="font-family: 'Courier New', Courier, monospace;">
-rw-r--r-- 1 robertf users 5M Sep 4 07:46 log_090411</div>
<div style="font-family: 'Courier New', Courier, monospace;">
-bash-4.2$ </div>
<div style="font-family: 'Courier New', Courier, monospace;">
<br /></div>
<span class="Apple-style-span" style="font-family: Verdana, sans-serif;">We do not have space on /home so let's copy to /tmp to run the archive command</span><br />
<span class="Apple-style-span" style="font-family: Verdana, sans-serif;"><br /></span><br />
<span class="Apple-style-span" style="font-family: Verdana, sans-serif;">First create the folder on your /tmp directory by running the command "mkdir /tmp/rob"</span><br />
<div style="font-family: 'Courier New', Courier, monospace;">
<br /></div>
<div style="font-family: 'Courier New', Courier, monospace;">
-bash-4.2$ mkdir /tmp/rob</div>
<div style="font-family: 'Courier New', Courier, monospace;">
<br /></div>
<span class="Apple-style-span" style="font-family: Verdana, sans-serif;">Then let's move the files over using the command "mv * /tmp/rob"</span><br />
<div style="font-family: 'Courier New', Courier, monospace;">
<br /></div>
<div style="font-family: 'Courier New', Courier, monospace;">
-bash-4.2$ mv * /tmp/rob</div>
<div style="font-family: 'Courier New', Courier, monospace;">
<br /></div>
<span class="Apple-style-span" style="font-family: Verdana, sans-serif;">Just make sure the files have been copied</span><br />
<div style="font-family: 'Courier New', Courier, monospace;">
<br /></div>
<div style="font-family: 'Courier New', Courier, monospace;">
</div>
<span class="Apple-style-span" style="font-family: 'Courier New', Courier, monospace;">-bash-4.2$ ls /tmp/rob</span><br />
<span class="Apple-style-span" style="font-family: 'Courier New', Courier, monospace;">log_083111 log_090111 log_090211 log_090311 log_090411</span><br />
<br />
<div style="font-family: 'Courier New', Courier, monospace;">
<br /></div>
<span class="Apple-style-span" style="font-family: Verdana, sans-serif;">Now, we can start the compress of the files using the command "tar -zcvf log.tar /tmp/rob"</span><br />
<div style="font-family: 'Courier New', Courier, monospace;">
<br /></div>
<br />
<div style="font-family: 'Courier New', Courier, monospace;">
-bash-4.2$ tar -zcvf log.tar /tmp/rob</div>
<div style="font-family: 'Courier New', Courier, monospace;">
tar: Removing leading '/' from member names</div>
<div style="font-family: 'Courier New', Courier, monospace;">
a tmp/robertf</div>
<div style="font-family: 'Courier New', Courier, monospace;">
a tmp/robertf/logs</div>
<div style="font-family: 'Courier New', Courier, monospace;">
a tmp/robertf/logs/log_090411</div>
<div style="font-family: 'Courier New', Courier, monospace;">
a tmp/robertf/logs/log_090311</div>
<div style="font-family: 'Courier New', Courier, monospace;">
a tmp/robertf/logs/log_090211</div>
<div style="font-family: 'Courier New', Courier, monospace;">
a tmp/robertf/logs/log_090111</div>
<div style="font-family: 'Courier New', Courier, monospace;">
a tmp/robertf/logs/log_083111</div>
<div style="font-family: 'Courier New', Courier, monospace;">
<br /></div>
<span class="Apple-style-span" style="font-family: Verdana, sans-serif;">Let's check again if the tar file has been created. </span><br />
<div style="font-family: 'Courier New', Courier, monospace;">
<br /></div>
<br />
<div style="font-family: 'Courier New', Courier, monospace;">
-bash-4.2$ ls</div>
<div style="font-family: 'Courier New', Courier, monospace;">
log.tar</div>
<div style="font-family: 'Courier New', Courier, monospace;">
<br /></div>
<span class="Apple-style-span" style="font-family: Verdana, sans-serif;">Now, the log.tar was created in the original location /home/rob/logs so we don't need to move that back from the /tmp directory. </span><br />
<span class="Apple-style-span" style="font-family: Verdana, sans-serif;"><br /></span><br />
<span class="Apple-style-span" style="font-family: Verdana, sans-serif;">This is just a small example of how to find and clear space on your system. There are many many other examples. </span><br />
<span class="Apple-style-span" style="font-family: Verdana, sans-serif;"><br /></span><br />
<span class="Apple-style-span" style="font-family: Verdana, sans-serif;"><a href="http://www.cyberciti.biz/faq/find-large-files-linux/">Nixcraft - How to find large files</a></span><br />
<div style="font-family: 'Courier New', Courier, monospace;">
<br /></div>
<span class="Apple-style-span" style="font-family: Verdana, sans-serif;">Rob</span><br />
<br />
<br />
<div style="font-family: 'Courier New', Courier, monospace;">
<br /></div>
<div style="font-family: 'Courier New', Courier, monospace;">
<br /></div>
<div style="font-family: 'Courier New', Courier, monospace;">
<br /></div>
<br />
<br />
<br />
<div style="font-family: 'Courier New', Courier, monospace;">
<br /></div>
<br />
<br />
<br />Unknownnoreply@blogger.com0tag:blogger.com,1999:blog-6371708.post-57762438864693619752011-08-04T21:38:00.001-07:002011-08-04T21:38:36.682-07:00New jobIt's been a while since I updated this blog. For the past few months I've been busy with work, looking for a new job and finally starting a new job. I'm very excited to move away from the Windows world and work entirely with Linux and FreeBSD but it's also a big learning curve. <br /><br />For now, I'll spend my time on the transition skills, things I know in Windows but not confident in Linux. Also I will be relearning networking skills as I haven't heavily used this knowledge in a long time since I was so OS focused.<br /><br />How's that saying goes? Be careful what your wish for?<br /><br />Rob<br /><br />Unknownnoreply@blogger.com0tag:blogger.com,1999:blog-6371708.post-56169366169412033082010-12-21T10:09:00.000-08:002010-12-21T10:09:59.145-08:00<b>Camera Straps</b><br />
<br />
Since as long as I can remember, I've used the standard camera straps for all of my cameras. Of course point and shoots would use the smaller wrist strap but the SLR cameras were all your basic neck strap with two points connecting to the camera body. About 5 years ago I swapped out using the factory straps for the <a href="http://optechusa.com/pro-strap.html">Op-Tech Pro Strap</a> which I really like. It's a neoprene material on the area where it would rest on your neck and offers more flex than traditional straps, which is handy with heavy cameras. It's also reasonably priced, and I have three of them across my cameras.<br />
<br />
In the past few years the trend of different camera straps have been getting popular on the camera forums. From using a sling style strap, hand straps, and the body carriers have all gained a loyal following. As someone who has struggled carrying a should strap camera bag, then a tripod bag, and a camera with another strap, I've taken a look around what would be a better solution. I have not purchased any of the new styled straps but have some comments as I carry my gear in different methods to match my needs. As of now, I'm still using the same Op-Tech camera strap but considering a sling strap.<br />
<br />
<i>Keeping the camera close yet out of the way</i> <br />
<br />
One issue that I run into is how to secure my camera while also keeping it out of the way while walking or traveling. Sounds confusing but here's a common issue, I carry a shoulder bag which I wear on my left shoulder or across my body on the right shoulder. Then I have a tripod bag, usually carried in the same manner, then I want to have my camera at easy access, again on my neck. Sounds confusing and it is!<br />
<br />
I started to take my tripod out less, and now using a beltpack for my gear instead of the standard shoulder bag. But I'm starting to carry my camera instead over the neck, but more like a messenger bag across my back. This method I like for various reasons but it's really easy to keep the camera out of our way, especially with a large lens, also it allows a secure hold of the camera while moving. I had the camera in this position during running or walking through crowds and never had a problem.<br />
<br />
Also speaking of crowds, I like to hold the camera in this position because it's not swinging side to side as I walk. I feel it's a smaller profile, and like to keep one hand on my bag to make sure it's also not swinging side to side either. A large bag weighing near 15lbs isn't something to bump into people.<br />
<br />
<i>Why I like the standard strap?</i><br />
<br />
As mentioned earlier, I haven't tried the sling straps yet, the prices are about $50~100 for a complete setup. One issue that I really like using the standard strap is two mounting points vs one. The tripod socket is pretty strong on most cameras, built into the camera frame but I'm not sure it's the best place to dangle a camera all day from. If you have been reading some of the forums about these sling straps there's also complaints that the tripod socket connection will work it's self loose, dropping the camera to the ground.<br />
<br />
The problem I see here is with the two point strap like a standard camera strap, the body and lens have lens chance to twist around. Many of the sling strap lugs that connect to the tripod socket are fixed like a eyelet bolt, which does not allow free movement, so if the camera starts to spin clockwise, it's going to unscrew the mount. I have seen one brand that added a bearing system to their tripod mount, <a href="http://www.sun-sniper.com/">Sun-Sniper</a> which I think is safer.<br />
<br />
Not to mention that the camera, I think, has more secure points with the standard camera strap connections built on the camera body. Since there are two, it's less stress on the body and also as discussed, less twisting. One big plus I like about the standard camera strap is you can wear it either over the neck like a standard strap or over one shoulder like a messenger bag. Then it's more like the sling strap, giving you quick access to the camera but also out of the way.<br />
<br />
The point which I think makes the standard camera strap also better is it's closer to the body. Now this is something personal, but I really don't like to have my camera swinging far from my body, especially with a large lens. Even if you're a working pro, the last thing you want is to loose a lens from bumping the corner of a desk while on assignment. I've seen some of the straps hang very low and loose, really asking to be banged up against anything.<br />
<br />
Another point against the sling style is users of quick release tripod camera mounts. Most tripods now use beveled edge mounts to mount the camera to the tripod head, usually these are metal plates mounted to the camera's tripod socket which are a bevel to hold the camera to the tripod head. There's no place to mount a sling style strap unless you remove the camera mount and replace it with the loop for the sling strap. I like to use my tripod when I'm out taking photos but this would require me to completely change my setup. <br />
<br />
<i>Hand straps?</i><br />
<br />
There's some photographers who don't use a strap at all in the traditional sense. The strap of choice is a hand strap which I'm seriously considering. The sling and standard camera strap both support the camera while carrying it, but they don't offer any support while actually using the camera. During a long coverage for a wedding, I held my camera with flash unit, plus a heavy lens all day, after which I really wished for some hand support. I've been looking at the hand straps as<i> </i>they offer two positive points.<br />
<br />
One is the added strap to hold the camera to your hand, instead of using your fingers for grip, you can relax your hand and the weight is now supported by the arm muscles. The other is it's out of the way, less straps to deal with and easier to pack in the camera bag. The slight downside is that you will need either a battery grip or attachment to mount the hand strap, also the biggest problem, no saftey strap incase you drop the camera.<br />
<br />
I like to have my camera teathered to myself at all times, or on flat ground. I try to be very careful with my gear but of course mistakes and accidents happen, so I try to take all pre-cautions as possible. I would assume you could strap on a hand strap and camera strap to the same top mount but it would be very hard to have both straps through the same mounting point. A plus to the sling style straps as they use the tripod mounting point.<br />
<br />
<i>What is really the best strap?</i><br />
<br />
Really depends on your photography style and needs. I really like to have a multipurpose strap and the standard camera strap does that well for me. I can carry it in the normal position, also I can carry it like a sling. <i> </i>Also it's not in the way when I'm walking but can be right in front when needed. It's also great that I can use other attachments for the tripod socket as needed, like a quick release bracket or another attachment.<br />
<br />
I think for now, I'm going to stick with the standard camera strap and maybe purchase a hand strap to save arm strength, this gives me the most options.Unknownnoreply@blogger.com0tag:blogger.com,1999:blog-6371708.post-24875511189862897842010-11-17T01:51:00.000-08:002010-11-17T01:51:43.226-08:00<b>Finding a job by reversing the roles</b><br />
<div><br />
</div><div>In times when jobs are harder to find, you need to stay active on your resume and constantly check job postings to stay current. In the last few months, I've been reading mostly job boards, about a few times a week, looking for job roles that I match, checking the requirements, skills they request, and type of work. I also note if the company type, if it's a start-up, contract position, or contract to hire, including job title. </div><div><br />
</div><div>It's really interesting and if you have read <a href="http://www.jobhuntersbible.com/">What Color is your Parachute?</a> the best method to find a job is by working in reverse order. How does that work? First, you need to think about the need for the job? When there's a need for a new job position, often times it's requested by a hiring mananger, who then reports the opening to the HR department, then is posted on the Internet, which you might see and reply to. The problem is that you're applying for a job to the person who might have the least amount of knowledge for the job, then filters the contacts to the hiring manager.<br />
<br />
Not to mention that you may be the perfect employee, but you need to filter past many hands and departments, it's more difficult than just having the right skills to get the interview. When thinking about this problem, I think about the other side, from the hiring manager's perspective.<br />
<br />
For the hiring manager, they know what to look for and what they want in an employee. The skills required and the function this person may do in their role. But it's another thing to sort out the people with the actual skills versus the people who may over rate their skills on a resume, as anyone can add mention a technical phrase to a recruiter to get an interview. So now, the hiring manager will now need to filter out all of these resumes, and usually a long task of finding the right person.<br />
<br />
The big problem I see of this is that there's a large communication problem between the two main parties, the person who wants a job and the hiring manager who wants to hire someone. With many parties in between, it's a common issue that while you may be the perfect person for the job, a person down the chain of the hiring process may have other ideas. It could be as simple as you are not experienced but still have the knowledge, or maybe you understand product X but they are looking for someone who knows product Y.<br />
<br />
It's very confusing, and often times I think that the hardest part of finding a job is getting past the hr department, as their role is often not to hire someone but to filter out those who do not match the job perfectly. Not to say hr department is easy, trying to become an expert for many departments in a company and filtering out the correct people is an incredible difficult job.<br />
<br />
I think keeping this in mind is a good thing to remember when writing a resume. Often you need to really show what you can do and remember that the resume is the first item a hiring manager will see of you. It's really hard to show myself based upon a piece of paper, but considering the amount of time people can spend on each resume, it's the best to be honest and place your skills clearly. Also remember to tune your resume for the job as your applying for.<br />
<br />
This means that if you're applying for a job working with customer service, highlighting your customer service skills will be better than listing other skills (but those might be a close second). The idea before was that you would make one resume as a "one size fits all" approach but now it's a resume by job idea that I feel works best. In some cases, I had recruiters call me for one job role which I had skills for, and ask if I could do these tasks. Since I didn't list the skills by the actual name on the job description they were reading from, the recruiter asked me a few questions then told me I probably don't have the skills and wished me luck on my job search.<br />
<br />
I recommend that if you're looking for a certain job role, make a resume especially suited for the job. Then if you have another secondary job role, make another resume for that. I think this is somewhat the idea in fishing, as one lure might work ok for catching fish in a large lake but having multiple lures will work even better as different fish might be attracted to different types of lures.<br />
<br />
Rob<br />
<br />
<br />
<br />
<br />
</div>Unknownnoreply@blogger.com0tag:blogger.com,1999:blog-6371708.post-9577545544109590252010-11-10T01:11:00.000-08:002010-11-10T01:11:19.629-08:00<b>Keeping your data safe</b><br />
<br />
When I purchased my first digital camera, a <a href="http://www.dpreview.com/reviews/kodakdc280/">Kodak DC280</a> I took photos of my friends and other events enjoying the new to me technology. But of those photos, very little I have now due to a accidental formatting I did on my main computer. Back then, I would reformat my computer, reinstall Windows, and every time I think I lost some data here or there, either photos, or school work, or game saves, it was always something I would remember when the computer was finishing up the Windows install. Of course, at this point, it was too late to recover and the data was basically gone. I had some backups but nothing that covered all of the data I lost.<br />
<br />
After years of working with data on a personal level and also working with data on a business enterprise level I have some tips and tricks for the average end user. Here's my recommendations, and they are all low cost, where possible, no subscription needed. <br />
<br />
<i>A safe backup</i><br />
<br />
A common mistake is backing up your data on the same computer. Recently while rebuilding my laptop, I installed a second hard drive, the same size and manufacture as the first drive. When I reinstalled Windows, the installer asked which drive I wanted to install to, so I figured it was drive 0, not the second drive I installed which was drive 1. When the install was done, I checked my second drive to retrieve the data I stored on drive 1, but it was all gone. I checked again and found that when I reinstalled Windows, I installed Windows on the data backup drive, not the Windows system drive. <br />
<br />
I couldn't figure out how this mistake took place until I realized that the manufacture installed the Windows OS on the wrong drive, drive 1, then the new drive I installed was drive 0. Lucky for me, I only lost a bunch of ISO images I downloaded but it could have been worst. This example is why backing up on the same computer is not really a solid "backup". <br />
<br />
For a better backup solution you should think about the following. Is my data safe if my computer's hard disk crashes? What if my computer's second hard disk crashes? What is my backup drive is stolen? Below I wrote a listing from least safe to most safe for backups which I personally recommend for home users. <br />
<br />
1) <b>Backing up on the same drive</b> - This is great for working on a document where you are making edits and is a work in progress, but you should save your work end of day to another drive or location like a USB stick.<br />
<br />
2) <b>Backing up on another drive, same computer</b> - This is a good solution for storing items that need quick access like photos or music. In most cases the second hard drive has much less use than the main drive and would equal less chance of failure but it would not protect against theft of the computer nor a virus.<br />
<br />
3) <b>Backing up on an external drive</b> - Now we are starting to get into a much safer solution. Now you're data is easily accessible by USB, but it's also not too hard to access, a great combination. The only issue is theft or fire in the home but this is covered if you storage the drive in a safe location, or if you keep another backup in a different physical location. <br />
<br />
4) <b>Backing up on an external drive, also using on-line backup</b> - This is the method I use and it's been pretty handy. While it's not free, typically costing about $100 per year, my data is backed up once by myself and then automatically by the backup provider. Since I backup not daily but every time I take a large amount of images from my camera, I wanted to have something to backup the small files I was working on and this works perfectly. <br />
<br />
<i>Know where your data is located<br />
</i><br />
<i><br />
</i><br />
What is the best method to backup your data? I would first recommend to know where you data is located, then what is the most important data to backup. One of my biggest mistakes when I first started to use the computer was I stored data all over the place on my computer. From different drives, keeping data on my personal home folder, or keeping it under another folder, it was a large mess. Now, I use a different method for keeping the data in one location. <br />
<br />
For a Windows system, I store all of my data under the account's document folder, this way if I backup the "My Documents" folder, then I can save all of my web page links, settings, Outlook PST files, photos, data, etc. On a Linux system, I follow the same method, I just make sure to save all of my work under /home/robert and this makes things much easier to manage. <br />
<br />
<i>How to backup your data</i><br />
<br />
Backing up data is done in many methods but I really prefer simple over complex. There's plenty of free software, paid software and great built in software available for the home computer. I recommend that you use either the built in software for backing up or a simple file copy to backup your data. Here's my personal reason why. <br />
<br />
When you use a special software to backup your data, you're usually compressing the files for the backup into a new format for backup. In most cases, the new format is not cross compatible, for example if I'm using brand X for my backup and it uses a formatting called "mybackup.mmg" then it's typically only going to work with software that knows about mmg files, in this case, the brand X application. <br />
<br />
The big issue about this is that your data is only safe as long as the brand X software is available, which given the rate of software changes, could be months to years. For this reason I really only use two methods to backup my data on a Windows system. Either Windows Backup, which is built into most Windows systems that are higher than "home editions", or a simple file copy. In the years of using Windows Backup, I never had a issue where one version of Windows could not read another version's backup files, and thanks to the automated process with a simple wizard it's very easy to use. <br />
<br />
Recently I'm now using a simple script to run a copy job from my desktop to a USB drive, not using any special backup software. For me this runs very easy, I can have access to the backed up files at time and as long as the drive is still working, my data is accessible.<br />
<br />
<i>Size limits of backup</i><br />
<br />
In most cases unless you have a large amount of backup storage, you will not want to backup the entire profile on your computer. You might want to have the data easily accessible from a USB drive as D:\photos instead of D:\backup\robert\photos. Here's comes a common issue, how can I backup everything that is important without the extras that are not important? Let's say, I want to only backup my documents and Outlook PST data from my workstation?<br />
<br />
If someone was to ask me this I would to the following steps on a Windows system.<br />
<br />
1) Where are you saving your data? It's easy to assume "My Documents" but I have seen users save data to either the root of the main system drive, in most cases C:\ in a folder like "my data" and even saved under a strange folder like "09". It's my recommendation that you search the drives for Microsoft Office documents, images, music, Microsoft PST files at the very least. I usually use a search string as "*.xls; *.xlsx; *.doc; *.docx; *.pst; *.jpg; *.jpeg; *.mp3; *.wma; *.wmv; *.mov; *.m4a; *.mpg; *.mpeg".<br />
<br />
This covers most of the common file formats including Apple iTunes formats but check twice and make sure you record all of the possible paths the user might have used. <br />
<br />
2) Once you know the data locations you can either run the system's backup software or a simple file copy to backup your data to another location. <br />
<br />
<i>Test your backup solution</i><br />
<br />
Before thinking everything is ok, test your backup solution once in a while before committing this process for months or years. It's easy to restore a few files and this small test will save you hours later from recreating work, if it's even possible to recreate. :)<br />
<br />
Hope this has been helpful and here's some links for reference. <br />
<br />
<a href="http://www.microsoft.com/windowsxp/using/setup/learnmore/bott_03july14.mspx">Windows XP Backup Made Easy</a><br />
<br />
<a href="http://mozy.com/">Mozy Backup Service</a><br />
<br />
<a href="http://crashplan.com/">Crashplan Backup Service</a><br />
<br />
<a href="http://www.desktoplinux.com/articles/AT2280165098.html">A simple Linux backup plan</a><br />
<br />
RobUnknownnoreply@blogger.com0tag:blogger.com,1999:blog-6371708.post-21281737033206054112010-11-07T18:59:00.000-08:002010-11-07T18:59:14.742-08:00<b>Going with Ubuntu full time</b><br />
<br />
Recently I've been using Ubuntu 10.04 LTS for my main laptop, switching from Windows Ultimate 7. In the past I had Linux installed on either a old laptop or a part time computer but now I'm working with Linux on a main computer. The easy part is finding how well Ubuntu installs, with drivers, the only part that needed installing a separate driver was the Nvidia video card. <br />
<br />
Other than the driver, the rest of the applications were installed, Open Office, VirtualBox, Gwibber, and a few extras that are also available on Windows. I also used DropBox to keep my other workstations updated with the same files from Windows to Linux, the application alone makes the transition so much easier. <br />
<br />
But after getting everything I needed from Linux, there was some problems. One of the issues is Microsoft Office and working with Open Office formats. If you open a Microsoft Office Word document 2007 DOCX format file in Open Office the formatting is not 100% correct, and vice versa a Open Office ODT format file will not open correctly in Microsoft Office. I tested this out at home but didn't notice any issues until I started to send out documents to other users that I saw many people having difficulties opening the files. <br />
<br />
Another issue is formatting with certain browsers or applications only available for Windows. One of my favorite web applications is watching Netflix, which streams the video using Microsoft's Silverlight. As far as I know, there is no official alternative for Silverlight on Linux, but you can use <a href="http://www.mono-project.com/Moonlight">Mono</a> as a possible solution. I have not tried this so I can not speak on the reliability of this solution. <br />
<br />
The formatting issue is not really a problem on Linux but a problem of people using either ASP or Internet Explorer specific formatting versus formatting for non-IE browsers. While the percentage of web sites that have issues is going down, there's still that strange website that will always have problems. Also for the Linux users who need VPN access, most cases VPN clients are for Windows users. I got around this issue but running a Windows XP virtual machine in VirtualBox, it's not really a solution rather a work around. The same work around I recommend to Mac users who wanted VPN access using their Mac hardware.<br />
<br />
Other than the strange site or special application, my Ubuntu machine has been working excellent and funny that even the control buttons on the Asus laptop that did not work with Windows 7 work with Ubuntu. So far, running all of my favorite applications including my new favorite <a href="http://do.davebsd.com/wiki/Docky">Docky</a> for the desktop and the transition has been very seamless. <br />
<br />
It's really impressive how much Linux and Ubuntu have come along, with the recent change of Internet Explorer loosing the top spot for browser this might allow even more adaptation of Linux to work further. <br />
<br />
RobUnknownnoreply@blogger.com0