RSS
Tampilkan postingan dengan label problem linux. Tampilkan semua postingan
Tampilkan postingan dengan label problem linux. Tampilkan semua postingan

A Lot of file in /var/spool/clientmqueue

    Pernah saya mendapati problem bahwa didalam /var/spool/clientmqueue terdapat banyak sekali file. Kemudia saya cek didalam /var/log/maillog, ternyata file tersebut membengkak. setelah cek didalam /var/log/maillog isinya hanya berupa "stat=Deferred: Connection refused by [127.0.0.1]".
    Setelah saya coba cek service pada sendmail ternyata service sendmail server tidak menyala. setelah saya aktifkan sendmail daemon servernya log pada /var/log/maillog menggenerate lagi akan tetapi message dia berubah menjadi connection successfull dan dapat mengirimkan mail ke user di dalam system.
    Untuk mengatasi agar maillog tidak membengkak. Kita perlu clear queue log tersebut. untuk mengecek berapa banyak queue log-nya dengan cara mailq. maka anda akan diberi summary berupa statistic mail yang akan anda terima dari system. Kemudia cara gampang untuk menghapus queue mail. cukup dengan masuk ke /var/spool/mqueue kemudian rm file yang ada didalamnya. Jika sudah coba anda masuk ke dalam /var/spool/clientmqueue maka hanya akan ada 1 file saja, yaitu pid file dari sendmail client.

Repository yum Problem pada OVM

Mungkin temen-temen juga lagi pusing kenapa baru install kok mendapatkan masalah seperti itu. "Repository 'ovm_repo' is missing name in configuration, using id
Error: Cannot retrieve repository metadata (repomd.xml) for repository: ovm_repo 

Please verify its path and try again"

Jangan panik, caranya mudah. itu artinya ada yang tidak betul dengan configurasi di system OVM yang baru. Kita bisa lihat di dalam /etc/yum.repos.d/


[root@VmServer ~]# cat /etc/yum.repos.d/ovm.repo
[ovm_repo]
gpgcheck = 0
baseurl =
enabled = 1


Kita bisa lihat bahwa baseurl -nya kosong. Kita perlu cari tahu dimana tempat dapeting link yum repository buat OVM. Linknya ada di sini http://public-yum.oracle.com. Silahkan follow procedure nya.


The Network Device Name unproperly set

Pernah saya mengalami disaat mencoba menginstall 4 Networks card didalam satu PC. Dalam PC tersebut yang ter set dengan benar hanya ada 3, yang satunya menjadi tmp_xxxx. Setelah mencoba di check dengan menggunakan lspci. PC saya ternyata support dan tidak ada masalah dengan hardwarenya.

__tmp1787630733 Link encap:Ethernet  HWaddr 00:1B:11:74:77:9A
          BROADCAST MULTICAST  MTU:1500  Metric:1
          RX packets:1323 errors:0 dropped:0 overruns:0 frame:0
          TX packets:1531 errors:0 dropped:0 overruns:0 carrier:0
          collisions:0 txqueuelen:1000
          RX bytes:117962 (115.1 KiB)  TX bytes:197916 (193.2 KiB)

eth0      Link encap:Ethernet  HWaddr 70:54:D2:7B:FD:87
          UP BROADCAST RUNNING SLAVE MULTICAST  MTU:1500  Metric:1
          RX packets:1323 errors:0 dropped:0 overruns:0 frame:0
          TX packets:1531 errors:0 dropped:0 overruns:0 carrier:0
          collisions:0 txqueuelen:1000
          RX bytes:117962 (115.1 KiB)  TX bytes:197916 (193.2 KiB)
          Interrupt:20 Memory:f7f00000-f7f20000

eth1      Link encap:Ethernet  HWaddr AC:F1:DF:86:7D:DB
          UP BROADCAST RUNNING MULTICAST  MTU:1500  Metric:1
          RX packets:3592 errors:0 dropped:0 overruns:0 frame:0
          TX packets:11 errors:0 dropped:0 overruns:0 carrier:0
          collisions:0 txqueuelen:1000
          RX bytes:670012 ( 654.3 KiB)  TX bytes:474 (474.0 b)
          Interrupt:19 Base address:0x6000

Hal tersebut terjadi dikarenakan terjadi duplikasi module interface, Lihat data ini
[root@VmServer ~]# lspci | grep Ethernet
00:19.0 Ethernet controller: Intel Corporation 82579V Gigabit Network Connection (rev 04)
04:00.0 Ethernet controller: D-Link System Inc DGE-528T Gigabit Ethernet Adapter (rev 10)
04:01.0 Ethernet controller: D-Link System Inc RTL8139 Ethernet (rev 10)
04:02.0 Ethernet controller: Intel Corporation 82557/8/9/0/1 Ethernet Pro 100 (rev 08)

