The Ultimate Bashrc File

Various Gnome Stuff by inameiname 101 comments

It's fixed.

#set -o nounset # attempt to use undefined variable outputs error message and forces exit

That should be commented out. Yours should be fixed now.

Always amazing how one tiny little thing can change so much. :P - Oct 27 2010
The Ultimate Bashrc File

Various Gnome Stuff by inameiname 101 comments

It's fixed. I'll post the updated version in a few.

It was indeed a small typo.

set -o nounset # attempt to use undefined variable outputs error message and forces exit

should've been commented out.

#set -o nounset # attempt to use undefined variable outputs error message and forces exit

Now, I don't get the error anymore. Let me know if this fixed it for you. - Oct 27 2010
The Ultimate Bashrc File

Various Gnome Stuff by inameiname 101 comments

Okay, I've narrowed down the culprit. It's something in the very top, under my 'Miscellaneous' section. Thus, the functions and aliases sections work just fine and can be kept. I'll proceed now to narrow it down further.

FYI, here is what I think your issue was:

sudo apt-g => sudo apt-get ...normally with tab completion, but with whatever's causing the error in my Misc section, this is what's happening...
sudo apt-g => sudo apt-gbash: exclude: unbound variable

Least I know it's only a small handful of that's causing it. Easy fix. - Oct 27 2010
The Ultimate Bashrc File

Various Gnome Stuff by inameiname 101 comments

Okay, so I think I'm getting what you're saying.

# enable programmable completion features (you don't need to enable
# this, if it's already enabled in /etc/bash.bashrc and /etc/profile
# sources /etc/bash.bashrc).
if [ -f /etc/bash_completion ] && ! shopt -oq posix; then
. /etc/bash_completion
fi

That line is what enables it, and it seems enabled. FYI, the above is in the top part of my bashrc, which I don't touch at all, as it's the default stuff that should've already been there. Also, looking at '/etc/bash.bashrc', which I've never touched, nor changed, it's disabled on mine.

# enable bash completion in interactive shells
#if [ -f /etc/bash_completion ] && ! shopt -oq posix; then
# . /etc/bash_completion
#fi

I'm guessing your settings are the same? And it was working prior to adding mine? I'm gonna remove all of my custom and see if it suddenly starts working on mine with the default stuff. That'll tell me if it's any of the aliases/functions/etc stuff, though I've looked and don't see anything that would mess it up. - Oct 27 2010
The Ultimate Bashrc File

Various Gnome Stuff by inameiname 101 comments

Can you explain just what it is doing?

I've never had the issue, and other than the addition of a couple more user-specific things, I use this literally all the time. I'm sure it's a typo somewhere.

When do you hit the tab button? - Oct 27 2010
Herramientas PDF para Nautilus

Nautilus Scripts by gustavobaezz 4 comments

http://www.2shared.com/file/mDXnPDdA/Nautilus-PDF-Toolsshtar.html - Oct 25 2010
The Ultimate Bashrc File

Various Gnome Stuff by inameiname 101 comments

Thanks, I'll check it out.

Also, I literally just updated the bashrc again, adding one more function (sudo) that could be really cool for many. Just didn't feel need to change version yet again. - Oct 25 2010
Herramientas PDF para Nautilus

Nautilus Scripts by gustavobaezz 4 comments

#!/bin/bash
# Powered by Gustavo Moreno Baez
sub=`zenity --entry --title="Action Selection" --text="1.-Merge PDF
2.- Section Off Pages
3.- Extract Pages
4.- Insert Watermark
5.- Protect PDF
6.- PDF Repair"`
case $sub in

# Merge PDF
1)
clear
Selection=`zenity --title "Selection in order to want to join pdfs" --file-selection --multiple|sed -e 's/|/\" \"/g'`
echo \'$Selection\'
echo "Has the following PDF Selected \"$Selection\""
Output=$(zenity --file-selection --title "Route Selection and writes the name of the PDF you want to create " --save --confirm-overwrite)
echo pdftk \"$Selection\" cat output $Output>/home/$USER/Desk/temporal_mixing
chmod +x /home/$USER/Desk/temporal_mixing
/home/$USER/Desk/temporal_mixing
rm /home/$USER/Desk/temporal_mixing
;;
# Section Off Pages
2)
FILE=`zenity --file-selection --title="Selection pdf file which you want to extract each of the pages as separate files"`

