Author |
Message |
Jaimec
| Posted on Tuesday, November 06, 2012 - 06:51 am: |
|
Neither TurboTax nor MapSource seem to run under WINE, so I've installed both in my virtual XP machine. The adventure continues! |
Cataract2
| Posted on Tuesday, November 06, 2012 - 08:13 am: |
|
Jaimec, when you say Virtualbox XP you mean Virtualbox with Widows XP running in it, right? (Early morning brain not working.) |
Jaimec
| Posted on Tuesday, November 06, 2012 - 04:12 pm: |
|
Yep, that's what I mean. Sorry for the confusion. |
Jaimec
| Posted on Wednesday, November 07, 2012 - 08:44 pm: |
|
Anyone here ever configure vsftpd for anonymous FTP? (Message edited by jaimec on November 07, 2012) |
Cataract2
| Posted on Thursday, November 08, 2012 - 03:04 pm: |
|
Whoa, bit above my level at this point. What are you trying to do again? Although, a quick search brought me this. Hope it helps you. https://help.ubuntu.com/10.04/serverguide/ftp-serv er.html http://ubuntuforums.org/showthread.php?t=518293 |
Jaimec
| Posted on Thursday, November 08, 2012 - 04:13 pm: |
|
I figured out my problem, and it had to do with file and directory "ownership," a concept I'm still learning transitioning from the Windows world to the *nix world. My FTP server on Windows was configured to determine which directories users could upload to, and which they could download from. In Linux, this is determined by the permissions you assign to the directories. Also, if you want to allow someone to "cd" into a directory they don't own, then that directory has to have the "Execute" attribute assigned for all users (huh??? Execute?? Really??). Finally got it straightened out and it's working now. *nix sure can be confusing! Well, as someone pointed out: "Two things came out of Berkeley in the 60s: Unix, and LSD. Coincidence?" This weekend: Samba!! |
Reepicheep
| Posted on Thursday, November 08, 2012 - 04:48 pm: |
|
quote:Also, if you want to allow someone to "cd" into a directory they don't own, then that directory has to have the "Execute" attribute assigned for all users (huh??? Execute?? Really??).
Why waste an otherwise perfectly good bit? You didn't even mention the sticky bit. That'll really bake your noodle. |
Cataract2
| Posted on Thursday, November 08, 2012 - 04:51 pm: |
|
Ug, Samba. When you get it working it works amazing. It's just getting to the working part. |
Hootowl
| Posted on Thursday, November 08, 2012 - 05:26 pm: |
|
NTFS (the MS file system) also has an owner attribute. It isn't exclusively a unix thing. |
Reepicheep
| Posted on Thursday, November 08, 2012 - 06:46 pm: |
|
This is a little out of date, but not much. My notes from my last Ubuntu install and update... # Things done since install: # Install emacs sudo apt-get install emacs # Updgrade packages sudo apt-get upgrade # Turn on unattended ugrades for security patches sudo apt-get install unattended-upgrades # Set up the firewall sudo ufw enable sudo ufw allow 22 sudo ufw status verbose # Set up apache sudo apt-get install apache2 # Enable SSL sudo a2enmod ssl sudo /etc/init.d/apache2 restart # open ports sudo ufw allow 80 sudo ufw allow 443 # Set up samba as per manual: sudo apt-get install samba # Edit /etc/samba/smb.conf workgroup = MOUSENET security = user [share] comment = Ubuntu File Server Share path = /srv/samba/share browsable = yes guest ok = yes read only = no create mask = 0755 sudo mkdir -p /srv/samba/share sudo chown nobody.nogroup /srv/samba/share sudo service smbd restart # set up samba to go through the firewall # Interesting... this works on workstation, but not on server addition, # whch sounds opposite of what it should be.. sudo ufw allow Samba # if that doesn't work, what it should do is: # sudo ufw allow 137/udp # sudo ufw allow 138/udp # sudo ufw allow 139/tcp # sudo ufw allow 445/tcp # Set up cups to print (ouch) sudo cp /etc/cups/cupsd.conf /etc/cups/cupsd.conf.original emacs /etc/cups/cupsd.conf # # Change: # Listen localhost:631 # to: # Listen 631 # # Change: # Browsing Off # to: # Browsing on # # Change: # BrowseAddress @LOCAL # to: # # BrowseAddress @LOCAL # # Change: # Allow all # to: # Allow all # # Within the "admin section" it should look like this # Restrict access to the server... <location> Order allow,deny Allow localhost Allow @LOCAL </location> # Restrict access to the admin pages... <location> Order allow,deny Allow localhost Allow @LOCAL </location> # Then allowed port 631 TCP and UDP through the firewall sudo ufw allow CUPS # And kick start it to reload configuration file sudo /etc/init.d/cups restart # Then fussed around with admin panel with web client # URL: https://10.0.0.3:631/ (with your IP address of course) # If you hook up your printer first, it does an ok job of autodetecting # the driver and offering it in the drop down. # Until it looked like I got things working # On the winxp side of the house, add internet printer and use the URL: # http://peepicheep:631/classes/BasementLaser # where BasementLaser is what I named my printer... you can use # lpstat -a from a command line on the unix box to get the name you used. # We have a netbook with windows 7 starter, which doesn't allow IPP (the # cups protocol), so we need samba printing enabled. # Simply uncomment the following section in smb.conf.. sudo emacs /etc/samba/smb.conf # uncomment the "load printers" line load printers = yes # comment out the CUPS printing section # printing = cups # printcap name = cups # and uncomment the printer section [printers] comment = All Printers browseable = no path = /var/spool/samba printable = yes guest ok = no read only = yes create mask = 0700 # That seemed to work... # Got https working (painfully) floggin with instructions from: # http://www.tc.umn.edu/~brams006/selfsign_ubuntu.ht ml # Set up a second ext3 hard drive I have in the system for auto mount sudo emacs /etc/fstab # Added line: /dev/sdc1 /media/SimpleDrive ntfs-3g defaults 0 0 # Then ran: sudo mkdir /media/SimpleDrive sudo mount -a # Now make that shareable to the PC's in the house. sudo emacs /etc/samba/smb.conf # And add the following section [share] comment = Peepicheep Shared Public path = /mdeia/SimpleDrive browsable = yes guest ok = yes read only = no create mask = 0755 # Bounce the server to pick up the changes. sudo /etc/init.d/smbd restart # Now I want my ssh and web server available to the internet as a # whole. Don't do this unless everyone on your system will be using # STRONG passwords, and unless you know what you are doing securing # ssh and https. Otherwise it's just not worth it. # # Anyway, now I go to my netgear router (nothing special) and tell it to # always give the IP address of 10.0.0.10 to this server. This is done on their "LAN IP Settings" tab. # To find the mac address of your unix box, use: ifconfig /dev/eth0 # Then stuff those mac address values into the router page. # Then reboot your unix box and see if it picks up the right address sudo shutdown -r 0 # (yes, I know you could just do it with ifconfig) # Latest version of workstation was missing ssh server sudo apt-get install openssh-server sudo ufw allow openssh # Put a ssh listener on port 8000 (forwarded by my router) sudo emacs /etc/ssh/sshd_config # Added "Port 8000" after the Port 22 line sudo /etc/init.d/ssh restart sudo ufw allow 8000/tcp # Put a command line MP3 player on sudo apt-get install mpg123 # Put audio drivers on sudo apt-get install alsa-utils sudo apt-get install alsa-oss # Not sure this one was necessary, I was churning # Put tools on for development environment, and so CPAN can build sudo apt-get install build-essential sudo apt-get install autoconf automake libtool gdb cpan > (no to manual config) > make install > install Bundle::CPAN # install PHP (not tested yet, what I did so far) sudo apt-get install php5 sudo /etc/init.d/apache2 restart |
Jaimec
| Posted on Friday, November 09, 2012 - 09:49 am: |
|
service apache2 restart Seems to work just fine for me on my system... |
Jaimec
| Posted on Saturday, November 10, 2012 - 10:59 pm: |
|
Got a bit side-tracked today trying to figure out how to let the Virtual XP machine access my USB thumb drive. Everything is possible, but nothing appears to be easy... |
Cataract2
| Posted on Saturday, November 10, 2012 - 11:30 pm: |
|
Are you using Virtualbox? If so you need to download the extensions for your version. Also, you need to install the guest additions in the window XP is running in. It's under Devices. Once done you can right click on the USB icon in the bottom right of the XP window and select the USB device you want to use in XP. |
Jaimec
| Posted on Sunday, November 11, 2012 - 01:15 pm: |
|
Yup... found all that (eventually). They sure don't make it easy!! |
Cataract2
| Posted on Sunday, November 11, 2012 - 02:07 pm: |
|
No, they don't. Advantage is once you know how. It's easy to setup later should you need to reload. |
Reepicheep
| Posted on Monday, November 12, 2012 - 01:04 pm: |
|
They must have fixed the apache2 service entries. Or maybe I was just trying apache and by the time I found the actual service I just used the restart script directly... |
Jaimec
| Posted on Thursday, November 15, 2012 - 07:59 pm: |
|
Well THAT was painful. Canonical released an upgraded kernel yesterday. After I applied it, I lost my network connection (it didn't have the driver installed). Had to go through all the motions of recompiling the kernel and including the proper NIC driver again. At least this time I knew what was wrong. Gotta open a bug with them now. |
Jaimec
| Posted on Friday, November 23, 2012 - 11:25 am: |
|
STILL haven't gotten around to installing/configuring Samba yet. Just finished upgrading my phone to ICS and rooting it, though. Always something... |
|