Yang saya tebali itu menunjukan adanya duplikasi module driver yang sama pada brandp D-Link. Untuk mengatasi hal tersebut dapat digunakan dengan alias didalam modprobe.conf
[root@VmServer ~]# cat /etc/modprobe.conf
alias scsi_hostadapter sg
alias scsi_hostadapter1 shpchp
alias eth0 e1000e
alias eth1 r8169
alias eth2 r8169
Saya tambahkan alias eth2 dengan nama module yang sama yaitu r8169 untuk versi module D-Link tersebut. Setelah itu coba reboot dan coba type ifconfig -a

Install Yakuake Redhat Linux 6

Paket yang perlu disiapkan: kdebase-workspace-wallpapers-4.3.4-24.el6.noarch.rpm kio_sysinfo-20090930-1.el6.x86_64.rpm exiv2-libs-0.18.2-2.1.el6.x86_64.rpm libXaw-1.0.11-2.el6.x86_64.rpm rasqal-0.9.15-6.1.el6.x86_64.rpm ksysguardd-4.3.4-24.el6.x86_64.rpm xorg-x11-apps-7.6-6.el6.x86_64.rpm oxygen-cursor-themes-4.3.4-24.el6.noarch.rpm kdebase-workspace-4.3.4-24.el6.x86_64.rpm qimageblitz-0.0.4-1.el6.x86_64.rpm redland-1.0.7-11.el6.x86_64.rpm kdebase-workspace-libs-4.3.4-24.el6.x86_64.rpm strigi-libs-0.7.0-2.el6.x86_64.rpm kdelibs-experimental-4.3.4-3.el6.x86_64.rpm raptor-1.4.18-5.el6_2.1.x86_64.rpm kdepimlibs-4.3.4-4.el6.x86_64.rpm clucene-core-0.9.21b-1.el6.x86_64.rpm soprano-2.3.1-1.2.el6.x86_64.rpm hal-storage-addon-0.5.14-11.el6.x86_64.rpm htdig-3.2.0-0.10.b6.el6.x86_64.rpm kdebase-runtime-libs-4.3.4-9.el6.x86_64.rpm kdelibs-common-4.3.4-19.el6.x86_64.rpm kdebase-runtime-4.3.4-9.el6.x86_64.rpm oxygen-icon-theme-4.3.4-2.el6.noarch.rpm kde-filesystem-4-30.1.el6.noarch.rpm kde-settings-4.3.1-1.el6.centos.noarch.rpm kdelibs-4.3.4-19.el6.x86_64.rpm kdebase-libs-4.3.4-6.el6.x86_64.rpm kdebase-4.3.4-6.el6.x86_64.rpm yakuake-2.9.8-1.el6.x86_64.rpm seteleh itu
rpm -ivh kdebase-workspace-wallpapers-4.3.4-24.el6.noarch.rpm kio_sysinfo-20090930-1.el6.x86_64.rpm exiv2-libs-0.18.2-2.1.el6.x86_64.rpm libXaw-1.0.11-2.el6.x86_64.rpm rasqal-0.9.15-6.1.el6.x86_64.rpm ksysguardd-4.3.4-24.el6.x86_64.rpm xorg-x11-apps-7.6-6.el6.x86_64.rpm oxygen-cursor-themes-4.3.4-24.el6.noarch.rpm kdebase-workspace-4.3.4-24.el6.x86_64.rpm qimageblitz-0.0.4-1.el6.x86_64.rpm redland-1.0.7-11.el6.x86_64.rpm kdebase-workspace-libs-4.3.4-24.el6.x86_64.rpm strigi-libs-0.7.0-2.el6.x86_64.rpm kdelibs-experimental-4.3.4-3.el6.x86_64.rpm raptor-1.4.18-5.el6_2.1.x86_64.rpm kdepimlibs-4.3.4-4.el6.x86_64.rpm clucene-core-0.9.21b-1.el6.x86_64.rpm soprano-2.3.1-1.2.el6.x86_64.rpm hal-storage-addon-0.5.14-11.el6.x86_64.rpm htdig-3.2.0-0.10.b6.el6.x86_64.rpm kdebase-runtime-libs-4.3.4-9.el6.x86_64.rpm kdelibs-common-4.3.4-19.el6.x86_64.rpm kdebase-runtime-4.3.4-9.el6.x86_64.rpm oxygen-icon-theme-4.3.4-2.el6.noarch.rpm kde-filesystem-4-30.1.el6.noarch.rpm kde-settings-4.3.1-1.el6.centos.noarch.rpm kdelibs-4.3.4-19.el6.x86_64.rpm kdebase-libs-4.3.4-6.el6.x86_64.rpm kdebase-4.3.4-6.el6.x86_64.rpm yakuake-2.9.8-1.el6.x86_64.rpm
dun!!!

