# You may uncomment the following lines if you want `ls' to be colorized:Now you can easily recognize files, folders and attributes
export LS_OPTIONS='--color=auto'
eval "`dircolors`"
alias ls='ls $LS_OPTIONS'
alias ll='ls $LS_OPTIONS -l'
alias l='ls $LS_OPTIONS -lA'
пятница, 20 июля 2012 г.
Colorized console in Debian Linux
If you want 'ls' to be colorized you need to edit your ~/.bashrc:
четверг, 12 апреля 2012 г.
Настройка аутентификации SSH по public key
Генерируем rsa или dsa ключ на локальной машине:
Копируем ключ на сервер:
localhost$ ssh-keygen -t rsaпароль можно оставить пустым (только имейте ввиду, что все что нужно для логина - ключ на вашем компьютере)
Копируем ключ на сервер:
localhost$ scp ~/.ssh/id_rsa.pub remote.server.com:.ssh/authorized_keys2source
воскресенье, 25 марта 2012 г.
Format USB flash drive to FAT32 with linux
1. Find out under which device your flash drive is mounted:
source
sudo fdisk -lor
lsusbor
df
ipm@n:~$ df Filesystem 1K-blocks Used Available Use% Mounted on2. Unmount your flash:
/dev/sda3 39238760 27615552 11623208 71% /media/sda3
/dev/sdb1 3907104 4 3907100 1% /media/Linux Mint 12 32-bit
sudo umount /dev/sdb13. Format:
sudo mkdosfs -F32 -I /dev/sdb1(I - is capital letter i)
source
суббота, 4 февраля 2012 г.
Включение скроллинга для ALPS touchpad в Ubuntu 11.10
Создаем файл /etc/modprobe.d/psmouse.conf с таким содержимым:
ubuntuforums.org
options psmouse proto=impsперезагружаем модуль psmouse:
sudo modprobe -r psmouse
sudo modprobe psmouse
ubuntuforums.org
вторник, 8 ноября 2011 г.
Добавление города в Weather applet Gnome
На gnome-панели можно добавить прикольную штуковину - (впадлу встать и в окно посмотреть))) погодный апплет. Точнее он есть в двух видах: отдельно для погоды, и с часами, куда можно тоже добавить вывод информации о погоде.
Но некоторых городов в списке нет.
Но некоторых городов в списке нет.
вторник, 1 ноября 2011 г.
Установка Firefox 7.0.1 и Flash Player 11.0.1 в Gentoo Linux
Надоело пользоваться старым файрфоксом (3.6), который ставится по дефолту с Gentoo, решил обновить и.. оказывается, не все так просто :)
Установка Adobe Flash Player 11:
Аналогично устанавливаем Firefox 11:
Установка Adobe Flash Player 11:
su
echo ">=www-plugins/adobe-flash-11.0.1.152 ~x86" >> /etc/portage/package.keywords
echo "ACCEPT_LICENCE="*"" >> /etc/make.conf
emerge ">=www-plugins/adobe-flash-11.0.1.152"
Аналогично устанавливаем Firefox 11:
echo ">=www-client/firefox-7.0.1-r1 ~x86" >> /etc/portage/package.keywords
emerge ">=www-client/firefox-7.0.1-r1"
Enable Open in Terminal on Nautilus Context Menu
Some linux distributions have good feature in context menu - Open folder in Terminal. I'll show how to install it for Gentoo Linux. It's very simple:
..and restart X
sudo emerge nautilus-open-terminal
..and restart X
суббота, 27 августа 2011 г.
Restore GRUB after Windows installation
If your ubuntu is (hd0,3) then this should do it from a liveCD:
In terminal
sudo grub
root (hd0,3) <-- this must point to location of 'stage1', else see nb:
setup (hd0) <-- installs grub IPL to MBR of first hard drive.
quit
Reboot
nb: if location of 'stage1' is unknown,
find grub/stage1
or
find /boot/grub/stage1
is needed, after step #1
http://ubuntuforums.org/showthread.php?t=1285499
In terminal
sudo grub
root (hd0,3) <-- this must point to location of 'stage1', else see nb:
setup (hd0) <-- installs grub IPL to MBR of first hard drive.
quit
Reboot
nb: if location of 'stage1' is unknown,
find grub/stage1
or
find /boot/grub/stage1
is needed, after step #1
http://ubuntuforums.org/showthread.php?t=1285499
воскресенье, 19 июня 2011 г.
Установка nginx + php-fpm + mysql на Gentoo
Устанавливаем nginx:
Установка MySQL:
USE=fastcgi emerge nginxСоздаем юзера и группу для www:
groupadd www
useradd www -g www
Установка MySQL:
среда, 15 июня 2011 г.
Using Masked Packages
The package.unmask location
Important: The Gentoo developers do not support the use of this location. Please exercise due caution when doing so. Support requests related to package.unmask and/or package.mask will not be answered. You have been warned.
When a package has been masked by the Gentoo developers and you still want to use it despite the reason mentioned in the package.mask file (situated in /usr/portage/profiles by default), add the desired version (usually this will be the exact same line from profiles) in the /etc/portage/package.unmask file (or in a file in that directory if it is a directory).
For instance, if =net-mail/hotwayd-0.8 is masked, you can unmask it by adding the exact same line in the package.unmask location:
Code Listing 3.1: /etc/portage/package.unmask
or in the package.keywords file /etc/portage/package.keywords
Code Listing: /etc/portage/package.keywords
Gentoo handbook
Important: The Gentoo developers do not support the use of this location. Please exercise due caution when doing so. Support requests related to package.unmask and/or package.mask will not be answered. You have been warned.
When a package has been masked by the Gentoo developers and you still want to use it despite the reason mentioned in the package.mask file (situated in /usr/portage/profiles by default), add the desired version (usually this will be the exact same line from profiles) in the /etc/portage/package.unmask file (or in a file in that directory if it is a directory).
For instance, if =net-mail/hotwayd-0.8 is masked, you can unmask it by adding the exact same line in the package.unmask location:
Code Listing 3.1: /etc/portage/package.unmask
=net-mail/hotwayd-0.8
or in the package.keywords file /etc/portage/package.keywords
Code Listing: /etc/portage/package.keywords
x11-wm/compiz
x11-wm/compiz-fusion
x11-wm/emerald
gnome-extra/nautilus-dropbox
Gentoo handbook
Подписаться на:
Сообщения (Atom)