Skip to content

Tag: linux

How to change date and timezone in linux

To change date: date -s “18 JUN 2013 12:22:00” To change timezone: sudo dpkg-reconfigure tzdata   NOTE: After changing linux date/time/timezone make sure you restart cron with: /etc/init.d/cron stop /etc/init.d/cron start #or in Ubuntu/Debian based OS’s service cron stop service cron start  

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