Posts Tagged trick

VPS Project Launched!

bismillah..

nyewa dari http://www.jvmhost.com/ , XEN256 , buat iseng2. Mudah2an sih bisa banyak manfaatnya. aamiin..

Yang udah gua lakuin:

+ init

Menggunakan Ubuntu 10.04-x86_64 edition. Bermasalah dengan instalasi, ternyata source.list-nya minimalis, maka, ditambah… dan jadilah seperti ini:

havban@cheonan:~$ more /etc/apt/sources.list
#deb http://archive.ubuntu.com/ubuntu lucid main
deb http://security.ubuntu.com/ubuntu lucid-security main
#additional softwares
#restricted
deb http://archive.ubuntu.com/ubuntu/ lucid main restricted
deb-src http://archive.ubuntu.com/ubuntu/ lucid main restricted
#restricted updates
deb http://archive.ubuntu.com/ubuntu/ lucid-updates main restricted
deb-src http://archive.ubuntu.com/ubuntu/ lucid-updates main restricted
#universe
deb http://archive.ubuntu.com/ubuntu/ lucid universe
deb-src http://archive.ubuntu.com/ubuntu/ lucid universe
deb http://archive.ubuntu.com/ubuntu/ lucid-updates universe
deb-src http://archive.ubuntu.com/ubuntu/ lucid-updates universe
#multiverse
deb http://archive.ubuntu.com/ubuntu/ lucid multiverse
deb-src http://archive.ubuntu.com/ubuntu/ lucid multiverse
deb http://archive.ubuntu.com/ubuntu/ lucid-updates multiverse
deb-src http://archive.ubuntu.com/ubuntu/ lucid-updates multiverse

Spesifikasi hardwarenya minimalis… cuman 256 MB memory, 10GB HD, 256 MB basic swap, dan 200 GB  jatah network. tapi alhamdulillah.. apache dan tomcat jalan.. 😛

+ control panel

Ada beberapa pilihan, intinya sih gak pengen beli CPanel yang berbayar, awalnya coba2 Zentyal karena terlihat promising, tapi pas liat dokumentasi minimum req adalah 1G memory.. yasalam deh.. 😛 Kita banting setir lagi nyari2.. dapet jg ISPConfig dan webmin , tapi kayaknya masih kurang okeh. ISPConfig tampilannya klasik joomla, dan webmin gak didukung oleh ubuntu.. 😛

Akhirnya.. kami (saya) memilih… http://www.openpanel.com/ : kenapa? karena terbuai janji2 syurga mereka.. huehue
Mereka bilang sih bakal ada banyak fitur ditambahkan.. dengan roadmap yang jelas terarah. Sempet install OpenApp-Tomcat, tapi ternyata conflict sama OpenPanel, ya udah deh.. tomcat nanti aja install manual. Tampilan okeh sih.. 🙂 mac-alike gitu deh.

+ servers

Yang sudah terpasang, alhamdulillah..

  1. apache2+php , standar banget, cuman perlu jalanin
    sudo apt-get install php5
  2. tomcat6 , alongside apache2 , masalahnya adalah tomcat dan apache adalah dua server yang  berbeda, maka harus menggunakan dua port yang berbeda dalam melayani request. Karenanya perlu  konfigurasi tambahan. Untungnya di apache2.2 sudah ada fitur proxy, sehingga kita bisa forward request suatu folder atau subdomain tertentu ke port yang lain atau bahkan server lain. Info bisa dilihat di http://rimuhosting.com/mod_jk2_and_mod_proxy_ajp.jsp , Dengan perubahan dilakukan di /etc/apache2/httpd.conf bukannya di /etc/apache2/sites-enabled/000-default seperti di contoh, don’t know why.. :S aneh, sampe berjam2 gua ngulek2 nyari sebabnya.. berikut adalah isi dari httpd.conf
    havban@cheonan:~$ more /etc/apache2/httpd.conf
    #tomcat
    ProxyRequests off
    ProxyPass /jsp http://127.0.0.1:8080/
    ProxyPassReverse /jsp http://127.0.0.1:8080/

    yang intinya mem-forward request ke “folder” jsp ke port 8080 di server yang sama.

  3. mysql5 , nothing special, kecuali gua emang lupa passwordnya.. hahaha *dudul* apa ya… nama cewe sih.. 😛 , plus 2012
  4. bind9 , gak usah disebutin sebenernya.. karena satu paket ama OpenPanel, tapi emang ini penting.. karena gua butuh ini juga buat ngatur domain gua nanti yang diarahkan ke server ini.

