↓
 

Brent's World

Your weekly dose of the life of Brent!

  • Home
  • About Me
  • Korea
  • Travel
  • Restaurants
  • Photography
  • Movie Reviews
  • Book Reviews
  • Recipies
  • Index
  • Forums
Home - Page 14 << 1 2 … 12 13 14

Post navigation

Newer posts →

Apple Announces The End Of The Line For Aperture

Brent's World Posted on July 8, 2014 by Brent HendricksJune 19, 2018

imagesApple  Announces The End Of Aperture, And I’m Worried.

I have been using and promoting the use of Aperture since purchasing my first digital camera in 2007, looking back its hard to believe that is over 7 years ago. My how time flies.   What originally drew me to Aperture was that at the time it was the easiest and most advanced way of working with RAW Files.  Way back when I used a 35mm Canon EOS, I shot mostly slide film. So to me the decision to use RAW was pretty easy for me.

I have tried several times to switch to Adobe Lightroom, which I will admit has several advantages over Aperture, such as built in lens correction profiles, chromatic aberration correction, and multi touch brushes. What Lightroom does not hold a candle to is the speed of importing photos, the processing and display of slide shows on the fly, photo printing options, and what I think is a superior layout and workflow.

While Apple has promised that the new Photos.app will be fully compatible with my libraries and that it isn’t abandoning it’s pro users. It makes me wonder just how much pain is in store going down this road. Remembering the pain the pro video crowd suffered during the initial days of Final Cut Pro X. How much no frills functionality will I have to sacrifice for form just to please the mainstream consumer crowd?

One other thing that I am sure is weighing heavily on the minds of the real professionals (by real professionals I mean people who make their living with their camera’s and post production suites.), the people who choose an Apple’s product to build their workflow around are once again being forced to adapt to a completely different application. One that from what I saw is being marketed mainly towards consumers. If I’m questioning if I should have bit the bullet and just stuck with lightroom when I was evaluating “switching” I am sure others are as well. At least we would have a stable product pipeline.

Only time will tell, if the announced 6 month wait for the new Photos.app will be what we we’re hoping and waiting for with an update to Aperture, or will it spell the end of Apple’s involvement with professional photography work flow? Is this worth it just for iCloud support?

 

RIP Aperture –

Posted in Technical | Leave a reply

REPOST: Securing *NIX root access with SUDO

Brent's World Posted on June 22, 2014 by Brent HendricksJune 22, 2014

Securing root access by configuring SUDO

Blog - Centos  In previous blog posts, we have enabled and used the root account to make changes to important *nix configuration files to tweak the system to perform in a manner more to our liking. For example in preventing the mounting of un-needed Windows volumes while using Mac OS X. https://www.catracing.org/hendrb/?p=32 (Suppressing auto mount of volumesin OS X with /etc/fstab). I mentioned that using the root account was not an accepted best practice. So what is considered “best practice”? How are you supposed run commands, or edit important system files that require root access?

Also in the previous article I introduced you to the command su, Which coincidently stands for “Switch User”, not “superuser”, don’t believe me?  SU will allow me to switch to any user on the system, and inherit the rights of that user, not specifically “SUPER USER” access. In todays article I will introduce you to another command, sudo. Or switch user do. (In Windows this would be equivalent to the RUN AS option).

Lets first take a look at sudo in an OS X terminal session. I will open up the file /etc/hosts in vi as a normal user. (Using the absolute path)

 prompt$ vi /etc/hosts

 ##
# Host Database
#
# localhost is used to configure the loopback interface
# when the system is booting. Do not change this entry.
##

127.0.0.1       localhost
255.255.255.255 broadcasthost
::1             localhost
fe80::1%lo0     localhost
~                                                                              
~                                                                              
~                                                                              
~                                                                              
~                                                                              
~

“/etc/hosts” [readonly] 17L, 445C

Notice that the file was opened as read only?, this is because my normal user account does not have access to write to the /etc/hosts file. While we could su to root, then issue the vi /etc/hosts command, this is considered poor practice, and frowned upon. Best practice stipulates that you should always login with an account with the least amount of privileges, and use a privileged account only when needed (Some system admins actually recommend that you disable the ability to login with the root account anywhere but from the actual server console.) This not only protects your workstation from hackers getting root level access, but protects you from doing something stupid. Like accidently deleting important files or directories.

Let’s take a look at CentOS, and discuss how to configure SUDO.

$ sudo vi/etc/hosts

user Is not in the sudoers file. This incident will be reported!

