Location of PDF files

All of you must be knowing already that in Ubuntu, we can install a printer that generates PDF focument through installing cups-pdf. But, normally, when you print, the output is saved in a folder called ‘PDF’ in your home folder.

I personally feel that it is better to have the destination as the Desktop. If any of you want to change the default destination location, it can be done through these steps :

  • Open the /etc/cups/cups-pdf.conf file using any text editor. As an administrator.
  • Look for a line something like Out ${HOME}/PDF
  • You can change it to Out ${HOME}/Desktop
  • Save and close.
  • Open the /etc/apparmor.d/usr.sbin.cupsd file using any text editor. As an administrator.
  • Look for two lines like the following :   @{HOME}/PDF/ rw,
    @{HOME}/PDF/* rw,
  • Change them to :   @{HOME}/Desktop/ rw,
    @{HOME}/Desktop/* rw,
  • Save the file.
  • Reboot. (Though the cups file can be restarted from terminal, the changes in apparmor.d folder takes effect only when we restart. So, it is better to restart).
  • Now, if you print anything using the PDF printer, the outputs will be saved in the Desktop

I find this very useful. So, thought of sharing with everyone.

Published in: on July 3, 2010 at 1:53 am  Leave a Comment  

Mounting USB drives

Question

I installed my Ubuntu from a Pen Drive.

Now, my pen drive is not mounting automatically. Everytime, I reboot I have to manually mount the pen drive. Is there a way by which I can make ubuntu automatically mount my USB drives ?

Answer

Open /etc/fstab for editing, e.g.

sudo gedit /etc/fstab

    Find a line like this (usually at the end):

    /dev/sdb1  /media/cdrom0   udf,iso9660 user,noauto,exec,utf8 0  0

      and comment it out by placing a # at the beginning:

      #/dev/sdb1  /media/cdrom0   udf,iso9660 user,noauto,exec,utf8 0 0

        You can also rename the real cdrom mount point to /media/cdrom0 if you like.

        Published in: on July 27, 2008 at 11:32 am  Leave a Comment  

        Modem problem in ubuntu 8.04

        Question

        I have a Huawei usb modem [built into my CDMA WLL phone]. To get it working in Ubuntu 7.10, I followed instructions on the net and added the following file named “026_ti_usb_3410.rules” in /etc/udev/rules.d

        > #TI USB 3410
        > SUBSYSTEM==”usb_device” ACTION==”add”
        > SYSFS{idVendor}==”0451″,SYSFS{idProduct}==”3410″ \
        > SYSFS{bNumConfigurations}==”2″ \
        > SYSFS{bConfigurationValue}==”1″ \
        > RUN+=”/bin/sh -c ‘echo 2 > /sys%p/device/bConfigurationValue’”

        After this the modem started working. But with ubuntu 8.04 my modem doesnt work.

        Answer

        It seems the driver for your model is broken in ubuntu 8.04 See
        http://www.pkuhar.com/blog/?p=15 which provides a patch for the problem.

        find the ti_usb_3410_5052.ko file in your system

        you can use the command sudo find / -iname “ti_usb_3410_5052.ko”

        Download the patched driver from the site, uncompress it and replace
        the old one with this,

        And change the udev rule as per the post.

        Published in: on June 28, 2008 at 7:34 am  Comments (1)  

        Audacity in Ubuntu

        Question

        I’m facing a problem with using Hardy 8.04..(64-bit)
        problem is that Hardy uses Pulse Audio, and it doesn’t seem to support Audacity,
        which happens to be a software I need to use quite often..

        Any ideas ?

        Answer

        To get audacity work properly on ubuntu 8.04 (in some sound cards) you
        have to install qjackctl and run audacity via qjackctl.

        ie, you have to first start jack via qjackctl and then run audacity.

        Published in: on June 26, 2008 at 7:35 am  Leave a Comment  

        Cannot move files to Trash

        Question

        I have a second hard disk – there are three VFAT partitions in this disk. When I delete files from any of these three partitions, files do not go to Trash, but I am prompted saying ‘Cannot move file to trash, do you want to delete immediately?’

        My FSTAB entries are like this.
        /dev/sdb1 /media/SONGS vfat defaults,users,umask=000 0 0
        /dev/sdb5 /media/BACKUP vfat defaults,users,umask=000 0 0
        /dev/sdb3 /media/FILES40NEW vfat defaults,users,umask=000 0 0

        Answer

        You must add uid=1000 and gid=1000 to resolve this problem.

        Change the FSTAB file like shown below.

        /dev/sdb1 /media/SONGS vfat defaults,users,umask=000,uid=1000,gid=1000 0 1
        /dev/sdb5 /media/BACKUP vfat defaults,users,umask=000,uid=1000,gid=1000 0 1
        /dev/sdb3 /media/FILES40NEW vfat defaults,users,umask=000,uid=1000,gid=1000 0 1

        Save the file and restart the computer. Create a folder called .Trash-1000 in the root of these partitions. Now, when you delete a file from these VFAT partitions, the files will move to Trash directly.

        Published in: on June 19, 2008 at 10:48 am  Comments (5)  

        Creating Mount Points

        Question

        How to create Mount Points in ubuntu ?

        Answer

        For example, if you want to create a Mount Point called DISK1, then type the following command in the terminal :

        sudo mkdir /media/DISK1

        Then, you can include this mount point in the fstab file

        Published in: on June 9, 2008 at 12:01 pm  Leave a Comment  

        MS Fonts in Ubuntu

        Question

        Does anyone know if OpenOffice has Times Roman Font ?

        Answer

        Please see the link http://anhlqn.wordpress.com/2008/05/12/install-ms-fonts-in-ubuntu-804/

        But, these fonts are not free (as in freedom)

        Published in: on June 8, 2008 at 9:00 am  Leave a Comment  

        Space in Partition Name

        Question

        I have a partition called ‘OLD DISK’. How do I specify it in the FSTAB file with the space ? If I put quotation marks, it returns an error.

        Answer

        You have to ‘escape’ the space with 40. For example, your FSTAB entry will be something like

        /dev/sdb3   /media/OLD40DISK  auto  defaults  0

        Published in: on June 5, 2008 at 3:43 am  Leave a Comment  

        Mounting USB manually

        Question

        How do I manually mount a USB drive in Ubuntu ?

        Answer

        In the Terminal, you can type the following command :

        sudo mount /dev/sdc1 /mnt

        Then, you plug your USB drive.

        Published in: on June 5, 2008 at 3:28 am  Leave a Comment  

        Automatically running commands at startup

        Question

        I’m just wondering if someone knows how to run a programme at startup? I basically need to set up a computer to login to the internet at startup. The way to do it is to run the cyberoam client at startup. It is in the crclient folder (within home folder). So, when I’m doing it through the terminal, I type:

        cd ~/crclient
        ./crclient -u username

        This basically allows the computer to login. Is there anyway, I can get both these lines to run automatically at startup?

        Answer

        Put the command
        /home//crclient -u username
        in the file /etc/rc.local

        Published in: on May 27, 2008 at 4:04 am  Leave a Comment  
        Follow

        Get every new post delivered to your Inbox.