Skip to content

Instantly share code, notes, and snippets.

@tracend
Last active July 13, 2016 09:38
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save tracend/473cfa7cd7f68a11a119 to your computer and use it in GitHub Desktop.
Save tracend/473cfa7cd7f68a11a119 to your computer and use it in GitHub Desktop.
Ubuntu Macbook - Notes

Problem suspending when closing the lid


Source: http://askubuntu.com/a/361087

Try:

HandleLidSwitch=ignore

$ sudo vi /etc/systemd/logind.conf
$ sudo systemctl restart systemd-logind.service

# Terminal Cheet sheet
## Enable root
sudo su -
## Keyboard backlit
## first make sure the device is writable
sudo chmod 777 /sys/class/leds/smc::kbd_backlight/brightness
# update the $value: 0 - 255
echo $value > /sys/class/leds/smc::kbd_backlight/brightness

Tilda key on Ubuntu:

Reference: http://askubuntu.com/a/553174

Excerpt:

Find the file /usr/share/X11/xkb/symbols/pc, backup it, then open and comment out the line:

key <LSGT> {    [ less, greater, bar, brokenbar ] };

And on the next line, add the following:

key <LSGT> { [ grave, asciitilde, grave, asciitilde ] };

======================================

Disable digital audio port (flashing red light) https://bbs.archlinux.org/viewtopic.php?pid=1492933#p1492933

======================================


Repositories:

Install XAMPP

Download from oficial site the latest version: https://www.apachefriends.org/download.html

Execute:

cd ~/Downloads
# make eexecutable
sudo chmod +x xampp-linux-x64-v.x.y.z-installer.run
# execute
sudo ./xampp-linux-x64-v.x.y.z-installer.run

Change public folder

All KISSCMS sites use a public folder instad of htdocs update by editing this file:

sudo vi /opt/lampp/etc/httpd.conf

Fix access error

When using a symlink folder for your htdocs a 403 errors appears Open /opt/lampp/etc/httpd.conf change nobody and nogroup

<IfModule unixd_module>
#
# If you wish httpd to run as a different user or group, you must run
# httpd as root initially and it will switch.  
#
# User/Group: The name (or #number) of the user/group to run httpd as.
# It is usually good practice to create a dedicated user and group for
# running httpd, as with most system services.
#
User nobody
Group nogroup
</IfModule>

to your username and your group (ex. tracend tracend)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment