↓
 

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 10 << 1 2 … 8 9 10 11 12 13 14 >>

Post navigation

← Older posts
Newer posts →

Korean Movie Review – Ajusshi (The Man From Nowhere)

Brent's World Posted on May 6, 2016 by Brent HendricksJuly 6, 2021

Korean Movie – Adjusshi (The Man From Nowhere)

The Man From NoWhere In Hangul (Korean), Adjusshi means mister, or older man, in the case of the Korean action thriller of the same name it describes Cha Tae-sik perfectly.  A lonely pawn shop owner, he does not get close to anyone except the daughter of a neighbor named So-mi. Which is where the Korean version of this film get’s his name, because the man never tells So-Mi his real name, so she is left to call him ,“Mister” Who befriends him to temporarily escape the brutal world of her mother.  Who is a prostitute, dancer, and heroin addict.  After So-mi’s mother Hyo Jeong steals a package of drugs from her employer, she gives a camera bag to Chat Tae-sik without his knowledge for safe keeping.  Under torture Hyo Jeong reveals where the drugs are and is then kidnapped along with So-mi.

Cha Tae-sik is then assaulted and left for dead, and must try and find out who his assailants are and attempt to rescue So-mi and Hyo Jeong.   Complicating matters, the police also want to question Cha Tae-Sik in the disappearance of his neighbors.  The police as shocked to discover that they have no records that he ever existed.  Who is “The Man From Nowhere” and were did he come from?

The movie takes on twists and turns until the shocking and climatic ending.

I really enjoyed the film, the story, acting, and fight scenes were top notch!  This is definitely a rollercoaster of a thriller, with enough plot twists to keep you entertained throughout the movie.  The only drawback was the only version that I could find was the English overdubbed version released in the United States.  If you can, I would definitely find a version that you can watch with the original Korean language track and English subtitles.  I find the overdubbed voices to be extremely flat, and not carrying the emotions of the original actors, which definitely takes away from the film and almost adds a comedic element to a film that really is not supposed to have one.

This is definitely a foreign action film I highly recommend!  Though I will warn you there is quite a bit of violence, not as much as Old Boy, but definitely more visceral fight scenes then you may be used to from some of the Chinese Martial Arts faire.  The movie can be rented from the iTunes Music Store, or Amazon Video.  The DVD or Blu-Ray can also be purchased from Amazon.

Posted in Movie Reviews | Leave a reply

LINUX Alert! – SAMBA update 4.2.10-6.el7 Breaks Active Directory Authentication.

Brent's World Posted on April 15, 2016 by Brent HendricksMarch 20, 2018

Active Directory Authentication Breaks After Installing SAMBA 4.2.10-6.el7_2

This Issue Has Been Resolved! See Post – https://www.catracing.org/hendrb/post-update-active-directory-authentication-fixed-samba-update-4-2-10-6-2-el7_2/ For additional information!

This is not going to be a very long technical post, but I did want to get the word out that the latest update to the SAMBA client broke Active Directory authentication on my web server, and how to fix the issue.

While applying Windows Update fixes to my Windows servers, I also checked for updates on my CENT-OS box, and lo and behold there were quite a bit of updates, one being another SAMBA update. I can not remember a time where a package update broke something on my production box, the only other times I have had serious issue is after installing kernel updates.  So needless to say I was quite shocked after rebooting the server (Runs as a virtual machine on top of the Windows box that had rebootable updates installed).  I could no longer login with my AD account.  NOT GOOD!  Fortunately checking to make sure I can login as root and my local account is part of my pre-update checks.

Packages

After the updates and a reboot of the server you can see it is not allowing me to login with my domain account.

Login Failed
Here are the error message logged in /var/log/secure
(Server hostname has been replaced with ****)

Apr 14 13:50:53 **** polkitd[804]: Registered Authentication Agent for unix-session:c1 (system bus name :1.28 [gnome-shell –mode=gdm], object path /org/freedesktop/PolicyKit1/AuthenticationAgent, locale en_US.UTF-8)

Apr 14 13:51:33 **** gdm-password]: pam_unix(gdm-password:auth): check pass; user unknown

Apr 14 13:51:33 **** gdm-password]: pam_unix(gdm-password:auth): authentication failure; logname= uid=0 euid=0 tty= ruser= rhost=

I promptly removed the updated version of SAMBA and reinstalled the previous version. I always take a screen capture of the what yum is going to update before answering yes.  This makes an easy reference in case I need to go back and remove anything.  In this case I need to remove the following packages.

 samba                                 x86_64   4.2.10-6.el7_2                               updates   614 k
 samba-client                       x86_64   4.2.10-6.el7_2                               updates   496k
 samba-client-libs                 x86_64   4.2.10-6.el7_2                               updates   4.3 M    
 samba-common                  noarch   4.2.10-6.el7_2                                updates   272 k
 samba-common-libs            x86_64   4.2.10-6.el7_2                              updates   156 k
 samba-common-tools          x86_64   4.2.10-6.el7_2                              updates   444 k
 samba-libs                           x86_64   4.2.10-6.el7_2                               updates   260 k
 samba-winbind                    x86_64   4.2.10-6.el7_2                               updates   465 k
 samba-winbind-modules      x86_64  4.2.10-6.el7_2                               updates   105 k

