Tag: linux
Native file system watcher for Linux
for using with Jetbrains product like pycharm and idea :
The current limit can be verified by executing:
cat /proc/sys/fs/inotify/max_user_watches
It can be raised by adding following line to the /etc/sysctl.conf file:
fs.inotify.max_user_watches = 524288
or
echo fs.inotify.max_user_watches=524288 | sudo tee -a /etc/sysctl.conf
… and issuing this command to apply the change:
sudo sysctl -p
Check if there is a file in
/etc/sysctl.d
with your parameter. These files override the/etc/sysctl.conf
file
References
https://github.com/guard/listen/wiki/Increasing-the-amount-of-inotify-watchers
https://serverfault.com/questions/355520/after-reboot-debian-box-ignore-sysctl-conf-values
Ubuntu Multiarch
sudo dpkg --add-architecture i386
How to Disable, Stop or Uninstall Apport Error Reporting
Stop Apport
sudo service apport stop
Disable Apport at Boot
sudo nano /etc/default/apport
Uninstall Apport
sudo nano /etc/default/apport
ShadowSocks PPA
sudo add-apt-repository ppa:hzwhuang/ss-qt5
GNS3 PPA
sudo add-apt-repository ppa:gns3/ppa
Gnome PPA
sudo add-apt-repository ppa:gnome3-team/gnome3-staging sudo add-apt-repository ppa:gnome3-team/gnome3
How to set up a local SOCKS proxy that tunnels traffic through SSH
ssh -D 1337 -f -C -q -N user@remote -p 22
- -D 1337 tells ssh to launch a SOCKS server on port 1337 locally.
- -f forks the process into the background.
- -C Turns on compression.
- -q enables “Quiet mode”, since the purpose here is only to tunnel we don’t really care about error output and such.
- -N tells ssh that no commands will be sent (-f complains if we don’t specify this).
- -p specifies what port to use; obviously this is defaulted to 22 so the statement above is pointless, but if you’re a clever fellow you’re probably not running SSH on port 22 🙂
References :
http://askubuntu.com/questions/469582/how-do-i-set-up-a-local-socks-proxy-that-tunnels-traffic-through-ssh
How to check tor log
tail -f /var/log/tor/log