kali 安装最新版的firefox

在上次 为了不浪费系统自带的,我是这样做的,不要见笑,各位看官
alias firefox=iceweasel
kali 是基于debian 稳定版本的,所以 里面的ceweasel 有点老
于是没事之间 ,搞个二进制的 最新 firefox回来
下载地址就不用说了吧 哈哈
下载firefox 然后
tar xvf Firefox-latest-x86_64.tar.bz2
mv firefox/ ../program/
evan@latop:~$ cat /usr/bin/firefox
#!/bin/sh

FIREFOX="$(which $0)"
[ -x "$FIREFOX.real" ] && exec "$FIREFOX.real" "$@"

exec /home/evan/program/firefox/firefox
#exec iceweasel "$@"

然后在 synapse 打上 firefox就可以启动了

手机翻墙

近来好几个朋友来问为什么google上不了,这个原因呢,我就不说了,大家懂的,不过要怎么上呢 我可以告诉你 在你的电脑上vpn 打开 http://url.cn/LdMkk7 点击安装,然后你的手机就可以翻墙了 当然 你前提是要有google 帐号和 play google ,也可以直接下载二进制包 http://url.cn/CcDMTM

或者直接下载 http://pan.baidu.com/s/1nt5Gqdr

my xmonad 常用快捷键

****************
Launching software

When you start xmonad for the first time, you’re not looking at much. You will see a status bar near the top of your screen, and that’s about it.

There are no menus for selecting programs to run. Everything is launched in one of two ways:

mod-shift-enter: launches a terminal window (Terminator). You can run other programs from the terminal.
ctrl-space:(已被我改了) launches a Synapse prompt. You can run any program by starting to type its name, and then hitting enter once Synapse has found the program you want.

*****************
Changing layouts

mod-space: cycle through the available layouts`
mod-shift-space: jump to the default layout

************
Focusing windows (#去到另一个当前窗口 写代码时,这个特别有用)
mod-j or mod-shift-tab moves your focus to the previous window
mod-k or mod-tab moves your focus to the next window
mod-m moves your focus to the master pane (see next section)
or, you can focus a window by moving your mouse cursor over it

***********
You can manipulate the contents of the master pane as follows:

mod-enter will swap the currently focused window with the contents of the master pane, making it the new master.
mod-comma will make the master pane contain more windows, if the current layout supports this.
mod-period will make the master pane contain fewer contains, if the current layout supports this.

*********************
Resizing windows
mod-l and mod-h will grow or shrink the size of the master pane.
mod-a and mod-z will grow or shrink the size of the currently focused window.

************
Closing windows

You can use mod-shift-c to close the focused window if you are done with it.

***********
Quitting or restarting xmonad

The following commands involve quitting or restarting xmonad:

mod-shift-q: quits xmonad, returning to the login screen.
mod-q: restarts and recompiles xmonad. Does not require restarting any other programs you may be running, and happens very quickly. Very useful while experimenting with changes to your xmonad.hs file!

其它详情请看

https://github.com/davidbrewer/xmonad-ubuntu-conf

linux中安装eclipse

作为一个c fans 总是喜欢eclipse !在此 采用了下载二进制包的方法 适合各种版本 不管你是debain kali or centos gentoo

下载
可以直接apt

sudo apt install eclipse-cdt
https://packages.debian.org/sid/devel/eclipse-cdt

http://mirrors.neusoft.edu.cn/eclipse/technology/epp/downloads/release/neon/1a/eclipse-cpp-neon-1a-linux-gtk-x86_64.tar.gz

注意了 是本本才是 ,PC没有SSD 哈哈
考虑到ssd分区启动比较快,现在是
root@evankali:/opt/eclipse# pwd
/opt/eclipse

cat .bashrc
alias eclipse=/opt/eclipse/eclipse


再做启动器比较爽

[Desktop Entry]
Name=eclipse
Name[zh_CN]=eclipse IDE
GenericName=Integrated Development Environment
GenericName[zh_CN]=集成开发环境
Comment=Develop software in an integrated development environment
Comment[zh_CN]=在集成开发环境中开发软件
Encoding=UTF-8
Exec=/opt/eclipse/eclipse
Icon=/opt/eclipse/icon.xpm
Terminal=false
X-MultipleArgs=false
StartupWMClass=Firefox
Type=Application
Categories=GNOME;GTK;Development;IDE;
StartupNotify=true

语言包下载
打开
http://www.eclipse.org/babel/downloads.php

看到
Babel Language Pack Zips
Neon | Mars | Luna

点击进去 找到我们要的

http://download.eclipse.org/technology/babel/babel_language_packs/R0.14.0/neon/neon.php

Language: Chinese (Simplified)

wget -c http://mirrors.neusoft.edu.cn/eclipse/technology/babel/babel_language_packs/R0.14.0/neon/BabelLanguagePack-eclipse-zh_4.6.0.v20160813060001.zip

把你下载的zip文件解压,得到一个名为eclipse的文件夹,它里面包含两个文件夹:features和plugins,复制features和plugins到你的eclipse程序目录,覆盖原程序文件即可:

cp -a features/ ~/software/eclipse/
cp -a plugins/ ~/software/eclipse/

wget -c http://mirrors.tuna.tsinghua.edu.cn/eclipse//technology/epp/downloads/release/kepler/SR2/eclipse-cpp-kepler-SR2-linux-gtk-x86_64.tar.gz
tar xvf eclipse-cpp-kepler-SR2-linux-gtk-x86_64.tar.gz
cd eclipse; ./eclipse

evan@latop:~$ vim .bashrc
alias halt='sudo poweroff'
export LANG=zh_CN.utf8
alias vi=vim
alias ll='ls -l'
alias ifconfig='/sbin/ifconfig'
##加上这句 这个有时不好用
alias eclipse='/home/evan/program/eclipse/eclipse'

#全局启动eclipse 其它软件也是相似 因为
#evan@evankali:~$ echo $PATH
#/usr/local/bin:/usr/bin:/bin:/usr/local/games:/usr/games

sudo ln -s /home/evan/program/eclipse/eclipse /usr/bin/eclipse

当然也可以手动创建菜单选项

手动创建菜单选项

我是xmonad ,一般用synapse启动软件 ,所以有没有开始菜单什么的于我不是很重要

ps
Debian Linux Install Eclipse Java / C / C++ IDE
http://www.cyberciti.biz/faq/debina-linux-installing-eclipse-jdt-eclipse-cdt-packages/

pc icon
evan@evanpc:/usr/share/applications$ cat eclipse.desktop
[Desktop Entry]
Encoding=UTF-8
Name=eclipse
GenericName=eclipse
Comment=IDE
Exec=/home/evan/program/eclipse/eclipse
Icon=/home/evan/program/eclipse/icon.xpm
Terminal=false
X-MultipleArgs=false
StartupWMClass=Firefox
Type=Application
Categories=Network;WebBrowser;
MimeType=text/html;text/xml;application/xhtml+xml;application/xml;application/rss+xml;application/rdf+xml;image/gif;image/jpeg;image/png;x-scheme-handler/http;x-scheme-handler/https;x-scheme-handler/ftp;x-scheme-handler/chrome;video/webm;application/x-xpinstall;

支付宝安全控件安装—linux平台

首先,下载相对应的 安全控件
http://help.alipay.com/lab/help_detail.htm?help_id=239134

然后解压
evan@latop:~/software$ tar xvf aliedit.tar.gz
aliedit.sh

最后安装
evan@latop:~/software$ sudo bash aliedit.sh
建议以非root账号安装支付宝安全控件
请重启 chrome 使插件生效
成功安装 支付宝安全控件
请按任意键退出…

google 老是抽风的几个小小解决方法

如果你上辈子和我一样不努力 导致这辈子出生在天朝;或者如果你这辈子和我一样不努力,导致现在在做挨踢(IT),于是就有了和我下面一样的杯具的情形,那么请住下看 ,除此之外,如果你是看热闹的,要不要往下看就随便看官你自己喽了

google 在民主的社会主义国家常常打不开 但是 直接ip 访问倒是没事 ,如 http://203.208.46.177/
由于 每次手工打开再去g东西好麻烦 那如何在chrome把它设置为默认的搜索引擎呢 各位看官请往下看
chrome://settings/ –>管理搜索引擎

前2列随便填写 第三列填写如下面
http://74.125.20.31/search?q=%s
gnow

其实 我是参考了帮助文件,关键字如下 万事man 一下 哈哈
将网址中的搜索字词替换为 %s。如果继续以该 Google 搜索引擎为例,则最终的搜索引擎网址应该为 http://www.google.com/search?q=%s。当您在地址栏中输入搜索字词时,%s 会自动替换为搜索字词。
请务必在网址中加入 %s,否则您无法将此搜索引擎设置为默认搜索引擎。
https://support.google.com/chrome/answer/95653?hl=zh-Hans

这个觉得太麻烦了呢
http://liulanmi.com/zt/1752.html

其实 要是直接想访问域名的 还有一个办法

换dns 112.124.47.27