In most case I login to the server as a root and start the X server manually by calling the startx
function. After the I can use X11 forwarding. However I would like to know how can I start X11 as a service on boot time?
Mokus's questions
I am tring to install X11 server on a RHEL6 server
yum groupinstall "X Window System" "Desktop" "Fonts"
but I am getting the following error:
Error Downloading Packages:
libart_lgpl-2.3.20-5.1.el6.x86_64: failed to retrieve getPackage/libart_lgpl-2.3.20-5.1.el6.x86_64.rpm from prod-epel-x86_64-server-6
error was [Errno -1] Package does not match intended download. Suggestion: run yum --enablerepo=prod-epel-x86_64-server-6 clean metadata
After running the yum --enablerepo=prod-epel-x86_64-server-6 clean metadata
command, I am receiving the same error message.
How can I fix this?
A Windows filesystem is mounted through samba and I am trying to compress a large amount of small files:
find /path/to/files/ -newermt "2012-01-01 00:00:00" -path '*/*log.txt' -exec tar cvfz log_file_system.tar.gz {} +
but after a while the size of the tarball is reseted.
/path/to/files/log1.txt
tar: Removing leading `/' from member names <- the size of the tar became zero
/path/to/files/log2.txt
Why is this happening? How can I fix that?
We have a measurement campaign in a field, until now we had the following network structure
The distance was 400m between the two points so the most easy solution was to use a Wifi pont to point bridge connection. The PC with the 192.168.0.10 IP act as a server, and run a software which controls the other PC. In this network structure all PC had the same subnet and it was easy to establish TCP/UDP(Broadcasting, unicasting) connections.
From now on the distance between the two point is 20km, so the wifi solution is not working any more. In this case we have the following network structure:
My question is how can I establish a point to point connection through internet, to get the same structure as in the first image? For example where I still can broadcast and unicast through UDP etc.
Edited
I know only the VPN server IP, so from the PC with the 13x.xxx.xxx.xxx IP can connect to the VPN server, therefore that PC will be in the same subnet(192.168.1.0/24). For example, there will be eth0 with 13x.xxx.xxx.xxx IP and tun0 with 192.168.1.22, in this case can I run a VPNServer on that PC so the PC with the 192.168.1.21 IP can establish a VPN Bridge connection?
I have the following structure:
So in this case I have two different networks. What device can handle this structure, also PoE WiFi. In this case I have two measurement system attached in the PC B and PC C. The PC A is collecting the data and sending to the "master computer" through internet. In the future I would like to build up more measurement system. My question is, what kind of device can handle this structure(2 networks)? A router can handle this task?
I just installed the RoundCube php mail client. I check the MySQL database and the new table was created, but through browser I'm getting the following error:
DATABASE ERROR: CONNECTION FAILED!
Unable to connect to the database!
Please contact your server-administrator.
I check the debian-db.php and the login parameters are correct, I also tried through terminal and I can connect to the db using this parameter
$dbuser='roundcube';
$dbpass='mypass';
$basepath='';
$dbname='roundcube';
$dbserver='';
$dbport='';
$dbtype='mysql';
I'm trying to setup a mail server on Ubuntu 10.04.
I followed this instructions:
https://help.ubuntu.com/10.04/serverguide/C/postfix.html#postfix-troubleshooting
when I'm testing the connection through telnet, I'm getting the following results:
Trying 149.154.153.11...
Connected to mail.broodds.com.
Escape character is '^]'.
220 tanko-20590-i5 ESMTP (Debian/GNU)
ehlo mail.broodds.com
250-mail.broodds.com
250-PIPELINING
250-SIZE 10240000
250-VRFY
250-ETRN
250-STARTTLS
250-ENHANCEDSTATUSCODES
250-8BITMIME
250 DSN
Is this a good result, because in the tutorial this is different:
250-STARTTLS
250-AUTH LOGIN PLAIN
250-AUTH=LOGIN PLAIN
250 8BITMIME
Using Sendmail
I can send out mail, but how can I check weather do I got an email.
I also installed the Squirrelmail, but when I type something in the login I get the following error:
ERROR
Error connecting to IMAP server: localhost.
111 : Connection refused
I trying to setup a mail server on my server, I followed the following instructions:
https://help.ubuntu.com/10.04/serverguide/C/certificates-and-security.html
https://help.ubuntu.com/10.04/serverguide/C/postfix.html
but in the system log I am sill getting the following error:
Sep 25 14:00:38 tanko-20590 dovecot: managesieve-login: Fatal: Can't load certificate file /etc/ssl/certs/ssl-mail.pem: The file doesn't contain a cer$
Sep 25 14:00:38 tanko-20590 dovecot: pop3-login: Fatal: Can't load certificate file /etc/ssl/certs/ssl-mail.pem: The file doesn't contain a certificat$
Sep 25 14:00:38 tanko-20590 dovecot: pop3-login: Fatal: Can't load certificate file /etc/ssl/certs/ssl-mail.pem: The file doesn't contain a certificat$
Sep 25 14:00:38 tanko-20590 dovecot: imap-login: Fatal: Can't load certificate file /etc/ssl/certs/ssl-mail.pem:
I just typed in the sudo apt-get update
and I'm getting the following error:
Err http://de.archive.ubuntu.com natty InRelease
Err http://security.ubuntu.com natty-security InRelease
Err http://de.archive.ubuntu.com natty-updates InRelease
Err http://security.ubuntu.com natty-security Release.gpg
Temporary failure resolving 'security.ubuntu.com'
Err http://de.archive.ubuntu.com natty Release.gpg
Temporary failure resolving 'de.archive.ubuntu.com'
Err http://de.archive.ubuntu.com natty-updates Release.gpg
Temporary failure resolving 'de.archive.ubuntu.com'
Reading package lists... Done
W: Failed to fetch http://de.archive.ubuntu.com/ubuntu/dists/natty/InRelease
W: Failed to fetch http://de.archive.ubuntu.com/ubuntu/dists/natty-updates/InRelease
W: Failed to fetch http://security.ubuntu.com/ubuntu/dists/natty-security/InRelease
W: Failed to fetch http://de.archive.ubuntu.com/ubuntu/dists/natty/Release.gpg Temporary failure resolving 'de.archive.ubuntu.com'
W: Failed to fetch http://security.ubuntu.com/ubuntu/dists/natty-security/Release.gpg Temporary failure resolving 'security.ubuntu.com'
W: Failed to fetch http://de.archive.ubuntu.com/ubuntu/dists/natty-updates/Release.gpg Temporary failure resolving 'de.archive.ubuntu.com'
W: Some index files failed to download. They have been ignored, or old ones used instead.
I have the following access control file
[groups]
admin = robu, jjtl, dat
user = ulo
[/]
@admin = rw
@user = rw
[/wlp]
@admin = rw
[/wesys]
@admin = rw
@user = rw
But the user
group still can browse the wlp
, how can I remove the access? It is working if a take out from the root([/]) but I don't want to do that because we are using trac for repository browsing.
I'm controlling the user authentication to the repository through apache.
So my dav_svn.conf is the following:
AuthType Basic
AuthName "Subversion Repository"
AuthUserFile /etc/apache2/dav_svn.passwd
AuthzSVNAccessFile /etc/apache2/svn_access_control
And the svn_access_control is the following:
[groups]
team = jjtt
admin = robu
[/]
@team = rw
[/wlp]
@team = rw
@admin = rw
[/wesys]
@team = rw
I setup the trac login as well
<LocationMatch "/trac/[^/]+/login">
AuthType Basic
AuthName "Trac"
AuthUserFile /etc/apache2/dav_svn.passwd
Require valid-user
</LocationMatch>
But I want to control the access to the repository browsing as well. In trac I can control a few things, but not the repository access. How can I add to the trac the something like AuthzSVNAccessFile
I had two database, one on windows server, and one on linux server, I moved the database to the linux server, but I faced wit a problem, On windows when a made a selection foe example
SELECT * FROM tabledata
Worked fine.
but linux it's not working, because the original table names is tableData
Is there any way to configuration the mysql to case-insensitive?
I have two pc in a network, now I'm far away from that PC, so because of this I installed Teamwiever. At the moment I can reach one PC(on that pc is running windows 7), I can reach the other PC as well(running ubuntu) but I get only a black screen(after some topic, the reason is the screen saver) :( this is my problem. I want to add some task to the ubuntu.
Is there any way to connect to the Ubuntu PC?
What happens if I delete the ibdata1 file and restart the server, my database is MyISAM, I used InnoDB before but now all tables are MyISAM. Will be a big problem if I delete this file. As far as I know that will be recreated when I restart the server, but I don't understand what exactly is that file!
I have two old mysql servers and now I bought a new server and I want to migrate the files to this server, my question is if I copy all those files to the new server will the mysql recognize this files, or do I have to change some options. Both servers are MyISAM and the new server as well.
UPDATED: Ex:
server one:
table1
table2
table3
server two:
table4
table5
table6
new server:
table1
table2
table3
table4
table5
table6