Friday, November 29, 2013
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
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
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
>
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 位元)
Friday, November 22, 2013
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
commands:
sudo killall ssh
http://askubuntu.com/questions/218797/cant-connect-to-my-ssh-remotelynetstat -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
連入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
Friday, July 5, 2013
ssh tunnel求生手冊
http://www.ubuntu-tw.org/modules/newbb/viewtopic.php?viewmode=compact&topic_id=17538&forum=7
Monday, July 1, 2013
浮動IP申請改為固定IP的方法:
http://briian.com/?p=4756
@中華電信
http://service.hinet.net/2004/adslstaticip.php
@鳥歌
http://linux.vbird.org/
@domain name
http://briian.com/?p=7203
@一個台灣的自由網域,成立於1998年,至今也提供服務了12年,且"永久免費"!無論是要用來建立自己的網站、部落格及論壇,甚至商業用途與非商業用途都能免費申請到自己的網域。
http://blog.xuite.net/jason_kuso/kuso/39506759-%E3%80%90%E5%85%8D%E8%B2%BB%E7%B6%B2%E5%9F%9F%E3%80%91%E4%B8%80%E5%88%86%E9%90%98%EF%BC%8C%E7%94%B3%E8%AB%8B%E4%B8%80%E5%80%8B%E5%B1%AC%E6%96%BC%E8%87%AA%E5%B7%B1%E7%9A%84%E8%87%AA%E7%94%B1%E7%B6%B2%E5%9F%9F-TWBBS.org
@防火牆
http://wiki.ubuntu-tw.org/index.php?title=%E9%98%B2%E7%81%AB%E7%89%86
Friday, June 28, 2013
HOWTO: Remote Wake-up of Ubuntu Linux Machine
I use Ethernet LAN Wake-up feature to do this. Here is how I did it.
http://kmmr.pixnet.net/blog/post/35347778-wake-on-lan%E5%B7%B2%E7%B6%93%E4%B8%8D%E6%98%AF%E7%94%9A%E9%BA%BC%E6%96%B0%E9%AE%AE%E4%BA%8B%EF%BC%8C%E8%A6%81%E8%83%BDwake-on-wan
http://karuppuswamy.com/wordpress/2009/11/24/howto-remote-wake-up-of-ubuntu-linux-machine/
[Ubuntu] 設定 Wake On Lan 網路喚醒
http://calos-tw.blogspot.tw/2011/03/ubuntu-wake-on-lan.html
1. 先確定 ubuntu-tw.org 活力旺盛
ping -c 5 ubuntu-tw.org
http://www.ubuntu-tw.org/modules/newbb/viewtopic.php?topic_id=50840
1. 先確定 ubuntu-tw.org 活力旺盛
ping -c 5 ubuntu-tw.org
http://www.ubuntu-tw.org/modules/newbb/viewtopic.php?topic_id=50840
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 compute, storage, networking, 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)的概念,
Xrdp bug fixed: remote control works now.
https://bugs.launchpad.net/ubuntu/+source/xrdp/+bug/846407
Wednesday, June 26, 2013
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
@
@
@
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
@ 花了六個小時這一篇文章有作用!
#http://www.simon-cozens.org/content/reading-mail-thunderbird
@read file :
http://stackoverflow.com/questions/7773655/importing-a-file-in-javascript-using-ubuntu
@read file :
http://stackoverflow.com/questions/7773655/importing-a-file-in-javascript-using-ubuntu
@
- 下載附加元件到你的電腦,除非它已經存在。
- 其中一個附加元件的來源是 Mozilla 的 附加元件網站。
- 在 Thunderbird 中,開啟 工具 | 附加元件。
- 點選「齒輪」圖案右上方搜尋的右邊然後 從檔案安裝附加元件...
- 瀏覽到附加元件安裝檔所在位置,選擇它,點選 開啟。
@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');
}
Tuesday, June 18, 2013
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(4, null);
Subscribe to:
Posts (Atom)