Monday 6 June 2016

用 SSH client 連 Windows VirtualBox 裡的 Ubuntu

前言

本人所用的SSH Client 是MobaXTerm。但其它種類的Client 例如PuTTY也沒關係的。這篇文章並不會含蓋到我們用的SSH Client。主要是設定我們VirtualBox的Ubuntu OS 及 VirtualBox 本身的設定。

環境

電腦OS; Windows 7
VirtualBox 版本:Version 5.0.20 r106931
Ubuntu版本(安裝在VirtualBox上):Ubuntu 16.04 LTS (GNU/Linux 4.4.0-21-generic x86_64)
ubuntu-16.04-server-amd64.iso
=========================================



Step 1: 在Ubuntu安裝openssh-server


方法1. 下sudo apt-get install openssh-server
  ~$ sudo su -
  ~# sudo apt-get install openssh-server

方法2. 安裝系統時可以直接選擇安裝OpenSSH server
安裝Ubuntu的時後會跳出Software selection 這時後我們就可以選擇OpenSSH Server





Step 2: 設定VM的Port Forwarding 設定

改變VM的設定 



Step 3: 用你喜愛的SSH Client來連線吧!!!

預設的VirtualBox的VM連網路都是透過NAT的設定 它並不是向DHCP 伺服器要一個IP.所以其實Ubuntu的ip 外面是連不到的

你可以用ifconfig 去看ubuntu的內部ip會是10.0.x.x

在你的SSH Client 請用127.0.0.1 port 22去連你的Ubuntu VM吧

Friday 11 September 2015

Windows 8 / Windows 10 小設定

當你發現你的桌面上的捷徑的圖示有些變成白的 那麼你就需要清掉你的IconCache

cd /d %userprofile%\AppData\Local

attrib –h IconCache.db

del IconCache.db


Windows 8 / Windows 10 的刪檔的預設是直接進資源回收筒了 算是有點方便 但是也是有點不便 (有時後手賤不小心按到del的話可能就要到資源回收筒翻了)
若希望像windows xp / 7 一樣有確認的訊息視窗的話

資源回收筒 右鍵 / 內容 ,勾選 顯示刪除訊息視窗



想要windows 8 / windows 10 自動登入 (不要輸入密碼)
兩個方法

1. 在安裝的時後只輸入使用者名稱不輸入密碼

2.
A. Windows鍵 + R( 出現 執行 視窗)
B. 輸入 netplwiz & 按確定
C. 取消勾選 必須輸入使用者名稱和密碼,才能使用這台電腦


Wednesday 2 May 2012

SQL Server 2005 SSMSEE x64 Error 29506

start CMD prompt as Administrator and it'll finish the job

Reference: http://blogs.msdn.com/b/jonbox/archive/2008/01/06/error-29506-while-installing-sql-server-2005-ssmsee-x64.aspx

Sunday 5 February 2012

ESET NOD32 Antivirus Trail account registration

http://10minutemail.com/10MinuteMail/index.html

http://www.eset.eu/download/ess-trial-form

Tuesday 30 August 2011

Windows.Live.Messenger.14.0.8117.416

For people who don't like Windows Live Messenger 2011, Here's Windows Live Messenger 2010 for you.

Click here to download

Friday 28 January 2011

Register our application to AutoPlay dialog

The article from MSDN:Using and Configuring AutoPlay

Remove Blogger navigation bar

I know I don't usually write my blog. But today I changed my template because the old one really looks ugly. I didn't know why I picked that at the first place few years back.

After changing my template, I found out that the navigation bar from blogger is back!!! I forgot what I did before, so I ended up checking the CSS using Firefox + Firebug(best combination ever in my opinion). A picture is worth 1000 words. The highlighted is what you need to add.







Settings / Design / Edit HTML

Add the CSS code at the top of the template you chose.

#navbar-iframe { display: none !important;}


Save the template and you should see the magic :)))