nano /etc/network/interfaces


# 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
#iface eth0 inet dhcp
auto eth0
iface eth0 inet static
address 192.168.0.100
netmask 255.255.255.0
network 192.168.0.0
broadcast 192.168.0.255
gateway 192.168.0.1


/etc/init.d/networking restart


nano /etc/hosts


127.0.0.1 localhost.localdomain localhost
192.168.0.100 server1.example.com server1

# The following lines are desirable for IPv6 capable hosts
::1 localhost ip6-localhost ip6-loopback
fe00::0 ip6-localnet
ff00::0 ip6-mcastprefix
ff02::1 ip6-allnodes
ff02::2 ip6-allrouters
ff02::3 ip6-allhosts


echo server1.example.com > /etc/hostname
/etc/init.d/hostname.sh start

hostname
hostname -f

Both should show server1.example.com.

bu mevzu biraz karisik, sonrasi icin fikir olmasi acisindan yaziyorum buraya. Unutmayayim , Metin’e de cok tesekkur edeyim her gordugumde.
sirket icinde windows 2003 ustunde exchange kosmakta.Domain ise exim4 ustunde directadmin linux da.
yapmak istedigimiz exim 2003 sirket icinden disari gonderilen mailleri exim 587 submission port ile auth ederek relay etsin.
daha onceki kurulum port 25 ustunde pop before smtp ile auth ediyorduk. Port 25 kullanmak istemiyoruz.

cozum: smarthost ile olmuyor 🙂

exchange de degisiklik yapip smtp connector kurup calistirip sistemi geciriyoruz buna

sonra

[15:40:06] ­smtp virtual connector yeterli değil bu iş için
[15:41:00] ­sonrasında routing groups / connectors kısmında yeni smtp connector oluşturmak gerekli
[15:41:32] ­local bridgehead olarak da smtp virtual connectoru seciyosun
[15:41:47] ­bu 1.
[15:41:53] ­2. nokta ise
[15:42:00] ­virtual smtp connectorde
[15:42:28] ­587 portunu sadece delivey\outbound connections
[15:42:35] ­kısmındaki tcp port bölümüne yazıyosun
[15:43:02] ­general\advanced menüsü default kalacak
[15:43:05] ­yani 25..

yazdigim gibi fikir olsun…

soru:

how to find which ips are in use ?

Hello

I’ve got a 3 host cluster proxmox system running with 12 openvz installations.
Each openvz vm have 3-5 ip addresses each.
I can find them by entering each vm and clicking network tab.
But checking all 12 vm’s take time.
Is there an easy way to manage ips given to each vm?

I mean how can I easily list all used ips in my proxmox cluster system and which ip belongs to which vm id ?

CEVAP:

The command I needed is “vzlist”
1 single command:

Code:
vzlist -o hostname,ctid,ip

gives me the exact result I needed.

more info:

http://download.swsoft.com/virtuozzo/virtuozzo4.0/docs/en/win/VzWindowsReference/4549.htm

http://download.swsoft.com/virtuozzo/virtuozzo4.0/docs/en/win/VzWindowsReference/4615.htm

pek cok bilgisayar var bunlarin hepsi bilgileri sayiyor linux rdesktop remote desktop mstsc windows uzaktan erisim 🙂 tag bunlar.. ok.
Konu su

bilgisayarlarimin bazilarinda masa ustu olarak linux kullaniyorum.
ubuntu, fedora , centos aklima ne gelirse
en son zenwalk kullaniyorum. Cok guzel cok hizli ancak RDP baglantilarimin performansindan hic memnun olamadim
bugun biraz arastirma yaparken rdesktop ile bir kac switch kullanarak performansimi yukseltebildim.

daha sonra icin referans olmasi icin yaziyim burayada:

dagitim zenwalk
desktop: xfce
rdp client: rdesktop (xfce icinden cikan)
switchleri: shukko[~]$ rdesktop -z -x m win.dows.mak.ina -g 1280×800

