Upgrade to Pro
— share decks privately, control downloads, hide ads and more …
Speaker Deck
Sign up for free
Menu
Search
Features
All features
Private URLs
Password Protection
Custom URLS
Scheduled publishing
Remove Branding
Restrict embedding
Deck Collections
Notes
Features
All features
Private URLs
Password Protection
Custom URLS
Scheduled publishing
Remove Branding
Restrict embedding
Deck Collections
Notes
Explore
Featured decks
Featured speakers
Programming
Technology
Storyboards
Explore
Featured decks
Featured speakers
Programming
Technology
Storyboards
Pricing
Search
Sign in
Sign up for free
Cygwin
Search
Sponsored
·
Your Podcast. Everywhere. Effortlessly.
Share. Educate. Inspire. Entertain. You do you. We'll handle the rest.
→
aben20807
August 16, 2018
Programming
12k
0
Share
Embed
Copy iframe code
Copy JS code
Copy link
Start on current slide
Cygwin
how to install cygwin and set up configuration.
aben20807
August 16, 2018
Transcript
18 slides
Cygwin Huang Po Hsuan 107.08.16 Photo by Samson Duborg-Rankin on
Unsplash
windows terminal? • 維基百科 https://zh.wikipedia.org/wiki/Cygwin • 可以執行 bash、fish,即在 Windows 下可以使用
Linux 終端機的指 令。可以使用 vim !!!! • 自由軟體,由 RedHat 維護,已有十幾年歷史,穩定。 2
用 Windows 是迫不得已的 (X 大部分遊戲、某些環境就只有 windows 可用.... 雖然可以用 wine,可是….懶 OuO
3
用 VirtualBox 模擬 Linux 就好? • 虛擬機器吃記憶體,且容量大。(個人認為致命傷) • Cygwin 標準安裝僅幾百
MB 左右 (後期會偏肥大,目前 我已用 8 點多 GB),它不是模擬器,當然執行時期⼀樣 會吃記憶體,不過很小幾乎可以忽略。 4
安裝 • 下載:Cygwin官網傳送門 https://www.cygwin.com/ 5
點開安裝檔 6
瘋狂下⼀步 OuO 7 會決定根目錄位置
下載網址強烈建議使用日本的鏡像站 • 比臺灣的快又穩定,臺灣加油啊 QuQ 8 http://ftp.jaist.ac.jp
建議安裝套件 • vim:文本編輯器 • gcc:c 語言編譯器 • g++:c++ 編譯器 •
make:Makefile 執行用 • cygrunsrv • gdb:debug 神器 • time:計時器 (Utils 類別) • man-pages-posix:使用 man 指令查看說明文件 9 • openssh • openssl • git:版本控制,我搭配 GitHub • wget:從網頁抓取資料 • curl:(同上) • astyle:C 家族程式碼格式工具
搜尋 vim vim vim vim 的安裝包並勾選 10
好了就安裝吧 • 會等有點久,先喝個茶,發個呆,上個網之類的 OuO 11
如果發⽣錯誤,換個網址再載⼀次 • 完成~ • 建議第⼀次安裝產⽣捷徑,如圖片中兩格都打勾 12
安裝新套件 • 若忘記或要安裝新套件可執行 setup-x86_64.exe • 而且不須再重找,只須找缺少部分即可 13
第⼀次開啟如圖,之後就不會了 14
終端機美化~~ ~~ ~~ ~~ 15 背景顏色 透明度 字型 & 大小
打開時視窗大小 中文顯示有問題請調整此處 游標設定
home 目錄位置 • 請去第 7 頁安裝的路徑尋找 16 安裝路徑\home\user D:\cygwin\home\user
快捷鍵設定 • 建立捷徑再加入快捷鍵就完美啦~~ XDD • 右鍵打開第 12 頁所產⽣捷徑的內容 17
參考資料 • 於Windows安裝Vim文字編輯器 http://home.gamer.com.tw/creationDetail.php?sn=2535747 • Cygwin 入門 - BASH on
Windows http://www.ubuntu-tw.org/modules/newbb/viewtopic.php?topic_id=47282 • 葉難-安裝Cygwin http://yehnan.blogspot.com/2015/02/cygwin.html • Stack Overflow-“-bash: gcc: command not found” using cygwin when compiling c? http://stackoverflow.com/questions/25705726/bash-gcc-command-not-found-using-cygwin-when-compiling-c • cygwin下如何安裝GCC http://b8807053.pixnet.net/blog/post/3612601 • 解决Cygwin中文乱码 http://www.cnblogs.com/duanguyuan/p/3569565.html • Cygwin安裝及SSH設定教學(上) https://ithelp.ithome.com.tw/articles/10079938 18
Other Decks in Programming
See All in Programming
선언형 햅틱 라이브러리 진동을 소개합니다
l2hyunwoo
1
310
Lambda durable functionsでHuman in the Loopを楽に…楽に……
har1101
2
300
Coding with AI: How to trust the storyteller (AWS Community Day Adria, Ljubljana 2026)
slobodan
0
140
TS 7.0 で baseUrl が使えなくなった今、パスエイリアスをどうするか
bicstone
2
630
S3 TablesのIcebergデータに、AIエージェントからアクセスしてみた / 20261016developersio2026joetsu-accessing-iceberg-in-s3tables-via-agent
kasacchiful
PRO
0
310
オーケストレーション記述言語 Katari
yukikurage
0
250
flutter_test のその先へ — Flutter アプリの LLM 機能に「評価」という品質保証を
kosukesaigusa
0
200
FactoryBotをやめればRSpecは速くなるのか?
yuta_onishi_97
0
1.7k
React Native에 현대적인 빌드 도구 더하기: Rollipop 구현기
leegeunhyeok
0
180
우리의 Nitro Modules는 당신의 Turbo Modules보다 아름답다
l2hyunwoo
0
260
TanStack Vue Query と Pinia Colada から学ぶ非同期状態の型設計
aoshi
0
660
作れるエンジニアから、価値を届けるエンジニアへ
ryunakayama
1
280
Featured
See All Featured
Visual Storytelling: How to be a Superhuman Communicator
reverentgeek
2
750
Public Speaking Without Barfing On Your Shoes - THAT 2023
reverentgeek
1
660
ピンチをチャンスに:未来をつくるプロダクトロードマップ #pmconf2020
aki_iinuma
128
56k
Amusing Abliteration
ianozsvald
1
390
Save Time (by Creating Custom Rails Generators)
garrettdimon
PRO
33
5.7k
Dealing with People You Can't Stand - Big Design 2015
cassininazir
367
27k
How to Grow Your eCommerce with AI & Automation
katarinadahlin
PRO
2
350
How STYLIGHT went responsive
nonsquared
100
6.4k
YesSQL, Process and Tooling at Scale
rocio
174
15k
The MySQL Ecosystem @ GitHub 2015
samlambert
251
13k
State of Search Keynote: SEO is Dead Long Live SEO
ryanjones
0
350
A better future with KSS
kneath
240
18k