case $? in
0)
echo "\"$FILE\" Selected.";;
1)
echo "No file selected.";;
-1)
echo "An unexpected error has occurred.";;
esac
Output=$(zenity --file-selection --save --confirm-overwrite);

pdftk "$FILE" burst output "$Output"_%02d.pdf
;;
# Extract Pages
3)
clear
FILE=`zenity --file-selection --title="Selection pdf file which you want to extract pages"`

case $? in
0)
echo "\"$FILE\" Selected.";;
1)
echo "No file selected.";;
-1)
echo "An unexpected error has occurred.";;
esac
FROM=`zenity --entry --title="Selection of first page" --text="Number of the first page you want to extract"`
UP=`zenity --entry --title="Selecting last page" --text="Number of the first page you want to extract"`
Output=$(zenity --file-selection --save --confirm-overwrite);

pdftk A="$FILE" cat 'A'$FROM-$UP output "$Output"
echo "pdftk A="$FILE" cat "$FILE"$FROM-$UP "$FILE2" output "$Output""
;;
# Insert Watermark
4)
clear
FILE=`zenity --file-selection --title="Selection pdf file to insert the watermark"`

case $? in
0)
echo "\"$FILE\" Selected.";;
1)
echo "No file selected.";;
-1)
echo "No fie selected.";;
esac
zenity --info \
--text="When you accept, this opens a dialog box to select file that will watermark. The file you select as a watermark should be pdf, jpg will not work."

FILE2=`zenity --file-selection --title="Selection pdf file that will watermark"`

case $? in
0)
echo "\"$FILE2\" Selected.";;
1)
echo "No file selected.";;
-1)
echo "No file selected.";;
esac


Output=$(zenity --file-selection --save --confirm-overwrite);echo $Output

pdftk "$FILE" background "$FILE2" output "$Output"
;;
# Protect PDF
5)
clear
FILE=`zenity --file-selection --title="Selection pdf file which you want to extract each of the pages as separate files"`

case $? in
0)
echo "\"$FILE\" Selected.";;
1)
echo "No file selected.";;
-1)
echo "An unexpected error has occurred.";;
esac
Output=$(zenity --file-selection --save --confirm-overwrite);
USER=`zenity --entry --title="OWNER PASSWORD" --text="USER Enter a name without spaces (necessary to revoke / grant privileges in the future)"`
option=`zenity --entry --title="KEY TO OPENING" --text="Do you require a password to open? Write s (yes) or n (no)"`
if test $option = n
then
PASSWORD=no
else
PASSWORD=`zenity --entry --title="--- OPENING PASSWORD without spaces and different from USER ---" --text="Enter a password (required to open the document)"`
fi
zenity --info \
--text="options: Printing = Print It allows high quality printing is allowed ; DegradedPrinting = low quality; ModifyContents = Edit content, even reassembled, Assembly = is to extract / join pages; CopyContents = content may be copied and screen readers; ScreenReaders = It allows screen readers; ModifyAnnotations = allowed to modify the annotations including form filling, Fillin = filling is allowed AllFeatures = form of the above are allowed "
PERMITS=`zenity --entry --title="PERMITS" --text="Enter each option separated by spaces: Printing DegradedPrinting ModifyContents ScreenReaders ModifyAnnotations AllFeatures Fillin"`
if test $option = n
then
pdftk "$FILE" output "$Output" owner_pw $USER allow $PERMITS
else
pdftk "$FILE" output "$Output" owner_pw $USER user_pw $PASSWORD allow $PERMITS
fi
;;
# Repair PDF
6)
clear
FILE=`zenity --file-selection --title="Selection corrupt PDF file "`

case $? in
0)
echo "\"$FILE\" Selected.";;
1)
echo "No file selected.";;
-1)
echo "An unexpected error has occurred.";;
esac
Output=$(zenity --file-selection --save --confirm-overwrite);

