Posts

Change server authentication mode

Image
 Change server authentication mode Article 03/30/2023 In this article Before you begin Change authentication mode with SQL Server Management Studio Enable sa login Change authentication mode (Transact-SQL) See also Applies to: SQL Server This article describes how to change the server authentication mode in SQL Server by using SQL Server Management Studio or Transact-SQL. During installation, SQL Server Database Engine is set to either Windows Authentication mode or SQL Server and Windows Authentication mode . After installation, you can change the authentication mode at any time. If Windows Authentication mode is selected during installation, the sa login is disabled and a password i...

SQL Server Port and Firewall Setup

SQL Server Port and Firewall Setup  サービス名 ”SQL Server (MSSQLSERVER)” SQL Server 名前 が ”SQL Server (MSSQLSERVER)”ならば、 既定のインスタンス サービス名 ”SQL Server (SQLEXPRESS)” SQL Server 名前 が ”SQL Server (SQLEXPRESS) ” ならば、 名前付きインスタンス 他に、SQL Serverのインストール時に、インスタンス名を"SQL2022"のように設定した場合も、”SQL Server (SQL2022)”のように表示され、これも名前付きインスタンス。 "MSSQLSERVER"以外は名前付きインスタンス。 既定のインスタンス(MSSQLSERVER)へ他のPCから接続可能にする SQL Server のサービスの設定 デフォルトの状態でよい。       ・SQL Browser サービス                                        :停止(接続には不要) ・SQL Server (MSSQLSERVER)                             :実行中 ...

SQL Server 2022 Express Install and Setup

Image
  SQL Server 2022 Expressのインストール及び設定 ファイルのダウンロードが完了したら「実行(R)」ボタンをクリックしてください。 「次のプログラムにこのコンピュータへの変更を許可しますか?」と表示されるので「はい(Y)」ボタンをクリックしてください。 「メディアのダウンロード(D)」をクリックしてください。 「Express Advanced」にチェックを付け、「ダウンロード(D)」ボタンをクリックしてください。  ダウンロードが完了するまで待ちます。 「ダウンロードに成功しました。」と表示されたら「フォルダーを開く」ボタンをクリックしてください。 SQL Server 2022 Express with Advanced Servicesのインストール 「SQLEXPRADV_x64_JPN」をダブルクリックしてください。 「展開されたファイルのディレクトリの選択」ダイアログが表示されるので「OK」ボタンをクリックしてください。 展開の準備が完了するまで待ちます。 「SQL Serverの新規スタンドアロン インストールを実行するか、既存のインストールに機能を追加」をクリックしてください。 「ライセンス条項に同意します。(A)」にチェックし「次へ(N)>」ボタンをクリックしてください。 「インストール ルール」の画面で「次へ(N)」をクリックしてください。 「SQL Server用Azure拡張機能」をチェックOFFし「次へ(N)>」ボタンをクリックしてください。 「データベース エンジン サービス」および「検索のためのフルテキスト抽出とセマンティック抽出」のみにチェックを行い「次へ(N)>」ボタンをクリックしてください。 「既定のインスタンス(D)」にチェックし「次へ(N)>」ボタンをクリックしてください。 「次へ(N)>」ボタンをクリックしてください。 「混合モード(SQL Server 認証と Windows 認証)(M)」にチェックし、任意のパスワードを設定してください。設定したパスワードは、「 プリザンターのインストール 」にて使用するため控えてください。その後、「次へ(N)>」ボタンをクリックしてください。 インストールが完了する...

Uninstall an existing instance of SQL Server (Setup)

Image
 SQL Server の既存のインスタンスをアンインストールする Uninstall an existing instance of SQL Server (Setup) Uninstall Windows 10 / 2016 + To uninstall SQL Server from Windows 10, Windows Server 2016, Windows Server 2019, and greater, follow these steps: To begin the removal process, navigate to Settings from the Start menu and then choose Apps . Search for sql in the search box. Select Microsoft SQL Server (Version) (Bit) . For example, Microsoft SQL Server 2017 (64-bit) . Select Uninstall . Select Remove on the SQL Server dialog pop-up to launch the Microsoft SQL Server installation wizard. On the Select Instance page, use the drop-down box to specify an instance of SQL Server to remove, or specify the option to remove only the SQL Server shared features and management tools. To continue, select Next . On the Select Features page, specify the features to remove from the specified instance of SQL Server. On the Ready to Remove page, review the list of components...

