[ARCHIVED THREAD] - OK Linux Guys (Page 1 of 2)
Posted: 3/20/2007 3:14:39 PM EDT
|
I've made the switch... I just installed Ubuntu 64bit desktop I want to run a server on this thing. I have 4 HDDs in a Raid 5 setup so thats 1.36 Tb and 1 300 Gb HDD that the OS is on. Here is what I want to do. Have stuff stored on the raid array. (how do I know what drive it's storing stuff to in linux? There aren't any drive letters... ) I want to set it up so people can login from any windows computer without needing to use any ftp software. just search for my computer on the network and click on it. And you'll be prompted for a user name and password. Everyone will have their own individual login name and password. I want to also set up an ftp where people can change their user name and password... and those changes will affect the regular way of accessing the server. I want people to be able to see and download everything on the raid array but only upload to 1 file on the raid array. What programs do I need to do this? If you just tell my the programs I may be able to figure out how it set everything up... and of course I'll run here if I have questions... I tried server edition but the console only thing wasn't working for me... I couldn't figure out how to read a readme file... so I went with the desktop... |
|
i don't know much about ubuntu, but on fedora I use putty to connect to my fedora box. port 22 you CAN change the port too on the lan side i setup samba > setup a username and password > setup folders that are shared for users. all you type is \\192.168.1.100 <---- your server IP (i can only get it to work by ip address i guess thats normal) then type in your ip address and it connects. can't help you on the raid part. never done that on a linux distro |
It's impossible. It taunts you. I kid I kid. But seriously forks, read up on the Unix-style filesystem hierarchy, and then you must realize that partitions on drives are mounted in specific places under /. Unlike the DOS/Windows world, drives are not the root of the tree - "/" is. Drives are mounted in certain "mount points" at and under that. For example, say you have 3 drives each with 1 partition each, to keep things simple. drive 1 is mounted at / . Everything under / is stored on drive 1 unless otherwise noted. drive 2 is mounted at /boot/. everyting under /boot/ is stored on drive 2 unless otherwise noted drive 3 is mounted at /swap/. everything under /swap/ is stored on drive 3 unless otherwise noted This is of course completely configurable and will not accurately reflect your system, distribution, whatever. I'm just giving an example, so don't go looking where I just told you to look. so if you copy /file.txt to /boot/file.txt you will have moved it from one drive to another. Other drives are usually mounted by the OS in a special mount directory, such as /mnt/. so your CDROM might start at /mnt/cdrom, the floppy at /mnt/floppy, etc.... As you can see if everything is under the same tree, the user can be ignorant (and rightly so) of how the Unix server is physically configured. You can move /usr/accounting/ to a larger drive and they will never know the difference, for instance. |
|
ok I'm now posting from my server... this looks great now I just have to figure out how to do every thing... so I looked around the fileing system... everything seems to be in the 300 Gb drive ... which is good but it seems I can't see the 1.36 Tb of space there is in the raid array. so I'm guessing that hasn't been partitioned or formated or whatever needs to happen so I can access it... so the question is .... How do I do that? I'm going to bed now... I'll be working on this all tomarrow |
|
update... It seems linux doesn't like my bios raid set up... disabled that. reinstalling linux in the hopes that it will mount all 5 hard drives correctly and I won't have to manually edit things to make it work. downloading some sort of linux software raid ... I've heard mdadm is good... but that's not a gui... and since I'm a windows native... I want a gui interface... you guys have any suggestions? I'll figure out how to run this as a server latter... right now the goal is recognizing the HDDs are there and setting up the raid |
helpful and correct until it got to raidtab file... this file does not exist to be modified I'm using mdadm to make the raid... I've tried once and got... sudo mdadm --create --verbose /dev/.static/dev/md0 --level=5 --raid-devices=4 /dev/sda /dev/sdb /dev/sdb /dev/sdd mdadm: layout defaults to left-symmetric mdadm: chunk size defaults to 64K mdadm: size set to 488386496K mdadm: failed to open /dev/sdb after earlier success - aborting there seems to have been some sort of error... now I'm trying to figure out what went wrong I figured out what's wrong I had 2 sdb ... so now how do I start over?sudo mdadm --create --verbose /dev/.static/dev/md0 --level=5 --raid-devices=4 /dev/sda /dev/sdb /dev/sdc /dev/sdd mdadm: layout defaults to left-symmetric mdadm: chunk size defaults to 64K mdadm: /dev/sda appears to be part of a raid array: level=raid5 devices=4 ctime=Wed Mar 21 17:04:01 2007 mdadm: /dev/sdb appears to be part of a raid array: level=raid5 devices=4 ctime=Wed Mar 21 17:04:01 2007 mdadm: size set to 488386496K Continue creating array? y mdadm: array /dev/.static/dev/md0 started. looks to me like it only did sda and sdb.... am I still doing something wrong? I think it's ok... |
|
IT works! huzzah! ok the Raid is working... now to file sharing I looked into samba so far I can't get it to let me access anything from another computer. I also can't find anywhere where multiple logins could be set up. I need some sort of ftp software that has this functionality: running a server in ftp and in windows file sharing allows many users to login and change there login info allows file permissions to be set differently for each user and of course can run in ubuntu linux... this means has a gui... command line only is not my thing. If I can't get that then give me 2 programs... one for the ftp and one for the windows sharing. I'd have people login to the ftp and change their info... then manually change the window sharing... There has got to be a way to share the passwords between the 2 ... |
|
In order to have multiple logins from which Windows Machines can access your server, you will need to have the accounts on your Linux box. To find out how to add users try typing 'man adduser' or 'man useradd' (depending on which version is installed). Once you have created the users, you will need to edit the configuration file for Samba to allow for access to home directories over the LAN. This file will be /etc/samba/smb.conf and will have all the options available to you. You will just need to uncomment (remove the # from the beginning of the line) anything that applies to your setup. Some of the key things you will need to change are the Workgroup name and who is allowed to access Samba Shares. A quick google search on Samba Configuration will get you started. Good Luck! |
|
I had to go through command line to set up the raid... it was painful. But I figured it out... after much searching for what the commands should be... It's difficult to do things when you don't know how to open a program. and don't understand the help files the command verbose was in the creation of the raid array... I still have no clue why or what it did... I was in help chat... and here's a sample of the conversation: Helper: open a shell Me: what's a shell? so... this is the level of competence we're dealing with... |
You need acl support for that : sudo apt-get install acl. Then you'll have to mount the filesystem with acl support, add acl to the line for your / filesystem in /etc/fstab; something like this: # /dev/hda3 UUID=07456b5b-4de9-4112-99c8-8b29a57b035a / ext3 defaults,errors=remount-ro, acl 0 1 Or just "sudo mount / -o remount,acl" if you want to use acl on your / filesystem without rebooting. Then you can use setfacl to set file permissions and set getfacl to view them.
I have no idea it this can be done in a gui. |
Somewhat. From man 5 fstab The sixth field, (fs_passno), is used by the fsck(8) program to determine the order in which filesystem checks are done at reboot time. The root filesystem should be specified with a fs_passno of 1, and other filesystems should have a fs_passno of 2. Filesystems within a drive will be checked sequentially, but filesystems on different drives will be checked at the same time to utilize parallelism available in the hardware. If the sixth field is not present or zero, a value of zero is returned and fsck will assume that the filesystem does not need to be checked. Hence, it should be /dev/md0 /mnt/raid ext3 defaults errors=remount-ro, acl 0 2 Try with mount /mnt/raid -o remount,acl first. |
|
Log in as root ('su -')... No root... No edit /etc/fstab (or most other system files - it's like 'Administrator' on Windows, but stricter - UNIX/Linux won't pop up a box that says 'You need to be logged in as root, enter your password' like MS does - you are expected to know that what you are doing requires you to be root.)... If you are root, then you need to change the file permissions on /etc/fstab - 'chmod /etc/fstab u+rw' (Which means change the file permissions for the owning user (eg root) to read-write, but don't change group or everybody permissions. 'man chmod' for more info on that) |
|
I am having similar problems running the same exact kind of server (ubuntu) but on a PIII with a much smaller HD. I used Putty and logged into the server. I then installed samba. I created a windows network (i still cant map a drive, for some reason....) I can see the server from both the desktop and laptop, yet when I try to access it, it requires a username and password. Ill post my config files in samba when I get home.....but i am wondering how to determine a password for a user??? I dont think i ever set one up and it is asking me to enter one. |
|
Dave A I looked at proftpd it isn't a gui I couldn't find any tutorials to setting stuff up I don't have the slightest idea how to work it... I don't even know how to uninstall it I need an FTP software that 1 is a gui 2 will let me runa server 3 maintain a list of users that can login and change their info If it isn't a gui or so dumbed down that a windows user can easily figure it out.... then it isn't for me |
Yeah I can't find anywhere in samba where users and passwords are set up... I'm on a college campus and my laptop can see the server in my room... but when I go somewhere else on campus I can't see it. I can't access it in my room... it prompts for a user name and password and since I can't find anywhere to set that up in samba... I'm stumped... |
|
arrgggg why are the various help, man, info files so UNHELPFUL I need examples dang it! like man chmod ... wasn't helpful at all... it basicaly said you can use this to change file permissions to this that and the other thing... but no example... so I'm left where I started knowing it can be used but having no Idea how to use it. |
As a start, try "sudo smbpasswd -a <user name>" You'll have to edit /etc/samba/smb.conf, this can be a start: [serier] <- name of share path = /mnt/raid1/serier/serier <- actual path write list = <user name> browseable = yes valid users = < user name> There is numerous examples in /etc/samba/smb.conf. You'll have to restart samba each time you edit /etc/samba/smb.conf, try "sudo /etc/init.d/smb restart". |
|
why is it so hard to find a gui for this stuff? I got Ubuntu so I could do stuff IN A GUI! If I wanted to learn all this command line stuff I wouldn't have Ubuntu... By the way that fstab edit earlyer unmounted my raid... I just remounted it... if when I restart it doesn't remain mounted... I'll have to remove it... |
|
Ubuntu is so revolutionary because it is basically the start of Linux going GUI and is able to compete with MS on a practical user basis. Ubuntu is not that old......so the Linux community just started going this route. GUI aps are slowing coming along, but it goes against every fiber of the Linux open source community's being... |
|
I am getting really frustrated with this... this should be easy... a no brainer... but it's not at this point I'm starting to contemplate loading up WIN 2000 Pro instead. The reason for a gui is so I can press a button that says mount drive... and it does and it edits all the text files for me all in a fraction of a second. Instead of Hours sifting through lists of files trying to find the one I need to edit. then another hour editing it. then another fixing what you screwed up because you edited something wrong. In a gui interface to should take me 15 minutes to set up a server. not the days it's taken me to get to this point... which is no file sharing working at all... I'm giving up for now untill someone can give me a step by step Share files set up users with only access to shared files set up file permissions for each individual user I'll give it a few day's maybe I can find some who knows what they are doing who can come sit next to me and tell me what to do. unless this gets easier I'll be running back to windows... |
you wont get a good GUI in linux becuase a GUI slows down anyone who knows WTF they are doing. if you would RTFM you will learn. all of my linux boxes never even HAD a monitor hooked up to them after i got through initial install. i did everything remotly via SSH. for example, you complained earlier about the "man chmod" not telling you what you need to know. BULLSHIT.
there you go. everything you need on chmod. thats how i f'ing learned how to use linux. RTFM. if you need someone to sit next to you and hold your hand you shouldnt be using linux. if your not willing to learn, to teach yourself! then quite complaining and install windows. you obviously are not willing to learn how to use a command line to and will not be happy until everything is dumbed down for you. |
|
Wow... Ok for future reference Legonas is an ass He gave good info then went all bitchy and the man chmod had about 1/4 that info But I figured it out... you know how? by looking online... I haven't figured it all out... I'm still in the dark on how to change the permissions for a specific user. I can do it for all users but not a specific one yet. This day 5 of working with linux after never seeing a command line interface in my entire life... not even DOS so Excuse me if I rant a little and step back from it for a bit. |
try www.linuxquestions.org It's the ARFCOM of linux. |
|
for my friend also trying to figure out samba... I found this on the ubuntu forum file sharing how to oh quick how do I find what my IP is on this thing? ... found out ip addr |
|
welp, i thought i was gonna get it going. I looked at the wiki that you posted and logged onto the server via Putty. Stopped Samba. Then tried the very first command: sudo gedit /etc/samba/smb.conf Got this instead of opening the file: cannot open display. Anyone: wtf? I could open it any other time. Ill try restarting Putty.... ETA: didnt work. help? |
gedit is graphical. if you're logging in with putty you need to use vi try sudo vi /etc/samba/smb.conf but you want to read up on how vi works, first. |
|
Ok I've got it working sort of... In my room... the server(Relativity) is hooked to the schools network my laptop(Tachi) is also hooked to the schools network While there I can from Tachi see Relativity and login and browse the shared file. When I take Tachi to our Student Union Building... I can no longer see Relativity. I'm told it is a subnet issue. I need to find out how to make Relativity seen Campus Wide. any ideas? Also legonas(the ass) mentioned SSHing into his machine... This strikes me as an ideal way to setup new users... I'll have to do it for them... but I can let them type in their own password with out me needing to know what it is. So now I'm of to figure out how to do that... anyone have any suggestions? |
Are you sure they are not using static IPs? Not sure if this would affect your ability to access the server if this was the case |
|
static IPs would only make it easier to see it... I'm pretty sure they are using static IPs ... I just searched for the IP address... and it was able to find that Edit: I can find it using the IP but can't log in OH OH look at this Ubuntu guid.org |
|
update: Samba is set up SSH is set up I can SSH in ... make an account and set its password code
I can see the computer and access it any where on campus... BUT only with the IP address I was told to install winbind to make the name (relativity) bind to the IP address so the name can be searched for and found by windows machines. code
I've done that but still can't find it by its name I don't think it's a problem with the schools network... I can set up windows sharing on my other windows machine and see it's name anywhere on campus... |
|
Archaic style tag... As I need to finish doing a Ubuntu server. Going to use light footprint + httpd = LightTPD (pronounced lighty) for the webserver instead of Apache. |
from teh samba guide...i think this is what you need. ive never used samba. there is also a web based way to configure it A Basic Samba Configuration File
Enabling SWAT
|
|
I haven't used Freebsd 4.2 stable for many years. Pretty much you need to tell the OS everything you need to do or want to do, which is why in many ways is "securer" than Windows. If you are using XP Pro (the most secure of all the Windows versin I have used) many times when you do something it pops up, "ARE YOU SURE?" In unix/linux nothing is "turned on" you need to tell the OS EVERYTHING you want and which way. Can I ask you why you what to use linux, gui or otherwise? I have no fresh technical talents to make your journey easier - I wish I could. |
|
If you want a good GUI for doing all this stuff.... go with SuSe. It uses YaST, which has a graphical interface for configuring just about anything. My manager at work, who has NO Linux experience at all was able to install Open SuSe and set up a samba share in no time. |
I had 2 sdb ... so now how do I start over?