Libmysqlclient is needed in Fedora

If we got message error: Failed dependencies: libmysqlclient.so.16 is needed. so it's mean we need install libmysqlclient in our system. But the problem is when we try to find in package rpm of fedora. we can not find the package with the name libmysqlclient. so the solution is, to install mysql-libs. so after we install the mysql-libs, so we can continue with our activity.

Handy Command

untuk melakukan kalkulasi ukuran file secara automatis sekali eksekusi command
ls -lrt * | grep "Feb" | awk '{total += $5} END {print total}'
atau
i=0;for total in `ls -lrt * | grep "Feb"| awk '{print $5}'`;do i=`expr $i + $total`;done;echo $i
untuk melakukan gzip beberapa file sekaligus, dengan menggunakan
ls -lrt *.log | grep "Feb" |awk '{print $9}' | xargs pigz -d -p 2
untuk melakukan copy file menggunakan xargs
ls -lrt * | grep "Feb" |awk '{print $9}' | xargs -I '{}' cp '{}' /home/tak/
convert format timestamp to date
tail -f /var/log/nagios/nagios.log | perl -pe 's/(\d+)/localtime($1)/e'
Compress file dengan menggunakan grep
ls -lrt *| grep "Feb 4" | awk '{print $9}' | xargs tar -cvf tes.tar
execute command didalam awk
echo "[11111111111] takul" | awk '{$1 = substr($1,2,10)} END {print "date -d @"$1} | sh

Masalah service HTTP

Jika masalahnya service anda tidak dapat melakuka start saat kita akan menjalankan command ini
service httpd start atau /etc/init.d/httpd
dan saat kita mencari di log ternyata error-nya tidak tertulis di log. maka kemungkinan besar terjadi salah konfigurasi. cara untuk mengatasi hal tersebut dengan menggunakan
service httpd configtest
jika benar adanya maka akan tertulis dah apa yang sudah kita lakukan saat mengutak-atik http.

Kemudian misalkan saat setelah kita restart tapi ada message aneh seperti ini  Apache giving the error :Could not determine the server's fully qualified domain name. sebenarnya dengan error seperti itu service httpd kita sudah berjalan tapi jika ingin sapu bersih message-message aneh itu. kita lihat dulu nama domain kita di hosts
cat /etc/hosts
#misalkan
PC-dewe   127.0.0.1
PC-kantor 192.168.1.14
ktia bisa melakukan pengeditan di /etc/httpd/conf/httpd.conf cari dah yang ada tulisanya ServerName
vi /etc/httpd/conf/httpd.conf
ServerName PC-dewe
service httpd restart

Tips n Trick data compression in Linux