Display Samba Server in windows network: Install wsdd on Ubuntu 22.04

 Display Samba Server in windows network: Install wsdd on Ubuntu 22.04   Reference: https://installati.one/install-wsdd-ubuntu-22-04/?expand_article=1 https://pcvogel.sarakura.net/2022/03/22/34526

How to Install Windows 11 Without a Microsoft Account

 How to Install Windows 11 Without a Microsoft Account  1. "choose a country" スクリーンが出るまでプロセスする。  Now's the time to cut off the Internet. However, before you do, you need to issue a command that prevents Windows 11 from forcing you to have an Internet connection. 2. Shift + F10 でコマンドプロンプトを起動 3. OOBE\BYPASSNRO とタイプしてインターネットコネクションを必須項目から外す。そうするとPCはすぐにリブートして元のスクリーンに戻ります。 4. Shift + F10 でコマンドプロンプトを起動して "ipconfig /release" をタイプしEnter 5. コマンドプロンプトを終了 6. そのままインストールのプロセスを続けると、Internet コネクションなしで設定できるオプションが現れます。 Reference:   https://www.google.com/search?q=how+to+install+windows+11+without+microsoft+account&rlz=1C1ONGR_enUS1076US1076&oq=how+to+install+windows+11+without&aqs=chrome.0.0i512l2j69i57j0i512l7.15313j0j7&sourceid=chrome&ie=UTF-8

Samba Security Mask

Set correct parameter for Mask and Directory when wite from other PC, see below, [anaheim]     path = /mnt/anaheim     force user = nobody     force group = nogroup     public = yes     writeable = yes     unix extensions = no     ;share modes = yes     create mode = 0777     force create mode = 0777     security mask = 0777     force security mode = 0777     directory mode = 0777     force directory mode = 0777     directory security mask = 0777     force directory security mode = 0777 Reference  https://serverfault.com/questions/645081/samba-permissions-being-ignored   https://askubuntu.com/questions/97669/i-cant-get-samba-to-set-proper-permissions-on-created-directories  with Mac OS  "unix extensions = no" https://work-work.work/blog/2018/12/1...

SSD Secure Erase Tool

 SSD Secure Erase Tool Use "TxBENCH" softwre.   Download: https://www.texim.jp/txbench.html Reference: https://yuyu.miau2.net/ssd-secure-erase/

Set column as unique in SQL Server from the Management Studio

 Set column as unique in SQL Server from the Management Studio 1. Open SQL Server Management Studio. 2. Right click your Table, click "Design". 3. Right click the column you want to edit, a popup menu appears, choose "Indexes/Keys". 4. Click the "Add" Button. 5. Expand the "General" tab. 6. Choose the Columns to make unique selected in the "columns" box. 7. Change "Is Unique" to "Yes". 8. Click "Close". 9. Save the Database.   Reference:  https://stackoverflow.com/questions/5181877/how-can-i-create-a-unique-constraint-on-my-column-sql-server-2008-r2

public DNS

 Google 8.8.8.8 8.8.4.4 Cisco 208.67.222.222 208.67.220.220 Cloud flare 1.1.1.1 1.0.0.1

tracert command -find duplicate router in line

 Usage: tracert [-d] [-h maximum_hops] [-j host-list] [-w timeout]                [-R] [-S srcaddr] [-4] [-6] target_name Options:     -d                 Do not resolve addresses to hostnames.     -h maximum_hops    Maximum number of hops to search for target.     -j host-list       Loose source route along host-list (IPv4-only).     -w timeout         Wait timeout milliseconds for each reply.     -R                 Trace round-trip path (IPv6-only).     -S srcaddr         Source address to use (IPv6-only).     -4                 Force using IPv4.     -6                 Force using IPv6.

Ubuntu Backup

 Ubuntu Backup 1. Déjà Dup 2. Grsync $ apt-get install rsync $ sudo apt install grsync 3. UrBackup     Client Server backup Reference: The 5 Best Graphical Backup Tools for Ubuntu and Linux Mint

