Hot answers tagged

34

Network Setup Connect both the desktop and laptop to the WiFi router using standard setup. To check that both computers are connected, test that you can get on the Internet from both computers. Optional: In the router setup, see the local IP addresses assigned to the desktop and the laptop. These may look like 192.168.0.100 or 192.168.1.199. If an option ...


26

I think you need to also pass the windows share name as well as confirm that you've created /media/Data sudo mkdir /media/Data Use something like smbclient -L //172.29.32.184 to list the shares, then append the share name to your mount sudo mount -t cifs -o username=raghu //172.29.32.184/sharename /media/Data/ Note- If you receive the error: wrong ...


25

I had this exact problem. It turned out IT had installed some old version of VMWare tools with non-functioning vmhgfs kernel module. My solution was to run the configuration with the clobber-kernel-modules setting to overwrite the existing vmhgfs module. sudo vmware-config-tools.pl -d --clobber-kernel-modules=vmhgfs The -d selects all the defaults for ...


24

A Quick Way to Share Folders in Ubuntu 11.10 Objectives: Share a folder in Ubuntu and access it from Windows To get started, right-click on the folder you wish to share and select ‘Sharing Options’ When prompted to install Samba services, do it. After installing Samba services, click ‘Restart session’ Then click ‘Create Share’ to ...


18

First of all: if you want to share files, there are several different protocols of interest: Samba (SMB), NFS, FTP, SSH/sFTP/SCP. Samba is the easiest if a Windows computer is involved, but you can use it also between two Ubuntu (and even Mac OS) machines. SSH is a nice thing for Ubuntu, because it's a very powerful tool - e.g. running rsync over SSH is a ...


17

You can move to a given directory with cd, then serve the current directory as a web server with the command: python -m SimpleHTTPServer On the other machine go to the address http://server-ip:8000/ where "server-ip" is what you see when you do "ifconfig" on the source computer, under "inet addr:". For example, if the output of ifconfig on the source ...


16

Use NFS to share file between systems if there is no windows involved, it is so easy. Install nfs-kernel-server and nfs-common on the computer that has the files to be shared. These can be installed in the Software Center, or however you prefer to install packages. You can install them on the command-line with: sudo apt-get update && sudo apt-get ...


16

The important thing to remember is that Desktop and Server are the same underlying OS, with different packages & configuration In Windows that isn't true (tx to @jay-bazuzi) This is a step-to-step answer. Install samba sudo apt-get install samba samba-common Install some dependencies for Configuration tools sudo apt-get install python-glade2 ...


15

Have you installed Samba? sudo apt-get install samba If so, then you need to set a Samba password: sudo smbpasswd -a USERNAME. This command will generate a prompt for a password (substitute USERNAME with your username). Set a folder to share mkdir /home/USERNAME/sharedfolder Make a backup copy of your smb.conf file: sudo cp /etc/samba/smb.conf ~ Open ...


15

General idea [source] The basic idea is to just start Dropbox from the command-line using an alternate home directory. This will create another Dropbox icon, and another Dropbox folder, which has to be in some other place from the original one. The two Dropbox folders will both be called Dropbox (this cannot be changed), but you can distinguish ...


14

Share files between 2 ubuntu computers if you have two computers running Ubuntu on the same network, it could be an good idea to use openssh to share files between them. sudo apt-get install openssh-server openssh-client Then you need to figure out the ip of each the computer you want to connect to. Most of the time it’s something like 192.168.1.2 or ...


14

Since you want a GUI based server (Which is an Ubuntu Desktop transformed into a awesome server ;) ) then just do the following steps before proceeding: Update everything. Make sure you have already updated and upgraded the system sudo apt-get update && sudo apt-get upgrade This way we are on the same page. Make sure your wireless card is ...


12

Configure create mask and directory mask in /etc/samba/smb.conf with the desired permissions. from /etc/samba/smb.conf: # File creation mask is set to 0700 for security reasons. If you want to # create files with group=rw permissions, set next parameter to 0775. ; create mask = 0700 # Directory creation mask is set to 0700 for security reasons. If you ...


12

I think you need to use the following parameters: # I changes the permissions to rw-rw-r-- # You should be able to change them to 775 if you need the files to # be executable create mask = 664 force create mode = 664 security mask = 664 force security mode = 664 # I set the SGID flag here as I thought this is what you wanted # You could change to 0775 ...


11

