Skip to main content

Posts

about systemd: how to change default runlevel (previously using inittab)

systemd does not use /etc/inittab file to 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 example to switch to runlevel 3 : # ln -sf /lib/systemd/system/multi-user.target /etc/systemd/system/default.target next example if you want to switch to run level 5 : # ln -sf /lib/systemd/system/graphical.target /etc/systemd/system/default.target another options that may apply : poweroff.target --> runlevel 0 rescue.target    --> runlevel 1 multi.user.target --> runlevel 2,3,4 graphical.target --> runlevel 5 reboot.target --> runlevel 6 source: http://fedoraproject.org/wiki/Systemd

about rdesktop commands

basic usage to access the remote server $ rdesktop (serveraddr) example to access the computer on 192.168.1.1 $ rdesktop 192.168.1.1 to enable full screen mode $ rdesktop -f 192.168.1.1 to set spesific windows size $ rdesktop -g 800x600 192.168.1.1 (some common screen resolution can be use: 800x600, 1024x768, 1280x1024) sharing files to share a local directory with windows os remote server $ rdesktop -r disk:(sharename)=(path) (serveraddr) example to access the remote server on 192.168.1.1 and the sharing directory /home/vadya/pub/ using network share name "sharing" $ rdesktop -r disk:sharing=/home/vadya/pub 192.168.1.1 optimizing speed enabling compression (-z) and disabling mouse events (-m) will reduce network bandwidth and can make the connection much more responsive.  $ rdesktop -z -m 192.168.1.1 using a smaller color palette helps reduce network bandwidth $ rdesktop -a 16 192.168.1.1 source: http://wiki.rrc.uic.edu/wiki/RRC-SCS:_Using_rd...

openfire: instant messaging server

Openfire is a powerful instant messaging (IM) and chat server that implements the XMPP protocol. This document will guide you through installing Openfire. For a full list of features and more information, please visit the Openfire website: http://www.igniterealtime.org/projects/openfire/ A. INSTALLATIONS first download the binary package from : http://www.igniterealtime.org/openfire-3.8.1-1.i386.rpm then r un it using your package manager to install Openfire to /opt/openfire (as root): rpm -ivh openfire_3_0_0.rpm Note: if you are using the .tar.gz build, it does not contain a bundled Java runtime (JRE). Therefore, you must have JDK or JRE 1.5.0 (Java 5) or later installed on your system. You can check your java version by typing "java -version" at the command line and (if necessary) upgrade your Java installation by visiting http://java.sun.com. B. SETUP the database In the Openfire setup tool, use the following values: driver: com.mysql.jdbc...

sysVinit versus systemd

here are examples of the systemctl version of a few common chkconfig and service commands. 1. to list processes # chkconfig --list # systemctl list-units 2. to enable a service # chkconfig (servicename) on # systemctl enable (servicename).service 3. to disable a service # chkconfig (servicename) off # systemctl disable(servicename).service 4. to start a service # service (servicename) start # systemctl start (servicename).service 5. to stop a service # service (servicename) stop # systemctl stop (servicename).service 6. to see the status of a service # service (servicename) status # systemctl status (servicename).service or # systemctl is-active (servicename).service source: http://fedoraproject.org/wiki/SysVinit_to_Systemd_Cheatsheet

how to create guest headless VMs

create VMs in guest headless mode guest headless is a term to create virtual guest by using the linux terminal (CLI). the computer server facilitates installation through command lines, and guest installation process will be done by remote application (ssh). here are the steps how to create fedora 18 (for example) virtual machine using image file (iso).  1. creating guest name $ VBoxManage createvm --name "fedora 18" --register 2. allocating amounts of RAM and networking type $ VBoxManage modifyvm "fedora 18" --ostype fedora --memory 1024 --acpi on --pae on --boot1 dvd --nic1 bridged --bridgeadapter1 eth0 3. create amount of hard disk capacity $ VBoxManage createhd --filename fedora18.vdi --size 10000 4. selecting hard disk device type $ VBoxManage storagectl "fedora18" --name "IDE Controller" --add ide 5. connecting fedora18.vdi file to hard disk device type $ VBoxManage storageattach "fedora 18" --storagectl ...

What is Network Address Translation?

Network Address Translation Network Address Translation (NAT) is the process where a network device, usually a firewall, assigns a public address to a computer (or group of computers) inside a private network. The main use of NAT is to limit the number of public IP addresses an organization or company must use, for both economy and security purposes. The most common form of network translation involves a large private network using addresses in a private range (10.0.0.0 to 10.255.255.255, 172.16.0.0 to 172.31.255.255, or 192.168.0 0 to 192.168.255.255). The private addressing scheme works well for computers that only have to access resources inside the network, like workstations needing access to file servers and printers. Routers inside the private network can route traffic between private addresses with no trouble. However, to access resources outside the network, like the Internet, these computers have to have a public address in order for responses to their requ...

CentOS 6.4 Released

March 12th 2013 The CentOS team is pleased to announce the immediate availability of CentOS 6.4 for i386 and x86_64 architectures. CentOS 6.4 is based on the upstream release EL 6.4 and includes packages from all variants. All upstream repositories have been combined into one, to make it easier for end users to work with. There are some very important changes to this release compared with the previous versions of CentOS and we highly recommend reading this announcement along with the Release Notes . Especially take a look at the "Known Issues" section. There is also a minimal install CD that will get you a very small base install that you can add to. Download link: i386 | x86_64