It is sometimes required especially when managing many servers to recognize the hardware setup you are running on especially if you have a zoo of different animals. Great tool for getting detailed hardware report including bios versions and memory / processor info : dmidecode While the output varies slightly across distros and sometimes you need to…
Tag: Ubuntu
Starting vnc on Display 0 ( local display ) from a remote ssh session
i.e. You wnet home need your desktop have ssh no vnc !! Here is the easy solution.. Install x11vnc. $ DISPLAY=localhost:0 x11vnc & connect to the display using vnc et voila ! BTW Teamviewer also USED TO WORK but no longer in ver 8 so thanks VNC for not being obsolete.. nJoy 🙂
Start Teamviewer from an ssh session remotely
So you remote deskptop rebooted and teamviewer did not run on startup as it does not do in Linux for some strange reason: Connect with ssh ( putty) Then run DISPLAY=`localhost`:0 teamviewer& Njoy 🙂 !
Enable grub menu UBUNTU
Enable grub menu: edit the /etc/default/grub file and change the GRUB_HIDDEN_TIMEOUT=0 GRUB_HIDDEN_TIMEOUT_QUIET=true to GRUB_HIDDEN_TIMEOUT=10 GRUB_HIDDEN_TIMEOUT_QUIET=false Save and call: sudo update-grub from a terminal, and reboot.
List or Check Installed Linux Kernels Debian
On Debian based systems like Ubuntu: # dpkg –list | grep linux-image To list / display current kernel Type the following command: # uname -r # uname -mrs
Manually reset the state of an instance
If an instance gets stuck in an intermediate state (e.g., “deleting”), you can manually reset the state of an instance using the nova reset-state command. This will reset it to an error state, which you can then delete. For example: $ nova reset-state c6bbbf26-b40a-47e7-8d5c-eb17bf65c485 $ nova delete c6bbbf26-b40a-47e7-8d5c-eb17bf65c485 You can also use the –active to force the instance back…
LTS and Release Cycle for Ubuntu
LTS is an abbreviation for “Long Term Support”. We produce a new Ubuntu Desktop and Ubuntu Server release every six months [diagram below]. That means you’ll always have the latest and greatest applications that the open source world has to offer. Ubuntu is designed with security in mind. You get free security updates for at…
Openstack Compute logs location
The log files are located here : /var/logs/nova Logfiles are : nova-api.log nova-cert.log nova-compute.log nova-dhcpbridge.log nova-manage.log nova-network.log nova-objectstore.log nova-scheduler.log nova-volume.log nova-xvpvncproxy.log
Fully updating Ubuntu
The magic spell is : $sudo apt-get update; sudo apt-get upgrade
Permanently set hostname in Ubuntu
Debian based systems use the file /etc/hostname to read the hostname of the computer at boot time and set it up using the init script /etc/init.d/hostname.sh One can edit the file /etc/hostname and change the hostname and then run: /etc/init.d/hostname.sh start Update /etc/hosts ip 127.0.0.1 respectively ( leave the localhost entry untouched) Steps: sudo vi…