Showing posts with label ubuntu. Show all posts
Showing posts with label ubuntu. Show all posts

Wednesday, June 5, 2013

Query RPM

Some RPM commands that I regularly use (and struggle to find their syntax)


In order to query which RPM is installed on your machine
rpm -qa |grep somthing

Query a specific RPM installed on your machine:
rpm -qil nameOfYouPackage

Same but for RPM that is not installed on your machine (
rpm -qpil  nameOfYouPackage.rpm

Erase an installed RPM
rpm -e NameOfYourPackage
Search for availability of a package in the yum repositories:
 yum list stingraymain



Some Yum commands en vrac
yum search YourYumPackage
yum install YourYumPackage
yum remove YourYumPackage
yum info  YourYumPackage






Sunday, February 10, 2013

NVidia and Ubuntu / Mint crash

Recently, I've re-install my desktop with ubuntu 12.10 , 12.05 and also with Mint 14.1.
But it didn't work ... The installation, for all the OS, was very smooth and intuitive.
But the system was unstable and one of the symptom was that my Firefox did crash and caused a crash of my login session each time I tried to start it (it happened on ubuntu 12.10 and on mint 14.1)

After some google search, I think the reason was of the NVidia graphic driver , which was badly buggy.

I've re-install it using these instructions found here http://askubuntu.com/questions/192025/ubuntu-12-04-terminal-only-after-nvidia-driver-upgrade
  • Remove all the nVidia drivers that you installed.
sudo apt-get --purge remove nvidia-*
  • Install the drivers again:
sudo add-apt-repository ppa:ubuntu-x-swat/x-updates
sudo apt-get update
sudo apt-get install nvidia-current nvidia-settings


On my Mint 14.1 at least, it helped. I don't know yet about ubuntu ...

Thursday, September 13, 2012

XMing + Putty for remote desktop on ubuntu

Well, I didn't work with Remote Desktop but I was told (Omri) that I can work instead with specific remote application, using XMing + Putty.

Explanation there:
http://www.math.umn.edu/systems_guide/putty_xwin32.html


In few word, start XMing server.
Then, run putty and configure your SSH session to your remote desktop / ubuntu use X-Forwarding.

Then, the putty console can open XTerm and all other graphics ...

Monday, June 4, 2012

Ubuntu linux Remove Global AppMenu

In order to remove the Global AppMenu on the top screen and have the window standard app menu on the top of each window, do the following:

sudo apt-get remove indicator-appmenu


There's also way to remove the global menu for specific application only (i.e only for firefox , idea etc ...)

Tuesday, May 22, 2012

Ubuntu background color problem

Periodically, when upgrading Ubuntu, I have this background color problem, where for ex my eclipse open popup with a black color background, so I can't read the tooltip content.

I found a solution here.
In my words:

go to /usr/share/themes/Ambiance/gtk-2.0/gtkrc 
and replace #000000 by #f5f5b5

http://askubuntu.com/questions/70599/how-to-change-tooltip-background-color-in-unity


I had to edit these files:
/usr/share/themes/Ambiance/gtk-3.0/settings.ini
/usr/share/themes/Ambiance/gtk-3.0/gtk.css
/usr/share/themes/Ambiance/gtk-2.0/gtkrc
(Addition: for Ubuntu 12.04, it seems youjust have to modify the file: /usr/share/themes/Ambiance/gtk-2.0/gtkrc , replacing the tooltip backround and foreground color, with the #000000 and the #f5f5b5 color, respectively)
You require root privileges to edit the files. Use sudo gedit to edit them.
Search for tooltip in these files and you'll find the color definitions for the foreground and the background. I use #000000 as foreground and #f5f5b5 as background and now the tooltips in all applications are again readable. After changing the color values simply switch to some other theme and then back to Ambiance and the tooltip color is now fixed.