Home |
Last modified: 16-06-2020 |
Here's a quick guide on how to install Debian 4.0, a.k.a. "Etch" from the 150MB NetInst CD and fetch the rest of the files from the Net.
Debian will use the same language that you chose during the install. If you want to switch to English US after Debian is up and running:
CHECK How to make it sticky between reboots?
xmodmap -e "remove lock = Caps_Lock"
xmodmap: unable to open display ''
setxkbmap -option ctrl:nocaps
Cannot open display "default display"
CHECK uninstalling packages leaves scripts and symlinks under /etc/init.d/ and /etc/rc3.d/
Vi might display "A,B,C,D" when using arrow keys when connecting remotely through SSH: apt-get install vim
apt-get install mc
CHECK How to correct keyboard shortcuts?
apt-get install ntpdate
ntpdate ntp.ubuntu.com (instant time sync)
apt-get install ntp (ntpd provides gradual, regular time sync)
vi /etc/ntp.conf, and add servers close to you, eg. for France:
server 0.fr.pool.ntp.org
server 1.fr.pool.ntp.org
server 2.fr.pool.ntp.org
server 3.fr.pool.ntp.org
/etc/init.d/ntp restart
If you chose to install the basic configuration, SSHd should not be installed : apt-get install ssh. Once it's up and running, you can connect to the server from a remote host if you need to.
By default, you must log on as a non-root user before "su -" to root
If some words aren't displayed in man pages, make sure you set the SSH client application to use black bold text on white background.
Prerequisites:
For testing purposes, here's how to tell rtcwake to not go into suspend mode, wake up in 1mn, and put the computer in suspend mode manually:
rtcwake -m no -u -t $(date +%s -d '1 minute')
echo -n disk
> /sys/power/state
Note that rtcwake above displays the time in UTC, not local time.
Here's how to tell rtcwake to wake up tomorrow at 11:45AM:
rtcwake -m no -u -t $(date +%s -d 'tomorrow 11:45')
To cancel a task, use rtcwake -m disable
Note: rtcwake only runs once. If you need to schedule a cycle of wakeup/suspend every day such as to back up files, add calls in cron:
The server did detect the USB pen drive, but didn't auto-mount it. To do this, edit /etc/fstab, and add the following, using TABs in between columns:
/dev/sda1 /mnt/pen vfat noauto,users 0 0
apt-get install samba
update /etc/samba/smb.conf
/etc/init.d/samba start
CTRL-Z to cancel?
http://www.ibb.net/~anne/keyboard.html
http://www.vim.org/tips/tip.php?tip_id=550
SetEdit
Jed
McEdit
vi /etc/apt/sources.list
#deb cdrom:[Debian GNU/Linux 4.0 r0 _Etch_ - Official i386 NETINST Binary-1 20070407-11:29]/ etch contrib main
apt-get update
dpkg -l php*
dpkg -l apache* | grep ^i
dpkg -L php5-mysql
dpkg -S php.ini
apt-get install apache2
Why need to edit /etc/apache2/sites-available/default to remove RedirectMatch ^/$ /apache2-default/?
debian:/etc/apache2# pwd
/etc/apache2
debian:/etc/apache2# ll
total 60
drwxr-xr-x 7 root root 4096 2007-07-16 22:08 .
drwxr-xr-x 59 root root 4096 2007-07-16 23:25 ..
-rw-r--r-- 1 root root 24175 2007-03-27 14:53 apache2.conf
drwxr-xr-x 2 root root 4096 2007-07-16 22:08 conf.d
-rw-r--r-- 1 root root 895 2007-03-27 14:58 envvars
-rw-r--r-- 1 root root 0 2007-07-16 22:08 httpd.conf
drwxr-xr-x 2 root root 4096 2007-07-16 23:25 mods-available
drwxr-xr-x 2 root root 4096 2007-07-16 23:25 mods-enabled
-rw-r--r-- 1 root root 10 2007-07-16 22:08 ports.conf
drwxr-xr-x 2 root root 4096 2007-07-16 23:26 sites-available
drwxr-xr-x 2 root root 4096 2007-07-16 22:08 sites-enabled
apt-get install php5
/usr/share/php5/php.ini-dist
vi /etc/php5/apache2/php.ini
extension=mysql.so
apt-get install postfix postfix-mysql postfix-pgsql postfix-ldap postfix-pcre sasl2-bin libsasl2-modules resolvconf postfix-cdb
/etc/postfix/main.cf
/etc/init.d/postfix reload
debian:/etc/apache2# ll /var/spool/postfix/
total 76
drwxr-xr-x 19 root root 4096 2007-07-16 23:54 .
drwxr-xr-x 4 root root 4096 2007-07-16 23:55 ..
drwx------ 2 postfix root 4096 2007-07-16 23:50 active
drwx------ 2 postfix root 4096 2007-07-16 23:50 bounce
drwx------ 2 postfix root 4096 2007-07-16 23:50 corrupt
drwx------ 2 postfix root 4096 2007-07-16 23:50 defer
drwx------ 2 postfix root 4096 2007-07-16 23:50 deferred
drwxr-xr-x 2 root root 4096 2007-07-16 23:54 etc
drwx------ 2 postfix root 4096 2007-07-16 23:50 flush
drwx------ 2 postfix root 4096 2007-07-16 23:50 hold
drwx------ 2 postfix root 4096 2007-07-16 23:50 incoming
drwxr-xr-x 2 root root 4096 2007-07-16 23:54 lib
drwx-wx--T 2 postfix postdrop 4096 2007-07-16 23:50 maildrop
drwxr-xr-x 2 postfix root 4096 2007-07-16 23:50 pid
drwx------ 2 postfix root 4096 2007-07-16 23:54 private
drwx--s--- 2 postfix postdrop 4096 2007-07-16 23:54 public
drwx------ 2 postfix root 4096 2007-07-16 23:50 saved
drwx------ 2 postfix root 4096 2007-07-16 23:50 trace
drwxr-xr-x 3 root root 4096 2007-07-16 23:50 usr
debian:/etc/apache2# postfix set-permissions
chown: cannot access `/usr/lib/postfix/dict_sdbm.so': No such file or directory
debian:/etc/apache2# apt-get -s install postfix-sdbm
E: Couldn't find package postfix-sdbm
DEL doesn't work in Nano : deletes previous character instead of following character -> edit /etc/nanorc, and add this "set rebinddelete"
Doesn't support FR keyboard: "un probl�me de connexion"
Doesn't go to end of line when hitting End key
Tried a RealTek, then a DLink, same error:
PunBB, etc. http://packages.debian.org/stable/web/
# less /etc/dpkg/origins/debian
Vendor: Debian
Vendor-URL: http://www.debian.org/
Bugs: debbugs://bugs.debian.org
dpkg is a tool to install, build, remove and manage Debian packages. The primary and more user-friendly front-end for dpkg is dselect. dpkg can be also be used as a front-end to dpkg-deb.
apt-get is the command-line tool for handling packages, and may be considered the user's "back-end" to other tools using the APT library. Several "front-end" interfaces exist, such as dselect), aptitude, synaptic, gnome-apt and wajig.
"update" is used to resynchronize the package index files from their sources. The indexes of available packages are fetched from the location(s) specified in /etc/apt/sources.list. "upgrade" is used to install the newest versions of all packages currently installed on the system from the sources enumerated in /etc/apt/sources.list.
SetEdit : OK
MCEdit : OK
ne : OK (F1 for menu)
Jed : OK
Nano/MicroEmacs?
Le Editor : only old version in Debian repository
To search repositories for new software to install:
apt-get update ; apt-get search
apt-cache search "*emacs" = BAD???
http://newbiedoc.sourceforge.net/tutorials/apt-get-intro/info.html.en