pdftk "$FILE" output "$Output"
;;

esac - Oct 19 2010
Herramientas PDF para Nautilus

Nautilus Scripts by gustavobaezz 4 comments

A script to work with PDF documents PDFTK library (available in any repository of any Linux distribution).

Permits:

Joining 2, 3 or more PDF documents into a single document.
Make each page a new PDF file.
Extract only certain pages to a new PDF file.
Insert a watermark.
Protecting a PDF document:
- Open password-restrict (optional).
- Restrict permission to edit and / or printing and so on.
Repair, in some cases, corrupt PDF documents.

Usage:

PDFTK must already be installed.

You can find every function in the same web script independently, for ease of use.

My intention is to make working with PDF documents so that next to Open Office + Sun PDF Import (plugin) this has virtually the same functionality as commercial programs, but for free, for those who can afford to purchase or use is occasional. Future translations are welcome and already made, and any other levies and / or suggestions.

Greetings - Oct 19 2010
Reparar PDF

Nautilus Scripts by gustavobaezz 1 comment

Script to repair tables XREF file measures.

The script depends on PDFTK you must first install (available in any repository).

It is not foolproof, or repairs everything.

Create an original copy of the repaired ---- No acts on the original PDF document! - Oct 19 2010
Script that saves a PDF of each page of a PDF document with multiple pages.

Instructions:

Install PDFTK (Available in any repository)

Select the PDF document by cutting and path to save the generated files (eg documento01, documento02 ... etc ) - Oct 19 2010
Proteger PDF

Nautilus Scripts by gustavobaezz 1 comment

A simple script to protect a PDF file.
PDFTK depends on the library.

It allows to:

Set password for opening (optional).
Set permissions for printing, copying, assembling etc ...

Application:

Install PDFTK (available in any repository).
Run.

1 .- Select PDF document to be protected.
2 .- Set password editing (user)
3 .- Set password for opening (optional).
4 .- Set permissions for use of the document.
5 .- Set path and name for the copy protected status of the document. - Oct 19 2010
Insertar marca de agua a un pdf

Nautilus Scripts by gustavobaezz 6 comments

A simple script using PDFTK which inserts a watermark in another PDF document PDF.

Instructions:
Install the library PDFTK.
Generating a PDF file containing the watermark. The recommendation is to design a logo with some "transparency"; as this figure is superimposed on another document.
Copy the script into the folder / home / $ USER/.gnome2/nautilus-scripts (Where $ USER is your user).

Run and follow directions. - Oct 15 2010
Unir PDF

Nautilus Scripts by gustavobaezz 1 comment

A simple sript PDFTK using the library to join PDF documents in order.

Instructions:

1. PDKTK install the library (available in the Ubuntu repositories).
2. Optional (for convenience): copy it to your / home / $ USER/.gnome2/nautilus-scripts. (Where $ USER is your user).
3. Run and follow directions. - Oct 15 2010
Extraer páginas PDF

Nautilus Scripts by gustavobaezz 1 comment

A simple script that removes a range of pages in a PDF document.

Instructions:

To use this script to install PDFTK (available in any repository of any Linux distribution).
UBUNTU
For convenience copy the script to / home / $ USER / .gnome2/nautilus-scripts
(Where $ USER is your user) - This way you will have available with right mouse button on the menu scripts.

1. Run and choose the document from which to extract the pages.
2. Select the first page to extract.
3. Choose the last page to extract.
4. Giving a name and path. pdf file containing the extracted pages. - Oct 15 2010
Turbo-Secure (GPG & SSL Editions)

Nautilus Scripts by Dart00 20 comments

Lovely work. For the paranoid with a desire for some security, such as myself, this is a cool tool, as well as easy to use. Thanks for the hard work. - Oct 10 2010
Space-Sunrise Plymouth Splash

Plymouth Themes by inameiname 19 comments

No worries. Just open a terminal window, and:

sudo apt-get remove space-sunrise - Sep 28 2010
TextRipper (aka T-Rip)

Nautilus Scripts by kickass 19 comments

