Posts Tagged ‘debian’

: error while loading shared libraries: -0.8.so.7: cannot open shared object file: No such file or directory

şeklinde bir hata alıyorsanız muhtemelen kullanıyorsunuzdur :D .

Çözüm için öncelikli olarak sisteminizde libgoffice kurulu olduğundan emin olun.

benim sistemimde bu şekilde görüyorum.

# ls -al /usr/lib/libgoffice-0.8.so.*
lrwxrwxrwx 1 root root      23 2010-02-26 09:59 /usr/lib/libgoffice-0.8.so.8 -> libgoffice-0.8.so.8.0.0
-rw-r--r-- 1 root root 1124636 2010-02-15 14:59 /usr/lib/libgoffice-0.8.so.8.0.0

Çözüm için root yetkileriyle

# ln -s /usr/lib/libgoffice-0.8.so.8 /usr/lib/libgoffice-0.8.so.7

komutu ile mevcut olan libgoffice dosyasına link oluşturun daha sonra abiword çalışacaktır

Not aynı hata mesajını ile de alıyorsanız bu yöntem işinizi görecektir

Bookmark and Share
Tags: , , , ,

Tags: , , , ,

9
Mar

debian utc ayarı

   Posted by: Muhammed YÜRÜRDURMAZ    in Linux

makinanızda hem hem windows kullanıyorsanız, kurmuş olduğunuz siteminde windows ile uymuyorsa muhtemelen ayarını düzenlemeniz gerekmektedir.

vim 

komutu ile dosyayı açın ve

UTC=yes

satırını bulup

UTC=no

yapın. sistemi yeniden başlattığınızda ve saati tekrar ayarladığınızda artık saat uyuşmazlığınız çözülmüş olacaktır.

Bookmark and Share
Tags: , , ,

Tags: , , ,

27
Feb

SqlTools Linux üzerine kurma

   Posted by: İsmail ÇAKIR    in Linux, oracle

Öncelikle indiriyoruz.

sistemimizde kuruluysa direkt olarak tıklayıp kurabiliriz.
wine yoksa
sudo apt-get install wine
ile kuruyoruz.
a ihtiyaç duyucaz, instantclient-basic-win32-11.1.0.7.0.zip. basic versiyonu indiriyoruz. Tabi benim veritabanım türkçe encoding de eğer ingilizce ise veritabanınız daha ufak olan basic-lite paketini indirebilirsiniz.
ev dizinimizdeki
.wine/drive_c/Program Files/SQLTools 1.42/ dizinine gidip instantclient-basic-win32-11.1.0.7.0.zip dosyasını buraya açıyoruz.
instantclient_11_1 dizinine açıcaktır. içindekileri üst dizine taşıyın.

daha sonra wine Sqltools.exe komutuyla ya da ana menudeki wine grubundan SQLtools u çalıştırabilirsiniz.

Bookmark and Share
Tags: , , , , ,

Tags: , , , , ,

25
Feb

Linux sistemlerinde benchmark (SysBench)

   Posted by: İsmail ÇAKIR    in Bilgi Ve Deneyim, Linux

uyguladığım programları içinde sunucu konfigurasyonu test için en hoşuma giden paket SysBench oldu.

Peki SysBench ile neleri test edebiliriz?

dosya I/O performansını
hafıza ayırma ve transfer hızını
POSIX threadleri performansını
mysql database server performansını

Benchmarkımızu kullanmak için

veya kullanıyorsak

sudo apt-get install sysbench dememiz yeterli, kaynaktan kurmak istersek;

SourceForge SysBench yansısından
kaynak kodlarımız inidiyoruz.

tar -zxvf sysbench-0.4.12.tar.gz

komutu ile açıyoruz.

cd sysbench-0.4.12
./configure
make
make install

komutları ile sisteme kuruyoruz.

örnek komutlar:

için;
$ sysbench --num-=16 --test=fileio --file-total-size=3G --file-test-mode=rndrw prepare
$ sysbench --num-threads=16 --test=fileio --file-total-size=3G --file-test-mode=rndrw run
$ sysbench --num-threads=16 --test=fileio --file-total-size=3G --file-test-mode=rndrw cleanup

ilk komut 3 gb lık dosya hazırlıyor test için, ikinci testleri gerçekleştiriyor, üçüncü de geçici dosyaları siliyor.

hafıza için;
$ sysbench --num-threads=16 --test= ---block-size=4K ---total-size=4G
(memtest paketi daha iyi bu iş için)

threadler için;
sysbench --num-threads=64 --test=threads --thread-yields=100 --thread-locks=2 run

için;
sysbench --test=cpu --cpu-max-prime=20000 run
asal sayı hesabı ile test ediyor.

