- run mount command to mount repo file :
ex: mount -t iso9660 -o loop /dev/hdc /u02
- go to yum repo directory
cd /etc/yum.repos.d
- make file local.repo in this directory
insert below script in local.repo
[localrepo]
name=My local repo
baseurl=file:///u02/Server
enabled=1
gpgcheck=0
#gpgkey=file:///path/to/you/RPM-GPG-KEY
- run df -h to check the repo file already mounted
Filesystem Size Used Avail Use% Mounted on
/dev/sda1 3.8G 1.8G 1.9G 50% /
tmpfs 494M 0 494M 0% /dev/shm
/dev/hdc 2.9G 2.9G 0 100% /u02
Sunday, July 3, 2011
Saturday, January 1, 2011
Extend swap space on linux
Actually, yes. You can supplement your swap partition with a swap file. It goes something like this:
First, create a large empty file:
Code:
sudo dd if=/dev/zero of=/swap_file bs=1M count=1000
Replace 1000 with the size of the swap file desired, in MB. You can also put the swap_file in a different location if desired.
Next, we'll secure the swapspace, so ordinary users cannot read the contents (potential security breach):
Code:
sudo chown root:root /swap_file
sudo chmod 600 /swap_file
Then, turn it into swap space:
Code:
sudo mkswap /swap_file
Next, turn it on:
Code:
sudo swapon /swap_file
To make it turn on at every bootup, open up /etc/fstab:
Code:
sudo gedit /etc/fstab
Add this line to the end of the file:
Code:
/swap_file none swap sw 0 0
__________________
First, create a large empty file:
Code:
sudo dd if=/dev/zero of=/swap_file bs=1M count=1000
Replace 1000 with the size of the swap file desired, in MB. You can also put the swap_file in a different location if desired.
Next, we'll secure the swapspace, so ordinary users cannot read the contents (potential security breach):
Code:
sudo chown root:root /swap_file
sudo chmod 600 /swap_file
Then, turn it into swap space:
Code:
sudo mkswap /swap_file
Next, turn it on:
Code:
sudo swapon /swap_file
To make it turn on at every bootup, open up /etc/fstab:
Code:
sudo gedit /etc/fstab
Add this line to the end of the file:
Code:
/swap_file none swap sw 0 0
__________________
Wednesday, December 8, 2010
Install Oracle di ubuntu 9.10 (Karmic)
Install oracle di ubuntu 9.10, silahkan download masternya di http://oss.oracle.com/debian/dists/unstable/non-free/binary-i386/oracle-xe_10.2.0.1-1.1_i386.deb
kemudian paket yang diperlukan:
- libaio_0.3.104-1_i386 –> http://oss.oracle.com/debian/dists/unstable/main/binary-i386/libaio_0.3.104-1_i386.deb
- libaio1_0.3.104 –> http://rpm.rutgers.edu/repository/ubuntu/pool/main/liba/libaio/libaio1_0.3.104-1ubuntu6_i386.deb
install kedua libaio setelah itu install oracle-xe
dpkg -i libaio_0.3.104-1_i386.deb
dpkg -i libaio1_0.3.104-1ubuntu6_i386.deb
dpkg -i oracle-xe_10.2.0.1-1.1_i386.deb
kemudian jalankan
/etc/init.d/oracle-xe configure
masih dalam konsole
export PATH=$PATH:/usr/lib/oracle/xe/app/oracle/product/10.2.0/server/bin
export ORACLE_HOME=”/usr/lib/oracle/xe/app/oracle/product/10.2.0/server”
export ORACLE_SID=XE
kalo tahap ini sudah selesai, silahkan test oraclenya
sqlplus sys as sysdba
kalo sudah masuk berarti sudah sukses
Thursday, December 2, 2010
How To Read ISO File in Linux
1. Login with root user ID
2. Create a directory to serve as mount point. You may also skip the directory creation by using default directory that created during Linux installation (e.g. /media/cdrom or /mnt/cdrom in some Red Hat Linux editions).
3. Suppose you want to mount /ISO/rhel4-cd1.iso image file to /media/cdrom directory mount point, execute this mount command
4. Now, you can read / access the CD image file that is mounted to /media/cdrom directory, as if you’re accessing the physical CD-ROM loaded into hardware drive.
5. To un-mount the loaded CD image file, simply execute
2. Create a directory to serve as mount point. You may also skip the directory creation by using default directory that created during Linux installation (e.g. /media/cdrom or /mnt/cdrom in some Red Hat Linux editions).
3. Suppose you want to mount /ISO/rhel4-cd1.iso image file to /media/cdrom directory mount point, execute this mount command
mount -o loop -t iso9660 /ISO/rhel4-cd1.iso /media/cdrom
4. Now, you can read / access the CD image file that is mounted to /media/cdrom directory, as if you’re accessing the physical CD-ROM loaded into hardware drive.
5. To un-mount the loaded CD image file, simply execute
umount /media/cdrom or eject /media/cdrom command will do.
Subscribe to:
Posts (Atom)