Samba Active Directory

      Reference: https://www.google.com/search?channel=fs&client=ubuntu&q=+%E3%82%B5%E3%83%B3%E3%83%90+%E3%82%A2%E3%82%AF%E3%83%86%E3%82%A3%E3%83%96%E3%83%87%E3%82%A3%E3%83%AC%E3%82%AF%E3%83%88%E3%83%AA+%E5%B0%8E%E5%85%A5 SambaをActive Directoryドメインコントローラとして設定する OSAKANA TAROのメモ帳 amba4.12でActive Directory構築の手順(まとめ) Ubuntu 18.04 に Samba 4.7 を導入 sambaでActive Directoryドメインコントローラー                        

Ubuntu Server Install Procedure

 1. Create USB boot image     a. Download iso image     b. Run Start up disk creator from application menu     c. Boot and Install Ubuntu Server 2. GUI install $ sudo apt-get update $ sudo apt-get upgrade $ sudo apt-get install tasksel $ sudo tasksel 3. Set Static IP address     a. Install network-manager         $ sudo apt-get install network-manager     b. Edit configuration file              $ sudo nautilus          edit " 00-installer-config.yaml "                 network:                  version: 2                    renderer:  NetworkManager                 Note: Just above text only no ; or rem...

ubuntu mount command

ubuntu mount command /etc/fstab -編集可能 /etc/mtab -編集不可 Reference: https://eng-entrance.com/linux-mount https://www.it-mure.jp.net/ja/linux/fstab%E3%81%A8mtab%E3%82%92%E7%B7%A8%E9%9B%86%E3%81%97%E3%81%9F%E5%BE%8C%E3%80%81%E3%82%B5%E3%83%BC%E3%83%90%E3%83%BC%E3%82%92%E5%86%8D%E8%B5%B7%E5%8B%95%E3%81%99%E3%82%8B%E5%BF%85%E8%A6%81%E3%81%8C%E3%81%82%E3%82%8A%E3%81%BE%E3%81%99%E3%81%8B%EF%BC%9F/960205303/

Ubuntu Nautilus - Specific File Restore from Backup by Nautilus

   Nautilusで「バックアップ」でバックアップしたバックアップデータから、  特定のファイルを復元する方法。 Reference: https://kledgeb.blogspot.com/2012/07/ubuntu-nautilus-29.html

Dell OS Recovery - Reset Failed

When Reset Failed try below, Open the Dell OS Recovery Tool at the bottom before searching for anything select switch to advanced recovery. Select from available OS images and enter the service tag. This will get you to where you can download the manual windows install which will allow you to reinstall the OS.    Reference: https://www.dell.com/community/Latitude/SupportAssist-OS-Recovery-Reset-Failed/td-p/7399183/page/2

Remmina Linux to Windows10 remote access

  Reference: https://gato.intaa.net/linux/remmina

Ubuntu Firewall GUI

 gufw Reference:  https://sicklylife.jp/ubuntu/2004/gufw.html

Local Account Login .\

Local Account Login .\ .\localusername Login

Difference force create mode and create mask

Difference force create mode and create mask "create mask" と"directory mask" は共有フォルダ上に作成できるアクセス許可の上限値を指定しています。共有フォルダ内に誰でも読めるファイルを格納したくない場合は、"create mask = 0760" としておくことで、ファイルのオーナーであっても、グループ以外のメンバーが読み込めるファイルを作成することはできません。"directory mask" も同様です。  しかし、ユーザーの操作により、"create mask"より低いアクセス権の設定は可能です。これを防ぎたい場合は、似たパラメーターである "force create mode" を使います。"force create mode" で指定されたアクセス許可以外のファイルは作成できず、アクセス許可の種類を変更することはできません。 "force create mode = 660" とした場合は、グループのユーザーが書き込みできないファイルは作成できなくなります。 Reference: https://thinkit.co.jp/article/766/1?nopaging=1

email password in outlook

How to find email password in outlook 1. open File and go Account Information 2. Open Account Settings - Account Settings 3. Choose account and Repair 4. Advanced options - check "Let me repair my account manually" 5. click eye mark icon to visible password.

Device Manager for Linux

Device Manager for Linux install hardinfo sudo apt install hardinfo

Samba Users Group

