Skip to content

Linux Admin : how to install package in mandriva ?

August 19, 2007

SOFTWARE
========

Packet :
– rpm (Redhat, Suse, Mndriva)
– deb (debian, ubuntu)

Sumber : tar.gz, tar.bz2, zip, rar, dan sebagainya.

Instalasi dengan paket :

1. install
syntax :
rpm -i nama_paket.rpm
rpm -ivh nama_paket.rpm
rpm -ivh postfix-2.4.rpm

2. Remove
rpm -e nama_paket
rpm -e postfix

3. Push Install
rpm -i nama_paket.rpm –nodeps

4. Cek paket yang telah terinstall
rpm -qa | grep nama_paket

5. cek/verify paket yang ingin atau sudah terinstall
urpmi nama_paket
urpmi apache

6. Upgrade paket
urpm -Uvh nama_paket

7. Informasi paket
rpm -qi nama_paket
rpm -qi xalan-c-1.10-0.1_10_0.2mdv2007.0

[root@lp3tnf13 ~]# rpm -qi postfix-2.3.6-1mdv2007.0
Name        : postfix                      Relocations: (not relocatable)
Version     : 2.3.6                             Vendor: Mandriva
Release     : 1mdv2007.0                    Build Date: Sun 28 Jan 2007 07:51:22 PM WIT
Install Date: Sat 18 Aug 2007 10:01:13 AM WIT      Build Host: n1.mandriva.com
Group       : System/Servers                Source RPM: postfix-2.3.6-1mdv2007.0.src.rpm
Size        : 4916340                          License: IBM Public License
Signature   : DSA/SHA1, Sun 28 Jan 2007 08:42:40 PM WIT, Key ID dd684d7a26752624
Packager    : Luca Berra <bluca@mandriva.org>
URL         : http://www.postfix.org/
Summary     : Postfix Mail Transport Agent
Description :
Postfix is a Mail Transport Agent (MTA), supporting LDAP, SMTP AUTH (SASL),
TLS and running in a chroot environment.

Postfix is Wietse Venema’s mailer that started life as an alternative
to the widely-used Sendmail program.
Postfix attempts to be fast, easy to administer, and secure, while at
the same time being sendmail compatible enough to not upset existing
users. Thus, the outside has a sendmail-ish flavor, but the inside is
completely different.
This software was formerly known as VMailer. It was released by the end
of 1998 as the IBM Secure Mailer. From then on it has lived on as Postfix.

PLEASE READ THE /usr/share/doc/postfix-2.3.6/README.MDK FILE.

This rpm supports different build time options, to enable or disable these
features you must rebuild the source rpm using the –with … or –without …
rpm option.
Currently postfix has been built with:

Smtpd multiline greeting: –without multiline
Virtual Delivery Agent: –without VDA
Munge bare CR: –without barecr
TLS support: –with tls %{with_TXT_tls}
IPV6 support: –with IPV6 %{with_TXT_ipv6}
CDB support: –without cdb
Chroot by default: –with chroot

8. Buat link
ln -s source_installed destination_file
ln -s /opt/pingus/games/pingus /usr/bin/pingus
[root@lp3tnf13 ~]# pingus
setelah itu game pingus akan berjalan

=======================================================
notes :

untuk file dengan ext. rpm.run
sh nama_paket.rpm.run
atau
chmod +x nama_paket.rpm.run
./nama_paket.rpm.run

untuk beberapa distro diperlukan command sbb:
tar -xzvf atau -xjvf(bz2) nama paket
rpm -i nama paket
cd nama paket
./configure
make
make install
==========================================================

LINUX POSIX ACL
================

install acl
[root@lp3tnf13 ~]# rpm -ivh acl-2.2.39-1mdv2007.0.i586.rpm
Preparing…                ########################################### [100%]
1:acl                    ########################################### [100%]

