Y3N

Internet

install Dreamweaver in Ubuntu

by Y3N on Nov.19, 2009, under Internet, Script, Software

http://maketecheasier.com/how-to-install-dreamweaver-cs3-in-ubuntu-hardy/2008/06/20

It would be great if there is a Linux build of the popular Dreamweaver CS3, or that it could be easily installed via WINE. The truth is, none of the above work. There is no Linux version, nor will it work via WINE direct installation. The only way to get it to work is to port it over from a Windows installation.

If you are new to Dreamweaver CS3, it is one of the best, if not, the best web editor software in the market. While there are many open source and free web editors out there, none of them come close to it in term of quality and capability. Although it comes with a hefty price tag of $399, it is well worth the money if you are into serious web developing. As such, if you wish to follow this guide and install Dreamweaver CS3 in your Ubuntu machine, please make sure you have the licensed copy, or proceed to Adobe to make your purchase. Do not attempt to use illegal software.

Initial Installation – WINE

We will need WINE to create a Windows environment for Dreamweaver. If you have already installed WINE, you can skip to the next section.

sudo apt-get install wine
winecfg

The WINE configuration window will pop up. Click OK to close the window. You can now find a .wine folder in your Home directory (if you can’t see it, go to View and check “Show Hidden Files“).

Porting Dreamweaver CS 3 From Windows

Install your Dreamweaver CS 3 in Windows. (For this step, I would advise you to install it on a Windows virtual machine so that you can transfer files between the two OS easily later on.)

Now there are 5 main folders that you need to copy to your Ubuntu machine.

1) Open up File Manager and navigate to C:\Program Files. Copy the whole ‘Adobe‘ folder to Ubuntu /home/username/.wine/drive_c/Program Files folder.

2) Still in the Windows File manager, navigate to C:\Documents and Settings\your-windows-user-name\Application Data (if you can’t find the Application Data folder, go to Tools->Folder Option->View and select ‘show hidden files and folders‘) and copy the whole ‘Adobe‘ folder to Ubuntu /home/username/.wine/drive_c/windows/profiles/All Users/Application Data/

3) In the Windows File manager, go to C:\Program Files\Common Files and copy the whole ‘Adobe‘ folder to Ubuntu /home/username/.wine/drive_c/Program Files/Common Files

4) In the Windows file manager, go to C:\WINDOWS\system32 and copy the whole ‘marcomed‘ folder to Ubuntu /home/username/.wine/drive_c/windows/system32

5) In the Windows file manager, go to C:\WINDOWS and copy the whole ‘WinSxS‘ folder to Ubuntu /home/username/.wine/drive_c/windows

Next, we need to import the Dreamweaver registry to WINE.

In your Windows, go to Start->Run. Type in ‘regedit‘ and press Enter.

In the window that pop up, on the left pane, navigate to HKEY_LOCAL_MACHINE-> SOFTWARE->Adobe->Dreamweaver. Right click on the ‘Dreamweaver‘ folder and select ‘Export’. Save the file as dreamweaver.reg

Copy this dreamweaver.reg to your Ubuntu home folder.

Now you need to convert the registry file to ASCII format.

sudo apt-get install recode
recode ucs-2..ascii dreamweaver.reg
wine regedit dreamweaver.reg

At this time, you have successfully ported all the necessary files from Windows to Ubuntu. To test your installation:

cd .wine/drive_c/Program\ Files/Adobe/Adobe\ Dreamweaver\ CS3/
wine Dreamweaver.exe

Dreamweaver CS3 should now launch.

Creating entry in Applications menu

To create an entry in your Applications menu, right click on the Applications menu and select ‘Edit Menus’.

Scroll down to the Wine->Programs entry and select New Item. Enter the following

Type: Application
Name: Dreamweaver CS3
Command: wine /home/username/.wine/drive_c/Program\ Files/Adobe/Adobe\ Dreamweaver\ CS3/Dreamweaver.exe

Click Close. You should now see an entry in your Application menu. You can drag the entry to your desktop or to the panel to create a shortcut.