Samba Users Group Useful information for Samba smb.conf https://www.samba.org/samba/docs/current/man-html/smb.conf.5.html http://www.samba.gr.jp/project/translation/3.5/htmldocs/manpages-3/smb.conf.5.html 最初日本語ページ見つけてそのあと英語ページ見つけました。 英語があれば、日本語いらんかった。 SambaによるWindowsファイルサーバ構築 smb.conf -samba2.0 http://www.samba.gr.jp/doc/samba2.0_and_linux.html

Ubuntu Software in Ubuntu 20.04 LTS version

Ubuntu Software in Ubuntu 20.04 LTS version To install Ubuntu software, run in the terminal: sudo apt install ubuntu-software To remove Snap store package: sudo snap remove snap-store Reference: https://askubuntu.com/questions/1231557/how-do-i-reinstall-ubuntu-software-in-ubuntu-20-04-lts-version

Samba Recycle Bin

Recycle Bin Function ごみ箱機能 Samba日本語版には、ごみ箱機能と呼ばれる機能が用意されています。この機能を使用すると、ユーザーが削除したファイルを所定のフォルダに保存しておくことができます。このため、ユーザが誤って削除したファイルを復活させることが可能です。 ごみ箱機能を使用するためには、共有サービスに"recycle bin"パラメータを追加します。 [DEVELOP] path = /var/samba/development writeable = Yes recycle bin = .recycle この設定により、ユーザが共有サービス上のファイルを削除したときに、 /var/samba/development/.recycleディレクトリにファイルが移動します。 ただし、.recycleディレクトリ内のファイルは削除されずに 残ったままとなりますので、定期的にcronなどで古くなった ファイルの削除などを実施するほうが良いでしょう。 次の設定を行うと、ユーザのホームディレクトリごみ箱用としてrecycleフォルダが作成されます。 [homes]     comment = %S's Home Directories writeable = Yes     browseable = No     recycle bin = recycle Reference: https://users.miraclelinux.com/technet/document/samba/samba0013.html

netplan networkd network-manager

netplan networkd network-manager https://ubuntu.com/server/docs/network-introduction https://ubuntu.com/server/docs/network-configuration https://netplan.io/reference https://www.linux.com/topic/distributions/how-use-netplan-network-configuration-tool-linux/ https://vitux.com/how-to-configure-networking-with-netplan-on-ubuntu/ Install networkmanager with sudo apt-get install network-manager https://askubuntu.com/questions/1031439/am-i-running-networkmanager-or-networkd     # Let NetworkManager manage all devices on this system network:   version: 2   renderer: NetworkManager Static IP Address Assignment To configure your system to use static address assignment, create a netplan configuration in the file /etc/netplan/99_config.yaml. The example below assumes you are configuring your first Ethernet interface identified as eth0. Change the addresses, gateway4, and nameservers values to meet the requirements of your network. network:   versio...

Ubuntu Samba Server Configuration

Ubuntu Samba Server Configuration smb.conf [global] ## Browsing/Identification ### workgroup = WORKGROUP → ワークグループ名の設定 dos charset = CP932 → Windowsマシンとの通信時に使用する文字コードの指定 unix charset = utf-8 → Unixマシンとの通信時に使用する文字コードの指定 unix extensions = no → Macから接続する場合には必要 hosts allow = 192.168.1.0/255.255.255.0 → sambaサーバへのアクセスを許可するIPアドレスの指定 ### Debugging/Accounting ### log level = 1   → 出力するログのレベルを指定。数値は0〜10まで指定可能。数値が大きいほど詳細なログを出力 log file = /var/log/samba/log.%m → ログの保存場所の指定。%mはアクセスしてきたユーザマシン名に 置き換わる変数。つまりこの場合はユーザマシン毎にログを出力する max log size = 1000 → ログファイルの最大サイズの指定。単位はキロバイト。 左の場合は最大1MB。1MBを越えると、ログファイル末尾に 「.old」が付けられて新しいログファイルが作成される。 すでに「.old」が存在していた場合は削除されて上書きされる ###### Authentication ###### map to guest = never   → ゲスト認証の無効化。有効にする場合は「never」ではなく 「bad user」を記述 #============= Share Definitions =============# [homes] comment = Home Directories → ディレクトリの説明に記述されるコメント browseable = no → ディレクトリを共有一覧に表示しないための設定。 例えばwindowsの場合は「ネットワーク」上に表示されない。 表示する場合は「yes...

