Archive for May, 2018

Thinkpad volume buttons with openbox/lubuntu 18.04

Saturday, May 26th, 2018

Because I copied my old home partition from Linux Mint 17 to Lubuntu 18.04 I had to fix my ~/.config/openbox/lubuntu-rc.xml

<keybind key=”XF86AudioRaiseVolume”>
<action name=”Execute”>
<command>amixer -q sset Master 3%+</command>
</action>
</keybind>

<keybind key=”XF86AudioLowerVolume”>
<action name=”Execute”>
<command>amixer -q sset Master 3%-</command>
</action>
</keybind>

<keybind key=”XF86AudioMute”>
<action name=”Execute”>
<command>amixer -q sset Master 0%</command>
</action>
</keybind>

Thinkpad suspend button with lubuntu 18.04

Saturday, May 26th, 2018

I use Fn-F4 to put my Thinkpad T500 to sleep. So far that worked out of the box with all Linux Versions that I tried. But not this time with lubuntu 18.04. I fixed it like this:

2 new files :

/etc/acpi/events/lenovo-sleep

event=button/sleep SBTN 00000080 00000000 K
action=/etc/acpi/lenovo-sleep.sh

/etc/acpi/lenovo-sleep.sh

#!/bin/sh
pm-suspend

… and 3 commands:

sudo chmod 755 lenovo-sleep.sh
sudo /etc/init.d/acpid restart
sudo apt install pm-utils

Nextcloud Server auf ubuntu oder Linux Mint

Tuesday, May 8th, 2018
apt update
apt-get -y install apache2
apt-get -y install mariadb-server mariadb-client
mysql_secure_installation

(Mysql/MriaDB testen, datenbank und DB-Nutzer anlegen)
mysql -u root -p

...

apt-get -y install php7.0 libapache2-mod-php7.0
systemctl restart apache2
cd /var/www/html/
echo "< ?php phpinfo(); ?>" > info.php
apt-get -y install php7.0-mysql
systemctl restart apache2

mkdir /var/www/html/nextcloud/
cd /var/www/html/nextcloud/

(nextclound als zip herunterladen...)

unzip latest-13.zip 

(ceertbot für Let's encrypt SSL Zertigfikat   https://....  )
apt-get install software-properties-common
add-apt-repository ppa:certbot/certbot
apt-get update
apt install certbot
apt-get install python-certbot-apache   
certbot --apache
apt-get install php7.0-gd php7.0-json php7.0-mysql php7.0-curl php7.0-mbstring
apt-get install php7.0-intl php7.0-mcrypt php-imagick php7.0-xml php7.0-zip
   
cd /var/www/html/nextcloud/
cat .htaccess
vi  /etc/apache2/apache2.conf 

siehe: