Showing posts with label Linux. Show all posts
Showing posts with label Linux. Show all posts

Tuesday, July 10, 2012

Weekend Project: Discover Linux Astronomy Tools

Considering Linux's foothold in everything from embedded devices to supercomputers, describing the project's growth as astronomical is no exaggeration. But it is a literal truth, too, as Linux and open source software power scores of professional and amateur astronomy projects. Whether you need to precisely drive a large telescope for scientific purposes or just want to create decent-looking astrophotography, chances are there is a project out there already suited for the task.

Step one is figuring out where to point your telescope. If you don't know where to look, the chances are you won't see anything interesting. Fortunately, just about everything from the local planets and asteroids out to deep sky objects is well-cataloged; what you need is a way to translate the celestial position of an object into the coordinates for your position on the ground, at the point in time you intend to be looking up. Astronomers use tables called ephemerides to keep track of these ground-observer positions. But with a computer at hand, you can put away then pencil and paper, and calculate your spotting information on-the-fly.

At the simple-end of the spectrum you find CLI tools like aa (for Astronomical Almanac), a GPLv2 app that calculates positions and velocities for planetary bodies and stars, with a simple, menu-driven interface. It is packaged for Debian, so other distros may carry it, too.

PyEphem is a flexible Python alternative that lets you load in your own data sets from other sources; available options include the International Astronomical Union, NORAD, and interesting private collections such as old space probes.

Skycalc mixes ephemeris functionality with a heads-up planetarium-style display. An even more flexible package is uniMap, which integrates photo-matching and other features discussed below. Finally, check out Ephcom and XEphem, which are older applications but are still good to have around.Skycalc

Two other projects related to the task of generating ephemerides are creating your own charts and logging observations. PP3 is a LaTeX chart generator; it can help you plot out your sky-watching session or create visual aids. Observation Manager allows you to take careful logs of what you see – which will come in handy when you discover that comet that isn't listed in anyone else's ephemeris....

Once you know precisely where to look, however, you'll rapidly discover that you need a lot of precision control to aim your telescope and to track objects as the sky moves. A lot of amateur astronomers shell out big bucks for devices that will automatically rotate their telescopes to track the sky, or even dial-in an object by name. That sounds like no fun at all, but luckily there is a homebrew, open source route, too.

Obviously your controller software will need to be tailored to your hardware, but there are only a few major vendors. If you have a Celestron scope, NexControl is for you. XmTel supports Celestron NexStar, Meade LX200, Planewave Instruments, Galil motion controllers, and several other systems – plus it can be controlled remotely, thanks to the open source INDI software stack.

Some slightly older applications may be worth checking out if you have tricky hardware needs, such as Nova, which bundles telescope control, ephemeris, and image capture, or STV, which is built to control SBIG brand guide systems.

The above projects target specific hardware, but there is something to be said for the complete do-it-yourself approach, too. Many people get into amateur astronomy with low-cost Dobsonian telescopes, and add their own equatorial mounts later. There are experienced builders like BBAstroDesigns who offer hand-made telescope controllers, and makes the hardware designs and software available for free.

Open PHD Guiding (which stands for "Push Here, Dummy") is a hardware-neutral system that is self-calibrating, so you can let the software figure out how fast the motors move the telescope. Open Focus is a similar project focused (no pun intended...) on autofocusing, which is no simple feat.

In addition, there are plenty of Arduino-based solutions, like ejholmes's ASCOM Driver. A great place to get started with homebrew control is the SGL Observatory Automation project, which tackles focusing, telescope control, and several other pieces of observatory automation.

You can certainly have an excellent stargazing experience using solely the human eye (well, through the telescope), but if you want to capture digital photos of the night sky, open source software can help you there, too. As with telescope control, there are solutions for commercial products and for homebrew devices.

For SBIG's USB CCD capture devices, NightView can control the camera, setting the binning mode, exposure type, and shutter length, as well as set the CCD temperature and control any filter wheels attached. For serial and parallel-port SBIG cameras, you will want to look at Shiny.

