Words in italics represent a variable.
sudo apt-get update
sudo apt-get upgrade
sudo adduser newusername
When it asks for the user properties:
In room number insert where the user is normally located In Work phone the phone extension of the room. In the home phone, his personal mobile. In the other property, insert the group the user belongs to and who is responsible for him
Then move the home of the user from the default folder to the group folder
sudo mv /home/newusername /home/[cnm|gaips]/
And change it in /etc/passwd:
newusername:x:1000:1000:Some Name,,,:/home/**[cnm|gaips]*/newusername:/bin/bash
Also, create its imap directory structure (TODO this should be in the skel):
maildirmake
sudo userdel oldusername
And to avoid regrets:
sudo mv /home/changethis/oldusername /home/to_delete
(optional) Check if everything is ok at /etc/passwd
sudo passwd username
Upon UNIX prompt for a new password, enter a new one Be sure to confirm by retyping the same new password when prompted again Send the new password to the user who requested the password reset
If the memory reported by free is noticeably different from the sum of ps aux read the slabtool response in this site:
http://stackoverflow.com/questions/5463800/linux-memory-reporting-discrepancy
It is basically being used in the kernel for caching purposes.
Add to the repo list:
deb http://backports.debian.org/debian-backports/ squeeze-backports main
Then:
sudo aptitude -t squeeze-backports install "mosh"
sudo apt-get -t squeeze-backports install "mosh"
Login to the mysql as root user:
mysql -u root -p
Add user "user1" to database "demo":
mysql> CREATE DATABASE demo;
mysql> GRANT ALL ON demo.* TO user1@localhost IDENTIFIED BY 'mypassword';
Check if something is broken:
myisamchk /var/lib/mysql/some_database/*.MYI
To repair tables:
myisamchk -r -q /var/lib/mysql/some_database/*.MYI
mdadm --detail /dev/md*
Managed by:
newlist and rmlist
Old instructions:
comandos newlist e rmlistdevido 'a maquina nao ter ip publico e os nomes gaips e tagus serem cname,os emails podem chegar @inesc-0.tagus.ist.utl.ptpor isso é necessario acrescentar a nova lista na linha 9 do ficheiro/etc/exim/conf.d/router/970_local_mailmandepois recriar a configuracao do exim com dpkg-reconfigure exim4-config (e'automaticamente reiniciado)o ideal seria a maquina ter ip publico e registos mxpor enquanto nao sera' possivel ter dominios virtuais de emailexim -bt [-d] <endereco de email>permite testar se o exim consegue entregar o email
If having problem with other domains then tagus.inesc-id.pt:
In file vim /etc/mailman/mm_cfg.py line 100 add the new host
POSTFIX_STYLE_VIRTUAL_DOMAINS = [ 'tagus.inesc-id.pt', 'gaips.inesc-id.pt' , 'citysdk.ist.utl.pt']Possibly do newaliases comand??? (Please test and correct this doc)
Restart exim4
If nothing works, check if DNS MX record is established for new domain
passwd <username> -u
Basically justs prepends a ! to the user password in /etc/passwd
pvdisplay -> checks the physical volumesvgdisplay -> shows the volume groupslvdisplay -> show the logical volumelvextend -l +100%FREE /dev/mapper/vol_group_root-logical-home /dev/md1 -> Fully extends a vol_groupresize2fs /dev/vol_group_root/logical_home -> Expands a partition