Spread Linux

Categories


Recent Comments:



FeedWind
FeedWind
Get Linux

Baudizm at Blogged

December 1, 2008

Quick Tip: Use DPKG to replicate between Ubuntu installs

Filed under: Linux, Tips and Tricks - baudizm @ 9:22 pm

This is just a quick tip I’m putting up in replicating existing packages between Ubuntu installs. I tend to keep forgetting how to do it every time I do a total reinstall of my Ubuntu box. The following simple commands will list down all installed packages and export it to a file, copy to a USB thumbdrive, and import later after doing a reinstall/upgrade. In other words, the following steps will automate your package reinstall that will mimic your old Ubuntu install.

hw@myubuntu:~$ dpkg --get-selections > pkginstalled

The above snippet uses the dpkg command with the --get-selections parameter to read the installed packages and dumps them to a plaintext file. You can then proceed and copy pkginstalled to an USB thumbdrive for later, and proceed with the reinstall or system wipeout/upgrade.

After your new system has been reinstalled, instead of manually installing all the applications that you had previously, just do the following commands to automate the process.

hw@newbox:~$ dpkg --set-selections < /media/disk/pkginstalled
hw@newbox:~$ apt-get dselect-upgrade

The above snippet imports the list of packages from the file pkginstalled from /media/disk (USB thumbdrive) or replace it with the path where you copied you package list file. The next command does the actual package installation based on the list of packages imported.

NOTE: If you were using non-official repositories, please add the necessary third-party repo prior to doing the steps mentioned above.

Enjoy!

Technorati Technorati , , , , , , ,
Site Search Tags: , , , , , , ,


July 30, 2008

Quick way to start Xen virtual machines on bootup

Filed under: Linux, Tips and Tricks - baudizm @ 5:38 pm

Just a quick tip.

You’re using SuSE Linux Enterprise Server 10 and you are using virtualization with Xen with a couple of virtual machines (DomU) and you are quite happy with how everything turned out. SLES10 is running ok, Xen works fine, DomU’s are healthy and serving as they should. Then again, you need to do a maintenance task and will need to reboot your machine. Then suddenly you found out that you need to manually start all your virtual machines manually! ACK!

Here are some quick steps to follow to make sure that your VMs go up and running as soon as your host OS gets up and running too.

1. On SLES10 terminal, go to /etc/xen/vm

mybox:~ # cd /etc/xen/vm

2. All the definition files for your virtual machines are located there. You can then just copy all the files to /etc/xen/auto

mybox:/etc/xen/vm # cp * /etc/xen/auto/

This is the old way of making your virtual machines start up automatically. Novell experts recommend using the xm command to make your virtual machine automatically start up. Though it’s a bit tedious but it works on the latest SLES10 builds. And you have to repeat the steps for every virtual machine that you want to automatically start up.

Using xm, we will first export our existing (and running) config for one of our DomU (virtual machine) to a text config.

mybox:~ # xm list -l yourVM > yourVM_config

Make sure that you have a backup of the exported config before editing.

mybox:~ # cp yourVM_config yourVM_config.backup

Edit your VM config using vi and look for the following parameters:


(on_xend_start ignore)
(on_xend_stop ignore)

and change them to


(on_xend_start start)
(on_xend_stop shutdown)

Save your file, then let’s export it back to our Xen server using the following command:

mybox:~ # xm new -F yourVM_config

That’s all there is to it. However, if you have 5 other virtual machines running, you will need to repeat these steps for each.

What I did is I combined the former step (using /etc/xen/auto) with the latter steps. So far, my VMs are all up and about when the host SLES10 finishes loading.

Regards and safe journey. Enjoy!

Technorati Technorati , , , , , ,
Site Search Tags: , , , , , ,


November 13, 2007

Export a webpage to PDF in your PC

Filed under: Throughout the Web, Tips and Tricks - baudizm @ 10:42 am

