Well it's been a while since my last post and I thought I'd post some info I found a few years ago that could be helpful to many out there.
A few years ago I was looking for some schematic diagrams for something (dont ask....I dont remember what.) and after going through a few hundred web sites I came upon this place.
It looks like someone took a lot of time to help/provide technical information to anyone who might need it.
Some may know about it, but I'm sure there are a lot that do not.
So Whats There?
Well for starters there is a forum with tons of info. If you need a hand with something why don't you stop by, I'm sure the folks in there would help ya out!
So What Else?
Well all types of info on equipment ranging from "tv's ( plasma, tft-lcd, widescreen, hdtv ), dvd, vcr, car audio,gsm,digital camera, computer monitors (tft-lcd panels or conventional crt), test equipment, power supplies and many more digital and analogue electronic devices."
Datasheets
There's also datasheets about "integrated circuits diagrams, diodes, transistors, operational amplifiers, pic, pcb design etc."
But Wait theres More!!
Software
There is also "programs, eprom, eeprom, bin files used in equipment repair."
"Most files are pdf and djvu formats, zip or rar compressed."
Pay attention when downloading, many are broken into multiple zip/rar files.
One other nice thing about the site is all users can add their files essentially helping the site/community.
Well thats all I have right now.......However I am thinking of playing with some solar stuff.....but we'll save that for some other time!
Sunday, November 30, 2008
Tuesday, October 21, 2008
Add SSH Users To The HP MV2120/5150
In my last post I wrote how to make the MV2 a secure proxy/gateway. The one thing I didn't like about it was I had to use the root account. I wanted to give other uses the ability to ssh into the vault and use it as a proxy/gateway. (I think it will also work very nice with WinSCP)
So after a lot of playing around, and a lot of emails I got it working.
Users of the Vault can now start an SSH session using their own name and it'll drop them into their own share.
So...should I tell you how I did it? Ok..lets start!
Add Users to SSH
First install a few packages
ipkg install coreutils adduser diffutils nano bash
edit /etc/passwd
nano /etc/passwd
For each user that you want to have ssh access, change the line that looks something like this:
joeuser:x:502:502:Linux User,,,:/:/bin/nologin
to something that looks like below
joeuser:x:502:502:Linux User,,,/:/share/1000/joeuser:/bin/sh
For more information on the format of the passwd file look here
Note: the joeuser in /share/1000/joeuser:/bin/sh is a share name that will become the home directory for that user.
create the script below and name it restore-etc-files
place it in /share/1000/
#!/bin/sh
save_to=/share/ 1000/Documents/ saved-etc
mkdir -p ${save_to}
cp -pf /etc/passwd ${save_to}
cp -pf /etc/group ${save_to}
Make the restore-etc-files executable
chmod +x /share/1000/restore-etc-files
Create a file called "shells" and place the following two lines in it.
/bin/sh
/opt/bin/bash
Save shells in /etc
edit the /etc/init.d/rcS and add to the bottom before the exit 0
saved_etc=/share/ 1000/Documents/ saved-etc
[ -e ${saved_etc} /passwd ] && cp -f
${saved_etc} /passwd /etc/
[ -e ${saved_etc} /group ] && cp -f
${saved_etc} /group /etc/
Once all is set, ssh onto the MV2 and re-set the passwords for the users you want to have SSH access.
passwd username
Once you do this, log out and try to ssh in to your MV2 with the username you just set the password to.
I would like to thank the folks over at http://nslu2-linux.org/ for maintaining all the software that makes hacking the MV2 so fun and easy. I would also especially like to thank Brian Zhou for creating the scripts/code (and for the most part this how to) and most of all helping me through countless emails getting all this to work!
So after a lot of playing around, and a lot of emails I got it working.
Users of the Vault can now start an SSH session using their own name and it'll drop them into their own share.
So...should I tell you how I did it? Ok..lets start!
Add Users to SSH
First install a few packages
ipkg install coreutils adduser diffutils nano bash
edit /etc/passwd
nano /etc/passwd
For each user that you want to have ssh access, change the line that looks something like this:
joeuser:x:502:502:Linux User,,,:/:/bin/nologin
to something that looks like below
joeuser:x:502:502:Linux User,,,/:/share/1000/joeuser:/bin/sh
For more information on the format of the passwd file look here
Note: the joeuser in /share/1000/joeuser:/bin/sh is a share name that will become the home directory for that user.
create the script below and name it restore-etc-files
place it in /share/1000/
#!/bin/sh
save_to=/share/ 1000/Documents/ saved-etc
mkdir -p ${save_to}
cp -pf /etc/passwd ${save_to}
cp -pf /etc/group ${save_to}
Make the restore-etc-files executable
chmod +x /share/1000/restore-etc-files
Create a file called "shells" and place the following two lines in it.
/bin/sh
/opt/bin/bash
Save shells in /etc
edit the /etc/init.d/rcS and add to the bottom before the exit 0
saved_etc=/share/ 1000/Documents/ saved-etc
[ -e ${saved_etc} /passwd ] && cp -f
${saved_etc} /passwd /etc/
[ -e ${saved_etc} /group ] && cp -f
${saved_etc} /group /etc/
Once all is set, ssh onto the MV2 and re-set the passwords for the users you want to have SSH access.
passwd username
Once you do this, log out and try to ssh in to your MV2 with the username you just set the password to.
I would like to thank the folks over at http://nslu2-linux.org/ for maintaining all the software that makes hacking the MV2 so fun and easy. I would also especially like to thank Brian Zhou for creating the scripts/code (and for the most part this how to) and most of all helping me through countless emails getting all this to work!
Subscribe to:
Posts (Atom)