1 Comment more...

UBUNTU -> MAC Looks!

by Y3N on Jun.15, 2009, under Internet

http://maketecheasier.com/turn-your-ubuntu-hardy-to-mac-osx-leopard/2008/07/23

Preview:

Updated: The updated version of this tutorial for Ubuntu Intrepid can be found at Turn Ubuntu Intrepid into Mac Leopard.

You can’t really turn a Linux system to a Mac, but you definitely can make your Ubuntu Hardy looks like a Mac OSX Leopard.

If you want to change this

ubuntu-desktop-original into

ubuntu-leopard-screenshot , follow the steps below.

Before we start…

First, create a folder in your Home and name it Mac_files. Download the following files to the Mac_files folder.

* Modified Mac4Lin theme
* Mac4Lin icon set
* Mac4Lin wallpaper
* Avant Windows Manager elegant glass theme

Using Archive manager, extract the three Mac4Lin zip files Modified Mac4Lin theme and Mac4Lin wallpaper to the Mac_files folder.

Apply Mac OSX Leopard Theme

Go to System->Preferences->Appearance.

appearance

Select Install and select the Mac4Lin GTK theme (/home/username/Mac_files/Mac4Lin_v0.4/GTK Metacity Theme/Mac4Lin_GTK_v0.4.tar.gz).

appearance-select-gtk-theme

Next, click Install again and select the Mac4Lin icon theme. (/home/username/Mac_files/Mac4Lin_Icons_Part2_v0.4.tar.gz /home/username/Mac_files/Mac4Lin_Icons_modified.tar.gz). When prompted, select “Apply new themes“.

Click Install again and select the Mac4Lin mouse cursor theme. (/home/username/Mac_files/Mac4Lin_v0.4/GTK Cursor Theme/Mac4Lin_Cursors_v0.4.tar.gz). Select “Apply new themes” when prompted.

appearance-cursor-apply-theme

Click ‘customize’ and choose Mac4Lin_GTK_v0.4. Go to the “Window border” tab, choose Mac4Lin_GTK_v0.4. Click Close.

appearance-customize

On the top, go to the Background tab. Click Add and select the Leopard wallpaper. (/home/username/Mac_files/Wallpapers/Leopard.jpg). Click Close to terminate the Appearance window

appearance-select-wallpaper

Install the Dock (Avant Window Navigator)

Open a terminal (Applications->Accessories->Terminal) and type

gksu gedit /etc/apt/sources.list

and add the following lines to the end of the file:

deb http://ppa.launchpad.net/awn-testing/ubuntu hardy main
deb-src http://ppa.launchpad.net/awn-testing/ubuntu hardy main

Save and close the file. In your terminal, type

sudo apt-get update
sudo apt-get install avant-window-navigator-trunk awn-manager-trunk awn-extras-applets-trunk

Go to System->Preferences->AWN manager. On the left, click on the Theme. On the right, click Add and navigate to the Mac_files folder. Select the Elegant_glass.tgz file. Check the bullet beside the Elegant glass theme and click Apply.

awn-select-theme

Next on the left, click on the Applet icon. On the right, scroll down to the stack Applet. Highlight it, then click Activate. This will add the Mac Leopard stack to your dock.

awn-select-applet

Before you launch the AWN, remove the bottom panel from the desktop first. Right click on the bottom panel and select “delete this panel”. Open AWN via Applications->Accessories->Avant Window Navigator. Once it is activated, you can simply drag and drop the applications into the dock.

Install OSX Fonts

Open a terminal and type the following:

sudo apt-get install msttcorefonts

This will Install the Microsoft core fonts.

Next, copy the OSX fonts to the fonts folder

cd /usr/share/fonts
sudo tar xvzf /home/username/Mac_files/Mac4Lin_v0.4/Fonts/OSX_Fonts.tar.gz

Configure the fonts:

cd/
sudo tar xvjpf /home/username/Mac_files/Mac4Lin_v0.4/Fonts/fontconfig.tbz -C /etc/fonts

