建立方法如下:
$ cat ubuntu-12.10-desktop-amd64.iso > /dev/sdb
注意, sdb 是 usb 裝置的位置,實際位置依狀況會有所不同。
接下來,就可以進入 BIOS 更改開機順序為 USB 優先,然後插入 USB 之後就可以開始進行安裝了!
$ cat ubuntu-12.10-desktop-amd64.iso > /dev/sdb
sudo apt-get install python-software-properties sudo add-apt-repository ppa:chris-lea/node.js sudo apt-get update sudo apt-get install nodejs npm
var http = require('http');
http.createServer(function (req, res) {
res.writeHead(200, {'Content-Type': 'text/plain'});
res.end('Hello World\n');
}).listen(1337, '127.0.0.1');
console.log('Server running at http://127.0.0.1:1337/');
node server.js Server running at http://127.0.0.1:1337/
sudo apt-get install libmysql-java #取得 mysql java 連接器 CLASSPATH=$CLASSPATH:/user/share/java/mysql.jar #設定自訂變數 CLASSPATH export CLASSPATH #將自定變數 CLASSPATH 設為環境變數
import java.sql.*;
public class JDBCMySQL {
public static void main(String[] args) {
String driver = "com.mysql.jdbc.Driver";
String url = "jdbc:mysql://localhost:3306/phpbb";
String user = "root";
String password = "5.ru8ck6";
try {
Class.forName(driver);
Connection conn =
DriverManager.getConnection(url,
user, password);
if(conn != null && !conn.isClosed()) {
System.out.println("資料庫連線測試成功!");
conn.close();
}
}
catch(ClassNotFoundException e) {
System.out.println("找不到驅動程式類別");
e.printStackTrace();
}
catch(SQLException e) {
e.printStackTrace();
}
}
}
sudo apt-get install phpmyadmin
Include /etc/phpmyadmin/apache2.conf
sudo apt-get install imagemagick
cd /usr/src sudo tar zxvf /download/epsoneplijs-0.4.1.tgz cd epsoneplijs-0.4.1/ sudo ./configure sudo make sudo make install sudo mkdir -p /usr/share/cups/model/foomatic-ppds/Epson/ sudo cp -av ../foomatic_PPDs/Epson-EPL-*-cups.ppd.gz /usr/share/cups/model/foomatic-ppds/Epson/ sudo cp foomatic/driver/epl6200l.xml /usr/share/foomatic/db/source/driver/ sudo cp foomatic/opt/epsonepl-* /usr/share/foomatic/db/source/opt/ sudo cp foomatic/printer/Epson-EPL-6200L.xml /usr/share/foomatic/db/source/printer/ sudo cp ijs_server_epsonepl /usr/bin/ sudo /etc/init.d/cups restart
sudo apt-get install flex bison
flex -h
bison -h