apt-get install w3m
Mittwoch, 22. Dezember 2010
terminal browser
A great terminal web browser for linux is w3m. It is easy to use and works how a browser should work.
horde Auth_imp: Required IMAP extension not found.
I installed the horde webmail groupware on my rackmounted server as it is described in the horde webmail wiki for debian. After I tried to login to my mailaccount via horde I received the following error message
The solution was to install the imap extension for php5:
A fatal error has occurred
Auth_imp: Required IMAP extension not found.
Details have been logged for the administrator.
The solution was to install the imap extension for php5:
apt-get install php5-imap
Labels:
apache2,
debian,
horde,
lenny,
mailserver,
php,
rackmounted,
webmail
Dienstag, 31. August 2010
"sh: /mogrify: No such file or directory"
This has actually nothing to do with specially with debian lenny. This problem can happen on any machine which runs a apache webserver. In a PHP Script I use a ImageMagick function called mogrify to resize the images automatically. It did not work and in my /var/log/apache2/error.log I found this entry:
The solution was very simple. I had activated PHP SafeMode which prevent PHP Scripts from using the exec command. After I deactivated Safe Mode ImageMagick works how it should.
"sh: /mogrify: No such file or directory"
The solution was very simple. I had activated PHP SafeMode which prevent PHP Scripts from using the exec command. After I deactivated Safe Mode ImageMagick works how it should.
Labels:
apache2,
imagemagick,
mogrify,
php,
safemode
Mittwoch, 11. August 2010
lost connection after UNKNOWN
I had this message in the mail.log after I tried to send a mail through my new isp using mozilla thunderbird lost connection after UNKNOWN. The solution was to configure the outgoing server new I use STARTTLS and confirm the certificate again.
Labels:
debian,
lenny,
linux,
mailserver,
postfix
Donnerstag, 5. August 2010
Change Debian Timezone
To change the timezone of your debian machine you can use this command to reconfigure the timezone:
dpkg-reconfigure tzdata
Montag, 12. Juli 2010
MySQL Backup
To create a compressed backup of your MySQL Database you can use the following statement:
mysqldump --all-databases -u user -p'password' | gzip > /path/file-"`date +%F-%H-%M-%S`
".sql.gz
Dienstag, 6. Juli 2010
Change a users home directory also the ftp on standard debian
To change the home directory of a user this line will do that:
usermod -d /path/to/new/homedir/ username
Dienstag, 22. Juni 2010
vhost rackmounted
Warning, old Blogpost!
On a rackmounted vps you have to edit the /etc/apache2/sites-enabled/000-default and add this section at the top:
This is enough at the beginning and you can add as much sections like this to the apache configuration on rackmounted for multiple domains. The support team has done his job with great effort, so I will recommend there products with this refer link which is linked to me http://whmcs.rackmounted.com/aff.php?aff=107
On a rackmounted vps you have to edit the /etc/apache2/sites-enabled/000-default and add this section at the top:
# Use name-based virtual hosting.
#
NameVirtualHost *:80
< VirtualHost *:80 >
##ServerAdmin postmaster@dummy-host2.localhost
DocumentRoot /var/www/folderforyoursubwww/
ServerName yourdomain.com
ServerAlias www.yourdomain.com
##ErrorLog "logs/dummy-host2.localhost-error.log"
##CustomLog "logs/dummy-host2.localhost-access.log" combined
< / VirtualHost>
This is enough at the beginning and you can add as much sections like this to the apache configuration on rackmounted for multiple domains. The support team has done his job with great effort, so I will recommend there products with this refer link which is linked to me http://whmcs.rackmounted.com/aff.php?aff=107
Labels:
apache2,
debian,
lenny,
rackmounted
Montag, 21. Juni 2010
Reset MySQL root password
I will describe, one way to reset the MySQL root password.
turn off mysql
start mysql without any authentication
now you can connect without a password or user
now you can set the new password und flush it
open a second terminal and stop the mysql server again
if you did that you can start the MySQL server
turn off mysql
/etc/init.d/mysql -stop
start mysql without any authentication
mysqld --skip-grant-tables
now you can connect without a password or user
mysql -u root -p
now you can set the new password und flush it
UPDATE mysql.user SET Password=PASSWORD('yournewpassword') WHERE User='root';
FLUSH PRIVILEGES;
open a second terminal and stop the mysql server again
/etc/init.d/mysql stop
if you did that you can start the MySQL server
/etc/init.d/mysql start
Mittwoch, 9. Juni 2010
external mysql access
This has nothing to do with debian lenny
To grant an user the right to access to the mysql database from any other places than local you have add an entry to your user table:
To grant an user the right to access to the mysql database from any other places than local you have add an entry to your user table:
INSERT INTO `mysql`.`user` (
`Host` ,
`User` ,
`Password` ,
`Select_priv` ,
`Insert_priv` ,
`Update_priv` ,
`Delete_priv` ,
`Create_priv` ,
`Drop_priv` ,
`Reload_priv` ,
`Shutdown_priv` ,
`Process_priv` ,
`File_priv` ,
`Grant_priv` ,
`References_priv` ,
`Index_priv` ,
`Alter_priv` ,
`Show_db_priv` ,
`Super_priv` ,
`Create_tmp_table_priv` ,
`Lock_tables_priv` ,
`Execute_priv` ,
`Repl_slave_priv` ,
`Repl_client_priv` ,
`Create_view_priv` ,
`Show_view_priv` ,
`Create_routine_priv` ,
`Alter_routine_priv` ,
`Create_user_priv` ,
`Event_priv` ,
`Trigger_priv` ,
`ssl_type` ,
`max_questions` ,
`max_updates` ,
`max_connections` ,
`max_user_connections`
)
VALUES (
'%', 'dbuser', 'md5pwhash', 'N', 'N', 'N', 'N', 'N', 'N', 'N', 'N', 'N', 'N', 'N', 'N', 'N', 'N', 'N', 'N', 'N', 'N', 'N', 'N', 'N', 'N', 'N', 'N', 'N', 'N', 'N', 'N', '', '0', '0', '0', '0'
);
INSERT INTO `mysql`.`db` (
`Host` ,
`Db` ,
`User` ,
`Select_priv` ,
`Insert_priv` ,
`Update_priv` ,
`Delete_priv` ,
`Create_priv` ,
`Drop_priv` ,
`Grant_priv` ,
`References_priv` ,
`Index_priv` ,
`Alter_priv` ,
`Create_tmp_table_priv` ,
`Lock_tables_priv` ,
`Create_view_priv` ,
`Show_view_priv` ,
`Create_routine_priv` ,
`Alter_routine_priv` ,
`Execute_priv` ,
`Event_priv` ,
`Trigger_priv`
)
VALUES (
'%', 'database', 'dbuser', 'N', 'N', 'N', 'N', 'N', 'N', 'N', 'N', 'N', 'Y', 'Y', 'Y', 'N', 'N', 'N', 'N', 'N', 'N', 'N'
);
flush privileges;
Dienstag, 8. Juni 2010
rkhunter install and use
To install the Rootkit Hunter simply use this command:
After it is installed you can use rkhunter if you type:
apt-get install rkhunter
After it is installed you can use rkhunter if you type:
rkhunter -c
Mittwoch, 2. Juni 2010
Warning: The SSH and rkhunter configuration options should be the same: SSH configuration option 'PermitRootLogin': yes
Warning: The SSH and rkhunter configuration options should be the same:
SSH configuration option 'PermitRootLogin': yes
Rkhunter configuration option 'ALLOW_SSH_ROOT_USER': no
you can change the /etc/ssh/sshd_config and set:
PermitRootLogin no
http://debianforum.de/forum/viewtopic.php?f=37&t=109601
Montag, 31. Mai 2010
Find in Files
A way to find a keyword in files on your system
find . | xargs grep 'keyword' -sl
Labels:
debian,
find in files,
linux
Donnerstag, 29. April 2010
Open port 587 in postfix
The isp of some user were using port 587 instead of the standard port 25. In newer postfix versions it is very easy to make postfix listen on the submission port. To enable it I only had to change my /etc/postfix/master.cf and uncomment the following line:
submission inet n - n - - smtpd
Labels:
debian,
lenny,
mailserver,
postfix
Mittwoch, 14. April 2010
Sorry, your helo has been denied
This is the mail system at host server01.
I'm sorry to have to inform you that your message could not be delivered to one or more recipients. It's attached below.
For further assistance, please send mail to postmaster.
If you do so, please include this problem report. You can delete your own text from the attached returned message.
The mail system
host mx1.gmx.net[213.165.64.102] said: 550-5.7.1 {mx%}
Sorry, your helo has been denied. 550 5.7.1 (
http://portal.gmx.net/serverrules ) (in reply to RCPT TO command)
the solution was to edit the postfix main.cf change myhostname
Labels:
mailserver,
postfix
Donnerstag, 8. April 2010
openbsd-inetd
After I tried to restart inetd with the following command:
I received the message:
Then I typed this:
After the installation the restart works
/etc/init.d/openbsd-inetd restart
I received the message:
Not starting internet superserver: no services enabled
Then I typed this:
apt-get install xinetd
After the installation the restart works
Montag, 22. März 2010
ImageMagick & TYPO3 - AI and PDF problems
I installed TYPO3 4.2 on my machine. If I pass the image test there was still a problem with Read PDF and Read AI files. A solution for me was to install ghostscript:
Now the TYPO3 image processing test was fullfilled sucessful
apt-get install gs
Now the TYPO3 image processing test was fullfilled sucessful
Montag, 8. März 2010
PHP Version
very simple but you have to search if you are new in the whole linux thing:
to find out which version of PHP is running, type this in your shell:
php -v
Montag, 15. Februar 2010
WINE rocks
wine rocks, it was no problem to install pokerstars. also I can play diablo2 after I copied the windows installation to avoid install with wine cause the "I agree" button was not clickable.
Labels:
debian,
diablo2,
lenny,
pokerstars,
wine
USB keyboard and mouse recognition
on each start or reboot i wait more than 1 minute till I can not click or press a keyboard button
on start this lines are shown
on start this lines are shown
unable to enumerate usb device on port
Sound device Problem
on double click on the audio logo:
on click test within the audio configuration:
lscpi
Es konnten keine Gstreamer-Plugins oder Geräte für Mischpultelemente gefunden werden.
on click test within the audio configuration:
audiotestsrc wave=sine freq=512 ! audioconvert ! audioresample ! gconfaudiosink: Could not open audio device for playback
lscpi
00:1b.0 Audio device: Intel Corporation 82801JI (ICH10 Family) HD Audio Controll
Samstag, 13. Februar 2010
This Eclipse build doesn't have support for the integrated browser.
This Eclipse build doesn't have support for the integrated browser.
on start of eclipse, to remove I installed:
apt-get install xulrunner
NVIDIA cc Check
KERNEL-source Error
nvidia driver installation worked after
export CC=/usr/bin/gcc-4.1
apt-get install linux-headers-`uname -r`
sh NVIDIA-Linux-x86_64-190.53-pkg2.run
nvidia driver installation worked after
export CC=/usr/bin/gcc-4.1
apt-get install linux-headers-`uname -r`
sh NVIDIA-Linux-x86_64-190.53-pkg2.run
JVM terminated. Exit code=127 debian
JVM terminated. Exit code=1
/usr/lib/jvm/java-6-openjdk/bin/java
-Djava.library.path=/usr/lib/jni
-Dgnu.gcj.precompiled.db.path=/var/lib/gcj-4.2/classmap.db
-Dgnu.gcj.runtime.VMClassLoader.library_control=never
-Dosgi.locking=none
-jar /usr/lib/eclipse/startup.jar
-os linux
-ws gtk
-arch x86_64
-launcher /usr/lib/eclipse/eclipse
-name Eclipse
-showsplash 600
-exitdata 32800d
-install /usr/lib/eclipse
-vm /usr/lib/jvm/java-6-openjdk/bin/java
-vmargs
-Djava.library.path=/usr/lib/jni
-Dgnu.gcj.precompiled.db.path=/var/lib/gcj-4.2/classmap.db
-Dgnu.gcj.runtime.VMClassLoader.library_control=never
-Dosgi.locking=none
-jar /usr/lib/eclipse/startup.jar
error on eclipse start
runs after I installed sun javadb
Abonnieren
Posts (Atom)
