September 2009
4 posts
6 tags
samba's lines to fstab
There was a long time ago I didn’t configure Windows shares access under my linux boxes.
So, I typed here this memo about changes :
‘smbfs’ filetype is deprecated, replaced by ‘cifs’
‘fmask’ is deprecated, replaced by ‘file_mode’
‘dmask’ is deprecated, replaced by ‘dir_mode’
My new (and functionnal) entry to...
5 tags
[bash] is this directory empty ?
here a simply way to test if a directory is empty :
$ [ "$(ls -A /path/to/directory)" ] && echo "Not Empty" || echo "Empty"
and here, a way to find empty directories from a location :
find /path/to/parent/directory -type d -empty
tips found from this source : http://www.cyberciti.biz/faq/linux-unix-shell-check-if-directory-empty/
6 tags
xrandr helps to configure multiple monitors
today, i’ve installed my brand new 21.5” Full HD screen.
The Intel Driver for my i915GM (DELL LATITUDE D610) is unable to set resolution higher than 1400x1050. That’s too bad for my eyes because it is not the native resolution for this screen.
Under GNU/Linux ArchLinux, it was easy to manage :
Detecting screens with :
survietamine@midlap:~$ xrandr Screen 0: minimum...
9 tags
only 1 buffer for X clipboard
pacman -Si autocutsel :
Dépôt : community Nom : autocutsel Version : 0.9.0-2 URL : http://lepton.fr/tools/autocutsel Description : synchronizes the two copy/paste buffers mainly used by X application
update your ~/.xinitrc with these lines :
Autocutsel() { if [ -x...