So I just started using git and github for some of my scripts and such (figured its time to get organized) and I learned for the first time how to actually use git properly. It’s pretty simple actually.
1) Create a repo on github. 2) Go to the folder where the code you intend to share is stored. Run the following: a) git init (initialize this directory as a git repo) b) git add .
If you don’t know the reference, here.
So I needed something new. I originally had a separate backup script on each server and it was set to run and backup to a “backup server.” That worked great for not very long plus it was hard to manage.
So instead of a push system, I opted this time around to go the pull route. It makes things a lot easier on me and allows one centralized place for everything.
Literally for squeeze,
apt-get install qemu-kvm libvirt-bin
To manage vm’s as a normal user, add that user to the libvirt group.
More on KVM here.
Then you can use virsh to manage vm’s on the command line! But since that can be a pain, I highly recommend using virt-manager (a gnome gui utility) or some other gui (web/desktop) utility which can connect to libvirt remotely and manage your KVM Server.
So I really like that I can use my package manager to install python packages (e.x. python-django)..
The only problem with this? They can sometimes be really old which causes problems when I try to run said application. If you have setuptools installed (apt-get install setuptools), use easy-install!
sudo easy_install –upgrade django
YAY!
modprobe ufs
apt-get install ufsutils
mount -r -t ufs -o ufstype=ufs2,ro /dev/sdb2 /mnt/ufsdrive
The above is what I did to get a ufs partition mounted read-only (best I could get).
Now sure why I had to mount it only read-only or why it was the second partition (it was a fresh format on FreeNAS’es part) but yeah..
Here’s more: http://askubuntu.com/questions/85154/mount-ufs-filesystem
Obviously, there is the awesome uname -a command to tell you kernel specific info. But that doesn’t tell you exactly what distro version you are running…Here’s how
Debian:
Look in /etc/debian_version
Ubuntu:
Look at /etc/issue OR /etc/lsb-release
More here.
RHEL/CentOS/Fed:
Look at /etc/redhat-release
More here.
I’ve always wondered why the hell Microsoft needs their own version of a “/boot” partition they call “System Reserved” which takes up hundreds of Megabytes of space right at the beginning of your disk..
Here’s the answer. Apparently, it’s used for Bitlocker and boot manager code/database contents.
Note that this partition only shows up when you install windows on a clean drive with no existing partitions.
The more you know….
http://securityreactions.tumblr.com/
Friend of mine showed me this amazing site that will have you on the floor in minutes. It applies hilarious gifs to common head in hand security situations
Enjoy!
http://nmap.org/misc/hakin9-nmap-ebook-ch1.pdf
That pdf contains an article written for hakin9?s publication by the creators of nmap, the network sec vulnerability testing application…
They wrote it in response to Hakin9?s nagging for people to write articles for them…More here. Trollz hurt bad>>
apt-get install portmap nfs-common nfs-kernel-server
edit /etc/exports with something like (for lets say a public share):
/srv 10.0.0.0/24(ro,no_root_squash,no_subtree_check,insecure)
After saving, import the shares using:
exportfs -a
OR
/etc/init.d/nfs-kernel-server restart
DONE!