+ still to do

install php and jsp apps, masih blom gua lakuin.. besok2 deh.. gak sempet.

performance testing , pengen banget tau ini server kecil kayak gimana kalo ditembak pake request yang banyak.

+ iseng2

nambahin ukuran swap 😛 jadi 767 sekarang : https://help.ubuntu.com/community/SwapFaq , yak.. gak tau efeknya gimana jg.. haha.. yang penting gede sekarang swapnya. 😛

perkembangan berikutnya menyusul..

Project VPS.. majuuu….

o ya.. karena gua punya VPS.. artinya kalo ada yang mau mesen website ama gua.. atau mau bikin aplikasi tertentu, bisa gua bantu.. hiiii… dan nanti gua pasang tarif lah.. yang friendly abiz.. 😉

Advertisements

, ,

Leave a comment

Piracy stuffs

bismillah..

I got really irritated encountering people who use pirated software without any guilty feeling.

Lu sadar gak sih make bajakan?
Lu tau gak kalo ada versi gratisan atau bahkan open source dari software semacam itu?

Lu kerja make bajakan tuh gak berkah. Meski lu mengatasnamakan kerja sosial non profit. The license never approved that from the beginning.

Well, to remind you.. here are the list of popular open source softwares enough for your daily routines: *please google for more info

Libreoffice
Gimp
Inkscape
Linux (ubuntu,opensuse)
Android
Chromium and Firefox
7-zip
Eclipse

And many more.. just google it.

Any.. question??

,

Leave a comment

Record from computer speaker?

It never been so easy before.. 😀

http://www.ubuntugeek.com/how-to-recording-internal-audio-in-ubuntu.html

Ubuntu Rules.. 😀

1. Install pavucontrol (PulseAudio Volume Control) using apt-get or the Ubuntu Software Center.

2. Open PulseAudio Volume Control. It should be in the applications menu under Sound and Video.
3. Open Sound Recorder and start recording. Playing any sound at this point would be helpful, as your level indicator should react once you have finished.
4. Go to the “Recording” tab in the PulseAudio Volume Control window.
5. Make sure that “Applications” is selected in the drop down menu on the “Recording” tab.
6. Choose “Monitor of Internal Audio Analog Atereo” from the “Record Stream from” menu in the Sound Recorder entry of the application list.

,

Leave a comment

Microsoft Office Install with Wine in Ubuntu

kalo ada masalah gak bisa masukin product key.. ini solusinya:

http://www.playonlinux.com/es/topic-4302-product_key_problem_When_installing_office_2007.html

 

Leave a comment

[INFO] Spam Autopost FB yang mulai ramai – jebakan batman

bismillah..

*** Update ***

FB sudah melakukan update system.. memproteksi injeksi XSS di fb mobile-nya.. berikut screenshot saat saya mencoba melakukan trik yg sama.

*** end update ***

sedikit gemas dengan link2 berkeliaran di FB.. hehe..

misalnya “soal si group band menyeramkan” lah.. atau soal postingan yg “sangat lucu” yg memberikan link..

maka dengan ini gua berusaha menjelaskan teknik melakukan injeksi postingan itu..

pertama.. istilah injeksi itu adalah XSS (Cross Site Scripting).. kenapa gak dinamakan CSS .. itu karena CSS sudah ada istilah lainnya.. untuk Cascading Style Sheet 😀 *sotoy*

teknik yg digunakan adalah menggunakan kelemahan dari m.facebook.com:

berikut adalah contoh link penuh dari script tersebut..

http://m.facebook.com/connect/prompt_feed.php?display=wap&user_message_prompt='<script>window.onload=function(){document.forms[0].message.value='febi emang jago abiz.. :D';document.forms[0].submit();}</script>

bisa dilihat bahwa alamat tersebut akan menyuntikkan kalimat “febi emang jago abiz :D” hehe.. agak2 narsis..

pada perintah form[0].submit()