mysql için;
$ sysbench --test= --mysql-table-type=myisam ---table-size=1000000 --mysql-socket=/tmp/mysql.sock prepare
$ sysbench --num-threads=16 --max-requests=100000 --test=oltp --oltp-table-size=1000000 --mysql-socket=/tmp/mysql.sock --oltp-read-only run

testi anlamak için aynı makinada farklı kernellerle test edebilirsiniz.

örnek çıktı;
ripper@ubuntu:~$ sysbench --test=cpu --cpu-max-prime=20000 run
sysbench 0.4.10: multi-threaded system evaluation benchmark

Running the test with following options:
Number of threads: 1

Doing CPU performance benchmark

Threads started!
Done.

Maximum prime number checked in CPU test: 20000

Test execution summary:
total time: 36.1809s
total number of events: 10000
total time taken by event execution: 36.1756
per-request statistics:
min: 3.60ms
avg: 3.62ms
max: 5.70ms
approx. 95 percentile: 3.62ms

Threads fairness:
events (avg/stddev): 10000.0000/0.00
execution time (avg/stddev): 36.1756/0.00

karşılaştırmak istersek 16 threadle

ripper@ubuntu:~$ sysbench --test=cpu --cpu-max-prime=20000 --num-threads=16 run
sysbench 0.4.10: multi-threaded system evaluation benchmark

Running the test with following options:
Number of threads: 16

Doing CPU performance benchmark

Threads started!
Done.

Maximum prime number checked in CPU test: 20000

Test execution summary:
total time: 9.1494s
total number of events: 10000
total time taken by event execution: 144.8304
per-request statistics:
min: 3.60ms
avg: 14.48ms
max: 147.61ms
approx. 95 percentile: 63.75ms

Threads fairness:
events (avg/stddev): 625.0000/107.60
execution time (avg/stddev): 9.0519/0.05

Bookmark and Share
Tags: , , , , , , , , , ,

Tags: , , , , , , , , , ,

24
Feb

ati radeon debian bios güncellemesi sonrası

   Posted by: Muhammed YÜRÜRDURMAZ    in Bilgi Ve Deneyim, Linux

(WW) fglrx: No matching Device section for instance (BusID PCI:0@0:17:0) found
(WW) fglrx: No matching Device section for instance (BusID PCI:0@0:18:0) found
(WW) fglrx: No matching Device section for instance (BusID PCI:0@0:18:1) found
(WW) fglrx: No matching Device section for instance (BusID PCI:0@0:18:2) found
(WW) fglrx: No matching Device section for instance (BusID PCI:0@0:19:0) found
(WW) fglrx: No matching Device section for instance (BusID PCI:0@0:19:1) found
(WW) fglrx: No matching Device section for instance (BusID PCI:0@0:19:2) found
(WW) fglrx: No matching Device section for instance (BusID PCI:0@0:20:0) found
(WW) fglrx: No matching Device section for instance (BusID PCI:0@0:20:2) found
(WW) fglrx: No matching Device section for instance (BusID PCI:0@0:20:3) found
(WW) fglrx: No matching Device section for instance (BusID PCI:0@0:20:4) found
(WW) fglrx: No matching Device section for instance (BusID PCI:0@1:5:1) found
(WW) fglrx: No matching Device section for instance (BusID PCI:0@2:0:1) found
(**) ChipID override: 0x9612
(**) Chipset Supported AMD Graphics Processor (0x9612) found
(II) AMD Video driver is running on a device belonging to a group targeted for this release
(II) AMD Video driver is signed

bios güncellemesinden sonra yukarıdaki gibi bir hata alıyorsanız, önce sürücüsünü yeniden yükleyin sonra makinayı yeniden başlatın.

Bookmark and Share
Tags: , , , ,

Tags: , , , ,

23
Feb

debian xlock

   Posted by: Muhammed YÜRÜRDURMAZ    in Linux

versiyonda içeren paketi kaldırılmış

eğer xlock kullanmak istiyorsanız http://snapshot.debian.net/archive/2007/01/17/debian/pool/main/x/xlockmore/ veya http://http.us.debian.org/debian/pool/main/x/xlockmore/ adresinden indirip dpkg ile kurabilirsiniz.

Bookmark and Share
Tags: , , ,

Tags: , , ,

18
Feb

xfce thunar svn entegrasyonu

   Posted by: Muhammed YÜRÜRDURMAZ    in Linux, Yazılım

Windows üzerinde kullanıyorsanız üzerinde de benzer bir ssiteme ihtiyacınız varsa önce sisteminize kurun.

sonra sisteminize aşağıdaki paketleri kurun


