| CD, Floppy, and Zip drives mount and CDs play... yay! |
[10 Aug 2005|05:18pm] |
Yesterday I did as I said... using similar methods to the previous CD-ROM mounting set up, I got the floppy and zip drive in order.
Added lines to /etc/devfs.conf (floppy was done the previous day)...
Code:
# Allow members of the group mounters to mount the IOMEGA zip drive.
own /dev/afd0 root:mounters
perm /dev/afd0 0660
Changed the /etc/fstab file...
Code:
/dev/fd0 /floppy msdos rw,noauto 0 0
/dev/fd0 /usr/home/geekers/floppy msdos rw,noauto 0 0
/dev/afd0s4 /zip msdos rw,noauto 0 0
/dev/afd0s4 /usr/home/geekers/zip msdos rw,noauto 0 0
... changed the group of /dev/fd0 and /dev/afd0s4 to mounters instead of operators, made directories /usr/home/geekers/floppy and /usr/home/geekers/zip, changed permissions on all related directories to 0666, and created links to the devices on the KDE Desktop. I did it an easier way this time (instead of typing up the file myself) -- I right clicked on the desktop and selected "Created New > Link to Device > Floppy Device" and later ZIP Device, and then created my mounting shortcuts.
I also spent a while installing gstreamer, all its plugins, and all its dependencies, as well as, Amarok. Amarok comes equipped to contact Audioscrobbler. That's pretty cool. I'm not sure I have everything set up for Amarok to run properly, but that will be played with at another time. I can currently play avis, xvids, and mp3s with KMPlayer, but only if they are local. My next step with that will be to get them working from files on the network.
I also want to get the Optihex set up as a samba share so TsNewHotness can reach it. :D -- but that will be done in at some undetermined time in the future.
Today I shut down the beast in order to move that pesky sound cable from the motherboard unto the card. (I plugged the end that was dangling around the case into the drive yesterday, but forgot the other end was in the motherboard since I didn't have a sound card the last time I had it plugged in. Windows uses it for jack shit these days.) Oops. Yeah, now CDs can play directly instead of via the wav file on Amarok that it constantly (and annoyingly) buffers or however I had it playing on KMPlayer rather uselessly before... *bad memory*
Before the reboot I located the sudoers file (/usr/local/etc/sudoers -- but don't vim it, use the visudo command!) to uncomment a few lines...
Code:
root ALL = (ALL) ALL
%wheel ALL = (ALL) ALL
Now I can sudo to shut down -- huzzah! That's all for now. I should shower sometime, but that won't happen until the cat moves. :p
Peace, geek. ^_^
|
|
| geekers the FreeBSD n00b |
[08 Aug 2005|06:18pm] |
As of today, I have decided to use this journal -- for my dive into FreeBSD. It will be kind of boring for others to read, but it will be helpful to me, and that's all I care about. :p If you want to read my regular journal, you'll find it on LiveJournal (where it has always been).
So, starting now (only because I can't recall what I did in previous days... or hours for that matter), here's a few things I have done/learned.
I'm trying to mount my CD-drive, and came across this helpful article -- User mounting of Removable Devices on FreeBSD 5.3, and followed along, as such (in short):
Granting mount/umount access to all users. * Added the line vfs.usermount=1 to the /etc/sysctl.conf file. This option will be set within the kernel at next system boot. * Enabled it immediately by running the command sysctl vfs.usermount=1 as root.
About adding groups: ... teh manual sez. So I made a group called mounters and added myself.
Code:
# pw groupadd mounters
# pw groupmod mounters -M geekers
# pw groupshow mounters
mounters:*:1002:geekers
I changed permissions on /dev/acd0 from root and operator to root and mounters with the command chgrp mounters /dev/acd0 (I add this bit of knowledge to my brain next to permission-changing commands chmod and chown.)
Once again, the command issued by root changing the device owner and permissions will be reset the next time the system is restarted, in order to make the change permanent, the following entries were added to the /etc/devfs.conf file.
Code:
# Allow members of the group mounters to mount the floppy disk.
own /dev/fd0 root:mounters
perm /dev/fd0 0660
# Allow members of the group mounters to mount the cdrom.
own /dev/acd0 root:mounters
perm /dev/acd0 0660
In this file I came across another lil helpful thing I was planning on adding/doing.
# Commonly used by many ports
link /acd0 cdrom
A regular user can now issue the commands:
mkdir ~/cdrom
mount -t cd9660 /dev/acd0 ~/cdrom
umount ~/cdrom
... or maybe not. The next time I start the system, all members of the group mounters should be able to mount and unmount the CD-ROM and Floppy Drive to directories that they own. I have set the permission to value 0666, which should allow all users permission to mount a device, but it doesn't seem to be working yet. I'll be off go Googleland again for now. I'll likely be back soon to edit this post.
Edit: So my main problem was not creating/owning the cdrom directory that I was planning on mounting to, but more importantly there were some mixups as to things that figured out /usr/home/geekers was the same as /home/geekers and things that didn't. Specify the former, and there will be less issues.
I continued by adding the line: /dev/acd0 /usr/home/geekers/cdrom cd9660 ro,noauto 0 0 to the /etc/fstab file, and creating the following file on the KDE Desktop:
Code:
cat << EOF >> /usr/home/geekers/Desktop/CD
[Desktop Action Eject]
Exec=kdeeject %v
Name=Eject
[Desktop Entry]
Actions=Eject
Dev=/dev/acd0
Encoding=cd9660
Icon=cdrom_mount
MountPoint=/usr/home/geekers/cdrom
ReadOnly=false
Type=FSDevice
UnmountIcon=cdrom_unmount
X-KDE-Priority=TopLevel
EOF
Tomorrow I'll create the mount for the floppy drive. I also need to work on creating samba shares for the hard drives and (oops) need to connect that pesky wire that's keeping me from playing audio cds.
Peace, geek. ^_^
|
|
| Please note... |
[05 Jul 2003|12:27pm] |
I have this account for the following reason: -To make sure it isn't taken by someone else, causing identity confusion. -To reply to the posts of others if I should feel a need in the future. -To watch for stolen images and copyright infringment from time to time.
Please note that I will NOT be posting in this journal in the foreseeable future, though that prospect is not ENTIRELY unlikely.
Feel free to read my LiveJournal and/or add me as a friend there. You are also free to check out my official personal domain. ^_^
Peace, geek. ^_^
|
|