Pokazywanie postów oznaczonych etykietą problem. Pokaż wszystkie posty
Pokazywanie postów oznaczonych etykietą problem. Pokaż wszystkie posty

wtorek, 22 listopada 2016

How to find ip adres on Centos OS?

How to get ip address of a Centos 7 / Redhat in bash (command line)?.
It's quite simple. There a few ways. Previously you could use ifconfig command.
Now you can't use ifconfig even you install net-tools.
So how to check your server ip?
- You can simply ping your hostname
cat /etc/hostname
ping "hostname from file" ;)
- Another way is to type "ip addr show"and you and you'll get your ip address :)

[root@bareos ~]# ip addr show
1: lo: <LOOPBACK,UP,LOWER_UP> mtu 65536 qdisc noqueue state UNKNOWN
    link/loopback 00:00:00:00:00:00 brd 00:00:00:00:00:00
    inet 127.0.0.1/8 scope host lo
       valid_lft forever preferred_lft forever
    inet6 ::1/128 scope host
       valid_lft forever preferred_lft forever
2: ens32: <BROADCAST,MULTICAST,UP,LOWER_UP> mtu 1500 qdisc pfifo_fast state UP qlen 1000
    link/ether 00:50:56:b4:a9:7f brd ff:ff:ff:ff:ff:ff
    inet 192.168.200.13/24 brd 192.168.200.255 scope global ens32
       valid_lft forever preferred_lft forever
    inet6 fe80::250:56ff:feb4:a97f/64 scope link
       valid_lft forever preferred_lft forever
3: ens33: <BROADCAST,MULTICAST,UP,LOWER_UP> mtu 1500 qdisc pfifo_fast state UP qlen 1000
    link/ether 00:50:56:b4:1b:ff brd ff:ff:ff:ff:ff:ff
4: ens34: <BROADCAST,MULTICAST,UP,LOWER_UP> mtu 1500 qdisc pfifo_fast state UP qlen 1000
    link/ether 00:50:56:b4:f9:3d brd ff:ff:ff:ff:ff:ff


środa, 17 października 2012

What to do when your system crashes in XP mode (in hibernation or during shutdown, system reboot)?


What to do when your system crashes in XP mode (in hibernation or during shutdown, system reboot)?

This is a fairly common problem. Microsoft in his goodness in general, trying to hide advanced options against inexperienced users.

Sometimes this can cause a variety of problems. For example, if your virtual machine crashes during hibernation / shutdown, is hardly what we can do with it. We can't restart our virtual computer because our virtual machine is simply a file.

After restarting the file is still saved, the system is being shut down and hibernate;)

So our virtual machine is suspended. In your virtual machine menu when you, select Action> close than by default, without any additional questions, our machine hibernates ;).


But our virtual machine is already suspended, so how to switch of XP Mode machine?. Of course, closing with a cross or "Close" does not give us anything.

We need to change the default settings for your virtual machine:

- In Windows "Start" menu go to Windows Virtual PC>Windows Virtual PC and select the file of your virtual machine by pressing the right mouse button on it.

- Select "Settings" and go to "Close". Select "prompt for action", click ok
Now, when you click close button you should see prompt for action, for example "power off" ;)