Search posterous

Search all posts and users. Type a name, type a favorite song title, whatever! See what comes up.
  

More posterous blogs











More recommended blogs »

Here are posterous posts filed under debian...

Tosta says...

When updating the Debian based system, it may happens that the apt-get displays an error message like:

W: GPG error: ftp://ftp.debian.org/ testing Release: 
The following signatures couldn't be verified because the public key is not available: NO_PUBKEY 010908312D230C5F

W: There is no public key available for the following key IDs:
010908312D230C5F

This is a new feature of the apt-get system that guarantee the authenticity of servers for updating Debian.

Solution:
Simply type the following commands, taking care to replace the number of the key that displayed in the error message:

gpg --keyserver pgpkeys.mit.edu --recv-key  010908312D230C5F
gpg -a --export 010908312D230C5F | sudo apt-key add -

Filed under: debian, linux

bernardelli says...

OK folks, I am not a very happy camper at the moment. Thanks to some unbelievable stupidity on the part of Whoever is responsible for packaging kernels at Debian I had to re-install my system.

On Saturday a kernel update meandered its merry way from the repos and then didn't install cause dpkg crapped out with a "disk full" error. The "disk" in question being sda1 aka my boot partition.

Not counting the fact that there were still nearly 100MB of free space which should have been enough for a 70MB kernel image that was supposed to replace the previous image the boot partition in question was also sized according to Debian's very own suggestions during the original installation of the system.

An original installation, one must mention, that took place when kernel images already had reached their current bloated size.

A humble suggestion to the installer honchos: If the user is about to use a whole disk for "single-boot" install and said disk is hundreds of GB in size, why not make sda1 == 1GB instead of the current value of 350MB? I mean, future kernels will most probably not be smaller than current ones.

gParted Live-CD was no help. No matter which hoops I jumped through it just wouldn't grow the sda1 primary partition.

Quick decision: Backup home and etc and install a new system with a new partition map.

Off to the Debian website and download Lenny aka Debian 5.0.3 as a net-install ISO.

Installation was the usual Debian yawn-fest up to the point where one has to decide which crap is to go on top of the basic system.

After previous bad experiences with selecting "desktop", which gives you "The full GNOME" complete with 4 versions of everything plus the kitchen sink, I opted out at that point and rebooted into the console from whence to install bits and pieces as wanted. Comes the time for CUPS ...

CUPS now depends on Samba. For no sane reason whatsoever. Don't want Samba? Can't have CUPS!

At the same time sane dependencies like e.g. foomatic and ghostscript don't exist for CUPS. You have to find those yourself. Which of course every noob will do by instinct ...

Next piece of crap - avahi. Who wants it? Nobody! Who uses it? Nobody! So why the fuck is it a hard dependency for the gnome-desktop-environment package?

Don't believe me? Try apt-get purge avahi and apt-get will tell you where to stick your freedom of choice. It's either GNOME with avahi or no GNOME at all.

Now here's a question: Why is there no package called e.g. "gnome-minimal" which gives you the panels and drawers plus a a window manager and a minimalistic set of the most necessary applets, together with synaptic and a printing system?

The way things are at the moment the user has the choice between bloat and megabloat or a painstaking search for individual components.

And for fuck's sake take "treat recommendations as dependencies" out of the default settings of apt and its front ends.

Filed under: Debian, Linux

Jos says...

Hi,

At work we recently got new laptops. Unfortunately for me, my employer has standardized on "Querty" keyboards. Even more unfortunately for me, in our country people are tought to type on "Azerty" keyboards.

No problem, on my desk i have a nice "Azerty" incarnation of a keyboard which plugs nicely with USB on my laptop. However, on the road i am still stuck with the Querty keyboard.

So, i just basically need the "querty" layout on the laptop keyboard and an "azerty" layout on the USB keyboard. ( windows guys, watch and drool :) )

To do this you will need to fiddle with "HAL", so that it passes the right configuration into xorg. ( i just leave my text console into querty )

First, find out about the properties of you keyboard.
Do this by looking at the output of the "hal-device" command and look for the "input.product" keys of the USB keyboard.
Then create a file named "/etc/hal/fdi/policy/10-keymap.fdi" and put this into it:

<?xml version="1.0" encoding="ISO-8859-1"?>
<match key="input.product" contains="Darfon USB Combo Keyboard">
<merge key="input.x11_driver" type="string">evdev</merge>
<merge key="input.xkb.layout" type="string">be</merge>
<merge key="input.xkb.model" type="string">pc105</merge>
<merge key="input.xkb.rules" type="string">xorg</merge>
</match>

Finally i had to disable the script that automagically configures the properties for my keyboards so i put an "exit" somewhere in the beginning of "/usr/lib/hal/debian-setup-keyboard". Sooner or later, an update will probably break this configuration, but for now it works :)

Jos

