Libros y apuntes (books)

Enlaces (links)

Table: cnotas, rows: 162

Page 3 of 9
143 Add service in ubuntu sudo update-rc.d defaults
142 bash strings Given:
We can use these expressions:
path = ${foo%/*}
To get: /tmp/my.dir (like dirname)
file = ${foo##*/}
To get: filename.tar.gz (like basename)
base = ${file%%.*}
To get: filename
ext = ${file#*.}
To get: tar.gz
Note that the last two depend on the assignment made in the second one
Here we notice two different "operators" being used inside the parameters (curly braces). Those are the # and the % operators. We also see them used as single characters and in pairs. This gives us four combinations for trimming patterns off the beginning or end of a string:
Trim the shortest match from the end
Trim the longest match from the beginning
Trim the longest match from the end
Trim the shortest match from the beginning
141 test test
140 JOOMLS hide frames in menu In menu Extensions->module manager
Module edit:
Advanced parametres
Module Class Suffix
and let it blanc
139 ubuntu 10.10 remove daemon von rc.d update-rc.d [-n] [-f] B name remove

$ sudo update-rc.d mediatomb remove
138 Computername ändern # hostname lheppc93

# vi /etc/hosts lheppc93

#vi /etc/hostname
137 Ubuntu install packages # export http_proxy=""

# apt-get install flashplugin-installer
# apt-get install gimp
# apt-get install (k)ubuntu-restricted-extras
# apt-get install mysql-server
# apt-get install phpmyadmin
# apt-get install openssh-server
# apt-get install samba

136 php5 error show edit /etc/php5/apache2/php.ini

; E_USER_DEPRECATED - user-generated deprecation warnings
; Common Values:
; E_ALL & ~E_NOTICE (Show all errors, except for notices and coding standards warnings.)
; E_ALL & ~E_NOTICE | E_STRICT (Show all errors, except for notices)
; E_ALL | E_STRICT (Show all errors, warnings and notices including coding standards.)
; Default Value: E_ALL & ~E_NOTICE
; Development Value: E_ALL | E_STRICT
; Production Value: E_ALL & ~E_DEPRECATED


;error_reporting = E_ALL & ~E_DEPRECATED
135 Nautilus location bar $ gconftool-2 --type=Boolean --set /apps/nautilus/preferences/always_use_location_entry false

you can switch to a text location bar using Ctrl + L.
134 xsane buffer overflow I commented the last line
net autodiscovery
in the file /etc/sane.d/epson2.conf
After that it works.
133 mysql soft link a database # cd /var/lib/mysql
# ln -s /idisk/www/mysql/m_db

edit the file /etc/apparmor.d/usr.sbin.mysqld

restart apparmor:

# /etc/init.d/apparmor restart

add a new line contends:

/idisk/www/mysql/** rwk,

now you can use every database in /idisk/www/mysql
132 Network dns search edit file: /etc/NetworkManager/system-connections
in entry [ipv4]:

131 JOOMLA error loading feeds Para quitar el mensaje, hay que acceder al gestor de módulos - pestaña "administración".
despublicar "Joomla! Security Newsfeed"
130 Network wireless USB Adapter Edimax EW-7711UMn For Karmic (ubuntu 9.10), add "blacklist rt2800usb" to /etc/modprobe.d/blacklist.conf and reboot system
129 vmware-installer-6-5-3
Man braucht 2 Konsolen:

In der ersten führt man folgendes aus:

sudo -i
while true; do killall -9 vmware-modconfig-console; sleep 1; done

In der zweiten startet man den Installer:

sudo ./VMware-Workstation-6.5.3-185404.x86_64.bundle --ignore-errors

Nach der Installation stopt man den Befehl in der ersten Konsole mit “Strg+c” und führt folgendes aus:

vmware-modconfig --console --install-all
128 Network-manager resolv.conf It is really simple. Edit /etc/dhcp3/dhclient.conf and add the following line in there:

prepend domain-name "";
127 synology PATHS

Datenbank mysql

web page

mysql comands

126 mysql start daemon problem Can't connect to local MySQL server through socket '/var/run/mysqld/mysqld.sock' (2)'

This message usually means that networking option is disabled in my.cnf file. To fix this: go to /etc/mysql/my.cnf, comment out the configuration item of skip-networking, then restart your mysql server.


#bind-address =
125 aptitude Uninstalling apps $ sudo aptitude --purge remove program_name
124 Networking Configuration Using Command Line disable NetworkManager permenently
$ sudo update-rc.d NetworkManager remove

That will take it out of the system startup. If you truly want to remove it you can
$ sudo apt-get remove NetworkManager

Configuring Static IP address for your network card
eth0 renamed to eth1, eth2, eth3, ... in domU

Evidently the gutsy domU, noticing that eth0 had a different MAC address than the "saved eth0 MAC address", assigns a brand new eth# and saves the MAC address with the new interface number.


1. Edit /etc/udev/rules.d/70-persistent-net.rules in the domU.
2. Remove dynamically generated lines.
3. Add:

SUBSYSTEM=="net", DRIVERS=="vif", ATTRS{nodename}=="device/vif/0", NAME="eth0"

4. Shut down the domU and restart it.

If you want to configure Static IP address you need to edit the /etc/network/interfaces and you need to enter the following lines replace eth0 with your network interface card

sudo vi /etc/network/interfaces
# The loopback network interface
auto lo
iface lo inet loopback

# The primary network interface
auto eth0
iface eth0 inet static

After entering all the details you need to restart networking services using the following command

sudo /etc/init.d/networking restart

if you don't see lo in ifconfig do:

# ifup lo

Setting up Second IP address or Virtual IP address in Ubuntu

If you are a server system administrator or normal user some time you need to assign a second ipaddress to your Ubuntu machine.For this you need to edit the /etc/network/interfaces file and you need to add the following syntax.Below one is the only example you need to chnage according to your ip address settings

sudo vi /etc/network/interfaces

auto eth0:1
iface eth0:1 inet static
network x.x.x.x
broadcast x.x.x.x
gateway x.x.x.x

You need to enter all the details like address,netmask,network,broadcast and gateways values after entering all the values save this file and you need to restart networking services in debian using the following command to take effect of our new ipaddress.

After entering all the details you need to restart networking services using the following command

sudo /etc/init.d/networking restart

Setting your ubuntu stytem hostname

Setting up your hostname upon a ubuntu installation is very straightforward. You can directly query, or set, the hostname with the hostname command.

As an user you can see your current hostname with

sudo /bin/hostname


To set the hostname directly you can become root and run

sudo /bin/hostname newname

When your system boots it will automatically read the hostname from the file /etc/hostname

If you want to know more about how to setup host name check here

Setting up DNS

When it comes to DNS setup Ubuntu doesn’t differ from other distributions. You can add hostname and IP addresses to the file /etc/hosts for static lookups.

To cause your machine to consult with a particular server for name lookups you simply add their addresses to /etc/resolv.conf.

For example a machine which should perform lookups from the DNS server at IP address would have a resolv.conf file looking like this

sudo vi /etc/resolv.conf

enter the following details