Saturday, February 19, 2011

Ubuntu 10.10 : Make A Swap File

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 2,048MB in a 2GB):
$ sudo dd if=/dev/zero of=/swapfile bs=1M count=2048

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

Read more:

Thursday, April 29, 2010

Ubuntu : Install VLC Player

sudo apt-get install vlc vlc-plugin-pulse mozilla-plugin-vlc

Link :
http://www.videolan.org/vlc/download-ubuntu.html

Thursday, March 18, 2010

Monday, March 15, 2010

Ubuntu : Install YUM

Buka Terminal
Taip:

sudo apt-get install yum

Ubuntu : Install Flash Plugin

1. Tutup browser Mozilla Firefox.
2. Taip:

sudo apt-get install flashplugin-nonfree
@
sudo apt-get install flashplugin-installer
@
sudo apt-get install adobe-flashplugin


Kalau xboleh install, ada error, try ni...

Sudo apt-get install apturl
kemudian
Sudo apt-get install adobe-flashplugin


Link:
https://help.ubuntu.com/7.04/internet/C/web-plugins.html
https://help.ubuntu.com/community/EclipseIDE
http://www.bukisa.com/articles/258879_how-to-install-flash-player-plugin-on-ubuntu-910-solved


Wednesday, November 11, 2009

Fedora 10@11 : Installing Google Chrome Browser


Buka dan edit file repo:

vim /etc/yum.repos.d/chromium.repo


Kemudian isikan dengan teks ini dan 'save'kan:
[chromium]
name=Chromium Test Packages
baseurl=http://spot.fedorapeople.org/chromium/F$releasever/
enabled=1
gpgcheck=0

Taipkan command ini:
yum install chromium

Try yg ni...
yum install google-chrome-unstable

Wednesday, August 12, 2009

/etc/httpd/conf

# VirtualHost example:
# Almost any Apache directive may go into a VirtualHost container.
# The first VirtualHost section is used for requests without a known
# server name.
#

ServerAdmin root@192.168.5.55
DocumentRoot /var/www/linux
ServerName linux.com
ErrorLog logs/linux.com-error_log
CustomLog logs/linux.com-access_log common



ServerAdmin zahri@zahri.com
DocumentRoot /var/www/zahri
ServerName zahri.com
ErrorLog logs/zahri.com-error_log
CustomLog logs/zahri.com-access_log common



ServerAdmin cengko@cengko.com
DocumentRoot /var/www/cengko
ServerName cengko.com
ErrorLog logs/cengko.com-error_log
CustomLog logs/cengko.com-access_log common

Friday, August 7, 2009

Movies Software 001 Joiner (*.001, *.002, *.003)

001 Joiner is a little program with a simple interface that can Split & Join files.The files have the extensions of *.001,*.002,*.003 etc.

A basic file might be something like Myfile.mpeg.001 and have more like Myfile.mpeg.002 etc. All you have to do is double click the file with extension .001 and the rest will be loaded into 001 Joiner.

Link:
http://www.topshareware.com/001-Joiner-download-8773.htm


Download File:
http://www.topshareware.com/001-Joiner-transfer-8773.htm

http://www.topshareware.com/download.aspx?id=8773&p=&url=http%3a%2f%2fwww.silvermaine.co.uk%2fdownloads%2f001_joiner.zip

Wednesday, July 22, 2009

MCS : Link Installer

MCS Client - utk teleconferencing antara RFO
http://www.filefactory.com/file/ahe9779/n/MCSv6_1_1-Installer-6_1_0_3_exe

MCS Registry Cleaner - guna kalau xboleh nak install (ada problem/error)
http://www.filefactory.com/file/ahe851e/n/MCS_Registry_Cleaner_exe

Tuesday, July 14, 2009

Fedora 10 : Make A Swap File

To know the actual memory (RAM) and already swap on a Linux box use the free command.

$ free
total used free shared buffers cached
Mem: 507956 489860 18096 0 9580 76876
-/+ buffers/cache: 403404 104552
Swap: 1012084 69668 942416

Now to create extra swap file follow the steps:
(To create swap file of approx 1GB)

$ dd if=/dev/zero of=/usr/more_swap bs=1000000 count=1024

(It will create one swap file more_swap in /usr)

$ chmod 600 /usr/more_swap
$ mkswap /usr/more_swap
$ swapon /usr/more_swap


Now add this file to the /etc/fstab file (at last)
$ vi /etc/fstab

/usr/more_swap swap swap defaults 0 0

Wednesday, July 8, 2009

Fedora 11 : Firefox Plugin

Flash
 
Install the Flash Plugin
su -c 'yum install flash-plugin'
 