Filed under: Azerty, Debian, HAL, Querty, Xorg

fnielsen says...

I upgraded Debian on an old desktop computer from oldstable (etch/Debian 4.0) to stable (lenny/Debian 5.0). Upgrading is still a bit of a headache. It runs ok with "aptitude dist-upgrade". It takes quite a while, - while you are watching "Running udpmap-sys. This may take some time": Yes, it indeed does! Then comes the reboot. It now sometimes can't mount and stops in the middle of the booting. I wonder if the old computer suffers from SCSI hardware problems or if it is a new kernel issue. Then comes X. First it didn't start. After the introduction of magic in /etc/X11/xorg.conf X would come, but now my GL capabilities have been lost somewhere between nvidia binary, nvidia legacy binary and nvidia standard driver. I could probably spend some time looking at this issue, but I would like to use my time better than for these nerdish problems. Hmmm...

Filed under: Debian, etch, lenny, nvidia, upgrade

white says...

Monit is a nice tool for monitoring processes.  I know it's widely used in the RoR environment to monitor Mongrel's that goes nutz and eat too much memory.  It's really easy to setup and configure.  You don't need to be too much in systems administration to handle it, so it's a good tool.

ActiveMQ is something not that light.  But this is one of the most powerful and free messaging providers.

Debian is Linux. :)

Okay, so I'll tell you how you can monitor ActiveMQ with Monit.  It's pretty easy, but we should start with a few tweaks of run scripts for ActiveMQ first.  In my specific setup I have ActiveMQ based at /usr/local/apache-activemq-5.2.0 and the platform is Debian Linux.  It's actually running a Xen-based server on Slicehost which I am very happy about, but that's a different story. 

What I am using to manage ActiveMQ is script /usr/local/apache-activemq-5.2.0/bin/linux-x86-64/activemq.  

# /usr/local/apache-activemq-5.2.0/bin/linux-x86-64/activemq 
Usage: /usr/local/apache-activemq-5.2.0/bin/linux-x86-64/activemq { console | start | stop | restart | status | dump }

You probably mention that I'm using the ...-x86-64 one.  There is also a ...-x86-32 and macosx here, which you can use accordingly for your platform (run uname -a to figure this if you're not sure, although you might not be the right guy to set it up if it's so).

Whatever, first of all I had to modify the first lines of /usr/local/apache-activemq-5.2.0/bin/linux-x86-64/wrapper.conf

set.default.ACTIVEMQ_HOME=/usr/local/apache-activemq-5.2.0/
set.default.ACTIVEMQ_BASE=/usr/local/apache-activemq-5.2.0/

There also many other things you can adjust there, but that's your own business.

After that, you can use /usr/local/apache-activemq-5.2.0/bin/linux-x86-64/activemq to start and stop broker.  You might also want to run activemq console at the first time to see all the logs and messages that are coming to console, to confirm that everything works just fine.  If you're using a server with a limited amount of memory available, make sure to adjust -Xmx setting, it can be done at wrapper.conf:

wrapper.java.maxmemory=128

Now time to modify Monit config file a little bit.  I'll edit /etc/monit/monitrc:

check process activemq
    with pidfile /usr/local/apache-activemq-5.2.0/bin/linux-x86-64/ActiveMQ.pid
    start program = "/usr/local/apache-activemq-5.2.0/bin/linux-x86-64/activemq start"
    stop program = "/usr/local/apache-activemq-5.2.0/bin/linux-x86-64/activemq stop"
    if failed host 127.0.0.1 port 61616 then restart                    

The 61616 port is ActiveMQ default one.  It safe to monitor it, as if it doesn't work, something is wrong.  Basically that's it.  Make sure to reload Monit  to load new configuration file and that's it - you're not afraid of restarts anymore.

Filed under: activemq, debian, linux, monit, sysadmin

hdknr says...

[debian] resolvconfAdd Star

VMware上のsargeにdnsmasqと一緒に入れてみたら、毎回/etc/resolvconf/resolv.conf.d/original|sudo resolvconf -a eth0としないとdnsmasqの設定にnameserver 192.168.184.2が入らなくて困ってしまったので、/etc/network/interfacesのiface eth0 inet staticのところにup echo nameserver 192.168.184.2|resolvconf -a eth0を追加してみた。

Filed under: Debian, resolvconf

hdknr says...

hdknr@debsq:~$ sudo aptitude  install ruby1.8 -y
パッケージリストを読み込んでいます... 完了
依存関係ツリーを作成しています               
状態情報を読み取っています... 完了
拡張状態情報を読み込んでいます     
パッケージの状態を初期化しています... 完了
タスクの記述を読み込んでいます... 完了       
以下の新規パッケージがインストールされます:
  libruby1.8{a} ruby1.8
