|
123 | samba | http://www.samba.org/samba/docs/man/Samba-HOWTO-Collection/index.html
http://www.samba.org/samba/docs/man/Samba-HOWTO-Collection/SWAT.html
service swat
{
port = 901
socket_type = stream
wait = no
only_from = localhost
user = root
server = /usr/sbin/swat
log_on_failure += USERID
disable = no
}
|
|
122 | swat | http://www.samba.org/samba/docs/man/Samba-HOWTO-Collection/index.html
http://www.samba.org/samba/docs/man/Samba-HOWTO-Collection/SWAT.html
service swat
{
port = 901
socket_type = stream
wait = no
only_from = localhost
user = root
server = /usr/sbin/swat
log_on_failure += USERID
disable = no
}
|
|
121 | apt-get update. | # dpkg --configure -a
# apt-get update |
|
120 | SLC DNS settings | # in /etc/sysconfig/network-scripts/ifcfg-eth0 like so:
#
# DNS1=xxx.xxx.xxx.xxx
# DNS2=xxx.xxx.xxx.xxx
# DOMAIN=lab.foo.com bar.foo.com
DNS1=130.92.9.53
DNS2=130.92.9.52
DOMAIN=unibe.ch cern.ch
|
|
119 | screen settings | $ xset -q
$ man xset |
|
118 | Trash in /idisk for delete files | # mkdir /idisk/.Trash-1000
chown martinez:1000 /idisk/.Trash-1000/ |
|
117 | JOOMLA Install Pach | Copiar con rsync
-----------------
# cd /idisk/Joomla/Origins/
# rsync -alrv Pach_1.5.9_to_1.5.10/Joomla_1.5.9_to_1.5.10-Stable-Patch_Package/ /idisk/Joomla/joomlaCarmen |
|
116 | Adobe Flash plugin für Firefox unter Ubuntu 9.04 und 9.10 installieren | cmdln:
1.) unter http://get.adobe.com/de/flashplayer/ das paket .deb für Ubuntu 8.04+ auf Desktop speichern
2.)sudo apt-get remove --purge flashplugin-nonfree
3.) cd /home/spegu/Desktop/
4.)sudo dpkg -i install_flash_player_10_linux.deb
5.) Firefox neu starten
6.) about:plugins in Adresszeile eingeben und Installation überprüfen
7.) Unter http://www.adobe.com/de/software/flash/about/ Flash Player überprüfen.
How to install Adobe Flash Plugin 64 Bit for Ubuntu 9.04
--------------------------------------------------------
Download it from :-http://labs.adobe.com/downloads/flashplayer10.html
Unpack the archive and copy the only file (libflashplayer.so) to the Firefox plugins folder in ‘/usr/lib/firefox-addons/plugins‘ :-
Für ubuntu 10.4
# export http_proxy="http://proxy.unibe.ch:80"
# apt-get install flashplugin-installer
Si esto no va
visit:
https://help.ubuntu.com/community/AMD64/FirefoxAndPlugins
# wget http://download.macromedia.com/pub/labs/flashplayer10/flashplayer_square_p1_64bit_linux_091510.tar.gz
# tar xvfz flashplayer_square_p1_64bit_linux_091510.tar.gz
# sudo mv libflashplayer.so /usr/lib/mozilla/plugins/libflashplayer.so
# ln -s /usr/lib/mozilla/plugins/libflashplayer.so /usr/lib/mozilla-firefox/plugins/
|
|
114 | ROOT-Cern installation | get the sources of the latest ROOT
----------------------------------
http://root.cern.ch/drupal/content/downloading-root
----------------------------------
see
http://root.cern.ch/drupal/content/build-prerequisites
----------------------------------
instal gcc und c++ compilers
----------------------------
instal:
subversion
dpkg-dev
make
g++
gcc
binutils
libx11-dev
libxpm-dev
libxft-dev
libxext-dev
apt-get install subversion dpkg-dev make g++ gcc binutils libx11-dev libxpm-dev libxft-dev libxext-dev
----------------------------
sudo ln -s /usr/lib/x86_64-linux-gnu/libX11.so.6.3.0 /usr/lib/libX11.so
sudo ln -s /usr/lib/x86_64-linux-gnu/libXft.so.2.2.0 /usr/lib/libXft.so
sudo ln -s /usr/lib/x86_64-linux-gnu/libXext.so.6.4.0 /usr/lib/libXext.so
----------------------------
$tar xvzf root._version.tar.gz
$cd root
./configure
Linux Mint 12 Lisa:
edit file configure
# enable_asimage \ disabled by L.Martinez
options=" \
enable_afdsmgrd \
enable_afs \
enable_alien \
enable_alloc \
enable_astiff \
enable_bonjour \
----------------------------
make
----------------------------
# mkdir /usr/local/bin/cern
# cp -r root /usr/local/bin/cern
set ROOTSYS to the `root' directory in /etc/profile:
-------------------------------------
export ROOTSYS=/usr/local/bin/cern/root
export PATH=$ROOTSYS/bin:$PATH
export LD_LIBRARY_PATH=$ROOTSYS/lib:$LD_LIBRARY_PATH
" |
|
113 | scanner Agfa e52 | Down load driver scape52.bin
-----------------------------
copy it to /usr/share/sane/snapscan/
-----------------------------------
edit /etc/sane.d/snapscan.conf
------------------------------
firmware /usr/share/sane/snapscan/snape52.bin
/dev/usb/scanner0 bus=usb
make node for scanner
---------------------
mkdir /dev/usb (if not exists)
mknod /dev/usb/scanner0 c 180 48
|
|
112 | Fedora play MP3s | su -
Configuring Package Installation available from rpmfusion:
----------------------------------------------------------
rpm -Uvh http://rpm.livna.org/livna-release.rpm http://download1.rpmfusion.org/free/fedora/rpmfusion-free-release-stable.noarch.rpm http://download1.rpmfusion.org/nonfree/fedora/rpmfusion-nonfree-release-stable.noarch.rpm
Using the GUI to Install/Update Software
-----------------------------------------
yum install PackageKit
install the correct plugin for which MP3 player you want to use:
----------------------------------------------------------------
yum install gstreamer-plugins-ugly |
|
111 | Fedora install Flash in web browser | su -
Install the Adobe repository for yum:
-------------------------------------
rpm -Uvh http://linuxdownload.adobe.com/adobe-release/adobe-release-i386-1.0-1.noarch.rpm
yum install flash-plugin nspluginwrapper.{i386,x86_64} pulseaudio-libs.i386 alsa-plugins-pulseaudio.i386 libcurl.i386
Configure your browser to see the plugin:
-----------------------------------------
mozilla-plugin-config -i -g -v
|
|
110 | Partition > 2 TB | # parted /dev/sdx
Creates a new GPT disklabel i.e. partition table:
mklabel gpt
Create 7 TB partition size:
mkpart primary 0 7001G
Quit and save the changes:
quit
or
# mkfs.ext4 -F -L terabig -F -F /dev/sdb |
|
109 | JOOMLA loadObjectList | database->loadObjectList
Returns an array of database objects using the current SQL query. Returns false if the query fails (prior to Joomla 1.1 returned null).
Syntax
array loadObjectList ( [ string $key ] )
$key
is the field name of a primary key. If $key is empty or null then loadObjectList will return a sequential list of the records returned by the database query. If $key is not empty or null then the array returned will be indexed by the value of the database key. This parameter is optional and if omitted will default to null (empty prior to Joomla 1.1).
Examples
Example:
function getCategories() {
global $database;
$sql = 'SELECT * FROM #__categories';
$database->setQuery( $sql );
$rows = $database->loadObjectList();
foreach ( $rows as $row ) {
echo "$row->title: $row->description\n";
}
}
getCategories();
might produce:
Latest: The latest news from the Joomla Team
Joomla: A selection of links that are all related to the Joomla project.
Newsflash:
Contacts: Contact Details for this web site
|
|
108 | JOOMLA loadRow | function getCategory( $title ) {
global $database;
$title = $database->Quote( $title );
$sql = "SELECT * FROM #__categories WHERE title=$title";
$database->setQuery( $sql );
$category = $database->loadRow();
print_r( $category );
}
getCategory( 'Latest' );
might produce:
Array
(
[0] => 1
[1] => 0
[2] => Latest
[3] => Latest News
[4] => taking_notes.jpg
[5] => 1
[6] => left
[7] => The latest news from the Joomla Team
[8] => 1
[9] => 0
[10] => 2000-00-00 00:00:00
[11] =>
[12] => 0
[13] => 0
[14] => 1
[15] =>
)
|
|
107 | JOOMLA loadRowList | Returns an array of database rows with numeric column indexing. Returns null if the query fails.
Syntax
array loadRowList ( [ string $key ] )
$key
is a field name. If $key is empty then loadRowList will return a sequential list of the database records returned by the current query. If $key is not empty then the array will be indexed by the value of the database key. This parameter is optional and if omitted will default to empty.
Examples
Example: This function prints an array containing records from the Joomla categories table. Note that in this example the array is indexed by the category title field.
function getCategories() {
global $database;
$sql = "SELECT * FROM #__categories";
$database->setQuery( $sql );
$categories = $database->loadRowList( 'title' );
print_r( $categories );
}
getCategories();
might produce:
Array
(
[Latest] => Array
(
[0] => 1
[id] => 1
[1] => 0
[parent_id] => 0
[2] => Latest
[title] => Latest
[3] => Latest News
[name] => Latest News
[4] => taking_notes.jpg
[image] => taking_notes.jpg
[5] => 1
[section] => 1
[6] => left
[image_position] => left
[7] => The latest news from the Joomla Team
[description] => The latest news from the Joomla Team
[8] => 1
[published] => 1
[9] => 0
[checked_out] => 0
[10] => 2000-00-00 00:00:00
[checked_out_time] => 2000-00-00 00:00:00
[11] =>
[editor] =>
[12] => 0
[ordering] => 0
[13] => 0
[access] => 0
[14] => 1
[count] => 1
[15] =>
[params] =>
)
[Joomla] => Array
(
[0] => 66
[id] => 66
[1] => 0
[parent_id] => 0
[2] => Joomla
[title] => Joomla
[3] => Joomla
[name] => Joomla
[4] =>
[image] =>
[5] => com_newsfeeds
[section] => com_newsfeeds
[6] => left
[image_position] => left
[7] =>
[description] =>
[8] => 1
[published] => 1
[9] => 0
[checked_out] => 0
[10] => 0000-00-00 00:00:00
[checked_out_time] => 0000-00-00 00:00:00
[11] =>
[editor] =>
[12] => 2
[ordering] => 2
[13] => 0
[access] => 0
[14] => 0
[count] => 0
[15] =>
[params] =>
)
}
|
|
106 | thunderbird command line | $ thunderbird -compose attachment=file:///home/martinez/.Bestellung/output.pdf |
|
99 | Gimp: Making Colors in a GIF Transparent | 1. Open your image in the gimp.
2. Right click the image and go to LAYERS then ADD ALPHA CHANNEL
3. Right click on the image again and go to SELECT and then down to BY COLOR
4. Now click on the color in the image you want to be transparent. These colors will now show up outlined.
5. Right click on the image again and go to EDIT and then down to CLEAR. This should now erase the outlined color you just picked from the image
6. Right click on the image and choose SAVE AS and make sure to save as a GIF file |
|
92 | Hp Printers unter LINUX (hplip) | Download hplip
http://hplipopensource.com/hplip-web/index.html
mit root Rechte ausfueren:
#sh hplipxxx.run
Nach der ausfuehrung mit user Rechte folgende Command ausfuehren:
martinez@lheppc24:~/hplip$ hp-setup
|
|
91 | rsync windows |
Firewall port 873 oeffnen
rsyncd.conf
===========
use chroot = false
strict modes = false
hosts allow = 130.92.139.51
log file = rsyncd.log
pid file = rsyncd.pid
# Module definitions
# Remember cygwin naming conventions : c:\work becomes /cygwin/c/work
#
[luis]
path = /cygdrive/c/users/martinez/Documents
read only = true
transfer logging = yes
rsync command with modname luis
================================
/usr/bin/rsync -arv root@lheppc72::luis /idisk/backups/lheppc72
|