Showing posts with label General. Show all posts
Showing posts with label General. Show all posts

http://forums.linuxnix.com is activate for Public

0 comments

Hi all,

I am very much pleased to announce Christmas/New year gift for you people. We just started our new Linux/Unix forums to resolve our issues which we are facing on day to day basis at work as well as home. Please join hands with us to help others who are in need.

The forums can be accessed at http://forums.linuxnix.com
The forums are free to all
The forums does not require to register but we suggest you to register and post questions.

As a www.linuxnix.com admin I am very much awaited to see all you there discussing on various issues faced by you in Linux/Unix which will benefit us all.

Thanks,
Admin
http://www.linuxnix.com

  • Like the post? Please Subscribe to free RSS feed to get updates
  • Facing Issue With Blogger. Posts On Apache Will Be Delayed

    0 comments

    Hi all,

    We are facing issues with posting apache posts on linuxnix.com. This is because the apache code is messing up with html rendring of blogger. So we are not able to post Virtulhost codes in the site. We will come up with a solution to resolve this issue. Mean time we are continuing with other posts. We will let you people know when we will start the apache posting once again.

    Thanks,
    Admin
    http://www.linuxnix.com

  • Like the post? Please Subscribe to free RSS feed to get updates
  • Hello Readers

    0 comments




    Hello dear readers,

    First we would like to wish you all that happy VIJAYADASHAMI. From today onwards we would assure you that we will write posts frequently. Why we have selected this day because if we start whatever work on Vijayadashami, we will get success on that work. Once again Happy Vijayadashami to all.


    Thanks.

  • Like the post? Please Subscribe to free RSS feed to get updates
  • How To Assign Default Gateway In Linux?

    0 comments

    How to Assign Default gateway in linux?
    Ans : In linux Default gateway is set through route command or GUI tools.

    Through Route command
    #route add default gw default-gateway

    Example :
    #route add default gw 192.168.0.1
    Here 192.168.0.1 is the default gate of my system.

    Through GUI tools
    Use system-config-network in terminal or GUI to set up default gateway.

  • Like the post? Please Subscribe to free RSS feed to get updates
  • Is Job Portal On Linuxnix.com Is Really Worth For You People?

    0 comments

    Hi all,

    Some Six months back we have started posting job related info such as job postings, interview tips etc on this site at "jobs.linuxnix.com". Is this site really helping you people? Please let me know. We are planing to discontinue the service so that we can concentrate more on some technical stuffs. What you will say guys? Please comment your thoughts on this. So that we can take a decision on this. I am putting a poll on this. Please express your thoughts on this form too..

  • Like the post? Please Subscribe to free RSS feed to get updates
  • How To Choose A Good Linux Institute?

    0 comments

    This question arises in the mind of new people who are turning to Linux administration. So what you people will suggest? Go for a good institute. Right? So how you judge one institute is good and other is bad? If I am there in your place. I will consider below points before taking a decision to join an institute.
    1. Faculty(first priority)
    2. Infrastructure(second priority)
    3. Institute background and capabilities(Third priority)

    Faculty : Some points be noted about faculty
    1. A good faculty is like a motivator, he always motivates you to explore new things. He just shows the path you have to explore.
    2. A good faculty always try to share knowledge irrespective of the domain. I saw some instructors will not share all the knowledge they have. They just simply go according to the syllabus. So be aware of these type of instructors.
    3. A good faculty will always try to mould his way of teaching depending on grasping power of the students.
    4. A good faculty always give infomation about what type questions will come in interviews and exam. So that you can concentrate more on those topics.

    So how to judge a faculty is good or not with out actually attending his classes?
    Ans : Just go to that institute before joining and enquire the students of that institute about the instructors and their way of teaching. And if possible take a sample session with that faculty and observe all the above mentioned points. If most of the above qualities are not observed better not to join.

    Infrastructure :
    Some points to be noted about infrastructure
    1. As we are learning job oriented courses please don't join in institutes where students with more than 30 per class. These type of institutes are more in Hyderabad. One thing i want to mention is if a class is containing some 150 students where is the type for faculty to care of your queries?

    2. Make sure that before joining the institute about the hardware provided by them. In some institute there will be only one or two systems/devices per class so where is the time for you to practice? right so consider this one too.

    3. Some institutes will not provide lab facility after the class timings. So what's the fun of just taking Linux classless with out practice. I say to my friends if you want to be a good Linux admin just remember three rules/principles.
    a.Practice
    b.Practice
    c.Practice

    So what is ideal Infrastructure?
    Ans : A class should not contain more then 10 to 15 students and should provide at least one system for two students with 24 hours lab facility.

    Institute : Some points to be noted about Institute.
    1. Check with Students of an institute about the behaviour of non teaching faculty. Some of the institute people will behave differently before and after paying amount.

    2.Check with students how is the placements and campus interviews.

    3. As you people will know speaking good English will play important role in getting a job, some institutes will have one faculty who will teaches spoken English, corporate culture, personality development etc.

    So you guys may feel that as "I am already a Linux admin why this non technical post is here." this is for you only. As you are an experienced Linux admin, many new comers will come to you and ask which institute is best. So at that time you can express your own ideas and these points to them before they take a decision. This is the intention of this post.

    Please comment your experience either its small or big about your training institute where you learnt some admin courses:-)

  • Like the post? Please Subscribe to free RSS feed to get updates
  • How To : Auto Logout

    0 comments

    What is this auto logout?
    Ans : Auto logout is a concept to force user to logout from the remote server. If the open session to remote server is idle for a given time.


    So why actually we require auto logout?
    Ans : As a security measure, This is good practice to set this, because its not a good idea/practice to keep open terminal idle.


    How to accomplish this?
    Ans : This can be achieved by two ways.

    1. Open /etc/profile and append TMOUT variable. See my below example

    Export TMOUT=600 # 10 minutes in seconds
    typeset -r TMOUT
    This will set time-out to 600 sec(ie 10mins) and I have given typeset -r which read-only and will not allow users to change this. Save the file and exit.



    2. By creating /etc/profile.d/sessiontimout.sh file then keeping above mention entries in it.
    Export TMOUT=600 # 10 minutes in seconds
    typeset -r TMOUT
    Now save and exit the file

    As this is a script we have to change the permissions too.
    #chmod +x /etc/profile.d/sessiontimout.sh

    Please share your thoughts on this.

  • Like the post? Please Subscribe to free RSS feed to get updates
  • Best Interview I Have Ever Attended

    11 comments

    Its been long time that I blogged here. The reason for this post is to share my experience of an interview. If you people think this is irrelevant, please feel free to comment at comment section, depending on your comments i will keep or remove this post. Because its just a general post not related to admin work much. OK lets come to actual point.

    A couple of weeks back i got a call from a company, they asked me to come down to the interview with all the media required. The media which i have taken includes.
    1.RHEL5.4 which is 64bit version
    2.Oracle 10g
    3.JBOSS(For those who don't know about Jboss. Its a application server like TOMCAT, Web-sphear etc. used to serve the content through web).

    In the same call they informed its totally a practical interview. I have to configure and show all the configuration on a given Blade Centre which contain six blade servers in it.
    Some background about that Blade-centre.
    1. It costs nearly 46Lacks. Yes you red properly it costs 46 lacks INR(Rs4600000)
    2. Its having 6 blades(nothing but 6 blade servers)
    3. SAN box attached to it(total capacity of 4.5TB)
    4. A seven layer switch(I don't know much about this. I have to explore on this)
    5. A backup tape-drive for this SAN backups.
    6. A common DVD ROM, Keyboard, Mouse, Monitor for all the six blade servers
    7. Four to six usb devices(i did not observed properly)
    8. Eight LAN ports


    So all these are included/integrated in to a box which be like big TV box(search for blade-centre in Google for exact look).

    Why we require this blade server why cant we use separate six high end servers?
    Ans :
    Let me put it in this way. In most of the DC(Data Centre) space, power, cooling are always concerns. So IBM came with a solution to resolve all these problems by implementing Blade canter/server.

    Each blade server looks like a closed laptop when we take it out from Blade center box(its very much easy to insert/remove blade-server from blade centre)

    What this each blade server contains?
    Ans :
    1. HDD with hardware RAID1 on implemented with 132GB(so total space with out RAID will be 132*2=264GB).

    2. RAM of 16B(There are four slots, each contains 4gb. These RAMS are placed on the mother board in such a way that it will consume less space and good for cooling).

    3. A fiber converter is there which have high capacity data transfers.

    4. Two NIC/LAN cards(These are integrated on to board it self).

    5.A switch/button for getting display.(Here we have to remember one thing. As there is only single display, mouse, keyboard which are to be shared). So if you press this switch on blade server one all these devices are now part of blade server one.

    6. A switch/button for getting DVD rom for this blade server.

    7. A power switch to switch of this single blade server
    That's it.

    Ok I think this introduction is enough for those people who don't know what is a blade center or server. Please feel free to ask any queries on this. If you still not clear.

    The test/Interview goal is to :
    1.
    Install OS(RHEL5.4 64 bit).
    2. Yum Server(on one of the blade server so that remaining servers will take yum repo from that server).
    3. Network configuration(like IP addressing and host-name).
    4. Jboss to be installed/configure on all the servers.
    5. FATware to be install/configure on all the servers.
    6. Oracle on two blade servers.
    7. High availability cluster for this Oracle.
    That's the end of the Interview.

    They have assigned an Experienced Network/Hardware engineer to me who really assisted me in all hardware related stuff.
    He is really having good knowledge on all the server hardware and he is a nice guy.. :)

    His work is to initialize all the blade servers, configuration of hardware RAID1 and other network related stuff.

    We started with Redhat installation on one machine. We did successfully. I thought we no need to install OS on remaining blade servers because I thought of replacting this HDD on remaining HDD(Because all the servers are HDD are hardware RAID1) but bad luck that IBM blade-centre model will not support this. So we installed OS on each server one by one. I thought/show him how to create partitions and install OS after second server installation. He only taken care of installing OS on remaining blade servers. Mean that time I have started configuring Yum on blade server1, Configured network related stuff, installed some software required by oracle, Jboss etc. By using Yum server. Once these things are done I did the same thing for reaming servers. All these tasks taken most of my time :(

    Then we installed Oracle on server one and two, after that Jboss on all the 6 blade server. Once all the main configurations are done at last we tried to implement cluster for the oracle(we implemented Heartbeat cluster for this one..)

    This total process taken nearly 12 hours from 9Am to 9Pm.

    I want to include more info but i felt its too big.
    Please comment on this:-)

  • Like the post? Please Subscribe to free RSS feed to get updates
  • All about ISO image files

    0 comments

    ISO IMAGE FILES

    What are ISO image files?
    An ISO image is an archive file (also known as a disk image) of an optical disc in a format defined by the International Organization for Standardization (ISO). ISO image files typically have a file extension of .iso. The name ISO is taken from the ISO 9660 file system used with CD-ROM media according to wikipedia.org.

    So these are the basic points i am going to cover in this post

    • How to create an iso file?
    • How to mount an iso file?
    • How to unmount an iso file?
    • How to update an iso file?
    • How to write an ISO file to CD?
    • How to view content of iso file?

    1)How to create an ISO image?
    As of now I know two methods to create an ISO file. One is through dd command(disk dump) and other is mkisofs command

    A)Creating ISO files from cd-rom/dvd by using dd command

    #dd if=/dev/cdrom of=/temp/songs.iso
    dd if=/dev/dvd of=/temp/songs1.iso # for dvd
    dd if=/dev/scd0 of=/temp/songs2.iso # if cdrom is scsi


    Let me explain what actually the above command will do. dd is a disk dump command which will present in most of the Linux/nix systems and "if" specifies input file and "of" specifies output file. So we are specifying to dd command what is our input file and where is our output file.
    Here my songs.iso file is created in /temp folder.

    B)Creating ISO file using mkisofs command.
    Method1:Creating an iso image from cd-rom

    #mkisofs /dev/cdrom -o /temp/songs3.iso

    Method2:Creating an iso image from a folder

    Suppose i am having a folder /opt/data which contains some data to be converted in to .iso file, follow below step

    #mkisofs -o /temp/songs4.iso /opt/data

    2)How to mount an ISO file?
    #mount -o loop /temp/songs4.iso /opt/mountpoint

    3)How to unmount an ISO file?
    #umount -lf /opt/mountpoint

    here /opt/mountpoint is the place where my iso file is mounted.

  • Like the post? Please Subscribe to free RSS feed to get updates
  • Firefox 3.5 Released

    0 comments

    Fire fox 3.5 version is released with some good features such as private browsing(which is already implemented in IE and Chrome some long time back). Here are the features which is new to FF3.5

    1. Private browsing
    2. Tab tearing
    3. HTML5 support
    4. Forget this site
    5. Geo-location
    I see most of the features are brought from Chrome.. What you say people?
    And here is the link to download Latest Firefox browser

  • Like the post? Please Subscribe to free RSS feed to get updates
  • Get a free shell account online

    0 comments

    GET A FREE SHELL ACCOUNT ONLINE.
    A shell is an utility from where you can access Linux/*Nix servers from any where and execute the commands/scripts etc.

    This post is for the users who are new to linux/Nix and want to feel/work on the Linux with out installing on the system. "Rootshell.be" is free online BSD(Berkeley Software Distribution) server where you can request a shell account and explore your self.

    There are so many free shell providers on net but most of the servers/service providers will not give you free account simply, you have to prove your self to them that you are not a spamer and you are really in need of shell account to explore Unix.

    Here are some advantages:

    1. No need to install any unix systems.
    2. Good for beginers.
    Some disadvantages:

    1. You can work on only limited commands provided by the system administrator.
    2. Require any SSH clients(such as Putty) and internet connection.
    Here are the links from where you can get your free Shell accounts


    1. rootshell.be (I personally used their service and its preaty good)
    2. http://www.red-pill.eu/freeunix.shtml
    Please comment on this so that I can improve the blog quality.

  • Like the post? Please Subscribe to free RSS feed to get updates
  • lsof Command

    3 comments


    Today I came across ISOF command in one interview, the interviewer of this interview is a tricky guy and a great Linux/nix guru. He asked me many questions which I can’t answer, in that lsof command is one. This command really impressed me and this is one of the most powerful command i ever come across till this point in Linux. So I did some research on this command and come across numerous examples for making network/system admin work bit more simple and meaning full.

    So what is lsof command?
    lsof is nothing but LiSt Open Files, which will show all the open files by
    1.   a process in system.
    2.   a user.
    3.   a command.
    4.   a network service.
    5.   a regular file.
    6.   a directory
    7.   a block special file
    8.   a character special file
    9.   an executing text reference
    10.        a library
    11.        a stream or
    12.        a network file (Internet socket, NFS file or UNIX domain socket.).

    So where we will use this lsof command? In many situations such as when troubleshooting network related issues, file related issues and process related issue. 

    USAGE1 : To see all the open files in system with out filtering which lists all open files belonging to all active processes. 

    #lsof
     

    USAGE2 : Some times we will face an issue like, some service will not bind to a port and cannot start the service, this is due to some process already using that port(though the process died). So we have to see which process is using this port and kill that process. this will eliminate restarting the server. Suppose we want to start ftp server which will not starting due to above problem. 

    #lsof -i TCP:ftp
     
    here -i is used to specify Internet 


    USAGE3 : To see what files are opened when you execute a command 


    #lsof -c httpd
    here -c is for specifying command. 

    USAGE4 : To see which file opened for a device 


    #lsof /dev/hdc 
    USAGE5 : To see which procces or user is accessing the file. 


    #lsof -f filename 

    Example: 
    [root@v-test Script]# lsof -f passwd 
    vim 14122 root 4u REG 253,0 12288 234655 /etc/.passwd.swp 
    [root@v-test Script]# 

    USAGE6 : To monitor network, what people are doing with what network services 

    #watch lsof -i 


    Note:watch is an excellent command to repeate a command execution on a regular interval please have a look in to my other blog post about this watch command.

    USAGE7 : To see all open internet files 


    #lsof -i -U 

    USAGE8 : To see Ports either its TCP or UDP 


    #lsof -i TCP:22 
    For checking all the connection for ssh port 

    #lsof -i UDP: 69
     
    This is for tftp connections to the machine. 

    USAGE9:To watch all the actually by a user in live..?
    #watch lsof –u username


    A good link for learning more about lsof command link1 some sister commands for this command are pstree, ps and netstat 


    NOTE : Some strange things I observed about this command is 

    1.Till this point I know that to use any commands options we have to use - but for this command there are both + and - options too.
    2.In linux every thing is considered as files even a network socket, hardware device for some examples.
    Please comment your thoughts regarding this post:-). Please give us your feed back here


  • Like the post? Please Subscribe to free RSS feed to get updates
  • GOOSH

    1 comments

    Actually i am Google centric guy,who always romming around google google google to find out what Google is inventing day today. I am regular reader of googlesystem.blogspot.com and blogoscoped.com blogs, both the sites are totaly discuessing google releated information/hacks etc

    So comming to the point why i am saying all this to u? that too in my linux blog? any guesses?
    Ans : Today I found of some strange site from the above mentioned blogs ie
    goosh.org
    This one kind of shell ie. google+shell= goosh where you can search the entire web/blogs/images, you name it you will get it by just typing commnds. When we log in to goosh.org we will get the following prompt

    guest@goosh.org:/web>

    So here we can type what ever you want to search with in the web. If you want to search only in blog we have to say blog then the prompt will change to the below thing
    guest@goosh.org:/web>blog
    guest@goosh.org:/blog>

    So from now what ever you type this will seach in only blogs, if you want to know more about it just type help you will get all the help you want.

    guest@goosh.org:/web>help

    help


    commandaliasesparametersfunction
    web(search,s,w)[keywords]google web search
    lucky(l)[keywords]go directly to first result
    images(image,i)[keywords]google image search
    wiki(wikipedia)[keywords]wikipedia search
    clear(c)clear the screen
    help(man,h,?)[command]displays help text
    news(n)[keywords]google news search
    blogs(blog,b)[keywords]google blog search
    feeds(feed,f)[keywords]google feed search
    open(o)open url in new window
    go(g)open url
    more(m)get more results
    in(site)search in a specific website
    loadload an extension
    video(videos,v)[keywords]google video search
    read(rss,r)read feed of url
    place(places,map,p)[address]google maps search
    langchange language

  • Like the post? Please Subscribe to free RSS feed to get updates
  • The Runlevels

    0 comments

    Many Windows users are familiar with different modes of execution of their operating system:
    a. Safe mode
    b. Command prompt only
    c. Safe mode with network support
    d. Safe mode with vga


    And other such options that are presented during the boot-up process. Similarly, Linux has different modes of executing as well, which are known as runlevels. But unlike Windows, we can change runlevels on a fly.


    Definition for runlevel : The term runlevel refers to a mode of operation in one of the computer operating system that implement Unix System V-style initialization. This system replaces the traditional /etc/rc and /etc/rc.local scripts used in BSD UNIX. Conventionally, seven runlevels exist, numbered from zero to six, plus an alias runlevel named 'S' and/or 's'.


    Runlevels control services started by the initialization process. The number of runlevels and services started on those runlevels varies with Linux distributions. Information about the runlevels of a particular distribution is listed in file /etc/inittab.


    The contents of the file include the following:


    Default runlevel. The runlevels used by RedHat are :

    # 0 - Halt (Do not set initdefault to this option.)

    # 1 - Single User Mode

    # 2 - Multi-user, without NFS (The same as 3, if you do not have networking)

    # 3 - Full Multi-user Mode

    # 4 - Unused

    # 5 - X11

    # 6 - Reboot (Do not set initdefault to this option.)

    id:3:initdefault: # System initialization. si::sysinit:/etc/rc.d/rc.sysinit

    l0:0:wait:/etc/rc.d/rc 0

    l1:1:wait:/etc/rc.d/rc 1

    l2:2:wait:/etc/rc.d/rc 2

    l3:3:wait:/etc/rc.d/rc 3

    l4:4:wait:/etc/rc.d/rc 4

    l5:5:wait:/etc/rc.d/rc 5

    l6:6:wait:/etc/rc.d/rc 6

    Runlevel 0 : Is halt mode. Telling init to enter runlevel 0 will cause all processes to be killed off, the filesystems unmounted, and the machine to be halted. This is a perfectly acceptable way to bring down the system. On many laptops and modern desktop computers, this will also cause the machine to be turned off. Different commands to go to runlevel 0.

    # halt

    # init 0

    # telinit 0

    # shutdown -h

    Now in the above command h is halting and now indicates shutdown the computer now it self no grace/trancision time for example you want to shutdown the command after 60 min so give the below command # shutdown -h +60.

    Runlevel 1 : Runlevels 1 and 2 are generally used for debugging purposed only, and are not used during normal operations. Most desktop linux distributions boot into runlevel 5, which starts up the Graphical Login Prompt. This allows the user to use the system with X-Windows server enabled. Most servers boot into runlevel 3, which starts the text based login prompt. Linux runlevels can be changed on the fly using the init tool. If you want to switch from text based operations to the Graphical Interface, you just have to type in 'telinit 5' in the root prompt. This will bring up the Graphical Interface in your system. Each runlevel can be configured by the system administrator. The "/etc/inittab" file has information on which runlevel to start the system at and lists the processes to be run at each runlevel. Each runlevel has its own directory structure where you can define the order in which the services start. These directories are located in the /etc/rc.d/ directory, under which you have rc1.d, rc2.d, rc3.d…. rc6.d. Directories where the number from 0 to 6 that corresponds to the runlevel. Inside each directory are symbolic links that point to master initscripts found in /etc/init.d or /etc/rc.d/init.d. You can also change the runlevel at boot time. If your system uses LILO as the boot manager, you can append the runlevel to the boot command : LILO: linux 3 or LILO: linux 5. If your system uses GRUB, you can change the boot runlevel by pressing the `e’ key to edit the boot configuration. Append the runlevel to the end of the boot command as shown : kernel /vmlinuz ro root=/dev/hda1 5 different linux/unix disterbution's runlevels


    Debian Linux :
    Debian, as well as most of the distributions based on it, like Ubuntu, does not make any distinction between runlevels 2 to 5. See also the Debian FAQ on booting.
    0 - Halt
    1 - Single
    2 - Full multi-user with display manager (GUI)
    3 - Full multi-user with display manager (GUI)
    4 - Full multi-user with display manager (GUI)
    5 - Full multi-user with display manager (GUI)
    6 - Reboot

    Red Hat Linux
    Red Hat as well as most of its derivatives uses runlevels like this.
    0 - Halt
    1 - Single
    2 - Not used/User definable
    3 - Full multi-user NO display manager
    4 - Not used/User definable
    5 - Full multi-user with display manager (GUI)
    6 - Reboot

    SUSE Linux
    SUSE uses a similar setup as Red Hat :
    0 - Halt
    1 - Single
    2 - Full multi-user with no networking
    3 - Full multi-user NO display manager
    4 - Not used/User definable
    5 - Full multi-user with display manager (GUI)
    6 - Reboot

    Slackware Linux
    Slackware Linux uses runlevel 1 for maintenance, as on other Linux distributions; runlevels 2, 3 and 5 identically configured for a console (with all services active); and runlevel 4 adds the X Window System.
    0 - Halt
    1 - Single
    2 - Full multi-user NO display manager
    3 - Full multi-user NO display manager
    4 - Full multi-user with display manager (GUI)
    5 - Not used/User definable
    6 - Reboot

    Gentoo Linux
    0 - Halt
    1 - Single
    2 - No network
    3 - Full multi-user with display manager
    4 - Full multi-user with display manager (Alias for runlevel 3)
    5 - Full multi-user with display manager (Alias for runlevel 3)
    6 - Reboot

    System V Releases 3 and 4
    0 - shut down system, power-off if hardware supports it (only available from the console)
    1 - single-user mode, all filesystems unmounted but root, all processes except console processes killed.
    2 - multi-user mode
    3 - multi-user mode with
    RFS (and NFS in release 4) filesystems exported
    4 - multi-user, user-defined
    5 - halt the operating system, go to firmware
    6 - halt the system, reboot to default runlevel
    s, S - identical to 1 except current terminal acts as the system console

    Solaris
    0 - operating system halted; (
    SPARC only) drop to OpenBoot prompt
    S - single-user with only root filesystem mounted (as read-only)
    1 - single-user mode with all local filesystems mounted (read-write)
    2 - multi-user with most daemons started.
    3 - multi-user, identical to 2 (runlevel 3 runs both /sbin/rc2 and /sbin/rc3), with filesystems exported, plus some other network services started.
    4 - alternative multi-user, user defined
    5 - shut down, power-off if hardware supports it
    6 - reboot

    HP-UX
    0 - system halted
    S - single-user, booted to system console only, with only root filesystem mounted (as read-only)
    s - single user, identical to S except the current terminal acts as the system console
    1 - single-user with local filesystems mounted (read-write)
    2 - multi-user with most
    daemons started and Common Desktop Environment launched
    3 - multi-user, nearly identical to runlevel 2 with NFS exported
    4 - multi-user with
    VUE started instead of CDE
    5 - user-defined
    6 - user-defined


    AIX
    AIX does not follow the System V R4 (SVR4) run level specification. It defines run levels from 0 to 9, 0 and 1 are reserved, 2 is the default normal multiuser mode and run levels from 3 to 9 are defined by administrator.
    AIX runlevels
    ID
    Name
    Description
    0
    reserved
    1
    reserved
    2
    Normal multiuser mode
    default mode
    On
    AIX you can check the current runlevel with the following command: $ who -r

  • Like the post? Please Subscribe to free RSS feed to get updates
  • Login To Root User In UBUNTU

    0 comments

    This article totally deals with how to get access to root user in UBUNTU? So going in to topic, by default Ubuntu will not allow us to log in to root user because root user is super user and we can do any thing if we have root access.

    Actually be default in Ubuntu root user is disable(means there is root user with out password set). So if we try to login to root user it will not allow us because there is no password set to that user.

    So the solution to this problem is to set the password to root user so how to do that? A question arises?
    Ans : In order to change the root password we have to log in to run level1.
    if you are new to this run level concept you can get that one
    here. In order to go to run level.

    Step1 : Reboot your Ubuntu system if its on other wise start your ubuntu

    Step2 : Brake the timer when its displaying OS choice at the boot time. To brake the timer press any key. So now we will get 3 lines like below.

    ubuntu, kernel 2.6.18-generic
    ubuntu,kernel 2.6.18-generic(recovery mode)
    ubuntu,MeM test86+

    Like this you will find at the display. Select the first line by up/down arrows and then press "e" to edit that line. And here again you will get some 3 to 4 lines. Select the line with kernel at the starting and then press "e" again. Now press space bar and 1 at the end of that line and then enter. Then press b to boot. Now you will be in run level 1. Then type the below command to reset the root password
    #passwd root

    Then after resetting the password execute exit command. From now on words you will have a chance to log in as root user.

  • Like the post? Please Subscribe to free RSS feed to get updates
  • USB Devises In Your System

    0 comments

    There is one command which will show how many USB ports are there and how many usb devices are connectted to the linux system. The command is lsusb
    lsusb
    is a utility for displaying information about USB buses in the system and the devices connected to them.
    #lsusb -v will show all the details about usb devices

  • Like the post? Please Subscribe to free RSS feed to get updates
  • How To Switch From One Terminal to Other?

    0 comments

    This post totally deals with changing the terminals In Linux. There are 7 terminals (a terminal is a software which is used an interface between Linux kernel and user. First 6 terminals are text terminals because they are operated totally in text mode. And the last 7ht terminal is graphical terminal. So if you want to switch from one terminal to other the procedure is to press ctrl+alt+function keys for example you want to access 6th terminal you can press ctrl+alt+f6 keys. Simultaneously there is another procedure to access the terminals there is a command chvt(change virtual terminal) is used to change the terminals for example you want to switch to terminal 3 just type the below thing in your shell.
    chvt 3

  • Like the post? Please Subscribe to free RSS feed to get updates
  • How To Run Commands In Backgroud?

    0 comments

    How to run commands in background when you logout?
    Ans :
    Actually in Linux/nix we cant run the commands in background when we logged out.

    Let me put in this way by taking an example :
    Supose you have logged in to a remote system by using ssh so you want to run a process background though you have logged out ? This can be achived by using the nohup command. Below is the man help for nohup.

    No Hang Up. Run a command immune to hangups, runs the given command with hangup signals ignored, so that the command can continue running in the background after you have logged out.

    SYNTAXnohup Command [Arg].
    `nohup' increases the scheduling priority of COMMAND by 5, this gives a slightly lower priority. If standard output is a terminal, it and standard error are redirected so that they are appended to the file `nohup.out'; if that cannot be written to, they are appended to the file `$HOME/nohup.out'. If that cannot be written to, the command is not run.

  • Like the post? Please Subscribe to free RSS feed to get updates
  • Archive

    Translate this page

     

    The Linux Juggernaut | Copyright 2006-2009 Surendra Kumar Anne | Surendra's Home Page | Give us feedback how we are doing, Click here