This is a page of "How to" solve some computer problems that may happen.
P = problem; S = solution
#sudo service lightdm restart
#service dovecot start #service dovecot stop #service dovecot restart #sudo /etc/init.d/postfix restart
Install ubuntu-tweak
#sudo add-apt-repository ppa:tualatrix/ppa #sudo apt-get update #sudo apt-get install ubuntu-tweak
Launch ubuntu-tweak from terminal and customize the login screen
http://d.hatena.ne.jp/tama_sh/20120505/1336197629
Install xdvi-ja
# apt-get install xdvik-ja
Font map file: /etc/texmf/vfontmap.d/
Do the following:
# cd /etc/texmf/vfontmap.d/ # mv 20ptex-jisfonts.map 20ptex-jisfonts.map.org # mv 20xdvik-ja.map 20xdvik-ja.map.org # mv 30morisawa.map. 30morisawa.map.org
Next, check the fc-list the name of the Japanese font to use.
$ fc-list | grep Takao Takao P??,TakaoPMincho:style=Regular Takao????,TakaoGothic:style=Regular Takao P????,TakaoPGothic:style=Regular TakaoEx????,TakaoExGothic:style=Regular TakaoEx??,TakaoExMincho:style=Regular Takao??,TakaoMincho:style=Regular
Add the following lines to a file takao.map (create new if not exist) under the directory /etc/texmf/vfontmap.d/
@TakaoMincho-Regular@ rml JIS-H % ASCII pTeX rmlv JIS-V % ASCII pTeX dm JIS-H % NTT jTeX rml-jis JIS-H % ptex-jisfonts
@TakaoGothic-Recular@ gbm JIS-H % ASCII pTeX gbmv JIS-V % ASCII pTeX dg JIS-H % NTT jTeX gbm-jis JIS-H % ptex-jisfonts
Finally, update the registration information of the font
# update-vfontmap
Welcome to Ubuntu 11.10 (GNU/Linux 3.0.0-25-generic x86_64)
* Documentation: https://help.ubuntu.com/
New release '12.04 LTS' available. Run 'do-release-upgrade' to upgrade to it.
*** System restart required ***
Then change the permission
sudo chmod 600 *
warning: Clock skew detected. Your build may be incomplete. Such warning appears in TUBE50
NEED_IDMAPD= yes
NEED_IDMAPD=yesimportant to note: <space> has meaning to separate the variable in sh script.
sudo update-alternatives --config editor
Then press Enter anytime the statement appears
[root@tube40 ~]# emacs /etc/ntp.confThe /etc/ntp.conf file is the main configuration file for Linux NTP in which we place the IP addresses of the servers we want to use. Here we only use one server:
server ntp.tohoku.ac.jp # A stratum 1 server at tohoku.ac.jp #server ntp.redhat.com # A stratum 2 server at redhat.comWe have to restart the NTP process every time we make a change to the configuration file for the changes to take effect on the running process.
[root@tube40 ~]# chkconfig ntpd on
[root@tube40 ~]# /etc/init.d/ntpd start [root@tube40 ~]# /etc/init.d/ntpd stop [root@tube40 ~]# /etc/init.d/ntpd restart
[root@tube40 ~]# /etc/init.d/ntpd stop Shutting down ntpd: [ OK ] [root@tube40 ~]# /usr/sbin/ntpdate -u ntp.tohoku.ac.jp 19 Jan 16:11:08 ntpdate[23079]: adjust time server 130.34.11.117 offset 0.016601 sec [root@tube40 ~]# /usr/sbin/ntpdate -u ntp.tohoku.ac.jp 19 Jan 16:11:09 ntpdate[23080]: adjust time server 130.34.11.117 offset 0.015737 sec [root@tube40 ~]# /usr/sbin/ntpdate -u ntp.tohoku.ac.jp 19 Jan 16:11:13 ntpdate[23081]: adjust time server 130.34.11.117 offset 0.014081 sec [root@tube40 ~]# /etc/init.d/ntpd start Starting ntpd: [ OK ]
Since we do not know what is the process of mount the file. we can not change mtab to snapshot. For a moment, we force mount /home1 and /rsaito on /tmp/home1, /tmp/rsaito
/etc/rc5.d/S28autofs stop mkdir /tmp/home1 mkdir /tmp/rsaito mount -n 192.168.2.100:/home1 /tmp/home1 mount -n 192.168.2.100:/rsaito /tmp/rsaito df
/rsaito/bin/pxe-mount
tube30:/nfsboot/root/etc/mtab
This is a firewall problem of windows.
control panel -> firewall -> add new port ->
Name Esound Port 16001 TCP
This is due to mounting problem again (mount NFS). After checking mount status, it is found that a network harddisk was not unmounted nicely before turning off.
# mount
# umount -f /mnt/backup
# sync # sync # sync
comment out one line in /etc/auto.misc # home1 172.17.4.134:/home1-old
./S28autofs forcerestart
I also delete in /etc/exports
the requests from 172.17.4.184 (nuguraha) 172.17.4.188 (mahabubu) and 172.17.4.127 (furu).
exportfs -a
we also need to restart nfs /etc/rc5.d/S60nfs restart
Then many selection of OS appears. Select one of OS, and press E. Then select kernel and press E again. Then you can edit the command for starting kernel and add "single" in the last of the command. Finally select "b" for booting and single user mode appears. Make /etc/passwd files and exit and runlevel 5 is recovers.
Even if we used NIS, we should not delete /etc/passwd /etc/group and /etc/shadow.