27 March 2012

cifs mount error : block device is write-protected, mounting read-only

I ran into an issue while trying to mount a windows' share on an ubuntu server today.

I used the following command:
mount -t cifs //10.1.2.3/share /mnt/sharewood/ -o username=user,password=pwd

And I got this error message:
mount: block device //10.1.2.3/share is write-protected, mounting read-only
mount: cannot mount block device //10.1.2.3/share read-only


Simply installing smbfs did the trick
apt-get install smbfs

20 March 2012

Fix VLC 2 remote HTTP control

If you recently upgraded your VLC to the version 2, you could face to an issue with the HTTP interface.
If you try connect from a remote device, you could get a 403 Forbidden.
In such case, edit the .hosts file located in C:\Program Files (x86)\VideoLAN\VLC\lua\http and add your local ip range or the ip of your device into the white list.

e.g. : 192.168.1.0/24
or : 192.168.1.60

#1

07 March 2012

Restore ipkg and related application after DSM 4 upgrade

After upgrading your DSM to the 4 version, you should get your ipkg broken.

In order to get anew your ipkg up and running, simply edit the file
/root/.profile
Edit the line starting with PATH= and add the following directly after PATH=:
/opt/bin:/opt/sbin:
Disconnect from your ssh session and reconnect.

Enjoy !

#1