$ yum remove samba samba-client samb-client-libs samba-common samba-common-libs samba-common-tools samba-libs samba-winbind samba-winbind-modules

Once samba, and samba-winbind have been uninstalled, we need to install the previous version, again the listing I keep of all updates installed on the server come in handy, as I know SAMBA was updated back in January.

samba-client             x86_64     4.2.3-11.el7_2          updates     496 k
samba-client-libs       x86_64     4.2.3-11.el7_2          updates     4.3 M
samba-common        noarch     4.2.3-11.el7_2           updates     269 k
samba-common-libs  x86_64     4.2.3-11.el7_2          updates     156 k
samba-common-tools x86_64    4.2.3-11.el7_2          updates     443 k
samba-libs                  x86_64     4.2.3-11.el7_2          updates     259 k
samba-winbind           x86_64     4.2.3-11.el7_2          updates     463 k
samba-winbind-modules x86_64 4.2.3-11.el7_2         updates     104 k

First let’s get the package names for all available versions of samba

$ yum –showduplicates list samba

Available samba

The update we want 4.2.3-11.el7-2 is available. So let’s go ahead and install them.

$ yum install samba-0:4.2.3-11.el7_2.x86_64

Once the samba client is installed we need to install samba-winbind

$ yum install samba_winbind-0:4.2.3-11.el7_2.x86_64

Once this was complete, I rebooted the server, but was still unable to connect to the domain controller. Comparing files on my development server, I noticed that the /etc/samba/smb.conf file was modified on the server during the removal of the samba package.  Not to worry yum made a backup first.

files

So let’s remove the new smb.conf

$ rm smb.conf

Now let’s rename the smb.conf.rpmsave to smb.conf

$ mv smb.conf.rpmsave smb.conf

Now let’s go ahead and reboot (You don’t need to, you can just shutdown your networking and samba service.), but a reboot never hurts.

$ reboot

Test logging in with a domain account, if the login still fails, log back in as your local account and troubleshoot the AD connection.

  1. Is the time on the LINUX box within 5 minutes of the time on the Active Directory server? If no this will cause the Kerberos ticket issuance to fail
  2. Can you issue wbinfo commands.IE wbinfo -g or wbinfo -u. If not, you may have to rejoin the domain.

These instructions should repair your domain authentication until the issue with the new version of SAMBA is resolved. I will keep working on a fix, unless another update fixes the problem.

NOTE: If you know the fix for this issue with SAMBA update, please either shoot me an email, or post it to our forums or as a comment.  You will get full credit for providing the fix.

Posted in Technical | 8 Replies

Quickie – What to expect in 2016

Brent's World Posted on April 8, 2016 by Brent HendricksAugust 24, 2016

Brent’s World Quickie – What to expect in 2016

I know it seems like things have been a bit slow here at Brent’s World Lately, I have been dealing with an injury in the family and have not had time to go out and get some of the great content you expect. Hopefully now that the weather has warmed up, I will be able to get out more.

Here are some changes / upgrades to expect in 2016.

New Theme – I am looking to migrate to a new theme for the blog, the current theme Aspen is no longer being updated by the author, so I am looking to migrate to his new theme Weaver Extreme. This is an ongoing project, as I am working on building a test server to migrate the blog to, and test and modify the theme before placing it into production. This will minimize downtime, and make sure you, the followers of my blog do not have any unexpected surprises.

Category Scrub and indexing – I will be scrubbing un-unused categories and only keeping the blog categories that are used, such as Korea, Travel, Movie Review, Restaurant Review, and Technical. I will be implementing an indexing scheme so each category will have its own page, so you can easily find the articles you are interested in!

Please be patient as we get back up to speed and continue to bring you great content!

Posted in Blog News | Leave a reply

Installing Chipmunk BASIC on CentOS 7

Brent's World Posted on March 12, 2016 by Brent HendricksMarch 12, 2016

Back To BASIC – Chipmunk BASIC 3.1 on CENTOS 7

