Category Archives: SUSE

About SUSE…

Setup Proxy in SUSE/VCSA

To setup proxy manually in VCSA 5.5 login as root and look into the following file:

/etc/sysconfig/proxy

PROXY_ENABLED=”yes”

HTTP_PROXY=”http://<IP address or FQDN>:<port_number>”

HTTPS_PROXY=”http://<IP address or FQDN>:<port_number>”

FTP_PROXY=”http://<IP address or FQDN>:<port_number>”

NO_PROXY=”localhost, 127.0.0.1″

 

If you need to authenticate via proxy

Create a file in your home directory,

/root/.curlrc with permissions 644

and contain the following:

# Proxy credentials

proxy-user = “<username>:<password>”

source the file to apply the changes

source /root/.curlrc

 

Advertisements

Fixing eth0 in cloned SLES 11 VMware

After cloning SUSE Linux Enterprise Server in VMware its network interface card is assigned to eth1 as opposed to eth0. Thus, no  remote control is possible.

To fix the issue follow those steps:

  1. Navigate to /etc/udev/rules.d
    cd /etc/udev/rules.d
  2. edit the following file: 70-persistent-net.rules
    vim 70-persistent-net.rules
  3. Comment out the second interface(eth1) and replace the eth0’s mac address with eth1:Original file:
    #PCI device 0x8086:0x100f (e1000)
    SUBSYSTEM=="net", ACTION=="add", DRIVERS=="?*", ATTR{address}=="08:00:27:aa:bb:cc", ATTR{type}=="1", KERNEL=="eth*", NAME="eth0"


    #PCI device 0x8086:0x100f (e1000)
    SUBSYSTEM=="net", ACTION=="add", DRIVERS=="?*", ATTR{address}=="08:00:27:aa:bb:dd", ATTR{type}=="1", KERNEL=="eth*", NAME="eth1"

    Modified (fixed) file:
    #PCI device 0x8086:0x100f (e1000)
    SUBSYSTEM=="net", ACTION=="add", DRIVERS=="?*", ATTR{address}=="08:00:27:aa:bb:dd", ATTR{type}=="1", KERNEL=="eth*", NAME="eth0"


    #PCI device 0x8086:0x100f (e1000)
    #SUBSYSTEM=="net", ACTION=="add", DRIVERS=="?*", ATTR{address}=="08:00:27:aa:bb:dd", ATTR{type}=="1", KERNEL=="eth*", NAME="eth1"

  4. Save the file and exit it.
  5. Reboot the machine and you should be all set.

install libstdc++.so.5 on SUSE 10 SP 3 x64

Problem
Install libstdc++.do.5 on SUSE 10 SP3 x64 without installation cd/dvd.

Normally, yast2 can be used to install the missing package
yast2 -i

Solution
To install the missing package you need to have access to the SUSE repository.

then, download the package on your hard disk and install it.
you can either right click on it or use the following command as root:
rpm -ivh file.rpm

After that you should be all set.