You are here

System Notes

Using multiple SSH Private Keys

  • First generate the key with ssh-keygen
  • Create following file ~/.ssh/config.
  • Enter following information:
    Host %enter_a_nice_name%
                     HostName %target%
                     User %username%
                     IdentityFile ~/.ssh/%generated_key_file% (normally in ~/.ssh directory)

  • Do this for your multiple target hosts

LAMP installation Debian

  1. apt-get install apache2
  2. apt‐get install mysql‐server
  3. Set mysql password
  4. apt-get install php5-common libapache2-mod-php5 php5-cli
  5. apt-get install phpmyadmin
  6. systemctl restart apache2
  7. ln -s /var/www/html /usr/share/phpmyadmin

Samba Windows 7 TCP/IP over NETBIOS not working [SOLVED]

Problem was that I could not access Samba shares from my Linux box and OS X.

Looking at the ipconfig results I noticed NetBIOS over TCP/IP is not active. Checking the device in the control panel/Networks showed it was enabled.

No grldr found easy2boot [SOLVED]

  1. Start Windows
  2. Run RMPREPUSB
  3. Select "List large drives" if you have a large drive :)
  4. Select "Install grub4dos"
  5. Select "Yes" for "Yes = MBR-Master Boot Record"
  6. Select "OK"

Raspberry Pi Touchscreen Brightness Control

Using the "echo" command
echo %n% > /sys/class/backlight/rpi_backlight/brightness

%n% represents value between 0 - 255

Change the file permission for /sys/class/backlight/rpi_backlight/brightness to 666. This is not saved on reboot!

To make a permanent change:
1. sudo nano /etc/rc.local
2. Add 1 line above the "exit" line
3. Type in "sudo chmod 666 /sys/class/backlight/rpi_backlight/brightnes"

Change screen Color Profile [Debian Jessie]

Install xcalib
sudo apt-get install xcalib -y
Call for an ICC profile with xcalib.
xcalib -d :0 -s 0 -v /usr/share/color/icc/colord/Bluish.icc

Block a spammers domain [PHP Form]


if (preg_match("/@domainname/", $email_address)){
//turbogames.co domain detected.
$errors .= "\n Error: Niet geldig email adres";
# treat as spambot
}

Fix GRUB na installatie Windows 10 - Debian Jessie

- De Debian DVD of USB Installer starten van 8.10 - live cd Debian 8.10
- Kies voor "Advanced options"
- Kies voor "Graphical rescue" mode
- Standaard keuzes accepteren, check op welk device je CDROM is gemount (Ctrl-Alt-F1 voor console, blkid of df -h)k ies voor de cd-rom voor /dev/sdb* (geef jouw partitie naam)
- Hardware en netwerk wordt geinitialiseerd
- kies willekeurig domein name, click en zo..
- check je harddisk voor partities (Ctrl-Alt-F1 voor console) via blkid en disk -l

Mount SMB share from commandline [OS X]

mount_smbfs //%user%@%server%/%share_name% /Volumes/%mountpoint%

Tilde fix Debian Jessie xfce xsession

# find out what key code is mapping to the "less" and "greater" signs
$ xmodmap -pk | grep greater
60 0x002e (period) 0x003e (greater)
94 0x003c (less) 0x003e (greater) 0x007c (bar) 0x00a6 (brokenbar) 0x007c (bar) 0x00a6 (brokenbar)

# edit (or create) ~/.Xmodmap and include the following line in it
keycode 94 = grave asciitilde

# run xmodmap
$ xmodmap ~/.Xmodmap

For it to autorun on login:

Pages

Subscribe to RSS - System Notes