XmCCD, from the makers of the XmTel software mentioned above, supports some SBIG and Apogee models, plus several brands of filter wheel. GCX is older, but supports some Meade cameras.

Qastrocam and its sibling Qastrocam-g2 are both designed to work with standard webcams – although you will need to mount them to your telescope with an adapter, and your results will be better if you get a high-quality, CCD-based webcam. Audela bridges the gap, providing a uniform interface to USB webcams, more expensive CCD capture devices, and even DSLRs.

Capturing raw images is not the end of the process, however. You will still need post-processing software to transform your data into usable pictures, whether for aesthetic or scientific purposes. That is because astrophotography pushes the limits of even the best capture device, due to the dim light of sky objects. For pure photography, you will generally want to make multiple exposures and stack them together to produce sharp images. For any sort of scientific usage – even ensuring something as simple as accurate color – you will tackle a task called "reduction" that attempts to alleviate the effects of sensor noise and ambient heat, by averaging multiple frames, subtracting "dark frames," and so on. You may also need to precisely align your images and identify objects by their catalog numbers.

On the scientific front, there are a lot of packages to choose from, including all-in-one packages like AstroBuffer, SAOImage DS9, FITS Liberator, and GCX (mentioned above), plus standalone tools that tackle one part of the process – sometimes intended to be called from scripts and other applications.

In this category you will find ISIS, IRAF, stecf, SWarp, WCSTools, and WeightWatcher. A whole other suite of options are available for matching the objects in your images to known celestial catalog entries, such as SExtractor, and Montage.

But don't worry if the high-end tools seem intimidating at first glance; there are "amateur" applications as well, such as uniMap (mentioned above) and Dark Master. In addition, many of the all-in-one processing apps are perfectly suited to producing frame-worthy images. Just be aware that you may have to read up a bit on which of the options interest you and which are overkill.

We may not have space stations and orbital telescopes running completely Linux-based software, yet. But as you can see, Linux and open source have a wealth of technology to offer the astronomy sector, from amateurs building their own telescopes right up to full-time researchers processing deep-sky imagery. In fact, there is so much out there that it almost seems too easy. But you can always seek refuge from the throngs by going even further afield, say to radio astronomy. As a matter of fact, yeah, Linux and open source software at work there, too – such as GNU Radio Astronomy and AIPS – but at least it is slightly less crowded.


View the original article here

Friday, July 6, 2012

Tiny Pluggable Linux ARM Computers Are Red-Hot

The new wave of fun geek toys is inexpensive, hackable, tiny Linux-powered ARM computers, and they're red hot. This is the year to go small.

The ARM platform has been around for a long time, and nearly everyone has used an ARM-powered device. ARM CPUs come in 32-bit, 64-bit, and multiple core flavors. They are paired with amazing tiny powerful GPUs that deliver high-end video in mobile phones, tablets, media players, game consoles, calculators, routers, backup drives, GPS devices, e-readers, set-top boxes and digital video recorders, robots, 3D printers, home automation, and cameras. ARM Holdings claims that over 20 billion ARM-based chips have shipped since they were developed.

ARM started out as the Acorn RISC Machine way back in the early 1980s. RISC is reduced instruction set, in contrast to the Intel x86 processor family, which is CISC: complex instruction set. RISC doesn't mean fewer instructions, because some RISC processors have large sets of instructions, but rather more efficiency, because each instruction doesn't have to work as hard as a comparable CISC instruction. A single CISC instruction may require a dozen or more memory cycles, while a RISC instruction needs only one.

There are other differences, and as fun as it would be to go into detail, the executive summary is RISC CPUs are smaller and require fewer transistors, so they use less power and don't get as hot as big bad x86 processors. Now don't get all excited and insist on using only ARM CPUs for the rest of your life, because each type has its strengths and weaknesses, and applicability to different workloads.

Acorn RISC Machine changed its name several times and went through other changes, and is now ARM Holdings. They do not manufacture nice ARM chips, but only develop and license the technology. It's a sweet deal where they make a lot of money by exchanging pieces of paper with licensees, and hundreds of licensees means a lot of competition and choices for us lowly customers.