Method 1: You can use SAMBA for file sharing(but samba is mostly used to share files between linux and windows machines) In terminal type the following gksudo gedit /etc/samba/smb.conf Add the line usershare owner only = False to the [global] section. Go to Places>>Computer. Right click the folder you want to share and choose Sharing Options. Check the ...


10

Samba has its own layer of access control for each share. There are two basic options read only: by default every share is read-only, regardless of filesystem permissions, writeable: in order to allow write access you should set writeable = Yes. This should be enough to solve the problem. But if you'd like to learn more about Samba permissions, like how ...


9

Apache / Lighttpd Use a web server like apache or lighttpd, though those are a bit hard to setup if you never did that before. You can enable directory listings in their configuration, which allows the users to browse and download the files. Python's SimpleHTTPServer As I found on Simple Http Server support, Python ships a simple HTTP server - you don't ...


9

The directory /var/lib/samba/usershares is set up so only root or members of the sambashare group can read or write to it. drwxrwx--T 2 root sambashare 4096 Mar 25 2012 usershares That you can't access it (try it by cding to it) suggests to me that you're not in the sambashare group. You can test this with id $USER and assuming usershares is not in the ...


9

assuming you have installed samba, on the command line, you can explicity list all shares on a given host with this command smbclient -L <hostname> -U cashew -U is the username option This command might be helpful, when nautilus might not list all hosts and shares that are in fact available. Connect to a SMB share with smbclient //server/share ...


9

I think you might be able to accomplish what you want using network block devices (NBD). Looking at the wikipedia page on the subject there is mention of a tool called nbd. It's comprised of a client and server component. Example In this scenario I'm setting up a CDROM on my Fedora 19 laptop (server) and I'm sharing it out to an Ubuntu 12.10 system (client)...


8

You can announce services by using the avahi service. To announce a service, you have to add a service description file in the /etc/avahi/services directory. For example, to announce an sftp share, create a file sftp.service with: <service-group> <name replace-wildcards="yes">SFTP on %h</name> <service> <type>_sftp-ssh....


8

You may suffer from bug #34813, where access to shares on Windows systems is broken. Access to files on Ubuntu hosts is not affected. Troubleshoot Shared Folders in Virtual Box To investigate if your shared folders are setup correctly you may go through the following steps: Install the latest release of Virtual Box. Make sure Guest Additions meet your ...


8

The short answer is yes, you can set up file sharing with Samba. See https://help.ubuntu.com/14.04/serverguide/samba-fileserver.html There's also a beginner-friendly tutorial here http://www.howtogeek.com/74459/how-to-create-samba-windows-shares-in-linux-the-easy-way/. If you search for Samba in the Ubuntu Software Center, you'll find a nice little GUI ...


8

Create a Samba share with Nautilus This is probably the easiest way. In nautilus right click on the hard drive in question In the resulting context menu click Properties There select the tab Share Check the box Share this folder Optionally you can check any of the other boxes Click Create Share The first time you do this, you will be asked if you want ...


8

Yes, already posted in the comments as a verified solution, but posting as an answer anyway. Purging should indeed remove the configuration files as well, yet the configuration of the Samba server is tracked by the package samba-common, not samba. Yes, it's a bit confusing. So, try purging and re-installing both packages like this: sudo apt-get purge ...


8

The new nautilus in 13.04 (raring) no longer shows a place to enter connection credentials. This makes it really hard to connect if you don't know the URI syntax. You can find help for the SMB URI syntax at Wikipedia. Basically, use one of these URIs: smb://[<user>@]<host>[:<port>][/[<path>]][?<param1>=<value1>[;<...


8

You are right, SMB is something coming originally from Windows. But nowadays it works great with Linux and Mac as well. Since speed is important, you have to keep in mind: SSH is a great thing for everything connected to Unix/Linux and networks, but it is really slow compared to NFS, FTP or SMB. NFS is the fastest, but it is not encrypted. Do not use any ...


8

NOTE: The question at the time addressed Email transfer (per comments from the OP on the question). This answer is written to address that question as it was, in that email is the transfer method available here. When using email to transfer files between systems, you can't 'preserve' all the file permissions as you want them to be when just sending the ...


7

Access control lists The straight answer is access control lists (ACLs). Yeah, you can find a counterexample, but they're good enough in practice (unlike mere group writability which requires that users think about it all the time). What they do require is that the system administrator (root) define the groups, if you want files to be shared only by a named ...



Only top voted, non community-wiki answers of a minimum length are eligible