Nov 13, 2009

Broadcomm 43xx on Karmic Koala

Thanks to Karmic which has made me come back and wrote somethings down here.
I found my first case, there was a netbook which run smoothly on JJ. But when i installed KK on it, the wireless did not do anything....hmmm

so....here we go:

  1. Open terminal, make sure that your wireless is "Broadcomm 43xx" by typing sudo lspci
  2. Insert Ubuntu 9.10 LiveCD to CD-ROM drive.
  3. Type these command below
  4. sudo apt-cdrom add
    sudo apt-get install dkms patch fakeroot bcmwl-kernel-source
  5. Restart computer.
  6. Go to System - Administration - Hardware Drivers; Broadcomm BCM43xx wireless chip had been detected
  7. Now it's time to set the wireless connection

regards;
~E~

Aug 20, 2009

Joomla! - Liberate the Authors

To hack the Joomla! 1.5.x ( to open the gate for the authors ), is to change the following two files ( the hack has to be applied to any future upgrade of the core )

File 1 is ...components\com_content\controller.php
Go to Line 229 and comment out some lines to stop the wrong message coming up on save:

// if ($access->canPublish)
// {
// Publishers, admins, etc just get the stock msg
$msg = JText::_('Item successfully saved.');
// }
// else
// {
// $msg = $isNew ? JText::_('THANK_SUB') : JText::_('Item successfully saved.');
// }

File 2 is ...components\com_content\models\article.php
Go to line 332 to change the zero value:
// For new items - author is not allowed to publish - prevent them from doing so
$article->state = 1;

The Authors are Liberated !
~E~

Aug 11, 2009

Linux password reset

Hi there, how if i forgot my password to login to my box ?

1. boot by using livecd
2. open terminal type sudo fdisk -lu
3. find something like /dev/sda* which Linux as the system
4. type sudo mkdir /media/lin_temp
5. type sudo mount /dev/sda* /media/lin_temp
6. type sudo chroot /media/lin_temp
7. type passwd john ( if the username = john )
8. you can change the password here by typing the new password twice
9. reboot

(*) indicates the partition number, 1 or 2 or...
this steps had applied on HH, JJ and Gloria

regards;
~E~

May 13, 2009

Faster Firefox

This article tested on Firefox 3.0.10 ( Ms. Windows XP and Ubuntu JJ )

Open your firefox and type about:config
( click ok i'll be careful, i promise! )

Work on filter bar :
( type the bold, change the value by double click on it )

network.http.pipelining ; normally it "false", change to "true"
network.http.pipelining.maxrequests ; normally it "4", change to "8"
network.http.proxy.pipelining ; change from "false" to "true"
network.dns.disableIPv6 ; change from "false" to "true"
plugin.expose_full_path ; change from "false" to "true"

Create some new preferences:
( you can Right Click (RC) anywhere on the preferences panel )

Right Click > New > Integer > type nglayout.initialpaint.delay
click ok > type zero, 0 > click ok

Right Click > New > Integer > content.notify.backoffcount
click ok > type: 5 > click ok

Right Click > New > Integer > ui.submenuDelay
click ok > type zero, 0 > click ok

Right Click > New > Integer > browser.cache.memory.capasity
click ok > type: 32768 > click ok

Right Click > New > Integer > content.notify.interval
click ok > type: 500000 > click ok

Right Click > New > Integer > content.switch.threshold
click ok > type: 250000 > click ok

Right Click > New > Boolean > content.interrupt.parsing
click ok > choose: False > click ok

It's Done !!
Now, it's time to restart the firefox............It should be faster than before.


Regards;
~E~

Mar 31, 2009

Printer sharing

1. On the computer which printer attached

Open Administration printing then add new printer
setup the printer
right-click on the printer then mark on enable and shared boxes
Go to server setting
make sure that “Shared published printer ……” checked
Open terminal then type : sudo apt-get install samba
Then sudo gedit /etc/samba/smb.conf
edit this :

[printers]
comment = All Printers
browseable = no
path = /var/spool/samba
printable = yes
guest ok = yes
read only = yes
create mask = 0700
and
[print$]
comment = Printer Drivers
path = /var/lib/samba/printers
browseable = yes
read only = yes
guest ok = yes
restart samba by sudo /etc/init.d/samba restart


2. on the Linux client ( here, I have ubuntu and mint users )
open their Administration – printing
if you see the shared printer on the left panel….just select it
or
choose internet protocol printer ( ipp ) then configure it out
you may test by test print

3. on the windows client
Open windows explorer
type the computer address where the printer attached
( for example \\192.168.1.122 )
Right click on the printer then choose connect
Set up the printer
You may test by test print

Regards;
~E~

Mar 5, 2009

Nautilus Scripts

Started from here, talked about Send To feature ( this feature is famous in Ms. Windows -- i think ) , i just realized that i have missed another simple thing !!
I found something in wiki and something in unleashed.

If you need Copy-To script :

#! /bin/bash
location=`zenity --file-selection --directory --title="Select a directory"`
for arg
do
if [ -e "$location"/"$arg" ];then
zenity --question --title="Conflict While Copying" --text="File ""$location"/"$arg"" already exists. Would you like to replace it?"
case "$?" in
1 ) exit 1 ;;
0 ) cp "$arg" "$location" ;;
esac
else
cp "$arg" "$location"
fi
done

If you need Move-To script :

#! /bin/bash
location=`zenity --file-selection --directory --title="Select a directory"`
for arg
do
if [ -e "$location"/"$arg" ];then
zenity --question --title="Conflict While Moving" --text="File ""$location"/"$arg"" already exists. Would you like to replace it?"
case "$?" in
1 ) exit 1 ;;
0 ) mv "$arg" "$location" ;;
esac
else
mv "$arg" "$location"
fi
done

just copy the script to your text editor and save it to
~/.gnome2/nautilus-scripts/

But, don't forget one more thing;
your script must be executable by typing
sudo chmod a+x ~/.gnome2/nautilus-scripts
in Terminal.

You can get Send-To script here
Open your Nautilus and the scripts will be there when you right-click on something ( press reload button if you didn't see any )

Done !!!
~E~

HP LaserJet 1020 on Hardy Heron

Frankly, i never know that this printer can't directly work if we installed it in HH by using direct connection. Otherwise, i always use this printer through network and it works totally well.

When i looked at this problem in google... i was shocked that this issue is there and it was an error from the bundled driver of HH ( i am totally late in figure this out )
So....the solution was I have to replace the bundled driver !!
open Terminal
type sudo bash
apt-get install build-essential { install build-essential }
wget -c http://foo2zjs.rkkda.com/foo2zjs.tar.gz
{ to download the driver }
tar zxvf foo2zjs.tar.gz { extract the downloaded driver }
cd foo2zjs { change the working directory }
make { start to build the driver }
./getweb 1020 { get additional firmware }
make install { install the driver }
make install-hotplug { install hotplug }
make cups { restart cups }
done !! and Great Thanks to the resources
~E~

Source : www.ugos.ugm.ac.id and Muhidins Blog