We've had little bitty ARM-powered single-board computers for years, like the Pogoplug and BeagleBoard, and Linux is great on these. Now we're into the next wave of portable computing, and that is a miniscule go-anywhere portable computer that plugs into any computing device with a screen and input device. If you have Internet you can access your fine personal cloud services.

The Cotton Candy and MK802 look like USB sticks and plug into a PC, laptop, tablet, HDMI screen, GPS, tablet, smartphone, set top box – pretty much anything with USB or HDMI ports. The Raspberry Pi is a little larger, about the size of a credit card, and is designed to plug into a TV and keyboard.

The downside to these little computers is closed-source GPU drivers. I expect this will change due to pressure and assistance from developers and vendors who don't want the hassles and higher costs of maintaining them. The nice people at the Lima driver project are developing reverse-engineered open source drivers for the Mali GPUs in the Cotton Candy and MK802. Raspberry Pi is built on a Broadcom chipset, which has both closed binary blobs and open code. There has been a steady stream of criticism of the Raspberry Pi project from its inception because of this, but there are not many options.

FXI Technologies' Cotton Candy is billed as "the secure personal computer", a single point of access to personal cloud services through any networked computer, and it is a flexible multi-purpose gadget. It looks like a USB thumb drive (figure 1), and it plugs into any device that supports USB mass storage and has a display screen-- PCs, laptops, tablets, smartphones, smart screens, set top boxes, your car navigation widget-- if it has a screen and a USB or HDMI port you're in business.Figure 1: The tiny feature-packed Cotton Candy portable computer.

This little computer packs in a lot of functionality:

Quad-core ARM Mali 400MP GPUDual-core ARM Cortex A9 1.2GHz CPUWi-fi b/g/nBluetooth1 GB DRAMUp to 64GB microSD storageAndroid 4.0 Ice Cream Sandwich or Ubuntu For ARM

The Mali GPU is a powerful beast that supports OpenGL 3D for gaming and fancy special graphical effects. But that's not all. It also delivers 1080p high-definition video. That's non-interlaced, friends, and it has an HDMI connector so you can plug in directly to any screen with HDMI. Yes, even your fancy big-screen TV.

This little widget is endlessly adaptable: stream HD media from your smartphone to your big screen via the Cotton Candy, plug it into a PC to copy files, give presentations using your smartphone as the remote, run it in its built-in virtual machine client on Linux, Mac, or Windows. $199. It's in short supply and probably won't be available until later this summer.

The MK802 has a boring name and lower specs than the Cotton Candy, and it has a smaller price tag and is available now. Or it was; these little gadgets sell fast. The MK802 runs on a single-core 1.2ghz ARM Cortex A8 with a Mali 400MP GPU, 512MB of RAM, 4GB onboard storage, and 2160p hardware-accelerated HD video. It has USB, microUSB, microSD storage, 802.11b/g Wi-Fi, and an HDMI port. Unlike the Cotton Candy, which has an HDMI connector, you'll need an HDMI cable to connect to anything.

The MK802 ships with Android, and I don't see why it couldn't something like Ubuntu for ARM, Debian ARM, Fedora ARM, or Arch Linux ARM.

The Raspberry Pi made a huge splash thanks to its $25 price tag. What do you get for $25? Assuming you can even get one? You get the A model. Model B costs $35 and adds Ethernet and an extra USB port. The Raspberry Pi was originally intended to be the size of a USB thumb drive, but it grew a bit. It's a little credit-card-size circuit board with a Broadcom BCM2835 processor. This is an ARM1176JZ-F 700MHz CPU and dual-core VideoCore IV GPU for 1080p HD video.

The Pi has 256MB of RAM, 10/100 Ethernet, two USB ports, composite video out, audio, and HDMI. It does not have VGA support, so it won't work with an analog computer monitor. It boots from a microSD card; the default operating system is Fedora Linux. Debian and Arch Linux should also run on it. Arch Linux has a very active and up-to-date ARM project that supports a lot of single-board ARM computers. Figure 2: The Raspberry in all of its naked glory.

