Default apt-get to yes

The problem with:

apt-get --yes install $something

is that it will ask for a manual confirmation if the package signature owner's public-key is not in the keyring, or some other conditions. to be sure it does not ask a confirmation just do this:

apt-get --yes --force-yes install $something

If you want to have these settings permanent, create a file in /etc/apt/apt.conf.d/, like /etc/apt/apt.conf.d/90forceyes with the following content:

APT::Get::Assume-Yes "true";
APT::Get::force-yes "true";

Install Guest Additions Fedora 18

1. $sudo yum update
Please reboot the system if you have just installed a new kernel.

Pre-Installation Setup
Before installing VirtualBox Linux Guest Additions, you need to install gcc, dkms and kernel development module. Use the following command:
2. $sudo yum install gcc kernel-devel dkms

Next you need to mount the Linux Guest Additions Image Disc. Under the VirtualBox menu bar, select Devices >> Install Guest Additions...

Click cancel if they ask if you want to run the disc image.

Install Linux Guest Additions
Once the disc image is mounted, use the following command (case sensitive):
3. $cd /run/media/$USER/VBOXADDITIONS*
4. $sudo ./VBoxLinuxAdditions.run

Adding users to sudoers

If there is a sudo group, you can do the following:

$sudo adduser <username> sudo

This works because /etc/sudoers is pre-configured to grant permissions to all members of this group (You should not have to make any changes to this):
# Allow members of group sudo to execute any command
%sudo   ALL=(ALL:ALL) ALL

Otherwise, you can add the user directly

$nano /etc/sudoers

add the following to the end of the file, and save:
username ALL=(ALL) ALL

Quick SSH on Ubuntu 12.04

sudo apt-get install openssh-server

After the installation, you can SSH onto your machine, this is not secure and good for a home network solution, but you'll need to investigate security if you are going to hang the machine outside a Firewall.

Example of importing into your local Maven repository

You cannot get to some *.jar files remotely and you still need to build your project, you can use these commands to import into your local repository.

Example:

call mvn install:install-file -Dfile=/c/jars/ehcache-2.7.2.jar -DgroupId=net.sf.ehcache -DartifactId=ehcache -Dversion=2.7.2 -Dpackaging=jar

copy C:\jars\ehcache-2.7.2.jar C:\Users\userid\.m2\repository\net\sf\ehcache\ehcache\2.7.2\ehcache-2.7.2.jar.sha1

Refer: sample-maven-local-import.txt

Change your Unix prompt

export PS1="\n:whoami -> ${USER}@${HOSTNAME}\n:pwd -> ${PWD}\n:"

.bashrc
# User specific aliases and functions
### export PS1='\[\033[1m\][\u@\h \w]$ \[\033[m\] '
export PS1="\n:whoami -> ${USER}@${HOSTNAME}\n:pwd -> ${PWD}\n:"