Back in December of 2014, I posted an article where I converted a BASIC program from the 1982 Commodore 64 Users Guide and converted it to a BASH script on CENTOS 6.5, you can read the article by clicking here (https://www.catracing.org/hendrb/bash-script-guess-number/). Month after month this has been one the most popular posts on my blog.  So Ibegan to wonder, instead of converting the program to BASH, what options are there for us to actually program and run BASIC programs natively under LINUX.

When I primarily used a Mac computer, there was a version of BASIC written for MacOSX called Chipmunk BASIC. So off I went to Google, and found the authors web page.  Sure enough there is a compiled version for LINUX.  So just what is Chipmunk BASIC?  Direct from the authors website, “  Programming Language. Chipmunk Basic presents a vintage traditional command-line console programming environment, and supports a very simple, old-fashioned, and easy-to-learn Basic Programming Language syntax.”  This sounds like what I am looking for!
There are a couple of catches. one is that you have to download and install the program and the MAN pages manually. No sweat, I am up for the challenge!  The second catch is that this version of BASIC must be run in a GUI under X Windows. Once XWindows server has been installed and started, you can access Chipmunk BASIC from a terminal or remote session however.

Actually, it turned out to be a very very simple process.   Let’s take a look by installing it on my demo virtual box.
First lets see if we have some prerequisite utilities installed that will allow us to download and uncompress  the BASIC program files.  An easy way to check to see if you already have these utilities installed is to see if the MAN pages are installed
$ man wget

If the man page displays then the utility is installed.

MAN wget

If the utility is not installed (As is the case of unzip), you will receive an error message, which is displayed below when I try and view the MAN page for unzip.

MAN unzip

So lets go ahead and install unzip using the yum command.

$ sudo yum install unzip

You must also have a desktop environment installed, so if you installed CENTOS 7 using the minimum install and only use via a console, or a remote shell. We will install GNOME Desktop now.

$sudo yum groups install “GNOME Desktop”
You can either start the X Windows Server now, or after we install Chipmunk BASIC install. To do this, simply execute the following command.

$ startx

We are now ready to download Chipmunk BASIC, Cd to the directory that you want the file to be downloaded to, I have a subdirectory in my HOME directory called Downloads, which I will make sure I am in and if not I will change to that directory.

$ pwd

/home/username

I am not in the correct directory, but since I am in my home directory, a simple cd to Downloads will work.

$ cd Downloads

[username@cr-demo Downloads]$

As you can see, the CD was successful. If I was somewhere else on the system, say /etc.  I can easily get to my home directory using the ~ shortcut.

[username@cr-demo etc]$ cd ~
[username@cr-demo ~]$ pwd

/home/username

Example II:

[username@cr-demo etc]$ cd ~/Downloads
[username@cr-demo Downloads]$
As mentioned above, to actually download the Chipmunk BASIC archive, we use the wget command, with the URL as noted below.

Example I:

$ wget http://www.nicholson.com/rhn/files/cbas367b5-linux-x86_64.zip

You will then see the following screen, and the file should be downloaded.

wget chimpmunk

If you now do a directory listing, you will see your file.

[username@cr-demo Downloads]$ ll

total 180
-rw-rw-r–. 1 local_hendrb01 local_hendrb01 183652 Jun 24 2014 cbas367b5-linux-x86_64.zip

Now we must unzip the file

Usage: unzip filename.zip -d destination_folder

Since we just want the file unzipped to our current directory, we will just enter unzip filename.zip

Example I:

UNZIP

 

We now have 4 new files in our Downloads directory, you can delete the zip file using the rm command if you want to.

$ rm cbas367b5-linux-x86_64.zip

The 4 new files are

-r-xr-xr-x. 1 username groupname 335192 Jun 24 2014 basic
-r–r–r–. 1 username groupname 52635 Apr 22  2011 basic.man.txt
drwxrwxr-x. 2 username groupname     20 Dec 30 20:28 man
-r–r–r–. 1 username groupname   3412 Jun 24  2014 README

File descriptions:basic is the main basic executable, you will want to move this file to /usr/bin
Example:

$ mv basic /usr/bin

Lets also make sure that the owner and group are set to root root. Since it was unzipped under out normal user account, it will most likely show your username.  Not sure if this will cause issues or not, but better be safe than sorry!

Example:

$ ll basic

-r-xr-xr-x. 1 username groupname 335192 Jun 24 2014 basic

$sudo chown root:root basic

$ ll basic

-r-xr-xr-x. 1 root root 335192 Jun 24 2014 basic

Now let’s put the man file where they belong, if we currently try and perform a man on BASIC, we will receive the following error.

EXAMPLE:

$ man basic

No manual entry for basic

How do we know where our man files are located anyway? Simply use the manpath command.
Example:

$manpath

/usr/local/share/man:/usr/share/man/overrides:/usr/share/man
Now we need to determine where the specific man page belongs, have you ever wondered what the number in parentheses means next to the command in a man page? It denotes what type of command it is.  Here is a cheat sheet.
1.General commands
2.System calls
3.C library functions
4.Special files (usually devices, those found in /dev) and drivers
5.File formats and conventions
6.Games and screensavers
7.Miscellanea
8.System administration commands and daemons
So let’s go ahead and put basic in the man1 folder, change the owner to the root user and the root group.

First cd to ~\Downloads
Then let’s move the file.

Example:

$ mv man/basic 1 /usr/share/man/man1
$ sudo chown root:root /usr/share/man/man1/basic.1

Now let’ test.

$ man basic

The following screen should now be displayed.

MAN BASIC

We are now finished installing BASIC. You can now delete the files from your Downloads directory if you wish.
We are however not done with this tutorial! Why go to all this trouble, just to install a programming language, if we are not going to use it to write programs?

So let’s take the number guessing game from the Commodore Users Guide again and see how it works in Chipmunk Basic!

Number Guess

 

 

 

 

 

 

 

You can either enter the program from within Chipmunk BASIC, by entering basic at a prompt.

$ basic

basic running

 

 

 

Or you can enter the program in any text editor, such as vi, or nano.  Like this.

nano1

 

 

 

 

 

 

 

 

So go ahead and load a text editor of your choice. Then have fun typing in the below program!

1 rem  **************************************************************************
2 rem  *      Guess Random Number                                                        *
3 rem  * Originally Published In The 1982 Commodore 64 Users Guide *
4 rem  * Converted to Chipmunk Basic By: Brent Hendricks                   *
5 rem  * Used for a programming demo for installing Chipmunk BASIC *
6 rem  * on CentOS Linux 7, March 12 2016.                                          *
7 rem  * BASIC program released into the public domain.                      *
8 rem  * Article text is copyright Brent’s World.  Reproduction                *
9 rem  * in part of in whole may be done only with permission from       *
10 rem * the author.                                                                                *
11 rem *                                                                                                  *
12 rem * Please visit Brent’s World “An American Expat Living In         *
13 rem * South Korea, for this and other great articles.                         *
14 rem * www.catracing.org/hendrb                                                       *
15 rem ************************************************************************
20 clear
22 cls
23 gosub 120
25 input “Enter Upper Limit For Guess. “,li
30 nm = rnd(li)+1
35  cn = 0
40 print “OK, I’ve got the number.” : print
50 input “What is your guess? “,gu
55 cn = cn+1
60 if gu > nm then print “Nope! My number is lower!” : print : goto 50
70 if gu < nm then print “Nope! My number is higher!” : print : goto 50
80 print “GREAT!! You got my number!”
85 print “In Only “;cn;”guesses.” : print
90 print “Do you want to try another? “;an$
92 get an$ : if an$ = “” then 90
95 if an$ = “Y” or an$ = “YES” or an$ = “y” or an$ = “yes” then 22
110 end
120 print “**************************************************************************”
122 print “*                   Guess Random Number                                           *”
123 print “* Originally Published In The 1982 Commodore 64 Users Guide *”
124 print “* Converted to Chipmunk Basic By: Brent Hendricks.                  *”
125 print “* Used for a programming demo for installing Chipmunk BASIC *”
126 print “* on CentOS Linux 7, March 12 2016.                                         *”
127 print “* BASIC program released into the public domain.                      *”
128 print “* Article text is copyright Brent’s World.  Reproduction                *”
129 print “* in part of in whole may be done only with permission from       *”
130 print “* the author.                                                                                 *”
140 print “*                                                                                                   *”
150 print “* Please visit Brent’s World. An American Expat Living In          *”
160 print “* South Korea, for this and other great articles.                          *”
170 print “* www.catracing.org/hendrb                                                        *”
180 print “**************************************************************”*********”
200 return

I hope you enjoyed the blog, and that you will enjoy Chipmunk BASIC.  Please continue to come back for more great articles from Brent’s World.

Posted in Technical | Leave a reply

Wednesday Quickie – Chipotle Cheese Enchiladas

Brent's World Posted on February 17, 2016 by Brent HendricksMay 25, 2020

Wednesday Quickie

Chipotle Cheese Enchiladas

739901_10151345601687910_1079123335_o

Keeping with the theme of this weeks blog (Restaurant review of Of The Boarder), which featured some awesome Cheese and Onion Enchiladas.  You can read the review by clicking here.  I thought I would post a recipe for our favorite Chipotle Cheese Enchiladas.  We hope you enjoy them.

The Sauce (Ingredients) :

(2) 8 Oz. cans tomato sauce
(1) chipotle pepper (1 pepper, not one can!) (SEE NOTE 1)
(1/2) Onion cut into chunks
1 teaspoon cumin
1/4 teaspoon dried oregano
1 clove garlic

The Sauce ( Directions )

1 ) Place all ingredients in a blender or food processor.
2 ) Blend until smooth.

