Archive for the ‘Unix/Linux’ Category
GIT – How to merge specific files from another branch
Monday, September 3, 2012 16:41 No CommentsUsing GIT you can merge specific files from another branch using the ‘checkout’ command. After you checkout the files do a commit on the current branch. Example: $ git checkout anotherBranchName path/to/file.etx path/to/file2.ext path/to/file3.ext $git commit -m “Merged files from anotherBranchName”
Linux server – Change default timezone
Monday, August 6, 2012 12:45 No CommentsChanging the timezone on a Ubuntu/Debian server can be done using the following command: su dpkg-reconfigure tzdata
Use GMail to send emails through the Linux consolse
Saturday, July 28, 2012 10:09 No CommentsIf you need to be able to send simple, one user account emails from a Linux server which has no mail server configured then this is for you. Additionally you can use GMail to send messages from. Install software: # apt-get update # apt-get install ssmtp Edit configuration file: #nano /etc/ssmtp/ssmtp.conf [email protected] AuthPass=gmailpassword FromLineOverride=YES mailhub=smtp.gmail.com:587 [...]
VirtualBox – Disable Date and Time synchronization for a VirtualBox Guest system
Thursday, April 26, 2012 16:24 No CommentsThe following command will disable the date/time synchronization for a Guest operating system. Assuming the host is running Windows OS. Open the command prompt. (Run -> cmd) Enter command: C:\Users\User>”c:\Program Files\Oracle\VirtualBox\VBoxManage.exe” setextradata ENTER_MACHINE_NAME_HERE “VBoxInternal/Devices/VMMDev/0/Config/GetHostTimeDisabled” “1″ * Replace ENTER_MACHINE_NAME_HERE with Guest system name * This command will add an extra line to the “C:\Users\User\VirtualBox VMs\MACHINE_NAME\MACHINE_NAME.vbox” file. [...]
Linux Ubuntu – User not in the sudoers file
Friday, March 23, 2012 10:51 No CommentsIf your user is not in the sudoers file you won’t be able to do any root tasks. To fix this: 1. Boot into the recovery mode and load the root console. (Hold left shift on boot to show the Grub loader) 2. To make the file system writable execute: mount -o remount,rw / 3. [...]
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 [email protected] 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 [email protected] userpassword To remove a mailbox on domainname.tld: $ vdeluser [email protected]: You can find more [...]