Archive for the ‘Unix/Linux’ Category
Email Ports
Monday, May 16, 2011 12:52 No CommentsEmail ports POP3 – port 110 IMAP – port 143 SMTP – port 25 HTTP – port 80 Secure SMTP (SSMTP) – port 465 Secure IMAP (IMAP4-SSL) – port 585 IMAP4 over SSL (IMAPS) – port 993 Secure POP3 (SSL-POP) – port 995
Upload/Download files with SFTP
Tuesday, February 1, 2011 21:01 No CommentsUploading/Downloading files through your *nix console. Connection: $ sftp user@domain.com Available commands: ls list files pwd show which directory you are in on the server side lpwd show which directory you are in on the client side cd DIRECTORY change current location to DIRECTORY on the server side lcd DIRECTORY change current location to DIRECTORY [...]
How to install Redmine on Bluehost
Saturday, November 6, 2010 18:22 No CommentsHow to install Redmine on BlueHost under a subdomain. Redmine is a popular project management software based on RubyOnRails. BlueHost is a shared hosting provider but allows you to use SSH access to your account. To enable SSH open a support ticket and send them a scan of your ID. I will give you rough [...]
Qmail – Enable/Disable ClamAV
Monday, April 19, 2010 13:16 No CommentsThe ClamAV scanning feature can be disabled in the qmail’s simcontrol configuration file. This will not disable the clamav daemon but will disable active scanning. edit: /var/qmail/control/simcontrol there should be text like this: :clam=yes,spam=yes,spam_passthru=yes,attach=.vbs:.lnk:.scr:.wsh:.hta:.pif what we need to do is to replace clam=yes with clam=no. If you don’t have this text insert it. Next we [...]
qmail & vpopmail – how to add domains and users
Thursday, April 15, 2010 16:42 No CommentsUsing vpopmail you can easily add domains and users to your qmail configuration. To add a domain: $ vadddomain domainname.tld To remove a domain and all its mailboxes: $ vdeldomain domainname.tld To add a user mailbox on domainname.tld: $ vadduser username@domainname.tld userpassword To remove a mailbox on domainname.tld: $ vdeluser username@domainnaime.tld: You can find more [...]
Linux- Recursively change permissions on files or directories only
Thursday, March 25, 2010 22:33 No CommentsIf you wondered how to change permissions recursively on files or folders only, here is the how to using the find command. Change permissions recursively to directories only: find /path/to/folder -type d -exec chmod 0755 {} \; Change permissions recursively to files only: find /path/to/folder -type f -exec chmod [...]
Apache .htaccess – Allow / Deny access from certain IPs
Tuesday, March 2, 2010 0:02 No CommentsIf your website is under contruction and you want to allow access just to certain IP numbers, placing the following code in the .htaccess file, in the website root directory, you can block access to everyone except the IP numbers you specify. order deny,allow deny from all allow from 76.33.193.98 allow from 84.23.122.204 allow from 93.34.133.203 [...]
WGET – FTP Download a directory recursively
Monday, October 26, 2009 0:09 No CommentsWe often need to download a directory from a ftp server to a local computer. You can do this using wget and its -r parameter. The command would be: wget -l 30 -r ftp://user:pass@host/some_directory/ -l sets the level depth. default value is 5 layers. i put 30 to be sure wget gets the whole tree
Linux/Unix File & Folder Permissions
Tuesday, December 2, 2008 18:04 No CommentsFile and Folder permissions on *unix like systems.
Vi editor – Commands
Sunday, November 23, 2008 8:15 No CommentsVi is a Unix/Linux terminal based text editor. Despite its overhelming features it is still popular among Unix administrators. I’ll mention some of the most used commands.