Mac Terminal


So in an effort to further my skills and my pure geekness as a CIT major and a cleanfreak in general I have drastically improved my knowledge by trial and error yet once again.  The trying and erroring was mostly done by me and one question to codekoala and the mystery solved.  So the situation is I sometimes want to download a large file and i don’t want to have use firefox and open the whole browser.  Well I also want to use a completely native application on my mac just for the sake of keeping my mac not clogged up with so much stuff.  I could have installed macports and I actually did to use wget from within the command line but curl is already native and so I started experimenting with it.  At first I just did: curl URL As you very well may know this just spitts the download to standard out and prints I think ASCII to the screen as it is being downloaded. Well, my very limted knowledge of linux and unix told me well just see what happens, maybe the file will show up. So I started checking in the directory, nothing. So then codekoala came online, I asked him and he told me.
So here is the command:
curl -O url
what the -O does: it says instead of spit this out as standard out on the command line put it to the file with the same name as it has on the web server.
Don’t I feel like a smart one. 🙂

Terminal VMWare

Explore your command line interface

  1. Switch the first virtual terminal by pressing ctrl + alt + f1.  to get the f1 to go i have to press the function button.
  2. switch to second virtual terminal with ctrl + alt + f2
  3. logout by typing exit
Linux VMWare

Explore your GNOME Desktop

  1. Logged in to Gnome Desktop environmentpicture-14
  2. Started nautilus file manager from menu:
  3. Moved example.txt to trashpicture-16
  4. Log out:
Computers Linux VMWare

Explore your KDE Desktop

  1. Logged in
  2. started file manager Konquerer
  3. View contents of /etc/ directorypicture-101
  4. Copy the file Dir_Colors
  5. Rename the DIR_COLORSfile to example.txt
  6. Logout
Mac Terminal


Another great experience with the terminal.  Since I reformatted I lost macfuse and sshfs to mount my server’s drive to my mac os x desktop to transfer files I had to find an alternative.  Yes I could use some FTP client but since I have learned how unsecure ftp can be I have started to used the command line anyways.  So to transfer my files I learned about scp.  Great little utilty.  Here’s the command:
scp file username@server:directory


Command Line, Terminal

Sometimes things just don’t have to be hard.  A while back I had this premonition about my newly bought MacBook that I was going to use the Terminal for everything because the shell is just so cool in my geeky major of Comuter Information Technology.  Well I have certainly not held strong with my idea.  But Josh will be glad to know I have used it and gained experience with it so I feel comfortable enough where I can go and do the small things without any hesitation.  So I had made a folder with all these pictures (about 90 pictures) in it.  I wanted to be a little more organized and so I wanted to move all those pictures into another folder.  There were still a few lingering files in the folder as well that I did not want moved.  So the Terminal was much quicker.
mv *.jpg folder/

Instantly the task was done and I didn’t have to worry about scrolling up the screen to grab all the right items and ordering them.  Just take the pictures and put them in the folder.  I know this seems elementary to you all out there, and I am sure in a few years it will to me as well, but in the mean time I will just bask in my geekness.

Mac VMWare

Install SLES with KDE and GNOME

I am using VMWare Fusion 2 on a Mac.  The disk size is 20 GB.  Sharing will  be disabled.  I will give it 1 GB of Ram.  I will use NAT for the network connection.  The way I understand Fusion is basically the DHCP and gives the VM OS the same IP address every time.  I will use the SLES SP 2 ISO for the CD drive.  I will use a 10 GB disk size split into 2 GB files.

  1. Select Installation (Down arrow once)
  2. Second option is to select the language and click next.

  3. Yes, accept the license agreement and click next.

  4. select “New Installation Mode”

  5. Choose the time zone and local time and click next.
  6. Check all the settings one more time you will find KDE is not part of the defualt install.  so you can click on change close to the bottom of the screen,
  7. Select KDE Desktop as well as C/C++ compiler tools and accept.
    add KDE
  8. It will ask you to confirm the package license, so click I Agree.
  9. It will then ask you to confirm the installation, so click on Install.
  10. Then it will take a bit, but it will go through and perform the install.
  11. It will then ask you for a root password.
  12. Password Warning.
  13. Password Warning.
  14. Password is too short.
  15. Specify the hostname and domain name.
  16. Looking for DSL Devices.
  17. Looking for PPPoE DSL Devices.
  18. Looking for ISDN cards.
  19. Looking for Modems.
  20. Auto Detecting the Network connection settings.  Notice SSH port is block.  Click change and we will enable that.
  21. Under the Dropdown for service to allow click on SSH and Remote Administration and Add them from the right.
  22. Now it shows Open, click next
  23. Internet Connection Test
  24. Successful internet connection
  25. Connect to Customer Care
  26. Waiting for Novell Customer Care Center
  27. This is an error not being able to connect to customer care.
  28. Skip the customer support info.
  29. This has to do with remote login I am assuming.
  30. Check the appropriate Authenticate method.
  31. Username and password:
  32. This is the Release notes for SLES.
  33. This will auto detect the hardware.
  34. Check all the Hardware configurations to see if they were auto detected correctly.
  35. Finish the installation.
  36. Now you are ready to log in.
Computer Security

Computer Security and Alma?

So my first Assignment in my security class was to read Alma chapters 43, 49, 50 in the Book of Mormon.  Interesting to say the least.  How do these chapters apply to Computer Information Technology Security?  Well, I will tell you.
Alma 43:19 tells us about how Moroni prepared his people for battle.  Let’s say an attack on a computer or information system is like a batte in war.  If you are prepared beforehand, then ye shall not fear.
The beginning of Alma 49 talks about how the Nephite cities were fortified.  I would liken this to a firewall in a computer.  There are only certain points where entry or exits are allowed.
I know the scriptures can apply to all aspects of life, even Technology! 🙂


Time Machine External Drives

So I got a great deal on a Maxtor One Touch 4: 1TB for 140.  I am no math wiz but isn’t that like 14 cents per gig.  I have to say, it was a good deal.  I bought this drive to replace my previous time machine backup drive.  One big problem with this.  It came preformated with the wrong filesystem.  Well, I had the hardest time with Disk Utility to format the drive to the correct format.  I kept getting errors when I wanted to format it to HFS or really anything but MS-DOS.  So after much google-ing, I finally just decided to delve into the old command line and just get it done.  That’s the great thing about a MAC is when all esle fails.  The Unix background of a MAC just enables you to just get it done. I chose to use the diskutil and erase the disk and format it to the Journaled HFS+ format which is the prefered for Time Machine.
Here’s the command to type into the terminal window:
diskutil eraseDisk JournaledHFS+ WhateverYouWantToCallYourNewDrive disk1
This seemed to work relatively fast as well.