-
-
Save xandrucea/11067587 to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
TO SOLVE | |
-------- | |
:80 already in use. change from tomcat to apache | |
pi itself | |
--------- | |
cat [filename] | |
print file | |
cat [filename] | less | |
enter => move one row | |
space => move one page | |
grep 'Accepted password' /var/log/auth.log | |
locate [filename] | |
mkdir [dirname] | |
touch [filename] | |
pwd | |
get the path | |
rm [filename/emtpyFolder] | |
rm -R [folderWithAllFiles] | |
-R rekursiv | |
ws -w | |
print nr of words in file | |
sudo apt-get update | |
sudo apt-get upgrade | |
sudo groupadd [groupname] | |
sudo usermod -a -G [groupname] [groupname] | |
pi useful directories | |
--------------------- | |
/var/log/auth.log | |
login log | |
/etc/tomcat7/web.xml | |
/etc/tomcat7/server.xml | |
installing apache webserver, php & sql db (http://bit.ly/1i3b0BT) | |
------------------------------------------ | |
sudo nano /etc/apache2/apache2.conf | |
ServerName [dyndns-url] | |
sudo nano /etc/hosts | |
127.0.1.1 owncloud | |
sudo nano /etc/apache2/sites-enabled/000-default | |
---> AllowOverride All | |
sudo nano /etc/php5/apache2/php.ini | |
upload_max_filesize = 2G | |
post_max_size = 2G | |
sudo rm /var/www/index.html | |
(if index.html available) | |
sudo a2enmod rewrite | |
sudo a2enmod headers | |
sudo /etc/init.d/apache2 restart | |
nano | |
---- | |
ctrl + w search |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment