“UbuntuHelp:AccessingNetwareShares”的版本间的差异
来自Ubuntu中文
小 (新页面: {{From|https://help.ubuntu.com/community/AccessingNetwareShares}} {{Languages|UbuntuHelp:AccessingNetwareShares}} == Introduction == This page shows how to mount a Netware filesystem a...) |
小 |
||
第1行: | 第1行: | ||
{{From|https://help.ubuntu.com/community/AccessingNetwareShares}} | {{From|https://help.ubuntu.com/community/AccessingNetwareShares}} | ||
{{Languages|UbuntuHelp:AccessingNetwareShares}} | {{Languages|UbuntuHelp:AccessingNetwareShares}} | ||
− | |||
− | |||
== Introduction == | == Introduction == | ||
− | |||
This page shows how to mount a Netware filesystem and create symbolic links to it on the User Desktop. | This page shows how to mount a Netware filesystem and create symbolic links to it on the User Desktop. | ||
− | |||
== What is Needed == | == What is Needed == | ||
− | |||
ipx - utilities to configure the kernel ipx interface. | ipx - utilities to configure the kernel ipx interface. | ||
− | |||
ncpfs - a set of utilities to use resources from NetWare servers. | ncpfs - a set of utilities to use resources from NetWare servers. | ||
− | |||
== Mount Netware Filesystem == | == Mount Netware Filesystem == | ||
− | |||
Firstly we need to make the folder to mount the filesystem to. | Firstly we need to make the folder to mount the filesystem to. | ||
− | |||
<pre><nowiki> | <pre><nowiki> | ||
sudo mkdir /mnt/company_fs</nowiki></pre> | sudo mkdir /mnt/company_fs</nowiki></pre> | ||
− | |||
Then we mount the filesystem | Then we mount the filesystem | ||
− | |||
<pre><nowiki> | <pre><nowiki> | ||
sudo ncpmount -S RDI_DBN_FS -U <UserName>.LABS -u <UserNo> -g <GroupNo> -P <NetWarePassword> -c <UbuntuUserName> /mnt/company_fs</nowiki></pre> | sudo ncpmount -S RDI_DBN_FS -U <UserName>.LABS -u <UserNo> -g <GroupNo> -P <NetWarePassword> -c <UbuntuUserName> /mnt/company_fs</nowiki></pre> | ||
− | |||
To make sure that the filesystem is automatically mounted at startup, we need to add the following line to /etc/rc.local | To make sure that the filesystem is automatically mounted at startup, we need to add the following line to /etc/rc.local | ||
− | |||
<pre><nowiki> | <pre><nowiki> | ||
ncpmount -S RDI_DBN_FS -U <UserName>.LABS -u <UserNo> -g <GroupNo> -P <NetWarePassword> -c <UbuntuUserName> /mnt/company_fs</nowiki></pre> | ncpmount -S RDI_DBN_FS -U <UserName>.LABS -u <UserNo> -g <GroupNo> -P <NetWarePassword> -c <UbuntuUserName> /mnt/company_fs</nowiki></pre> | ||
− | |||
== Creating Symbolic Links == | == Creating Symbolic Links == | ||
Create a symbolic (never a hard) link to the mounted netware filesystem and place it in a folder on the user desktop. | Create a symbolic (never a hard) link to the mounted netware filesystem and place it in a folder on the user desktop. | ||
− | |||
<pre><nowiki> | <pre><nowiki> | ||
ln -s /mnt/company_fs/ /home/<UbuntuUserName>/Desktop/CompanyNetwork/company_fs</nowiki></pre> | ln -s /mnt/company_fs/ /home/<UbuntuUserName>/Desktop/CompanyNetwork/company_fs</nowiki></pre> | ||
− | |||
Now, most Companies have a lot of shared drives in Windows, ex P: S: X: etc., that are normally used for say Apps, Users etc. | Now, most Companies have a lot of shared drives in Windows, ex P: S: X: etc., that are normally used for say Apps, Users etc. | ||
− | |||
If required these shares must be made with symbolic links as only one mount to a filesystem can be make at a time. | If required these shares must be made with symbolic links as only one mount to a filesystem can be make at a time. | ||
<pre><nowiki> | <pre><nowiki> | ||
ln -s /mnt/company_fs/FolderToShare /home/<UbuntuUserName>/Desktop/CompanyNetwork/ShareDriveName</nowiki></pre> | ln -s /mnt/company_fs/FolderToShare /home/<UbuntuUserName>/Desktop/CompanyNetwork/ShareDriveName</nowiki></pre> | ||
− | |||
== Netware Password Change == | == Netware Password Change == | ||
− | |||
Most Windows Netware Clients needs to change their passwords every x days. | Most Windows Netware Clients needs to change their passwords every x days. | ||
− | |||
So to make it easy to update your passwords in Ubuntu use this script after changing your Windows Netware Password. | So to make it easy to update your passwords in Ubuntu use this script after changing your Windows Netware Password. | ||
− | |||
<pre><nowiki> | <pre><nowiki> | ||
#!/bin/bash | #!/bin/bash | ||
第53行: | 第32行: | ||
# Script to change netware mounts and restart cups after a | # Script to change netware mounts and restart cups after a | ||
# windows/netware password change | # windows/netware password change | ||
− | |||
ncpumount -a | ncpumount -a | ||
− | |||
gedit /etc/cups/printers.conf | gedit /etc/cups/printers.conf | ||
echo | echo | ||
第61行: | 第38行: | ||
echo | echo | ||
/etc/init.d/cupsys restart | /etc/init.d/cupsys restart | ||
− | |||
gedit /etc/rc.d/rc.local | gedit /etc/rc.d/rc.local | ||
echo | echo | ||
第68行: | 第44行: | ||
/etc/rc.d/rc.local | /etc/rc.d/rc.local | ||
</nowiki></pre> | </nowiki></pre> | ||
− | |||
Note: The content on this page should be merged with MountingNovellNetworkDrives. | Note: The content on this page should be merged with MountingNovellNetworkDrives. | ||
− | |||
---- | ---- | ||
NetwarePrintingFromUbuntu [[category:CategoryNetworking]] [[category:CategoryDocumentation]] | NetwarePrintingFromUbuntu [[category:CategoryNetworking]] [[category:CategoryDocumentation]] | ||
[[category:UbuntuHelp]] | [[category:UbuntuHelp]] |
2007年11月30日 (五) 15:09的版本
目录
Introduction
This page shows how to mount a Netware filesystem and create symbolic links to it on the User Desktop.
What is Needed
ipx - utilities to configure the kernel ipx interface. ncpfs - a set of utilities to use resources from NetWare servers.
Mount Netware Filesystem
Firstly we need to make the folder to mount the filesystem to.
sudo mkdir /mnt/company_fs
Then we mount the filesystem
sudo ncpmount -S RDI_DBN_FS -U <UserName>.LABS -u <UserNo> -g <GroupNo> -P <NetWarePassword> -c <UbuntuUserName> /mnt/company_fs
To make sure that the filesystem is automatically mounted at startup, we need to add the following line to /etc/rc.local
ncpmount -S RDI_DBN_FS -U <UserName>.LABS -u <UserNo> -g <GroupNo> -P <NetWarePassword> -c <UbuntuUserName> /mnt/company_fs
Creating Symbolic Links
Create a symbolic (never a hard) link to the mounted netware filesystem and place it in a folder on the user desktop.
ln -s /mnt/company_fs/ /home/<UbuntuUserName>/Desktop/CompanyNetwork/company_fs
Now, most Companies have a lot of shared drives in Windows, ex P: S: X: etc., that are normally used for say Apps, Users etc. If required these shares must be made with symbolic links as only one mount to a filesystem can be make at a time.
ln -s /mnt/company_fs/FolderToShare /home/<UbuntuUserName>/Desktop/CompanyNetwork/ShareDriveName
Netware Password Change
Most Windows Netware Clients needs to change their passwords every x days. So to make it easy to update your passwords in Ubuntu use this script after changing your Windows Netware Password.
#!/bin/bash # windows-passwd-change.sh # Script to change netware mounts and restart cups after a # windows/netware password change ncpumount -a gedit /etc/cups/printers.conf echo echo 'Restarting the CUPS service...' echo /etc/init.d/cupsys restart gedit /etc/rc.d/rc.local echo echo 'Running rc.local script to configure IPX Netware mounts...' echo /etc/rc.d/rc.local
Note: The content on this page should be merged with MountingNovellNetworkDrives.
NetwarePrintingFromUbuntu