更新: 0 個、新規インストール: 2 個、削除: 0 個、保留: 0 個。
1,969kB のアーカイブを取得する必要があります。展開後に 6,631kB のディスク領域が新たに消費されます。
拡張状態情報を書き込んでいます... 完了
取得:1 http://ftp.jp.debian.org squeeze/main libruby1.8 1.8.7.174-2 [1,678kB]
取得:2 http://ftp.jp.debian.org squeeze/main ruby1.8 1.8.7.174-2 [291kB]                                                                                             
1,969kB を 14s 秒でダウンロードしました (134kB/s)                                                                                                                    
未選択パッケージ libruby1.8 を選択しています。
(データベースを読み込んでいます ... 現在 30000 個のファイルとディレクトリがインストールされています。)
(.../libruby1.8_1.8.7.174-2_i386.deb から) libruby1.8 を展開しています...
未選択パッケージ ruby1.8 を選択しています。
(.../ruby1.8_1.8.7.174-2_i386.deb から) ruby1.8 を展開しています...
man-db のトリガを処理しています ...
libruby1.8 (1.8.7.174-2) を設定しています ...
ruby1.8 (1.8.7.174-2) を設定しています ...
パッケージリストを読み込んでいます... 完了
依存関係ツリーを作成しています               
状態情報を読み取っています... 完了
拡張状態情報を読み込んでいます     
パッケージの状態を初期化しています... 完了
拡張状態情報を書き込んでいます... 完了       
タスクの記述を読み込んでいます... 完了


hdknr@debsq:~$ sudo aptitude install irb1.8 -y
パッケージリストを読み込んでいます... 完了
依存関係ツリーを作成しています               
状態情報を読み取っています... 完了
拡張状態情報を読み込んでいます     
パッケージの状態を初期化しています... 完了
タスクの記述を読み込んでいます... 完了       
以下の新規パッケージがインストールされます:
  irb1.8 libreadline-ruby1.8{a}
更新: 0 個、新規インストール: 2 個、削除: 0 個、保留: 0 個。
582kB のアーカイブを取得する必要があります。展開後に 950kB のディスク領域が新たに消費されます。
拡張状態情報を書き込んでいます... 完了
取得:1 http://ftp.jp.debian.org squeeze/main libreadline-ruby1.8 1.8.7.174-2 [271kB]
取得:2 http://ftp.jp.debian.org squeeze/main irb1.8 1.8.7.174-2 [311kB]
582kB を 5s 秒でダウンロードしました (110kB/s)
未選択パッケージ libreadline-ruby1.8 を選択しています。
(データベースを読み込んでいます ... 現在 30582 個のファイルとディレクトリがインストールされています。)
(.../libreadline-ruby1.8_1.8.7.174-2_i386.deb から) libreadline-ruby1.8 を展開しています...
未選択パッケージ irb1.8 を選択しています。
(.../irb1.8_1.8.7.174-2_all.deb から) irb1.8 を展開しています...
man-db のトリガを処理しています ...
libreadline-ruby1.8 (1.8.7.174-2) を設定しています ...
irb1.8 (1.8.7.174-2) を設定しています ...
パッケージリストを読み込んでいます... 完了
依存関係ツリーを作成しています               
状態情報を読み取っています... 完了
拡張状態情報を読み込んでいます     
パッケージの状態を初期化しています... 完了
拡張状態情報を書き込んでいます... 完了       
タスクの記述を読み込んでいます... 完了


hdknr@debsq:~$ wget http://rubyforge.org/frs/download.php/60718/rubygems-1.3.5.tgz

hdknr@debsq:~$ tar xfz rubygems-1.3.5.tgz
hdknr@debsq:~$ cd rubygems-1.3.5/
hdknr@debsq:~/rubygems-1.3.5$

