Sunday, May 10, 2009

How to remote access Ubuntu box from M$ Windows box

If you are using M$ Windows OS to remote access Ubuntu, you will need to use ssh (secured shell) via putty.

If you get this "Network error: Connection refused", this means your Ubuntu box do not have any ssh server yet. So what you can do is open a terminal in Ubuntu, type the command:
apt-get install ssh openssh-server
This will install ssh server and you can do remote access from M$ Windows box. Have fun... :D

Tuesday, May 5, 2009

HOW-TO: Dreamweaver running on Ubuntu in 10 EASY Steps!

Copy & Paste from LuisCosio.com

Tired of Windows? Quanta Plus/NVU/Vim are not enough? You just can’t switch to linux because there is no match for the Dreamweaver? Well… Here it is the solution to all your problems!

- What you need?

  • A fresh install of Ubuntu Dapper + all the updates
  • A Windows box with a functional install of Dreamweaver 8

IMPORTANT: I own an original license of the Macromedia Studio 8, but in order to use it under Linux sometimes the original *.exe has to be cracked or patched. I’M NOT ENCOURAGING PIRACY, I’m just presenting a method for those who have an original license, to use it under a different platform.

- Fire up a terminal session and type the next commands;

TIP: Instead of using apt-get, you can install them with the Synaptic Package Manager located in the System/Administration menu

  • $ apt-get update
  • $ apt-get install wine and then type “yes”
  • $ wine /*To create the wine file structure*/
  • $ apt-get install recode and then type “yes”

- Then you need to copy all the necessary files from the Windows box;

  • Copy the whole Macromedia folder from “c:\Program Files\” to “/home/YOURNAME/.wine/drive_c/Program Files/”
  • Copy the whole Macromedia folder from “c:\Documents and settings\All users\Application Data” to “/home/YOURNAME/.wine/drive_c/window/profile/all users/”
  • Copy the whole Macromed (No mistake with the “ai”) from “c:\Windows\system32\” to “/home/YOURNAME/.wine/drive_c/window/system32/”
  • Finally, copy the whole Macromedia folder from “c:\Program Files\Common Files” to “/home/YOURNAME/.wine/drive_c/Program Files/Common Files/”

- Now you need to export the registry keys of the Dreamweaver;

  • In your Windowx box, type “regedit” in the command-line and export the whole “HKEY_LOCAL_MACHINE/Software/Macromedia/” to “macromedia.reg”, then copy it to your your Ubuntu, convert it to ascii with “$ recode ucs-2..ascii macromedia.reg”. Afterwards, type “$ wine regedit macromedia.reg” to run it with wine.
  • That’s it! Type “$ wine dreamweaver.exe” or create a launcher and enjoy Dreamweaver in Ubuntu ;)

Additionally, if you want full functionality download winetools latest version, and install TrueType Font Arial, dcom98, MFC 4.x and IE 6.0 SP1

Saturday, May 2, 2009

Install Samba Server on Ubuntu

If you want to share files between your Ubuntu and Windows computers, your best option is to use Samba file sharing.

To install, first open a terminal window and enter the following command:

sudo apt-get install samba smbfs

We've got samba installed, but now we'll need to configure it to make it accessible. Run the following command to open the configuration file, substituting your editor of choice:

sudo gedit /etc/samba/smb.conf

Find this section in the file:

####### Authentication #######

# "security = user" is always a good idea. This will require a Unix account
# in this server for every user accessing the server. See
# /usr/share/doc/samba-doc/htmldocs/Samba-HOWTO-Collection/ServerType.html
# in the samba-doc package for details.
; security = user

Uncomment the security line, and add another line to make it look like this:

security = user
username map = /etc/samba/smbusers

This will set Samba to use the smbusers file for looking up the user list.

Create a Samba User

There are two steps to creating a user. First we'll run the smbpasswd utility to create a samba password for the user.

sudo smbpasswd -a

Next, we'll add that username to the smbusers file.

sudo gedit /etc/samba/smbusers

Add in the following line, substituting the username with the one you want to give access to. The format is = "". You can use a different samba user name to map to an ubuntu account, but that's not really necessary right now.

= ""

Now you can create samba shares and give access to the users that you listed here.

copied from www.howtogeek.com

How to set a static IP in Ubuntu from the shellHow to set a static IP in Ubuntu from the shell

Kepada sesapa yang tak mau guna dhcp dalam ubuntu, bolehla set statik ip. Caranya agak kacang.

Mula-mula bukak terminal:
Applications > Accessories > Terminal

Taip @ copy & paste command di bawah:

sudo vi /etc/network/interface
Adjust mengikut citarasa masing-masing. Dalam contoh di bawah guna 192.168.0.100
# This file describes the network interfaces available on your system
# and how to activate them. For more information, see interfaces(5).

# The loopback network interface
auto lo
iface lo inet loopback

# This is a list of hotpluggable network interfaces.
# They will be activated automatically by the hotplug subsystem.
mapping hotplug
script grep
map eth0

# The primary network interface
auto eth0
iface eth0 inet static
address 192.168.0.100
netmask 255.255.255.0
network 192.168.0.0
broadcast 192.168.0.255
gateway 192.168.0.1
Lepas tu tekan kekunci "Esc"
Kemudian taip ":wq" > enter (write/ save/ quit )

Untuk restart servis networking, run command ni

sudo /etc/init.d/networking restart

Install vim full version dalam ubuntu

FYI, vim yg ada dalam ubuntu adalah "vim-tiny" yang ntahapahapa. Kalu nak guna vim, kena la install vim-full.

Caranya kacang sahaja. Mula-mula bukak terminal:
Applications > Accessories > Terminal

Taip command ni dalam terminal & tekan enter. (Kalu nak senang, just copy & paste je).
sudo aptitude install vim-full
Lepas tu tekan "Y" (untuk yes) dan ia akan didonlot & diinstall secara automatik.