Dec 07

Archived post from another blog:

This tutorial will show you how to customize and remaster your ubuntu 9.04 jaunty using a jaunty iso file.

1. Create a work directory

# mkdir jaunty

2. Create the following directoires

# mkdir jaunty/cdrom
# mkdir jaunty/tmp
# mkdir jaunty/root

3. Mount the jaunty iso image on jaunty/cdrom directory

# mount -o loop jaunty.iso jaunty/cdrom

4. Copy everything from the cdrom to jaunty/image directory

# cp -r jaunty/cdrom jaunty/image

5. Now the image directory has the content of your cdrom

We are going to rebuild filesystem.squashfs under jaunty/image/casper

Move the filesystem.squashfs image to jaunty/tmp directory

# mv jaunty/image/casper/filesystem.squashfs jaunty/tmp

6. Mount the filesystem.squashfs under jaunty/root direct

# mount -o loop jaunty/tmp/filesystem.squashfs jaunty/root

7. Copy the contents of fileystem.squashfs to jaunty/remaster

# cp -r jaunty/root jaunty/remaster

8. Copy resolv.conf and sources.list from the host system

# cp /etc/resolv.conf jaunty/remaster/etc/

9. Preserve original sources.list.

# cp jaunty/remaster/etc/apt/soures.list jaunty/remaster/etc/apt/soures.list.backup
# cp /etc/apt/sources.list /jaunty/remaster/etc/apt/

Make sure that sources.list points to jaunty archive

10. Now you can chroot to jaunty/remaster

# chroot jaunty/remaster

11. Now run the following ( You are inside chroot )

# mount /proc
# mount /sys

# mount -t devpts none /dev/pts

The above commands mount the respective directories inside chroot.

12. Now you can install/remove necessary packages using apt.

eg:
# apt-get install vlc
# apt-get remove gimp

13. Cleanup the unwanted files.

# apt-get clean
# rm -rf /tmp/*
# rm /etc/resolv.conf

# umount -l -f /proc

# umount -l -f /sys

#umount /dev/pts

14. Now replace the sources.list with the original sources.list

# cp jaunty/remaster/etc/apt/sources.list.backup jaunty/remaster/etc/apt/sources.list

15. Repack squashfs:

# mksquashfs remaster image/casper/filesystem.squashfs -e remaster/boot

16. Recreate filesystem.manifest& filesystem.manifest.desktop:

Run the following commands.

# chroot remaster dpkg-query -W –showformat=’${Package} ${Version}\n’ | tee image/casper/filesystem.manifest

# cp -v image/casper/filesystem.manifest{,-desktop}
# REMOVE=’ubiquity casper live-initramfs user-setup discover xresprobe os-prober libdebian-installer4′

# for i in $REMOVE
do
sed -i “/${i}/d” image/casper/filesystem.manifest-desktop
done

17. Recreate md5sum

# cd image && find . -type f -print0 | xargs -0 md5sum > md5sum.txt

18. Copy filesytem.squashfs manifest to imag dirtorey

Recreate the iso image:

# mkisofs -r -V “$IMAGE_NAME” -cache-inodes -J -l -b isolinux/isolinux.bin -c isolinux/boot.cat -no-emul-boot -boot-load-size 4 -boot-info-table -o ../ubuntu-jaunty-remix.iso .
# cd ..

Now your remastered ubuntu 9.04 jaunty is achived.

Now install the image on to a hard disk.

written by Walt Dundore

