Saturday, February 16, 2013
How do I setup a snakeoil certificate on my new Debian 6.0 (squeeze) server?
Great question, Debian dot Org's Wiki has a great answer: http://wiki.debian.org/Self-Signed_Certificate
Friday, February 15, 2013
How do I setup my new Debian 6.0 (squeeze) server?
Great question, Chad Keck has a great answer: http://www.youtube.com/watch?v=JZepJ2Vx5-U&list=HL1327264781&feature=mh_lolz
Also, here's the direct link to the iptables.txt Chad refers to in the video: http://articles.slicehost.com/assets/2007/9/4/iptables.txt
How do I install phpMyAdmin on my new server?
Great question, HowToForge has a great answer: http://www.howtoforge.com/installing-apache2-with-php5-and-mysql-support-on-debian-squeeze-lamp-p2
followed up by:
# Open Apache's conf file: sudo nano /etc/apache2/httpd.conf # Add this line: Include /etc/phpmyadmin/apache.conf # Then, run: sudo /etc/init.d/apache2 restart # And now phpMyAdmin should work! Check it out at http://yourip/phpmyadmin/.
How do I install MySQL & PHP on my new server?
Great question, the Linode Library has a great answer: http://library.linode.com/lamp-guides/debian-6-squeeze
Why is MAMP PRO so slow?
Not sure. But I can tell you how to fix it.
Run the following series of commands:
Cheers!
Run the following series of commands:
# Where yoursite.local is the name of your site sudo echo '::1 yoursite.local' > /tmp/newfile sudo cat /etc/hosts >> /tmp/newfile sudo mv /tmp/newfile /etc/hostsProblem solved! Check it out for yourself at yoursite.local right now.
Cheers!
Wednesday, February 13, 2013
My .gitignore file isn't working as expected. How do I fix it?
# Run the following command (this removes everything from the index): git rm -r --cached . # Then, run: git add . # Finally, commit your changes: git commit -m ".gitignore is now working"Note, this answer's source came directly from http://stackoverflow.com/questions/1139762/gitignore-file-not-ignoring.
Monday, February 11, 2013
How do I show a list of all files and directories within a specific directory, recursivley, via the command line, such that each path printed is a fully qualified one?
$ find dir_of_interest -name '*' dir_of_interest dir_of_interest/dir1 dir_of_interest/dir1/file1.txt dir_of_interest/dir2 dir_of_interest/dir2/file2.txt dir_of_interest/dir3 dir_of_interest/dir3/file3.txt
Saturday, February 9, 2013
Monday, February 4, 2013
How do I check if a user is a member of a specific usergroup on my Mac via the command line?
dsmemberutil checkmembership -U 'user' -G 'usergroup'Where user is the username you're interested in and usergroup is the group you want to check to see if they're in.
How do I change a directory's group (or owner) on a *nix machine?
chgrp usergroup somedirIf you want to change the directory's contents too, simply append the -R option to the chgrp command as shown below:
chgrp -R usergroup somedirNote that somedir could also be a file (it doesn't have to be a directory). Also, if you want to change a directory's owner simply switch chgrp to chown. The options between the two commands are the same.
Subscribe to:
Posts (Atom)
About Me
- John Erck
- I code. I figured I should start a blog that keeps track of the many questions and answers that are asked and answered along the way. The name of my blog is "One Q, One A". The name describes the format. When searching for an answer to a problem, I typically have to visit more than one site to get enough information to solve the issue at hand. I always end up on stackoverflow.com, quora.com, random blogs, etc before the answer is obtained. In my blog, each post will consist of one question and one answer. All the noise encountered along the way will be omitted.
Blog Archive
-
▼
2013
(49)
-
▼
February
(13)
- How do I setup a snakeoil certificate on my new De...
- How do I setup my new Debian 6.0 (squeeze) server?
- How do I install phpMyAdmin on my new server?
- How do I install MySQL & PHP on my new server?
- Why is MAMP PRO so slow?
- My .gitignore file isn't working as expected. How ...
- How do I show a list of all files and directories ...
- How do I reload changes I've made to Apache's conf...
- How do I check if a user is a member of a specific...
- How do I list the users on my Mac via the command ...
- How do I list the usergroups on my Mac via the com...
- How do I change a directory's group (or owner) on ...
- How do I setup an Apache 2 web server running on D...
-
▼
February
(13)