Open the Appearance window (System->Preferences->Appearance) and select Fonts tab. Select the following fonts according to the image below. Click Close.

appearance-configure-fonts

Change the traffic light window control to the left

In the terminal, type

gconf-editor

This will bring up the gconf-editor window. Scroll down to App->Metacity->general. On the right, double click on the button_layout and change the content to ‘close,minimize,maximize:menu’ (without the quote). Click Ok and close the gconf-editor.

gconf-editor

gconf-editor2

Change the menubar

Remove all the icon and applications on the left side of the top panel. Right-click on the icon and select ‘Remove from panel‘. You will left with something like this:

menubar-remove-icon

On the right of the top panel, remove the logout icon. Still on the right hand side of the top panel, right click and select ‘Add to panel‘. Scroll down the list and add ‘Search for files‘. This will add the spotlight icon to the panel.

menubar-add-search

On the extreme left, right-click and select ‘Add to panel‘. Scroll down the list and add ‘Main Menu‘. This will add the apple icon on the left. You can now log out and shut down from the Apple dropdown menu (same as Mac OSX).

menubar-add-mainmenu

Next, we are going to install globalmenu so as to display the menubar for each application. In your terminal,

cd Mac_files
wget http://gnome2-globalmenu.googlecode.com/files/gnome-globalmenu-0.4-svn964.tar.gz
tar zxvf gnome-globalmenu-0.4-svn964.tar.gz
cd globalmenu
sudo dpkg -i *.deb

If you have any errors when installing the package, try

sudo dpkg -i –force-overwrite *.deb

If you are having some installation problems with the gnome-globalmenu-applet, try

sudo apt-get install -f

Once finished, right click on the top panel and select ‘Add to panel‘. Scroll down the list and add ‘Global Menu Applet‘.

menubar-add-globalmenu

You might not see anything initially. Log out and log in again, you should now see the menubar for each application showing on the panel.

If your globalmenu is of a different shade of grey from the rest of the panel (as shown in the image below), right click on any empty space on the panel and select ‘Properties‘. Go to Background tab and select ‘Background image’. Under the selection, go to /home/username/.themes/Mac4Lin_GTK_v0.4/gtk-2.0/Panel and select panel-bg.png. Click OK. (Updated: If you can’t find the .themes folder, right-click and select ‘show hidden files‘.)

globalmenu-w-darkbg

Drag the globalmenu to the left just beside the Apple icon. Right click on the globalmenu and select ‘Preferences’. Tick the box beside ‘Display the title of the current application‘ and put maximum width 100. Select the font to be Lucida Grande Bold. Click Apply and OK. You should now have a desktop that resemble Mac Leopard.

globalmenu-preferences

menubar-with-globalmenu

Configuring the Login screen

Click on the Apple icon, go to System->Administration->Login Window. On the Local tab, click Add. Navigate to the path /filesystem/home/username/Mac_files/Mac4Lin_v0.4/GDM Theme and select the file Mac4Lin_GDM_v0.4.tar.gz. Check the box beside the newly installed theme to activate it.

install-login-screen

Underneath, there is a color selection field, select it and key in the number E5E5E5 into the color code field.

login-screen-color

Click Ok. Log out. You should see the login screen as the diagram below.

login-screen

Configure usplash screen

usplash is the screen that you see when your computer is booting up. We are going to change it to show the white apple screen. In your terminal,

sudo apt-get install startupmanager

Go to System->Administration->Start-Up Manager Go to Appearance tab. Click on the ‘Manage bootloader theme‘. Click Add and navigate to the file /filesystem/home/username/Mac_files/Mac4Lin_v0.4/GRUB Splash/appleblack.xpm.gz. Check the box “Use background image for bootloader menu” and select ‘appleblack”.

startupmanager-configuration

startupmanager-addtheme

Next, click “Manage usplash theme”. Click Add and add the file /filesystem/home/username/Mac_files/Mac4Lin_v0.4/USplash Theme/osx-splash.so. Click OK. Select OSX-splash from the dropdown box.

