jeltsch's blog

RPM management

Example: The quanta package

rpm -q quanta Check whether and which version of quanta is installed

rpm -ql quanta List all files (and their installation location) that are provided by the quanta package

rpm -ivh quanta Install quanta

rpm -e quanta Erase (deinstall) quanta

rpm -aq | grep quanta If you don't know exactly what you are looking for you can list all packages and grep them with a substring.

rpm -q -f filename Search for rpm packages that provide filename

VNC server (aka KDE Desktop Sharing) under Suse 9

Suse 9 has an inbuilt VNC server called KDE Desktop sharing (under the System -> Remote Access menu). It can be configured in the Control Center -> Internet & Network. Unlike when you start up VNC via the command line ("vncserver") this tool doesn't start a new X desktop, but connects to your already existing X desktop. It is possible to run in addition to the inbuilt KDE Desktop Sharing a normal vncserver that starts its own X sessions.

MySQL install

After installing the Suse 9 rpm, execute the following commands:

sudo /usr/bin/mysql_install_db
(Creating default databases & permissions. Apparently the same can be done by "sudo rcmysql start")

sudo /usr/bin/mysqld_safe --user=mysql &
(Start the server for the first time)
REMEMBER TO SET A PASSWORD FOR THE MySQL root USER ! This is done with:

/usr/bin/mysqladmin -u root password 'new-password' /usr/bin/mysqladmin -u root -h hostname password 'new-password'

Pages