SE の雑記

SQL Server の情報をメインに Microsoft 製品の勉強内容を日々投稿

Archive for the ‘Linux’ tag

ワイルドな縄神を作ってみる

leave a comment

ぎたぱそせんせーの


のつぶやきを拝見し、そういえば、「nawagami ドメイン用の証明書ないな~」と思い、Let’s Encrypt のワイルドカード証明書を Ubuntu の Windows Subsystem for Linux (WSL) で作成した際のメモを。

あたりを見ておくとできるかと。
本タイトルの投稿を書きたくてやってみたとも言います(
Read the rest of this entry »

Written by Masayuki.Ozawa

7月 4th, 2018 at 10:03 pm

Posted in その他

Tagged with

Ubuntu Desktop の VS Code で SQL Server にクエリを実行してみる

one comment

VS Code の Extension を見ていたら「vscode-mssql」というものが出ていました。
VS Code なので、Ubuntu Desktop でも動くのだろうなと思って試してみた内容を。

Ubuntu Desktop で試していますが、VS Code がインストールできる環境であれば、どの環境でも実行できるかと。

Read the rest of this entry »

Written by Masayuki.Ozawa

7月 4th, 2016 at 9:44 am

Posted in Linux

Tagged with

Windows 上での Bash 実行についてあとで見るメモ – 初回リリース後 –

leave a comment

Windows 上での Bash 実行についてあとで見るメモ の初回リリース後の情報のメモを
Read the rest of this entry »

Written by Masayuki.Ozawa

4月 7th, 2016 at 10:18 pm

Posted in Linux

Tagged with

Windows 上での Bash 実行についてあとで見るメモ

one comment

Build に合わせて情報が出てきたものですが。
われらが、ぺんぺん師匠がまとめてくださっています。ぺんぺん師匠、まじ、ぺんぺん。
Windows で Ubuntu バイナリ(bash)が動作することの概略

Windows 10でUbuntuのBashが動作可能に?
[速報]マイクロソフト、BashシェルをWindowsに搭載。Emacs、VT100などサポート。Build 2016

 

詳細はこちら。
CommandLine-Documentation
BASH Running in Ubuntu on Windows
Run Bash on Ubuntu on Windows
Ubuntu on Windows — The Ubuntu Userspace for Windows Developers
Developers can run Bash Shell and user-mode Ubuntu Linux binaries on Windows 10
開発者がWindows 10でBashシェルとユーザー モードのUbuntu Linuxバイナリを実行可能に

 

現状は、Ubuntu 14.04 LTS となっているようですが、Ubuntu 16.04 LTS への置き換えは行われるようですね。
apt でパッケージ入れたりと、Windows 上で Ubuntu 動いている感じで環境整えられるんですね。

今後の情報は、Windows Command Line  を見ておくとよさげです。

Channel9 の Running Bash on Ubuntu on Windows! がデモも含まれていておすすめです。
vi / gcc / Ruby の実行などが行われているデモが確認できるかと。

仕組みとしては以下のスライドが基本かと。

Windows 上で、Ubuntu のユーザーモード(ユーザーランド)が実行され、ネイティブの Linux のバイナリが実行できるようになっています。
システムコールについては、Windows のものをマッピングすることで、動作するようですね。

image

Linux Command Line on Windows / Windows Command Line Improvements (Day1) /  Windows Command Line Improvements (Day3) でも、このあたりの話があるようですので、ビデオが公開されるのをまとうかと。

Read the rest of this entry »

Written by Masayuki.Ozawa

3月 31st, 2016 at 1:49 am

Posted in その他

Tagged with

Linux の sqlcmd でセキュリティ接続 (-E) を使用してみる

leave a comment

昨年、Linux 版の sqlcmdや BCP の提供が開始されました。
Azure SQL Database: SQLCMD and BCP on Ubuntu Linux

これらのツールでは、セキュリティ接続 (-E オプション) がサポートされています。
image

Linux 版の場合、どのように動作するのかが気になって、Linux の勉強と合わせて触ってみた際のメモを。
Linux が理解できていないので、いくつかの手順が間違っているかもしれませんが…。

Linux は Ubuntu Server 14.04 を使用して検証を行っています。

Read the rest of this entry »

Written by Masayuki.Ozawa

3月 27th, 2016 at 1:04 pm

Posted in SQL Server

Tagged with ,