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~

Advertisements

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