Monthly Archive: May 2013

How to fix VMware missing Kernel Modules Issue 0

How to fix VMware missing Kernel Modules Issue

If when trying to run VMware after upgrading or installing it gives:

Before you can run VMware, several modules must be compiled and loaded into the running kernel.

Kernel Headers 3.8.0-19-generic

Kernel headers for version 3.8.0-19-generic were not found. If you have installed them in a non-default path you can specify the path below.

or something similar, Simply run:

# Should work for any kernel header
sudo apt-get install build-essential linux-headers-$(uname -r)

Then rerun vmware (for VMware Workstation) or vmplayer (for VMware Player)

How to mount drive as read only on linux 0

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 mount the drive (mkdir ~/Desktop/D)

If for some reason this doesnt work.. you can force delete the hibernation data by

mount -t ntfs-3g -o remove_hiberfile /dev/sda2 ~/Desktop/myplacetomount

 

How to mount samba share on linux using fstab 0

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 share a folder in linux using samba 0

How to share a folder in linux using samba

sudo nano -w /etc/samba/smb.conf

Use template that comes built in orr add to file

[mysharename]
    comment = Public Share
    path = /home/mysharepath
    browseable = yes
    read only = no
    create mask = 0644
    directory mask = 0755

And finally

# if on ubuntu/debian
service samba restart
# or if on other linux distros
/etc/init.d/samba restart

via Samba/SambaServerGuide – Community Ubuntu Documentation.