hdknr’s posterous

 
Filed under

ubuntu

 

Installation/FromImgFiles - Community Ubuntu Documentation

Mac OS X

Command Line Interface

  1. Download the desired .img file
  2. Open a Terminal (in /Applications/Utilities/)
  3. Run diskutil list to get the current list of devices

  4. Insert your flash media
  5. Run diskutil list again and determine the device node assigned to your flash media (e.g. /dev/disk2)

  6. Run diskutil unmountDisk /dev/diskN (replace N with the disk number from the last command; in the previous example, N would be 2)

  7. Execute sudo dd if=/path/to/downloaded.img of=/dev/rdiskN bs=1m (replace /path/to/downloaded.img with the path where the image file is located; for example, ./ubuntu.img, /dev/rdiskN is faster than /dev/diskN). If you see the error dd: Invalid number `1m', you are using GNU dd. Use the same command but replace bs=1m with bs=1M.

  8. Run diskutil eject /dev/diskN and remove your flash media when the command completes

Ubuntu USB イメージを作る。

Filed under  //   LiveCD   LiveUSB   MAC   Macc   Ubuntu   USB  

Comments [0]

ec2ubuntu - Project Hosting on Google Code

This project maintains a script which can be used to build Amazon EC2 Machine Images (AMIs) with a base install of the Ubuntu or Debian distribution.

The latest version of the script is available using this link:

http://ec2ubuntu-build-ami.notlong.com

A list of Ubuntu and Debian AMIs built using this script is available here:

http://www.alestic.com

Support for the Ubuntu EC2 AMIs and this build script is available on the ec2ubuntu Google Group:

http://groups.google.com/group/ec2ubuntu

Support for the Debian EC2 AMIs is available on the ec2debian Google Group:

http://groups.google.com/group/ec2debian

Support for EC2 in general is available on the EC2 forum:

http://ec2forum.notlong.com

Filed under  //   Ami   Aws Amazon   EC2   Ubuntu  

Comments [0]

Ubuntu:Django:1.0.2 Install

root@ubu01:# easy_install-2.5 Django
Searching for Django
Reading http://pypi.python.org/simple/Django/
Reading http://www.djangoproject.com/
Reading http://www.djangoproject.com/download/1.0.1-beta-1/tarball/
Best match: Django 1.0.2-final
Downloading
http://media.djangoproject.com/releases/1.0.2/Django-1.0.2-final.tar.gz
Processing Django-1.0.2-final.tar.gz
Running Django-1.0.2-final/setup.py -q bdist_egg --dist-dir
/tmp/easy_install-PKmF7K/Django-1.0.2-final/egg-dist-tmp-d9PUn-
zip_safe flag not set; analyzing archive contents...
django.template.loaders.app_directories: module references __file__
django.core.management.base: module references __path__
django.core.management.__init__: module references __file__
django.core.management.__init__: module references __path__
django.core.management.sql: module references __file__
django.core.management.commands.loaddata: module references __file__
django.core.management.commands.runserver: module references __path__
django.core.servers.basehttp: module references __path__
django.conf.__init__: module references __file__
django.conf.project_template.manage: module references __file__
django.templatetags.__init__: module references __path__
django.db.__init__: module references __path__
django.db.models.loading: module references __file__
django.test.simple: module references __file__
django.test._doctest: module references __file__
django.test._doctest: module MAY be using inspect.getsourcefile
django.utils.version: module references __path__
django.utils.autoreload: module references __file__
django.utils.translation.trans_real: module references __file__
django.contrib.admindocs.views: module references __path__
django.contrib.auth.tests.views: module references __file__
django.contrib.admin.__init__: module references __path__
django.contrib.gis.tests.test_gdal_ds: module references __file__
django.contrib.gis.tests.layermap.tests: module references __file__
django.contrib.gis.tests.geoapp.tests: module references __file__
django.views.i18n: module references __file__
Adding Django 1.0.2-final to easy-install.pth file
Installing django-admin.py script to /usr/bin
 
Installed /usr/lib/python2.5/site-packages/Django-1.0.2_final-py2.5.egg
Processing dependencies for Django
Finished processing dependencies for Django

Filed under  //   Django   Ubuntu  

Comments [0]

mod_wsgi: Debian だと通るのに、Ubuntuだと_get_urlconf_module でエラー。

Exception Type: AttributeError
Exception Value: 'module' object has no attribute 'autodiscover'
Exception Location:
/var/lib/python-support/python2.5/django/core/urlresolvers.py in
_get_urlconf_module, line 177
 
なぜだ。

Filed under  //   Django   Ubuntu  

Comments [2]

Install — Phusion Passenger™ (a.k.a. mod_rails / mod_rack)

Native Ubuntu Linux package

John Leach from Brightbox has kindly provided an Ubuntu 8.04 package for Phusion Passenger. The package is available from the Brightbox repository which you can find at http://apt.brightbox.net.

Add the following line to the Third Party Software Sources:

deb http://apt.brightbox.net hardy main
(The simplest way to do that is to create a file in /etc/apt/sources.list.d/ containing the deb instruction, and then run 'apt-get update').

Once you've done this then you can install Phusion Passenger by running:

apt-get install libapache2-mod-passenger
or, for the Nginx version:
apt-get install nginx-brightbox

Please also visit the package's wiki page for more documentation about this package.

Ubuntuだとaptで入るPassenger

Filed under  //   mod_rack   mod_rails   passenger   rails   Ubuntu  

Comments [1]

Ubuntu: SHIFT-JIS : あーあ


hoge@ubuntu-vbox:/etc/default$ locale -a
locale: Cannot set LC_CTYPE to default locale: No such file or directory
locale: Cannot set LC_MESSAGES to default locale: No such file or directory
locale: Cannot set LC_COLLATE to default locale: No such file or directory
C
POSIX
de_AT.utf8
de_BE.utf8
de_CH.utf8
de_DE.utf8
de_LI.utf8
de_LU.utf8
en_AU.utf8
en_BW.utf8
en_CA.utf8
en_DK.utf8
en_GB.utf8
en_HK.utf8
en_IE.utf8
en_IN
en_NG
en_NZ.utf8
en_PH.utf8
en_SG.utf8
en_US.utf8
en_ZA.utf8
en_ZW.utf8
fr_BE.utf8
fr_CA.utf8
fr_CH.utf8
fr_FR.utf8
fr_LU.utf8
ja_JP.utf8

hoge@ubuntu-vbox:/etc/default$ sudo aptitude install convmv
Reading package lists... Done
Building dependency tree      
Reading state information... Done
Reading extended state information     
Initializing package states... Done
Building tag database... Done     
The following NEW packages will be installed:
  convmv
0 packages upgraded, 1 newly installed, 0 to remove and 0 not upgraded.
Need to get 18.7kB of archives. After unpacking 90.1kB will be used.
Writing extended state information... Done
Get:1 http://ubuntutym.u-toyama.ac.jp hardy/universe convmv 1.10-0.1 [18.7kB]
Fetched 18.7kB in 0s (94.8kB/s)
perl: warning: Setting locale failed.
perl: warning: Please check that your locale settings:
    LANGUAGE = (unset),
    LC_ALL = (unset),
    LANG = "ja_JP.SJIS"
    are supported and installed on your system.
perl: warning: Falling back to the standard locale ("C").
locale: Cannot set LC_CTYPE to default locale: No such file or directory
locale: Cannot set LC_MESSAGES to default locale: No such file or directory
locale: Cannot set LC_ALL to default locale: No such file or directory
Selecting previously deselected package convmv.
(Reading database ... 120613 files and directories currently installed.)
Unpacking convmv (from .../convmv_1.10-0.1_all.deb) ...
Setting up convmv (1.10-0.1) ...
Reading package lists... Done            
Building dependency tree      
Reading state information... Done
Reading extended state information     
Initializing package states... Done
Writing extended state information... Done
Building tag database... Done            
関係なかった。

こっちです。

hoge@ubuntu-vbox:/etc/default$  sudo localedef -f SHIFT_JIS -i ja_JP ja_JP.SJIS
character map `SHIFT_JIS' is not ASCII compatible, locale not ISO C compliant

