Skip to content

Instantly share code, notes, and snippets.

View kfl62's full-sized avatar
🏠
Working from home

Ferenc-Loránt Kiss kfl62

🏠
Working from home
View GitHub Profile
I found a way to install the ubuntu-netbook-remix-i386.img file into VirtualBox. Here are the steps.
1. Run the command to create a bootable VDI image (without quotes):
“VBoxManage convertfromraw ubuntu-netbook-remix-i386.img ubuntu-netbook-remix-i386-live.vdi”
2. Run the command to create a new empty VDI image where to install the image with 8GB space:
“VBoxManage createhd -filename ubuntu-netbook-remix-i386.vdi -size 8000″
Note: you can use -register option at the end of this command or register this VDI file from the VirtualBox later.
3. Create a new VM using the ubuntu-netbook-remix-i386-live.vdi (use the existing vdi option)
4. Attach the ubuntu-netbook-remix-i386.vdi as a Primary Slave
5. Start the VM (boot)
6. Install
make -f objs/Makefile
make[1]: Entering directory `/tmp/kfl62-passenger-standalone-31124/nginx-0.7.67'
gcc -c -pipe -O -W -Wall -Wpointer-arith -Wno-unused-parameter -Wunused-function -Wunused-variable -Wunused-value -Werror -g -I src/core -I src/event -I src/event/modules -I src/os/unix -I objs \
-o objs/src/core/nginx.o \
src/core/nginx.c
gcc -c -pipe -O -W -Wall -Wpointer-arith -Wno-unused-parameter -Wunused-function -Wunused-variable -Wunused-value -Werror -g -I src/core -I src/event -I src/event/modules -I src/os/unix -I objs \
@kfl62
kfl62 / trst_import.rb
Created March 6, 2009 06:10
Import table data from standard(development) database
#Import table data from standard(development) database
def self.import(adapter = "sqlite3", database = 'db/standard.sqlite3')
self.establish_connection(:adapter => adapter,:database => database)
standard = self.find(:all)
self.remove_connection
my = self.find(:all)
[my,standard]
end
@kfl62
kfl62 / gconf.xml
Created March 5, 2009 06:21
openSuSE 11.1, kde 4.2.1 phonon, alsa, mpd, vlc, mplayer
# ?GCONF_PATH?/gstreamer/0.10/default/
<?xml version="1.0"?>
<gconf>
<entry name="audiosrc" mtime="1236018067" type="string">
<stringvalue>alsasrc device=&quot;hw:0,1&quot;</stringvalue>
</entry>
<entry name="videosrc" mtime="1236018139" type="string">
<stringvalue>v4lsrc</stringvalue>
</entry>
<entry name="videosink" mtime="1236018113" type="string">
@kfl62
kfl62 / esd.conf
Created March 5, 2009 06:17
openSuSE 11.1, kde 4.2.1 phonon, alsa, mpd, vlc, mplayer
###[esd]
# autospawning is not recommended, since it can't really be done
# right. If you want your login session to be using a sound daemon,
# you should start it from the session controller, not some random
# app inside.
###auto_spawn=0
###spawn_options=-terminate -nobeeps -as 2
###spawn_wait_ms=100
# default options are used in spawned and non-spawned mode
###default_options=-as 2
@kfl62
kfl62 / mpd.conf
Created March 5, 2009 05:36
openSuSE 11.1, kde 4.2.1 phonon, alsa, mpd, vlc, mplayer
#openSuSE 11.1, kde 4.2.1 phonon, alsa, mpd, vlc, mplayer
#final version
audio_output {
type "alsa"
name "Sound Card"
device "default"
}
@kfl62
kfl62 / asound.conf
Created March 5, 2009 05:33
openSuSE 11.1, kde 4.2.1 phonon, alsa, mpd, vlc, mplayer
#openSuSE 11.1, kde 4.2.1 phonon, alsa, mpd, vlc, mplayer
#md.conf http://gist.github.com/74213 , vlc, mplayer works with defaults
pcm.!default {
type plug
slave.pcm "dmixer"
}
pcm.dsp0 {
type plug
slave.pcm "dmixer"
}