Skip to content

Month: May 2013

How to mount drive as read only on linux

You normally have to do this when you are dual booting and your windows partition is in a state of hibernation.. Linux sees this and refuses to touch files Complicated Linux Suggested Method: sudo mount -t “ntfs” -ro “uhelper=udisks2,nodev,nosuid,uid=1000,gid=1000,dmask=0077,fmask=0177” “/dev/sda2” “~/Desktop/D/” Where ‘D’ is a folder you previously created to…

How to mount samba share on linux using fstab

# Debian/Ubuntu apt-get install smbfs smbclient # Fedora/Redhat yum install smbfs samba-client #If not found try smbclient mkdir /mnt/dirname //fileserver/sharename /mnt/dirname smbfs username=root,password=mypass 0 0 NOTES: How to find shares on a remote linux PC smbclient -L jumbo -Uusername -I ip-address How to manually mount fstab mount -a  

How to change hostname in linux

STEP 1 Redhat / CentOS / Fedora vi /etc/sysconfig/network Debian / Ubuntu vi /etc/hostname Slackware / Suse / OpenSuse vi /etc/HOSTNAME   STEP 2 vi /etc/hosts   STEP 3 echo “servername” > /proc/sys/kernel/hostname   via Linux Change Hostname.