Friday, July 20, 2012

Network Configuration in minimal CENTOS 6



install system-config-network-tui and configure using it.

Option #1:

  1. edit /etc/sysconfig/network-scripts/ifcfg-eth0 file manually.
  2. reboot
  3. yum install system-config-network-tui

Option #2:

  1. dhclient eth0 (or whatever the alias of your connected adapter is)
  2. yum install system-config-network-tui


Wednesday, May 30, 2012

Enable sshd on fedora



Enable sshd service.
$ systemctl enable sshd.service
start sshd service
$ systemctl start sshd.service
check sshd status if needed.
$ systemctl status sshd.service
restart sshd service, when needed.
$ systemctl restart sshd.service
stop sshd service and duck down :P
$ systemctl stop sshd.service
well, make sure you have port 22 open.
$ system-config-firewall

Replace Gnome with LXDE in fedora 17





yum groupremove 'GNOME Desktop Environment'

yum groupinstall XFCE

yum groupinstall LXDE


create the file with a editor

/etc/sysconfig/desktop


DISPLAYMANAGER=/usr/sbin/lxdm

PREFERRED=/usr/bin/startlxde


and reboot



to enable vnc session for remote users

/bin/su username -c "/usr/bin/vncserver :1 -geometry 1440x900"




also it can be added in the rc.local so they will be enabled at server startup


/bin/su username2 -c "/usr/bin/vncserver :2 -geometry 1440x900"

/bin/su username3 -c "/usr/bin/vncserver :3 -geometry 1440x900"






How do I change the default runlevel?



systemd uses symlinks to point to the default runlevel. You have to delete the existing symlink first before creating a new one rm /etc/systemd/system/default.target



Switch to runlevel 3 by default ln -sf /lib/systemd/system/multi-user.target /etc/systemd/system/default.target



Switch to runlevel 5 by default ln -sf /lib/systemd/system/graphical.target /etc/systemd/system/default.target