Launch A Web Application in Compact Mode using Chrome

I have been looking for a kind of launcher for web application, for example email, CRM app, WordPress Admin page, etc. that works like desktop client application. So I can have more space and focus on the application I am working with.

Sometime a go, Chrome had an experiment feature that enable you to hide tabs, address bar. But the feature somehow no longer there. I just found that Google has creatively create a (new to me) feature that help you do this.

To do this is very simple. For example I would like to create a shortcut for WordPress Admin page, or for any webapp that you’d like to have.
1. Open Google Chrome.
2. Open your WordPress Admin page, example: https://yourblog.wordpress.com/wp-admin/
3. Click the Menu icon on the right-top corner, then select More Tools, click Add To Taskbar..
4. Rename the title as you like. Check the Window chexbox. This will hide tabs and addressbar when you open the shortcut. Then click the Add button.

That’s it. Now you have your application shortcut in your taskbar. To delete it just right click and unpin it.

Share DVD drive in Ubuntu 11.04 for Diskless Mac using Open SSH and Macfusion

Sharing folder is one of important features that you must have if you work with multiple computers in a network. In my home office I use Ubuntu 11.04 as my file server. I have Mac and Windows boxes in the network and I have common files that are used by many users like pictures, musics, etc.

If you use diskless Macs like Macbook Air or Mac Mini, of course you would need to use the DVD drive in other machine or buy external DVD drive. I have shared to you how to Setup Shared DVD in Ubuntu for Mac OSX Lion using AFP and netatalk. It works fine, but rather slow.

There is another solution we can use is using Open-SSH. I recently test using it. It works fast, faster than using netatalk. I think comparable with SMB file sharing. And the setup is simple.

This article tells you how to set it up. We will use a very useful tool Secured Shell (SSH) using openssh in Ubuntu 11.04 Natty Narwhal. This should also work in newer Ubuntu 11.10 Oneiric Ocelot or other version of Ubuntu. Let’s start how to do this.

Setup OpenSSH

Login to your Ubuntu PC. Open terminal, then type:

sudo apt-get install openssh-server

The command will use standard setting for ssh such as use standard port 22 for ssh, and use protocol 2. You can change the setting if you like, for example if you would restrict access based on IP for your ssh server. Or just skip you don’t change anything.

sudo nano /etc/ssh/sshd_config

Setup your DVD media

You need to tell ubuntu to auto mounting the DVD drive with generic mounted volume so we can set it as shared volume.

sudo nano /etc/fstab

Add the following line at the end of the file.

/dev/dvd /media/dvd auto user,noauto,exec,utf8 0 0

Setup Macfusion

To access the server from Mac, I use OSX Fuse and Macfusion, download both software. You need OSX Fuse to run Macfusion. Install OSX Fuse and then Macfusion. Make sure you install Compatibility Layer when installing OSX Fuse. Then follow the rest of installation instruction to complete the setup.

Open MacFusion click the “+” sign at the left bottom to add new device. Then select SSHFS option. Go to SSH tab. I name it DVD, fill the IP as your SSH server IP, User Name and Password as what you have defined at your server, and fill the Path as your share folder that you setup in Ubuntu server.

Ignore the SSH Advance tab if you use the default settings at your server. Go to the Macfusion tab,  leave the Mount Point as default and fill the Volume Name as you wish to be displayed in the mounted device at your Mac, I fill it “Remote Disc”. You can change the icon if you like.

To mount your new drive, just click mount. You will be ask to enter the password, key in the password and click the check box Save Password in Keychain.

Your mounted drive will be on your desktop. To access it from any application, enable the home folder at your favorites in the Finder preference setting. Open Finder – Preferences, click Sidebar tab, click the check box of your machine under Devices.

Once completed, open Finder, click your Mac machine under Devices at Sidebar. You will see mounted DVD is on the list.

Source:
Share my DVD drive with my Mac Mini over LAN
http://macfusionapp.org/

Install LAMP in Ubuntu Natty Narwhal

Linux, Apache, Mysql, and PHP server is my favorite web server environment that I like. This article shows how to set it up properly. First note your IP server of Ubuntu PC.

Setup MySQL

You have to run the steps as root, so be careful.

sudo su

apt-get install mysql-server mysql-client

During the setup you will be asked to change SA admin password. Please do so to make sure your database is secured.

Install Apache

apt-get install apache

After installation completed, open the browser and go to the server, enter your server IP at the browser address. You should see “It works!”, then your apache setup is working.

Apache’s default document root is /var/www on Ubuntu, and the configuration file is /etc/apache2/apache2.conf. Additional configurations are stored in subdirectories of the /etc/apache2 directory such as /etc/apache2/mods-enabled (for Apache modules), /etc/apache2/sites-enabled (for virtual hosts), and /etc/apache2/conf.d.

Install PHP

Go to terminal again and type this command.

apt-get install php5 libapache2-mod-php5

Restart apache to run the PHP engine.

/etc/init.d/apache2 restart

To test if the PHP installation is ok we create new php file.

nano /var/www/info.php

Enter this code then save the file and exit from the editor.

Test it in your browser add /info.php after your IP server. You should see PHP configuration and information. You can check if all settings are as you expected and you may add or activate service, libraries, etc. if you like.

Setup MySQL Modules In PHP5

To get MySQL support in PHP, we can install the php5-mysql package. It’s a good idea to install some other PHP5 modules as well as you might need them for your applications. You can search for available PHP5 modules like this:

apt-cache search php5

Pick the ones you need and install them like this:

apt-get install php5-mysql php5-curl php5-gd php5-idn php-pear php5-imagick php5-imap php5-mcrypt php5-memcache php5-ming php5-ps php5-pspell php5-recode php5-snmp php5-sqlite php5-tidy php5-xmlrpc php5-xsl

Now restart Apache2:

/etc/init.d/apache2 restart

Now reload info.php in your browser and scroll down to the modules section again. You should now find lots of new modules there, including the MySQL module.

And install phpmyadmin a nice database tool to manage Mysql database so easier for you to access the database from any PC or Mac in the network.

apt-get install phpmyadmin

Finished! All you need to setup LAMP in your Ubuntu are done.