Saturday, March 08, 2008

print from linux to vista home premium

1. Navigate to the Windows Vista Control Panel
2. Go to the "Programs and Features" pane
3. Click on "Turn Windows Features on or off"
4. Turn on the LPD protocol and make sure that all desired printers are set to be shared
5. On the linux system, open http://localhost:631/
6. Click ADD PRINTERS
7. Name:
Location:
Description:
everything but name is optional
8. From the "Device:" field select "LPD/LPR Host or Printer"
9. In the "Device URI:" field, lpd://(name of your Windows Vista system)/(name of your printer), e.g. lpd://homepc/HomePrinter( I had to use the IP, hostname didn't work for me. Might fiddle around with that later
10 select printer manufacturer
11 select printer model
12. print test page

Friday, March 07, 2008

mount samba drive between linux/windows

sudo mount -t smbfs -o username=windows_username,password=windows_password //vista_computer_name/share /location/to/folder


this command is all one line

Wednesday, March 05, 2008

extract audio from a mpg file

mplayer -dumpaudio filename.mpg -dumpfile filename.mp3