edit fstab
[root@lp3tnf13 ~]# vi /etc/fstab
/dev/hda10 / ext3 defaults 1 1 #tambahkan menjadi /dev/hda10 / ext3 defaults,acl 1 1
/dev/hda11 /home ext3 defaults 1 2
/dev/sda1 /home/fadhil/flashdisk vfat defaults 0 0
/dev/hdc /mnt/cdrom auto umask=0022,users,iocharset=utf8,noauto,ro,exec 0 0
none /mnt/floppy supermount dev=/dev/fd0,fs=ext2:vfat,–,umask=0022,iocharset=utf8,sync 0 0
/dev/hda1 /mnt/win_c vfat umask=0022,iocharset=utf8 0 0
/dev/hda5 /mnt/win_d vfat umask=0022,iocharset=utf8 0 0
/dev/hda3 /mnt/win_e vfat umask=0022,iocharset=utf8 0 0
none /proc proc defaults 0 0
/dev/hda9 swap swap defaults 0 0

remount root
[root@lp3tnf13 ~]# mount -o remount /

contoh kasus :

[root@lp3tnf13 ~]# touch siang       #buat file kosong bernama siang
[root@lp3tnf13 ~]# getfacl siang     #informasi file siang
# file: siang
# owner: root
# group: root
user::rw-
group::r–
other::r–

[root@lp3tnf13 ~]# setfacl -m u:siswa13:rwx siang #set acl untuk file siang
-m = modify
u = user (siswa13, Fadhil
g = group
o = other
rwx = read,write,execute
siang = file name or folder, jika foder keseluruhan bisa ditambahkan command
[root@lp3tnf13 ~]# setfacl -R -m  u:fadhil:rwx /opt/
modify acl rwx untuk user fadhil untuk folder opt keseluruhan

contoh :

buat 2 group, 4 user, masing2 group terdiri dari user.

groupadd group1
groupadd group2
adduser diva -ggroup1
adduser sinta -ggroup1
adduser dewi -ggroup2
adduser inem -ggroup2

buat file kosong di user diva
[diva@lp3tnf13 ~]$ touch /tmp/kosong  #buat file “kosong”
[diva@lp3tnf13 ~]$ chmod o-rwx,g-rwx /tmp/kosong  # set permission untuk group&user —
[diva@lp3tnf13 ~]$ getfacl /tmp/kosong # cek info acl
getfacl: Removing leading ‘/’ from absolute path names
# file: tmp/kosong
# owner: diva
# group: admin
user::rw-
group::—
other::—
[diva@lp3tnf13 ~]$ setfacl -m u:inem:rwx /tmp/kosong #modify permission rwx file “kosong” untuk user putri

======================================================================================

KOMPILASI KERNELL

caranya :

1. Download kernell terbaru di kernell.org mis.linux-2.6.21.6.tar.bz2
2. tar -xjvf linux-2.6xxxx.tar.bz2 /usr/src/linux-2.6.21.6
3. pindah ke folder & copy konfigurasi kernell
[root@lp3tnf13 ~]# cd /usr/src/linux-2.6.21.6
[root@lp3tnf13 linux-2.6.21.6]# cp /boot/config-2.6.17-5mdv .config
4. modify konfigurasi cpu (mirip bios) dgn menggunakan command
(lebih baik menggunakan tampilan text dgn menekan alt+F1)
[root@lp3tnf13 linux-2.6.21.6]# make menuconfig
5. compile kernell
[root@lp3tnf13 linux-2.6.21.6]# make
6. menyalinkan modul komplasi di /lib/modules
[root@lp3tnf13 linux-2.6.21.6]# make modules_install
7. Install kernell
[root@lp3tnf13 linux-2.6.21.6]# make install

8. reboot cpu
9. pada pilihan menu GRUB, pilih kernel 2.6.21.6
10. cek kernel yang digunakan dengan command
[root@lp3tnf13 linux-2.6.21.6]# uname -r
2.6.21.6

notes:
Kernel ada di file vmlinuz di folder /boot
cek prosesor di cat /proc/cpuinfo
ganti menu di grub di
vi /boot/grub/menu.lst

From → Linux

2 Comments
  1. han-han permalink

    saya masih newbie tentang linux, saya sedang coba untuk buat web server untuk mandriva. saya mengikuti langkah2 di atas namun ada masalah ketika ketik instruksi pertama diconsole, pc minta instalan cd padahal saya gak punya cdnya, saya langsung terhunbung ke internet. lalu apa solusinya utnuk saya.?
    terima kasih

  2. Thanks, kayaknya berguna

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s

%d bloggers like this: