This command will force Google Chrome to start a new session, and disables any proxy settings you currently have
google-chrome --user-data-dir=/tmp --no-proxy-server
Saturday, June 7, 2014
Thursday, June 5, 2014
SOCKS proxy with firefox about:config and ssh
A simple socks proxy can be made as follows
First, open Firefox and type about:config in the address bar
change the following items
network.proxy.socks localhost
network.proxy.socks_port 4321
network.proxy.type 1
network.proxy.socks_remote_dns true
ssh to your favorite machine with the -D flag
i.e.
ssh -D 4321 root@myserver.com
This will setup a SOCKS proxy to myserver.com and also protect your DNS requests
Links:
http://bityard.blogspot.fr/2009/01/make-openssh-socks-proxy.html
First, open Firefox and type about:config in the address bar
change the following items
network.proxy.socks localhost
network.proxy.socks_port 4321
network.proxy.type 1
network.proxy.socks_remote_dns true
ssh to your favorite machine with the -D flag
i.e.
ssh -D 4321 root@myserver.com
This will setup a SOCKS proxy to myserver.com and also protect your DNS requests
Links:
http://bityard.blogspot.fr/2009/01/make-openssh-socks-proxy.html
Unmount busy filesystem and find process linux
sudo umount /mntumount: /mnt: device is busy.
(In some cases useful info about processes that use
the device is found by lsof(8) or fuser(1))
lsof /mntCOMMAND PID USER FD TYPE DEVICE SIZE/OFF NODE NAME
bash 19005 user cwd DIR 8,17 4096 2 /mnt
sudo kill -9 19005
(In some cases useful info about processes that use
the device is found by lsof(8) or fuser(1))
lsof /mntCOMMAND PID USER FD TYPE DEVICE SIZE/OFF NODE NAME
bash 19005 user cwd DIR 8,17 4096 2 /mnt
sudo kill -9 19005
Set iptables rulesets
Redirecting traffic to different ports - in this caser, redirect standard http requests and https requests to a server which doesn't run as root (all ports < 1000 require root access)
sudo iptables -t nat -A PREROUTING -p tcp --dport 80 -j REDIRECT --to-port 8080
sudo iptables -t nat -A PREROUTING -p tcp --dport 443 -j REDIRECT --to-port 8443
To show the new rules, do
iptables -t nat --list
sudo iptables -t nat -A PREROUTING -p tcp --dport 80 -j REDIRECT --to-port 8080
sudo iptables -t nat -A PREROUTING -p tcp --dport 443 -j REDIRECT --to-port 8443
To show the new rules, do
iptables -t nat --list
Setting up emacs24 and clojure starter kit
Ubuntu
sudo add-apt-repository ppa:cassou/emacs
sudo apt-get update
sudo apt-get install emacs-snapshot
Once the ppa and emacs are installed, start emacs by doing emacs-snapshot. Hit C-x C-f (Ctrl and x, then Ctrl and f) and type in the path ~/emacs.d/init.el . Add the following text to this file
(require 'package)
(add-to-list 'package-archives
'("marmalade" . "http://marmalade-repo.org/packages/") t)
(package-initialize)
Now do M-x eval-buffer, then M-x package-refresh-contents, then M-x package-install. When prompted, type starter-kit. Now you are off! I also installed starter-kit-lisp
Most of the above information is just parroting the information found at the following links.
Installing EVIL mode for VIM keys
M-x package-install RET evil RET
M-x package-install RET evil-leader RET
M-x package-install RET evil-numbers RET
Now add the following line to ~/.emacs.d/init.el
(evil-mode 1)
Other packages
auto-complete
auto-indent-mode
Links
https://github.com/technomancy/clojure-mode/blob/master/doc/gnu-linux-setup.md
https://github.com/technomancy/emacs-starter-kit
http://www.emacswiki.org/emacs/Evil
sudo add-apt-repository ppa:cassou/emacs
sudo apt-get update
sudo apt-get install emacs-snapshot
Once the ppa and emacs are installed, start emacs by doing emacs-snapshot. Hit C-x C-f (Ctrl and x, then Ctrl and f) and type in the path ~/emacs.d/init.el . Add the following text to this file
(require 'package)
(add-to-list 'package-archives
'("marmalade" . "http://marmalade-repo.org/packages/") t)
(package-initialize)
Now do M-x eval-buffer, then M-x package-refresh-contents, then M-x package-install. When prompted, type starter-kit. Now you are off! I also installed starter-kit-lisp
Most of the above information is just parroting the information found at the following links.
Installing EVIL mode for VIM keys
M-x package-install RET evil RET
M-x package-install RET evil-leader RET
M-x package-install RET evil-numbers RET
Now add the following line to ~/.emacs.d/init.el
(evil-mode 1)
Other packages
auto-complete
auto-indent-mode
Links
https://github.com/technomancy/clojure-mode/blob/master/doc/gnu-linux-setup.md
https://github.com/technomancy/emacs-starter-kit
http://www.emacswiki.org/emacs/Evil
Using evolution with an exchange server
First, install the evolution, evolution-mapi, and evolution-exchange packages. On CentOS 6.3, this was accomplished by the command sudo yum install evolution evolution-mapi evolution-exchange.
When setting up the account, select Exchange MAPI for the Server Type on the Receiving Email tab. It may also be necessary to use the IP address of your Exchange server, instead of the name. The domain name should be the prefix you normally see on your Windows login i.e. WONDERCO/jdoe could be
Server: 192.168.1.101
Username: jdoe
Domain name:WONDERCO
IMPORTANT: Before you click View->Calendar, disable the "Prefer Plain Text" plugin by going to Edit->Plugins, then unchecking the "Prefer Plain Text" box. I didn't do this, and got trapped in the calendar, which would freeze evolution every time it was launched. If this happens, reset your settings by following the instructions at the link below.
http://www.samlesher.com/tag/delete-evolution-settings
Links
https://www.linux.com/learn/tutorials/370590:connect-evolution-to-an-exchange-server
http://mylinuxnotebook.blogspot.com/2008/09/evolution-ms-outlook-invitation.html
When setting up the account, select Exchange MAPI for the Server Type on the Receiving Email tab. It may also be necessary to use the IP address of your Exchange server, instead of the name. The domain name should be the prefix you normally see on your Windows login i.e. WONDERCO/jdoe could be
Server: 192.168.1.101
Username: jdoe
Domain name:WONDERCO
IMPORTANT: Before you click View->Calendar, disable the "Prefer Plain Text" plugin by going to Edit->Plugins, then unchecking the "Prefer Plain Text" box. I didn't do this, and got trapped in the calendar, which would freeze evolution every time it was launched. If this happens, reset your settings by following the instructions at the link below.
http://www.samlesher.com/tag/delete-evolution-settings
Links
https://www.linux.com/learn/tutorials/370590:connect-evolution-to-an-exchange-server
http://mylinuxnotebook.blogspot.com/2008/09/evolution-ms-outlook-invitation.html
Subscribe to:
Posts (Atom)