Create Journals
Update Journals

Journals
Find Users
Random

Read
Search
Create New

Communities
Latest News
How to Use

Support
Privacy
T.O.S.

Legal
Username:
Password:

geekers (geekers) wrote,
@ 2005-08-08 18:18:00
Previous Entry  Add to memories!  Add to Topic Directory  Tell a Friend!  Next Entry

    geekers the FreeBSD n00b
    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. ^_^


(Read comments)

Post a comment in response:

From:
 
Username:  Password: 
Subject:
No HTML allowed in subject
 

No Image
 

 Don't auto-format:
Message:
Enter the security code below.


Notice! This user has turned on the option that logs your IP address when posting.

Allowed HTML: <a> <abbr> <acronym> <address> <area> <b> <bdo> <big> <blockquote> <br> <caption> <center> <cite> <code> <col> <colgroup> <dd> <dd> <del> <dfn> <div> <dl> <dt> <dt> <em> <font> <h1> <h2> <h3> <h4> <h5> <h6> <hr> <i> <img> <ins> <kbd> <li> <li> <map> <marquee> <ol> <p> <pre> <q> <s> <samp> <small> <span> <strike> <strong> <sub> <sup> <table> <tbody> <td> <tfoot> <th> <thead> <tr> <tt> <u> <ul> <var> <xmp>
© 2002-2008. Blurty Journal. All rights reserved.