You have been searching the web for solutions to your problems and along the way you have found a treasure trove of tips, tricks, and pages that you just had to download. However, you’ve found no link to download the PDF version. What would you do?

Usually, you’d open up OpenOffice.org, copy and paste the content from the site, and click File, Export to PDF. Or you can do it a little simpler, and quicker.

Adobe has launched its online PDF creation service which allows you to upload your file, or reference a site, and it will generate the PDF for you that you can download to your computer. Downside is that you will need to of course subscribe to their service at a cost.

“I just need to export an entire online page to PDF.”
I’m telling you now, you can do what Adobe allows you to do at no extra cost. Yep folks — at no cost! To convert that secret tip page you’re currently reading, you can just open up your browser and point it to:

http://savepageaspdf.pdfonline.com/pdfonline/pdfonline.asp?cURL=_SITE_URL_&
page=1&top=0.5&bottom=0.5&left=0.5&right=0.5

Make sure that its all on one line and change _SITE_URL_ to that of the page url that you want converted to PDF, press enter, then save the file when prompted.

One caveat though is that there might sites that have content on floating divs that might be dynamically generated. There are times that those might not be included in the export. So far, for static pages, and most printer-friendly versions of your favorite pages, they can be exported to PDF without any hitch.

Technorati Technorati: , , , , , ,
Site Search Tags: , , , , , ,


June 5, 2007

Exporting Gmail Contacts to Evolution

Filed under: Tips and Tricks - baudizm @ 3:23 pm

Gmail has been widely used nowadays and for most of us, it seems indispensable. However, for others who would prefer to use a traditional mail client over a web-based mail client the following steps might be helpful.

As always the case, I am using Linux for my daily work routines. And I have the option of using either Mozilla Thunderbird or Evolution as my mail client. Whichever client I use, I am still assured I will get my mail in time.

If you are on Gmail, I’m pretty sure you would want to export your Contacts list over to your mail client. Here are the details how to do it.

- Click on Gmail’s “Contacts” link at the left.
- Click on “All Contacts”
- Scroll down the page, then click on “Select: All”
- Scroll up, then on the top most right corner of the Gmail page, there’s Import and Export. Click on Export.
- In the dialog box, you will get to choose either export as Gmail CSV or Outlook CSV.

To import the saved Outlook CSV contacts file:

- open up Evolution
- click on File, Import
- choose “Import a Single File”
- click on “Browse” and select the CSV file exported from Gmail.
- continue with the process then click Finish.

Technorati Tags: , , , , , ,
Site Search Tags: , , , , ,


January 12, 2007

Insight: Enterprise iPhone?

Filed under: Throughout the Web - baudizm @ 3:33 pm

A few days after Steve Jobs, Apple CEO, spearheaded the iPhone introduction at MacWorld, enterprise computing analysts are calling the iPhone to make no significant impact in the enterprise.

It comes to no surprise for me after reading InternetNews.com’s article regarding analysts “clamor” to hold the iPhone from being used in the business sector. Avi Greengart, analyst for Current Analysis is quoted as saying:

"As beautiful as the iPhone design is, physical design isn't what handset vendors are lacking,.."

"...there will be some reevaluation of the usefulness [of the iPhone] in the market,..."

"[the iPhone] will have very little impact on the business community,..."

"A lot of the innovation we see on the iPhone we've seen first on the Treo,"

"[The iPhone introduction] makes the incredibly crowded smartphone market even more crowded, ..."

Greengart’s assessment of the iPhone introduction is probably based on long-time experience in observing the mobile and smartphone markets. He’s right, to a point, that current phone offerings does not necessarily lack design oomph, and that some of the features included in the iPhone were indeed seen first with the Treo or other earlier released mobile phone.

