Saturday, February 26, 2011

Bulk Resize Images

From http://www.novell.com/coolsolutions/tip/16524.html

mogrify -resize 320x240 *.jpg

After this command is completed, all of the images will be replaced with resized version of themselves. Notice that in an effort to preserve the image aspect ratio, mogrify may not be produce images that are exactly 320x240. To force this to happen, modify the original command to by placing an exclamation point at the end of the desired resolution:

mogrify -resize 320x240! *.jpg

Thursday, December 9, 2010

Copying files from Rhythmbox to usb device

Create a file called ".is_audio_player". Put the following code into the file.

audio_folders=mp3/
folder_depth=1

Then plug in the usb stick and Rhythmbox detects the USB stick as an audio device. - From http://www.webupd8.org/2010/06/how-to-use-rhythmbox-to-transfer-music.html

Monday, November 22, 2010

Changing the ip address range in Virtual Box

Go to a terminal and type:

VBoxManage modifyvm "VM name" --natnet1 "192.168/16"

This changes the ip range to a 192.168 rather than the default 10.0 range

Wednesday, July 28, 2010

Installing an Epson Perfection 1670 Scanner

From Ubuntu Forums

HOWTO: Epson Perfection 1670 Scanner

The scanner firmware comes in a file called ESFW30.BIN, which apparently is only available if you install the software on the CD-ROM provided with the scanner. Unfortunately, the software only installs under Windows and then you have to copy the software from the Windows machine to the linux machine. Or you can follow this simple process to download the firmware (provided by Jeff Silverman) and then update your /etc/sane/saned.conf

$ wget http://www.commercialventvac.com/~jeffs/ESFW30.BIN
$ sudo cp ESFW30.BIN /etc/sane.d

Edit /etc/saned.d/snapscan.conf and change the line...

firmware /path/to/your/firmware/file.bin

...to point to /etc/sane.d/ESFW30.BIN

$ scanimage -L

You should see that your scanner is now detected. If so, you can now scan using XSane.

Tuesday, July 20, 2010

joomla

To get to the user log in page is:

index.php?option=com_user&view=login

on the end of the base URL.

The submit link is:

index.php?option=com_content&view=article&layout=form

The administrator panel is:

administrator


How to change the number of items showing - http://kb.siteground.com/article/How_to_reduce_the_number_of_articles_displayed_in_Joomla_15.html

To find out the links for pages go Menu > Select the relevent Menu > Then put a tick in the box and go edit to find out the link for the page.

Info on creating pages: http://thejoomlablog.blogspot.com/2006/03/making-links-to-pages-that-arent-in.html.

Monday, July 19, 2010

Numlock not working in Ubuntu

If the numlock won't work, despite pressing the numlock key then go to:

system > preferences >keyboard > mouse key tab and uncheck the box.

Thursday, July 1, 2010

In /etc/ssh/sshd_config :
Comment out Subsystem sftp /usr/lib/openssh/sftp-server and replace it with:

Subsystem sftp internal-sftp

At the end of the sshd_config add the following:

Match group sftponly
ChrootDirectory /home/%u
X11Forwarding no
AllowTcpForwarding no
ForceCommand internal-sftp

Type the following commands as root, i.e. sudo in front of each command or sudo -s before you start.

1. chown root.root /home/
2. usermod -d /
3. adduser sftponly