среда, 22 августа 2012 г.

How To Use UUID To Mount Partitions

A universally unique identifier (UUID) is an identifier standard used in software construction, standardized by the Open Software Foundation (OSF) as part of the Distributed Computing Environment (DCE). The intent of UUIDs is to enable distributed systems to uniquely identify information without significant central coordination. In this context the word unique should be taken to mean "practically unique" rather than "guaranteed unique". Since the identifiers have a finite size it is possible for two differing items to share the same identifier. The identifier size and generation process need to be selected so as to make this sufficiently improbable in practice. Anyone can create a UUID and use it to identify something with reasonable confidence that the same identifier will never be unintentionally created by anyone to identify something else. Information labeled with UUIDs can therefore be later combined into a single database without needing to resolve identifier (ID) conflicts.
To list UUIDs of all partitions type:
sudo blkid
You can add device UUID to /etc/fstab to mount it automatically:
sudo nano /etc/fstab
add new line with following syntax:
UUID={UUID} {/path/to/mount} {file system type} {options} {dump} {pass}
example:
UUID=ae1ec4a1-5d6b-4fc8-a8dc-f58e8af2328d /media/sda5 ext3 user,noexec 0 0

пятница, 20 июля 2012 г.

Colorized console in Debian Linux

If you want 'ls' to be colorized you need to edit your ~/.bashrc:
# You may uncomment the following lines if you want `ls' to be colorized:
export LS_OPTIONS='--color=auto'
eval "`dircolors`"
alias ls='ls $LS_OPTIONS'
alias ll='ls $LS_OPTIONS -l'
alias l='ls $LS_OPTIONS -lA'
Now you can easily recognize files, folders and attributes

четверг, 12 апреля 2012 г.

Настройка аутентификации SSH по public key

Генерируем rsa или dsa ключ на локальной машине:
localhost$ ssh-keygen -t rsa
пароль можно оставить пустым (только имейте ввиду, что все что нужно для логина - ключ на вашем компьютере)
Копируем ключ на сервер:
localhost$ scp ~/.ssh/id_rsa.pub remote.server.com:.ssh/authorized_keys2
source

воскресенье, 25 марта 2012 г.

Format USB flash drive to FAT32 with linux

1. Find out under which device your flash drive is mounted:
sudo fdisk -l
or
lsusb
or
df
ipm@n:~$ df Filesystem 1K-blocks Used Available Use% Mounted on
/dev/sda3 39238760 27615552 11623208 71% /media/sda3
/dev/sdb1 3907104 4 3907100 1% /media/Linux Mint 12 32-bit
2. Unmount your flash:
sudo umount /dev/sdb1
3. 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 с таким содержимым:
options psmouse proto=imps
перезагружаем модуль psmouse:
sudo modprobe -r psmouse
sudo modprobe psmouse

ubuntuforums.org