2015-05-08

Ubuntu 安裝 Gitlab

阿舍想找一套像 Github 這樣的軟體來用,然後,怎麼找都找不到 Github 有開放它們家的程式碼,所以,最後,阿舍就找到 Gitorious 這一套,不過,它最近被 Gitlab 給併走了,因此,最後的最後,阿舍是安裝了 Github 來試試,就順手把 GitLab 的安裝方式給寫了下來哩 !



阿舍這篇文主要是依照 GitLab 官網下載頁 的說明和自己的操作的經驗來寫的,就阿舍這樣安裝下來的情況來說,不算困難,只是花費的時間會比較久一點點哩 ! 因為需要安裝和設定的東西不少,不過,不用緊張,GitLab 都有寫成自動化產生了,就是要等它跑完哩 !

在開始安裝 GitLab 之前,需要先確定要安裝 GitLab 的機器上有安裝 OpenSSH Server,如果還沒有安裝的話,請用下面這一行指令安裝,而如果需要進一步設定,可參考阿舍寫的這一篇囉 !

$ sudo apt-get install openssh-server

另外,如果要讓 GitLab 可以寄送郵件的話,就需要安裝 SMTP 服務,就 GitLab 官網的說明有提到,建議使用 Postfix,而不要使用 Exim,GitLab 似乎和 Exim 不太合的樣子,有關 Postfix 設定的部份,因為有點長,阿舍就不放進這篇了,請參考阿舍寫的這篇設定方式囉 !

執行完 dpkg  指令後,還要執行配置的指令
接下來,就要開始進行 GitLab 的安裝動作了,請到這裡下載安裝檔,這個安裝檔不算小,阿舍下載的時候,大概是快 300M,所以,要稍微的等一下,等下載完成後,請執行下面的指令來安裝 (下列指令的檔案名稱,請依實際下載來的檔名做變更 ...),執行之後,要花一點時間。

$ sudo dpkg -i gitlab-ce_7.10.1~omnibus.2-1_amd64.deb

 $ sudo gitlab-cli reconfigure

等跑完之後,阿舍的畫面上是出現了像上那張圖的訊息,說是還沒有安裝成功,還需要執行上面第二行的指令來進行配置,所以,阿舍就執行了那一行指令,接著,阿舍的整個畫面就一直刷一直刷,跑了好一會之後才結束,然後,終於,阿舍可以登入了哩 ! 直接用瀏覽器打開你的電腦的 IP 就會出現 GitLab 的登入畫面,預設的帳號可以在 GitLab 官網的下載頁找到,阿舍安裝時的帳號密碼是下面這一組,不過,還是去看官網的比較準哩 ! 第一次登入會需變更密碼的。

Username: root
Password: 5iveL!fe

阿舍安裝的這個 Gitlab 版本是 CE 版,也就是社群版本,GitLab 另外還有 Enterprise 版本是要收費的,主要的差別是可以下載 Git Enterprise 版本及較好的技術支援,另外,GitLab 也有提供像 Github 那樣的線上服務,而且,據說 Privat Respository 是免費的,但是,阿舍還沒試過,就不確定情況如何,提供參考囉 ! ....

GitLab 開專案後的畫面



問題還是沒解決嗎 ?? 這裡有更多的 Ubuntu 相關教學可以參考哩 ...
買本阿舍寫的電子書帶走 - Ubuntu 指令新手馬上會用到的 35 個技法


關於阿舍

好文不藏私,請多分享囉!! ^^=

7 則留言 :

Jack Wang 提到...

謝謝您的詳細說明喔!

Field engineer 提到...

hi

Field engineer 提到...

Hi,

Certified data center professional

A certified data center expert must understand the design life cycle of the data center and the various stages included. It is your responsibility to follow the levels of redundancy for the design and configuration of the data center. They must be able to measure the energy efficiency of the data center and find innovative solutions to improve it.

Certified data center professional

learnquranonline 提到...

I am a Learner at Online Quran Teachers all are experienced and professional teachers. OnlineQuranTeachers aim is to teach the Quran with all tajweed rules perfectly benefits of speaking arabic

Vincent Patrick 提到...

It is a great post. Microsoft Dynamics 365 Business Central is a business management solution for small and mid-sized organizations that automates and streamlines business processes and helps you manage your business. Microsoft Business Central is the new name for Microsoft Dynamics NAV 2018. Highly adaptable and rich with features, Business Central enables companies to manage their business, including finance, manufacturing, sales, shipping, project management, services, and more. Microsoft Dynamics Business Central brings the full power of Microsoft Dynamics NAV to the cloud. As such, D365 Business Central has at its foundation a set of trusted, proven technologies that have served 160,000 customers and millions of users worldwide.

Vincent Patrick 提到...

It is a great post. DocsKart hosts all the documents that are necessary to carry out the business transactions smoothly. This place will evolve over a period of time and soon there will be a day when the documents needs of SMEs will be fulfilled in one place.

Vincent Patrick 提到...

It is a fabulous post.
Till the year 2017 all unpaid and unclaimed dividends that have not been encashed for the past 7 years from the dividend declaration date may be transferred to a separate account maintained by IEPF.