Pages

Thursday, April 18, 2013

How to mount windows sharing in linux


All files in a Linux system are arranged in one big tree file hierarchy at /. It include devices too. We use the mount command attach the file system or devices to the tree. We also able to mount windows share under Linux as follows :
  1. Make sure you have  : 
    • Windows username and password to access share
    • Sharename or IP address
    • root access on Linux
  2. Login to Linux as a root user
  3. Create mount point:
    # mkdir -p /mnt/winshare
    
  4. Use the mount command as follows :
    # mount -t cifs //ntserver/winshare -o username=admin,password=myAdminPassword /mnt/winshare
    
    while :
    • -t cifs : File system type to be mount
    • //ntserver/winshare : Sharename on windows (change it as yours)
    • -o username=admin,password=myAdminPassword : are options passed to mount command. First argument is username (admin) and second argument is password to connect windows share
    • /mnt/ntserver : Linux mount point to access Sharefiles
  5. Access Windows share using command:
    # cd /mnt/winshare; ls -l
    

Wednesday, April 17, 2013

How to easily set DNS in Linux


This post below are the steps on how to configure primary and secondary DNS :
  1. Login as root
  2. Modify file /etc/resolv.conf
    vi /etc/resolv.conf
    
  3. Add lines below
    nameserver 192.168.6.17
    nameserver 192.168.6.18
    
    You must replace DNS IP on your own
  4. Save and close the file
  5. To test DNS use one of the following command :
  6. $ host google.com
    $ dig google.com
    $ ping google.com
    $ nslookup your-domain.com
    

Friday, March 29, 2013

How to create local repositoy SLES 10

To help us in software management using yast on SLES (Suse Linux Enterprise Server) 10 we can make a local repository in the form of iso image of the DVD SLES10. The following are the steps to create a local repository :
  1. Create ISO file from SLES10 DVD
  2. Copy ISO file to your server
  3. Add the ISO as a service (installation source) using command below :
    zypper sa "iso:/?iso=/home/choirul/iso/sles10sp1.iso" "SLES 10 SP1"
  4. Verify that the service has been successfully added using this command :
    zypper sl
  5. Open yast and choose Software > Installation Source. It will appear as below :
     
    How to create local repositoy SLES 10
    Add capHow to create local repositoy SLES 10tion
  6. There must be 2 items. First for dvd and second for iso. You can optionally disabled the source from DVD
Don't Forget To Join Our Community
×
Widget