MazAmry Subuh

Coretan Hidup Seorang OB

Restore Default Keyboard Shortcut Ubuntung

Barangkali ada yang kesulitan mengembalikan setting shortcut keyboard di ubuntu :)

cd /usr/share/gnome-control-center/keybindings 
for entry in $(grep KeyListEntry * |cut -d'/' -f2- |cut -d'"' -f1); do
echo $entry 
gconftool -u "/$entry" 
done

Simpan script di atas dan eksekusi

Selamat mencoba ^_^

4 May 2012 at 00:23 - Comments

Fixing wireless Ubuntu 12.04 On MacBook Pro

Install b43-fwcutter and download that tar file.

apt-get install b43-fwcutter

Then:

Code:
wget http://www.lwfinger.com/b43-firmware/broadcom-wl-5.100.138.tar.bz2
tar xf broadcom-wl-5.100.138.tar.bz2
sudo b43-fwcutter -w "/lib/firmware" broadcom-wl-5.100.138/linux/wl_apsta.o

This will install the missing BCM4331 firmware for the b43 driver to /lib/firmware/b43, from where it will be picked up automatically on reboot. Check the lshw output to confirm whether the firmware has been picked up.

Suspend-resume and Hibernate might still cause issues, so as mentioned on the Ubuntu Buzz site:

Code:
# cp /etc/pm/config.d/default /etc/pm/config.d/default.old
# echo 'SUSPEND_MODULES="b43 bcma"' >> /etc/pm/config.d/default

If the default file does not exist, you can create it and just put in one line:

Code:
SUSPEND_MODULES="b43 bcma"

Restart/suspend-resume as you wish!

3 May 2012 at 22:35 - Comments

Sun Java and Debian 6 Squeeze

1. Edit /etc/apt/sources.list, tambahkan “non-free”:

deb http://ftp2.de.debian.org/debian squeeze main non-free

2. apt-get update

3. apt-get install sun-java6-bin sun-java6-javadb sun-java6-jdk sun-java6-plugin


26 February 2012 at 15:39 - Comments

Replacing A Failed Hard Drive In A Software RAID1 Array

This guide shows how to remove a failed hard drive from a Linux RAID1 array (software RAID), and how to add a new hard disk to the RAID1 array without losing data.

I do not issue any guarantee that this will work for you!

(more..)

6 January 2012 at 00:33 - Comments

Konfigurasi Zenoss Buat Monitoring Network

Finally, Setelah ngoprec se-pagi-an nemu juga resep konfigurasi untuk bisa nampilin Latency Graph dan Device status di Dashboard Zenoss, Pamer dulu ah :D

Perlu Menambahkan ZenPack InterfaceGraph dan ShowGraph untuk bisa seperti di atas, juga racikan smokeping di zenoss.

:shakehand2

15 November 2011 at 13:26 - Comments

Linux – How to split the terminal into more than one “view”?

You can do it in screen the terminal multiplexer.

  • To split vertically: ctrla then |.
  • To split horizontally: ctrla then S (uppercase one).
  • To unsplit: ctrla then Q (uppercase one).
  • To switch from one to the other: ctrla then tab

EDIT, basic screen usage:

  • New terminal: ctrla then c.
  • Next terminal: ctrla then space.
  • Previous terminal: ctrla then backspace.
  • N’th terminal ctrla then [n].
  • Send ctrla to the underlying terminal ctrla then a.
12 October 2011 at 09:50 - Comments

Install squidstats untuk monitoring proxy didebian/ubuntu

Banyak sekali tools untuk memonitoring kinerja squid kita, kali kita coba pke squidstats yang dari sisi design cukup bagus dan cukup lengkap sehingga memudahkan kita dalam monitoring squid. (more..)

25 September 2011 at 14:50 - Comments
Yeah, petrty much on purpose… :-)I just thought I’d try to make something extremely boring more interesting.
11 February 12 at 05:32

How to Block SSH Brute Force Attacks in Linux

iptables -N LOGDROP

iptables -A LOGDROP -j LOG

iptables -A LOGDROP -j DROP

iptables -I INPUT -p tcp –dport 22 -i eth0 -m state –state NEW -m recent –set

iptables -I INPUT -p tcp –dport 22 -i eth0 -m state –state NEW -m recent –update –seconds 60 –hitcount 4 -j DROP

NB: sesuaikan interface dengan server kamu!.
25 September 2011 at 11:39 - Comments

Mikrotik Bruteforce login prevention

Seringkali serangan bruteforce login datang ke Router kita, lantas bagaimana menanganinya ? (more..)

25 September 2011 at 11:14 - Comments

Find & Replace text dalam file secara recursive

Teknik ini biasa digunakan untuk me-replace text dalam beberapa file sekaligus cukup mudah dengan terminal kesayangan ketikkan :

sed -i ‘s/tekslama/teksbaru/g’ *.conf

Selamat mencoba :beer:

23 September 2011 at 12:55 - Comments