- Install
samba
andsmbfs
- Make folder
/mnt/share
- Make file
/etc/cifspw
and fill it withusername=
andpassword=
$ sudo chmod 600 /etc/cifspw
- Edit
/etc/fstab
://ip/share /mnt/share cifs exec,credentials=/etc/cifspw 0 0
$ sudo mount -a
samba
and smbfs
/mnt/share
/etc/cifspw
and fill it with username=
and password=
$ sudo chmod 600 /etc/cifspw
/etc/fstab
: //ip/share /mnt/share cifs exec,credentials=/etc/cifspw 0 0
$ sudo mount -a
Yesterday my notebook (which came with Windows 7) simply went to a boot loop unless I change to OS to Linux o_O. Since reinstalling Windows 7 messes the whole MBR, a GRUB restore is required to get the multiboot back to work. These are the steps to get it working again:
$ mount | tail -1
. Something like /dev/sda5 on /media/0d104aff-ec8c-44c8-b811-92b993823444 type ext4 (rw,nosuid,nodev,uhelper=devkit)
will be returned.$ ls /media/0d104aff-ec8c-44c8-b811-92b993823444/boot
$ sudo grub-install --root-directory=/media/0d104aff-ec8c-44c8-b811-92b993823444 /dev/sda --recheck
A while ago I faced a situation where I had to discover the online computers in our network and I ended coding the following small shell script which basically try to detect them by ping:
But today I realized my naivety and learned that nmap
is a faster and better tool for the job! The exactly same result is achieved by executing the following code in the terminal:
There is also a more interesting variation which, given a range, looks for the current open ports in each computer:
That's it... I hope this article helps someone else other than myself in the future :D
Jun 1st
Filed Under: Ubuntu
Just recently I ran into a lot of problems using the standard ffmpeg package from ubuntu to convert video files. Following this thread I was able fix this annoying issue. For a deep understanding about the reasons why the standard package is so restricted, just go and check the thread, but I'm covering here the basic steps to fix it in a breeze.
I'm very glad to announce today that I'm releasing gEdit AutoComplete plugin version 0.10.0. Now the plugin has features that I was really missing and it just cost me a little of time between Xmas and new year, so it's my first gift for the programmers in 2010. HAPPY NEW YEAR!
Important Notes
This is probably my last iteration of the gEdit AutoComplete plugin using the current architecture, 'cause the gEdit core team (pbor, jessevdk, nacho and others) are working on a native GTKSourceCompletion engine that should be the basis for the next version of this or the gEdit official one. Meanwhile, I'm inviting anyone interested to make additional language libraries to make the plugin better while the stable official version isn't available.
UPDATE: a new version has been released! Please check gedit-plugin-autocomplete in my github repository.