26 Temmuz 2012 Perşembe

Linux..

When using terminal as the root, if you want to switch between users;

su user_name

is enough. Than use whoami..

Linux how to find which yum package to install..

If you are sure about the location of the executable, than you can make yum, search the packages that uses the same executable.

yum provides /usr/sbin/semanage

My output:
 ......
base                                                     | 3.7 kB     00:00    
extras                                                   | 3.0 kB     00:00    
updates                                                  | 3.5 kB     00:00    
policycoreutils-python-2.0.83-19.24.el6.i686 : SELinux policy core python.....

So after finding out the package, now it is time to install it..

yum -y install policycoreutils-python

25 Temmuz 2012 Çarşamba

vsftpd centos6

Kullanıcının kendi home klasörü altında bağlanmasını değilde, başka bir dizine bağlanmasını istiyorsanız, etc altındaki passwd dosyasında kullanıcının ev dizinini değiştirin..
Directory list yapamıyorsanız muhtemelen hata SELinuxtadır. Kapatın gitsin..
Ama tabii en güzeli kapatmadan halletmek bu işi.

setsebool -P ftp_home_dir=1

24 Temmuz 2012 Salı

----

service mysqld start
service mysqld stop

Centos ve Apache

Apache kurulumundan sonra /etc/httpd/conf altında yer alan httpd.conf dosyasında yapılması gereken ayarlar;
ServerName 192.168.2.4:80

Neredeyse bir gündür sayfaları görüntüleyememe sorunu ile uğraşıyordum. Yetki hatası. Aslında ne basitmiş. html klasörü üzerinde sağ tık ve Permissions altından önce "Read from all httpd scripts and the daemon" ve  sonra "Apply Permissions to Enclosed Files"..

Apachenin komut satırından kontrolü için apachectl scriptini kullanın.
apachectl configtest
apachectl start

Linux..

ifconfig eth0 192.168.2.1 netmask 255.255.255.0
komutu ile adres ataması
route add default gw 192.168.2.1
komutu ile de default gateway yapılandırması yapılabilir..

http://www.cyberciti.biz/faq/rhel-centos-configure-persistent-dhcp-client/
adresinde ise DHCP client olarak otomatik yapılandırılma anlatılmış..

Linux..

file /sbin/init
komutu ile linux sürümünüz 32 bit mi yoksa 64 bit mi öğrenebilirsiniz..