The idea behind the Raspberry Pi is to bring computing to children at the lowest cost. If you have a TV and keyboard you can plug it in and play games, use productivity software, play movies and music, write programs – in other words, use it like any desktop PC. Once the manufacturing and distribution are running smoothly the Raspberry Pi Foundation will offer a buy one, give one program, and they accept donations.

As cool as these are, they're not desktop PCs. Running applications is a bit slow, though video performance is good. Do these little gadgets have any practical value? My Magic 8 ball says "Reply hazy, try again".

The Raspberry Pi's goal of reaching children is worthy, but I expect that most of its users will be adult computer nerds. I'm not seeing what will draw children to it, because it's still typing on a computer. Kids don't like to sit and type. Kids like to take things apart and bash on them, and put them back together in random ways. Which goes to show that as always, the weaknesses in open source are closed hardware and a lack of useful teaching tools for children. Little hands need something analogous to Legos, something modular they can snap together and take apart.

The Raspberry Pi is the most hackable, and even has a helpful Broadcom datasheet.


View the original article here

The 2012 Top 7 Best Linux Distributions for You

It is the mystery of mysteries, the one that ranks up there with the Gordian Knot, crop circles, and how many licks does it take to get the center of Tootsie Pop: what is the greatest Linux distro of all?

This is a question Linux.com has tackled before. The key, of course, is understanding that the question itself is wrong: no matter what anyone tells you, there is no One True Distro. The reality is more complex: it's what you need that comes first, and what distro meets those needs is the best one for you.

To help users discover the Linux distribution that's best for them, I will definitively list the best distros for the various types of Linux users to try, based on my own experiences and reviews. The use-case categories will be:

Best Desktop DistributionBest Laptop DistributionBest Enterprise DesktopBest Enterprise ServerBest LiveCDBest Security-Enhanced DistributionBest Multimedia Distribution

You may or may not agree with these assertions, and you are more than welcome to chime in with your own opinions. No matter what you think, though, the good news that by using Linux of any sort, you are already a winner.

Let's get started right off the bat with the most contended category: the best distribution to use for general desktop use. Over the years, this title has gone to Ubuntu, then Fedora. This year, the pick is back in the Ubuntu genus, though it's not something directly from Canonical.Linux Mint

For 2012, the pick for best Linux desktop falls on Linux Mint, specifically, Linux Mint 12 "Lisa."

Linux Mint is a downstream derivation of Ubuntu, which means, it you're not familiar with the lingo of free and open source software, that the code for Linux Mint is based on that found in Ubuntu. Linux Mint developers then add their own take to the distribution.

The result is a smoothly polished distribution that features a lot of power under the hood. Slightly less encumbered with Canonical's corporate mission, Linux Mint has unabashedly and firmly planted its metaphorical feet firmly on the Linux desktop, delivering a very complete set of applications and device drivers in an interface that unequivocally says "desktop."

Because of its close ties to Ubuntu – and Debian above that – Linux Mint users have access to a huge range of applications, themes, and widgets that make the Linux Mint desktop experience very compelling.

Laptop environments are not like desktop environments. Though some laptops still remain clunky affairs with big screens that have keyboards slapped on them, as Linux creator Linus Torvalds has publicly lamented, some laptops are gradually taking their cues from Apple Macbook Air line and are starting to conform to a sleeker aesthetic.Ubuntu Desktop

It is this environment that is well suited for the Linux distro with an interface that matches it: Ubuntu 12.04 LTS.

The latest release of Ubuntu has kept up its superior laptop toolset, with excellent power management and drivers. And, though you might find it grating on a traditional desktop, there's no getting around the fact that Ubuntu's Unity interface is perfect for a mobile device that needs more streamlined usability.

As a laptop distribution, Ubuntu still reigns supreme.

For the past two years, SUSE Linux Enterprise Desktop grabbed top honors for Best Linux Enterprise Desktop.

However, this year, the nod will have to go to Red Hat Enterprise Linux Desktop 6.Red Hat

Why the switch? In the past, I have maintained that SLED maintained a slight edge over RHELD because of the sweet capabilities of SUSE Studio and the strong openSUSE community. But in the ensuing time, SUSE Linux the company seems to be taking a much quieter approach on its market advantages, while Red Hat is pushing into a lot of new territory within the virtualization and cloud spaces.

