Category Archives: Uncategorized

linux file security bits

https://docs.oracle.com/cd/E19683-01/816-4883/secfile-69/index.html http://foralllinux.blogspot.ca/2013/04/set-setuid-setgid-and-sticky-bit-in.html http://thegeekdiary.com/what-is-suid-sgid-and-sticky-bit/ for various use cases. Advertisements

Posted in linux, Uncategorized | Tagged | Leave a comment

How to expose docker app on LAN

docker-machine create –driver virtualbox webexposed docker-machine stop webexposed VBoxManage modifyvm webexposed –natdnshostresolver1 on VBoxManage modifyvm webexposed –natpf1 ‘http,tcp,,8080,,80’ docker-machine start webexposed docker-machine create –driver virtualbox webexposed docker-compose up browser to http://lan_ip:8080/

Posted in Uncategorized | Leave a comment

VBoxManage & Docker

  Popular VBoxManage cmd VBoxManage list vms  (list vm’s name or uuid) VBoxManage list runningvms VBoxManage unregistervm 6621ebbe-0139-40a7-a496-37ac6bcba735 –delete VBoxManage controlvm <name or uuid> poweroff VBoxManage modifyvm “VM name” –natdnshostresolver1 on http://superuser.com/questions/641933/how-to-get-virtualbox-vms-to-use-hosts-dns http://www.virtualbox.org/manual/ch09.html#nat_host_resolver_proxy Vagrant vagrant package –base   (this creates … Continue reading

Posted in Uncategorized | Leave a comment

set up sshfs as a non-root user on linux

sudo apt-get install sshfs sudo usermod -a -G fuse uid: add uid to fuse group /etc/fuse.conf: comment out user_allow_other. /etc/modules: add fuse module sshfs uid@remotehost:/home/uid /home/uid/mnt/desktoplinux  -o allow_other

Posted in sshfs, Uncategorized | Tagged | Leave a comment

How to install mediagoblin

http://mediagoblin.readthedocs.org/en/v0.6.1/siteadmin/deploying.html sudo apt-get install autoconf automake sqlite3 To install Python Imaging Lib:  sudo apt-get install libfreetype6 libfreetype6-dev zlib1g-dev  libjpeg-dev pip install PIL –allow-external PIL –allow-unverified PIL

Posted in Uncategorized | Leave a comment

How to get the external public IP via ssh port forwarding

ssh -T -L 7080:ipecho.net:80 <production machine alias> : there is a server listening on port 7080 locally forwarding the traffic to ipecho.net:80. curl -H “host:ipecho.net” http://localhost:7080/plain; echo “ipecho.net can be replaced with ifconfig.me etc.

Posted in Uncategorized | Leave a comment

install pip on centos

According to https://pip.pypa.io/en/latest/installing.html, curl https://bootstrap.pypa.io/get-pip.py | sudo python –

Posted in Uncategorized | Tagged | Leave a comment