Now reboot. You should see the following images:

bootloader

usplash

Creating Dashboard effect

We will use a combination of screenlets and Compiz widget plugin to achieve the dashboard effect.

Install Screenlets

sudo apt-get install screenlets compizconfig-settings-manager

Go to System->Preferences->Advanced Desktop Effect Setting. On the Left, click on Desktop. On the right, put a check beside ‘Widget layer’

ccsm-widget-setting

Go to Accessories->Screenlets. Activate the widgets that you want to display. Right click on the widget and select ‘Properties’. Go to Options tab and select ‘Treat as widget’. Do this for all the widgets that you have activated.

screenlets-as-widget

You can now see your dashboard in action by pressing F9.

dashboard-effect

Done. You have completed the transformation of your Ubuntu desktop to Mac OSX Leopard.

Some screenshots:

ubuntu-leopard-screenshot-big

screenshot-w-stack

Leave a Comment more...

How to put sidebar widget?

by Y3N on May.12, 2009, under Internet, Script

To put some content here,
go to Site Admin -> Appearance/Presentation -> Widgets -> Select “Left Sidebar” -> Click “Show” -> Click on “Add” on one of the widgets on the left side -> Click “Save changes” -> Done

1 Comment more...

Gimana donlod dari Youtube yang cepat?

by Y3N on Apr.21, 2009, under Internet

buka halaman yang mau di donlod

nah ntar di browsernya
http://www.youtube.com/watch?v=hn7So0NC74s&feature=fvst
dijadiin
http://www.kickyoutube.com/watch?v=hn7So0NC74s&feature=fvst

nanti ada pilihan downloadnya di bagian atas2, mau format mp4, flv, dsb
trus tinggal donlod trus di right click buat save-as

jadi deh

Leave a Comment more...

inline-js.php

by Y3N on Apr.07, 2009, under Internet, Script

<?php
/*
Plugin Name: Inline Javascript Plugin
Plugin URI: http://www.ooso.net/index.php/inline-js/
Feed URI: http://www.ooso.net/index.php/feed/
Description: Plugin that insert inline javascript in Posts/Pages
Version: 0.4
Author: Volcano
Author URI: http://www.ooso.net
*/

$_inline_autop = defined('ExecPhp_VERSION') ? false : true;

function inline_autop($content) {
global $_inline_autop;

$str = str_replace(array('[inline]', '[/inline]'), '', $content);
if($str != $content)
$_inline_autop = false;

if($_inline_autop) {
$content = wpautop($content);
$content = wptexturize($content);
}

return $content;
}

function inline_javascript($content){
global $_inline_autop;

$str = $content;
$str = preg_replace_callback('/\[inline\](.*?)\[\/inline\]/is', 'inline_render', $content);

if(is_home() or is_page() or is_single())
$str = str_replace(array('[inline]', '[/inline]'), '', $str);

return $str;
}

function inline_render($m) {
$str = $m[0];
$str = str_replace('[/script]', '</script>', $str);
$str = preg_replace(array("/\[script(.*?)\]/i"), array("<script$1>"), $str);
return $str;
}

function inline_callback($m) {
$str = $m[0];
$str = str_replace(array('</script>', '</SCRIPT>'), '[/script]', $str);
$str = preg_replace(array("'<script(.*?)>'i"), array("[script$1]"), $str);
return $str;
}

function inline_save_pre($content) {
$str = preg_replace_callback('/\[inline\](.*?)\[\/inline\]/is', 'inline_callback', $content);
return $str;
}

remove_filter('the_content',    'wpautop');
remove_filter('the_content',    'wptexturize');

add_filter('content_save_pre',     'inline_save_pre',        0);
add_filter('the_content',         'inline_javascript',     99);
add_filter('the_content',         'inline_autop',            1);

add_filter('content_edit_pre',    'inline_javascript');
?>
Leave a Comment more...

Looking for something?

Use the form below to search the site:

Still not finding what you're looking for? Drop a comment on a post or contact us so we can take care of it!

Visit our friends!

A few highly recommended friends...