Editing
Accessing DFS
Jump to navigation
Jump to search
Warning:
You are not logged in. Your IP address will be publicly visible if you make any edits. If you
log in
or
create an account
, your edits will be attributed to your username, along with other benefits.
Anti-spam check. Do
not
fill this in!
Sometimes you will need to access DFS (Distributed File System) to install software or upload files to a class's "dropbox". You can connect to Rose-Hulman DFS through Samba (smb). (As of July 10, 2020, sftp no longer works, so you will have to use Samba.) To access the Rose-Hulman DFS, you will need to be on campus. If you are off campus, you will need to use the '''GlobalProtect VPN'''. '''Please see [[Accessing the Off-Campus VPN]] for more details.''' = Samba = You will need to have <code>smbclient</code> installed in your repo's packages. == Through the terminal == We will be using the "smbclient" utility to download from the DFS server. This is a command line utility. Open a terminal and type the following (substitute ROSE-USERNAME with your username): <code>smbclient //rose-hulman.edu/DFS -U ROSE-USERNAME@rose-hulman.edu</code> then press ENTER. Note the '''forward slashes''' instead of the backslashes. If you want to use backslashes in the terminal, note that a single backslash (\) is an escape character. So, to type one backslash (which you can also do), type \\. To type two backslashes, type \\\\. Then type in your password and press ENTER. Wait up to 2 minutes for the <code>smb: \></code> prompt to appear. If it doesn't show up within 2 minutes, try logging out and logging back in again. It may take a few tries (probably because the SMB share doesn't do a good job of responding to connections). Otherwise, try one of the fixes listed here: [[#smb:_.5C.3E_prompt_still_not_showing_up]]. Once you're connected, you can type help and get a list of commands to use. For example, you can use "cd" to move around the virtual file system, "ls" to see what files are available in the current directory, "pwd" to see which directory you're in, and "get" to download a file from the Samba server. Source: [https://help.ubuntu.com/community/Samba/SambaClientGuide#Samba_Client_-_Manual_Configuration Ubuntu Samba Client Guide] == Through a GUI == === KDE === ==== Initial setup ==== Open the Dolphin file browser. On the left hand side, find the "Networks" entry (should have a globe icon). Single click on it. In the list of network options in the middle, double click on "Add Network Folder". Click Microsoft(R) Windows(R) network drive, then click "Next >". In the text boxes that show up, type the following: Name: [any name you want, e.g. Rose-Hulman DFS]. This '''cannot be blank''' because KDE expects this if you want to save the connection in your file browser for easy access later. Server: rose-hulman.edu Folder: dfs Check "Create an icon for this remote folder" if you want easy access to it later. Click "Save & Connect". ==== Logging in ==== Username should be ROSE-USERNAME@rose-hulman.edu (substitute ROSE-USERNAME for your actual username). Leave the domain at WORKGROUP (you don't need to change this). Password is your Rose network password. Click Connect. After a few seconds, inside of Dolphin, you should see a list of folders, including Software. You can now copy and paste files like you would on a normal file browser. = Troubleshooting = Make sure you are on the latest stable version of smbclient first. Check your distro's package repos and cross-reference that with the version from [https://github.com/samba-team/samba/releases] (do not worry about -rc versions). If your distro does not have the latest version in their package repos, download and use the executable from here: [https://github.com/samba-team/samba/releases]. (In the link, don't look for rc releases, just the samba-... ones) === Testparm Error === If you get a message saying <code>/usr/bin/smbclient: Can't load /etc/samba/smb.conf - run testparm to debug it</code>, run <code>sudo touch /etc/samba/smb.conf</code> in a terminal to create an empty SMB configuration. Usually this is not needed, but sometimes smbclient is finicky. Then try connecting to DFS with smbclient again. === No password prompt comes up === ==== Fix 1 ==== '''Make sure to include <code>-U</code>''' in your smbclient command. ==== Fix 2 ==== Try typing in: * <code>/usr/bin/smbclient //rose-hulman.edu/DFS -U ROSE-HULMAN\\[Your RHIT network user name]</code> (or ROSE-HULMAN/[Your RHIT network user name]) This is because ROSE-HULMAN is the "domain" on Windows computers that connects to the internal network. === smb: \> prompt still not showing up === What you can also do is try without the <code>/dfs</code>. Open a terminal and type the following (substitute ROSE-USERNAME with your username): <code>smbclient //rose-hulman.edu/ -U ROSE-USERNAME@rose-hulman.edu</code> then press ENTER. Once you see <code>smb: \></code>, you can now try to get to the dfs folder using <code>cd dfs</code>. Then, if you type <code>ls</code>, a bunch of folders (including Software) should show up. If that doesn't work, your connection to the campus network may be unreliable. Disconnect and reconnect from the VPN or eduroam if on campus. === NT_STATUS_CONNECTION_RESET when downloading files === Example error message: <nowiki>smb: \Software\Linux_MacOSX_Apps\Maple\Maple 2019\> getting file \Software\Linux_MacOSX_Apps\Maple\Maple 2019\Maple2019.0LinuxX64Installer.run of size 1875465688 as /tmp/Maple2019.0LinuxX64Installer.run SMBecho failed (NT_STATUS_CONNECTION_RESET). The connection is disconnected now</nowiki> Your VPN or eduroam connection is unreliable. Make sure you're using <code>openconnect</code> as root in a terminal and not in KDE or GNOME's "Networks" panel (or anything else that uses NetworkManager). I am not aware of other fixes. As far as I know, you can also access the DFS via the web after logging in at https://sslvpn.rose-hulman.edu. This option might have been removed around March 2020 though... = See also = In case you have any issues, please refer to the following pages. This tutorial may be updated depending on user demand. [https://wiki.archlinux.org/index.php/samba SMB - ArchWiki] (relevant sections: 2, 2.5 for specific desktop environment integration e.g. Gnome/KDE/XFCE)
Summary:
Please note that all contributions to RHLUG Wiki may be edited, altered, or removed by other contributors. If you do not want your writing to be edited mercilessly, then do not submit it here.
You are also promising us that you wrote this yourself, or copied it from a public domain or similar free resource (see
RHLUG Wiki:Copyrights
for details).
Do not submit copyrighted work without permission!
Cancel
Editing help
(opens in new window)
Navigation menu
Personal tools
Not logged in
Talk
Contributions
Log in
Namespaces
Page
Discussion
English
Views
Read
Edit
Edit source
View history
More
Search
Navigation
Main page
Recent changes
Random page
Help about MediaWiki
Tools
What links here
Related changes
Special pages
Page information