hdknr@debsq:~/rubygems-1.3.5$ sudo ruby1.8 setup.rb
RubyGems 1.3.5 installed
./lib/rubygems/custom_require.rb:31:in `gem_original_require': no such file to load -- rdoc/rdoc (LoadError)
     from ./lib/rubygems/custom_require.rb:31:in `require'
     from ./lib/rubygems/commands/setup_command.rb:352:in `run_rdoc'
     from ./lib/rubygems/commands/setup_command.rb:247:in `install_rdoc'
     from ./lib/rubygems/commands/setup_command.rb:120:in `execute'
     from ./lib/rubygems/command.rb:257:in `invoke'
     from ./lib/rubygems/command_manager.rb:132:in `process_args'
     from ./lib/rubygems/command_manager.rb:102:in `run'
     from ./lib/rubygems/gem_runner.rb:58:in `run'
     from setup.rb:35

hdknr@debsq:~/rubygems-1.3.5$ sudo aptitude install rdoc1.8 -y
パッケージリストを読み込んでいます... 完了
依存関係ツリーを作成しています               
状態情報を読み取っています... 完了
拡張状態情報を読み込んでいます     
パッケージの状態を初期化しています... 完了
タスクの記述を読み込んでいます... 完了       
以下の新規パッケージがインストールされます:
  rdoc1.8
更新: 0 個、新規インストール: 1 個、削除: 0 個、保留: 0 個。
385kB のアーカイブを取得する必要があります。展開後に 971kB のディスク領域が新たに消費されます。
拡張状態情報を書き込んでいます... 完了
取得:1 http://ftp.jp.debian.org squeeze/main rdoc1.8 1.8.7.174-2 [385kB]
385kB を 7s 秒でダウンロードしました (52.3kB/s)                                                                    
未選択パッケージ rdoc1.8 を選択しています。
(データベースを読み込んでいます ... 現在 30647 個のファイルとディレクトリがインストールされています。)
(.../rdoc1.8_1.8.7.174-2_all.deb から) rdoc1.8 を展開しています...
man-db のトリガを処理しています ...
rdoc1.8 (1.8.7.174-2) を設定しています ...
パッケージリストを読み込んでいます... 完了
依存関係ツリーを作成しています               
状態情報を読み取っています... 完了
拡張状態情報を読み込んでいます     
パッケージの状態を初期化しています... 完了
拡張状態情報を書き込んでいます... 完了       
タスクの記述を読み込んでいます... 完了

hdknr@debsq:~/rubygems-1.3.5$ sudo ruby1.8 setup.rb
RubyGems 1.3.5 installed

=== 1.3.5 / 2009-07-21

Bug fixes:

* Fix use of prerelease gems.
* Gem.bin_path no longer escapes path with spaces. Bug #25935 and #26458.

Deprecation Notices:

* Bulk index update is no longer supported (the code currently remains, but not
  the tests)
* Gem::manage_gems was removed in 1.3.3.
* Time::today was removed in 1.3.3.


------------------------------------------------------------------------------

RubyGems installed the following executables:
     /usr/bin/gem1.8

  hdknr@debsq:~/rubygems-1.3.5$ sudo gem1.8 install rails
Successfully installed rake-0.8.7
Successfully installed activesupport-2.3.4
Successfully installed activerecord-2.3.4
Successfully installed rack-1.0.0
Successfully installed actionpack-2.3.4
Successfully installed actionmailer-2.3.4
Successfully installed activeresource-2.3.4
Successfully installed rails-2.3.4
8 gems installed
Installing ri documentation for rake-0.8.7...
Installing ri documentation for activesupport-2.3.4...
Installing ri documentation for activerecord-2.3.4...
Installing ri documentation for rack-1.0.0...
Installing ri documentation for actionpack-2.3.4...
Installing ri documentation for actionmailer-2.3.4...
Installing ri documentation for activeresource-2.3.4...
Installing ri documentation for rails-2.3.4...
Installing RDoc documentation for rake-0.8.7...
Installing RDoc documentation for activesupport-2.3.4...
Installing RDoc documentation for activerecord-2.3.4...
Installing RDoc documentation for rack-1.0.0...
Installing RDoc documentation for actionpack-2.3.4...
Installing RDoc documentation for actionmailer-2.3.4...
Installing RDoc documentation for activeresource-2.3.4...
Installing RDoc documentation for rails-2.3.4...


hdknr@debsq:~$ sudo aptitude install libopenssl-ruby1.8
パッケージリストを読み込んでいます... 完了
依存関係ツリーを作成しています               
状態情報を読み取っています... 完了
拡張状態情報を読み込んでいます     
パッケージの状態を初期化しています... 完了
拡張状態情報を書き込んでいます... 完了       
タスクの記述を読み込んでいます... 完了
以下の新規パッケージがインストールされます:
  libopenssl-ruby1.8
更新: 0 個、新規インストール: 1 個、削除: 0 個、保留: 0 個。
384kB のアーカイブを取得する必要があります。展開後に 770kB のディスク領域が新たに消費されます。
拡張状態情報を書き込んでいます... 完了
取得:1 http://ftp.jp.debian.org squeeze/main libopenssl-ruby1.8 1.8.7.174-2 [384kB]
384kB を 0s 秒でダウンロードしました (602kB/s)
未選択パッケージ libopenssl-ruby1.8 を選択しています。
(データベースを読み込んでいます ... 現在 30717 個のファイルとディレクトリがインストールされています。)
(.../libopenssl-ruby1.8_1.8.7.174-2_i386.deb から) libopenssl-ruby1.8 を展開しています...
libopenssl-ruby1.8 (1.8.7.174-2) を設定しています ...
パッケージリストを読み込んでいます... 完了
依存関係ツリーを作成しています               
状態情報を読み取っています... 完了
拡張状態情報を読み込んでいます     
パッケージの状態を初期化しています... 完了
拡張状態情報を書き込んでいます... 完了       
タスクの記述を読み込んでいます... 完了

hdknr@debsq:~$ sudo aptitude install mysql-client mysql-server -y
パッケージリストを読み込んでいます... 完了
依存関係ツリーを作成しています               
状態情報を読み取っています... 完了
拡張状態情報を読み込んでいます     
パッケージの状態を初期化しています... 完了
タスクの記述を読み込んでいます... 完了       
以下の新規パッケージがインストールされます:
  libdbd-mysql-perl{a} libdbi-perl{a} libhtml-template-perl{a} libmysqlclient16{a} libnet-daemon-perl{a}
  libplrpc-perl{a} mysql-client mysql-client-5.1{a} mysql-common{a} mysql-server mysql-server-5.1{a} psmisc{a}
更新: 0 個、新規インストール: 12 個、削除: 0 個、保留: 0 個。
22.5MB のアーカイブを取得する必要があります。展開後に 53.6MB のディスク領域が新たに消費されます。
拡張状態情報を書き込んでいます... 完了
取得:1 http://ftp.jp.debian.org squeeze/main mysql-common 5.1.37-2 [66.7kB]
取得:2 http://ftp.jp.debian.org squeeze/main libnet-daemon-perl 0.43-1 [46.6kB]
取得:3 http://ftp.jp.debian.org squeeze/main libplrpc-perl 0.2020-2 [36.0kB]
取得:4 http://ftp.jp.debian.org squeeze/main libdbi-perl 1.609-1 [798kB]
取得:5 http://ftp.jp.debian.org squeeze/main libmysqlclient16 5.1.37-2 [1,927kB]
取得:6 http://ftp.jp.debian.org squeeze/main libdbd-mysql-perl 4.012-1+b1 [135kB]
取得:7 http://ftp.jp.debian.org squeeze/main mysql-client-5.1 5.1.37-2 [8,247kB]
取得:8 http://ftp.jp.debian.org squeeze/main psmisc 22.8-1 [87.8kB]                                               
取得:9 http://ftp.jp.debian.org squeeze/main mysql-server-5.1 5.1.37-2 [11.0MB]                                   
取得:10 http://ftp.jp.debian.org squeeze/main libhtml-template-perl 2.9-1 [65.7kB]                                
取得:11 http://ftp.jp.debian.org squeeze/main mysql-client 5.1.37-2 [61.0kB]                                      
取得:12 http://ftp.jp.debian.org squeeze/main mysql-server 5.1.37-2 [61.1kB]                                      
22.5MB を 18s 秒でダウンロードしました (1,192kB/s)                                                                
パッケージを事前設定しています ...
未選択パッケージ mysql-common を選択しています。
(データベースを読み込んでいます ... 現在 30753 個のファイルとディレクトリがインストールされています。)
(.../mysql-common_5.1.37-2_all.deb から) mysql-common を展開しています...
未選択パッケージ libnet-daemon-perl を選択しています。
(.../libnet-daemon-perl_0.43-1_all.deb から) libnet-daemon-perl を展開しています...
未選択パッケージ libplrpc-perl を選択しています。
(.../libplrpc-perl_0.2020-2_all.deb から) libplrpc-perl を展開しています...
未選択パッケージ libdbi-perl を選択しています。
(.../libdbi-perl_1.609-1_i386.deb から) libdbi-perl を展開しています...
未選択パッケージ libmysqlclient16 を選択しています。
(.../libmysqlclient16_5.1.37-2_i386.deb から) libmysqlclient16 を展開しています...
未選択パッケージ libdbd-mysql-perl を選択しています。
(.../libdbd-mysql-perl_4.012-1+b1_i386.deb から) libdbd-mysql-perl を展開しています...
未選択パッケージ mysql-client-5.1 を選択しています。
(.../mysql-client-5.1_5.1.37-2_i386.deb から) mysql-client-5.1 を展開しています...
未選択パッケージ psmisc を選択しています。
(.../psmisc_22.8-1_i386.deb から) psmisc を展開しています...
man-db のトリガを処理しています ...
mysql-common (5.1.37-2) を設定しています ...
未選択パッケージ mysql-server-5.1 を選択しています。
(データベースを読み込んでいます ... 現在 31068 個のファイルとディレクトリがインストールされています。)
(.../mysql-server-5.1_5.1.37-2_i386.deb から) mysql-server-5.1 を展開しています...
未選択パッケージ libhtml-template-perl を選択しています。
(.../libhtml-template-perl_2.9-1_all.deb から) libhtml-template-perl を展開しています...
未選択パッケージ mysql-client を選択しています。
(.../mysql-client_5.1.37-2_all.deb から) mysql-client を展開しています...
未選択パッケージ mysql-server を選択しています。
(.../mysql-server_5.1.37-2_all.deb から) mysql-server を展開しています...
man-db のトリガを処理しています ...
libnet-daemon-perl (0.43-1) を設定しています ...
libplrpc-perl (0.2020-2) を設定しています ...
libdbi-perl (1.609-1) を設定しています ...
libmysqlclient16 (5.1.37-2) を設定しています ...
libdbd-mysql-perl (4.012-1+b1) を設定しています ...
mysql-client-5.1 (5.1.37-2) を設定しています ...
psmisc (22.8-1) を設定しています ...
mysql-server-5.1 (5.1.37-2) を設定しています ...
Stopping MySQL database server: mysqld.
090925 21:36:19 [Note] Plugin 'FEDERATED' is disabled.
090925 21:36:19  InnoDB: Started; log sequence number 0 44233
090925 21:36:19  InnoDB: Starting shutdown...
090925 21:36:21  InnoDB: Shutdown completed; log sequence number 0 44233
090925 21:36:21 [Warning] Forcing shutdown of 1 plugins
Starting MySQL database server: mysqld ..
Checking for corrupt, not cleanly closed and upgrade needing tables..
libhtml-template-perl (2.9-1) を設定しています ...
mysql-client (5.1.37-2) を設定しています ...
mysql-server (5.1.37-2) を設定しています ...
パッケージリストを読み込んでいます... 完了
依存関係ツリーを作成しています               
状態情報を読み取っています... 完了
拡張状態情報を読み込んでいます      
パッケージの状態を初期化しています... 完了
拡張状態情報を書き込んでいます... 完了       
タスクの記述を読み込んでいます... 完了  

MySQLのインストール。
http://hdknr.posterous.com/ruby-gem-install-mysq-on-squeeze-libmysqlclie

passenger & nginx のインストール。
http://hdknr.posterous.com/rails-passenger-and-nginx-install-on-debian-s

Filed under: Debian, gem, rails, ruby, Squeeze

hdknr says...

hdknr@debsq:~$ sudo gem1.8 install mysql
Building native extensions. This could take a while...
ERROR: Error installing mysql:
ERROR: Failed to build gem native extension.

/usr/bin/ruby1.8 extconf.rb
extconf.rb:10:in `require': no such file to load -- mkmf (LoadError)
from extconf.rb:10