This post, i will share about data compression in Linux. The first question, why we need to compress data?. My first answer is to backup data and can rezise the data to be small. so we can management our space hardisk. In Linux there are a lot of way to compress the data. we can use tar, zip or gzip. TAR:
1. tar -xzvf backup_20121217.tar.gz -C /home/rumahku/
the script want to extract the data commpression with gzip format in directori /home/rumahku
2. tar -xjvpf backup_20121217.tar.bzip2
the script want to extract the commpression data to current directory with bzip2 format and keep or preserve the owner and mode of file.
3. tar --exclude=tobackup/LOGS -czvpf tobackup_20121217.tar.gz tobackup/*
the script want to create data comppresion with preserve owner and exclude the LOGS directory with the name tobackup_20121217.tar.gz
4.tar -czvf tobackup_20121217.tar.gz ini.sh kamu.sh bajak.dmp
the script want to make compress data only particular files.
5. tar -tzvf tobackup_20121217.tar.gz
the script only list the file of comppresion data tobackup with the format gzip
6. tar -rzvf tobackup_20121217.tar.gz aku.php kamu.php
the script to add the file in tar.gz
6. tar -zvf tobackup_20121217.tar.gz --delete aku.php kamu.php
the script to delete aku.php n kamu.php the file in tar.gz i think only these scripts we usually use and must to know. ZIP/UNZIP:
1. zip tobackup ini.sh itu.sh
This script to make tobackup.zip withh contain ini.sh and itu.sh files
2. zip tobackup PROXY/* -x LOGS
This script to make tobackup.zip withh contain all of proxy files exclude the LOGS directory
3. zip -r tobackup /home/rumahku/logs
This script to make tobackup.zip from the directory logs
4. zip -P s3cr3t tobackup rumahku/*
This script to make passwork s3cr3t in the tobackup.zip
5. unzip -l tobackup.zip
This script just list the files inside tobackup.zip
6. unzip tobackup.zip
This script to normally unzip pigz pigz only can compress single file. if want compress folder, make it to be tar first and then gz with pigz
1. pigz -p 8 tobackup.log
this script using multi thread processor to gzip file. so it can run fast to compress it.
1. pigz -d -p 8 tobackup.log.gz
to extract the file with multi thread processing.

Tips rpm to install using the package in Redhat familly

This post, i will show the tips and trick for install package rpm in Fedora (redhat familly). For example we will install tcpdump. first we need a package tcpdump it self. my favorite package repository is in here . after we get the package that we need. we just try to install it with this command.
rpm -ivh tcpdump-4.1.1-2.fc15.i686.rpm
As usuall we will get the error message about depedency. so we must get the depedency that needed. after we get the depedency libpcap-1.1.1-3.fc15.i686.rpm. we can execute the command with
rpm -ivh tcpdump-4.1.1-2.fc15.i686.rpm libpcap-1.1.1-3.fc15.i686.rpm 
so why we need to collect the package together to be one command execution because to avoid the looping depedency. but actualy we can list depedency it first before we install. with this command
rpm -qpR {.rpm-file}
rpm -qR {package-name}
and to check the package already install or not we can use
rpm -qi package-name
the other tips is to update package. for example we want make sure or package is ok and don't have problem so just type
rpm -Uvh --test * 
after we sure about our package so we just execute
rpm -Uvh * 
but if we want to delete a package that we build from package rpm. for example rsync. we can use
#rpm -qa | grep rsync
rsync-3.0.8-1.fc15.i686
after that we can unistall the package with this command
#rpm -e rsync-3.0.8-1.fc15.i686

Nagios "Internal Server Error"

This post talk about problem when configure the nagios. There is something new for me when try configure it in Fedora or Redhat Familly. wich is called SELINUX, if we just configure the nagios with just ordinary install in Redhat familly, i think we will get one of the errors. i ever get the error "Internal Server Error". And in httpd log only say permission denied. so it means only the permission issue. After try to google it, and then we must take care about the SELINUX. we can set the SELINUX to be permanent in the /etc/selinux/config. but i more prefer to make it default to be enforcing. we can specify which part is to be set by using command chcon. in this part i just execute the command and then my nagios is done without that error.
chcon -R -t httpd_sys_content_t /usr/local/nagios/bin
chcon -R -t httpd_sys_content_t /usr/local/nagios/share

KUniqueApplication complains ‘ Cannot find the D-Bus session server'

Saya menggunakan slakcware 13 saat mendapatkan error seperti ini. tapi akhirnya bisa juga dan muncul amaroknya. dengan hanya mengetikan perintah ini didalam konsole,
root#~ eval `dbus-launch --sh-syntax`
root#~ amarok
dan munculah amaroknya 
  

Mouse Laptop (synaptcs) ga bisa click Slackware 13

Ini kisahku dengan temanku slackware 13. hehehe semoga aja terus langgeng ma ini mesin. Sewaktu pertana kali install dengan slackware 13 ini, saya menemukan beberapa permasalahan. permasalahan yang saya temukan sebelumnya sudah saya posting di artikel yang lain. yaitu ga bisa booting secara otomatis dan ga bisa masuk ke X server. Kemudian saat akan menggunakan touchpad sinaptyc bisa digerakan akan tetapi ga bisa buat nge-click. waduh jadi ga nikmatkan ada sesuatu yang biasa disekitar kita namu tidak dapat kita fungsikan. Mari kita cari tahu kesalahan dan bagaimana cara memperbaikinya. Sebenarnya pada /etc/X11/xorg.conf merupakan default konfigurasi yang dimiliki oleh slackware jadi sebenarnya juga touchpad synaptic juga sudah di config didalam xorg.conf. Hanya saja drivernya dan script untuk mejalankanya yang belum kita pasang dengan benar. langsung saja kita copy file yang ada di /usr/share/hal/fdi/policy/10osvendor/11-x11-synaptics.fdi ke /etc/hal/fdi/policy/ jka sudah kita copy maka langkah selanjutnya menghidupkan script nya sehingga tampilanya seperti berikut ini

semoga bermanfaat,,,

Problem StartUP With Slackware13

Setelah punya laptop baru yang sudah dapat langsung windows 7, mikir-mikir buat migrasi ke linux. Mau linux apa ya? Coba cek di hardisk external, Eh ada slackware 13 coba hajar buat diinstal aja dah. Setelah kita lakukan penginstalan sampai selesai. Nah akhirnya selesai juga nih slackware urang. Sekarang waktunya buat kita reboot. Wah sudah masuk di LILO Boot, langsung dipilih slackware. Setelah slackware mau running kok ga bisa langsung masuk di KDE nya?? wah mari kita cek dengan mengetikan
kdm --> Loh kok ga bisa, kok hitam doang. Waha ada yang ga beres ini. Coba kita tekan ctrl+F1 --> wah akhirnya bisa balik ke layar sebelumnya. mungkin dengan mengetikan ini kali ya
startx -->loh kok malah ada error nya coba baca error nya. Mungkin ini xorg nya. Coba dicek
/etc/X11/xorg.conf ---> loh kok ga ada?? adanya kok /etc/X11/xorg.conf-vesa
Wah bener, sekarang kita edit yuk.
nano /etc/X11/xorg.conf-vesa --> kemudian ganti namanya dengan /etc/X11/xorg.conf
sekarang dicobain ah
startx --> wah bisa,,,, sekarang cobain ganti run levelnya ah bisar bisa otomatis saat booting
nano /etc/inittab -->cari yang ada tulisan defaul run-level kemudian ganti angkanya menjadi 4, jangan lupa disimpan ah,,
coba kita reboot wah lancar.. Hmmm Simple tips

Error the audio playback device HDA INTEL does not work

ini pengalaman saya sewaktu melakukan pengapdetan sistem world di gentoo. jadi semua sistem dan konfigurasinya tdk disadari ikut terapdet jadinya ya beberapa alat inputan tidak dapat diakses diantaranya keyboard, mouse, dan yang kelihatan lagi adalah sound. untuk ga monitornya. kalo  monitornya. tambah bingung lagi dikirain harus ngompile kernel lagi. duh cape deh..hehehehe,,, nah langsung saja kita benarkan configurasi ini biar berjalan dengan baik dan benar. sehingga kita bisa dengerin musik kesayangan kita. inilah gambar errornya.
maka kita langsung ssaja perbaiki errornya dengan menambahkan script ini ke dalam /etc/modprobe.d/alsa.conf

options snd-hda-intel model=6stack-dig probe_mask=1
taruh aja script tersebut ke bari terakhir.
jika sudah coba di restart dan semoga saja dapat membatu temen2

setelah booting tidak bisa langsung masuk ke KDE

Mumpung masih inget masalah yang kemarin sudah didapati,,,jadi beigini ceritanya,,, dulu waktu pertama kali melakukan insatall gentoo dengan paket yang minimalis. aku sebagai seorang pemula yang bergelut di dunia linux sudah senang kalo gentoo ku sudah bisa digunakan.. yah walaupun haya layar hitam doang.. hehehe =)
Setelah dari layar hitam, terpikirlah untuk melakukan penginstallan desktopnya(biar ga sok2an yang mainya layar item mulu). Dari berbagai cara penginstallan desktop(maaf utuk penginstallan desktop ada di postingan yang laen, kalo disini ntar kepanjangan lagi,,hwe..hwe..). disini saya memilih menggunkan KDE(bisa dibilang kalo KDE itu menurutku desktopnya cowok, sangar soalnya.hehehe...). akhirnya berhasil meskipun masih belum perfect diantaranya waktu start ga bisa langsung start kaya misalkan di ubuntu langsung muncul seperti menu login.
nah sekarng masalahnya, kenapa bisa seperti itu??? karean disini saya menggunakan OS gentoo saya bisa melakukan pengecekan dengan cara rc-update -s.

dengan menggunakan perintah ini maka kita akan melihat berbagai macam service yang digunakan oleh komputer kita. diantaranya yang paling penting adalah dalam masalah ini yaitu servis dbus,hald dan consolekit. jika dikomputer anda belum nyala, ya maka nyalakanlah servisnya dan jadikan servis tersebut nyala langsung sewaktu komputer di hidupkan. caranya adalah rc-update add debus default. nah jika sudah maka langsung dilakukan perestartan komputer hehehe,,,sekarnag coba lihat perbedaanya =)
Please copy and share it, if it helps you
 
Copyright 2009 My Note All rights reserved.
Free Blogger Templates by DeluxeTemplates.net
Wordpress Theme by EZwpthemes
Blogger Templates