Ubuntu Samba Server Setup Procedure - Group and Permission

Ubuntu Samba Server Setup Procedure 1. Install Samba Server $ sudo apt-get install samba 2. Uninstall Samba Server $ sudo apt-get autoremove --purge samba $ sudo apt-get remove samba $ sudo apt-get autoremove samba 3. Create User      a. Setup User in Ubuntu   $ useradd -m <user>      b. Setup User in Samba Server $ pdbedit -a <user>      c. Password Change $ sudo passwd <user> 4. Create Group in Ubuntu sambaでは、sambaが動作するLinux上に存在するグループ毎に、共有するファイルやディレクトリのアクセス権を変更できます。      a.  Create Group $ groupadd <group>      b. Add User to Group $ gpasswd -a <user1> <group> $ gpasswd -a <user2> <group> User および Group 一覧は、 /etc/フォルダーの group ファイルに記載されています。 5. Change ownership and Setup Permission      a. Change Ownership $ sudo chown -R nobody:nogroup /mnt/sales   $ c...

Office 365 Password Never Expire

Office 365 Password Never Expire Important Only Office 365 global admins can perform these steps. In the admin center, go to the Settings > Settings. Go to the    Security & privacy  page. If you aren't an Office 365 global admin, you won't see the Security and privacy option. Select Password expiration policy. If you don't want users to have to change passwords, select the checkbox next to Set user passwords to expire after a number of days. Type how often passwords should expire. Choose a number of days from 14 to 730. In the second box type when users are notified that their password will expire, and then select Save. Choose a number of days from 1 to 30. When the user's password expires, they'll get a notification that appears in the lower right corner of their screen. Reference:  https://docs.microsoft.com/en-us/microsoft-365/admin/manage/set-password-expiration-policy?view=o365-worldwide

Windows 10 how to show all network computers