It's premature to call the entire game to Red Hat, but it seems that the SUSE Enterprise Linux line is starting to fall behind in what it can offer to enterprise Linux customers, and in the enterprise it's all about what the Linux vendor can do for you.

This year, that's going to Red Hat.

For the past two years, this category has always comes down to two main contenders: Red Hat Enterprise Linux (RHEL) and SUSE Linux Enterprise Server (SLES).

This year, it wasn't event really close: it was RHEL 6 all the way.RHEL

The list is extensive why: while SUSE Linux has concentrated on making improvements to the core SLES offering, Red hat has been doing that and pushing into all those new markets mentioned earlier.

In 2012, having a rich and stable presence in the cloud is hyper-critical. You might think this is so much hype, but the truth is that most enterprises are going to deploy in some sort of public, private, or hybrid cloud. If not now, then soon. Until something better comes along, it makes too much sense. RHEL 6 has this kind of cloud presence, plus all of the ISV and tech support that they've led with for years.

These days, every Linux distro is really a LiveCD: you can stick the physical CD or DVD for distribution in your optical drive, boot the system, and run a full Linux distribution without actually installing it.Knoppix

But there is a class of distros, however, that are LiveCD only. These distributions offer users utilities and tools for the specific purpose of repairing existing Linux and Windows installations. These distros are very useful to have regardless of what primary Linux distribution you like to use, because in a crisis they are invaluable to own.

So what's the best one? Once again, it's going to be the king of them all: KNOPPIX. This Debian-based LiveCD uses a lightweight LXDE interface to deliver a very robust experience. In some ways, it's almost too robust to be a fast LiveCD distro anymore, but it still delivers real power and speed for now.

This year's decision on the best security-enhanced distro was indeed a tricky one. In the past, BackTrack Linux usually one this one handily, but BackTrack Linux 5 R2 was recently found to have a undiscovered zero-day vulnerability that rocked a lot of security professional's expectations. [Update: The hole was actually in wicd, which was shipped in BackTrack.]

The hole was closed, naturally, but the damage to BackTrack's rep was there, nonetheless.

It's time to shake off the hit: everything can get hit with something like this, and the fact remains that despite the vulnerability, BackTrack still offers the very best set of white-hat security tools to examine your system or network for problems. Period.

I am old enough to remember the days when I literally would have to switch distros because of a lack of format support to play music or movies. It was a real problem, once upon a time.

Now, though, those days are long gone, and multimedia consumers can use any Linux distro without fear. But with the availability of high-quality cameras and video recorders, Linux distributions need to contain powerful tools for audio and video editing, not just consumption.Ubuntu Studio

For the third year in a row, the best distro in this class is still Ubuntu Studio. For audio, video, and graphic production, it contains a very complete set of tools, as well as format and codec support for a huge range of multimedia formats.

These are just some of the options that are out there for Linux users. Many detractors of Linux may proclaim that the diversity of Linux makes it too complicated to learn, but with a little research and perhaps one of these distributions as a starting point, you should find your own Linux experience a rewarding one.


View the original article here

Tuesday, May 29, 2012

Pengertian Pustaka Software Linux

Pustaka Software Adalah pustaka yang digunakan oleh software Linux untuk bekerja. Jika diibaratkan makanan, pustaka software adalah bahan-bahan mentahnya. Sebuah software Linux dibangun menggunakan fungsi dari sebuah atau beberapa pustaka yang kemudian digabungkan dalam kode program untuk menjadi sebuah software yang memiliki fungsi lengkap. Jika di platform windows pustaka software berbentuk DLL, maka di Linux pustaka software berbentuk shared object yang berekstensi *.so. Letak dari pustaka software ada di /usr/lib/direktori_nama_software atau /usr/lib/
nama_pustaka.so. Kebanyakan dari software Linux membawa pustaka yang bersifat na~ve sehingga bersifat mandiri, tapi ada juga yang menggantungkan kebutuhan pustaka pada paket lain, yang kemudian dikenal dengan istilah dependensi software.