The thing is, Apple is not necessarily claiming to have first developed some of the technologies in iPhone. Nor was Apple claiming to be the first to use these technologies. What Apple did was improve — again, the word is improve — on the currently available technology and adapted it for their target market. I for one find the Multi-Touch screen to be an even better option than using minute keys on an otherwise pitifully arranged keypad, or even using the stylus commonly used by current PDA models and smartphone. To me, the overall design improvement that Apple introduced to the otherwise docile touchscreen is a welcome sight.

iPhone
The Apple iPhone. http://www.apple.com/iphone.
Image courtesy of Internetnews.com.

Missing features, security, and other qualms
Some things pointed out by Greengart and other analysts interviewed by InternetNews.com were that the iPhone did not include 3G making it unable to download content directly from its iTunes site, mobile TV capabilities, and cannot import applications (perhaps he means applications from other mobile phones). Another issue that enterprise analysts are pointing out is that the iPhone does not include secure corporate email and corporate-level controls.

Certainly, to the technically uninitiated, these sound like valid issues.

What Avi Greengart and other enterprise analysts has yet to realize is that the iPhone is still largely an “infant” product joining an overgrown, haphazardly organized, and tumultous mobile market. Knowing about Apple, the iPhone is in my own opinion only halfway complete. The currently unveiled product is pretty much targeted at the bottom level mobile user base, the ones that use their phone for virtually anything and everything without hindrance, and with simplified usability in mind. All the user could care for is that it is slick, it is cool, usable, and it works. The iPhone was made to be as usable to the very novice as well as the most technically savvy user, treating the user to as much eye candy as the user can handle. Clearly, the iPhone was designed with much emphasis being put on how the users will use their phones.

Apple always want to make their products to be set as far apart from other products as possible. 3G is pretty much standard in mobile phones today and I’m sure Steve Jobs doesn’t want his new pet project to be “just like the rest”. He wants it to be “better at best”. Ditching 3G perhaps is one indication that the iPhone is not your run-off-the-mill phone. But that doesn’t mean that without 3G the iPhone is trash. iPhone leverages pretty much on WiFi and Bluetooth — two technologies that Apple also widely used and popularized, perhaps even pioneered and helped to be introduced to the mainstream market. Since the iPhone is still largely under evaluation from the FCC for authorization, that will certainly not stop Apple from having second-thoughts later and incorporate 3G support before the final retail product ships within the year. After all, this is still largely Apple’s call.

As for application import, analysts should have noticed that the iPhone is indeed a different phone in its own right. It is using a slightly modified Mac OS X, which is in fact a full operating system embedded on a small frame with 4Gb - 8Gb of memory. In essence, the iPhone is in fact a computer that works like a phone, instead of the other way around. For applications, it doesn’t need the applications that can be found on other phones. Why? It already has applications and widgets from OS X that are waiting to be exported to the iPhone. This again sets iPhone apart from other phones. The stroke of genius, the “killer app”. Applications that only iPhone has and none other.

And with regards to secure corporate email and corporate-level controls, this once again falls back to the fact that Mac OS X has multitude of corporate users and applications. These can then be harnessed for inclusion and support for iPhone without much modification to the code perhaps only downsizing the application a bit. Email can even be accessed through the secure corporate intranet using traditional TCP/IP protocols like HTTPS, wrap in VPN tunnels, IPSec, or what-have-you. Anything is possible. In earnest, the iPhone is leveraging internet functionality on the go.

Bottomline is, analysts want to tone down the hype that Apple’s iPhone has brought. But reality is, it is still relatively very very early to conclude that the iPhone will not be supported in the enterprise. If your infrastructure supports WiFi, the TCP/IP Stack, VPN, Bluetooth, or Mac OS X, chances are that you are already welcoming the arrival of Enterprise iPhone without even knowing that you already are.

Will we see the iPhone being used on the enterprise? Will the iPhone go head-to-head with RIM’s Blackberry or other enterprise mobile handheld? Could be. All we can do is sit back and watch as the events unfold.

Technorati , , , , ,
Site Search Tags: , , , , ,



Get free blog up and running in minutes with Blogsome | Theme designs available here