Thanks for the info. I believe my issue was with not having tesseract-ocr and tesseract-ocr-eng installed. I just installed those and voila. I wasn't aware there were dependencies for it as none were mentioned on this page, so that's why. hehe. Thanks. I figured it out now. Although, not sure about libtiff-dev. It's not in Ubuntu's repos, but is in Debian's. Doesn't seem I need it installed though. - Sep 23 2010
TextRipper (aka T-Rip)

Nautilus Scripts by kickass 19 comments

When I right click an image file, and after selecting "English", I only get this message:

/home/me/Tmp/OCR output-editable text.txt does not exist.

This occurred in both versions of your script. I don't understand.

Thanks in advance. - Sep 20 2010
Space-Sunrise Plymouth Splash

Plymouth Themes by inameiname 19 comments

You're welcome. - Sep 17 2010
The Ultimate Bashrc File

Various Gnome Stuff by inameiname 101 comments

You're welcome. Glad you are finding this useful. I was curious if somebody was. ;) - Sep 11 2010
S.S.Re (Simply Smart Renamer)

Nautilus Scripts by troikas 1 comment

This is not a batch renaming script.

What this can be nice for is if say you have several files inside a folder that you want renamed (each renamed differently, thus not a batch renamer), you merely right click and select the script inside the folder, and then in the box that pops up change all of those files that you want to change the names.

It's function is to make it easier than right clicking a file, selecting 'rename', and then renaming, and then going on to another file, and doing the same procedure. If you have several names to change, that would become time consuming.

Of course, if you have a need to rename with a batch renamer the files, meaning all will be renamed with the same pattern in mind (such as (1), (2), (3)), then a batch renamer is your desire, not this. And there are plenty of those around. I prefer:

http://gnome-look.org/content/show.php/Renamer?content=87601

Anyway, nice script, troikas. - Sep 08 2010
Deb-Installer.sh

Nautilus Scripts by inameiname 4 comments

Indeed. For something like that it would be great. Also, something like OpenOffice from their website, as that has like 20+ debs.

Personally, I use it to easily install those various debs I find that aren't in any repo, or updates with the same idea. Also, for handmade debs too. - Sep 07 2010
Space-Sunrise Plymouth Splash

Plymouth Themes by inameiname 19 comments

Doh! Shame it didn't work. It was a fix I basically just copied from the fix for Ubuntu-Sunrise and changed a few words for Space-Sunrise.

It's installed differently than the original tar file, as there is an install and an uninstall script. You just have to make sure both are marked as executable. You double click on the install to install, and to remove, double click on the uninstall. You can also do the same through the terminal, but opening it and running it through the terminal, so you can see the readout. Hope that helps. - Sep 07 2010
Space-Sunrise Plymouth Splash

Plymouth Themes by inameiname 19 comments

Try the fix I just added. It's added from Ubuntu-Sunrise's fix, by MerlinW. Supposed to automatically input all that is needed to fix the issue. - Sep 07 2010
Antique

GTK2 Themes by Andrewtheshort 17 comments

Personally, http://www.2shared.com/ is always the easiest and seems to be quite reliable. - Sep 06 2010
Space-Sunrise Plymouth Splash

Plymouth Themes by inameiname 19 comments

Oh, well, I did not make this one. Andre "Osku" Schmidt did.

But I am curious what other interesting splashes are possible with Plymouth. Hopefully Ubuntu will fix all the Plymouth bugs that seem to be out now to allow for some even cooler themes. - Sep 06 2010
Ubuntu sunrise plymouth

Plymouth Themes by dinin 30 comments

Yeah, neither am I. It's nice there are so many awesome folks to help us out in the Linux community. ;) - Sep 06 2010
Space-Sunrise Plymouth Splash

Plymouth Themes by inameiname 19 comments

Strange. Well, glad you got it downloaded, and hopefully working. - Sep 06 2010
Ubuntu sunrise plymouth

Plymouth Themes by dinin 30 comments

Hey dinin, it might be a good idea to add this to your artwork here if you get a chance, for all of those who have issues with this splash not working right. Oh, and great work with your version of this splash theme:

FYI, if you are having issues, such as it:

