Author Topic: [SOLVED] Adding new columns in Nautilus  (Read 1274 times)

0 Members and 2 Guests are viewing this topic.

Online pooky2483

  • Hero Member
  • *****
  • Posts: 1552
  • Karma: 0
  • Gender: Male
  • Slowly getting the hang of it.
    • View Profile
    • Get your FREE Ubuntu stickers here. I'm the UK address
    • Awards
[SOLVED] Adding new columns in Nautilus
« on: January 10, 2013, 04:34:42 pm »
I have been looking into adding new columns in nautilus to give me information on audio and video such as duration.
I have found this;
http://brainstorm.ubuntu.com/idea/5211/

01 - Download the script from http://www.2shared.com/file/7716528/d1676f26/bsc-v2.html to ur desktop
02 - Install the needed dependencies (make sure universe source is enabled "System>Administration>Software Sources>Ubuntu Software tab")
sudo apt-get install python-nautilus python-mutagen python-pyexiv2
03 - Make a directory in ur home/.nautilus named "python-extensions"
mkdir ~/.nautilus/python-extensions
04 - Copy the script to it (if done graphically, hit ctrl+H to view hidden folders in ur home directory)
cp bsc-v2.py ~/.nautilus/python-extensions
05 - Make the script executable
chmod a+x ~/.nautilus/python-extensions/bsc-v2.py
06 - Close all Nautilus windows
killall nautilus
07 - Relaunch Nautilus

But, it did NOT work!. What's wrong with it?
« Last Edit: January 10, 2013, 10:06:20 pm by pooky2483 »

Kubuntu 12.04LTS 64bit|M3A76-CM|BIOS 2101|AMD PhenomII X4 965 3400+|Realtek RTL8168C(P)|8111C(P) PCI-E Gigabit Ethernet NIC|NVIDIA 128MB GeForce6200 Turbocache|8.0GB Single-Channel DDR2|Chrome|

Offline SeZo

  • Hero Member
  • *****
  • Posts: 1251
  • Karma: 111
  • Gender: Male
    • View Profile
    • Awards
Re: Adding new columns in Nautilus
« Reply #1 on: January 10, 2013, 06:12:48 pm »
That link points to an out dated script try this updated (for 12.04) version instead,
and follow the instructions here

Online pooky2483

  • Hero Member
  • *****
  • Posts: 1552
  • Karma: 0
  • Gender: Male
  • Slowly getting the hang of it.
    • View Profile
    • Get your FREE Ubuntu stickers here. I'm the UK address
    • Awards
Re: Adding new columns in Nautilus
« Reply #2 on: January 10, 2013, 07:37:52 pm »
I'm trying to follow it but I'm having problems.
Post #38 http://ubuntuforums.org/showthread.php?t=878683&page=4

Step #2 is telling me to make sure universe source is enabled "System>Administration>Software Sources>Ubuntu Software tab"
Does this mean the 'Source Code' Tab in screenshot #01?

Step #3 is telling me to Make a directory in ur home/.nautilus named "python-extensions"
But I did that and then looked in the folder created above and there was a file telling me that it has been re-created as home/.config/nautilus/python-extensions

I have even done a re-boot but I still get the standard options, screenshot #02

What am I doing wrong???????


Kubuntu 12.04LTS 64bit|M3A76-CM|BIOS 2101|AMD PhenomII X4 965 3400+|Realtek RTL8168C(P)|8111C(P) PCI-E Gigabit Ethernet NIC|NVIDIA 128MB GeForce6200 Turbocache|8.0GB Single-Channel DDR2|Chrome|

Online pooky2483

  • Hero Member
  • *****
  • Posts: 1552
  • Karma: 0
  • Gender: Male
  • Slowly getting the hang of it.
    • View Profile
    • Get your FREE Ubuntu stickers here. I'm the UK address
    • Awards
Re: Adding new columns in Nautilus
« Reply #3 on: January 10, 2013, 08:14:02 pm »
The file 'bsc-v2.py' is also in 'usr/lib/nautilus/extensions-2.0/python'

I've tried changing ownership of it but it still says I'm not the owner
Code: [Select]
chmod a+x /usr/lib/nautilus/extensions-2.0/python/bsc-v2.py
Iíve even tried it with
Code: [Select]
sudo chmod a+x /usr/lib/nautilus/extensions-2.0/python/bsc-v2.py
But still no change!

Kubuntu 12.04LTS 64bit|M3A76-CM|BIOS 2101|AMD PhenomII X4 965 3400+|Realtek RTL8168C(P)|8111C(P) PCI-E Gigabit Ethernet NIC|NVIDIA 128MB GeForce6200 Turbocache|8.0GB Single-Channel DDR2|Chrome|

Offline Mark Greaves (PCNetSpec)

  • Administrator
  • Hero Member
  • *****
  • Posts: 12494
  • Karma: 306
  • Gender: Male
  • "-rw-rw-rw-" .. The Number Of The Beast
    • View Profile
    • PCNetSpec
    • Awards
