Dealing with FreeBSD 6 as a desktop - miscellaneous notes
"PROPER ORDER TO UPGRADE XORG
portupgrade imake
portupgrade xorg-libraries
portupgrade all other xorg stuff (server, clients, fonts etc..)
Further steps:
Read /usr/ports/UPDATING
=================================
OPENOFFICE - TOOL TO AUTO-INSTALL DICTIONARIES
http://lingucomponent.openoffice.org/auto_instal.html
*** DicOOo Macro: Multi-Platform, Multi-Language, On/Off-Line Dictionary Installer
The macro in DicOOo.sxw, created by Laurent Godard, is a multi-platform solution for installing dictionaries.
Related links:
DicOOo: On/Off-Line Dictionary Installer & Dictionary Packs
http://lingucomponent.openoffice.org/dictpack.html
http://lingucomponent.openoffice.org/download_dictionary.html
=================================
Setting locale to make OpenOffice accept local characters
Add to ~/.profile:
LANG=pt_PT.ISO8859-15; export LANG
MM_CHARSET=ISO-8859-15; export MM_CHARSET
Reference:
http://www.freebsd.org/doc/en_US.ISO8859-1/books/handbook/using-localiza...
=================================
MPLAYER - Give console permissions to access direct rendering
/etc/devfs.conf
# Try to give access to mplayer
perm console 0660
=================================
MOUNTING WINDOWS SHARES ON LAN WITH SMBFS
usage: mount_smbfs [-E cs1:cs2] [-I host] [-L locale] [-M crights:srights]
[-N] [-O cowner:cgroup/sowner:sgroup] [-R retrycount]
[-T timeout] [-W workgroup] [-c case] [-d mode] [-f mode]
[-g gid] [-n opt] [-u uid] //user@server/share node
mount_smbfs -I remoteIP //guest@REMOTEPCNAME/remotedirpath /local/mount/path
=================================
USING A SERIAL MODEM WITH A USB TO SERIAL ADAPTER OR A USB MODEM ON USB
kldload uplcom
-> creates /dev/ucom0
-> this acts as a tty (serial port)
man uplcom
man ucom
Note: uplcom won't attach if there's already a ugen on. If that's the case, you will need to load uplcom first, and plug the USB to serial adapter only after.
http://www.freebsd.org/doc/en_US.ISO8859-1/books/handbook/ppp-and-slip.html
Manual start:
ppp
dial defined_connection_name
Automatically start upon need/program request:
# ppp -auto defined_connection_name
=================================
LISA – CONFIGURATION
/usr/local/etc/lisa.sh
/usr/local/etc/lisarc
=================================
LINNEIGHBORHOOOD MOUNT OPTIONS
To mount shares with LinNeighborhood, there are the following possibilities:
- run it as root. (not recommended)
- give LinNeighborhood the suid flag (not recommended)
- give mount_smbfs and umount the suid flag (very bad!)
- install and configure sudo correctly and replace mount_smbfs and umount
in the preferences by ""sudo mount_smbfs"" and ""sudo umount"" (recommended).
Make sure, that all sudo rules concerning mount and umount have the
NOPASSWD flag. Otherwise two password questions might occur (one
from sudo and one from mount_smbfs) which will definitely go wrong.
=================================
RUNNING SMARTCTL TO MONITOR HD DRIVES
To check the status of drives, use the following:
${PREFIX}/sbin/smartctl -a ad0 for first ATA drive
${PREFIX}/sbin/smartctl -a da0 for first SCSI drive
To enable monitor of drives, you can use ${PREFIX}/sbin/smartd
A sample configuration file has been installed as ${PREFIX}/etc/smartd.conf.sample
Copy this file to ${PREFIX}/etc/smartd.conf and edit appropriately
To have smartd start at boot
cp ${PREFIX}/etc/rc.d/smartd.sh.sample ${PREFIX}/etc/rc.d/smartd.sh
chmod 555 ${PREFIX}/etc/rc.d/smartd.sh
=================================
ATA UTILITY
man ataidle
=================================
SMARTMONTOOLS
smartmontools has been installed
To check the status of drives, use the following:
${PREFIX}/sbin/smartctl -a ad0 for first ATA drive
${PREFIX}/sbin/smartctl -a da0 for first SCSI drive
To enable monitor of drives, you can use ${PREFIX}/sbin/smartd
A sample configuration file has been installed as ${PREFIX}/etc/smartd.conf.sample
Copy this file to ${PREFIX}/etc/smartd.conf and edit appropriately
To have smartd start at boot
echo 'smartd_enable=""YES""' >> /etc/rc.conf
=================================
SYMLINK TO USE THE LINUX JAVA PLUGIN WITH FIREFOX
http://www.eldemonio.org/documentos/lectura/freebsd/java.html
ln -s /usr/local/linux-sun-jdk1.4.2/jre/plugin/i386/ns610/libjavaplugin_oji.so /usr/X11R6/lib/browser_plugins
According to
http://plugindoc.mozdev.org/faqs/java.html
use instead (since it is the Linux JVM 1.4.2):
usr/local/linux-sun-jdk1.4.2/jre/plugin/i386/ns610-gcc32/libjavaplugin_oji.so
meaning:
ln -s /usr/local/linux-sun-jdk1.4.2/jre/plugin/i386/ns610-gcc32/libjavaplugin_oji.so /usr/X11R6/lib/browser_plugins
Also:
«In BSD (freebsd) I find you get an error if you do not have the linux compatibility mode linprocfs mounted
mount -t linprocfs linprocfs /compat/linux/proc
there is of course also an fstab entry you can use for this ... check your mount_{fs} m»
"
portupgrade imake
portupgrade xorg-libraries
portupgrade all other xorg stuff (server, clients, fonts etc..)
Further steps:
Read /usr/ports/UPDATING
=================================
OPENOFFICE - TOOL TO AUTO-INSTALL DICTIONARIES
http://lingucomponent.openoffice.org/auto_instal.html
*** DicOOo Macro: Multi-Platform, Multi-Language, On/Off-Line Dictionary Installer
The macro in DicOOo.sxw, created by Laurent Godard, is a multi-platform solution for installing dictionaries.
Related links:
DicOOo: On/Off-Line Dictionary Installer & Dictionary Packs
http://lingucomponent.openoffice.org/dictpack.html
http://lingucomponent.openoffice.org/download_dictionary.html
=================================
Setting locale to make OpenOffice accept local characters
Add to ~/.profile:
LANG=pt_PT.ISO8859-15; export LANG
MM_CHARSET=ISO-8859-15; export MM_CHARSET
Reference:
http://www.freebsd.org/doc/en_US.ISO8859-1/books/handbook/using-localiza...
=================================
MPLAYER - Give console permissions to access direct rendering
/etc/devfs.conf
# Try to give access to mplayer
perm console 0660
=================================
MOUNTING WINDOWS SHARES ON LAN WITH SMBFS
usage: mount_smbfs [-E cs1:cs2] [-I host] [-L locale] [-M crights:srights]
[-N] [-O cowner:cgroup/sowner:sgroup] [-R retrycount]
[-T timeout] [-W workgroup] [-c case] [-d mode] [-f mode]
[-g gid] [-n opt] [-u uid] //user@server/share node
mount_smbfs -I remoteIP //guest@REMOTEPCNAME/remotedirpath /local/mount/path
=================================
USING A SERIAL MODEM WITH A USB TO SERIAL ADAPTER OR A USB MODEM ON USB
kldload uplcom
-> creates /dev/ucom0
-> this acts as a tty (serial port)
man uplcom
man ucom
Note: uplcom won't attach if there's already a ugen on. If that's the case, you will need to load uplcom first, and plug the USB to serial adapter only after.
http://www.freebsd.org/doc/en_US.ISO8859-1/books/handbook/ppp-and-slip.html
Manual start:
ppp
dial defined_connection_name
Automatically start upon need/program request:
# ppp -auto defined_connection_name
=================================
LISA – CONFIGURATION
/usr/local/etc/lisa.sh
/usr/local/etc/lisarc
=================================
LINNEIGHBORHOOOD MOUNT OPTIONS
To mount shares with LinNeighborhood, there are the following possibilities:
- run it as root. (not recommended)
- give LinNeighborhood the suid flag (not recommended)
- give mount_smbfs and umount the suid flag (very bad!)
- install and configure sudo correctly and replace mount_smbfs and umount
in the preferences by ""sudo mount_smbfs"" and ""sudo umount"" (recommended).
Make sure, that all sudo rules concerning mount and umount have the
NOPASSWD flag. Otherwise two password questions might occur (one
from sudo and one from mount_smbfs) which will definitely go wrong.
=================================
RUNNING SMARTCTL TO MONITOR HD DRIVES
To check the status of drives, use the following:
${PREFIX}/sbin/smartctl -a ad0 for first ATA drive
${PREFIX}/sbin/smartctl -a da0 for first SCSI drive
To enable monitor of drives, you can use ${PREFIX}/sbin/smartd
A sample configuration file has been installed as ${PREFIX}/etc/smartd.conf.sample
Copy this file to ${PREFIX}/etc/smartd.conf and edit appropriately
To have smartd start at boot
cp ${PREFIX}/etc/rc.d/smartd.sh.sample ${PREFIX}/etc/rc.d/smartd.sh
chmod 555 ${PREFIX}/etc/rc.d/smartd.sh
=================================
ATA UTILITY
man ataidle
=================================
SMARTMONTOOLS
smartmontools has been installed
To check the status of drives, use the following:
${PREFIX}/sbin/smartctl -a ad0 for first ATA drive
${PREFIX}/sbin/smartctl -a da0 for first SCSI drive
To enable monitor of drives, you can use ${PREFIX}/sbin/smartd
A sample configuration file has been installed as ${PREFIX}/etc/smartd.conf.sample
Copy this file to ${PREFIX}/etc/smartd.conf and edit appropriately
To have smartd start at boot
echo 'smartd_enable=""YES""' >> /etc/rc.conf
=================================
SYMLINK TO USE THE LINUX JAVA PLUGIN WITH FIREFOX
http://www.eldemonio.org/documentos/lectura/freebsd/java.html
ln -s /usr/local/linux-sun-jdk1.4.2/jre/plugin/i386/ns610/libjavaplugin_oji.so /usr/X11R6/lib/browser_plugins
According to
http://plugindoc.mozdev.org/faqs/java.html
use instead (since it is the Linux JVM 1.4.2):
usr/local/linux-sun-jdk1.4.2/jre/plugin/i386/ns610-gcc32/libjavaplugin_oji.so
meaning:
ln -s /usr/local/linux-sun-jdk1.4.2/jre/plugin/i386/ns610-gcc32/libjavaplugin_oji.so /usr/X11R6/lib/browser_plugins
Also:
«In BSD (freebsd) I find you get an error if you do not have the linux compatibility mode linprocfs mounted
mount -t linprocfs linprocfs /compat/linux/proc
there is of course also an fstab entry you can use for this ... check your mount_{fs} m»
"
Ligações + recentes
Blogue de David Andrade c/ sensibilidade para o mobile learning e avulsa compilação de recursos (por ex. para o Palm OS).
Algo far fecthed e com enfoque nos E.U.A.
Big lists of free online courses, Web tools, learning games, and other resources for lifelong learners are relatively easy to find, but sites with a serious focus on helping people along the journey of self-education are fewer and farther between. Here are five you may want to bookmark or add to your feed reader.