Gem files will remain installed in
/usr/lib/ruby/gems/1.8/gems/mysql-2.8.1 for inspection.
Results logged to
/usr/lib/ruby/gems/1.8/gems/mysql-2.8.1/ext/mysql_api/gem_make.out

hdknr@debsq:~$ sudo aptitude install ruby1.8-dev -y
パッケージリストを読み込んでいます... 完了
依存関係ツリーを作成しています
状態情報を読み取っています... 完了
拡張状態情報を読み込んでいます
パッケージの状態を初期化しています... 完了
タスクの記述を読み込んでいます... 完了
以下の新規パッケージがインストールされます:
ruby1.8-dev
更新: 0 個、新規インストール: 1 個、削除: 0 個、保留: 0 個。
834kB のアーカイブを取得する必要があります。展開後に 1,872kB のディスク
領域が新たに消費されます。
拡張状態情報を書き込んでいます... 完了
取得:1 http://ftp.jp.debian.org squeeze/main ruby1.8-dev 1.8.7.174-2 [834kB]
834kB を 2s 秒でダウンロードしました (410kB/s)
未選択パッケージ ruby1.8-dev を選択しています。
(データベースを読み込んでいます ... 現在 31249 個のファイルとディレクト
リがインストールされています。)
(.../ruby1.8-dev_1.8.7.174-2_i386.deb から) ruby1.8-dev を展開しています...
ruby1.8-dev (1.8.7.174-2) を設定しています ...
パッケージリストを読み込んでいます... 完了
依存関係ツリーを作成しています
状態情報を読み取っています... 完了
拡張状態情報を読み込んでいます
パッケージの状態を初期化しています... 完了
拡張状態情報を書き込んでいます... 完了
タスクの記述を読み込んでいます... 完了