Uh Oh!! What did we do? No need to panic, or plan on leaving the country! This is completely normal. We have not yet configured the system to allow your account to use the SUDO command.

In order to configure sudo, we need to edit a file called /etc/sudoers. However there is a catch. You do not want to just edit the sudoers file in any old text editor (You are even told this in the man file for sudo!) Instead we will use the visudo command, which loads the /etc/sudoers file into vi for us. Yes you will first have to su to root. It’s okay!! This will be the last time you will be doing this on your system. GO FOR IT! I won’t tell anyone!

Now that you have switched to the root account, there are 2 ways we can go about allowing your user account use the sudo command. The simplest method is simply adding your username to the file. Which we will discuss first, which will work with a stand alone desktop with only one or two users. The second method, which is best practice for a server with multiple users is to add a group to the system, and configure the sudoers file to allow members of that group access to the command. This way instead of having to modify the file each time you want to grant a user sudo access. You just add them to the member of the group.

So let’s get in to method #1.

First su to root.

$ su –
Password:

(enter your root password)

Now type visudo

# visudo

You should now see the sudoers file loaded into the standard vi editor.

Look for the following line.

 ## Allow root to run any commands anywhere
root     ALL=(ALL)                  ALL

Use your cursor keys to position the cursor underneath this line, then enter insert mode by pressing I, the add the following.

 <username>  ALL=(ALL)                  ALL

Enter command mode by pressing ESC, then write the file and quit with the :wq command. You should now log off the system, and back in so the new SUDOERS file is reprocessed.

Now test that the file was edited correctly, by trying to edit the /etc/host file with the sudo command.

 $ sudo vi /etc/hosts

You should be prompted for your password.

password:

Enter YOUR user password. If everything is successful, you should now be in vi, with /etc/hosts loaded. You should not see the file being read only this time.

Quit vi by entering q

Now lets looks at the second method I mentioned above (This time dealing with CentOS Linux), For OS X users, simply create the group sudo using System Preferences > USERS and GROUPS, and add it to your user account, and skip to step 2.

For those using Linux switch your user account to root (Or use sudo if you completed the steps above.)

 $ su –
 password:
<Enter root password>

We will now create a new group called sudo (I will not be using any options, if you wish to know more about this command, check out it’s MAN entry)

 # groupadd sudo

We now must add the new group sudo your user account as a supplemental group.

 # usermod -a -G sudo <username>

Option -a appends a supplementary group to the specified user account, this MUST be followed by the -G option.

The name of the group we are adding is the newly created group called ‘sudo’, followed by the name of the user account. Note: You can add multiple supplementary groups here with the group names separated by a comma ‘,’.

We can verify that the group was successfully added to the user by the following command.

  #groups <username>

You should see list of the groups the user is a member of, including the newly created group sudo.

The last thing we need to do to wrap this up, is go back into the /etc/sudoers file and add the sudo group.

 #visudo

Look for the following text.

##Allows people in the group wheel to run all commands.
# %wheel       ALL=(ALL) ALL

Move your cursor below the above line, and enter INSERT mode by pressing I

Add the following line to the file.

%sudo          ALL=(ALL)ALL

Hit ESC to enter command mode, save and exit VI, by entering :wq

You can now control who has full SUDO access, simply by adding the user to the group sudo.

There is one more item I would like to cover regarding the SUDO command. By default, you can use sudo for 10 minutes before you are prompted to enter your password again. I consider this poor security. If you leave your computer without closing your terminal session, anyone who comes along has full access to your system. You can modify the system so that it will always prompt for your password each time you use SUDO. Which I recommend that you do.

If you are still logged in the terminal session as root, enter the exit command, this should take you bcak to your normal user account, which should be noted by the $ prompt.

$ SUDO visudo
password: (Enter YOUR password here).

You should now be in VI with the /etc/sudoers file loaded. Find the line of the file that says defaults reset.

At the end of the line enter INSERT mode by typing i, add ,timestamp_timeout=0
Exit insert mode by hitting ESC, and enter :wq

Now each time you use the SUDO command, you will be prompted to enter your password.

Congratulations, you are now using best practices when executing commands using elevated privileges.

I hope you enjoyed this blog post!

Posted in Technical | Leave a reply

Game Review: Pinball Dreams

Brent's World Posted on June 9, 2014 by Brent HendricksMay 26, 2020

iPad Game Review: Pinball Dreams

