I recently upgraded my system from Etch to Lenny. Now when I use auto-complete, file names (not directories) appear with a trailing slash on the command line.
How do I fix this?
I am setup postfix on my linode vps using https://help.ubuntu.com/community/Postfix, mail are going to localhost perfectly. Problem is i am configure SASL in postfix ,since i don't have ssl and i can't send any mails to external domains get error "relay access denied".
Through google this error i found articles related to SSL, but how can i setup postfix without SSL and send mails to external domain like gmail or yahoomail.
Hi while installing openldap when i enter the command:
apt-get install slapd
I get the following output
Reading package lists... Done
Building dependency tree
Reading state information... Done
Some packages could not be installed. This may mean that you have
requested an impossible situation or if you are using the unstable
distribution that some required packages have not yet been created
or been moved out of Incoming.
The following information may help to resolve the situation:
The following packages have unmet dependencies:
slapd : Depends: libldap-2.4-2 (= 2.4.28-1.1ubuntu4.1) but 2.4.28-1.1ubuntu4.2 is to be installed
E: Unable to correct problems, you have held broken packages.
Please help.
I'm trying to get OpenLDAP on Lenny to work with StartTLS. I have a Fedora 13 machine which I'm using as a client for testing. So far the Fedora client is ignoring the 'host' directive in /etc/ldap.conf when I try to connect using ldapsearch. The client wants to connect to 127.0.0.1:389 even if I specify -H ldaps://server.name on when using ldapsearch. /etc/ldap.conf on the client machine is in mode 444.
But even when I try connecting locally from an ssh session, I see errors like this:
ldap_sasl_interactive_bind_s: Can't contact LDAP server (-1)
Someone hit me with a cluebat, plz.
Update: you must use ~/.ldaprc for settings such as 'host'.
Today I updated PHP 5.2 to 5.3 but then Apache Startup doesn't work.
Apache says:
Starting web server: apache2apache2: Syntax error on line 205 of
/etc/apache2/apache2.conf: Syntax error on line 1 of
/etc/apache2/mods-enabled/php5.load: Cannot load
/usr/lib/apache2/modules/libphp5.so into server:
/usr/lib/apache2/modules/libphp5.so: cannot open shared object file:
No such file or directory
Cannot load /usr/lib/apache2/modules/libphp5.so
Is downgrading PHP 5.3 to PHP 5.2 a good idea? If so, how can I do it?
I'm setting up an exchange server using iRedMail.
Following the official iRedMail installation guide (http://www.iredmail.org/install_iredmail_on_debian.html) and
the Digital Ocean guide (https://www.digitalocean.com/community/articles/how-to-install-iredmail-on-ubuntu-12-04-x64) I was able to install iRedMail without any problems, so I have all the services up and running.
I can configure domains and emails using iRedAdmin BUT I have problem both sending and receiving email, what I get from Roundcube is 'Authentication error' when trying to send an email.
Also I can't receive anything.
I also tried to connect to the mx server using telnet, it connects, but after the STARTTLS command, when I start to write "MAIL FROM:" the connection is lost.
Something in the configuration is not working (at the moment I have the configuration written by the iRedMail installation) but I do not know where, I hope someone can enlight me!
Thank you
Im trying to set up SSH forwarding like this
osx debianA debianB
I can connect to debianA fine, using ssh -A and it has the following env vars when i do:
SSH_AGENT_PID=1543
SSH_AUTH_SOCK=/tmp/ssh-giwdYY1542/agent.1542
SSH_CLIENT='92.233.199.x 38954 22'
SSH_CONNECTION='92.233.199.x 38954 108.171.179.x 22'
SSH_TTY=/dev/pts/0
When i try to connect to debianB, the agent is not used!
ssh -v output ends with:
debug1: SSH2_MSG_SERVICE_REQUEST sent
debug1: SSH2_MSG_SERVICE_ACCEPT received
debug1: Authentications that can continue: publickey,password
debug1: Next authentication method: publickey
debug1: Trying private key: /home/nic/.ssh/id_rsa
debug1: Trying private key: /home/nic/.ssh/id_dsa
debug1: Next authentication method: password
Then im asked for a password.
I have not set any ForwardAgent no directives in ssh_config and dont have a .ssh/config at all. sshd_config has not got AllowAgentForwarding in it. I have tried all of these directives as yes also.
debianA and debianB both have identical ssh_config and sshd_config (verified with diff) so the really weird thing is connecting OSX debianB debianA works fine!!
Im totally out of ideas! Has anyone come across this before?
Cheers! NFV
Hi I'm trying to install libssh2 for 64-bit. I'm using the following code for installation:
cd libssh2-1.4.3/
export CFLAGS="-mabi=64 -march=mips64r2"
./configure --with-libz --with-libgcrypt --with-libz-prefix=`pwd`/../../support__
libs/libs/zlib/ --with-libgcrypt-prefix=`pwd`/../../support_libs/``libs/extra --wii
thout-libssl-prefix --prefix=`pwd`/../../support_libs/libs/extra_2
make && make install
without using "export CFLAGS="-mabi=64 -march=mips64r2" it compiles the binaries in 32-bit and whem i use #export for 64-bit, it gives this configuration error::
checking for libgcrypt... no
configure: error: cannot find OpenSSL or Libgcrypt,
try --with-libssl-prefix=PATH or --with-libgcrypt-prefix=PATH
make: *** No targets specified and no makefile found.
Good day to everybody.
I'm trying to add a new schema inside OpenLDAP. But getting an error:
ldap_add: Insufficient access (50)
root@ldap:/# ldapadd -c -x -D cn=admin,dc=domain,dc=com -W -f /tmp/test.d/cn\=config/cn\=schema/cn\=\{5\}microsoft.ldif
root@ldap:/# cat /tmp/test.d/cn\=config/cn\=schema/cn\=\{5\}microsoft.ldif
dn: cn=microsoft,cn=schema,cn=config
objectClass: olcSchemaConfig
cn: microsoft
olcAttributeTypes: {0}( 1.2.840.113556.1.4.302 NAME 'sAMAccountType' DESC 'Fss
ssully qualified name of distinguished Java class or interface' SYNTAX 1.3.6.
1.4.1.1466.115.121.1.27 SINGLE-VALUE )
olcAttributeTypes: {1}( 1.2.840.113556.1.4.146 NAME 'objectSid' DESC 'Fssssull
y qualified name of distinguished Java class or interfaced' SYNTAX 1.3.6.1.4.
1.1466.115.121.1.40 SINGLE-VALUE )
olcAttributeTypes: {2}( 1.2.840.113556.1.4.221 NAME 'sAMAccountName' DESC 'Fds
sssully qualified name of distinguished Java class or interfaced' SYNTAX 1.3.
6.1.4.1.1466.115.121.1.15 SINGLE-VALUE )
olcAttributeTypes: {3}( 1.2.840.113556.1.4.1412 NAME 'primaryGroupToken' SYNTA
X 1.3.6.1.4.1.1466.115.121.1.27 SINGLE-VALUE )
olcAttributeTypes: {4}( 1.2.840.113556.1.2.102 NAME 'memberOf' SYNTAX 1.3.6.1.
4.1.1466.115.121.1.12 SINGLE-VALUE )
olcAttributeTypes: {5}( 1.2.840.113556.1.4.98 NAME 'primaryGroupID' SYNTAX 1.3
.6.1.4.1.1466.115.121.1.27 SINGLE-VALUE )
olcObjectClasses: {0}( 1.2.840.113556.1.5.6 NAME 'securityPrincipal' DESC 'Cso
ntainer for a Java object' SUP top AUXILIARY MUST ( objectSid $ sAMAccountNam
e ) MAY ( primaryGroupToken $ memberOf $ primaryGroupID ) )
I also tried to add the schema by phpldapadmin, but gain the same error.
I'm using the admin user which is specified by default from the begging of the slpad installation. How may I add permissions to this user ?
Best wishes
I have a project on Launchpad that consists of a single branch (trunk). I would like to create a second branch that contains the Debian packaging for the project (with the intent of creating a build recipe that merges it into the main branch before building).
I've done this before by just pushing a local branch to lp:~me/project_name/debian. However, this stacks the branch with trunk, which I don't want (it becomes impossible to delete trunk without deleting the Debian packaging branch - a restriction that has caused problems before).
What is the proper way to do this?
I deleted /boot/efi (while attempting to install archlinux).
There is one harddrive, 750GB, /dev/sda). The partitions are
/dev/sda1 ntfs 315MB
/dev/sda2 EFIboot 105MB <=== this got deleted
/dev/sda3 ? 135MB
/dev/sda4 ntfs 626GB <======= windows 8
/dev/sda5 ntfs
/dev/sda6 biosgrub 1MB ?
/dev/sda7 lvm 110GB <======== for linux
/dev/sda8 swap 13GB
Windows 8 still installed on /dev/sda4
How do I recreate / repair the /boot/efi (/dev/sda2) ?
This is a complete noob question for postfix, but I have to administer a live installation, and in need of reconfiguring the resend rate.
Help would be appreciated.
Sorry, this might be a beginner question:
How can I list all available versions of specific package?
I know with
apt-get install myPackage=1.2.3
a specific version could be installed.
And with
apt-show-version -a myPackage
I would get a list of versions that are known by the system.
But how getting a list of all available versions.
I think that isn't possible using the apt tools because they are
restricted to configured repositories.
So what is the way to go? Some web-repositories? What is the recommondation for Ubuntu 8.04?
I have several C and C++ projects that all follow a basic structure I've been using for a while now. My source files go in src/*.c, intermediate files in obj/*.[do], and the actual executable in the top level directory.
My makefiles follow roughly this template:
# The final executable
TARGET := something
# Source files (without src/)
INPUTS := foo.c bar.c baz.c
# OBJECTS will contain: obj/foo.o obj/bar.o obj/baz.o
OBJECTS := $(INPUTS:%.cpp=obj/%.o)
# DEPFILES will contain: obj/foo.d obj/bar.d obj/baz.d
DEPFILES := $(OBJECTS:%.o=%.d)
all: $(TARGET)
obj/%.o: src/%.cpp
$(CC) $(CFLAGS) -c -o $@ $<
obj/%.d: src/%.cpp
$(CC) $(CFLAGS) -M -MF $@ -MT $(@:%.d=%.o) $<
$(TARGET): $(OBJECTS)
$(LD) $(LDFLAGS) -o $@ $(OBJECTS)
.PHONY: clean
clean:
-rm -f $(OBJECTS) $(DEPFILES) $(RPOFILES) $(TARGET)
-include $(DEPFILES)
Now I'm at the point where I'm packaging this for a Debian system. I'm using debuild to build the Debian source package, and pbuilder to build the binary package. The debuild step only has to execute the clean target, but even this causes the dependency files to be generated and included.
In short, my question is really: Can I somehow prevent make from generating dependencies when all I want is to run the clean target?
I recompiled PyQt4 from source, but the issue still exists.
On another ArchLinux system, it works well. Can someone help me?
Thanks!
on Debian:
import PyQt4.QtWebKit
dir(PyQt4.QtWebKit.QWebFrame.findAllElements)
Traceback (most recent call last):
File "", line 1, in
AttributeError: type object 'QWebFrame' has no attribute 'findAllElements'
on ArchLinux:
import PyQt4.QtWebKit
dir(PyQt4.QtWebKit.QWebFrame.findAllElements)
['__call__', '__class__', '__cmp__', '__delattr__', '__doc__', '__eq__', '__format__', '__ge__', '__getattribute__', '__gt__', '__hash__', '__init__', '__le__', '__lt__', '__module__', '__name__', '__ne__', '__new__', '__reduce__', '__reduce_ex__', '__repr__', '__self__', '__setattr__', '__sizeof__', '__str__', '__subclasshook__']
I have a very large CSV file and I need to write an app that will parse it but using the 6GB file to test against is painful, is there a simple way to extract the first hundred or two lines without having to load the entire file into memory?
The file resides on a Debian server.
Since yesterday I have been wrestling with this problem: unable to load configuration from uwsgi
When I google it, nothing comes up. I am trying to run UWSGI under nginx with a very simple uwsgi.ini file. The file is being pointed to correctly.
Can anyone please explain what this error is, and how I ca go about diagnosing it and fixing it. If there is any more information I can post to help then please just ask.
Regards,
James
I have been using a Proxmox VE 2.0 cluster (2 servers) for months.
Today, I had the "bright idea" to install a GUI on one of the servers. I used tasksel, and selected the graphical desktop environment (Gnome).
When I rebooted the server, neither of the servers on the cluster could see each other (shows a red light by the server on the sidebar, no statistics). The VMs on each server are working fine, individually.
pvecm status on the broken server shows cman_tool: cannot open connection to cman, is it running ?. Running it on the other server outputs a lot of lines (here: http://pastebin.com/HpQfUHTU), but I assume the important bit is
expected votes:2
total votes: 1
Trying pvecm delnode (othernode) on either server outputs:
cluster not ready - no quorum?
Any suggestions as to how I can fix this? Thanks in advance!
iftop is great tool to view almost live bandwidth usage distinguished by source-ip source-port destination-ip destination port.
I'm using it to see which client's ip is using most bandwidth.
Now I would like to store output somewhere.
iftop uses ncurses so
iftop > log.txt
does not work as expected, result file is not readable.
Is there any tool like this which can be used to pipe output to a text file?
Thanks for your replies.
I have been having a weird problem with Zimbra(7.1.4_GA_2555.DEBIAN5) lately:
On the (web)control panel the status keep changing to red every few days. When this is happens the output of zmcontrol status still shows running:
antispam Running
antivirus Running
imapproxy Running
ldap Running
logger Running
mailbox Running
memcached Running
mta Running
snmp Running
spell Running
stats Running
zmconfigd Running
Every thing runs fine except automated mail forwarding from one account to another(which is critical for us).
I have been through Zimbra forums and the following ALWAYS fixes the issue:
su - zimbra -c "zmprov mcf zimbraLogHostname mail.mydomain.com"
/opt/zimbra/libexec/zmsyslogsetup
/etc/init.d/rsyslog restart
su - zimbra -c "zmcontrol restart"
After I run the above commands, the status on control panel turns green and mail forwarding starts to work again BUT only for a few days.
Other than the above, everything works fine including Server statistics.
Anyone seen this issue before?
I'm stuck. After setting up gitosis, cloning gitosis-admin for the first time results in the following:
$ git clone ssh://[email protected]:gitosis-admin.git
Initialized empty Git repository in c:/path/to/my/repo
Using username "git-upload-pack 'git".
fatal: The remote end hung up unexpectedly
Anyone ever experience this problem? Troubleshooting ideas?
virtualbox
VirtualBox: Error -610 in supR3HardenedMainInitRuntime!
VirtualBox: dlopen("/usr/lib/virtualbox/VBoxRT.so",) failed: /usr/lib/x86_64-linux-gnu/libk5crypto.so.3: symbol krb5int_buf_len, version krb5support_0_MIT not defined in file libkrb5support.so.0 with link time reference
VirtualBox: Tip! It may help to reinstall VirtualBox.
I cant launch Virtualbox at all. It was working perfectly fine yesterday but I tried using it today and it is now not working. Tried: sudo apt-get install virtualbox* and I have also tried installing the .debs on the virtualbox website but nothing helps.
Im using the latest crunchbang.
I have two OpenLDAP servers that are both running TLS. They are:
ldap1.mydomain.com
ldap2.mydomain.com
I also have a load balancer cluster with a dns name of it's own:
ldap.mydomain.com
The SSL certificate has a CN of ldap.mydomain.com, with SANs of ldap1.mydomain.com and ldap2.mydomain.com.
Everything works... Except mirror mode replication.
My mirror mode replication is setup like this:
ldap.conf
TLS_REQCERT allow
cn=config.ldif
olcServerID: 1 ldap://ldap1.mydomain.com
olcServerID: 2 ldap://ldap2.mydomain.com
On ldap1, olcDatabase{1}hdb.ldif
olcMirrorMode: TRUE
olcSyncrepl: {0}rid=001 provider=ldap://ldap2.mydomain.com bindmethod=simple bindmethod=simple binddn="cn=me,dc=mydomain,dc=com" credentials="REDACTED" starttls=yes searchbase="dc=mydomain,dc=com" schemachecking=on type=refreshAndPersist retry="60 +"
On ldap2, olcDatabase{1}hdb.ldif
olcMirrorMode: TRUE
olcSyncrepl: {0}rid=001 provider=ldap://ldap1.mydomain.com bindmethod=simple bindmethod=simple binddn="cn=me,dc=mydomain,dc=com" credentials="REDACTED" starttls=yes searchbase="dc=mydomain,dc=com" schemachecking=on type=refreshAndPersist retry="60 +"
Here's the errors I'm getting in syslog:
Dec 1 21:05:01 ldap1 slapd[6800]: slap_client_connect: URI=ldap://ldap2.mydomain.com DN="cn=me,dc=mydomain,dc=com" ldap_sasl_bind_s failed (-1)
Dec 1 21:05:01 ldap1 slapd[6800]: do_syncrepl: rid=001 rc -1 retrying
Dec 1 21:05:08 ldap1 slapd[6800]: conn=1111 fd=20 ACCEPT from IP=ldap.mydomain.com:2295 (IP=ldap1.mydomain.com:636)
Dec 1 21:05:08 ldap1 slapd[6800]: conn=1111 fd=20 closed (TLS negotiation failure)
Any ideas? I've been working on OpenLdap for way too long now.