hdknr@debsq:~$ sudo gem1.8 install mysql
Building native extensions. This could take a while...
ERROR: Error installing mysql:
ERROR: Failed to build gem native extension.

/usr/bin/ruby1.8 extconf.rb
checking for mysql_query() in -lmysqlclient... no
checking for main() in -lm... yes
checking for mysql_query() in -lmysqlclient... no
checking for main() in -lz... no
checking for mysql_query() in -lmysqlclient... no
checking for main() in -lsocket... no
checking for mysql_query() in -lmysqlclient... no
checking for main() in -lnsl... yes
checking for mysql_query() in -lmysqlclient... no
checking for main() in -lmygcc... no
checking for mysql_query() in -lmysqlclient... no
*** extconf.rb failed ***
Could not create Makefile due to some reason, probably lack of
necessary libraries and/or headers. Check the mkmf.log file for more
details. You may need configuration options.

Provided configuration options:
--with-opt-dir
--without-opt-dir
--with-opt-include
--without-opt-include=${opt-dir}/include
--with-opt-lib
--without-opt-lib=${opt-dir}/lib
--with-make-prog
--without-make-prog
--srcdir=.
--curdir
--ruby=/usr/bin/ruby1.8
--with-mysql-config
--without-mysql-config
--with-mysql-dir
--without-mysql-dir
--with-mysql-include
--without-mysql-include=${mysql-dir}/include
--with-mysql-lib
--without-mysql-lib=${mysql-dir}/lib
--with-mysqlclientlib
--without-mysqlclientlib
--with-mlib
--without-mlib
--with-mysqlclientlib
--without-mysqlclientlib
--with-zlib
--without-zlib
--with-mysqlclientlib
--without-mysqlclientlib
--with-socketlib
--without-socketlib
--with-mysqlclientlib
--without-mysqlclientlib
--with-nsllib
--without-nsllib
--with-mysqlclientlib
--without-mysqlclientlib
--with-mygcclib
--without-mygcclib
--with-mysqlclientlib
--without-mysqlclientlib