* is in low res mode.
* has corrupted graphic
* is decent but can’t switch to virtual terminal or VT is horribly in low res mode
* is decent but the splash screen only appears for a brief 1-2 second ( you are missing the dots moving :P ), before that you only see a black/blank screen

...check this out:

http://idyllictux.wordpress.com/2010/04/26/lucidubuntu-10-04-high-resolution-plymouth-virtual-terminal-for-atinvidia-cards-with-proprietaryrestricted-driver/ - Sep 06 2010
Ubuntu sunrise plymouth

Plymouth Themes by dinin 30 comments

This link may help you:

http://idyllictux.wordpress.com/2010/04/26/lucidubuntu-10-04-high-resolution-plymouth-virtual-terminal-for-atinvidia-cards-with-proprietaryrestricted-driver/

Also, if you want to try other plymouth splashes, I suggest this one, available in the official repos:

sudo apt-get install plymouth-theme-solar - Sep 06 2010
Ubuntu sunrise plymouth

Plymouth Themes by dinin 30 comments

Hmmm, well I'm sorry to hear that. Sound as though you computers are new enough not to have issues due to that. Also, it's strange neither this deb, nor the deb of the original space-sunrise splash screen works.

I did find this that may be a fix, but you'd have to find out if it is indeed this as the cause: http://www.webupd8.org/2010/03/how-to-get-plymouth-working-with-nvidia.html

FYI, since I compiled both debs, so if all else fails, just blame me. :P And along with that, since it's essentially the same script from the original author of this too, I suggest trying another splash screen just to see if it's solely these. I'm assuming the original Ubuntu default splash works fine. There are several others on this site. - Sep 06 2010
Deb-Installer.sh

Nautilus Scripts by inameiname 4 comments

Indeed. It's just easier to use the command line if you are say wanting to install several debs, which is what this script essentially does. Basically, for those that know what they plan on installing, and don't need to know the specifics and the details. If not, then Gdebi is the way to go. - Sep 06 2010
Ubuntu sunrise plymouth

Plymouth Themes by dinin 30 comments

Not sure exactly what your issue might be, but I do know this splash theme, as well as most of them in general, don't work well with older computers and certain proprietary drivers.

From the screenshot it did install all the files, so that's not an issue. I'm guessing you tried installing through the terminal, which is why you have the terminal screenshot up there? This is done by automatically with the deb file, but I think it sets it to the (2) setting, which is ubuntu-sunrise in manual mode. Try that just to see if it works. Not sure why it's not already if you just installed the deb, as that's why it is on mine with the deb install. - Sep 05 2010
Ubuntu sunrise plymouth

Plymouth Themes by dinin 30 comments

Oops, not sure why it double posted. Sorry about that. - Sep 04 2010
Ubuntu sunrise plymouth

Plymouth Themes by dinin 30 comments

Using your idea, I've repackaged it further to add the 'splash' file for a better buffer and tweaked the images so they aren't as large as they were for some reason (though no quality loss):

http://www.2shared.com/file/7xG6DxF3/ubuntu_sunrise_10_all.html

PS, I also used your idea here with a deb file and made a deb file for the original 'Space Sunrise', by Andre "Osku" Schmidt, and added it to my post:

http://gnome-look.org/content/show.php?content=129678

Thanks.

- Sep 04 2010
Ubuntu sunrise plymouth

Plymouth Themes by dinin 30 comments

Using your idea, I've repackaged it further to add the 'splash' file for a better buffer and tweaked the images so they aren't as large as they were for some reason (though no quality loss):

http://www.2shared.com/file/7xG6DxF3/ubuntu_sunrise_10_all.html

PS, I also used your idea here with a deb file and made a deb file for the original 'Space Sunrise', by Andre "Osku" Schmidt, and added it to my post:

http://gnome-look.org/content/show.php?content=129678

Thanks.

- Sep 04 2010
The Ultimate Templates Pack

Various Gnome Stuff by inameiname 5 comments

Wow, well thanks. I can't believe me and my overly-anal self about spelling misspelled that. :P So thanks! - Sep 03 2010
Hash Checker 4.0.8

