I have recently upgraded to samba 4 from samba 3.5 on a RHEL 6.3 platform. It is pleasing that the new version can replace AD DC and has it’s own built it kdc and ldb database. Now my intention is to make linux boxes authenticate to samba4 by connecting through ldap as samba 4 works like a kerberized ld…
Tag: linux
How to attach ttyS to screen and capture it simultaneously
For capturing ssh sessions I use “script” command: “script -c ‘ssh user@host’ outfile”. But I have no idea how to capture sessions to remote hosts, that connected over com(serial) port. ends immediately with empty log. Both 2 functions that implemented in screen is necessar…
Malformed dumpfile header when migrating repository from Windows to Linux (encoding issue?)
I’m moving an SVN repository from a Windows machine (Windows 7) to a Linux machine (Ubuntu 13). I dump the repo on Windows with svnadmin dump and copy the files to the Linux machine. Now I’m running And the terminal responds with I suspect that there is a problem with my character encoding (Window…
Why Maven uses JDK 1.6 but my java -version is 1.7
I have setup maven in my terminal, and when getting the version settings (using mvn -v) it seems it uses JDK 1.6, while I have JDK 1.7 installed. Is there anything wrong? The commands I enter are these: Answer add the following to your ~/.mavenrc: Second Solution: echo export “JAVA_HOME=$(/usr/libexec/j…
How do I extract the contents of an rpm?
I have an rpm and I want to treat it like a tarball. I want to extract the contents into a directory so I can inspect the contents. I am familiar with the querying commands of an uninstalled package. I do not simply want a list of the contents of the rpm. i.e. I want to inspect the contents of
How to test for existence of a file on the Puppet Master
In a customized modules on Puppet I have and I want to let the module do something whether or not the file “fqdn-of-server” exist on the Puppet Master. Googling did get me a file_exists.rb function: and this does work when put in something like: in my manifest init.pp (of course $fqdn is a facter)…
Install 64 bit CentOS on Vbox installed on 32 bit Windows 7 with 64 bit intel 3rd gen core i5 processor [closed]
Closed. This question does not meet Stack Overflow guidelines. It is not currently accepting answers. This question does not appear to be about a specific programming problem, a software algorithm, or software tools primarily used by programmers. If you believe the question would be on-topic on another Stack …
Qt for Android on Mac or Linux build “Can not detect ndk toolchain…”
I have just installed SDK, NDK, JDK. When I type in Terminal: moroz@moroz:~/qt/qt5$ ./configure -developer-build -opensource -confirm-license -xplatform android-g++ -nomake tests -nomake examples -android-ndk android-ndk-r9/ -android-sdk android-sdk-linux/ -android-ndk-host linux-x86_64 -android-toolchain-ver…
MongoDB errors: mongodb-10gen E: Sub-process /usr/bin/dpkg returned an error code (1)
I’m trying to install things in Linux (Crunchbang Linux – a derivation of Debian), and I’m getting errors which point towards mongodb-20gen. When I try to remove it using :- I get … I read something on here for similar errors with MongoDB, and it suggested removing mongo-clients, so, I…
How to check if a service that I don’t know the name of is running on Ubuntu
I do not know the service’s name, but would like to stop the service by checking its status. For example, if I want to check if the PostgreSQL service is running or not, but I don’t know the service’s name, then how could I check its status? I know the command to check the status if the serv…