14 Nisan 2021 Çarşamba

MS-SQL / Rename a computer that hosts a stand-alone instance of SQL Server

For a renamed computer that hosts a default instance of SQL Server, run the following procedures:

EXEC sp_dropserver '<old_name>';  
GO  
EXEC sp_addserver '<new_name>', local;  
GO

Restart the instance of SQL Server.

For a renamed computer that hosts a named instance of SQL Server, run the following procedures:

EXEC sp_dropserver '<old_name\instancename>';  
GO  
EXEC sp_addserver '<new_name\instancename>', local;  
GO

Restart the instance of SQL Server.

After the Renaming - Verify renaming operation

Select information from either @@SERVERNAME or sys.servers. The @@SERVERNAME function will return the new name, and the sys.servers table will show the new name. The following example shows the use of @@SERVERNAME.

SELECT @@SERVERNAME AS 'Server Name';  

6 Nisan 2021 Salı

SafeNet / Replicate Token

SafeNet üzerinde slot bilgisini başka bir slota kopyalamak için aşağıdaki komutu kullanabiliriz. 

C:\Program Files (x86)\SafeNet\Protect Toolkit 5\Protect Toolkit C SDK\bin>ctkmu rt -s 17 -d 117

ProtectToolkit C Key Management Utility 5.0.0

Copyright (c) Safenet, Inc. 2009-2014

Enter user PIN for slot 17:

Replicate slot 17 to slot 117: SUCCESS

2 Nisan 2021 Cuma

Linux / Ubuntu 20.10 netplan apply

Ubuntu Server 20.10 versiyonunda /etc/netplan altindaki diger dosyalardan da ip aliyor, tek bir dosya olmasi daha uygun gözüküyor.

sudo vi  /etc/netplan/00-installer-config.yaml

# This is the network config written by 'subiquity'

network:

  ethernets:

    ens160:

      addresses:

      - 192.168.x.28/24

      gateway4: 192.168.x.1

      nameservers:

        addresses:

        - 192.168.x.109

        - 192.168.x.152

        - 192.168.x.134

        search:

        - domain.com.tr

  version: 2

sudo netplan apply

root@ubuntu20:~$ lsb_release -a

No LSB modules are available.

Distributor ID: Ubuntu

Description:    Ubuntu 20.10

Release:        20.10

Codename:       groovy

Windows Server IIS üzerinden hizmet veren bir FTP servisine erişmek istediğimizde;  Internet Explorer, FileZilla vb. uygulamalar ile erişim ...