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

Missing fstab……

I slipped on my own script, my fstab erased…….
It only contain a line to mount CD-ROM….wakakakaka

After googling, i found this
By reading this article, i assumed that we have to know the UUID for each drive, especially for the / and swap ( for windows disk can be done later )

First, used blkid from terminal by typing sudo blkid
here is the output

/dev/sda1: UUID="2C28F09028F059F2" TYPE="ntfs"
/dev/sda5: UUID="2C82313F7F68F931" TYPE="ntfs"
/dev/sda6: TYPE="swap" UUID="f2ea4d4c-ef3f-49dd-9f4a-ea140e93c69e"
/dev/sda7: UUID="ced3011b-4675-4790-8065-d8e0601f6bf1" TYPE="ext3"

I just have to copy / and swap UUID and paste to my (new)fstab,
after some editing, it looks like :

/dev/scd0       /media/cdrom0   udf,iso9660 user,noauto,exec,utf8 0       0
//192.168.1.100/shared /media/x cifs rw,uid=root,gid=root,file_mode=0777,dir_mode=0777,noperm 0 0
UUID=ced3011b-4675-4790-8065-d8e0601f6bf1    /    ext3    relatime,errors=remount-ro    0    1
UUID=f2ea4d4c-ef3f-49dd-9f4a-ea140e93c69e    none    swap    sw    0    0   

After reboot, my system is back to normal
( I applied this to Hardy Heron, Intrepid Ibex and Mint Elyssa )

regards;
~E~

Mass rename and mass resize using gThumb

Sometimes we will feel reluctant if we want to rename so many files. But actually, it can be done once for many files at the same time. I was tried it by using gThumb

First, of course we have to install gThumb
Open terminal then type sudo apt-get install gthumb

Next, open gThumb and go to the folder which we will work for
The left panel will be the tree panel and the right panel will contains the files from a folder
After we meet the folder, choose some/all pictures which we want to rename from right panel
do right click, then choose rename, below dialog will appear then you can rename them up ( don’t forget to click rename button )

Then, in order to do mass resize,
Go to Tools – Scale Images ( below box will appears )

Beside those two, we also can do mass rotate and mass convert by using gThumb

Regards;
~E~

D-Link DWL G122

I have some friends who has to online using external wireless adapter. All of them are using D-Link DWL G122. When i am still using GG, i can’t make that adapter run out of the box. But now….On HH, it just needed to be plug and it’s working flawlessly

It was recognized as ( when i run fsusb on terminal )

Bus 003 Device 001: ID 07d1:3c03 D-Link System

It means It is rev C1 based on this link. And i also found out how to make it run on GG here

For the Rev B, you check out here and here

Regards;
~E~

Combine some pdfs into one

This started by downloading some e-books from our national education government sites which consists of e-books of some subjects which parted into chapters.
I was just thinking that “could they just be combined into one file only ?”

Based on this article, i got my answer : we can !!

First, download some files from terminal by typing ;

  • sudo apt-get install gs pdftk

Second, execute those pdfs

  • gs -dNOPAUSE -sDEVICE=pdfwrite -sOUTPUTFILE=combinedpdf.pdf -dBATCH 1.pdf 2.pdf 3.pdf

Which OUTPUTFILE=the name of combination file
1.pdf 2.pdf 3.pdf are the name of the partial pdfs

After you run the above command, a new PDF file called combinedpdf.pdf will be created with your individual files merged according to the order that you have you listed.

regards;
~E~

  • Calendar

    • December 2017
      M T W T F S S
      « May    
       123
      45678910
      11121314151617
      18192021222324
      25262728293031
  • Search