Показаны сообщения с ярлыком ubuntu. Показать все сообщения
Показаны сообщения с ярлыком ubuntu. Показать все сообщения

среда, 13 ноября 2013 г.

Unix shell commands

1. Find all files in home dir with size greater than and of certain type, finally copy them to usb flash drive (on Mac OS X):
find ~ -iname '*.tiff' -size +1M -exec cp {} /Volumes/flashka/tiff/ \;

On Max OS X to preserve directory structure use pax command:
find ~ -iname '*.tiff' -size +1M -exec pax -rw {} /Volumes/flashka/tiff/ \;



понедельник, 21 января 2013 г.

Nginx and VirtualBox shared folders

Thanks to the "Geek" i've finally figured out how to operate with vboxsf on nginx.
Just turn off sendfile directive in nginx.conf.

http://smotko.si/nginx-static-file-problem/

среда, 7 декабря 2011 г.

UBUNTU. Check version of package

In order to check the version of a package (either installed or in repository):

apt-get install apt-show-versions


apt-show-versions -a <package>

среда, 15 июня 2011 г.

Ubuntu on Acer R3700 nettop can't shutdown/reboot

Seems like at least one module needs to be disabled from config.

lsmod | grep rt

Find out if there exists rt2800pci .

sudo modprobe -rf rt2800pci
echo blacklist rt2800pci | sudo tee -a /etc/modprobe.d/blacklist.conf

Tested on XFCE 11.04

суббота, 4 июня 2011 г.

UBUNTU: change hostname

To view current hostname:
sysctl kernel.hostname

To change it:
 sysctl kernel.hostname=NewHostname
Or better edit /etc/hostname

Also don't forget to edit /etc/hosts to prevent sudo showing stupid "unable to resolve" error.

вторник, 25 мая 2010 г.

Ubuntu Linux: slow login to SSH server

The solution is rather simple:
sudo echo "UseDNS no" >> /etc/ssh/sshd_config

вторник, 18 мая 2010 г.

Ubuntu Linux: Uninstall / Remove Any Installed Software

Uninstall / Delete / Remove Package

Just use the following syntax:
 sudo apt-get remove {package-name}

 For example remove package called mplayer, enter:
 $ sudo apt-get remove mplayer

Remove package called lighttpd along with all configuration files, enter:
 $ sudo apt-get --purge remove lighttpd


To list all installed package, enter:
dpkg --list
dpkg --list | less
dpkg --list | grep -i 'http'