Nov
28
2008
0

Find the last five IP’s I logged in as

So, to find the last five IP’s a user called “user” has logged in as, do this from .. well, a commandline.

last -i | grep user | head -n 5

Last shows the last (lots) of users that logged in, the -i shows IP’s, then you use grep to filter by the word “user” and use head show the top five. Yay, all done.

Written by James Hodgkinson in: Computers, Linux |
Aug
01
2008
0

Wordpress security tip

You can prevent people from looking inside your directories by creating a file in there called “.htaccess” and adding the following line:

Options -Indexes

This is a good way of doing this, since it then tells the web browser “You’re not allowed in here” rather than having to create blank files to hide your directories :)

Written by James Hodgkinson in: Linux, Programming |
Jan
05
2008
0

Playing DVD’s on Ubuntu Feisty

I’ve never really gotten DVD’s to work reliably in Linux. Ubuntu’s a great distribution and it’s got a lot of things working beautifully straight off, but as usual I couldn’t get DVD’s to play with Totem. I found Quickstart on the Ubuntu Forums and a lot of people had said it worked fine, as usual with most of the fixes. It didn’t work for me (installed a few other cool things for me though) so I played around a bit, determined to watch Sneakers now that the sound was working :)

I figured that I’d been playing around too much so uninstalling everything to do with media playing then reinstalling it might be the go, and I was right :)

If you’re having problems and nothing really works, try this…  either su to root or use sudo in front of this command to run it as root:

 apt-get remove totem libdvdcss2 libdvdread3

Or just go into Synaptic and remove Totem, libdvdcss and libdvdread. Then go into Quickstart again and install the DVD software. You should be good to go :)

If you do have any problems, leave a comment and I’ll see what I can work out that I’ve left out – I removed a few things but I think those three packages are the main problem causing ones.

Written by James Hodgkinson in: Adventures, Linux |
Jan
04
2008
0

Ubuntu feisty volume too quiet?

Just in case someone else comes looking for the solution to this problem like I did tonight :) I found this link by googling a little.

Here’s the solution if you don’t like clicking…

Try adding this to your /etc/modprobe.d/options (or alsa-base) file:

options snd-hda-intel model=XXX

Replace XXX with one of the quoted values in the list below (remove the quotes)

“3stack” – 3-jack
“3stack-dig” – 3-jack with SPDIF I/O
“6stack-dig” – 6-jack with SPDIF I/O
“auto” – auto-config reading BIOS (default)

I used the “3stack” option for my Toshiba Satellite laptop with Intel hda audio and it worked perfectly. :)

Written by James Hodgkinson in: Linux |
Dec
16
2007
1

Sound with Pidgin on the EEE PC

I was trying to get sound working on an EEE PC in Pidgin, and had to do a bit of googling before I found it… here’s the solution (taken from the EEEuser forums)

  1. Press Ctrl+P to go to Preferences
  2. Then select Sounds tab
  3. In the sound method section, select “Command”
  4. Type “aplay -q %s” (without the quotes) as the command.
Written by James Hodgkinson in: EEE PC, Linux |

Theme: TheBuckmaker.com Wordpress Themes | TechMilieu.com