Gem files will remain installed in
/usr/lib/ruby/gems/1.8/gems/mysql-2.8.1 for inspection.
Results logged to
/usr/lib/ruby/gems/1.8/gems/mysql-2.8.1/ext/mysql_api/gem_make.out

hdknr@debsq:~$ sudo aptitude install libmysql-ruby1.8 -y
パッケージリストを読み込んでいます... 完了
依存関係ツリーを作成しています
状態情報を読み取っています... 完了
拡張状態情報を読み込んでいます
パッケージの状態を初期化しています... 完了
タスクの記述を読み込んでいます... 完了
以下の新規パッケージがインストールされます:
libmysql-ruby1.8
更新: 0 個、新規インストール: 1 個、削除: 0 個、保留: 0 個。
55.9kB のアーカイブを取得する必要があります。展開後に 217kB のディスク領
域が新たに消費されます。
拡張状態情報を書き込んでいます... 完了
取得:1 http://ftp.jp.debian.org squeeze/main libmysql-ruby1.8 2.8.1-1+b1
[55.9kB]
55.9kB を 0s 秒でダウンロードしました (235kB/s)
未選択パッケージ libmysql-ruby1.8 を選択しています。
(データベースを読み込んでいます ... 現在 31279 個のファイルとディレクト
リがインストールされています。)
(.../libmysql-ruby1.8_2.8.1-1+b1_i386.deb から) libmysql-ruby1.8 を展開
しています...
libmysql-ruby1.8 (2.8.1-1+b1) を設定しています ...
パッケージリストを読み込んでいます... 完了
依存関係ツリーを作成しています
状態情報を読み取っています... 完了
拡張状態情報を読み込んでいます
パッケージの状態を初期化しています... 完了
拡張状態情報を書き込んでいます... 完了
タスクの記述を読み込んでいます... 完了

hdknr@debsq:~$ dpkg -L libmysqlclient16
/.
/usr
/usr/lib
/usr/lib/libmysqlclient.so.16.0.0
/usr/lib/libmysqlclient_r.so.16.0.0
/usr/share
/usr/share/doc
/usr/share/doc/libmysqlclient16
/usr/share/doc/libmysqlclient16/changelog.gz
/usr/share/doc/libmysqlclient16/EXCEPTIONS-CLIENT.gz
/usr/share/doc/libmysqlclient16/changelog.Debian.gz
/usr/share/doc/libmysqlclient16/copyright
/usr/lib/libmysqlclient_r.so.16
/usr/lib/libmysqlclient.so.16

hdknr@debsq:~$ dpkg -L libmysql-ruby1.8
/.
/usr
/usr/lib
/usr/lib/ruby
/usr/lib/ruby/1.8
/usr/lib/ruby/1.8/i486-linux
/usr/lib/ruby/1.8/i486-linux/mysql.so
/usr/share
/usr/share/doc
/usr/share/doc/libmysql-ruby1.8
/usr/share/doc/libmysql-ruby1.8/changelog.Debian.gz
/usr/share/doc/libmysql-ruby1.8/copyright
/usr/share/doc/libmysql-ruby1.8/examples
/usr/share/doc/libmysql-ruby1.8/examples/test.rb.gz
/usr/share/doc/libmysql-ruby1.8/README_ja.html
/usr/share/doc/libmysql-ruby1.8/README.html
/usr/share/doc/libmysql-ruby1.8/tommy.css