Thunar-VFS 0.4.0 veya daha üstü bir versiyon
Thunarx 0.4.0 veya daha üstü bir versiyon
libsvn 1.5 veya daha üstü bir versiyon
libapr 0.9.7 veya daha üstü bir versiyon
gtk 2.6.0 veya daha üstü bir versiyon
glib 2.6.0 veya daha üstü bir versiyon
gobject 2.6.0 veya daha üstü bir versiyon
git (uygulama)

daha sonra

git clone git://git.xfce.org/thunar-plugins/
cd 
./autogen.sh
make install

Kurulum tamam. Aktif hale getirmek için

killall thunar Thunar

komutu ile açık thunar uygulamalarını öldürün. thunar ı yeniden açtığınızda thunar--plugin plugini aktif durumda olacaktır.

Eğer menüsü gelmediyse libsvn-dev paketini sisteminize yükleyin ve

./configure
make install
killall thunar Thunar
Bookmark and Share
Tags: , , , , , , , ,

Tags: , , , , , , , ,

5
Feb

debian komut satırından static ip verme

   Posted by: Muhammed YÜRÜRDURMAZ    in Bilgi Ve Deneyim

tanımlı ağ bağlantılarını görmek için

#  -a
eth0      Link encap:Ethernet  HWaddr 00:0c:29:90:b5:46
          inet addr:192.168.0.85  Bcast:192.168.0.255  Mask:255.255.255.0
          inet6 addr: fe80::20c:29ff:fe90:b546/64 Scope:Link
          UP BROADCAST RUNNING MULTICAST  MTU:1500  Metric:1
          RX packets:139716 errors:0 dropped:0 overruns:0 frame:0
          TX packets:17482 errors:0 dropped:0 overruns:0 carrier:0
          collisions:0 txqueuelen:1000
          RX bytes:169356342 (161.5 MiB)  TX bytes:1355703 (1.2 MiB)
          Interrupt:19 Base address:0x2000 

lo        Link encap:Local Loopback
          inet addr:127.0.0.1  Mask:255.0.0.0
          inet6 addr: ::1/128 Scope:Host
          UP LOOPBACK RUNNING  MTU:16436  Metric:1
          RX packets:8 errors:0 dropped:0 overruns:0 frame:0
          TX packets:8 errors:0 dropped:0 overruns:0 carrier:0
          collisions:0 txqueuelen:0
          RX bytes:560 (560.0 B)  TX bytes:560 (560.0 B)

dosyası içersinden eth0 a 192.168.0.17 adresini verecek örnek altta. ağ geçidi 192.168.0.1 olacak. dns sunucular 4.2.2.1, 4.2.2.2, 4.2.2.3 olacak

Not: dns ayarı için resolvconf yüklü olmalı

# This file describes the network interfaces available on your system
# and how to activate them. For more information, see interfaces(5).

# The loopback network interface
auto lo
iface lo inet loopback

# The primary network interface
allow-hotplug eth0
auto eth0
iface eth0 inet static
	address 192.168.0.17
	netmask 255.255.255.0
	network 192.168.0.0
	broadcast 192.168.0.255
	gateway 192.168.0.1
	dns-nameservers 4.2.2.1 4.2.2.2 4.2.2.3
Bookmark and Share
Tags: , , , ,

Tags: , , , ,

4
Feb

2.6.3x kernellerinde vmware 7 kurulum sorunu

   Posted by: Muhammed YÜRÜRDURMAZ    in Bilgi Ve Deneyim

/tmp/-root/modules/vmnet-only/vnetUserListener.c: In function ‘VNetUserListenerEventHandler’:
/tmp/-root/modules/vmnet-only/vnetUserListener.c:240: error: ‘TASK_INTERRUPTIBLE’ undeclared (first use in this function)
/tmp/-root/modules/vmnet-only/vnetUserListener.c:240: error: (Each undeclared identifier is reported only once
/tmp/-root/modules/vmnet-only/vnetUserListener.c:240: error: for each function it appears in.)
/tmp/-root/modules/vmnet-only/vnetUserListener.c: In function ‘VNetUserListenerRead’:
/tmp/-root/modules/vmnet-only/vnetUserListener.c:282: error: ‘TASK_INTERRUPTIBLE’ undeclared (first use in this function)
/tmp/-root/modules/vmnet-only/vnetUserListener.c:282: error: implicit declaration of function ‘signal_pending’
/tmp/-root/modules/vmnet-only/vnetUserListener.c:282: error: implicit declaration of function ‘schedule’
make[4]: *** [/tmp/-root/modules/vmnet-only/vnetUserListener.o] Error 1
make[3]: *** [_module_/tmp/-root/modules/vmnet-only] Error 2
make[2]: *** [sub-make] Error 2
make[1]: *** [all] Error 2

loglarda yukarıdaki şekilde bir hata varsa aşağıdaki komutları çalıştırın. ( 2.6.32 kernel ile denenmiştir)