The Enchiladas (Ingredients) :

(1) Medium Onion
4 Cups grated cheddar cheese
(1) can sliced black olives, drained
(1) 12 pack of flower tortillas
2 cups grated Monterey Jack cheese.

The Enchiladas

(Directions)

1 ) Spread 1 cup enchilada sauce into a 9 x 13 in baking dish.
2) Combine onion, cheddar cheese and half the olive in a large bowl.
3) Spread 1/3 cup mixture on each tortilla.
4) Roll each tortilla to enclose filling.
5) Place seam side down in prepared dish.
6) Pour remaining sauce over top, and sprinkle with the Monterey Jack cheese and remaining olives.

Bake covered in foil at 350F (180C) Degree’s for 30 minutes.

NOTE 1: I ordered 12 cans of Chipotle in Adobe sauce from Amazon.com and they were shipped to me in Korea.  In the states you should be able to find the chipotle peppers without the sauce.

If you make these enchiladas please come back and comment on the recipe!

774566_10151345643187910_630431200_o

 

Posted in Recipies | Leave a reply

CENTOS 7 – Managing Services Using Systemctl

Brent's World Posted on January 30, 2016 by Brent HendricksJanuary 30, 2016

Blog - Centos

CENTos 7 – Using Systemctl

For this months technical blog thought I would share another difference between previous versions of the operating system.  Which is very different and can be very confusing for those of us used to the older ‘unix’ way of doing things.  RHEL 7, and therefor CENTos 7 have done away with the init.d method of boot scripts and starting and stopping services.  The OS now uses systemd (Similar to Apple’s launchd in OSX).  I will not be delving into the nuts and bolts of what systemd is, and how it works.  This is a simple run down of the commands you need to know to start, stop, and restart services using systemctl.  Additionally I will also cover systemd’s equivalent to runlevels, and how to change and set your systems default environment during boot.

Starting, Stopping, and Restarting Services.

In this article I assume that you are following best practices by logging in with a standard user account and evelating your privileges using sudo. If you are not, simply ignore the sudo command.

Starting a service.

Using init.d unix and Linux system, to start a service we would use the service command, which would execute it’s specific startup script. Whereas in CENTos 7 you would use systemctl.

Previous verions of CENTos –

               sudo service <service name> start

CENTos 7 –

               sudo systemctl start <service name>

Stopping a service.

Previous versions of CENTos –

               sudo service <service name> stop

CENTos 7 –

               sudo systemctl stop <service name>

Restarting a service.

Previous versions of CENTos –

               sudo service <service name> restart

CENTos 7 –

              sudo systemctl restart <service name>

This should all look pretty straight forward, you mostly just have to remember the new systemctl command, and the fact that you now place the action before service name.

Configuring boot services,

So how do we go about configuring which services are started at boot? With init.d you could either modify your init scripts for a specific runlevel, in the rc.d directory, or use a command called chkconfig which would handle it for you.

Previous versions of CENTos –

                sudo chkconfig –list sshd

    sshd                      0:off      1:off      2:on       3:on       4:on       5:on       6:off

 This shows us that the ssd service is either on or off in each corresponding runlevel. For instance runlevel 1 (Single User Mode), sshd is off at boot, however with run level (consoleonly, with networking services), sshd is on at boot.  I do find it interesting that sshd is configured to be on in runlevel 2 (Console only, no networking.)

You could easily toggle a specific service either on or off for each service with the following command.

                sudo chkconfig <service> –level <runlevels>

Full example given below.

                sudo chkconfig sshd –level 35

This would in effect, toggle the sshd service to be started at boot in both run revel 3 (Multi-User, with networking, in console mode.), and runlevel 5 (Multi-User, with networking, in Graphical Environment Mode (XWindows).

CENTos 7 –

In CENTos 7, You no longer have runlevels, so you only need to worry about a service being on or off (Or enabled or disabled), again using the systemctl command.

To configure a service to be started at boot.

                systemctl enable <service name>

Full example given below. Using the secure shell daemon.

               sudo systemctl enable sshd

To no longer have a service started at boot.

                systemctl disble <service name>

Full example given below, Using the secure shell daemon.

                sudo systectl disable sshd

Displaying a list of running services.

You can get the status of the running services or a single service by the following 2 methods.                 

                  systemctl status

Will return the status of every running service, and its dependents.

                  systemctl status <service>

Will display the status of an individual service (such as winbind shown here).

├─winbind.service
             │ ├─17859 /usr/sbin/winbindd
             │ ├─17998 /usr/sbin/winbindd
             │ ├─19090 /usr/sbin/winbindd
             │ ├─19398 /usr/sbin/winbindd
             │ └─19854 /usr/sbin/winbindd

The last bit I will demonstrate with system control is how to switch between a console (Command Line) environment, and how to set the default runrevel.
First let’s find out what runlevel we are current using.

                   sudo systemctl get-default

The system will return the current target mode

multi-user.target

This is the old runrevel 3, (command line, multi user with networking).
So let’s say we wanted to switch to the old runlevel 5 “Multiuser, Networking, with Xwindows”

We can have centOS return a list of available “TARGETS” (runlevels), You do not need to run this command as root, so no sudo is necessary.

systemctl list-units –t target -a

UNIT LOAD      ACTIVE   SUB    DESCRIPTION
target           loaded    active   active Basic System
target      loaded    active   active Encrypted Volumes
target       loaded    inactive dead   Emergency Mode
target           loaded    inactive dead   Final Step
target           loaded    active   active Login Prompt
target       loaded    inactive dead   Graphical Interface
local-fs-pre.target    loaded    active   active Local File Systems (Pre)
local-fs.target        loaded    active   active Local File Systems
multi-user.target      loaded    active   active Multi-User System
network-online.target  loaded    active   active Network is Online
network-pre.target     loaded    inactive dead   Network (Pre)
target         loaded    active   active Network
nss-lookup.target      loaded  inactive dead   Host and Network Name Lookups
nss-user-lookup.target loaded    inactive dead   User and Group Name Lookups
target           loaded    active   active Paths
remote-fs-pre.target   loaded    inactive dead   Remote File Systems (Pre)
remote-fs.target       loaded    active   active Remote File System
target          loaded    inactive dead   Rescue Mode
target        loaded    inactive dead   Shutdown
target          loaded    active   active Slices
target         loaded    active   active Sockets
target           loaded    active   active Sound Card

For the old runlevel 5, (Xwindows, Multi-User, With Networking) we would issue the following command. As this will manipulate services, we must run this as root.
                   sudo systemctl isolate graphical.target

To switch back to runlevel 3  ‘multi-user target’
sudo systemctl isolate multiuser.target

Now that we can switch between targets “Runlevels” let’s set one as a default.

Remember we mentioned in the beginning of the blog that CentOS 7 now uses systemd and not init.d to control the boot process. Systemd uses a symbolic link to determine the systems default target”  If you do an ls-l or ll on /etc/systemd/system, you can determine the systems default target.
                  ll /etc/systemd/system

  • 1 root root 41 Jan  4 04:20 default.target -> /usr/lib/systemd/system/multi-user.target

First we must remove the symbolic link

                  sudo rm/etc/systemd/system/default.target

Now we create a new symbolic link to the ‘graphical.tartarget’

sudo ln-sf /lib/systemd/system/graphical.target /etc/systemd/system/default.target

Before we reboot the system, let’s make sure the default target symbolic link was correctly set.

                 ll /etc/systemd/system/

We should now see this

lrwxrwxrwx 1 root root   36 Jan 23 11:13 default.target – /lib/systemd/system/graphical.target

Let’s go ahead and reboot the system, and it should now boot into the GUI (XWindows                  

                 sudo reboot

To return the system to boot into a multi-user console with networking, repeat the steps above, substituting ‘multi-user.target’ in place of graphical.target.  Like this.

sudo ln-sf /lib/systemd/system/multi-user/target /etc/systemd/system/default.target

 

You should now have a better grasp on how to control services, and your default run level using CentOS 7.

I hope you enjoyed this month’s technical blog, and will continue to return for more exciting and informative articles. All comments are welcome.

DISCLAIMER: While we strive to bring you the most accurate information, use these commands at your own risk.  Neither the authors nor Brent’s World are responsible for any damage, or loss of data, nor loss of revenue resulting in downtime, either expected or unexpected that may occur by using the commands outlined in this blog.  It is recommended that these commands or scripts be executed in a test environment (Preferably on a virtual machine, not connected to an active network), until you fully understand the actions being performed by the commands or scripts.

Posted in Technical | Leave a reply

Movie Review – The Intern

Brent's World Posted on January 17, 2016 by Brent HendricksJanuary 17, 2016

The-Intern-new-poster   After the aborted attempt to watch The Spy, I was not holding out much hope for The Intern, the second comedy I had on my list to watch this weekend.  However, I was pleasantly surprised.  A solid performance from Robert Di Niro, and Anne Hathaway, and a well-rounded and fast paced scripted kept us laughing and entertained.

 

Ben Whittaker (Di Niro), is a 70-year-old retired widower, who spending 40 years in the Yellow Pages business as a VP for DEX One has seen and done it all and even though he enjoys traveling in his retirement admits that it is always a letdown when he has to return to his empty house. Looking for something to keep him occupied he applies for a “Seniors Intern” position at a relatively new web based clothing store.  Hi strong work ethic, and outgoing personable manner, soon make him a hit with his much younger coworkers.

Jules Ostin, founder and CEO of ‘About The Fit’, an online clothing store, is solely focused on making her company succeed, which it apparently is after going from a startup to 220 employee company in 18 months. However, we soon realize that the demands of the business are taking a tole on her life as she rarely sleeps, or has time for husband or daughter.  Her coworkers admit that she is difficult to please and hard to get along with.

Throughout the movie we see Jules learn to trust Ben’s devotion to always trying to do what is right, and to help out those around him. Only a few times to see his veneer crack, and are allowed to see some of the sadness that obviously comes from living a full life.  Such as Ben’s only regret in over 40 years of marriage with his wife, that it wasn’t long enough.   Thankfully the movie never strays long into some of the heavier aspects of the various backstories.  Showing you glimpses that all is not as happy and carefree as they seem, and success comes at a price.  You are quickly presented with another occasion to laugh.

The Intern is a great film to lose yourself in for the evening, pop some popcorn, turn on the Blu Ray or DVD player and sit back and enjoy a great movie. You will not be disappointed with this film.  It would be a great movie to watch on date night with your significant other!

The Intern currently has a rating of 61% on Rotten Tomatoes and holds as the number 14 Top Movie on the iTunes Music Store.

Posted in Movie Reviews | Leave a reply

Fun With BASH Scripts – Randquote v1.1

Brent's World Posted on November 29, 2015 by Brent HendricksNovember 24, 2015

Some of the most popular posts on my blog have been my BASH scripting tutorials.  I am not sure if anyone is actually typing them in and using them, but they do come to read them.  One of the burdens of having successful posts, especially dealing with programing, is you feel compelled to come back and follow up on them.

So while reading about  “20 Funny Commands of Linux or Linux is Fun in Terminal” on Techmint ( http://www.tecmint.com/20-funny-commands-of-linux-or-linux-is-fun-in-terminal/ ). I stumbled upon ‘cowsay’  amd had the wild idea that it would make a great upgrade  to my Random Quote script!

First, let’s start off with the simple question.  What is Cowsay?  Cowsay is a pearl script that will take text and output it inside a cow’s cartoon speech bubble drawn with ASCII characters.  Like This.Cowsay
Now I know at this point there is a NIX guru out there jumping up and down, wanting to tell me that there is no need to modify my code at all, and this exercise is a waste of time, I could simply pipe the output of RandQuote to cowsay and be done with it.  While on one hand this person would be correct, however there are 2 reasons to press on.  The first being that due to the output being centered by the BASH Script, the output looks funny (Extra Spaces), second I want to be able to demonstrate how to write a BASH script that uses command line arguments.  So get a fresh cup of coffee, pull up your chair, and stay awhile.

The first thing we need to do is actually download and install the cowsay script, if you are running Linux in a GUI, simply go to the following URL ( http://www.melvilletheatre.com/articles/el7/cowsay-3.03-14.el7.centos.noarch.rpm ) to download the file.

If you are operating your system from the console or from a terminal you will need to use the wget command.

If it is not installed use sudo yum install wget first, then copy the url above, then cd to your Downloads directory. Ie ~/Downloads.  If you do not have a downloads directory you can either use /tmp (Though this is not considered best practice), or you can create the directory with the mkdir command.  Anyways.  Getting back on track, once you are sure your directory is set to the place you want to download cowsay to.
Copy the url above and enter sudo wget <PASTE>, you should end up with
$sudo wget http://www.melvilletheatre.com/articles/el7/cowsay-3.03-14.el7.centos.noarch.rpm .

Once cowsay has been downloaded, we next need to install it using rpm.  As we are still in the directory where cowsay was downloaded, simply perform an ls, and select and copy the filename,  cowsay-3.03-14.el7.centos.noarch.rpm .  Now issue the command
sudo rpm rpm –ivh cowsay-3.03-14.el7.centos.noarch.rpm . That’s it!  You now have cowsay installed.  Now comes the hard part. Now we have to modify randquote to incorporate cowsay, hence making it v1.1.

Lets test cowsay to make sure it is installed and working properly, at your shell prompt $ enter cowsay “The Quick Brown Fox Jumped Over The Lazy Dog.” If everything installed correctly, you should be presented with the screen below.

Cowsay_test

Now let’s go ahead and actually add the necessary lines to randqoute.sh, if you actually have the script installed and running on your system, let’s put it someplace where we can work on it, and not break the actual running copy.  The documentation called for the script to run from /opt/randquote, and we will place a copy in a folder called dev under your home folder.  If dev does not exist lets create it.  At a shell prompt type $ mkdir ~/dev <ENTER>
If you perform a ls of ~/ you should see dev listed.

Lets perform the actual copy.  So again at your shell prompt, type.$ sudo cp /opt/randquote/randquote.sh ~/dev/randquote_v1.1.sh <ENTER>

This will copy the file with the new filename randquote1.1.sh so we can easily differentiate between the two versions.  We will also most likely need to change owners so we can edit the file without having to use SUDO all the time.
$ chown <USERNAME> : <GROUP> ~/dev/randquote_v1.1.sh <ENTER>

Let us now go into NANO, and edit the script.

$ nano ~/dev/randquote_v1.1.sh

Add the following under the copyright message, <CR> Denotes Carriage Return.
#
# RandQuote v1.1 (C)22NOV2015 by Brent Hendricks
# Added the ability to display quotes through cowsay.
# cowsay is writen by Tomy Monroe (tomy@nog.net)
<CR>
COWSAY=0
<CR>
## Get Options
<CR>
while getopts “c” OPTION
do
          case $OPTION in
          c)
          COWSAY=1
          ;;
          esac
done
<CR>

Now cursor down to ## Read Quote from Quote file

After sed -n “${RECORD},+5p” $QUOTATIONS > $TEMP_QUOTATION

Highlight and cut sed -e :a -e “s/^.\{1,${TERMWIDE}\}$/ &/;ta” -e ‘s/\( *\)\1/\1/’ $TEMP_$

Then add the following.

<CR>
if [ $COWSAY -eq 0 ]
then
Paste the line you cut from above. ‘sed -e :a -e “s/^.\{1,${TERMWIDE}\}$/ &/;ta” -e ‘s/\( *\)\1/\1/’ $TEMP_$’
else
cat “${TEMP_QUOTATION}” | cowsay
fi

The rest of the file remains untouched.  The entire file listing should look like this.

1  #! /bin/bash
2
3  # BASH script to display RANDOM QUOTE and center text depending on terminal width.
4  # BASH script and quotations taken from CNET Amiga 2 AREXX PFILE
5  # AMIGA Version Copyright 1992 Jim Selleck and Beverly James Products
6  #
7  # BASH Script (C)24MAY2015 by Brent Hendricks
8  # Script and accompaning BLOG article (C) 2015 Brent Hendricks
9  # Script and quotes are public domain, the accompaning BLOG may only be
used with permission
10  # Contact brent.hendricks@catracing.org if you wish to republish the article.
11  # Please visit Brent’s World @ www.catracing.org\hendrb
12  #
13  # RandQuote v1.1 (C)22NOV2015 by Brent Hendricks
14  # Added the ability to display quotes through cowsay.
15  # cowsay is writen by Tomy Monroe (tomy@nog.net)
16
17  COWSAY=0
18
19  ## Get Options
20
21  while getopts “c” OPTION
22          do
23                  case $OPTION in
24                    c)
25                          COWSAY=1
26                          ;;
27                  esac
28  done
29
30  ## Get Terminal Width
31  TERMWIDE=”$(tput cols)”
32  ((TERMWIDE = TERMWIDE -3))
33
34  ## Set file path
35  QUOTATIONS=/opt/randquote/quotations
36  TEMP_QUOTATION=/tmp/temp_quotation
37
38  ## Get number of quotations
39  QUOTES=”$(cat $QUOTATIONS | wc -l)”
40  ((QUOTES = QUOTES / 5))
41
42  ## Pick a record
43
44  RECORD=$(($RANDOM % $QUOTES * 5))
45
46  ## Read Quote from Quote file
47  sed -n “${RECORD},+5p” $QUOTATIONS > $TEMP_QUOTATION
48
49  if [ $COWSAY -eq 0 ]
50  then
51          sed -e :a -e “s/^.\{1,${TERMWIDE}\}$/ &/;ta” -e ‘s/\( *\)\1/\1/’
$TEMP_QUOTATION
52  else
53          cat “${TEMP_QUOTATION}” | cowsay
54  fi
55
56  ## Remove TEMP_QUOTATION scratch file
57  # rm -f “${TEMP_QUOTATION}”
58 exit 0
We should now be able to test version 1.1.  make sure you are in the directory where v1.1 resides and at a shell prompt enter.

$ ./randquote_v1.1.sh –c

If all worked out right in the end, you should see.

Working_Randquote1.1

Let’s also do a quick test to determine if you can also generate the random quote without the output being piped through cowsay.

At the shell prompt execute randquote without the -c option, like this.

$ ./randquote_v1.1.sh

You should then only see the normal randquote output.

console_randquote

Once everything is tested me can replace randquote with v1.1

At the shell prompt, let us first rename the original randquote so we retain a backup copy. To do this we use the move (mv) command.

$ sudo mv /opt/randquote/randquote /opt/randquote/randquote_v1.0 <ENTER>

Now we move randquote_v1.1 from our dev directory, renaming it randquote. (Unless you want to keep the _v1.1 filename and change your login scripts.

$ sudo mv ~/dev/randquote_v1.1 /opt/randquote/randquote

We are now finished, if you have entered randquote for the first time, you will also need to download the quotations file attachment. https://www.catracing.org/hendrb/wp-content/uploads/2015/06/quotations.txt

I would like to thank the following people whose blog’s helped immensley with writing version 1.1

First I would like to thank Tomy Monroe who without cowsay, version 1.1 would not be possible.

Second I would like to thank Avishek Kumar for writing the blog 20 Funny Commands of Linux or Linux is Fun in Terminal, http://www.tecmint.com/20-funny-commands-of-linux-or-linux-is-fun-in-terminal/ . Who gave me the original idea.

Last but not least, for showing me the light regarding the getopts statement, this wonderful blog tutorial by rsalveti, Bash: Parsing arguments with ‘getopts’ https://rsalveti.wordpress.com/2007/04/03/bash-parsing-arguments-with-getopts/

I hope you enjoyed the blog, and please visit our forums, register and discuss this script, other Linux or technical topics, by visiting. www.catracing.org/hendrb/forums

Posted in Technical | Leave a reply

Wednesday Quickie – Bonnies Pizza in Haebangchong

Brent's World Posted on November 19, 2015 by Brent HendricksJuly 2, 2022

Wanted to do a restaurant review on some of the Pizza options in Seoul, after receiving tips from one of my co-workers.  So I set off to Haebangchong in search of Bonnie’s Pizza Pub.HAEBONGCHONBonnies Pizza Pub - frontThe restaurant is not difficult to find, if you take Seoul Metro Line 6 to Noksopyong Station and exit ‘Way Out’ #2 continue down the street, you will come to a small fork in the road and keep to the left.  You will then pass US ARMY Garrison Yongsan’s famous Kimchee Pot gate, the road will then fork and you want to keep to the left. Continue walking up the hill and you will find Bonnie’s Pizza Pub on your left.

Kimchee Pots
The Great Wall of Kimchee Pots

The restaurant is on the small side, and it does get busy. So if going later in the evening, or on a weekend plan on a bit of a wait.  I had heard from my coworker that they had thick crust pizza, but discovered they only had think crust for certain types of Pizza, which was a little disappointing. We ordered a half cheese, and half Hawaiian thin crust. The pizza was excellent, and was definitely enough for 2 people. The only issue I had was the thin crust was really difficult to eat without making a mess. I have never been one to eat Pizza with a fork.

Half and Half PizzaNot gracefulDrinks at Bonnie’s are self-serve, and they have a large drink selection of beer and soft drinks.

The following week, we ordered another Hawaiian (Thick Crust), and a conquistador pizza that had Chorizo on it, however again this was only available in thin crust. I really liked this pizza, as it was pretty spicy.

We also discovered that the Yongsan #2 (Ni-ban) bus stops right outside the restaurant. Which makes it very convenient to get to from our apartment.

Alternate directions – Using the Ni-ban (Green Yongsan #2 Bus)

From the Munbaedong side of the Samgakji bridge take the #2 bus towards Haebongchon (N Seoul Tower side of street.). Get off in front of Bonnies Pizza Pub.
You can also pick up the #2 bus in front of Namyeong Station, or Sookmyung Woman’s University Station.

Contact Information:
Address: 2 Sinheung-ro 3-gil, Yongsan-gu, Seoul
Phone:02-792-0303
Hours: Open today · 2:00 PM – 12:00 AM

Posted in Restaurant Reviews | Leave a reply

We Now Have Forums

Brent's World Posted on November 8, 2015 by Brent HendricksNovember 8, 2015

I have added phpBB forums to the website!  I feel it will better promote the mission of my blog, which is to provide information to travelers or expats in Korea.

If you have something to share about Korea, Photography, or your Technical interests.  Please consider dropping by the forums and registering!

forumsThe forums can either be accessed from the main page by clicking on Forums, or from the link below.

https://www.catracing.org/hendrb/forum

Posted in Blog News | Leave a reply

Post navigation

← Older posts
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
↑