Various

From Systerserver

Jump to: navigation, search

Contents

SCREEN

Midnight Commander FAQ

http://www.ibiblio.org/mc/FAQ

MC in the Mac OS X terminal

  • if you want FN10 (function key 10) to quit, press ESC and 0
  • likewise ESC 3 to View (FN3), etc....

reset mysql root password

  • /etc/init.d/mysql stop
  • /usr/bin/mysqld_safe --skip-grant-tables &
  • mysql --user=root mysql
  • update user set Password=PASSWORD('BlaBla') WHERE User='root';
  • flush privileges;
  • exit
  • fg and Ctl+C to foreground the mysql service which was running in safe-mode and kill it
  • /etc/init.d/mysql start
  • mysql -u root -p BlaBla
  • exit
  • ps above password is not used anywhere :)
  • pps you need to use sudo or be root to do above

partition, format and label an external disk (hdd, usb, ...)

  • sudo su
  • partitioning: fdisk
  • formatting: mkfs.ext3 /dev/sdb1 or mkfs -t vfat -F 32 /dev/hdb1 or mkfs.vfat -F 32 /dev/hdb1
  • e2label /dev/sdb1 stick
  • tune2fs?

checks before rebooting

  • to see which files are open / in use: smbstatus
  • which services are running and need to be running again after reboot: netstat -paten
  • who's logged on: lsof |grep home
  • what's mounted; after reboot see if the same are mounted again.
  • if ever you do a fscheck, run it in screen.

locales settings

  • dpkg-reconfigure locales
  • en_US.UTF-8-> Unicode for all regions, mostly in 1-3 Octets (new de facto standard)
  • en_US ISO-8859-1 -> western Europe (de facto old standard)
  • en_US.ISO-8859-15 -> western Europe with euro

generate random password

strings /dev/urandom | grep -o 'alnum:' | head -n 12 | tr -d '\n'; echo

first things to install

I've just installed Debian and still need....

  • aptitude, ssh, sudo
  • vim, screen, mc, mtr, iptraf
  • logcheck, cron-apt, denyhosts, failtoban
  • harden-servers and harden-clients

finding information about your monitor

  • install xresprobe, then run for eg:
  • ddcprobe | grep monitorrange

.htaccess

  • is the default name of a directory-level configuration file that allows for decentralized management of web server configuration.

.robots.txt

  • developed in 1994
  • the Robot Exclusion Standard or Protocol, is a convention to prevent web spiders and robots from accessing all or part of a website which is otherwise publicly viewable.

BIOS to disk cylinder limit / boundry

  • 512 cylinder - overcome in mid-94
  • 1024 cylinder
  • 4096 cylinder (1.97 GB) barrier - was overcome after 1996
  • 6322 cylinder barrier (very uncommon)
  • Int13h (7.88 GB) barrier - very common; a BIOS upgrade may be available
  • 65536 cylinder (31.5 GB) barrier - fixed by June 1999
  • ATA28 (128 GB) barrier - found in most systems before 2002