Thursday, November 28, 2013

iptables



usage:iptables 設定入門
http://s2.naes.tn.edu.tw/~kv/iptables.htm

INPUT :封包為輸入主機的方向; 
OUTPUT :封包為輸出主機的方向; 
FORWARD:封包為不進入主機而向外再傳輸出去的方向; 
PREROUTING :在進入路由之前進行的工作; 
OUTPUT   :封包為輸出主機的方向; 
POSTROUTING:在進入路由之後進行的工作。 


Squid-over-ssh
http://bitsandchaos.wordpress.com/2008/04/20/squid-over-ssh/





SAMBA



http://linux.vbird.org/linux_server/0370samba.php


mount error 13 = Permission denied


-->it works.

Suggestion: indexing CIFS/SMB folders

recoll:

mount error(13): Permission denied


Browse a Samba or MS Windows share in Nautilus


To browse your Samba or MS Windows shares open Nautilus manager, and type the following in the address bar:
smb://delta/mp3


okular (indexing PDF file on ubuntu




http://askubuntu.com/questions/194139/whats-the-best-way-to-search-my-file-system-on-ubuntu-with-instant-results

PlayOnLinux

在 Ubuntu 上安裝 IE--成功篇(PlayOnLinux)

http://140.111.74.38/blog/post/2/662


So, I tried running PlayonLinux from terminal and this the output I got.


Microsoft Office 2010 won't work with PlayOnLinux 4.0.14


how to update 



wget -q "http://deb.playonlinux.com/public.gpg" -O - | sudo apt-key add -
sudo wget http://deb.playonlinux.com/playonlinux_maverick.list -O /etc/apt/sources.list.d/playonlinux.list
sudo apt-get update
sudo apt-get install playonlinux

Wednesday, November 27, 2013

wine



command
:

IE on Linux - Powered by Linie


>wine control

>
  1. sudo add-apt-repository ppa:george-edison55/george-edison
ppa:ubuntu-wine/ppa


7.18. How do I configure a proxy?

If you want to use a proxy server for all HTTP connections, simply set the http_proxy environment variable. On many Linux distributions, configuring a network proxy, e.g. with the Network Proxy tool, does this for you automatically.
Alternatively, you can configure a proxy in the registry. There are separate locations for wininet.dll and winhttp.dll.
For wininet, use regedit to add the following values to the[HKEY_CURRENT_USER\Software\Microsoft\Windows\CurrentVersion\Internet Settings] key:
"ProxyEnable"=dword:00000001 "ProxyServer"="proxy-server-address:port" 
At present, Wine's wininet.dll does not support proxy autoconfiguration (PAC) scripts.



Type in a terminal or press Alt+F2 and type wine uninstaller will give you access to the built in Add/Remove tool from wine. From there you can uninstall a program you have installed in a bottle.




播放保護內容的 Adobe Access 用戶端

  • Windows:Microsoft Windows XP (32 位元)、Windows Vista (32 位元和 64 位元) 或 Windows 7 (32 位元和 64 位元)
  • Mac OS:Mac OS X v10.6 或 v10.7 (32 位元和 64 位元)
  • Linux:openSUSE 11.3 或更新版本 (32 位元和 64 位元)、RHEL 5.6 或更新版本 (32 位元和 64 位元) 或 Ubuntu 10.04 或更新版本 (32 位元和 64 位元)
注意:Ubuntu Linux 需要 libhal (硬體抽象層)。請安裝 hal 以便播放受保護的內容。






10MAY/1271

Thursday, November 21, 2013

DNS



http://www.room362.com/blog/2009/3/10/ozymandns-tunneling-ssh-over-dns.html



[refer to http://blog.longwin.com.tw/2010/02/netstat-check-connect-2010/]
以下是一些實用的 netstat 語法,可以檢查主機的連線數量:
  • netstat -na
    顯示主機上所有已建立的連線。
  • netstat -an | grep :80 | sort
    顯示所有 port 80 的連線,並把結果排序。
  • netstat -n -p|grep SYN_REC | wc -l
    列出主機上有多少個 SYNC_REC,一般上這個數字應該相當低。
  • netstat -n -p | grep SYN_REC | sort -u
    同樣是列出 SYNC_REC,但不只

Wednesday, November 20, 2013

SSH server


http://chamibuddhika.wordpress.com/2012/03/21/ssh-tunnelling-explained/

Tor-orPort 9001



Running the Tor client on Linux/BSD/Unix


SSH


commands:
sudo killall ssh


http://askubuntu.com/questions/218797/cant-connect-to-my-ssh-remotely


netstat -nr
Kernel IP routing table
Destination     Gateway         Genmask         Flags   MSS Window  irtt Iface
0.0.0.0         192.168.1.1     0.0.0.0         UG        0 0          0 eth0
192.168.1.0     0.0.0.0         255.255.255.0   U         0 0          0 eth0
Find the gateway, for me it is 192.168.1.1. Next, try connecting to it through ssh:
ssh 192.168.1.1



try ssh -v to see at which point it stops. –

上班族ssh tunnel求生手冊

(利用SSH Tunnel 逃離 MIS 掌控魔爪


使用ping掃瞄子網路內的所有IP,並列出有回應的IP,不作進一步測試。

Install telnetd server

sudo apt-get install telnetd Restart inetd service:
sudo /etc/init.d/openbsd-inetd restart You should now be able to telnet to the server from Windows or Linux desktop system to Ubentu Linux telnet server. Type the following command to connect to Telnet server: $ telnet ubentu-linux-server-ip $ telnet 192.168.1.200 $ telnet ubentu.mydomain.com


http://superuser.com/questions/353935/ping-works-while-telnet-fails


http://stackoverflow.com/questions/9447226/how-to-close-this-ssh-tunnel


Zyxel Home: CHT

霸大
連入P883 數據機開啟
http://192.168.1.1 後出現登入訊息時,
請輸入 使用者名稱:cht
北區:密碼:chtnvdsl
中區:密碼:chtcvdsl
南區:密碼:chtsvdsl



 透過家用小烏龜Zyxel P880遠端啟動家中電腦的設定方法

http://forum.slime.com.tw/thread272674.html

Thursday, November 14, 2013

how to use Tibetan in ubuntu



https://sites.google.com/site/chrisfynn2/home/fonts/jomolhari

# apt-get install ttf-dzongkha


How to write the Tibetan script



線上翻譯:

英文 藏文

book: དེབ (deb)
book (H): ཕྱག་དེབ (phyag deb)
bookshop: དཔེ་ཚོང་ཁང (dpe tshong khang)
guidebook: ལམ་སྟུན་དེབ (lam stun deb)
pecha (Tibetan book): དཔེ་ཆ (dpe cha)
religious book: དཔེ་ཆ (dpe cha)
telephone book: ཁ་པར་ཨང་དེབ (kha par ang deb)

===================
藏文 翻譯
http://www.thlib.org/reference/dictionaries/tibetan-dictionary/translate.php


純藏文經論下載1
http://www.adisha.org/news_view.php?sn=247

Polipo proxy



Step 1:
http://www.stormfront.org/forum/t807851/

Friday, July 5, 2013

ssh tunnel求生手冊

http://www.ubuntu-tw.org/modules/newbb/viewtopic.php?viewmode=compact&topic_id=17538&forum=7

Thursday, June 27, 2013

Open Stack study

OpenStack: The 5-minute Overview



cloud computing technologists producing the ubiquitous open source cloud 

data centers looking to deploy large-scale cloud 


OpenStack: The Open Source Cloud Operating System


About OpenStack

OpenStack is a cloud operating system that controls large pools of compute, storage, and networking resources throughout a datacenter, all managed through a dashboard that gives administrators control while empowering their users to provision resources through a web interface.
Learn more about OpenStack's computestoragenetworking, take a tour of the dashboard, or dive in and learn how to get started with OpenStack today.


VMware提供OpenStack專案的外掛軟體,使得OpenStack的網路平台可認得VMware vSphere管理環境,以及Nicira的網路虛擬平台(Network Virtualization Platform)下執行的虛擬機器,並相容運作。




VMware在美國內外的目標卻是軟體市場兩個成長最快的領域:資料中心虛擬化雲端運算。


VMware的混合雲將包含自己的基礎架構即服務,客戶未來可將私有雲移轉到大規模的公有雲


Enstratius的雲端管理平台接23個雲端基礎架構服務,包括Amazon Web Services、Microsoft Windows Azure、Rackspace、Eucalyptus、HP Cloud、AT&T Synaptic Cloud、IBM SmartCloud、VMware vCloud Suite及OpenStack,最近一個則是代管於澳洲資料中心的CloudCentral雲端平台。


而雲端產品其實也漸漸冒出其他選擇,其中有3個是開放原始碼軟體,分別為與亞馬遜相容的Eucalyptus Systems、Citrix釋出的CloudStack,以及支持者眾的OpenStack,功能面直接挑戰許多業者的統一平台。

軟體就是服務(Software as a Service, SaaS)的概念,


ChromiumBrowserVsGoogleChrome (the difference)

http://code.google.com/p/chromium/wiki/ChromiumBrowserVsGoogleChrome


Xrdp bug fixed: remote control works now.

https://bugs.launchpad.net/ubuntu/+source/xrdp/+bug/846407

Wednesday, June 19, 2013

Filter Incoming Mail (Thunderbird)

https://developer.mozilla.org/en-US/docs/Extensions/Thunderbird



https://developer.mozilla.org/en-US/docs/Extensions/Thunderbird/HowTos



@Check the sample code here:

https://developer.mozilla.org/en-US/docs/Extensions/Thunderbird/HowTos/Common_Thunderbird_Extension_Techniques/Filter_Incoming_Mail


@how to read the message body?

http://forums.mozillazine.org/viewtopic.php?f=19&t=1699075

@ read this:
http://thunderbirddocs.blogspot.tw/2005/02/thunderbird-extensions-how-to-get-body.html

@ sample code:
http://forums.mozillazine.org/viewtopic.php?t=274891


@

nsIScriptableInputStream:


@

nsIMsgDBHdr



@

nsIMsgFolder


@ 花了六個小時這一篇文章有作用!





@
  1. 下載附加元件到你的電腦,除非它已經存在。
  2. 在 Thunderbird 中,開啟 工具 | 附加元件
  3. 點選「齒輪」圖案右上方搜尋的右邊然後 從檔案安裝附加元件...
  4. 瀏覽到附加元件安裝檔所在位置,選擇它,點選 開啟

@Content-Transfer-Encoding: base64


represented as a byte sequence of 8-bit-padded ASCII characters is encoded in MIME's Base64 scheme as follows:
TWFuIGlzIGRpc3Rpbmd1aXNoZWQsIG5vdCBvbmx5IGJ5IGhpcyByZWFzb24sIGJ1dCBieSB0aGlz
IHNpbmd1bGFyIHBhc3Npb24gZnJvbSBvdGhlciBhbmltYWxzLCB3aGljaCBpcyBhIGx1c3Qgb2Yg
dGhlIG1pbmQsIHRoYXQgYnkgYSBwZXJzZXZlcmFuY2Ugb2YgZGVsaWdodCBpbiB0aGUgY29udGlu
dWVkIGFuZCBpbmRlZmF0aWdhYmxlIGdlbmVyYXRpb24gb2Yga25vd2xlZGdlLCBleGNlZWRzIHRo
ZSBzaG9ydCB2ZWhlbWVuY2Ugb2YgYW55IGNhcm5hbCBwbGVhc3VyZS4=

Setting up an extension development environment





@thunderbird - extension - logging?


Code:
function logtest()
{
//var {Cc, Ci} = require("chrome");
//var Application = Cc["@mozilla.org/steelapplication;1"]
//                    .getService(Components.interfaces.steelIApplication);

var Application = Components.classes["@mozilla.org/steel/application;1"].getService(Components.interfaces.steelIApplication);
Application.console.log('Bam! : sslake test');
}


Thursday, June 13, 2013

java.sql.SQLException: No value specified for parameter 3


#Problem:
(1)
java.sql.SQLException: Duplicate key or integrity constraint violation message from server: "Duplicate entry '1' for key 'PRIMARY'"
(2)

java.sql.SQLException: No value specified for parameter 3
at com.mysql.jdbc.PreparedStatement.fillSendPacket(PreparedStatement.java:2368)
at com.mysql.jdbc.PreparedStatement.executeUpdate(PreparedStatement.java:1799)
at com.mysql.jdbc.PreparedStatement.executeUpdate(PreparedStatement.java:1667)




 pst = con.prepareStatement(sql);

  pst.setString(1"Rakesh");
  pst.setString(2"Kanwal");
  pst.setString(3"Delhi");
  pst.setString(4null);