$ sudo fdisk -l
$ sudo mkdir /media/usb
$ sudo mount /dev/sdb1 /media/usb
$ sudo umount /media/usb
| #target photoshop | |
| // $.level = 2; | |
| /* | |
| * Script by Tomek Cejner (tomek (at) japko dot info) | |
| * based on work of Damien van Holten: | |
| * http://www.damienvanholten.com/blog/export-groups-to-files-photoshop/ | |
| * | |
| * My version adds support of nested layer groups, | |
| * and exports single layers in addition to groups. |
| #-- local machine | |
| $ cap production unicorn:stop | |
| $ cap production nginx:stop | |
| $ ssh deployer@example.com | |
| #-- server | |
| $ rm ~/apps/:app_name/current/tmp/pids/unicorn.* | |
| $ rm /tmp/unicorn.:app_name.sock |
http://stackoverflow.com/a/22272491
Your precompile process is probably being killed because you are running out of RAM. You can confirm this by running top in another ssh session. To fix this, create a swap file that will be used when RAM is full.
Create SWAP Space on Ubuntu You will probably end up needing some swap space if you plan on using Rails on Digital Ocean 512MB RAM droplet. Specifically, you will run out of RAM when compiling the assets resulting in the process being quietly killed and preventing successful deployments.
To see if you have a swap files:
sudo swapon -s No swap file shown? Check how much disk space space you have:
| # autoclean removes partial packages from the system. | |
| $ sudo apt-get autoclean | |
| # Removes .deb packages that apt caches when you install/update programs. | |
| $ sudo apt-get clean | |
| # Removes packages installed as dependencies after the original package is removed from the system. | |
| $ sudo apt-get autoremove | |
| # What gtkorphan does is to find packages that were once used but no longer have any purpose. |
| require 'csv' | |
| filename = ARGV[0] | |
| CSV.foreach(filename) do |row| | |
| puts row | |
| end |
| # -a: Syncs recursively and preserves symbolic links, special | |
| # and device files, modification times, group, owner, and permissions. | |
| # -n: dry run | |
| # -v: verbose | |
| # sync contents of dir1 to dir2 | |
| $ rsync -anv dir1/ dir2 |
If we have multiple ssh keys in the ~/.ssh folder.
- ~/.ssh/id_rsa
- ~/.ssh/id_rsa.pub
- ~/.ssh/hb
- ~/.ssh/hb.pub
To use hb key when executing $ ssh user@server.com add the key to ssh-add.
$ ssh-add ~/.ssh/hb
The upgrade needs a total of 81.5 M free space on disk '/boot'. Please free at least an additional 17.4 M of disk space on '/boot'. Empty your trash and remove temporary packages of former installations using 'sudo apt-get clean'.
http://askubuntu.com/questions/142926/cant-upgrade-due-to-low-disk-space-on-boot
Run below command as suggested in the error message.
$ sudo apt-get clean
First check your current kernel version.