Nautilus Scripts by Cooleech 112 comments

I'm sure you already know this, but your little script has been given an article on OMGUbuntu. Thanks again!

http://www.omgubuntu.co.uk/2010/08/check-md5sha256-hashes-with-gui-tool.html - Aug 31 2010
Hash Checker 4.0.8

Nautilus Scripts by Cooleech 112 comments

Nice little script, thanks. - Aug 26 2010
P-launcher

Various Gnome Stuff by petrakis 1 comment

Firstly, lovely app. Handy to see all the packages and be able to quickly backup things for those that aren't a fan of Synaptic, or want something simpler.

Secondly, I am curious if it's at all possible to make it so when viewing the packages that are installed you can sort by total file size. When click on 'Size', it merely sorts the sizes in numerical order, not by total size, as well as excluding the difference between kB and MB.

Anyway, I was just curious. Thanks again for the app! - Aug 10 2010
RGB/HEX Color Picker

Nautilus Scripts by petrakis 16 comments

Ok, cool. Thank you.

Very cool app. It will be handy. - Aug 05 2010
RGB/HEX Color Picker

Nautilus Scripts by petrakis 16 comments

Okay, so looking at the readout of my error, I decided to to a sudo apt-cache search for 'gtkmozembed' and what it came up with was:

python-gtkmozembed - Python bindings for the GtkMozEmbed Gecko library
libgtk-mozembed-ruby - ruby binding of GtkMozEmbed, gecko renderer
libgtk-mozembed-ruby1.8 - ruby binding of GtkMozEmbed, gecko renderer
libgtk-mozembed-ruby1.8-dbg - ruby binding of GtkMozEmbed, gecko renderer

So I decided to sudo aptitude install python-gtkmozembed

...and only that one, and voila, it works just fine now. Guess it's not something that is installed by default. Not sure if the other 3 should be installed or not. - Aug 05 2010
RGB/HEX Color Picker

Nautilus Scripts by petrakis 16 comments

I see. Well, opening it in the terminal, I get this output:

Traceback (most recent call last):
File "./Color-Picker.py", line 7, in <module>
import gtkmozembed
ImportError: No module named gtkmozembed
- Aug 05 2010
RGB/HEX Color Picker

Nautilus Scripts by petrakis 16 comments

I've installed it just how it was instructed here, but nothing opens up when I click it. While I wouldn't use it for coding or anything, I thought it would pop up just as in the screenshot and allow me to have a chart of all colors and their codes, which would be very handy. Perhaps I just need a little clarification on just what this does and how this works if at all possible. Thanks. - Aug 05 2010
Country Oak

GTK2 Themes by fredbird67 9 comments

Oh, ok. I was just curious as to when I installed your theme, I didn't get the pretty borders you had in your screenshots, that's all. Thanks. - Jul 19 2010
Country Oak

GTK2 Themes by fredbird67 9 comments

Is anybody else missing the borders for this theme, ie, usually what's found in the metacity-1 folder?

Other than that, awesome theme! - Jul 18 2010
Moomex Ultimatum

Gnome Screenshots by moomex 72 comments

I recently upgraded from LiNsta3 to Moomex, and while it seems to do the job well, I came across this version, and am wondering if it's worth putting on because it's newer.

I have been able to tweak it to look pretty much the same as the original Moomex theme, however, I am unsure of how to change the status bar, the toolbar, and a few other things to a lighter grey, as opposed to the dark one currently. Basically just as Moomex original is.

Does anybody know how? - Jun 08 2010
global_wallpaper.sh

Various Gnome Stuff by gargantuo 10 comments

Sorry about the triple postings. Didn't mean to. Shame I can't erase. Eek! - Jun 03 2010
global_wallpaper.sh

Various Gnome Stuff by gargantuo 10 comments

I tried your latest version of this script and it seems to work just fine. Thanks for it!

Oh, and just for fun, I added:

tty -s; if [ $? -ne 0 ]; then gnome-terminal -e "$0"; exit; fi

at the top of your script so I can simply put it into my nautilus-scripts folder instead of installing it. Seems to work fine as well. - Jun 03 2010