Solved : Comparing Run Levels in Linux and Solaris and precautions with them

Many people get confused between run levels in Linux and Solaris. One major difference among these can be disastrous also.  In this post we will show you the different Run levels in both these OS and what precautions you should take while working on these.

Let’s first take a look at Run levels.

Linux Run Levels

ID Name Description
0 Halt No activity, System can be safely shut down.
1 Single-user mode For administrative tasks only. Rarely used.
2 Multi-user mode Multiple users but no NFS (Network File System).
3 Multi-user mode with networking Multiple user but command line mode only.
4 Not used/user-definable For special purposes. User definable.
5 Start the system normally with appropriate display manager (with GUI) It’s similar to run level 3 but with GUI display.
6 Reboot Reboots the system.

Solaris Run levels

ID Name Description
0 Power-down state Power down state(OBP level after POST). Will bring server to OK prompt for maintenance.
s or S Single-user state To run as a single user with all file systems mounted and accessible. Only root user is allowed login.
1 Single User – Administrative state To access all available file systems with user logins allowed.
2 Multi-user mode Multiple users but no NFS(Network File System). i.e. all daemons running except NFS daemon.
3 Multi-user mode with networking All daemons running including NFS with GUI.
4 Not used/user-definable For special purposes. User definable.
5 Power-off Shutdown gracefully. Difference from Level 0 is that you won’t get any OBP (OK) prompt in Level 5
6 Reboot Reboots the system.

Precaution

Not sure if you have noticed but there is major difference in Run Level 5 of both the OS. For Linux, run level 5 means multi user with GUI, all good. But for Solaris, run level 5 means power-off, ouch! . Many Linux admins who start working on Solaris makes the mistake of executing “init 5” on Solaris to get the GUI but, that actually brings down a Solaris server. Hope you never make this mistake on production box.

Check current run level

who -r

Above command will tell  you the current level of your system.

Swagat – Indian Restaurant in Japan

Hello!

If you are an Indian in Japan specially veggie you may have to struggle a bit for food if you don’t cook at home.

In this series I am writing review of few good Indian restaurants in Japan which serves veg/non-veg food at reasonable rates.

I’ve recently visited Swagat restaurant in Roppongi.

Other then the normal lunch set, they also serve thali. In thali you get phulkas which is a change from many other Indian restaurant in Tokyo which serves only naan.

In veggies I’ve tried Bhindi, Aaloo Gobhi, Mutter Paneer etc. over there and all tastes really good.

The lunch can cost you from 900 yen to 1200 Yen. Please be aware that the dinner cost in many Indian restaurants in Tokyo is high. You can end up spending 1500Yen to 2500 Yen for dinner.

The staff in restaurant is courteous and friendly. They can modify few dishes as per your taste buds on request.

You can get the location of restaurant here .

You can also read some tripadvisor reviews here .

Do give it a try,  and let us know how was your experience!

How to prepare for AWS Certified Solutions Architect – Professional

Hello!

In this post we will discuss how to prepare for AWS Certified Solutions Architect – Professional certification.

Pre-requisite

Only pre-requisite to appear for the professional exam is that you clear  AWS Certified Solutions Architect – Associate certification.  You can check here about how to prepare for associate certification.

Once you have cleared the associate exam you can start preparation of  AWS Certified Solutions Architect – Professional certification.

Many of the topics in the professional exam are same as that of the associate exam. So in professional exam you may actually see few questions are repeated from associate exam itself.

But still it has a lot of new topics also. Below are the topics on which you can expect most questions in exam.

Exam Topics

  • VPC
  • EC2
  • S3
  • Amazon Elasticache
  • Redshift
  • Cloudfront
  • Elastic Transcoder
  • AWS Data Pipeline
  • RDS
  • Cloudsearch
  • EMR
  • DynamoDB
  • SQS
  • CloudTrail
  • KMS
  • Kinesis
  • Opsworks
  • Auto Scaling
  • ELB
  • VPC peering
  • Direct Connect
  • Cross Account Access

Preparation

As you can see the list above contains a wide range of topics and reading about them can be overwhelming. You can also see the official exam blueprint here . It is good if you have at least 1 year of experience with these AWS technologies.

You can start your preparation by attending AWS  classroom training or you can go for online courses. I personally liked the contents of two online courses one was from acloudguru and  other from linux academy .