untuk dapat menyembunyikan kerumitan script tersebut.. maka link yg diberikan menggunakan url shortener  (pemendek alamat web) semacam tinyurl.com

semisal.. http://tinyurl.com/4bdq43v

mengenai bahaya script ini.. secara  real. tidak ada data pribadi kita yg tersebar… tidak ada infeksi ke komputer user.. tidak ada infeksi ke account facebook..

jadi, tidak ada bahayanya sebenernya..

tapi..paling jadi menyebar aja.. jadi spam.. hehe..

yak.. begitulah.. silahkan dibersihkan wall kita masing2.. itung2 olahraga jari.. 🙂

mengenai solusi.. jangka pendeknya.. jauhi mengklik link2 tak jelas.. yg sok heboh..

soal solusi utama.. musti dari facebook yg melakukan filtering parameter url… kita gak bisa apa2.. :S

sekali lagi.. tidak bahaya.. 🙂 tidurlah dengan nyenyak.. hehe

ada satu yg bahaya.. jebakan batman yg awalnya menampilkan lagu2.. dan lain2..

tapi.. di akhir playback.. ada “SETAN” dan “GUNDURUWO” … ini bahaya.. kalau jantungan.. bisa lewat.. gua sangat membenci ini… 😀

moga dilaknat tuh orang yg ngasih link batman serem kayak gitu.. -____-”

contohnya..:

Masih ada orang yg mau terkenal dan kaya raya dengan memuja setan,

termasuk salah satu grup band terkenal di Indonesia ckckckck….
baca selengkapnya di : www.tinyurl.com/4fqudco

WARNING: jangan diklik.. hihihi.. bahaya.. 😛

11 Comments

Saluran Keluhan Kepada Pemerintah Korea

bismillah..

Orang korea yang gua temui Alhamdulillah baik2.. cuma beberapa kali ketemu orang korea yang mengesalkan.. misalnya Ajossi yg jualan di pasar.. kalo ditawar dia malah marah2.. hehe

Pernah sekali waktu gua lagi nunggu bis di Eumbong pagi2, setelah gua nginep di tempat rekan pekerja.. tiba2 ada mobil van yang berhenti di pinggir.. setelah melewati gua, lalu mundur.. dan supirnya nanya.. “odi e kayo?” gua jawab.. “onyang oncong yok” … dia bilang.. “ta” artinya.. “naiklah”

yang nyupir ajumma, mungkin umur sekitar 40-an.. sempet ngobrol2.. tapi korean gua yg pas2an cuman bisa nangkep sedikit.. intinya dia sih kerjanya nganter2 gitu.. terus tinggalnya di apate deket stasiun onnyang. Gua diturunin di depan terminal bus ekspress onnyang, lebih deket buat nunggu bis 970 menuju kampus.

Ada manis asem asinnya tinggal di korea.. kalo lagi asem.. lu berharap lu gak ngerti apa yg mereka omongin.. dalem soalnya omongannya kalo lagi marah.. hehe

Gua pernah jg ngurusin Home Tax.. di cheonan. Jadi, kita bisa claim tax pendapatan kita yg dipotong dari uang pemasukan kita tiap bulan. Lumayan, terakhir gua dapet 400 ribu won.. hohoho.. alhamdulillah banget. Adanya sekitar bulan mei.. dan duit akan ditransfer sekitar bulan juni. Petugasnya baik banget.. kita dibantu semuanya, meski gua musti dateng untuk kedua kalinya ke tempat itu karena detail pendapatan gua blom lengkap.

Ada lagi lain waktu, gua dateng buat melakukan medical check up.. dibantu dengan baik… terus.. gua pernah ngurusin handphone. dibantu jg.. hehe.. mereka baik2.. 🙂

Tapi.. bilamana ada yg merasa kurang dihargai dalam pelayanannya.. bisa melakukan komplain ke alamat ini..

http://www.epeople.go.kr/jsp/user/on/eng/HowPetition_IDN.jsp *bahasa Indonesia*

http://www.epeople.go.kr/jsp/user/on/eng/HowPetition_USA.jsp *bahasa Inggris-US*

Ada beberapa bahasa tersedia.. Inggris, China, Jepang, Vietnam, Myanmar, Indonesia dan Thailand.