Pinball Dreams Title   Many of you know, that there are 2 computers that will always hold a special place in my heart. One is the Commodore 64, and the Commodore Amiga line of computers. The Commodore 64 was the computer that I first cut my teeth on. Learned to program BASIC and operated my first BBS (The Rats Den), using a 20MB and then 105MB hard drive. Which in 1990 and on a Commodore 64 was an unheard amount of storage. The games were simple, yet challenging, and in some ways the playability easily rivals todays games.   Who can deny the fun of inviting 8 of your friends
over to play Summer or Winter Games by Epyx?

In 1992 I was able to purchase a Commodore Amiga 500, then later a 1200, and then an Amiga 2000 and migrated my BBS to the Amiga platform. One great thing about the Amiga was the abundance of great games available many being ahead of their time. Take for instance a title by 21st Century Entertainment. Pinball Dreams.   Now computer based pinball games have been around, Windows NT 4.0 even came with one. However no other game on any other platform could come close to the features, and playability of Pinball Dreams. The graphics, music, and sound were milestones! Real time ball calculations where very close to the real thing. It was a jaw dropping moment when I actually managed to get the ball stuck, and had to “tilt” the machine to continue playing. Many hours were spent after school trying to beat my own high score. Even the girlfriend enjoyed playing.

Imagine my surprise to discover that Pinabll Dreams, and it’s successor Pinball Fantasies had been ported to the iPad!!   The game was quickly purchased, and a steal at $3.99. The original Amiga Game was around $40.00.

The opening music was just as I remembered and all 4 tables have been recreated. Ignition, Steel Wheel, Beat Box, and Graveyard! Graveyard was the table I usually played the most.. I liked the music and the sound effects the best. There are 2 new playing styles; instead of just the standard vertical scrolling you now have the option of having a panning and scrolling play field as if you were playing a real pinball machine.

IgnitionSteel Wheel

 

 

 

 

 

 

 

Beat Box   Screen Shot 061

 

 

 

 

 

 

 

 

if you are an Amiga devote, or a fan of computer based pinball. I highly recommend you check these games out in the iTunes App Store!

Posted in Technical | 2 Replies

OS X: Suppressing Automount of Windows Volumes

Brent's World Posted on May 25, 2014 by Brent HendricksMay 26, 2020

OS X LogoSuppressing Autmount of Windows Volumes in OS X

Well I did promise to post another article, once I figured out how to suppress the auto mounting of unwanted volumes using /fstab (In this case, my Windows volumes.). I could not for the life of me figure out why all the articles on the web pointed to being able to use /etc/fstab with the noauto parameter set, but I could not get it to work for me.

Amazing what will pop into your head at the strangest time when you step away from the problem. In this case it was 8am Sunday morning that I realized the blog articles I was reading were written for BootCamp partitions on an HFS volume (One of the limitations of BootCamp is that it does not support booting from an external Hard Drive)!  Old Style Mac Pro’s can have 4 internal drives.  So my Mac Pro can actually use native NTFS internal hard drives! I was specifying that the volumes were HFS per instruction. and not NTFS!. NTFS stands for NT File System, which Windows has used since Windows NT 3.1 (Which was the first version of NT released to the public.) HFS or Hierarchial File System, or in our case HFS+ is the file systems used on Macintosh computers, since way back in 185.

So I jump out of bead, wake up my trusty Mac, log into a terminal, su to root, redo the changes to /etc/fstab. Enter the reboot command and VIOLA! Success, and the bitter feeling of failure since I spent almost an entire day working on this and missed such a small but crucial change that should have been obvious.

What we need to do is edit the /etc/fstab file (Apple recommends not using this file for some reason. Actually, they recommend not using allot of the Unix level files, but I think that’s just silly. You have a very powerful and configurable OS under the hood. Take advantage of it.

Go ahead, open up that scary terminal window!! Come on, Steve put it there for a reason!

1)   The first thing we need to do is find the UUID of the volume you no longer wish to mount. (Sounds hard huh?) No EASY.. Check this out. Type in your terminal window.

 Shell_prompt$ diskutil info (Drag the disk volume onto the terminal window)