# cd /tmp
# tar xf /usr/lib/vmware/modules/source/vmnet.tar
# cd vmnet-only
# vim vnetUserListener.c

vim yerine başka bir editör kullanabilirsiniz. doyayı açtıktan sonra 37. satıra

#include "compat_sched.h"

yazın ve kaydedip çıkın. daha sonra

# cd /tmp
# tar cf /usr/lib/vmware/modules/source/vmnet.tar vmnet-only
# vmware-modconfig --console --install-all
Bookmark and Share
Tags: , ,

Tags: , ,

4
Feb

debian üzerinde jboss kurulumu

   Posted by: Muhammed YÜRÜRDURMAZ    in Bilgi Ve Deneyim

öncelikli olarak kurulu bir sistem lazım tabiiki :) .

eğer denemek istiyorsanız şu adresten hazır bir sanal makina indirin (isterseniz biraz eski ama şu adreste hazır kurulmuş sanal makina var)

sistem üzerinde jdk kurulumu yapın

http://www.jboss.org/jbossas/downloads/ adresinden jboss indirin. Ben 6.0.0.M1 (jboss-6.0.0.M1.zip) versiyonunu indirdim

kurulumu /usr/local altına yapacağız

işte komutlar

# cd /usr/local
# unzip jboss-6.0.0.M1.zip
# useradd jboss
# passwd jboss
# chown -R jboss:jboss jboss-6.0.0.M1
# su jboss
$ cd /usr/local/jboss-6.0.0.M1/bin
$ ./run.sh
=========================================================================

  JBoss Bootstrap Environment

  JBOSS_HOME: /usr/local/jboss-6.0.0.M1

  JAVA: java

  JAVA_OPTS: -Dprogram.name=run.sh -server -Xms128m -Xmx512m -XX:MaxPermSize=256m -Dorg.jboss.resolver.warning=true -Dsun.rmi.dgc.client.gcInterval=3600000 -Dsun.rmi.dgc.server.gcInterval=3600000 -Djava.net.preferIPv4Stack=true

  CLASSPATH: /usr/local/jboss-6.0.0.M1/bin/run.jar

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

................................

jboss çalıştı. şimdi bunu otomatik açılışa ekleyelim. kapatmak için Ctrl-C tuşlarına basabilirsiniz.

# cd /etc/init.d/
# vim jboss

ile jboss dosyasını açın ve içine

#!/bin/sh
# /etc/init.d/jboss: Start and stop JBoss AS
ECHO=/bin/echo
=/usr/bin/
JBOSS_START_SCRIPT=/usr/local/jboss-6.0.0.M1/bin/run.sh
JBOSS_STOP_SCRIPT=/usr/local/jboss-6.0.0.M1/bin/shutdown.sh

$ -x $JBOSS_START_SCRIPT || exit 0
$ -x $JBOSS_STOP_SCRIPT || exit 0

start() {
      $ECHO -n "Starting JBoss"
      su jboss -c "$JBOSS_START_SCRIPT -b 0.0.0.0> /dev/null 2> /dev/null &"
      $ECHO "."
}

stop() {
      $ECHO -n "Stopping JBoss"
      su jboss -c "$JBOSS_STOP_SCRIPT -S > /dev/null &"
      $ECHO "."
}

case "$1" in
      start)
            start
            ;;
      stop)
            stop
            ;;
      restart)
            stop
            sleep 30
            start
            ;;
      *)
            $ECHO "Usage: jboss {start|stop|restart}"
            exit 1
esac

exit 0

yazın sonra aşağıdaki komutlar ile çalışıp çalışmadığını kontrol edelim

# chmod 755 jboss
# ./jboss
Usage: jboss {start|stop|restart}
# ./jboss start
Starting JBoss.
# ps aux | grep java
# ./jboss stop
Stopping JBoss.

sonra otomatik açılışa atalım

# update-rc.d jboss defaults
update-rc.d: warning: /etc/init.d/jboss missing LSB information
update-rc.d: see <http://wiki.debian.org/LSBInitScripts>
 Adding system startup for /etc/init.d/jboss ...
   /etc/rc0.d/K20jboss -> ../init.d/jboss
   /etc/rc1.d/K20jboss -> ../init.d/jboss
   /etc/rc6.d/K20jboss -> ../init.d/jboss
   /etc/rc2.d/S20jboss -> ../init.d/jboss
   /etc/rc3.d/S20jboss -> ../init.d/jboss
   /etc/rc4.d/S20jboss -> ../init.d/jboss
   /etc/rc5.d/S20jboss -> ../init.d/jboss

şimdi makinayı yeniden başlatın ve sistemi deneyin

unutmadan jboss konsolunun kullanıcı ve şifresi admin

Bookmark and Share
Tags: , , ,

Tags: , , ,

Switch to our mobile site