Skip to content

Instantly share code, notes, and snippets.

@Kibur
Created April 4, 2015 10:17
Show Gist options
  • Save Kibur/0cdd077d1fe17a364827 to your computer and use it in GitHub Desktop.
Save Kibur/0cdd077d1fe17a364827 to your computer and use it in GitHub Desktop.
Knoppix
My experiences towards Knoppix
How to prepare KNOPPIX 7.2 as LAMP webserver.
Infact the LAMP stack is already installed on the machine.
But doesn't run on startup. And PhpMyAdmin is not installed.
First start MySQL server and Apache2.
$ sudo /etc/init.d/mysql start
$ sudo /etc/init.d/apache2 start
Now it's time to install PhpMyAdmin.
$ sudo apt-get install phpmyadmin
You can surf on phpmyadmin but you can't login.
We will create a login with all permissions.
Go in the MySQL server:
$ sudo mysql <- opens the MySQL server shell
First create a new user:
mysql> CREATE USER 'knoppix'@'localhost' IDENTIFIED BY 'p455w0rd';
And grant all permissions to our new user.
Otherwise you won't be able to create a database.
mysql> GRANT ALL ON *.* TO 'knoppix'@'localhost';
Now you can log into PhpMyAdmin with user 'knoppix' and password 'p455w0rd'.
And you will be able to do anything.
KNOPPIX time zone configuration
tzconfig <= deprecated (dpkg-reconfigure tzdata)
date -R (current date and time)
NTP sync with internet (Network Time Protocol):
apt-get install ntp
ntpq -p (servers you are syncing with)
date (synced time)
https://wiki.debian.org/NTP
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment