Showing posts with label TechRepublic. Show all posts
Showing posts with label TechRepublic. Show all posts

Thursday, October 6, 2016

How to run VirtualBox virtual machines from the command line




By Jack Wallen | October 5, 2016, 8:15 AM PST
VirtualBox virtual machines can be run without working with the GUI. See how to take advantage of the VBoxManage command to start, pause, and power down your VMs.

If you're using VirtualBox as a virtual machine (VM) server in your data center, chances are you're going to want to know how to run those VMs without having to rely on the VirtualBox GUI. This makes it much easier to run your VMs without having to be at the host machine (you can ssh into the host and then manage the VMs) or without having a number of GUI windows open to clutter your server desktops (or be readily available for prying eyes).

To make this happen, you'll use a very powerful command that comes with VirtualBox called VBoxManage; it allows you to manage a number of aspects of your VMs. I'll show how to use VBoxManage to start, stop, and pause your VMs. I assume you have VirtualBox installed, and your VMs are ready to run on the host machine.

SEE: Building the Software Defined Data Center (ZDNet/TechRepublic special feature)
Before you fire up a VM



If you go directly to the VBoxManage command and fire up a VM, you'll probably find that VM isn't reachable via network—this renders the VM worthless, especially if it is a server.

In order to get the networking of your headless VM up and running, you have to install the VirtualBox extension pack. Here's how.
Download the extension pack that matches your VirtualBox release.
Open the VirtualBox GUI.
Click File | Preferences.
Go to the Extensions section.
Click the downward-pointing arrow (Figure A).
Navigate to where you saved the Extension Pack and select the .vbox-extpack file.
Click Open.
When prompted, type your admin password for the host machine.
Click OK.

Figure A
Image: Jack Wallen
Installing the VirtualBox Extension Pack

You're ready to run your VMs, which will include the ability to

How to customize the Calendar app in iOS 10 to improve your workflow




By Cory Bohon | October 5, 2016, 8:18 PM PST

The iOS Calendar app can help keep you organized and on task. See how to customize Calendar to take full advantage of its powerful features.

Apple has iterated the iOS Calendar app since its introduction in iPhone OS 1.0. In iOS 10, the Calendar app is at its most powerful and useful.

There are lots of customization options to tweak the calendar exactly to your liking, whether you want to change the default calendar, the start day of the week, or which calendars are displayed. Here's how to customize the calendar to improve your workflow and make your calendar events easier to read.


Depending on where you live and your calendar preferences, you may want the

Wednesday, October 5, 2016

How to use the Swift Playgrounds iPad app to code on the go



Image: Apple
Swift Playgrounds is an easy way to learn Swift programming and to test code inside of Xcode, and now the feature is available for iOS 10. Learn how to use the Swift Playgrounds app for iPad.

By Cory Bohon | October 4, 2016, 8:13 AM PST


Apple announced Swift Playgrounds earlier this year during WWDC '16, andreleased it alongside iOS 10 in September. This new app is great for beginner coders and professional developers, because it allows you to officially write Swift code and have it run on the iPad. This is a first for iOS—Apple has never allowed apps that can compile or interpret code.

Perhaps the biggest feature of the Swift Playgrounds app for iOS is the ability to download tutorial projects to learn Swift; these projects are pretty self-explanatory so I won't cover them. I'll walk you through the workings of Swift Playgrounds, and how to write own code inside the app.

SEE: Apple's Swift programming language: The smart person's guide
What is a Playground?

Swift is Apple's newest programming language, and it can be used to write apps on all of its platforms: iOS, macOS, tvOS, and watchOS.


More about Mobility
8 reasons why professionals should get the iPhone 7
Report: Your business is wasting money on BYOD reimbursements
iOS 10 and the enterprise
Subscribe to TechRepublic's Mobile Enterprise newsletter

Playgrounds are a feature of Swift and the Xcode IDE that allows for quick compiles in a REPL (read-eval-print-loop) style interface, mimicking the REPL found in run-time interpreted languages like Ruby. Playgrounds are simple files that contain Swift code and can be compiled and run quickly, providing output logging to the user as the code is executed.

For example, if you write a for loop that iterates over an array to add new items, then for each iteration of this for loop, the playground will show the index of the loop and the output of the code executed in that loop. In this scenario, it would
Related Posts Plugin for WordPress, Blogger...