aciklamasi: -z : compression aciyor
-x baglanti cinsini belirliyor: -x l = lan , -x m = modem , -x b = broadband
-g masaustu cozunurluk.

su an performansimdan memnunum 🙂

ek: birde screen colour depth varmis
-a colour depth
son olarak komutum bu olsun:

shukko[~]$ rdesktop -z -x m win.pc -g 1280×800 -a 16

Your aim

You want to use Linux and OpenSSH to automize your tasks. Therefore you need an automatic login from host A / user a to Host B / user b. You don’t want to enter any passwords, because you want to call ssh from a within a shell script.
How to do it

First log in on A as user a and generate a pair of authentication keys. Do not enter a passphrase:

A note from one of our readers: Depending on your version of SSH you might also have to do the following changes:

* Put the public key in .ssh/authorized_keys2
* Change the permissions of .ssh to 700
* Change the permissions of .ssh/authorized_keys2 to 640

a@A:~> ssh-keygen -t rsa
Generating public/private rsa key pair.
Enter file in which to save the key (/home/a/.ssh/id_rsa):
Created directory '/home/a/.ssh'.
Enter passphrase (empty for no passphrase):
Enter same passphrase again:
Your identification has been saved in /home/a/.ssh/id_rsa.
Your public key has been saved in /home/a/.ssh/id_rsa.pub.
The key fingerprint is:
3e:4f:05:79:3a:9f:96:7c:3b:ad:e9:58:37:bc:37:e4 a@A

Now use ssh to create a directory ~/.ssh as user b on B. (The directory may already exist, which is fine):


a@A:~> ssh b@B mkdir -p .ssh
b@B's password:

Finally append a’s new public key to b@B:.ssh/authorized_keys and enter b’s password one last time:


a@A:~> cat .ssh/id_rsa.pub | ssh b@B 'cat >> .ssh/authorized_keys'
b@B's password:

From now on you can log into B as b from A as a without password:


a@A:~> ssh b@B hostname
B

The disk usage for a given User is higher than I think it should be.
If the disk usage is higher than you think it should be, or just want to know how DA is coming to the disk usage value, you can type:


cd /usr/local/directadmin
echo "action=tally&value=username&type=user" >> data/task.queue
./dataskq d800

Where username is the name of the user in question.
This will run the tally for that account and dump out all the bits that are added together to come to the final value (system quota, email, database, etc.).

1- This code will start searching from / if no shell argument passed. You may want to adjust this default directory to the location of your apache directory instead for speed purposes.

#!/usr/bin/env bash
# Identifies instances of the c99Shell PHP trojan within PHP files
FIND_LOC=${1:-/} # Root the find by the a directory provided as argument or default to root
echo "Starting search from $FIND_LOC..."
find $FIND_LOC -type f -iname '*.php' -exec grep -qi 'C99Shell' '{}' \; -print
echo "Complete"
: # clean exit

2-
find /var/www/ -name "*".php -type f -print0 | xargs -0 grep r57 | uniq -c | sort -u | cut -d":" -f1 | awk '{print "rm -rf " $2}' | uniq

sorun:

core2duo islemcili serverda bol ram ve disk var
ICH7 chipseti yuzunden linux disk performansi yerlerde surunuyor
diskler sata olmasina ragmen
hda1, hdc1 vs vs diye gozuyor centos kurulumundan sonra.

Sorun acayip
cozum basit

nano /etc/grub.conf
kernel /boot/vmlinuz-2.6.18-194.11.4.el5 ro root=LABEL=/1 hda=noprobe hda=none hdc=noprobe hdc=none

Forza no probe 🙂

NOT: fstab icine bak direk alakali birsey olmasin hda li falan, Disk Labelleri guzeldir.

sonuc:

hdparm -Tt /dev/sda1

/dev/sda1:
Timing cached reads: 10864 MB in 2.00 seconds = 5437.80 MB/sec
Timing buffered disk reads: 220 MB in 3.00 seconds = 73.32 MB/sec

gayet iyi dandik makina icin 🙂