Windows 10 how to show all network computers 手順1. Windows10のアップデートによって無効化されたSMB 1.0/CIFS共有のサポートを有効化する方法 1. Control Panel - Programs - Programs and Features - Turn Windows features on or off プログラムメニューの「プログラムと機能」の中にある「Windowsの機能の有効化または無効化」をクリックしましょう。 2. "SMB 1.0/CIFS File Sharing Support" をクリックしてチェックボックスをオンにしたら「OK」をクリックしてパソコンを再起動しましょう。 手順2, 以下のサービスを起動させる。(サービスはコントロールパネルの管理ツールの中) スタートアップの種類を[自動((遅延開始)]に設定します。 [適用]をクリックします。 Function Discovery Provider Host Function Discovery Resource Publication Network Connections UPnP Device Host Peer Name Resolution Protocol Peer Networking Grouping Peer Networking Identity Manager Reference: https://aprico-media.com/posts/2456 https://www.blockmodule.com/archives/2874 https://applica.info/windows10-network-can-not-display http://arctica.sakura.ne.jp/cent/archives/5502

Install Gnome to Ubuntu Server 20.04 and 18.04

Install Gnome to Ubuntu Server 20.04 and 18.04 updating the repositories and package lists     sudo apt-get update && sudo apt-get upgrade Install the tasksel manager utility     sudo apt-get install tasksel Run program,     sudo tasksel

Webmin Install on Ubuntu Server 18.04

Webmin Install on Ubuntu Server 18.04   1. Add new repository     $ sudo nautiluse          Edit /etc/apt/sources.list           Add below line to the bottom of the file           deb http://download.webmin.com/download/repository sarge contrib           Save file and exit editor. 2. Add the Webmin PGP key. To let system      wget http://www.webmin.com/jcameron-key.asc      $ sudo apt-key add jcameron-key.asc 3. Update list of packages to include Webmin repository      $ sudo apt-get update 4. Install Webmin. $ sudo apt install webmin $ sudo reboot   5. Run Webmin           https://<ip_address>:10000 Output Webmin install complete. You can now login to https://your_server_ip:10000 as root with your root password, or as any user who can use `sudo`. R...

Ubuntu 20.04 with remote-desktop xrdp

xrdp remote-desktop setup 1. Install xrdp to Ubuntu 20.04 sudo apt install xrdp 2. Auto start setup after reboot sudo systemctl enable xrdp 3. Check Status sudo systemctl status xrdp 4. Firewall Setup Install gufw -GUI firewall 5. Add shell script to show side menu on Ubuntu desktop Add below text file and save as " enhanced-session-mode. sh " in home folder. --------------- script start ------------------ #!/bin/sh # Add script to setup the ubuntu session properly if [ ! -e /etc/xrdp/startubuntu.sh ]; then cat >> /etc/xrdp/startubuntu.sh << EOF #!/bin/sh export GNOME_SHELL_SESSION_MODE=ubuntu export XDG_CURRENT_DESKTOP=ubuntu:GNOME exec /etc/xrdp/startwm.sh EOF chmod a+x /etc/xrdp/startubuntu.sh fi sed -i_orig -e 's/startwm/startubuntu/g' /etc/xrdp/sesman.ini # rename the redirected drives to 'shared-drives' sed -i -e 's/FuseMountName=thinclient_drives/FuseMountName=shared-drives/g' /etc/xrdp/sesman.ini # Changed the allowed_users se...

Ubuntu restore specific folder and files

Ubuntu Linuxバックアップユーティリティを使用して個別のファイルをリストアする方法 https://www.dell.com/support/article/jp/ja/jpbsd1/sln265892/ubuntu-linux%E3%83%90%E3%83%83%E3%82%AF%E3%82%A2%E3%83%83%E3%83%97%E3%83%A6%E3%83%BC%E3%83%86%E3%82%A3%E3%83%AA%E3%83%86%E3%82%A3%E3%82%92%E4%BD%BF%E7%94%A8%E3%81%97%E3%81%A6%E3%83%87%E3%83%ABpc%E3%82%92%E3%83%90%E3%83%83%E3%82%AF%E3%82%A2%E3%83%83%E3%83%97%E3%81%99%E3%82%8B%E6%96%B9%E6%B3%95-%E8%8B%B1%E8%AA%9E-?lang=ja

Mount Drive in Ubuntu

Mount Drive in Ubuntu Open "Disks" Edit Mount Options Automatic Mount Options - OFF      - or - Open "GParted"      - then - 1. Go to folder 2. Open as administrator 3. Change Permissions Mount Location: /media               Mount point for removable media /mnt                  Mount point for mounting a filesystem temporarily

Samba Server User and Group Setup and Permission

sambaサーバによるファイル共有環境の構築手順 https://www.virment.com/config-sambaserver/ Samba user must have an account on Ubuntu. Create a user in Ubuntu then make the following, 1. Add Samba User sudo pdbedit -a user-name 2. Change Password sudo smbpasswd user-name          -for existing user sudo smbpasswd user-name          -for new user 3. Add Group sudo groupadd group-name 4. Add User to Group sudo gpasswd -a user-name group-name 5. Edit Samba setting file, etc/samba/smb.conf 6. Ubuntsu file permission setting

Open Snipping Tool and take a screenshot

Windows 標準 画面キャプチャーツール https://support.microsoft.com/en-us/help/4027213/windows-open-snipping-tool-and-take-a-screenshot

Start Application from MS Access

Shell Function Shell 関数 - Access - Office Support - Office 365 実行可能プログラムを実行し、成功した場合はプログラムのタスク ID を示す Variant (Double) を返し、それ以外の場合は 0 を返します。 -------------------------------------------------------------- 構文: Shell( pathname [, windowstyle ] )           Shell 関数の構文には、次の引数があります。 引数                説明 pathname        必須。バリアント型 (文字列)。実行するプログラム名と必要な引数または コマンド ライン スイッチ。ディレクトリまたはフォルダーとドライブを含めることができます。Macintosh では、アプリケーション名ではなく、MacID 関数を使用してアプリケーションの署名を指定できます。次の例では、Microsoft Word の署名を使用します。Shell MacID("MSWD") windowstyle   省略可能。プログラムを実行するウィンドウのスタイルに対応する Variant (Integer)。windowstyle を省略すると、プログラムはフォーカス付きの最小化表示で起動されます。Macintosh (7.0 以降のシステム) の場合、windowstyle は、アプリケーションの実行時にアプリケーションにフォーカスを移動するかどうかのみを指定します。 windowstyle 名前付き引数には次の値があります。 定数                             値       説明 vbHide    ...