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…]
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…]
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…]
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…]
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…]
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…]
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…]
Searching through the google about Bash Scripting, I found a realy nice guide. Here is it! Link: http://aurelio.net/shell/canivete.html#ifwhilefor
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…]
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!
March 24, 2011
0