user: root
passwd: gurugu
Rows: 155
idtitulocontenidotipo
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 disable
d in my.cnf file. To fix this: go to /etc/mysql/my.cnf, comm
ent out the configuration item of skip-networking, then rest
art your mysql server.

/etc/mysql/my.cnf

#bind-address = 127.0.0.1

computer
125
aptitude Uninstalling apps
$ sudo aptitude --purge remove program_name
computer
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 wa
nt 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 br
and new eth# and saves the MAC address with the new interfac
e number.

Solution:

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}=="de
vice/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 follow
ing 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
address 192.168.3.90
gateway 192.168.3.1
netmask 255.255.255.0
network 192.168.3.0
broadcast 192.168.3.255

After entering all the details you need to restart networkin
g 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 m
achine.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 add
ress settings

sudo vi /etc/network/interfaces

auto eth0:1
iface eth0:1 inet static
address 192.168.1.60
netmask 255.255.255.0
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,netwo
rk,broadcast and gateways values after entering all the valu
es save this file and you need to restart networking service
s in debian using the following command to take effect of ou
r new ipaddress.

After entering all the details you need to restart networkin
g 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 hostnam
e with the hostname command.

As an user you can see your current hostname with

sudo /bin/hostname

Example

To set the hostname directly you can become root and run

sudo /bin/hostname newname

When your system boots it will automatically read the hostna
me 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 othe
r distributions. You can add hostname and IP addresses to th
e file /etc/hosts for static lookups.

To cause your machine to consult with a particular server fo
r 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 192.168.3.2 would have a resolv.con
f file looking like this

sudo vi /etc/resolv.conf

enter the following details

search test.com
nameserver 192.168.3.2
computer
123
samba
http://www.samba.org/samba/docs/man/Samba-HOWTO-Collection/i
ndex.html
http://www.samba.org/samba/docs/man/Samba-HOWTO-Collection/S
WAT.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/i
ndex.html
http://www.samba.org/samba/docs/man/Samba-HOWTO-Collection/S
WAT.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
}

computer
121
apt-get update.
# dpkg --configure -a
# apt-get update
computer
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

computer
119
screen settings
$ xset -q
$ man xset
computer
118
Trash in /idisk for delete files
# mkdir /idisk/.Trash-1000
chown martinez:1000 /idisk/.Trash-1000/
computer
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-St
able-Patch_Package/ /idisk/Joomla/joomlaCarmen
computer
Records: 155
Edit
id: 126
titulo: mysql start daemon problem
contenido:





Can't connect to local MySQL server thro
ugh socket '/var/run/mysqld/mysqld.sock'
(2)'

This message usually means that networki
ng option is disabled in my.cnf file. To
fix this: go to /etc/mysql/my.cnf, comm
ent out the configuration item of skip-n
etworking, then restart your mysql serve
r.

/etc/mysql/my.cnf

#bind-address = 127.0.0.1

tipo: computer
Edit
id: 125
titulo: aptitude Uninstalling apps
contenido: $ sudo aptitude --purge remove program_n
ame
tipo: computer
Edit
id: 124
titulo: Networking Configuration Using Command L
ine
contenido:



































































































disable NetworkManager permenently
----------------------------------
$ sudo update-rc.d NetworkManager remove


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


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


Evidently the gutsy domU, noticing that
eth0 had a different MAC address than th
e "saved eth0 MAC address", assigns a br
and new eth# and saves the MAC address w
ith the new interface number.

Solution:

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

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

4. Shut down the domU and restart it.



If you want to configure Static IP addre
ss you need to edit the /etc/network/int
erfaces and you need to enter the follow
ing 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
address 192.168.3.90
gateway 192.168.3.1
netmask 255.255.255.0
network 192.168.3.0
broadcast 192.168.3.255

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 as
sign a second ipaddress to your Ubuntu m
achine.For this you need to edit the /et
c/network/interfaces file and you need t
o add the following syntax.Below one is
the only example you need to chnage acco
rding to your ip address settings

sudo vi /etc/network/interfaces

auto eth0:1
iface eth0:1 inet static
address 192.168.1.60
netmask 255.255.255.0
network x.x.x.x
broadcast x.x.x.x
gateway x.x.x.x

You need to enter all the details like a
ddress,netmask,network,broadcast and gat
eways values after entering all the valu
es save this file and you need to restar
t networking services in debian using th
e following command to take effect of ou
r 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 i
nstallation is very straightforward. You
can directly query, or set, the hostnam
e with the hostname command.

As an user you can see your current host
name with

sudo /bin/hostname

Example

To set the hostname directly you can bec
ome root and run

sudo /bin/hostname newname

When your system boots it will automatic
ally read the hostname from the file /et
c/hostname

If you want to know more about how to se
tup 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 th
e file /etc/hosts for static lookups.

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

For example a machine which should perfo
rm lookups from the DNS server at IP add
ress 192.168.3.2 would have a resolv.con
f file looking like this

sudo vi /etc/resolv.conf

enter the following details

search test.com
nameserver 192.168.3.2
tipo: computer
Edit
id: 123
titulo: samba
contenido:












http://www.samba.org/samba/docs/man/Samb
a-HOWTO-Collection/index.html
http://www.samba.org/samba/docs/man/Samb
a-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
}

tipo:
Edit
id: 122
titulo: swat
contenido:












http://www.samba.org/samba/docs/man/Samb
a-HOWTO-Collection/index.html
http://www.samba.org/samba/docs/man/Samb
a-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
}

tipo: computer
Edit
id: 121
titulo: apt-get update.
contenido: # dpkg --configure -a
# apt-get update
tipo: computer
Edit
id: 120
titulo: SLC DNS settings
contenido:






# in /etc/sysconfig/network-scripts/ifc
fg-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

tipo: computer
Edit
id: 119
titulo: screen settings
contenido: $ xset -q
$ man xset
tipo: computer
Edit
id: 118
titulo: Trash in /idisk for delete files
contenido: # mkdir /idisk/.Trash-1000
chown martinez:1000 /idisk/.Trash-1000/
tipo: computer
Edit
id: 117
titulo: JOOMLA Install Pach
contenido:


Copiar con rsync
-----------------

# cd /idisk/Joomla/Origins/
# rsync -alrv Pach_1.5.9_to_1.5.10/Jooml
a_1.5.9_to_1.5.10-Stable-Patch_Package/
/idisk/Joomla/joomlaCarmen
tipo: computer