setting permanent environment variable di centos

taken from here

for spring or on centos 7 minimal install

  1. create new file called springRoo.sh on /etc/profile.d/
  2. export PATH={PATH_ROO}/bin
  3. save
  4. source /etc/profile.d/springRoo.sh to reload
  5. and test with reboot the system it will automatically loaded šŸ˜€

centos minimal install networking setup dhcp

pastikan bahwa diĀ /etc/sysconfig/network

NETWORKING=yes

kemudian menujuĀ Ā /etc/sysconfig/network-scripts/ifcfg-eth0

DEVICE=eth0
BOOTPROTO=dhcp
ONBOOT=yes

keterangan lebih jelas dan lengkap diĀ http://www.centos.org/docs/5/html/Deployment_Guide-en-US/s1-dhcp-configuring-client.html

setelah begitu restart server shutdown -h now atau restart network dengan service network restartĀ at /etc/init.d/network restart

centos smart ac 2791 wvdial tanpa usb_modeswitch

cara untuk wvdial pada modem ac 2791 adalah

  1. eject modem pada file browser ( thunar )Ā  atau ( eject /dev/sr0 )
  2. lsusb
  3. Bus 002 Device 003: ID 19d2:ffdd ONDA Communication S.p.A.

  4. modprobe usbserial vendor=0x19d2 product=0xffdd
  5. wvdialconf
  6. gedit /etc/wvdial.conf
  7. [Dialer Defaults]
    Init1 = ATZ
    Init2 = ATQ0 V1 E1 &D2 +FCLASS=0
    Stupid Mode = yes
    Modem Type = Analog Modem
    ISDN = 0
    Phone = #777
    Modem = /dev/ttyUSB0
    Username = smart
    Password = smart
    Baud = 460800

  8. wvdial
  9. voila akses internet pun langsung bisa di gunakan tanpa perlu usb_modeswitch šŸ˜€

nb : jika sudah connected tetapi belum bisa konek ke internet maupun ping

echo “nameserver 8.8.8.8” > /etc/resolv.conf