mustafakalir


ubuntu 10.0.4 sources.list

deb http://old-releases.ubuntu.com/ubuntu/ lucid main restricted universe multiverse
deb http://old-releases.ubuntu.com/ubuntu/ lucid-updates main restricted universe multiverse
deb http://old-releases.ubuntu.com/ubuntu/ lucid-security main restricted universe multiverse

Çözüm: The network folder specified is currently mapped using a different user name and password. To connect using a different user name and password, first disconnect any existing mappings to this network share

To solve this problem, try the following steps:

  1. Select the “Start” button, then type “cmd“.
  2. Right-click the “Command Prompt” option, then choose “Run as administrator“.
  3. Type “net use“, then press “Enter“.
  4. Look for any drives listed that may be questionable. In many cases where this problem occurs, the drive may not be assigned a letter. You’ll want to remove that drive.
  5. From the Command Prompt, type:
    net use /delete \\servername\foldername
    (where the servername\foldername is the drive that you wish to delete.)

In some extreme cases, you may want to simply use the command net use * /delete. This will delete all mapped drives though, so be careful that you know what you’re doing.

Post applies to most modern versions of Microsoft Windows.

VMware vSphere 6.0 Java High CPU!

On vCenter Server for Windows:
  1. Connect to vCenter Server through a Console or Remote desktop session.
  2. Open an elevated command prompt.
  3. Create a temporary directory named c:\certificate.
  4. Run this command to retrieve the vpxd-extension solution user certificate and key:

    “%VMWARE_CIS_HOME%”\vmafdd\vecs-cli entry getcert –store vpxd-extension –alias vpxd-extension –output c:\certificate\vpxd-extension.crt

    “%VMWARE_CIS_HOME%”\vmafdd\vecs-cli entry getkey –store vpxd-extension –alias vpxd-extension –output c:\certificate\vpxd-extension.key

  5. Navigate to C:\Program Files\VMware\vCenter Server\vpxd\scripts:

    cd C:\Program Files\VMware\vCenter Server\vpxd\scripts

    Note: The path listed is for a default install of vCenter Server. If you have customized the install location of vCenter Server, change the directory accordingly.

  6. Run this command to update the extension’s certificate with vCenter Server:

    “%VMWARE_PYTHON_BIN%” updateExtensionCertInVC.py -e com.vmware.vim.eam -c C:\Certificate\vpxd-extension.crt -k C:\Certificate\vpxd-extension.key -s localhost -u Administrator@domain.local

    Note: The default user and domain is Administrator@vsphere.local. If this was changed during configuration, change the domain to match your environment.

  7. When prompted, enter the Administrator@domain.local password.
  8. Navigate to the C:\Program Files\VMware\vCenter Server\bin folder:

    cd C:\Program Files\VMware\vCenter Server\bin

  9. Restart the VMware ESX Manager service with these commands:
    • service-control –stop EsxAgentManager
    • service-control –start EsxAgentManager

Failed to read network interface (eth1) information

  1. Connect to the vCenter Server Appliance via SSH (default username is root and password is vmware).

  2. Copy the /etc/sysconfig/networking/devices/ifcfg-eth0 to /etc/sysconfig/networking/devices/ifcfg-eth1 file by running this command:

    cp /etc/sysconfig/networking/devices/ifcfg-eth0 /etc/sysconfig/networking/devices/ifcfg-eth1

  3. Open the ifcfg-eth1 file using a text editor.

    Delete the vi /etc/sysconfig/networking/devices/ifcfg-eth1 command as it is specific to the vi editor. The user can choose to use any editor for this purpose.

  4. Edit the file adding values for your network.

    For example:

    DEVICE=eth1
    BOOTPROTO=’static’
    STARTMODE=’auto’
    TYPE=Ethernet
    USERCONTROL=’no’
    IPADDR=’192.168.1.117′
    NETMASK=’255.255.255.0′
    BROADCAST=’192.168.1.255′

  5. Create a symlink for this file in /etc/sysconfig/network by running this command:

    ln -s /etc/sysconfig/networking/devices/ifcfg-eth1 /etc/sysconfig/network/ifcfg-eth1

  6. Restart the networking service to activate the new setup, by running this command:

    service network restart

  7. Check the web management interface to verify that the new settings are active.

Uzak Masaüstü (RDP) Portunu nasıl değiştirebilirim?

Merhaba,

Öncelikle uzak masaüstünüzdeyken Windows + R tuşuna basarak, yada Başlat > Çalıştır ı çalıştırarak gelen ekrana regedit yazınız

Gelen ekrandan şu dizine giriniz

HKEY_LOCAL_MACHINE\System\CurrentControlSet\Control\TerminalServer\WinStations\RDP-Tcp\PortNumber

Ondalık yazan bölümü seçiniz. Bunu seçtiğinizde 3389 standart port numarasını göreceksiniz.

İstediğiniz portu buraya yazın ve kaydedin.

Daha sonra Windows + R tuşuna basarak, yada Başlat > Çalıştır ı çalıştırarak services.msc yazınız.

Gelen servis ekranından Remote Desktop‘u bulunuz ve sağ tıklayarak Restart ediniz.

İşlem bu kadar.

SSH’de toplu değişiklik

SSH’a giriş yapınız ve aşağıdaki komut’da eskikelime yazan yere mevcut kelimenizi, yenikelime yazan yere ise değişecek kelimeyi yazınız

perl -i -p -e ‘s/eskikelime/yenikelime/ig’ *.php 

(php yazan yer uzantı. farklı uzantılar var ise *.* olmalı)

cPanel Spam Mail Engelleme

Tweak Settings;
Restrict outgoing SMTP to root, exim, and mailman [?] OFF -> On olması gerekir, olmaz ise phpmailer i basan kullanıcı sizden istediği yere mail atar.
Prevent “nobody” from sending mail [?] OFF -> On olması gerekir. Ayn şekilde phpmailer lara yardım eder.
Initial default/catch-all forwarder destination [?] System account -> Fail olması gerekir. Yoksa posta kutunuzu şişirip mail adresinizden miş gibi backscatter yaparlar.

 

Exim Configuration;
Send mail from account’s dedicated IP [?] -> On olmalı ki herkes mail atmak için keni ip adresini kullansın. Ortak ip adresinizden gidenler daha kolay spama düşer.
RBL: bl.spamcop.net [?] On olmalıdır.. Spam gelmemesi için bu ayarın yapılması gerekir.
RBL: zen.spamhaus.org [?] On olmalıdır.

Ubuntu Root Erişimini Aktif Etme

Giriş yaptıktan sonra aşağıdaki komutu giriniz

sudo sed -i 's/prohibit-password/yes/' /etc/ssh/sshd_config

aşağıdaki dosyayı belirtildiği şekilde düzenleyiniz

/etc/ssh/sshd_config

PermitRootLogin prohibit-password yerine PermitRootLogin yes

yazınız ve kaydediniz. daha sonra

service ssh restart