當你分享的你的 Linux 使用者帳戶,讓其他使用者存取你的電腦
例如登入你的 FTP (不提供匿名登入)
你便需要提供你的使用者名稱及密碼給其他使用者
同時會讓你的系統帶來危險,如果對方使用其他正在執行的 Daemon 例如 SSH
When you want to share your Linux user account to allow other user to access your computer
For example, login your FTP (Ignore the anonymous login)
You will provide the user account name and password for other user.
However, on that time your system will be in danger if the user wants to access to your computer with other daemon, such as SSH.
透過錯誤經驗,分享科技與遊戲當中的技術,提醒自己及瀏覽此網誌的人,避免踏進相同的陷阱。
本網誌只提供技術概要及合法軟件連結(如有)。
如閣下因下載、安裝、設定資料等操作,導致任何損失,請自行承擔風險及處理,在下不會負責。
2011-08-21
2011-08-11
2011-08-09
在 Linux 中將光碟資料轉換成 ISO 檔案 (Convert CD/DVD ROM to ISO file in Linux)
光碟很容易受到物理損壞導致資料遺失
若果光碟所保存的資料只是一堆獨立檔案,只需要將它們複製至硬碟中便可以保存
但若果那是一隻安裝光碟,隨便將檔案複製,檔案資料有機會不能正常運作
若果能夠建立 ISO 檔案,便可以隨時透過映像檔錄製光碟
Disc is easy to lose data if taking physical damages
If the disc is store with data files independently, just copy the files to the harddisk to backup the data
However, if the disc is an install disc, although the files are copied, some of them cannot be functioned
If back up a disc with an ISO file, we can write a disc on any time with any disc writer
若果光碟所保存的資料只是一堆獨立檔案,只需要將它們複製至硬碟中便可以保存
但若果那是一隻安裝光碟,隨便將檔案複製,檔案資料有機會不能正常運作
若果能夠建立 ISO 檔案,便可以隨時透過映像檔錄製光碟
Disc is easy to lose data if taking physical damages
If the disc is store with data files independently, just copy the files to the harddisk to backup the data
However, if the disc is an install disc, although the files are copied, some of them cannot be functioned
If back up a disc with an ISO file, we can write a disc on any time with any disc writer
2011-07-30
利用 GRUB2 讀取 Ubuntu ISO (Using GRUB2 to load Ubuntu ISOs)
每次安裝新系統都要燒錄光碟吧……很浪費呢……
用外置裝置吧……要將裝置中的資料備份,再格式化裝置,再將映像檔寫入……
但若果沒有以上的裝置,哪如何安裝新系統?
If you want to install a new system to your harddisk,
You need write a install disc, it is a little bit waste.
Use external device ... you need to backup the data in this external device,
format the external device, build the image to the external device ...
However, if you don't have these devices, how could you install a new system ?
用外置裝置吧……要將裝置中的資料備份,再格式化裝置,再將映像檔寫入……
但若果沒有以上的裝置,哪如何安裝新系統?
If you want to install a new system to your harddisk,
You need write a install disc, it is a little bit waste.
Use external device ... you need to backup the data in this external device,
format the external device, build the image to the external device ...
However, if you don't have these devices, how could you install a new system ?
Labels:
Bootloader
,
BURG
,
GRUB2
,
Linux
,
Ubuntu
2011-07-27
2011-07-11
實用的 7-Zip 指令
7-Zip 是一種跨平台、開放源碼、免費、強大的壓縮工具
但是,7-Zip 只在 Windows 提供界面,若使用其他作業系統,例如 Linux 及 Macintosh 便沒有界面
當然你仍然可以使用其他具有界面,能整合 7-Zip 的壓縮工具
但若果你在完全沒有用戶界面的情況下,如何使用 7-Zip 壓縮資料?
但是,7-Zip 只在 Windows 提供界面,若使用其他作業系統,例如 Linux 及 Macintosh 便沒有界面
當然你仍然可以使用其他具有界面,能整合 7-Zip 的壓縮工具
但若果你在完全沒有用戶界面的情況下,如何使用 7-Zip 壓縮資料?
2011-06-29
利用 Java 發送 HTTP POST 請求 (Using Java to send HTTP Request with POST method)
import java.io.FileOutputStream; import java.io.IOException; import java.io.InputStream; import java.io.OutputStreamWriter; import java.net.URL; import java.net.URLConnection;
Labels:
Java
,
programming
2011-06-06
讓 Spreadsheet Excel Writer 的字串斷行 (Line Break in Spreadsheet Excel Writer)
先編寫一個使用 Spreadsheet Excel Writer 輸出 Excel 檔案的 php 文件
並在儲存格中加入 \n 來將字串
Write a simple PHP file using Spreadsheet Excel Writer to export Excel file
並在儲存格中加入 \n 來將字串
Write a simple PHP file using Spreadsheet Excel Writer to export Excel file
Labels:
Apache OpenOffice
,
Excel
,
LibreOffice
,
OpenOffice.org
,
PEAR
2011-04-04
2011-03-23
在 OpenOffice.org Calc 重覆列印列或欄 (Repeat printing row(s) or column(s) in OpenOffice.org Calc)
格式 -> 列印範圍 -> 編輯
選取合適的範圍、重覆的列或欄,然後按確定
但有時會出現錯誤
Format -> Print Ranges -> Edit
Select the suitable range, repeat row(s) or column(s), then press OK
However, sometimes an error will occur
Labels:
OpenOffice.org
2011-03-09
恢復 Ubuntu 的音量控制台 (Restore Ubuntu Volume Control Panel)
當升級 Ubuntu 系統後,有機會遺失音量控制台的快速啟動
雖然可以從 系統 > 偏好設定 > 聲音 來設定音量
這方法雖然可行,但只調整音量的情況下,顯得比較繁複
Sometimes after Upgrade your Ubuntu System, Volume Control Panel will be lost.
Although you can configure your System Volume in System > Preferences > Sound Preferences,
It is a tedious method that only increase, decrease or mute the volume.
雖然可以從 系統 > 偏好設定 > 聲音 來設定音量
這方法雖然可行,但只調整音量的情況下,顯得比較繁複
Sometimes after Upgrade your Ubuntu System, Volume Control Panel will be lost.
Although you can configure your System Volume in System > Preferences > Sound Preferences,
It is a tedious method that only increase, decrease or mute the volume.
2011-02-24
使用 Java 上載檔案至 FTP 伺服器 (Use Java to upload file to FTP Server)
import java.io.DataOutputStream; import java.io.File; import java.io.FileInputStream; import java.io.IOException; import sun.net.TelnetOutputStream; import sun.net.ftp.FtpClient;
Labels:
FTP
,
Java
,
programming
2011-02-05
武器 VS Nemesis (Weapon VS Nemesis)
遊戲中正規武器對 Nemesis 的傷害數值
Labels:
Bio Hazard 3
,
Game
,
Resident Evil 3
2011-01-11
為 Ubuntu 增加字型 (Add font types in Ubuntu)
將字型檔案放置在 /usr/share/fonts/truetype 中
不過為了容易整理文件,建議先在 /usr/share/fonts/truetype 中建立一個資料夾
不過為了容易整理文件,建議先在 /usr/share/fonts/truetype 中建立一個資料夾
2011-01-01
讓 Windows Bootloader 載入 GRUB
為避免格式化 Ubuntu 後導致不能起動 Windows ,所以不讓 GRUB 成為 MBR
但使用 Windows 預設的 Bootloader 又不能列出非 Windows 的作業系統,所以需要改寫 C:\boot.ini
注意:胡亂改寫 C:\boot.ini 的會導致所有作業系統不能起動
If you use GRUB as MBR, after format Ubuntu partition GRUB will erase also
However, after re-build Windows Bootloader as MBR, GRUB2 will be replaced, and Ubuntu cannot be started for booting
So, how could let Windows Bootloader as MBR and boot up Ubuntu after GRUB2 is replaces
但使用 Windows 預設的 Bootloader 又不能列出非 Windows 的作業系統,所以需要改寫 C:\boot.ini
注意:胡亂改寫 C:\boot.ini 的會導致所有作業系統不能起動
If you use GRUB as MBR, after format Ubuntu partition GRUB will erase also
However, after re-build Windows Bootloader as MBR, GRUB2 will be replaced, and Ubuntu cannot be started for booting
So, how could let Windows Bootloader as MBR and boot up Ubuntu after GRUB2 is replaces
Labels:
Bootloader
,
GRUB2
,
Master Boot Record
,
MBR
,
Ubuntu
,
Windows
修復 Ubuntu 的 MBR (Recover Ubuntu GRUB as MBR)
GRUB 是一種出名的 Bootloader
但當 GRUB 被其他 Bootloader 覆蓋,如何重新讓 GRUB 成為 MBR ?
GRUB is a popular Bootloader.
However, how could we recover GRUB is covered by other Bootloader ?
但當 GRUB 被其他 Bootloader 覆蓋,如何重新讓 GRUB 成為 MBR ?
GRUB is a popular Bootloader.
However, how could we recover GRUB is covered by other Bootloader ?
Labels:
Bootloader
,
GRUB2
,
Linux
,
Master Boot Record
,
MBR
,
Ubuntu
修復 Windows 的 MBR (Recover Windows Bootloader as MBR)
若電腦系統曾經運行 Windows 與 Ubuntu 雙系統
當 Ubuntu 被格式化後,由於會連同 GRUB 一拼刪除,若果 MBR 被 Ubuntu 覆寫 MBR 不會引導 Windows 的 Bootloader
因此將會導致沒有 Bootloader 起動 Windows
若要重新起動 Windows 便需要修復 MBR 引導 Windows 的 Bootloader
If the computer run with Windows and UBunut 2 Systems
After you format Ubuntu, you should recover Windows Bootloader as Master Boot Record, otherwise you cannot boot to Windows Partition
You need to recover Windows Bootloader to boot the Windows Partition
當 Ubuntu 被格式化後,由於會連同 GRUB 一拼刪除,若果 MBR 被 Ubuntu 覆寫 MBR 不會引導 Windows 的 Bootloader
因此將會導致沒有 Bootloader 起動 Windows
若要重新起動 Windows 便需要修復 MBR 引導 Windows 的 Bootloader
If the computer run with Windows and UBunut 2 Systems
After you format Ubuntu, you should recover Windows Bootloader as Master Boot Record, otherwise you cannot boot to Windows Partition
You need to recover Windows Bootloader to boot the Windows Partition
Labels:
Bootloader
,
Master Boot Record
,
MBR
,
Windows
訂閱:
文章
(
Atom
)