марта
24
2009
--

xen ubuntu console-kit-daemon

При установке Ubuntu под Xen часто возникает ошибка:

Mar 24 15:55:13 db console-kit-daemon[13251]: WARNING: Error waiting for native console 58 activation: Invalid argument
Mar 24 15:55:13 db console-kit-daemon[13251]: WARNING: Error waiting for native console 8 activation: Invalid argument
Mar 24 15:55:13 db console-kit-daemon[13251]: WARNING: Error waiting for native console 43 activation: Invalid argument
Mar 24 15:55:13 db console-kit-daemon[13251]: WARNING: Error waiting for native console 47 activation: Invalid argument
Mar 24 15:55:13 db console-kit-daemon[13251]: WARNING: Error waiting for native console 45 activation: Invalid argument
Mar 24 15:55:13 db console-kit-daemon[13251]: WARNING: Error waiting for native console 12 activation: Invalid argument

лечится это так:

rm /etc/dbus-1/system.d/ConsoleKit.conf
rm /usr/share/dbus-1/system-services/org.freedesktop.ConsoleKit.service
invoke-rc.d dbus restart

Незнаю, правильно это или нет, но, демон уже не запускается при старте :-)

Опубликовал adik в Технотрония | Метки: ,
марта
20
2009
--

ubuntu [hardy/intrepid] bug #238755 ‘Account has expired’ message when adding a new user, after “passwd -l root”

‘Account has expired’ message when adding a new user, after “passwd -l root”

This seems to be related to the use of “passwd -l root”.
Until the Debian fix shows up in hardy, here is a workaround, thanks to Nicolas François:

 sudo passwd --unlock root
 sudo usermod --lock root
Опубликовал adik в Технотрония | Метки:
марта
19
2009
--

[ubuntu] wine и microsoft visio 2003

1. Устанивливаем последний wine (Wine for Ubuntu and Ubuntu derivatives)

sudo wget -q http://wine.budgetdedicated.com/apt/387EE263.gpg -O- | sudo apt-key add -
sudo wget http://wine.budgetdedicated.com/apt/sources.list.d/intrepid.list -O /etc/apt/sources.list.d/winehq.list
sudo apt-get update
sudo apt-get install wine

2.

wget http://www.kegel.com/wine/winetricks
sh winetricks corefonts vcrun6
sh winetricks wsh56
sh winetricks gecko msxml3 riched20 riched30 gdiplus

(далее…)

Опубликовал adik в Технотрония | Метки: , ,
марта
05
2009
--

Copy files partition2partition

Mount point method:

cd <mount-point-source>
find . -xdev | cpio -pm <mount-point-dest>

Block device method:

if ( size[device2] >= size[device1] )

dd if=/block/device1 of=/block/device2 bs=4k

Remote copy over ssh:

ssh remote-host.com dd if=/block/source bs=4k | dd of=/block/destination bs=4k
Опубликовал adik в Технотрония | Метки:

Работает на WordPress | Локализация: goodwin.wpbot.ru