Semoga bisa membantu teman2 untuk menyalurkan suatu titik ketidak puasan dalam pelayanan dari pemerintah korea.. 🙂

,

Leave a comment

Wedding Site.. project 1 :D

bismillah..

Alhamdulillah.. berkat banyak tips2 dan juga desain logo gratisan dari sis LyLe (inget nulis L-nya besar semua) .. blog ini launching.. hihihihi

bertemakan “DailyNotes” dari ElegantThemes .. check here out.. 😉 http://eryika.co.cc

terima kasih jg untuk bos Hadi yg udah ngasih saran buat nambahin mute button 😀

mari2… ada yg mau merit.. abang bikinin.. ^^

Congrats buat Ery and Riska.. mantab.. ente beruntung Ry dapet si Riska.. 😉

,

2 Comments

Word Tagger

bismillah..

versi pertama cuma bisa bantu orang nerjemahin kata dan nyelesai Teka-teki silang.. 🙂

next version.. kita bakal bisa bikin word cloud or some sort of..

Isi dengan wildcard (% atau *) seperti regular expression yang artinya any number of any letter. Dan gunakan tanda tanya (?) atau underscore (_) untuk merepresentasikan satu karakter huruf.

Contoh : lo* akan menampilkan kata2 “love”, “lock”, “lontong”, etc..

enjoy.. 🙂

http://wordtag.febiansyah.name

,

Leave a comment

Protected: iWork ’09 Trial non expire

This content is password protected. To view it please enter your password below:

Leave a comment

Build Your Own Radio Station (Mac Version)

bismillah..

Struggled… for a few days..  😀 but finally I made it works.. hehe

Actually, the icecast has been working well since two weeks ago, but it could only receive a playlist stream provided by ices2 program. Okay, now we’ve encountered two foreign term.. icecast and ices2.. what are those creatures.. hehe. Later on, we’ll discover one by one..

I will focus on sharing my experience on creating an Internet Radio Station specifically on Mac. Also, this implementation will be using vorbis encoding, that you may use lame mp3 as encoder in your own preference. Ubuntu or windows will be following in other posts. I really want to share it with you guys, while it’s still hot.. 😀

Anyway.. let’s start it.

Requirement:

1. Downloads :

  • icecast – we will use icecast version 2.x in this example. You can download the files here. Download the source code. However, if you do not want to compile it by your self, you can download macport and let it do all the dirty works.. 😀
  • darkice – a live cast tool that can encode voice input from computer sound devices into desired encoding (mp3 or ogg vorbis). You can download the source code of darkice here. I’ve read about the availability of darkice in macport, however when I ran the search command, it didn’t found anything.. :S . That’s why we need to build the library from scratch. Current version of darkice is 1.0.
  • JackOSX – Mac porting of JACK device driver in linux. It will create an interface to be used by darkice. Download it here. If you use macport then avoid to use that version of JACK. I faced it that the device was not well configured.. I don’t know exactly why.. 😦
  • Okay.. install macport .. hahaha

2. Compilers

Install essential package from xCode available in your mac installation DVD in order to be able to compile the source codes.

Steps:

1. Icecast installation

We just need to call the port command belongs to the macport from console. Run with root privilege.

$ sudo port install icecast

After that, port will download all required dependent libraries needed by icecast, including the lame mp3 library and ogg vorbis library. We need to change ownership of some folders in order to be able to runs it well with the existing configuration template. Although, we can also define our own configuration for logging folder. In my implementation, avoiding non default logging folder and cache folder, I just change their ownership 😀

$ sudo chown -R desired_user /usr/local/share/icecast

It will change the ownership of caching and logging folder to the “desired_user” .

2. JackOSX installation

You just need to run the package file that has been extracted from a zip file. Restart of system will be required.

3. darkice installation

Extract downloaded file and enter the folder using console. We will do some configuration in order for darkice to be able of using the JACK device.

Befor that, we need to modify a few lines of source code in order to get the JACK run automatically along with the darkice. It is not necessary, however it will make our life easier in the future.. 😀

Find JackDspSource.cpp file in the src folder, and open it. We will find this lines of codes in line 209 :

    if ((client = jack_client_new(client_name)) == NULL) {
        throw Exception( __FILE__, __LINE__, "JACK server not running?");
    }