hdknr@debsq:~$ sudo aptitude install libmysqlclient-dev
パッケージリストを読み込んでいます... 完了
依存関係ツリーを作成しています
状態情報を読み取っています... 完了
拡張状態情報を読み込んでいます
パッケージの状態を初期化しています... 完了
タスクの記述を読み込んでいます... 完了
以下の新規パッケージがインストールされます:
libmysqlclient-dev zlib1g-dev{a}
更新: 0 個、新規インストール: 2 個、削除: 0 個、保留: 0 個。
2,479kB のアーカイブを取得する必要があります。展開後に 6,808kB のディス
ク領域が新たに消費されます。
先に進みますか? [Y/n/?] Y
拡張状態情報を書き込んでいます... 完了
取得:1 http://ftp.jp.debian.org squeeze/main zlib1g-dev
1:1.2.3.3.dfsg-15 [159kB]
取得:2 http://ftp.jp.debian.org squeeze/main libmysqlclient-dev 5.1.37-2
[2,321kB]
2,479kB を 4s 秒でダウンロードしました (563kB/s)
未選択パッケージ zlib1g-dev を選択しています。
(データベースを読み込んでいます ... 現在 31288 個のファイルとディレクト
リがインストールされています。)
(.../zlib1g-dev_1%3a1.2.3.3.dfsg-15_i386.deb から) zlib1g-dev を展開して
います...
未選択パッケージ libmysqlclient-dev を選択しています。
(.../libmysqlclient-dev_5.1.37-2_i386.deb から) libmysqlclient-dev を展
開しています...
man-db のトリガを処理しています ...
zlib1g-dev (1:1.2.3.3.dfsg-15) を設定しています ...
libmysqlclient-dev (5.1.37-2) を設定しています ...
パッケージリストを読み込んでいます... 完了
依存関係ツリーを作成しています
状態情報を読み取っています... 完了
拡張状態情報を読み込んでいます
パッケージの状態を初期化しています... 完了
拡張状態情報を書き込んでいます... 完了
タスクの記述を読み込んでいます... 完了

hdknr@debsq:~$ sudo gem1.8 install mysql
Building native extensions. This could take a while...
Successfully installed mysql-2.8.1
1 gem installed
Installing ri documentation for mysql-2.8.1...
No definition for next_result
No definition for field_name
No definition for field_table
No definition for field_def
No definition for field_type
No definition for field_length
No definition for field_max_length
No definition for field_flags
No definition for field_decimals
No definition for time_inspect
No definition for time_to_s
No definition for time_get_year
No definition for time_get_month
No definition for time_get_day
No definition for time_get_hour
No definition for time_get_minute
No definition for time_get_second
No definition for time_get_neg
No definition for time_get_second_part
No definition for time_set_year
No definition for time_set_month
No definition for time_set_day
No definition for time_set_hour
No definition for time_set_minute
No definition for time_set_second
No definition for time_set_neg
No definition for time_set_second_part
No definition for time_equal
No definition for error_errno
No definition for error_sqlstate
Installing RDoc documentation for mysql-2.8.1...
No definition for next_result
No definition for field_name
No definition for field_table
No definition for field_def
No definition for field_type
No definition for field_length
No definition for field_max_length
No definition for field_flags
No definition for field_decimals
No definition for time_inspect
No definition for time_to_s
No definition for time_get_year
No definition for time_get_month
No definition for time_get_day
No definition for time_get_hour
No definition for time_get_minute
No definition for time_get_second
No definition for time_get_neg
No definition for time_get_second_part
No definition for time_set_year
No definition for time_set_month
No definition for time_set_day
No definition for time_set_hour
No definition for time_set_minute
No definition for time_set_second
No definition for time_set_neg
No definition for time_set_second_part
No definition for time_equal
No definition for error_errno
No definition for error_sqlstate

hdknr@debsq:~$ irb1.8
irb(main):001:0> require 'mysql'
=> true

Filed under: Debian, gem, MySQL, rails, ruby

Kyle says...

This is Blassic, the Classic BASIC version 0.10.2. I have packaged it for installation on Ubuntu and other Debian based operating systems. I have packaged a 32-bit and a 64-bit version. The 64-bit package is tested with Ubuntu Karmic, but neither the 32-bit or 64-bit package has been tested on any other system at this time. Testing is needed. Please test and leave your comments. I am also posting the debian/ directory that I added to the original Blassic source code, in case someone would like to fix it up so that it can be officially packaged for Ubuntu or any other Debian based system. This little gem hasn't really gotten that much attention over the years, but I hope to do my part to try to change that. Have fun.

Click here to download:
blassic_0.10.2-1_amd64.deb (297 KB)

Click here to download:
blassic_0.10.2-1_i386.deb (297 KB)

Click here to download:
blassic-debian.tar.bz2 (291 KB)

Filed under: BASIC, Blassic, Debian, package, programming, software, Ubuntu

abakus says...

Hi,
hier ein paar Vorüberlegungen zum Theme vserver. Die Aufteilung:
-Rootserver nur mit sshserver
Die einzelnen vserver mit diensten:
-DNS
-Webserver
-Mysql
-Postfix

Macht also 4 vserver gesamt. Was meint ihr aufteilung in ordnung oder
was anzumerken?
 
Abakus

Filed under: debian, vserver