2013年9月17日 星期二

How to open a file in terminal?


How can I open a file in my terminal, like nautilus does it? - Ask Ubuntu
http://askubuntu.com/questions/157942/how-can-i-open-a-file-in-my-terminal-like-nautilus-does-it

xdg-open — opens a file or URL in the user's preferred application

Switch default application
$ xdg-mime query default application/pdf
AdobeReader.desktop
$ xdg-mime default evince.desktop application/pdf
$ xdg-mime query default application/pdf
evince.desktop

[SOLVED] How to open files from terminal
http://ubuntuforums.org/showthread.php?t=823620
gnome-open mypicture.jpg




rpm2cpio

rpm2cpio <file> | cpio -di

rpm2cpio & cpio -- 如何將.rpm裡的檔案抽取出來 @ 小雞的故事 :: 痞客邦 PIXNET ::
http://chiakie.pixnet.net/blog/post/4934812-rpm2cpio-%26-cpio----%E5%A6%82%E4%BD%95%E5%B0%87.rpm%E8%A3%A1%E7%9A%84%E6%AA%94%E6%A1%88%E6%8A%BD%E5%8F%96%E5%87%BA%E4%BE%86

Using rpm2cpio
http://www.rpm.org/max-rpm/s1-rpm-miscellania-rpm2cpio.html

结合rpm,rpm2cpio,cpio提取rpm包的特定文件 - 小蜗牛技术之家 - 51CTO技术博客
http://snailwarrior.blog.51cto.com/680306/145588

2013年9月15日 星期日

Ubuntu 12.04

apt-get install

vim htop tree rpm2cpio meld

minicom tftp-hpa tftpd-hpa openssh-server samba

git-core git-svn git-cvs git-email tig subversion cvs ctags 

bison cpp flex g++ gcc gettext texinfo patch patchutils libncurses5-dev uboot-mkimage python-xcbgen automake texlive libtool build-essential libncurses5-dev zlib1g-dev gawk ccache gettext libssl-dev xsltproc g++ zlib1g-dev gawk libncurses5-dev

virtualbox

firefox addon
xmark

Webex
mkl Note: Download and Install Java on Ubuntu 12.04
http://mkl-note.blogspot.tw/2013/09/download-and-install-java-for-linux.html

中文
mkl Note: Ubuntu 12.04中文輸入法的安裝
http://mkl-note.blogspot.tw/2013/08/ubuntu-1204.html

2013年9月12日 星期四

No entry for terminal type "vt100"

No entry for terminal type "vt100"
using dumb terminal settings.

SETTING TERMINAL TYPE
http://www.rahul.net/howto/termcap.html

Terminal codes (ANSI/VT100) introduction [Bash Hackers Wiki]
http://wiki.bash-hackers.org/scripting/terminalcodes

[Chapter 5] 5.3 Setting the Terminal Type When You Log In
http://docstore.mik.ua/orelly/unix/upt/ch05_03.htm

No entry for terminal type "vt100" ?? - The macosxhints Forums
http://hintsforums.macworld.com/showthread.php?t=16178


sshfs

  1. Install
    apt-get install sshfs
  2. Add user xyz permission to use fuse
    usermod -a -G fuse xyz
  3. Mount
    sshfs abc@aaa.bbb.com:/bla/bla/bla mountpoint
  4. Unmount
    fusermount -u mountpoin

Mount remote file system by ssh(sftp) - sshfs @ 複雜的人生,複雜的自己。 :: 痞客邦 PIXNET ::
http://lagunawang.pixnet.net/blog/post/26042587-mount-remote-file-system-by-ssh%28sftp%29---sshfs

Ubuntu 安裝 SSHFS
http://www.arthurtoday.com/2009/11/sshfs-for-linux.html

使用 SSHFS 連線遠端檔案系統
http://www.arthurtoday.com/2010/06/sshfs.html#.UjHVJ7xuGBs

2013年9月10日 星期二

How to change/disable password complexity test when changing password?

11.10 - How to change/disable password complexity test when changing password? - Ask Ubuntu
http://askubuntu.com/questions/113682/how-to-change-disable-password-complexity-test-when-changing-password

Change the following line in /etc/pam.d/passwd
password    [success=1 default=ignore]  pam_unix.so obscureminlen=1 sha512

2013年9月3日 星期二

Download and Install Java on Ubuntu 12.04, 15.10

Download Java software for Linux
https://www.java.com/en/download/linux_manual.jsp

Install - Java for Linux Platforms
https://www.java.com/en/download/help/linux_install.xml#Java%20for%20Linux%20Platforms

sudo mkdir -p /usr/java
sudo tar xf ~/Downloads/jre-XXXXX-linux-i586.tar.gz  -C /usr/java/

Enable and Configure
https://www.java.com/en/download/help/linux_install.xml#enable
killall firefox-bin firefox
sudo mkdir -p /usr/lib/firefox-addons/plugins/
sudo ln -s /usr/java/jreX.Y.Z.AAA/lib/i386/libnpjp2.so /usr/lib/firefox-addons/plugins/
Or, for 64-bit:
sudo ln -s /usr/java/jreX.Y.Z.AAA/lib/amd64/libnpjp2.so /usr/lib/firefox-addons/plugins/
Or, to find it by script:
find /usr/java -name "libnpjp*"
sudo ln -sv $(find /usr/java -name "libnpjp*" | tail -n 1) /usr/lib/firefox-addons/plugins/
Test: How do I test whether Java is working on my computer?
https://www.java.com/en/download/testjava.jsp

Or,
In Firefox, type about:plugins in the Location bar to confirm that the Java Plugin is loaded. 

How do I download and install 32-bit Java for Linux?
https://www.java.com/en/download/help/linux_install.xml#download

在 Ubuntu Linux 中啟用瀏覽器
http://www.java.com/zh_TW/download/help/enable_browser_ubuntu.xml

How to add java plugin for Firefox on Linux? - Stack Overflow
http://stackoverflow.com/questions/14491322/how-to-add-java-plugin-for-firefox-on-linux

Google Form

設計問卷調查快速免費,新版線上 Google form 表單教學 -電腦玩物
http://www.playpcesor.com/2013/01/google-form.html

Google Form進階應用
http://www.cc.ntu.edu.tw/chinese/epaper/0021/20120620_2108.html