content top

Samba config cheat sheet

This post is mostly for myself, as it contains some code that I am using on a lot of servers and will be using on new installations again, most likely. Often the most difficult things are rights management and file permission management, and it isn't very hard once you know how to do it. Hopefully this will help some others as well. I've added a lot of explanation so other people can benefit from this as well, but all I really care about...

Read More

Make permanent swap file in Linux

In Linux you can create a swap FILE that performs pretty much the same function as a separate swap PARTITION, but not with the problem that if later you need to resize some partitions you have to dick around with a partition that's in the way. Yes, I know you can delete it and fix things later but to me it just seems easier to not have to worry about it. Again, this little cheat sheet is something that's mostly for myself, a quick...

Read More

MySQL command-line cheat sheet

As we all know, the hallmark of a good technician is the balance between laziness and productivity, where the important thing to note is that we are usually only productive about something that we want to be lazy about. I don't know if that makes much sense but I do know I have to keep looking up these simple commands online on how to do simple MySQL tasks on the command line, so I made a collection of commands I often use and put them on...

Read More

Passwordless SSH login with keypair

Yeah, shitloads of these guides are already out there. This is just a note more for personal use. This is useful for running rsync over SSH in an automated script.   Generate key on client side and secure it: mkdir ~/.ssh;cd ~/.ssh;ssh-keygen -t rsa;cat id_rsa.pub >> authorized_keys;chmod 600 authorized_keys   Use ssh-copy-id utility to copy public key to target machine: /usr/bin/ssh-copy-id -i ~/.ssh/id_rsa.pub...

Read More

Windows route cheat-sheet

List all IPv4 routes: route print -4   Add route: route add (destination subnet start IP) mask (subnet mask) (target gateway IP) route add 172.16.47.0 mask 255.255.255.0 192.168.47.254   Delete route: route delete (destination subnet start IP) route delete 172.16.47.0   Make persistent (stay after reboot) - add flag -p: route add -p 172.16.47.0 mask 255.255.255.0 192.168.47.254   CIDR notation subnet mask cheat...

Read More

VMWare tools in Ubuntu, Debian, CentOS, Fedora, on ESXi 5.0, 5.1, 5.5, 6.0, 6.5

This is more like a quick note for myself that I can easily reuse. It can also be used to upgrade an older VMWare Tools to the latest version. Prerequisite is that you right click the VM and select Install/Upgrade VMWare Tools so it mounts the .iso image with the VMWare Tools on it to the CD drive of the VM. Make sure a previous other ISO wasn't mounted. If asked which mode to use select Interactive. Then copy and paste the following stuff...

Read More
content top