sudo cp ~/.config/monitors.xml /var/lib/lightdm/.config
2014年2月4日 星期二
How To Setup Google Public DNS Servers In Ubuntu 12.10 / 13.04 Raring Ringtail
Google Public DNS was launched almost three years ago and today they are enhancing it with support for DNSSEC Validation which will provide better protection from DNS based attacks and make your DNS more secure by identifying and rejecting invalid responses from DNSSEC-protected domain.
This brief tutorial is going to show you how to change your ISP provided DNS server addresses in Ubuntu with Google Public DNS Server addresses.
For those of us who don’t know about DNS, it is a service which translates human-readable domain, (eg. facebook.com) into IP addresses so that they are accessible by computers. Without DNS, it will be very difficult do know the IP addresses of all the websites you visit daily. So, instead of typing 31.13.74.7, which might be what your computer sees for facebook.com, you can just type facebook.com, which is much easier to remember than numbers.
To to take advantage of all the benefits of Google Public DNS service in Ubuntu, you will want to switch your current DNS provider to Google, and this brief tutorial is going to show you how to do it.
To get started, press Ctrl – Alt – T on your keyboard to open the terminal. When it opens, run the commands below to open the resolver file.
sudo gedit /etc/dhcp/dhclient.conf

Finally, find the line shown below on your machine and change it to look like the highlighted line below. Google Public DNS primary server IP address is, 8.8.8.8and the secondary IP address is 8.8.4.4
prepend domain-name-servers x.x.x.x, y.y.y.y;

Save the file and you’re done. Restart your computer and you’re done.
You can also use the Ubuntu GUI tool the make the switch. To do that, go toSystem Settings –> Network or Right-click Network Manager applet and select ‘Edit Connections’
Then edit the connection, select IPv4 Settings tab and change the connection method to ‘Automatic (DHCP) address only’
Than type Google Public Address into the DNS servers field as shown above.
Enjoy!
Ubuntu Mac Theme
Mac OS X Lion Theme and Icons:
Install Mac Cursors copy the following commands in the Terminal:
Terminal Commands:
|
|---|
sudo add-apt-repository ppa:noobslab/themes
|
sudo apt-get update
|
sudo apt-get install mac-icons-noobslab
|
sudo apt-get install mac-ithemes-noobslab
sudo apt-get install mac-icons-v2-noobslab
sudo apt-get install mac-ithemes-v2-noobslab
|
Install Mac Cursors copy the following commands in the Terminal:
Terminal Commands:
|
|---|
wget -O mac-cursors.zip http://goo.gl/xh52J
|
sudo unzip mac-cursors.zip -d /usr/share/icons/ && rm mac-cursors.zip
|
cd /usr/share/icons/mac-cursors
|
sudo chmod +x install-mac-cursors.sh uninstall-mac-cursors.sh
|
./install-mac-cursors.sh
|
Wine link exe (雙擊exe檔自動由wine開啟)
So what i did was edit file associations via terminal:
type
then find
application/x-ms-dos-executable=
and add wine.desktop
type
Code:
gedit ~/.local/share/applications/mimeapps.list
application/x-ms-dos-executable=
and add wine.desktop
Ubuntu 12.04 Grub 開機選單修復
近來常常重灌 Windows…
主要原因是 Windows 下的電視棒安裝了 Windows Update 中的驅動版本造成數位電視無法搜尋到任何訊號;
另外是系統安裝時忘記將 BIOS 中的 SATA 設定切換成「AHCI」,
導致系統安裝完後再切換成 AHCI 變成無法進入系統而不斷重新啟動,
於是不斷的重灌…
可是 Windows 安裝完後就無法開機進入 Ubuntu,
因為開機的導引會被 Windows 洗掉,
這時得自行將 Grub 給裝回去才能使用。
目前查詢到兩個方法,
這兩個都有試過且都能用:
圖形化篇
可以參考 Boot-Repair 網頁的操作即可進行修復。
方法很簡單,
只要先加入 Boot-Repair 來源後,
再更新套件庫,
然後安裝該軟體,
最後執行 Boot-Repair 工具就行了。
命令列篇
這是從中國找到的修復方式。
首先得找到你的 Linux 放置的磁區代號,
使用下列命令查看:
例如我的是於「sda2」,
那就將它進行掛載動作。
掛載至「/mnt」之下:
緊接著是將 grub 進行安裝:
好了之後重開機應該就能看到 grub 選單了。
不過進 Linux 系統後還是進行 Grub 更新會比較好:
另外是系統安裝時忘記將 BIOS 中的 SATA 設定切換成「AHCI」,
導致系統安裝完後再切換成 AHCI 變成無法進入系統而不斷重新啟動,
於是不斷的重灌…
可是 Windows 安裝完後就無法開機進入 Ubuntu,
因為開機的導引會被 Windows 洗掉,
這時得自行將 Grub 給裝回去才能使用。
目前查詢到兩個方法,
這兩個都有試過且都能用:
- 利用圖形化工具 Boot-Repair
- 使用命令列操作
圖形化篇
可以參考 Boot-Repair 網頁的操作即可進行修復。
方法很簡單,
只要先加入 Boot-Repair 來源後,
再更新套件庫,
然後安裝該軟體,
最後執行 Boot-Repair 工具就行了。
命令列篇
這是從中國找到的修復方式。
首先得找到你的 Linux 放置的磁區代號,
使用下列命令查看:
| sudo fdisk -l |
例如我的是於「sda2」,
那就將它進行掛載動作。
掛載至「/mnt」之下:
| mount /dev/sda2 /mnt |
緊接著是將 grub 進行安裝:
| grub-install --root-directory=/mnt /dev/sda |
不過進 Linux 系統後還是進行 Grub 更新會比較好:
| lancer@lancer-desktop:~$ sudo update-grub |
Ubuntu的挑戰
用了Ubuntu幾天, 一個字 "爽"
事源是忽然覺得ubuntu很型, 就安裝了...
作為Ubuntu菜鳥, 當然遇到了不少困難, 不過都一一解決, 還把它裝上Mac Theme. 希望未來買了筆電也裝上Ubuntu!
事源是忽然覺得ubuntu很型, 就安裝了...
作為Ubuntu菜鳥, 當然遇到了不少困難, 不過都一一解決, 還把它裝上Mac Theme. 希望未來買了筆電也裝上Ubuntu!
訂閱:
文章 (Atom)