Replace those lines with this code :

    if ((client = jack_client_open (client_name, JackNullOption, NULL)) == 0){
        throw Exception( __FILE__, __LINE__, "JACK server not running?");
    }

We are replacing the deprecated jack_client_new function with the jack_client_open function. The latter one will automatically starts JACK server. 🙂 You can download the modified JackDspSource.cpp here ..  http://pastebin.com/uTNwLTUi

Save the modification and run these commands from the console:

$ export prefix=/opt/local
$ /configure  --with-lame-prefix=$prefix --with-vorbis-prefix=$prefix --with-twolame-prefix=$prefix --with-faac-prefix=$pefix --mandir=${prefix}/share/man --with-jack-prefix=$prefix
$ make
$ sudo make install

we need to explicitly declare that we are using library of lame and vorbis, along with the JACK. The darkice will be compiled using all of those capabilities. We also defined prefix prevously to be on “/opt/local” since the macport installed all  those libraries inside that folder.

To test whether the installation is successful or not, we can run “darkice” command in console and we will have the program is found or not.

4. Run the icecast

We need to configure the icecast config file. The default file is located on /opt/local/etc/icecast.xml .

The configuration file I made is uploaded here.. http://pastebin.com/Fj9MTVzZ

The lines needed to be modified are only:

– authentication section

    <authentication>
        <!-- Sources log in with username 'source' -->
        <source-password>yourPass</source-password>
        <!-- Relays log in username 'relay' -->
        <relay-password>yourPass</relay-password>

        <!-- Admin logs in with the username given below -->
        <admin-user>admin</admin-user>
        <admin-password>yourPass</admin-password>
    </authentication>

change the username as password as you like.

– address binding

    <!-- This is the hostname other people will use to connect to your server.
    It affects mainly the urls generated by Icecast for playlists and yp
    listings. -->
    <hostname>0.0.0.0</hostname>

    <!-- You may have multiple <listener> elements -->
    <listen-socket>
        <port>8181</port>
        <bind-address>0.0.0.0</bind-address>
        <shoutcast-mount>/mount.ogg</shoutcast-mount>
    </listen-socket>

Change the hostname to your computer IP. Port number can be defined as you like that will be used to access your radio. The bind address is again your IP number. The mount point will be the file address showing after the IP number and port number in your URL address field.

For the above configuration, the url will be : http://0.0.0.0:8181/mount.ogg .

You can run the icecast by this command:

$ icecast -c /usr/local/etc/icecast.xml -b

“-b” parameter means that the icecast will run in the background.

check by running

$ ps -def |grep icecast

if there is a program running in the background, then everything is okay.

5. Run the darkice

Create the configuration file for darkice. You can see mine here.. http://pastebin.com/xdsz7eB7

The parts you need to modify is on the icecast2 connetion:

[icecast2-0]
bitrateMode     = abr       # average bit rate
format          = vorbis       # vorbis    # format of the stream: ogg vorbis
bitrate         = 96        # bitrate of the stream sent to the server
server          = 0.0.0.0
                            # host name of the server
port            = 8181      # port of the IceCast2 server, usually 8000
password        = yourPass    # source password to the IceCast2 server
mountPoint      = mount.ogg  # mount point of this stream on the IceCast2 server
name            = RadioName # name of the stream
description     = This is only a test
                            # description of the stream
url             = http://0.0.0.0:8181/mount.ogg
                            # URL related to the stream
genre           = yourGenre    # genre of the stream

Fill the server with IP of your icecast running computer. So do with the port number and mountPoint comply with the setting of icecast in the previous setting. Save the file in certain folder, we’ll name it as darkice.cfg for example.

As for the input source setting, we’ve set it as “jack_auto”. It will automatically grab the input from JACK device.

Run the darkice with this following command.

$ darkice -c darkice.cfg

it will print out some verbose description.

6. Test your radio

Open your browser, it can be firefox or chrome or an IE. Put http://0.0.0.0:8181/mount.ogg in your address bar, following the setting in your icecast config file.

And, if there was no problem .. we can hear our own voice with a delay of about 7 seconds.. 😀

..

I think, that’s all I could share for now.. 🙂

, ,

3 Comments

%d bloggers like this: