Archive for the ‘Unix/Linux’ Category

GIT – How to merge specific files from another branch

Monday, September 3, 2012 16:41 No Comments

Using 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”

This was posted under category: Programming, Unix/Linux, Web Tags: , , , , ,

Linux server – Change default timezone

Monday, August 6, 2012 12:45 No Comments

Changing the timezone on a Ubuntu/Debian server can be done using the following command: su dpkg-reconfigure tzdata

This was posted under category: Operating Systems, Unix/Linux Tags: , , , , , ,

Use GMail to send emails through the Linux consolse

Saturday, July 28, 2012 10:09 No Comments

If 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 AuthUser=myaccount@gmail.com AuthPass=gmailpassword FromLineOverride=YES mailhub=smtp.gmail.com:587 [...]

This was posted under category: Operating Systems, Unix/Linux Tags: , , , , , , ,

VirtualBox – Disable Date and Time synchronization for a VirtualBox Guest system

Thursday, April 26, 2012 16:24 No Comments

The 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. [...]

This was posted under category: Operating Systems, Unix/Linux, Windows Tags: , , , , , , ,

Linux Ubuntu – User not in the sudoers file

Friday, March 23, 2012 10:51 No Comments

If 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. [...]

This was posted under category: Unix/Linux Tags: , , , , ,

Email Ports

Monday, May 16, 2011 12:52 No Comments

Email 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

This was posted under category: Unix/Linux, Web Tags: , , , , , , , , , , ,

Upload/Download files with SFTP

Tuesday, February 1, 2011 21:01 No Comments

Uploading/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 [...]

This was posted under category: Unix/Linux Tags: , , , , , , , , ,

How to install Redmine on Bluehost

Saturday, November 6, 2010 18:22 No Comments

How 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 [...]

This was posted under category: Unix/Linux, Web Tags: , , , , , ,

Qmail – Enable/Disable ClamAV

Monday, April 19, 2010 13:16 No Comments

The 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 [...]

This was posted under category: Unix/Linux Tags: , , , , ,

qmail & vpopmail – how to add domains and users

Thursday, April 15, 2010 16:42 No Comments

Using 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 [...]

This was posted under category: Unix/Linux Tags: , , , , , , ,