Linux For Your Life

  • Subscribe to our RSS feed.
  • Twitter
  • StumbleUpon
  • Reddit
  • Facebook
  • Digg
Showing posts with label Optimize Linux system. Show all posts
Showing posts with label Optimize Linux system. Show all posts

Thursday, 1 October 2009

Add a swap file or expand existing swap space

Posted on 05:25 by Unknown
        It’s a myth to say that Ubuntu (or any Linux) needs a swap partition.This is certainly the preferred way of working, and is most efficient,but Linux can also use a single swap file located in the root partition,just like Windows or Mac OS X. There are times when this is advantageous,such as if you’re only able to create one partition for Ubuntu (for example, Apple’s BootCamp software only allows the creation of a single non-Mac partition when dual-booting).

        To create a swap file, you need to first create a dummy file of sufficient size, then format it as a swap file, and finally ensure that Ubuntu uses it at boot-up. The following steps do just that (be extremely careful entering these commands):

1. Open a terminal window and create an empty file in the root of the file system using the dd command, as follows (this creates a 1GB file—you should ideally adjust the count= figure to at least match the size of your memory, bearing in mind that there is 1,024MB in a 1GB):

$ sudo dd if=/dev/zero of=/swapfile bs=1M count=1024

2. Now we need to format it as a swap file:

$ sudo mkswap /swapfile

3. The final step is to make Ubuntu mount it at boot, which is done by editing /etc/fstab:

$ gksu gedit /etc/fstab

Then make a new line at the bottom of the file and add the following:

/swapfile none swap sw 0 0

You can align the entries on the line under the column headings in fstab, like the other entries in the file, but it doesn’t matter so long as there is at least one space between each entry on the line. Once done, save the file and reboot your computer. 
 

Once the computer has rebooted, you can test to see if the swapfile is being utilized by typing cat /proc/meminfo|grep Swap. 

The steps above can also be used to add more swap space to a system that has an existing swap partition. You might want to do this if you’re editing extremely high-resolution photographs, for example, or working with large video files.

Reference : Ubuntu Kungfu Linux


Thanks
By:Mr.Gm
Read More
Posted in Optimize Linux system | No comments

Sunday, 9 August 2009

Optimize Startup For Faster boot Times

Posted on 05:43 by Unknown
Few operating systems seem to boot quickly enough, and unfortunately Ubuntu is amongst them. However, there are four things you can do to reduce delays and generally speed-up startup:
Reducing the boot menu delay
If you dual-boot Ubuntu and Windows on your computer the boot menu appears for 10 seconds, during which you can select either Windows or Ubuntu. If you only have Ubuntu installed, a prompt appears for three seconds telling you that you can hit a key to see the boot menu.

This delay can feasibly be reduced to one second, providing you have quick enough reactions—hitting a key during that second will cause the countdown timer to stop so you can make your choice at leisure.

Alternatively, you can configure the system so the boot menu never appears. This will deny access to the other boot menu options but if Ubuntu is the only operating system on your computer then this could be a good arrangement.
Start by opening the boot menu configuration file in Gedit:
$ gksu gedit /boot/grub/menu.lst
Then search for the line that reads timeout 10 and change the 10 to read either 1, for a one second countdown, or 0, to disable the boot menu completely.
Save the file and then reboot to test the settings



Thank's
By:Mr.Gm
Read More
Posted in Optimize Linux system | No comments
Older Posts Home
Subscribe to: Posts (Atom)

Popular Posts

  • Changing OpenOffice Splash Screen Images
    when we run openoffice will come openoffice splash screen image that was used we see, we may feel bored with the splash screen and want to r...
  • Subject-verb agreement
             Subject-verb agreement is a grammatical rule that states that the verb must agree in number with its subject.  In English,  prese...
  • Copy Seluruh Isi Website Dengan WebHTTrack
    S aat menyulusuri suatu website yang terdapat di internet,misalnya situs berisikan lyric lagu atau situs berisikan cerita komik,terkad...
  • Mengembalikan GRUB bootloader yang hilang pada Ubuntu Linux
        Tutorial ini akan menjelaskan bagaimana mengembalikan grub setelah menginstal Windows 7/Vista/Xp. Jika anda menggunakan dual boot PC de...
  • Make Repository local in Ubuntu and Debian
          The first step we doing when we will make the local Repository is download the complete package Repository. To download the complet...
  • Malin Kundang Story From Padang Indonesia
    Long time ago, in a small village near the beach in West Sumatera, lived a woman and her son, Malin Kundang. Malin Kundang's father ha...
  • Switch to Kubuntu, Xubuntu, or Edubuntu
            To switch to Kubuntu, Xubuntu, or Edubuntu , use Synaptic to search for and install kubuntu-desktop , xubuntu-desktop , or edubuntu...
  • Tangkuban Perahu Part 1
                  Once upon a time in west Java, Indonesia lived a wise king who had a beautiful daughter.   Her name was Dayang Sumbi.  She lik...
  • Grand Thief Auto V
        Grand Thief Auto atau yang sering ita dengar dengan GTA akan muncul dengan seri terbarunya yaitu Grand thief Auto V seri terbaru ini aka...
  • Tugas FPGA (Seven Segment Display)
        Seven segment adalah alat tampilan elektronik yang bisa menampilkan penomoran decimal. Seven segment biasanya diidentifikasi dalam indus...

Categories

  • Applications
  • cairo-dock
  • convert Rpm to Deb
  • Desktop
  • Distro
  • Download Manager
  • Fix Crash GUI
  • Format USB
  • game
  • hardware
  • Install Linux
  • internet and Web
  • Linux Intro
  • LiveUSB
  • Local Repository
  • nautilus
  • Optimize Linux system
  • Programming Language
  • Robot
  • Server
  • so
  • Terminal
  • Tips and Trick OpenOffice
  • Tugas Manajemen Proyek dan Risiko
  • Tugas SoftSkill
  • wifi

Blog Archive

  • ▼  2012 (5)
    • ▼  June (2)
      • Tangkuban Perahu Part 1
      • Malin Kundang Story From Padang Indonesia
    • ►  May (1)
    • ►  April (1)
    • ►  March (1)
  • ►  2011 (29)
    • ►  December (10)
    • ►  November (2)
    • ►  October (2)
    • ►  May (11)
    • ►  March (2)
    • ►  February (2)
  • ►  2010 (74)
    • ►  December (13)
    • ►  October (4)
    • ►  June (12)
    • ►  May (10)
    • ►  April (6)
    • ►  March (8)
    • ►  February (18)
    • ►  January (3)
  • ►  2009 (42)
    • ►  October (6)
    • ►  September (13)
    • ►  August (13)
    • ►  July (10)
Powered by Blogger.

About Me

Unknown
View my complete profile