hoge@ubuntu-vbox:/etc/default$ locale -a | grep jis
ja_JP.sjis

Filed under  //   locale   SHIFT-JIS   Ubuntu  

Comments [0]

VirtualBox : Ubutnu 8.0.4 LTS インストール


新規



マシン作成ウィザード


メモリ

Linux/Ubuntu

仮想HDDの選択

選択画面で「追加」

Finder/Explorer から選択

サマリー

作成できた。ここでネットワークを追加。

アダプタ2を有効化して"Bridged Adapter"にする。 Macの場合は「インターネット共有」のインターフェース,Windowsの場合は Microsoft Loopback Interfaceのインターフェースにする。

追加された。

Macのインターネット共有が動いている事を確認

MyUbuntuを起動して答えていく




ログインしたらコンソールを開いて /etc/network/interfaceを編集。 eth2にstaticでホストの共有と同じネットワークのアドレスを追加する。


eth1,eth2を起動する。

ホストからアクセスできた。

wolf:~ hide$ ping 192.168.2.210
PING 192.168.2.210 (192.168.2.210): 56 data bytes
64 bytes from 192.168.2.210: icmp_seq=0 ttl=64 time=1.001 ms
^C
--- 192.168.2.210 ping statistics ---
1 packets transmitted, 1 packets received, 0% packet loss
round-trip min/avg/max/stddev = 1.001/1.001/1.001/0.000 ms
wolf:~ hide$

このあと、aptitudeを更新、パッケージ追加。

   
Click here to download:
VirtualBox_Ubutnu_8.0.4_LTS.zip (784 KB)

Filed under  //   Ubuntu   VirtualBox  

Comments [0]

VirtualBox : UbuntuイメージディスクUUID書き換え

wolf:~ hide$ VBoxManage internalcommands sethduuid ~/Downloads/Ubuntu-8.04-Japanese\ 2/ubu-8.04-jp.vdi
VirtualBox Command Line Management Interface Version 2.2.2
(C) 2005-2009 Sun Microsystems, Inc.
All rights reserved.

UUID changed to: e7b8fd37-5d6b-449c-837a-8e994fcd0b9e

Filed under  //   Trouble   Ubuntu   VirtualBox  

Comments [1]

10 Expert Ubuntu Tricks - Business Center - PC World

8. Clear Up Disk Clutter In a Jiffy

Running short of disk space? Try typing sudo apt-get autoremove and then sudo apt-get clean into a terminal window. The first command removes any unused (redundant) dependencies from the system. The second removes all cached package files. Both are harmless. On a well-used system that's been updated a couple of times, you could free-up as much as a gigabyte using these methods. (Compare before and after using the df -h command.)

Filed under  //   autoremove   clean   Ubuntu  

Comments [0]

10 Expert Ubuntu Tricks - Business Center - PC World

5. Kill Processes Quickly With PKILL

To kill a process I've always either used top, or the kill or killall commands along with ps| aux to discover process numbers/names. However, the pkill command removes a lot of work -- pkill firefox, for example, will search the list of processes for anything matching firefox, and then kill it (i.e. send a SIGTERM). pstree is also a pretty cool command, and will show all the processes in a family-tree arrangement, organized by who owns them.

Filed under  //   command   pkill   Ubuntu  

Comments [0]