Note: If you have a volume name with spaces in to, you will either need to surround the full path in single or double quotes. (IE: “/Volumes/Macintosh HD” or surround the item with the space with a \ (IE: /Volumes/Macintosh\ HD\).

You should now see something like this > diskutil info /Volumes/BOOTCAMP <Verify command and hit ENTER>

Your output should look something like this.

Device Identifier:       disk0s1
Device Node:             /dev/disk0s1
Part of Whole:           disk0
Device / Media Name:     Untitled
Volume Name:             BOOTCAMP
Mounted:                 Yes
Mount Point:             /Volumes/BOOTCAMP
File System Personality: NTFS
Type (Bundle):           ntfs
Name (User Visible):     Windows NT File System (NTFS)
Partition Type:           Windows_NTFS
OS Can Be Installed:     No
Protocol:                 SATA
Volume UUID:          640E8804-B7C7-4D1C-BBBE-870EAFC9F916

I have removed blank lines, and other fields for brevity.

Now we need the volumes UUID. Do you see it? Simply highlight and copy the data in the terminal window.

Hint: You can also pipe the output through the grep command, and display only the UUID.

EXAMPLE: $ diskuitl info “/Volumes/Machintosh HD” | grep UUID

Your output should look like this.

Volume UUID:            B5CF2066-279C-36B2-B704-2E5B80322313

Now, su to root, or for those Unix GURU’s who are gasping and screaming NO!!!!! sudo vi /etc/fstab.

Hint: If you are pretty sure you have enabled the root account, and your using the correct password, and OS X is still not letting you su to root. Make you first su to an account that has Administrator privileges! Quiz: Anyone who can comment to this post and tell me what “su” stands for in Unix/Linix get’s a point.

So now, picture us on a desert island… I mean… in vi…..   If you are using the current version of OS X (Mavericks), there is no /etc/fstab. You are now in a new file. Throw some comments in there!

(For you non VI people) – Hit I to enter insert mode.

Now on a blank line enter.

##fstab file, created to suppress mounting of specific volumes in this os version.
## Brent Hendricks is Awesome!
## 08/NOV2013 BPH

I always like to put comments in the file, of when and why I have created or made changes to a file. If I have to troubleshoot it really saves time.

Now for the meat! (It’s always about the meat people!)

UUID=640E8804-B7C7-4D1C-BBBE-870EAFC9F916 none ntfs ro,noauto

Your done! Simple huh? How just write the file.

NOTE: I have put the ntfs line here as ro, because by default OS X can not write to an NTFS partition. If you are making an HFS volume not mount at startup. You can enter rw here (For Read/Write)

(For your non VI people, hit (ESC) to exit INSERT mode, type : and wq)

Reboot your system, and notice the specified volume no longer mounts. If you have other volumes you with to suppress automount, repeat the steps above, just add the new UUID on a separate line in the /etc/fstab file.

Posted in Technical | Leave a reply

Movie Review: The Devils Game

Brent's World Posted on May 25, 2014 by Brent HendricksMay 10, 2022

Korean Movie Review: The Devil’s Game

The_Devil's_Game_film_poster  The Devil’s game is a South Korean thriller released in 2008, starring Shin Ha-Kyun (Joint Security Area, and The Happenings) as Min Hee-do, a struggling portrait artist who is offered 1 billion South Korea Won ( 1 Million US Dollars) to play a simple game with a dying eccentric man named Kang No Sik (played by Byun, Hee-Bong ( The Spy ).   Min He-Do first turns the offer down, but after his girlfriend Eun Seong runs into trouble with the debt her father left the family he returns to play the game. Which turns out to be more than he bargained for.

While the film certainly seemed to have promise, the storyline and script just seems to die in places. The cast is top notch, and Shin Ha-Kyun and Byn, Hee-bong definitely play well off each other. The story just seems to have way too many implausible moments. Which all seem to lead up to a typical tragic Asian Shakespearian ending where nobody wins. Though usually (At least in Chinese cinema) you can see how the characters actions contribute to the unsatisfactory resolution at the end of the film. With The Devil’s game it just seemed like 2 very innocent peoples lives are irreparably harmed for no reason. Which left me feeling like I had just lost all faith in humanity.

The moral of the story is, Don’t leave your family in debt, and don’t bet what you can’t afford to lose.

Over all I give the movie 3 stars, I was definitely entertained, the acting and cinematography was top notch! I just wish the plot did not slow down so much in places, and I really wished for a more satisfactory ending. Though that might just be because I am so used to American films where the “Good Guy” always has to win, and all conflicts are resolved by the end of the film.

When you see the film, please come back and post your thoughts.

 

 

Posted in Movie Reviews | Leave a reply

Repost Changing hostname in OS X

Brent's World Posted on May 24, 2014 by Brent HendricksJuly 7, 2018

OS X Logo   OS X: Changing Incorrect Hostname
                         Using The Terminal.

 

 

I have seen this issue many times.  My OS X workstations receive the wrong hostname after being joining a Windows Active Directory Domain, and I have also read this can also happen on a standalone network, though am not quite sure what the circumstances might be as I have never operated outside a domain environment. You would not normally notice this, unless you frequent the Terminal.

You will notice, if you go to System Preferences > Sharing, it appears the hostname is set correctly. For example, the Computer Name shown here is the correct name, correct-hostname.

Hostname - Sharing

Now let’s open the terminal.app

You will see from the prompt, that your workstation has picked up the hostname of another computer on the network. It might look something like this, “Incorrect~ user$”

  As you can see, the hostname is different than what displayed in the Sharing Preference Pane.

We Can verify this by entering the hostname command in the shell window.

           prompt$ hostname

The shell returns the system hostname as:

   incorrect-hostname.catracing.org

We know that’s incorrect, don’t we?

We could TRY and change the hostname by entering the terminal command hostname <correct-hostname.catracing.org>. However this will be lost upon reboot. Which would be quite pointless. We could also place it as a launchd item, or put it in a ~/.profile script. However there is a much cleaner and more appropriate method of doing this.

If you have SUDO configured (Which is the best practice)

At the terminal window, type the following.

Prompt$ sudo scutil –set HostName <newhostname>

Do not type the <>’s

If you do not have sudo configured, but have root enabled, su to root (Since I am in a domain environment, and my standard user account does not have administrator privileges I must first su to an account that does have administrator privileges either on the domain or a local administrator account.

Prompt# scutil –set HostName correct-hostname.catracing.org

Now type hostname at the terminal prompt

You should see

correct-hostname.catracing.org
Prompt$

Your actual terminal prompt may not change until you exit and relaunch the terminal.app

Posted in Technical | Leave a reply

Post navigation

Newer posts →

Recent Posts

  • It’s The Thought That Counts, but bats are NOT art!
  • On The Road Again – Photo Day at The Lubee Bat Conservancy!
  • CQ Contest CQ Contest! – The Trials, Tribulation, and Triumph of Amateur Radio Contesting.
  • On The Grill – Sea Pak Moreys – Grilled Steakhouse Salmon
  • Blast From The Past – Jinhae Cherry Blossom Festival

Recent Comments

  • Remember – It’s The Thought That Counts, but bats are NOT art! - Brent's World on On The Road Again – Photo Day at The Lubee Bat Conservancy!
  • Remember – It’s The Though That Counts, but bats are NOT art! - Brent's World on On The Road Again – The Lubee Bat Conservancy
  • Trials, Tribulations, and Triumphs – A look back at 2024 and looking ahead to 2025! - Brent's World on On The Road Again – The Lubee Bat Conservancy
  • Brent Hendricks on On The Road And On The Air – Installing the Yaesu FTM-500DR
  • Brent Hendricks on On The Road And On The Air – Installing the Yaesu FTM-500DR

Archives

  • July 2025
  • May 2025
  • April 2025
  • March 2025
  • February 2025
  • December 2024
  • November 2024
  • October 2024
  • August 2024
  • July 2024
  • June 2024
  • May 2024
  • August 2023
  • July 2023
  • June 2023
  • August 2021
  • July 2021
  • June 2021
  • January 2021
  • December 2020
  • September 2020
  • August 2020
  • July 2020
  • June 2020
  • May 2020
  • December 2019
  • October 2019
  • September 2019
  • August 2019
  • July 2019
  • June 2019
  • April 2019
  • March 2019
  • December 2018
  • October 2018
  • September 2018
  • July 2018
  • June 2018
  • April 2018
  • March 2018
  • January 2018
  • December 2017
  • November 2017
  • October 2017
  • July 2017
  • June 2017
  • May 2017
  • March 2017
  • February 2017
  • December 2016
  • November 2016
  • August 2016
  • July 2016
  • June 2016
  • May 2016
  • April 2016
  • March 2016
  • February 2016
  • January 2016
  • November 2015
  • October 2015
  • September 2015
  • August 2015
  • July 2015
  • June 2015
  • May 2015
  • March 2015
  • January 2015
  • December 2014
  • November 2014
  • October 2014
  • September 2014
  • August 2014
  • July 2014
  • June 2014
  • May 2014

Categories

  • Blog News
  • Book Reviews
  • Korea
  • Movie Reviews
  • Photography
  • Recipies
  • Restaurant Reviews
  • Technical
  • Travel
  • Uncategorized

Meta

  • Log in
  • Entries feed
  • Comments feed
  • WordPress.org
©2025 - Brent's World - Weaver Xtreme Theme
↑