Thursday, April 24, 2008

Install Ubuntu 7.10 ” Gutsy Ribbon” Dari USB Flash

Bagi yang ingin menginstall Ubuntu 7.10 tanpa CDROM bisa
menggunakan USB FLASH sebagai alternatif, syaratnya PC harus support booting
dari USB Port dan USB flash dengan kapasitas minimal 1 GB.
Untuk membuat USB
bisa sebagai bootable di perlukan syslinux atau software pembuat bootable
lainnya, saya menggunakan syslinux untuk membuat USB bootable karena aplikasinya
sudah ada direpo ubuntu.
untuk install applikasi syslinux di ubuntu ( infonya
syslinuxnya lihat disini ) bisa langsung dilakukan dari terminal konsole
$
sudo apt-get install syslinux mtools
Setelah proses installasi selesai
kemudian mount USB, Biasanya partisi USB ada pada /dev/sdb atau /dev/sdb1, dan
di mounting di dalam folder media dengan nama folder usb atau nama label USB
tersebut, untuk melihat partisi harddisk dan USB bisa dengan cara :
$ sudo
fdisk -l
untuk membuat USB Flsh bisa sebagai bootable dengan syslinux cukup
mengetikan perintah ini pada terminal konsole
$ sudo syslinux -s /dev/sdb1
selanjutnya copy semua file yang ada di Live CD Ubuntu 7.10 “Gutsy Ribbon”
ke dalam USB
$ sudo cp -rp /media/cdrom/* /dev/sdb1
Setelah proses copy
file selesai, ubah nama folder isolinux menjadi syslinux, didalam folder
syslinux ganti nama file isolinux.bin dan isolinux.cfg menjadi syslinux.bin dan
syslinux.cfg.
Untuk Windows Download file syslinux dari sini , kemudian
extrak ke dalam direktori C dengan nama syslinux.
Pada command promt windows
masuk ke direktory c\:syslinux\win32, gunakan perintah berikut untuk membuat usb
bisa sebagai bootable disk : syslinux -s F: ( asumsi usb drive di F ), kemudian
copy semua file di Ubuntu 7.10 Live CD ke dalam USB, sebaiknya gunakan command
xcopy /e /h /k d:\*.* f: (D sebagai CDROM).
Selanjutnya USB flash sudah bisa
di gunakan sebagai penganti Ubuntu 7.10 Gutsy Ribbon Live CD.

Thursday, March 27, 2008

To Disable CD Autoplay, completely, in Windows XP Pro

1. Click Start, Run and enter GPEDIT.MSC
2. Go to Computer Configuration, Administrative Templates, System.
3. Locate the entry for Turn autoplay off and modify it as you desire.

To make multiple login in Yahoo Messenger with Yahoo ID's at the same time

Using this trick you will be able to login with many yahoo id's at same time:
1. Click Start, Run and Type Regedit, then enter.
2. Navigate to HKEY_CURRENT_ USER/Software/yahoo/pager/Test
3. On the right page , right-click and choose new DWORD value .
4. Rename it as Plural.
5. Double click and assign a decimal value of 1.

How to share files and folder in ubuntu

How to install Samba Server for files/folders sharing service


sudo apt-get install samba smbfs


How to add/edit/delete network users


sudo smbpasswd -a system_username
gksudo gedit /etc/samba/smbusers
    • Insert the following line into the new file
system_username = "network username"


  • To add network user
sudo smbpasswd -a system_username
  • To delete network user
sudo smbpasswd -x system_username
  • To enable network user
sudo smbpasswd -e system_username
  • To disable network user
sudo smbpasswd -d system_username
    • By Default network users are disabled after adding them, make sure you run the enable network user command above.

How to share home folders with read only or read/write permission (Authentication=Yes)


sudo cp /etc/samba/smb.conf /etc/samba/smb.conf_backup
gksudo gedit /etc/samba/smb.conf
  • Find this line
...
; security = user
...
  • Replace with the following lines
  security = user
username map = /etc/samba/smbusers
  • Remove the ; in front of the following lines (there will text in between explaining what they do):
;[homes]
;comment = Home Directories
;browseable = no
;valid users = %S
;writable = yes
    • If you want other network users to be able to edit to the folder then change
 # By default, the home directories are exported read-only. Change next
# parameter to 'yes' if you want to be able to write to them.
; writable = no
    • Replace with the following lines
  writable = yes
  • Save the edited file
sudo testparm
sudo /etc/init.d/samba restart


Tuesday, March 25, 2008

Multimedia codecs and players

  1. Add the extra repositories.
  2. (optional) Install DVD playback capability and Windows Media and RealPlayer codecs (see the Restricted Formats page):
    wget -c -P /tmp/ http://www.debian-multimedia.org/pool/main/w/w32codecs/w32codecs_20071007-0.0_i386.deb
    wget -c -P /tmp/ http://www.debian-multimedia.org/pool/main/libd/libdvdcss/libdvdcss2_1.2.9-0.0_i386.deb
    sudo dpkg -i /tmp/w32codecs_20071007-0.0_i386.deb /tmp/libdvdcss2_1.2.9-0.0_i386.deb
  3. (recommended) Install Totem with the Xine back-end:
    sudo apt-get install totem-xine libxine1-plugins
  4. (recommended) Make Totem the preferred multimedia player:
    gconftool --type string --set /desktop/gnome/applications/media/exec "totem"
  5. (recommended) Add right-click options in Nautilus for enqueuing and replacing multiple files in Totem.
  6. (optional) Install MPlayer (rubbish interface, but good to have around for the rare cases when Xine can't play something):
    sudo apt-get install mplayer
    sudo sed -i.backup -e's@gmplayer@mplayer@g' /usr/share/applications/mplayer.desktop
    sudo sed -i.backup -e's@vo=x11,@vo=xv,@g' /etc/mplayer/mplayer.conf
  7. (optional) Install the MPlayer plugin for Firefox:
    sudo apt-get install mozilla-mplayer

Mozilla Firefox - on Ubuntu

Firefox comes pre-installed on Ubuntu. Here are some useful customizations.

  1. (optional) Some useful extensions:
  2. (optional) Enter about:config in the URL bar and then make the following changes:
    general.autoScroll=true
    network.http.pipelining=true
    network.prefetch-next=false
    browser.backspace_action=0
    browser.link.open_newwindow=3 (3: new tab; 2: new indow; 1: current tab)
    browser.link.open_newwindow.restriction=2 (0: use open_newwindow setting; 1: new window; 2: use open_newwindow setting unless javascript specifies window size)
    browser.search.openintab=true
    browser.tabs.autoHide=false
    browser.tabs.closeButtons=2
    browser.tabs.loadFolderAndReplace=false
    browser.tabs.loadGroup=0
    browser.tabs.warnOnClose=false
    browser.search.minwidth=300
    linkification.settings.Linkify_OpenInTab=true
    linkification.settings.Linkify_OpenTabinBG=true
    linkification.settings.Linkify_Toggle=false
  3. (optional) Open URLs entered in address bar in a new tab by default. (Useful if you hate having to press ALT+ENTER to achieve this.) Note that the following needs to be done each time a new version of Firefox is installed (e.g., as an Ubuntu update).
    sudo apt-get install fastjar
    pushd /tmp; fastjar -xf /usr/share/firefox/chrome/browser.jar content/browser/browser.js; popd
    sed -i -e"s/if (aTriggeringEvent \&\& aTriggeringEvent.altKey)/if (!(aTriggeringEvent \&\& aTriggeringEvent.altKey))/" /tmp/content/browser/browser.js
    sudo fastjar -uf0 /usr/share/firefox/chrome/browser.jar -C/tmp content/browser/browser.js

Fonts

  1. Here are some beautiful alternatives to Windows fonts:
    • Serif fonts (alternatives to Times New Roman, Georgia, Garamond, etc.): Norasi, Nimbus Roman No 9 L, FreeSerif, DejaVu Serif.
    • Sans-serif fonts (alternatives to Verdana, Tahoma, etc.): DejaVu Sans, FreeSans.
    • Fixed-width fonts (alternatives to Courier New, Lucida Console, etc.): DejaVu Sans Mono, FreeMono.
  2. If, after trying the fonts above, you still want to get Windows fonts, here's how:
    sudo apt-get install msttcorefonts

Relocating the /home directory

Important: This only applies if you want to move the /home directory to another drive/partition, or if you want to activate an existing home directory on another drive/partition.

  1. Carefully write down these instructions since they require you to close the browser.
  2. Save and close all open programs, and then log out (as opposed to restart or shutdown).
  3. Press CTRL+ALT+F2; you will be taken to the TTY2 command line.
  4. Stop the Gnome Desktop Manager:
    sudo /etc/init.d/gdm stop
  5. (Note: Skip this step if you already have the contents of your /home directory in the desired partition.) Copy your /home directory to the desired partition, say /media/new_home_partition:
    sudo cp -pR /home/$USER /media/new_home_partition
    sudo chown $USER:$USER /media/new_home_partition/$USER
  6. Make the desired partition mount as /home:
    sudo cp /etc/fstab /etc/fstab.backup
    sudo nano /etc/fstab
    If the mount point for any entry is currently listed as /home, change it from
    # /dev/old_home_partition
    UUID=... /home ...
    to
    # /dev/old_home_partition
    UUID=... /media/old_home_partition ...
    Then set mount point for the desired partition's entry to /home by changing
    # /dev/new_home_partition
    UUID=... /media/new_home_partition ...
    to
    # /dev/new_home_partition
    UUID=... /home ...
    Save the file (i.e., press CTRL+O) and exit Nano (i.e., press CTRL+X).
  7. Press CTRL+ALT+DEL to reboot; after rebooting, your /home directory will be located in the new partition.

Enable 5-button mouse

  1. If you have a 5-button mouse, you can enable the forward and back buttons as follows:
    sudo cp /etc/X11/xorg.conf /etc/X11/xorg.conf.backup.mouse
    sudo gedit /etc/X11/xorg.conf
    Change:
    Section "InputDevice"
    ...
    Driver "mouse"
    ...
    Option "Emulate3Buttons" ...
    Option "ZAxisMapping" ...
    ...
    EndSection
    to:
    Section "InputDevice"
    ...
    Driver "mouse"
    ...
    Option "Emulate3Buttons" "false"
    Option "Buttons" "7"
    Option "ButtonMapping" "1 2 3 8 9 10 11"
    Option "ZAxisMapping" "4 5"
    ...
    EndSection
  2. (optional) Restart Gnome Desktop Manager for these settings to take effect.

Monday, March 24, 2008

Install nVidia graphics driver

Note that installing the nVidia driver will fix some screen resolution problems.

1. If you plan to connect multiple monitors, start out by connecting only the main monitor in order to keep things simple. (Once you have the driver working fine for just that monitor, you can then connect the other monitors and use the nvidia-settings utility to configure them.)
2. Now reset the X server configuration to very basic settings:

sudo dpkg-reconfigure xserver-xorg

You will be presented with a series of questions. Choose the default answers for all the questions except for the following:
1. Choose "vesa" for the X server driver.
2. Choose "No" for monitor autodection.
3. Choose "medium" for the method for selecting the monitor characteristics.
4. Choose "1024x768 @ 60Hz" for the monitor's best video mode. (Don't worry, we'll get better screen resolutions once we install and enable the nVidia driver.)
5. Choose "Yes" for writing the monitor sync ranges to the config file.
You can now optionally restart the Gnome Desktop Manager (GDM) for these settings to take effect before continuing. Alternatively, you can just continue the driver installation without restarting the GDM.
3. Install and enable the nVidia driver:

sudo apt-get install nvidia-glx-new
sudo nvidia-glx-config enable

Note: If you have a GeForce4 video card, you may need to use nvidia-glx instead of nvidia-glx-new. And if you have a very old card, like a TNT, you may need to use nvidia-glx-legacy instead.
4. Reboot the computer for these settings to take effect. (In theory, you could just restart the Gnome Desktop Manager, but I ran into a situation where, after an error, the nVidia driver didn't seem to load upon restart the GDM.)
5. Set up screen resolution, dual monitors, Xinerama, etc.:

sudo nvidia-settings

You can change the settings in the "X Server Display Configuration" section and then click the "Save to X Configuration" button and save the file as /etc/X11/xorg.conf.
6. (optional) Disable the nVidia splash screen:

sudo gedit /etc/X11/xorg.conf

Change:

Section "Device"
...
Driver "nvidia"
...
EndSection

to:

Section "Device"
...
Driver "nvidia"
...
Option "NoLogo" "true"
EndSection

7. (optional) Restart Gnome Desktop Manager for these settings to take effect.

Printer sharing


  1. On the server:
    1. Set up your printer, and make sure it's turned on and working.
    2. Click on the "System" / "Administration" / "Printing" menu.
    3. Select "Server Settings" on the left, and turn on "Share published printers connected to this system". This will allow printer sharing over your private network. If you want to access the printer over the Internet, also turn on "Allow printing from the Internet".
    4. Select your printer under "Local Printers" on the left, select the "Policies" tab, and turn on "Enabled", "Accepting jobs", and "Shared".
    5. Use Firestarter to open port 631 (the default IPP port) for the IP addresses to which you want to give printer access. If you want to restrict printer access to your private network, set the policy to open your IPP port for only 192.168.0.0/16 (i.e., IPs of the form 192.168.xxx.xxx).
    6. If you are behind a router on a private network, give your server a static private IP (e.g., 192.168.1.30) by clicking on the "System" / "Administration" / "Network" menu item and setting up a static IP. Note that the "gateway address" should be the router's address (e.g., 192.168.0.1, 192.168.1.1, or whatever).
    7. If you want to access your server over the Internet and are behind a router, configure the router to allow access to your server's IPP port (port 631).
    8. If you want to access your server over the Internet and your Internet Service Provider doesn't give you a static IP address, you need to set up a publicly accessible hostname.
  2. On the client:
    1. Click on the "System" / "Administration" / "Printing" menu.
    2. Click on the "New Printer" button.
    3. Select "Other", and enter the following URI:
      http://$SERVER:631/printers/$PRINTER 
      where $SERVER is the server URL or IP address and $PRINTER is the printer name on the server, and then click "Forward" and follow the remaining steps as you would for local printer setup. You can find the names of the shared printer on a server by visiting the following URL in your web browser:
      http://$SERVER:631/printers
      where $SERVER is the server URL or IP address.

Update and upgrade packages

sudo apt-get update
sudo apt-get upgrade

Add extra repositories


sudo cp /etc/apt/sources.list /etc/apt/sources.list.backup
sudo gedit /etc/apt/sources.list


Add :

deb http://us.archive.ubuntu.com/ubuntu/ gutsy main restricted universe multiverse
deb-src http://us.archive.ubuntu.com/ubuntu/ gutsy main restricted universe multiverse

deb http://us.archive.ubuntu.com/ubuntu/ gutsy-updates main restricted universe multiverse
deb-src http://us.archive.ubuntu.com/ubuntu/ gutsy-updates main restricted universe multiverse

deb http://us.archive.ubuntu.com/ubuntu/ gutsy-backports main restricted universe multiverse
deb-src http://us.archive.ubuntu.com/ubuntu/ gutsy-backports main restricted universe multiverse

deb http://archive.canonical.com/ubuntu gutsy partner
deb-src http://archive.canonical.com/ubuntu gutsy partner

deb http://security.ubuntu.com/ubuntu gutsy-security main restricted universe multiverse
deb-src http://security.ubuntu.com/ubuntu gutsy-security main restricted universe multiverse

-----save then back to terminal-----


sudo apt-get update


Install Ubuntu

See here for some other good installation guides: APC's Linux/Vista/XP dual-booting guide and Psychocats' installation guide.

  1. Download the Ubuntu installation CD/DVD image, and then burn the image to CD/DVD.
  2. If you have multiple monitors, disconnect all but the main one.
  3. Boot off the CD/DVD. This usually involves simply rebooting the computer with the CD/DVD in the appropriate drive. For some computers you may need to hit F12 (or F2, or DEL, or something like that) at the appropriate time during boot and select from a menu to boot off the CD.
  4. Choose the "Start Ubuntu in safe graphics mode" option.
  5. After the computer boots into the Live CD version of Ubuntu, double-click the Install icon on the Desktop.
  6. At this point, your screen resolution might be too low to be able see or click the "Forward" button at the bottom of the Install window. If this is the case, you can fix the problem as follows:
    1. Close the over-sized Install window.
    2. Open a terminal by clicking on the Applications menu and then on the Accessories submenu and then on the Terminal menu item.
    3. In the terminal, type:
      sudo dpkg-reconfigure xserver-xorg
      and then press ENTER on your keyboard.
    4. You will be presented with a series of questions. Choose the default answers to all questions, except for the following:
      1. Choose "Medium" for the method for selecting monitor characteristics.
      2. Choose "1028x768 @ 60Hz" for the monitor's best video mode.
    5. After you answer all the questions and are back in the regular terminal, restart the Gnome Desktop Manager by pressing CTRL+ALT+BACKSPACE on your keyboard.
    6. Wait for a few seconds without pressing any keys until Ubuntu automatically logs back in and you can see the desktop again.
    7. You should now have a better resolution.
    8. Double-click the Install icon on the Desktop and you should be able to see the full install window.
  7. Select your language, location and time-zone, and keyboard layout.
  8. When you reach the "Prepare disk space" section, choose to "Manually edit partition table". Note that you can decide to keep any existing Windows partition(s) (in which case Ubuntu will install itself with dual boot options). However, if the Windows partitions take up the whole hard drive, then you must first shrink these partition(s) in order to free up space for your Ubuntu partitions. I recommend setting up three new partitions (in addition to the shrunk Windows partition) for Ubuntu as follows:
    Purpose Size Filesystem
    swap space 1-2GB linux-swap
    root directory (/) 6-10GB ReiserFS (or ext3)
    home directory (/home) remaining free space ReiserFS (or ext3)
    The /home directory will hold your documents, music, pictures, etc., so you should plan to invest adequate space for that. Putting /home on a separate partition allows you to upgrade/reinstall the OS without touching your documents.
  9. Migrate Documents and Settings if applicable and/or desired.
  10. Select your user name, password and computer name.
  11. Review your choices, and then click "Install".
  12. Browse the web or read a magazine while Ubuntu installs.
  13. Eventually, you will be informed that the installation is complete, at which point click the "Restart now" button.
  14. Just before Ubuntu finishes restarting, you will be prompted to remove the install CD/DVD. Make sure to do so in order to avoid booting back into the install CD.
  15. If Ubuntu detected Windows on another partition, it will present you with dual boot options using GRUB. The top option is Ubuntu. Choose it, or else just let the timer count down to zero.
  16. After the computer boots into the newly installed Ubuntu, log in using the user name and password that you selected earlier during installation.
  17. Congratulations! You are now running Ubuntu! :)

Saturday, March 22, 2008

Dared to try, Dared to fail

A person bussinesman must have the brave attitude tried and tried continually.Bravely tried, in a manner indirectly businessman was demanded to learn from the mistake and the failure that were experienced by him.

In the internet business/online that was increasingly bright today, courage tried a person businessman online also held the important role.
Tried the online business that so many were offered indeed was not unfortunate him, all of them very free, his capital of only time and the normal internet connection was also spent by us.
It was better to try the internet business than only wasted time and money when surfing in the world maya.
Many success stories businessman online that started from just was mischievous and attempted.
The fad that the implementation evidently caused the production that increasingly for a long time was increasingly pleasing.
Finally not few people who made the online business the main source of his production.

Nevertheless, the brave attitude tried to have to be followed with the brave attitude failed.
Almost did not have the person who just the first time tried the business immediately reaped the success and the success.
A person businessman the certain success had experienced the failure.
Usually businessman that ditempa the failure repeatedly precisely more will be successful in the future.
The failure will for the sake of the failure that struck him become means study and the exercise in facing the business challenge in the future that increasingly did not find it easy, so as the success seem like only was waiting for time.

Courage tried to be important but courage accepted the failure became more important in the business anything.
Courage accepted the significant failure realised that there is no business that was easy and instant.
The brave attitude failed to cultivate the attitude was not easy to surrender and lose hope, because in the business was needed by efforts and the hard work.
The online business that was regarded as very easy in fact not semudah that was imagined by many people.
Many people were interested entering to the online business with the wish to become rich in a short time easily.
They were wrong, in the online business then was needed by efforts and the hard work.
The success story that was experienced pebisnis online also was built from many failures that had been experienced by them.
They who were successful in the online business had not stopped trying and studying.
Don't had dreamt of becoming the millionaire from the online business only with ongkang-ongkang foot.
All of them needed time and efforts.

In fact the person not failed, but only stopped trying.
Someone who wanted to gain the success, then the person must have courage tried and courage accepted the failure.

Good luck for all.
The two capitals so that will determine the success of his business.