Re: Adding new columns in Nautilus
« Reply #4 on: January 10, 2013, 08:22:27 pm »
Since when does "chmod" change a files "ownership" .. that would be "chown" ;)

chmod a+x <filename>

Just made the file executable by everyone .. it did not change ownership

see:
Code: [Select]
man chmod
and
Code: [Select]
man chown
WARNING: You are logged into reality as 'root'

logging in as 'insane' is the only safe option.

Online pooky2483

  • Hero Member
  • *****
  • Posts: 1552
  • Karma: 0
  • Gender: Male
  • Slowly getting the hang of it.
    • View Profile
    • Get your FREE Ubuntu stickers here. I'm the UK address
    • Awards
Re: Adding new columns in Nautilus
« Reply #5 on: January 10, 2013, 08:38:40 pm »
Sorry, I've just had another look and it is just 'chmod'

Iíve also seen that someone is also saying the file 'bsc-v2.py' should be in '~/.local/share/nautilus-python/extensions folder' so I'm now completely lost in what I need to do.....

Kubuntu 12.04LTS 64bit|M3A76-CM|BIOS 2101|AMD PhenomII X4 965 3400+|Realtek RTL8168C(P)|8111C(P) PCI-E Gigabit Ethernet NIC|NVIDIA 128MB GeForce6200 Turbocache|8.0GB Single-Channel DDR2|Chrome|

Offline Mark Greaves (PCNetSpec)

  • Administrator
  • Hero Member
  • *****
  • Posts: 12494
  • Karma: 306
  • Gender: Male
  • "-rw-rw-rw-" .. The Number Of The Beast
    • View Profile
    • PCNetSpec
    • Awards
Re: Adding new columns in Nautilus
« Reply #6 on: January 10, 2013, 09:10:29 pm »
Just guessing here, but what's the output from:
Code: [Select]
la -al ~/.local/share/nautilus-python/extensions
and
Code: [Select]
dpkg -l | grep python-nautilus
and
Code: [Select]
dpkg -l | grep python-mutagen
and
Code: [Select]
dpkg -l | grep python-pyexiv2
WARNING: You are logged into reality as 'root'

logging in as 'insane' is the only safe option.

Online pooky2483

  • Hero Member
  • *****
  • Posts: 1552
  • Karma: 0
  • Gender: Male
  • Slowly getting the hang of it.
    • View Profile
    • Get your FREE Ubuntu stickers here. I'm the UK address
    • Awards
Re: Adding new columns in Nautilus
« Reply #7 on: January 10, 2013, 09:16:21 pm »

Code: [Select]
la -al ~/.local/share/nautilus-python/extensions
ls: cannot access /home/pooky2483/.local/share/nautilus-python/extensions: No such file or directory

Code: [Select]
dpkg -l | grep python-nautilus
ii  python-nautilus                                             1.1-3                                                Python binding for Nautilus components
Code: [Select]
dpkg -l | grep python-mutagen
ii  python-mutagen                                              1.20-1ubuntu1                                        audio metadata editing library
Code: [Select]
dpkg -l | grep python-pyexiv2
ii  python-pyexiv2                                              0.3.2-1                                              Python binding to Exiv2
ii  python-pyexiv2-doc                                          0.3.2-1                                              Documentation for Python binding to Exiv2

Kubuntu 12.04LTS 64bit|M3A76-CM|BIOS 2101|AMD PhenomII X4 965 3400+|Realtek RTL8168C(P)|8111C(P) PCI-E Gigabit Ethernet NIC|NVIDIA 128MB GeForce6200 Turbocache|8.0GB Single-Channel DDR2|Chrome|

Offline Mark Greaves (PCNetSpec)

  • Administrator
  • Hero Member
  • *****
  • Posts: 12494
  • Karma: 306
  • Gender: Male
  • "-rw-rw-rw-" .. The Number Of The Beast
    • View Profile
    • PCNetSpec
    • Awards
Re: Adding new columns in Nautilus
« Reply #8 on: January 10, 2013, 09:23:17 pm »
run:
Code: [Select]
sudo updatedb
then post the output from:
Code: [Select]
locate bsc-v6.py
WARNING: You are logged into reality as 'root'

logging in as 'insane' is the only safe option.

Online pooky2483

  • Hero Member
  • *****
  • Posts: 1552
  • Karma: 0
  • Gender: Male
  • Slowly getting the hang of it.
    • View Profile
    • Get your FREE Ubuntu stickers here. I'm the UK address
    • Awards
Re: Adding new columns in Nautilus
« Reply #9 on: January 10, 2013, 09:31:25 pm »
Code: [Select]
locate bsc-v6.py
[/quote]
pooky2483@pooky2483-ubuntu12:~$ locate bsc-v6.py
pooky2483@pooky2483-ubuntu12:~$