Oct 08
Microsoft mulling 128-bit versions of Windows 8, Windows 9Microsoft is working on 128-bit architecture compatibility with the Windows 8 and Windows 9 kernels. Consequently, the company is also forming relationships with major partners, including Intel, AMD, HP, and IBM.[Ars Technica

written by Walt Dundore

Sep 24

Where do I start?

First, determine what is the critical data that needs to be protected.  Make a list of any and all software that needs to be protected.  You should have software to reinstall your operating system and software that is installed, so let us focus only on the data files that need to be protected.  First, any documents, pictures and music files that you never want to lose should go on this list.  Financial data, database files that hold personal information, spreadsheets, password files and the data files for applications like Quicken, Quickbooks, Word, etc.  all need to go on this list.

Now you can get an external hard drive or if you have another machine on your network you can store files on you can begin to backup all of these files. You can simply copy them into organized folders or you can use the backup utility that comes with your operating system.  In addition there are really great third party utilities out there for backing up as well.  The point is, no matter how you choose to back up, you need to take action and actually do it.  This is the only way you will have access to this data if the data on that hard drive gets destroyed.  This brings up another point, if there is a natural disaster such as fire, flood, tornado etc., where will your data be?  If you are backing up to an online service or if you are taking a removable hard drive off site, that is fine.  However, don’t assume just because it is backed up to another computer in the office that it is perfectly safe.

What operating system should I be running?

This boils down to your own personal skill level and personal preference.

Windows is the 800lb gorilla in the room and has the largest installed base, especially in this area.  If you are running a version of Windows, you really should be running Windows Vista or Windows 7 once it is released.  While XP was a pretty good operating system, Vista and 7 are both designed around not using an administrator account for day to day use.   This has always been the case with Unix based operating systems like Linux and Apple’s OSX.  However, typically Linux requires a higher degree of computing knowledge to run and Apple’s OSX requires a good deal more money for hardware as well as software.  Windows is using a feature called User Account Control which a lot of people are disabling but I really don’t recommend doing that.

How about protecting the computer from viruses, spyware and popups?

You really want to use a layered defense to protect your machine.  Just an antivirus isn’t good enough anymore.  First, you need a good firewall between yourself and the Internet.  If you have DSL as most of us do around here and there is a router attached to the Internet, that router usually has a built-in firewall.  It won’t hurt anything if you add another firewall behind the one from your Internet Service provider though unless you need some inbound connection like sharing files or there are games you are trying to play online that require a connection from outside.  Then you might need to read up on how to set up the firewall to allow those connections.

Next, don’t use the administrator account on your machine.  Make sure you are logged in as a limited user that does not have the rights or privileges to install software.  Now, this may sound like a pain, but what you are trying to do is take away the rights and  permissions required to install a virus as well.  If you are using Vista or Windows 7, this is enabled by default.  If you are running Windows XP, check that you are a limited user and that your account is not part of the Administrators group.

Next, make sure the software firewall on your machine is turned on.  Firewalls prevent other computers from attacking your computer.  This is in addition to the hardware box that we talked about earlier.  This is especially important if you have a home or small business network with several machines because if a virus does get on the network, you want there to be another layer of protection between an infected machine and a clean machine.

Make sure you have your computer set to automatically update.  It doesn’t matter how hard people try, no one is perfect when writing software.  There are going to be problems, or bugs, that need to be patched.  As these bugs are patched, they are released as software updates but if you don’t you’re your machine set to receive them, you are not receiving the benefit they offer.

Don’t install any software you don’t need and uninstall any software you don’t use.   Go through your machine and see if all of the programs that are installed are actually being used.  There is a good chance that you have software installed that you never have used and even don’t know how it got installed.  By removing unnecessary software, you are eliminating one more way that the machine can be compromised due to a flaw in software.  One way to keep software that you do use up to date is by using a software update tool such as Secunia’s Personal Software Inspector (http://secunia.com/vulnerability_scanning) This allows you to see what is installed that may have an updated version with bug or security fixes.

Be sure you have antivirus software installed.  Use a current-generation program and run a daily scan some time when you are not using the computer like midnight or 3:00am.  However, I do want to stress not to use more than one antivirus on the same machine because that can cause problems also.  There are companies that test antivirus software and compare them so check that the antivirus you are using is rated highly. (www.av-comparatives.org) My current personal favorites for home use are Antivir’s free antivirus and Avast’s personal edition. Bear in mind that while these may be free for home use, small businesses need to purchase a license.

Use common sense when downloading software.  If you are getting free software from untrusted sources, there is a good chance you will be downloading a virus.  A good example that I see  a lot is Microsoft’s Office suite.  I see a hacked copy of this software on every other machine that comes in for virus removal.  If you are a home user, there is a good chance you have a student using the computer and can take advantage of the discount Microsoft offers for $59.99 by going to www.theultimatesteal.com .  For completely free office software, check out www.openoffice.org.  If you want to download music, don’t fire up Limewire or bittorrent.  Go to Amazon or use iTunes.  Remember, Trojan horse software got the name from the Trojan Horse that was presented as a gift and was acting as one thing but had a dangerous payload for the ones receiving it.  Don’t be fooled into taking that bait.

This also brings up the phishing techniques we are seeing with fake emails.  Pay special attention if you receive an email from someone claiming to be from the IRS, Blizzard (for those who play World of Warcraft), Ebay, etc.  If you do receive one of these emails and want to check the validity, don’t click anywhere in the email.  Go directly to the website of the company that sent the email.  This at least will keep them from directing you to their website.

Another way that people are fooled is by these websites that look like your computer is being scanned and a virus has been found.  All you need to do is click to download their Antivirus 2009 or some other scam software.  If you see this, you should immediately hit Ctrl+Alt+Delete and end the task for your web browser.

After using these techniques, it is extremely unlikely you will ever get spyware or a virus.  However, to be on the safe side, here are a few recommendations:

SuperAntispyware (http://www.superantispyware.com/)

Malwarebytes AntiMalware(http://www.malwarebytes.org/)

Spybot Search and Destroy(http://www.safer-networking.org/)

How about using another browser like Firefox?

If you like using an alternative browser, use whatever browser you prefer.  However, don’t be fooled into thinking one is more secure than another.  All web browsers have exploits and the first step is protecting the operating system itself from those attacks by not running as an administrator to begin with.  Also, you want to make sure any add-ons like Java and Flash are updated.   One thing I really do like about Firefox in particular is a plugin that was written and adds functionality called NoScript (https://addons.mozilla.org/en-US/firefox/addon/722).  What this extension does is allows you to approve websites that can run addons without having to have all websites have permission to them.  If you are not running Firefox, you can still use the security zones in Internet Explorer to determine what websites have permission to run ActiveX and Java.  For more information on securing your web browser, take a look at the Computer Emergency Response Team’s page here (http://www.cert.org/tech_tips/securing_browser/.)

written by Walt Dundore \\ tags: , , , , ,

Sep 03

As most of you know, I teach at a technical college and I am always looking for ways to help the students to make mental models of the information we are covering.  This framework helps the understanding of abstracts like classes and associations.   While preparing for next quarters PHP class, I just ran across nWire for PHP. 

Wow. 

This is exactly the tool needed in our educational environment.  It takes the abstract code associations and sets them up visually.  It takes a lot of brain power to do this without such a tool, but for a budding web programmer it is especially difficult.   I can definitely see how it will make the day to day coding much easier and less time consuming.  Of course, with less time spent on a project, you get paid sooner and you spend less money paying hourly programmers for that job. 

However, my focus has always been on ways to help students learn the material.  It is much easier when the code is written for the associations to be visual than trying to explain them on a whiteboard.  This isn’t to say that the programmer won’t still have to know what they are doing, but any tool that speeds up the development process while at the same time eliminates errors and improves security is a great tool.

Another great feature of nWire is the fact that it integrates with Eclipse.  Eclipse is a powerhouse in both Java and PHP development and it only seems natural that a tool that can be used for both languages would integrate with that integrated development environment. 

nWire for PHP and nWire for Java are both available from nWire’s website at www.nwiresoftware.com.  nWire for PHP and nWire for Java are $59 each but can be purchased together for $99.  At this time I do not see any educational discounts, however there are volume discounts available.

written by Walt Dundore

Aug 11

It is a natural and normal thing to be nervous when interviewing for a position with a company that you are interested in.    You can have all the experience in the world, then blow the interview by making it seem that you are not confident in your abilities.  Here are some tips toward that end to impress the potential employer and put on your game face:

  1. Practice what you are going to say: If you are not prepared, some of the questions can catch you off guard.  Remember, you know yourself and your abilities, but the potential employer has a need and a position to fill.  They are looking for the best fit for the position.  But also remember that they are just as interested in having someone in that position as you are in being in that position.  So it is important to convey your knowledge to them and communicate what you know.  The best way to do this is prepare.
  2. Be honest: Don’t try to bluff your way into the job.  People can read body language.  They can see when you are hiding something in a job interview, this is a bad, bad thing.  If there is something you don’t know, be honest.  It would be worse to be on the job and not know how to proceed than to miss out on this job opportunity.
  3. When you are not interviewing, be honing your skill: Enroll in courses at your local technical college, use online courseware, or buy technical books.  Any way you choose, keep on top of your game and honing your craft.
  4. Never, never give up:  If you are good at your chosen profession, you will find the personality fit between yourself and that special location.  Besides, it is as important for you to fit into the community of where you are as it is for you to have the background to work there.

Good luck and happy hunting!

written by Walt Dundore \\ tags: ,

Jul 22

more…

written by Walt Dundore

Jul 22

The companies announced on Wednesday that Amazon was acquiring Zappos, based in Henderson, Nev., for 10 million shares of Amazon stock worth more than $800 million. Amazon also said it would give Zappos employees an additional $40 million in cash and stock.

http://www.nytimes.com/2009/07/23/technology/companies/23amazon.html?_r=1

written by Walt Dundore

Jul 15

Nautilus SVN for Linux is essentially a clone of Tortoise SVN(Windows).  Just another step in making Linux more Desktop friendly.

written by Walt Dundore

Jul 15

https://jdk6.dev.java.net/6uNea.html

Installation instructions:

Download the latest version, at press time it is:

jre-6u14-linux-x64.bin

cd /opt
sudo sh ~/jre-6u14-linux-x64.bin
cd /usr/lib/mozilla/plugins
sudo ln -s /opt/jre1.6.0_14/lib/amd64/libnpjp2.so
(restart firefox)

visit: http://www.java.com/en/download/installed.jsp?detect=jre&try=1

written by Walt Dundore

Jul 13

We have seen the rumors before of an oversized iPhone.  However, now Wired is reporting that the Apple tablet has a launch date just around the bend.  If you can speak Mandarin Chinese, here is the original article.

written by Walt Dundore