If you don't hear audio during playback of flash video just install packet called libflashsupport:
su -c 'yum install libflashsupport'

Installation without #Adobe repository: Install Flash Player 10:
su -c 'rpm -ivh http://fpdownload.macromedia.com/get/flashplayer/current/flash-plugin-10.0.12.36-release.i386.rpm'
 
64bit Flash
Make sure to uninstall flash-plugin, libflashsupport and nspluginwrapper before you do these steps:
wget http://download.macromedia.com/pub/labs/flashplayer10/libflashplayer-10.0.d20.7.linux-x86_64.so.tar.gz

tar xvzf libflashplayer-10.0.d20.7.linux-x86_64.so.tar.gz -C

~/.mozilla/plugins
 
*Restart Firefox

Link:

Fedora 11 : Fedora Tweaks

Improving your bandwidth

This guide was taken from the ubuntu guide

  • Open the sysctl.conf file for editing and backup your previous sysctl.conf file
su -c 'cp /etc/sysctl.conf /etc/sysctl.conf.backup'
su -c 'gedit /etc/sysctl.conf'
  • Add the following lines
 ## increase TCP max buffer size setable using setsockopt()
net.core.rmem_max = 16777216
net.core.wmem_max = 16777216
## increase Linux autotuning TCP buffer limits
## min, default, and max number of bytes to use
## set max to at least 4MB, or higher if you use very high BDP paths
net.ipv4.tcp_rmem = 4096 87380 16777216
net.ipv4.tcp_wmem = 4096 65536 16777216
## don't cache ssthresh from previous connection
net.ipv4.tcp_no_metrics_save = 1
net.ipv4.tcp_moderate_rcvbuf = 1
## recommended to increase this for 1000 BT or higher
net.core.netdev_max_backlog = 2500
## for 10 GigE, use this, uncomment below
## net.core.netdev_max_backlog = 30000
## Turn off timestamps if you're on a gigabit or very busy network
## Having it off is one less thing the IP stack needs to work on
## net.ipv4.tcp_timestamps = 0
## disable tcp selective acknowledgements.
net.ipv4.tcp_sack = 0
##enable window scaling
net.ipv4.tcp_window_scaling = 1
  • Save it and close it. Run the following command
 su -c '/sbin/sysctl -p'

Link:
http://www.fedoraguide.info/index.php?title=Main_Page#Flash

Fedora 11 : Firefox Tweaks

Speed Up Firefox Web Browser Tips

  • Applications -> Internet -> Firefox Web Browser
  • Mozilla Firefox
Address Bar -> about:config
Filter: ->
network.dns.disableIPv6 -> true
network.http.pipelining -> true
network.http.pipelining.maxrequests -> 8
network.http.proxy.pipelining -> true
  • Restart Mozilla Firefox
**********************************

How to disable beep sound for link find function in Mozilla Firefox

  • Applications -> Internet -> Firefox Web Browser
  • Mozilla Firefox
Address Bar -> about:config
Filter: accessibility.typeaheadfind.enablesound -> false
  • Restart Mozilla Firefox

**********************************

Setting the backspace button to go to a previous page

  • Applications -> Internet -> Firefox Web Browser
  • Mozilla Firefox
Address Bar -> about:config
Filter: -> browser.backspace_action -> 0
  • Restart Mozilla Firefox

**********************************

Close the Download dialog quicker

  • Go to Applications -> Internet -> Firefox Web Browser
  • Put in your address bar
Address Bar -> about:config

Filter the configs options

Filter: -> alerts.totalOpenTime -> 500

**********************************

Reduce the quantity of popups

  • Load Mozilla Firefox
  • Applications -> Internet -> Firefox Web Browser
  • Put in your address bar
Address Bar -> about:config
  • Filter the config options and change it to a reasonable number
Filter: -> dom.popup_maximum -> 5

**********************************

Speed improvements using tmpfs

  • Load Mozilla Firefox
  • Applications -> Internet -> Firefox Web Browser
  • Put in your address bar
Address Bar -> about:config
  • Right click anywhere in the browser window and select
New -> String
  • Type in:
browser.cache.disk.parent_directory
  • press OK, and type in the new window:
/tmp
  • press OK

Fedora 11 : Install Google Desktop

Google Desktop

Google Desktop is a desktop search application that gives you easy access to information on your computer and from the web. Desktop makes searching your own email, files, music, photos, and more as easy as searching the web with Google.

You will need to have the Google Repo installed.

su -c 'yum --enablerepo=google install google-desktop-linux'

Fedora 11 : Install Picasa

su -c 'yum install picasa'