Kubuntu 12.04LTS 64bit|M3A76-CM|BIOS 2101|AMD PhenomII X4 965 3400+|Realtek RTL8168C(P)|8111C(P) PCI-E Gigabit Ethernet NIC|NVIDIA 128MB GeForce6200 Turbocache|8.0GB Single-Channel DDR2|Chrome|

Online pooky2483

  • Hero Member
  • *****
  • Posts: 1552
  • Karma: 0
  • Gender: Male
  • Slowly getting the hang of it.
    • View Profile
    • Get your FREE Ubuntu stickers here. I'm the UK address
    • Awards
Re: Adding new columns in Nautilus
« Reply #10 on: January 10, 2013, 09:33:21 pm »
Instead , I ran
Code: [Select]
locate bsc-v2.py
pooky2483@pooky2483-ubuntu12:~$ locate bsc-v2.py
/home/pooky2483/.config/nautilus/python-extensions/bsc-v2.py
/usr/lib/nautilus/extensions-2.0/python/bsc-v2.py
pooky2483@pooky2483-ubuntu12:~$


[EDIT]
'ran' - wtf! dunno why I typed 'ran'

Kubuntu 12.04LTS 64bit|M3A76-CM|BIOS 2101|AMD PhenomII X4 965 3400+|Realtek RTL8168C(P)|8111C(P) PCI-E Gigabit Ethernet NIC|NVIDIA 128MB GeForce6200 Turbocache|8.0GB Single-Channel DDR2|Chrome|

Offline Mark Greaves (PCNetSpec)

  • Administrator
  • Hero Member
  • *****
  • Posts: 12494
  • Karma: 306
  • Gender: Male
  • "-rw-rw-rw-" .. The Number Of The Beast
    • View Profile
    • PCNetSpec
    • Awards
Re: Adding new columns in Nautilus
« Reply #11 on: January 10, 2013, 09:43:25 pm »
run:
Code: [Select]
mkdir -p ~/.local/share/nautilus-python/extensions
cd ~/.local/share/nautilus-python/extensions
wget http://dl.dropbox.com/u/11876059/bsc-v6.py
chmod a+x ~/.local/share/nautilus-python/extensions/bsc-v6.py

REBOOT (or restart Nautilus) and see if it works.

If not, try:
Code: [Select]
mkdir -p ~/.nautilus/python-extensions
cp ~/.local/share/nautilus-python/extensions/bsc-v6.py ~/.nautilus/python-extensions/bsc-v6.py

And again, REBOOT to test.

.
« Last Edit: January 10, 2013, 09:55:31 pm by Mark Greaves (PCNetSpec) »
WARNING: You are logged into reality as 'root'

logging in as 'insane' is the only safe option.

Online pooky2483

  • Hero Member
  • *****
  • Posts: 1552
  • Karma: 0
  • Gender: Male
  • Slowly getting the hang of it.
    • View Profile
    • Get your FREE Ubuntu stickers here. I'm the UK address
    • Awards
Re: Adding new columns in Nautilus
« Reply #12 on: January 10, 2013, 09:47:48 pm »
I tried the first bit.
It's worked now Mark  ;D Thanks
What exactly was wrong/what did/didnít I do?

Kubuntu 12.04LTS 64bit|M3A76-CM|BIOS 2101|AMD PhenomII X4 965 3400+|Realtek RTL8168C(P)|8111C(P) PCI-E Gigabit Ethernet NIC|NVIDIA 128MB GeForce6200 Turbocache|8.0GB Single-Channel DDR2|Chrome|

Offline Mark Greaves (PCNetSpec)

  • Administrator
  • Hero Member
  • *****
  • Posts: 12494
  • Karma: 306
  • Gender: Male
  • "-rw-rw-rw-" .. The Number Of The Beast
    • View Profile
    • PCNetSpec
    • Awards
Re: Adding new columns in Nautilus
« Reply #13 on: January 10, 2013, 09:57:23 pm »
a) you were using the earlier version of the python script .. not the one for Ubuntu 12.04
and
b) you were putting it in the wrong place
WARNING: You are logged into reality as 'root'

logging in as 'insane' is the only safe option.

Online pooky2483

  • Hero Member
  • *****
  • Posts: 1552
  • Karma: 0
  • Gender: Male
  • Slowly getting the hang of it.
    • View Profile
    • Get your FREE Ubuntu stickers here. I'm the UK address
    • Awards
Re: Adding new columns in Nautilus
« Reply #14 on: January 10, 2013, 10:05:37 pm »
Ah thanks.
I'll try and <carefully> remove the file(s) I don't need.

Kubuntu 12.04LTS 64bit|M3A76-CM|BIOS 2101|AMD PhenomII X4 965 3400+|Realtek RTL8168C(P)|8111C(P) PCI-E Gigabit Ethernet NIC|NVIDIA 128MB GeForce6200 Turbocache|8.0GB Single-Channel DDR2|Chrome|

 


SimplePortal 2.3.3 © 2008-2010, SimplePortal