Both the courses are good but I chose acloudguru course as the course allowed you lifetime access. While for linux academy you have to pay monthly fee. I knew that with full-time job it may take me more than a month to prepare for this exam so I decided to opt for the acloudguru course.

The acloudguru course is comprehensive and the trainer Ryan covers the topics in a decent way. The course alone is not enough to clear the exam but it will give you a good understanding of the exam topics.

Apart from the course you should also refer to the AWS FAQs  which are very helpful during scenario based questions.

Also Linuxacademy gives you 7 days free trial so you can use that period to do their practice exams which also has lot of good questions.

Exam pattern

  • Multiple choice and multiple answer questions.
  • You will be given scenarios and questions will be based on that. Only few will be direct questions.
  • Exam will be of 170 minutes
  • And you can expect approx 80 questions

Cost

Exam cost is USD 300

You also have an option to appear for practice exam from Amazon. It costs you USD 40. Many people have told me that the actual exam is easier in comparison to the practice exam. So, if you score good in practice exam you can be sure about your preparation.

Sample Questions

You can refer to some sample exam questions here and on Udemy.

Hope the above info is helpful to you. Do let me know if you have any query.

Best of Luck for the exam!

How to change punctured wheel of a car

Before your start replacing the punctured wheel get these things ready.

  • Jack and It’s handle
  • Spanner to unscrew
  • Good wheel (of course!)

Now let’s do it.

Step 1 :- Park the car on a flat ground.

Step 2 :- Put it in first or reverse gear and turn off the car so that it doesn’t move.

Step 3 :- Next step is to remove the wheel cap. Generally the wheel caps are not fixed with screws(check next step if it is fixed with screws). So try to slowly pull out  the cap from different points on cap. There will be one point where the cap will be loose and you can easily pull out the wheel cap from there.

Step 4 :- Some wheel caps may be fixed with the screws of wheel.  To loosen the screws, you will have to unscrew them in anticlockwise direction using a spanner. When you loosen the screws, unscrew the one’s opposite to each other first instead of side-by-side. Don’t remove the screws completely now. It will be done in next steps.

Step 5 :- Take a picture of the wheel which you want to replace. This will help if you have any confusion while putting the good wheel or screws back.

Step 6 :- Fix the jack below the car near the punctured wheel. Refer to the car manual if you don’t know how to use the Jack. Ensure that you don’t put jack below the plastic parts. It should be below the metal body of the car. Lift the car with jack using the jack handle only after you have slightly loosened the screws as the wheel may just keep on rolling if it’s already in air.

Step 7 :- Punctured tire should be in air now, approximately a centimeter above the ground. Once you have loosened and removed all the screws remove the punctured tire. The wheel may be tight so give it some strokes and try to pull it out. Be careful while pulling out  as the wheel can be heavier than you expect.

Step 8 :- Get the good wheel from the back of your car and put it in the place from where you removed the punctured wheel.

Step 9 :- Tighten up the screws just with hands to ensure that the wheel is fitted properly.

Step 10 :- Now wind the jack down to ensure car wheels are resting on ground.

Step 11 :- Tighten the screws with spanner using your hand first and later with foot to ensure its tightened properly.

Congrats you have successfully replaced a punctured wheel. That’s all folks!

Khanapina Ueno – Indian Restaurant in Japan

Hello!

If you are an Indian in Japan specially veggie you may have to struggle a bit for food if you don’t cook at home.

In this series I am writing review of few good Indian restaurants in Japan which serves veg/non-veg food at reasonable rates.

One of the best place to visit in tokyo specially if you are with kids is Ueno Park. It got some nice museum and special attraction is Ueno zoo which host Pandas. More on it in another post.

If you are a veggie and visiting the Ueno Park then it’s better that you have you lunch before you get inside the park. As the park is huge and you don’t have much veg option inside the park.

One of the good Indian restaurant near Ueno park is Khanapina Ueno.

You can get Indian lunch set from 800yens to 1100 yens.

A lunch set includes One/two curry, Salad, Papad, Drink and Unlimited Rice/Naan. In veg you get 2-3 curry options like Dal, Mix Veg, Saag etc.

(Note:- Salad may have mayonnaise which can contain eggs. Inform the staff in advance if you don’t want mayonnaise in salad)

They serve Indian, Nepali and other Asian cuisine. The food is really tasty and staff can also customize the food as per you taste buds.

Here is the location of hotel on google maps.

You can also read some more reviews on tripadvisor.

Give it a try to let us know how was your experience!