Archive

Archive for the ‘GNU/Linux’ Category

Desktop Baru dengan Debian Openbox Testing repository uhuii…

December 23, 2011 3 comments

2011 debian testing wheezy/sid with openbox tint2 panel

hehe.. iseng2 update.. cuman ngasih tahu aja :P .. ga tau lagi nyari desktop yang lightweight tapi koq susah klo dalam distro.. akhirnya coba custom sendiri.. karena package yg paling enak dan lumayan lengkap itu ada di debian, ya sudah.. install debian saja… berawal dengan minimal base. lalu install ini itu .. ini itu.. dan hasilnya

2011 debian testing wheezy/sid with openbox tint2 panel

lumayan ringan loh.. ga sampe 20 detik boot nya.. sudah mencakup.. :

1. xdm , buat xserver nya
2. openbox , buat window manager
3. xfe , buat file manager
4. tint2 , buat panel
5. firefox buat broser
6. xmms , nyetel musik
7. xterm , buat konsole ..
8. libre office , baut ngetik..
9. virtual box , buat virtualisasi …
10. nedit , buat ngedit2 file di mode gui.. editor base x :D *super ringan*
11. xbacklight , buat ngatur brightness
12. volumeicon-alsa , buat ngatur volume di systray ..
13. clipit .,. ini yg paling penting klo mo copy paste ..
14. xpdf .. buat view pdf ..
15. pidgin .. buat ceting..
16. xwd .. buat ngambil screenshot..
17. bmon , buat monitoring bw yg abis kepake..
18. pa lagi ya .. *mikir*
19. vim , dan masih byk…

lengkapnya bisa diliaht di sini .. :P

oya .. kernel uda 3.xx :D ..

deanet@debian:~$ uname -a
Linux debian 3.1.0-1-686-pae #1 SMP Mon Nov 14 08:24:20 UTC 2011 i686 GNU/Linux
deanet@debian:~$ 

lumayan… cuman habis 3G ..

deanet@debian:~/fix$ df -h /
Filesystem      Size  Used Avail Use% Mounted on
/dev/sda2        39G  3.2G   34G   9% /
deanet@debian:~/fix$ 

sekian reportase nya.. :P

Categories: Debian, docs, GNU/Linux, iseng, openbox

backup dan sync database dari aplikasi di heroku

May 12, 2011 2 comments

backup

syntax:

heroku db:pull sqlite://nama-backup.db --app nama_aplikasi

sync

syntax:

heroku db:push sqlite://nama-db.db --app nama_aplikasi

jika opsi –app tidak disertakan, maka aplikasi yang dipakai adalah aplikasi yang berada pada heroku info.

real worlds: Read more…

Categories: Coding, GNU/Linux, Heroku Tags:

few tricks redirect domain with rails 2.1.0 on heroku


as i know, rails 2.1.0 has been depracted while using middleware option.

undefined method `middleware' for #<Rails

so, i can’t use it for the code on post previous.

but using this code will available to redirect main domain.

class ApplicationController                                              
  before_filter :ensure_domain                                            

  TheDomain = 'beta.deanet.web.id'

  def ensure_domain
    if request.env['HTTP_HOST'] != TheDomain
      redirect_to TheDomain
        end
   end
end

put on routes.rb .

real worlds: mainpagedeanet.heroku.com and beta.deanet.web.id

ref: docs.heroku.com/custom-domains

Categories: Coding, GNU/Linux, Heroku, Rack, Rails Tags: , ,

redirect domain using rack on rails on heroku

April 17, 2011 2 comments

Sudah satu minggu, kita ngoding ruby ngoprek lagi :D . masi dengan ruby.

kemarin sempet ngoprek RoR atau ruby on rails, ya iseng2 disaat sengggang kalo pas bosen ngadmin :D . ketemu masalah gimana cara bikin domain yang ada di heroku dengan aplikasi RoR hanya 1atau 2 lebih domain yg menghandle nya.

berikut contohnya:

Multiple domain list:
1. devel.heroku.com
2. coderiver.alinux.web.id

add on your environment.rb :
Read more…

undefined method `set_cookie’ for sinatra

April 9, 2011 3 comments

Pernah menggunakan sinatra ? . Apa itu sinatra ? SInatra, http server berbasis ruby. simple, fast, clean code. dll dech :D . Pada saat menggunakan sinatra *lupa versi berapa* muncul error:

