Category Archives: Linux

installing zoneminder 1.29 in ubuntu 14.04 server x86_64

Published by:

first step

second, moving the recording partition


see how the ip camera setting with zoneminder

fourth, set the filter for automatic deletion

fifth, set the timer when to record and stop

using crontab

mlabel – make msdos volume label

Published by:

Mlabel is a program to rename a flash disk or removable disk into readable one. Like “My Flash”.
We do that easily in windows but I have not ye find it in linux.

Here are two ways I discovered in google using mlabel in linux terminal. (do all in root – use sudo in ubuntu or debian).

Once the flash disk in the usb port, it will automatically mount to something like /media/usb or /media/theoldname, umount it

#umount /media/theoldname

Check the flash /dev name :

#fdisk -l

Usually the result is /dev/sdb1 or /dev/sdc1, then rename it.

#mlabel -i /dev/sdb1 ::thenewname


edit and find out  /etc/mtools.conf to the label z: /dev/sdb1 (this refer to the plug in flash) then

For displaying the current label $mlabel -s c:

To change the label $mlabel c:”newlabel”

That’s it

bluetooth in slackware 13.1

Published by:

It’s already there. The program in slackware.

Plug the device, the blueman-service will start. And we can use it right away.

But I got problem here. The blueman-service didn’t executed.

scanning device remote through terminal
#hcitool scan

So make sure /etc/rc.d/rc.bluetooth is executable.
chmod +x /etc/rc.d/rc.bluetooth

Pair the device through the handphone first. then the pc. now i can send the file from nokia to my pc, but not everytime the error message most of the time were come out. Here is the message in dmesg : hci0 command tx timeout.

In my case, I have to put the handphone inline with the bluetooth adapter.
Give it a try.

Manage Formula in Open Office

Published by:

Sometime I m using lots of formulas in my open office file. Especially in spreadsheet. But i don’t know why it doesn’t work out sometime. Some guy in a forum said it is some kind of bug but in another forum wrote about changing the option in the tool.

I believe the second one is most reliable. Like today, I m using countif(range;criteria) in my calc file.
That’s mean I want to count how many data that contains the word Guru in front of each text.

It returns zero or nothing. But the data show that at least 30 row of data containing Guru.

Then I go to Tools Option – Calc – Calculate.
Check list the option Search Criteria = and <> must apply to whole cells and Enable regular expressions in formulae

That’s two option gonna make my countif formulae worked.

virtualbox engine accessing to usb

Published by:

Since the beginning that I knew virtualbox, I wonder how this engine access to my usb stick directly without moving the content to the host first. Actually there is a way how we can do that.

First, add the user to vboxusers group. Use kuser or nano /etc/group in the terminal.
Now open the virtualbox, click usb in the setting area. But don’t run the virtual machine yet. Set the  necessary setting in the usb dialog box, then save.

Now start the virtual machine, you will find the usb in the drive section.
I do this to windows virtual machine.

lock ubuntu screen from terminal

Published by:

For locking the screen in ubuntu we don’t have to wait the screensaver to active, I prefer to activate manually, even I have to open the terminal windows first. I feel much better to control the locking.

here is the command
#gnome-screensaver-command –lock

source : here.

upgrading slackware 13.1 to 13.37

Published by:

Here are the instructions of upgrading slackware according to slacwkare tutorial.
1. Open your terminal (start – system – terminal)  type init 1 to change the environment to  single user mode
$init 1
2. Login as root
3. Upgrade the main installation which is

upgradepkg /root/slackware/a/pkgtools-*.tgz
upgradepkg /root/slackware/a/tar-*.tgz
upgradepkg /root/slackware/a/xz-*.tgz
upgradepkg /root/slackware/a/findutils-*.txz
upgradepkg /root/slackware/a/glibc-solibs-*.t?z

4. Now install everything

upgradepkg --install-new /root/slackware/*/*.t?z

or if you want to miss the KDEI language package, just run the script which contains :

    for dir in a ap d e f k kde l n t tcl x xap y ; do
      ( cd $dir ; upgradepkg --install-new *.t?z )

5. remove old packages. The easy one is take a look into /var/log/package

 ls -lt | less

6. do the script

removepkg util-linux-ng guidance-power-manager eggdbus iptraf \
      libXTrap libXprintAppUtil libXprintUtil libxkbui rstart trapproto \
      xf86rushproto xfindproxy xfwp xplsprinters xprehashprinterlist \
      xproxymanagementprotocol xsetmode xsetpointer xtrap 

    Note the removal of util-linux-ng!  You better make sure that the
    renamed util-linux package is installed before removing that.

7.  Fix the config file. There is also a script for that. It will rename the extension new config file to the regular file by copy the old one into bak file.

     cd /etc
     find . -name "*.new" | while read configfile ; do
       if [ ! "$configfile" = "./rc.d/" \
         -a ! "$configfile" = "./rc.d/" \
         -a ! "$configfile" = "./" \
         -a ! "$configfile" = "./" \
         -a ! "$configfile" = "./" ]; then
         cp -a $(echo $configfile | rev | cut -f 2- -d . | rev) \
           $(echo $configfile | rev | cut -f 2- -d . | rev).bak 2> /dev/null
         mv $configfile $(echo $configfile | rev | cut -f 2- -d . | rev)

8.  Make sure the /etc/lilo.conf is contain the right path. Or do this command to make sure the lilo installed to the MBR.

9. back to init 3 and reboot

It should work.

stop dhcpcd client in slackware

Published by:

If we use dhcp (dynamic host configuration protocol) in our slackware then the machine automatically getting the ip from the server and use it.
The program that run this function is dhcpcd.
But sometime when we decide to use static ip and configure it in /etc/rc.d/rc.inet1.conf
the static setting won’t work. It is because the dhcpcd still running in memory.

So we need to shut it down. here’s how.
root@user:#/sbin/dhcpcd -x eth0

Now try to restart rc.inet1.conf again
root@user:#/etc/rc.d/rc.inet1 restart

The machine should use the static ip now.

samba security = share and user

Published by:

Samba is one of the transfer protocol in linux network. Samba can connect linux data server with windows. In my opinion, the setting is quite easy. In my earlier posts I have written many posts about samba. Now in the samba setting there is another option that can make a different to the sharing method. The option is security = user and security = share.

Let’s talk about security share option.
If we use this option in smb.conf then every sharing directory declared in smb.conf will be share without any username privileged.
But the sharing setting must be set browseable=yes ; rewritable=yes ; guest ok = yes

Now the security user option.
If we use this option in smb.conf then everytime the client try to browse the share directoy it will prompt for username and password of the owner directory.
The sharing setting must be set browseable=yes ; rewriteable = yes ; guest ok is not really necessary.

In My opinion the samba security = share is faster than security=user, but why?
I think this is because share is ignoring all the privileged.