Debian: How to fix the error “NO PUBKEY XXXX” when trying to install any package with apt-get.

March 24, 2011

0

If you ever had the following error when tried to install any package with the “apt-get” here are the way to fix that.   Lendo listas de pacotes… Pronto W: GPG error: http://security.debian.org lenny/updates Release: As assinaturas a seguir não puderam ser verificadas devido a chave pública não estar disponível: NO_PUBKEY AED4B06F473041FA W: Você terá… [Read more…]

Posted in: Linux

How to create a separate log to OpenLDAP in a Debian?

March 15, 2011

0

To change the place where the logs are stored, we need edit the rsyslog.conf. By default, the slapd uses the local4 syslog level.   We need edit the file “/etc/rsyslog.conf” and add the following line:   local4.*   /var/log/openldap.log   Now, just restart the rsyslog daemon and it’s done! This way all logs related to slapd… [Read more…]

Posted in: Linux, OpenLDAP

Debian: Driver ‘pcspkr’ is already registered, aborting…

March 13, 2011

0

This message has appeared in my Debian.   Debian: Driver ‘pcspkr’ is already registered, aborting…   To fix that, we need disable the module “snd-pcsp” . We can do this just adding the module “snd-pcsp” in the file “/etc/modprobe.d/blacklist”. The entry is like that:   blacklist snd-pcsp   Now, just reboot the Debian and this… [Read more…]

Posted in: Linux

A generic startup script

March 13, 2011

0

Here are a example of a generic startup script, you can change to start/stop/restart any service at all. All you need to do is change the variables DIR and BIN. The DIR variable contem the directory where the executable are stored, the BIN variable it’s the name of the executable. #### # This is a… [Read more…]

Posted in: Linux

How to make a recycle on Samba to keep the user’s deleted files.

March 11, 2011

0

Sometimes users remove wrong files of their shares. With samba, we can “avoid” this. At least we can recover that file, if we were using the “recycle” module . If Samba was installed by a pre-compiled package, in a Debian (or debian like), to use this module we need the package “samba-vfs” to be installed.… [Read more…]

Posted in: Linux, Samba

How to create administrators of a samba domain

March 10, 2011

0

With a Samba server, we can make a DC (Domain Controler). Simplifying the meaning of DC, it’s a server where will be stored accounts for the network users. The Samba, is based on the Windows NT and because this, it has many features  of the NT server.   One of these features, is groups of… [Read more…]

Posted in: Linux, Network, Samba

How to compress/decompress files in Linux

March 8, 2011

1

Compress and extract files is a really ordinary job when we are administrating a system. In a Linux environment, there’s a lot of ways to do that. Here are the more common ways to do so!   TAR.GZ: Compress file or directory to TAR.GZ:   tar czfv new_file.tar.gz file_to_be_compressed Example 1: tar czfv my_book.tar.gz /home/trufelli/book/book.tex… [Read more…]

Posted in: Linux

Swiss army knife of the bash!

March 7, 2011

1

Searching through the google about Bash Scripting, I found a realy nice guide. Here is it! Link: http://aurelio.net/shell/canivete.html#ifwhilefor

Posted in: Bash Scripting, Linux

Manipulating startup scripts on a Debian

March 7, 2011

0

To add a service on startup we can use the “update-rc.d“, that install and remove System-V style init script links. Here’s a exemple:   update-rc.d script defaults   Where “SCRIPT“, is the file in the “/etc/init.d/” folder   To remove a startup script, you just need add the “-f” option and change “defaults” to. “remove”… [Read more…]

Posted in: Linux

How to use the command “killall” in a Debian.

March 6, 2011

0

If you have a fresh install of a Debian, you cant use the comand killall. If you try, will complain about it: killall: command not found All you need to do is install the package “psmisc” with the apt-get. apt-get install psmisc And now, you can use the command “killall” normaly!

Posted in: Linux
Follow

Get every new post delivered to your Inbox.