undefined method `set_cookie' for #<Sinatra::Application:0xb729b500>

solusinya:

response.set_cookie
Categories: Coding, GNU/Linux, Sinatra Tags:

Overwrite remote sqlite db with local db on heroku (push database)


Check first, local.db is exist

      sopir@debian:~/public_html/scanty/scanty$ ls
      access.log  blog.db  config.ru  lib  main.rb  public  Rakefile  read.me  README.rdoc  spec  vendor  views

Push to repo

      sopir@debian:~/public_html/scanty/scanty$ heroku db:push sqlite://blog.db
      Loaded Taps v0.3.9
      Warning: Data in the app 'sopir' will be overwritten and will not be recoverable.
      Are you sure you wish to continue? (y/n)? y
      Sending schema
      Schema:        100%
      |=======================================================================================================================| Time: 00:00:02
      Sending indexes
      Sending data
      1 tables, 0 records
      posts:         100%
      |=======================================================================================================================| Time: 00:00:00
      Resetting sequences
      sopir@debian:~/public_html/scanty/scanty$
Categories: Coding, GNU/Linux, Heroku, Sqlite Tags: , , ,

Cara reset password user postgres di PostgreSQL

March 28, 2011 Leave a comment

masuk sebagai user postgres dengan perintah su – postgres

edit konfig pg_hba.conf

postgres@coderiver:/opt/framework-3.6.0/postgresql/bin$ vim ../data/pg_hba.conf

ganti:

# "local" is for Unix domain socket connections only
local   all         all                               md5
# IPv4 local connections:
host    all         all         127.0.0.1/32          md5
# IPv6 local connections:
host    all         all         ::1/128               md5

menjadi:

Read more…

Auto Login dengan RSH

March 23, 2011 Leave a comment

Hoammm… daripada ngantuk ga jelas mo ngapain, daripada waktu terbuang sia2 mending posting simple2 aj :mrgreen:

RSH bisa dibaca di wikipedia. sebenarnya case RSH tidak aman, maka sampe sekarang SSH masih powerfull untuk dipakai. Berikut dokumentasi nya:
Read more…

Categories: GNU/Linux, rsh Tags: ,

Disable KDE 4.6 Migrator Address Book on Slackware 13.x

February 6, 2011 Leave a comment

bash-4.1$ cat /usr/share/config/kres-migratorrc
[Migration]
Enabled=true
SetupClientBridge=false
TargetVersion=2
bash-4.1$ sudo vim /usr/share/config/kres-migratorrc

change value enable to `false` :)

Limited Upload max on your own directory apache

April 28, 2010 Leave a comment

Apache is one powerfull web server most used on cyber world. So many module to configuring as you want. One of them called mod_php. Sometimes we need different value of php main configuration. An example, on php main configuration we’ve added upload max 5M. So, you want a directory have different to upload more 5 M, example: 100M. So just add to your own directory directive:

<Directory /usr/local/www/upload>
php_value upload_max_filesize 100M
php_value post_max_size 100M
php_value max_execution_time 200
php_value max_input_time 200
</Directory>

semoga membantu.. :)

ref:

http://php.net/manual/en/configuration.changes.php

Categories: apache, GNU/Linux, php, tips Tags: , , , ,

How to Terminate, Suspend, and Continue a process using kill

March 28, 2010 5 comments

Dalam computing (komputasi), kill adalah sebuah perintah yang digunakan dalam sistem operasi untuk mengirimkan sinyal ke sebuah process yang sedang berjalan. Contohnya kita bisa men-terminate program / process yang sedang berjalan.

a unix process within thread

a unix process within thread

Jika kita berbicara mengenai kill, tentu saja ini berhubungan dengan system call kill dan signal processing. Untuk lebih lengkapnya silahkan baca sendiri di Wikipedia sudah komplit2.. :P . Pada intinya system call / kill() berhubungan dengan signal. Dibawah ini model status proses di Unix.
Read more…

Implementation of social network for monitoring server via sms

February 3, 2010 31 comments

Hi.. Just Share aj.. ide ini terilhami pada hari Jumat, 19 Dec 2009, 1 Muharram 1431 H. Dan baru ingin diimplementasikan setelah dikasi tahu lewat sms utk segera k kantor secepatnya (ASAP) cos Server D0wn gara2 Perusahaan Lilin Negara mematikan Jaringan Listrik nya (doh). Padahal saat itu gi enk2na take a nap :( .

sms notification

Ada banyak cara untuk membuat sebuah monitoring server dengan mengirimkan alert / notifikasi sms jika server mati. Cara yang mudah tapi paling sulit prosedurnya adalah bekerja sama dengan Carrier Phone, lalu mengamati sebuah server dengan server lain yang terintegrasi dengan pihak ketiga (Carrier Phone). Namun cara tersebut selain sulit juga mahal biayanya. :( . Untuk itu mau tidak mau harus menggunakan layanan publik (gratis) :D .. monggo… dipun waos more:

Read more…

Follow

Get every new post delivered to your Inbox.