Thursday, December 1, 2016

11.04 - Nvidia GTS450, turn on nvidia drivers = blank screen after boot




I know this is possibly a duplicate of Blank screen after installing nvidia restricted driver. But now 11.10 has been released. Is this issue near to being resolved?



I've even uninstalled the nouveau drivers and have installed the unified drivers from nvidia, I get the same. Upon reboot the system boots up, I see the root prompt flash up and then it tries to load up unity but then the screen goes blank and the monitor turns off.



Now on the 7th installation of 11.10 and this time I think I will leave as is. As a side issue, XFCE has a 3d drivers option which works for me, as I was just running 11.04 today. Why this option is unavailable for Ubuntu, I am unsure...



Any help appreciated! Thanks



Actually, I found in the monitor section that my monitors where set to mirror. I changed that and now they are both working out of the box. So really I have no need for the nvidia drivers as this is really just a development box.


command line - How to get Ubuntu distribution's full code name?



$ lsb_release -c
Codename: trusty

$ cat /etc/issue
Ubuntu 14.04 LTS \n \l

$ cat /etc/lsb-release
DISTRIB_ID=Ubuntu

DISTRIB_RELEASE=14.04
DISTRIB_CODENAME=trusty
DISTRIB_DESCRIPTION="Ubuntu 14.04 LTS"


Output's of the above commands shows only the partial code name (ie, trusty). How do I get the full codename (trusty tahr) of my installed Ubuntu system?



Using no external tools:



You can just source (the source command is a dot .) the /etc/os-release and you'll have access to all the variables defined there:




$ . /etc/os-release
$ echo "$VERSION"
14.04, Trusty Tahr





Edit. If you want to remove the 14.04, part (as asked by terdon), you could:




$ . /etc/os-release
$ read _ UBUNTU_VERSION_NAME <<< "$VERSION"
$ echo "$UBUNTU_VERSION_NAME"
Trusty Tahr


Note that this is a bit clunky, since on other distributions, the VERSION field can have different format. E.g., on my debian,



$ . /etc/os-release
$ read _ UBUNTU_VERSION_NAME <<< "$VERSION"

$ echo "$UBUNTU_VERSION_NAME"
(wheezy)


Then, you could imagine something like this (in a script):



#!/bin/bash

if [[ -r /etc/os-release ]]; then
. /etc/os-release

if [[ $ID = ubuntu ]]; then
read _ UBUNTU_VERSION_NAME <<< "$VERSION"
echo "Running Ubuntu $UBUNTU_VERSION_NAME"
else
echo "Not running an Ubuntu distribution. ID=$ID, VERSION=$VERSION"
fi
else
echo "Not running a distribution with /etc/os-release available"
fi


resolution - Input signal out of range; Change settings to 1600 x 900

I recently installed Ubuntu 12.04 onto my HP Pavilion, in an attempt to make the desktop able to dual-boot Windows 7 and Ubuntu. I managed to get down to the last step, and finished the installation process. After it prompted me to remove what I used to install Ubuntu, I did so, removing my SanDisk 8GB flash drive, and allowed the system to reboot.


Like usual, the desktop booted with the HP image, with the options at the bottom(Boot Menu, System Recovery, etc). However, when it should have started up with Ubuntu(like I'm certain it should have done), I received the following error:


Input signal out of range
Change settings to 1600 x 900


From the time I installed the operating system, back in late August, till now, I've been trying to figure out how I would go about fixing this issue. My mom is also starting to get frustrated with my not having resolved the issue, as its the only desktop that has a printer installed.


Is there any possible way to resolve this?


To summarize the problem:

-Successful boot

-Screen brings up error

-Screen goes to standby

-Nothing else possible until desktop is rebooted, which will initiate the above three steps


A few notes:

-I did not back up my computer before I installed Ubuntu. I didn't have anything to write to, and basically just forgot to.

-I don't have a Recovery Disk.

-I don't have the Windows 7 disk that is supposed to come with the computer.

-It has been narrowed down by a friend on Skype that the problem lies with the display, and that the vga= boot command does have something to do with fixing the problem


Thank you in advance for resolving this problem. I greatly appreciate it.

command line - how to use expect with bash

I Have created a shell script as given below.This script will login to a remote server as a normal user then switch to root user for creating a directory.The script is as given below.



ssh -t qbadmin@10.3.2.0 '
su root -c "
echo \"Give Directory name :\";
read dir;
mkdir \$dir;
";
'



Here the script will ask Password for normal user first.Then again it will ask for root Password.How could I automate this using expect command.I want to supply the password automatically for the root user only.I think it can be done with expect.


Please do help me.

nautilus - How to restart gvfs?



How to restart the whole gvfs "subsystem", when I've e.g. killed a frozen gvfs-sftp process and want to use it again?




GVFS is the subsystem that takes care about mounting/unmounting drives when you click them in Nautilus, including network drives.



The problem is that sometimes the transfer freezes and I need to kill the frozen "provider" (e.g. the gvfs-sftp). But then I can no longer connect to any network drives in Nautilus using SFTP. Restarting the whole computer helps, but there probably is a better way.



I searched the whole /etc in my computer to find out how is this gvfs system started, but I didn't succeed.



It shows that gvfs is automatically started with the first Nautilus instance (I still don't know how, but it does).



So to restart gvfs, just kill all the remaining process (killing the "master" gvfsd daemon is enough), make sure all instances of nautilus are closed, and then open a new one.




killall gvfsd
nautilus -q # Close all Nautilus windows/instances
nautilus

graphics - Are there drivers for OpenGL 4.3 for [AMD/ATI] Seymour [Radeon HD 6400M/7400M Series] (Ubuntu 14.04)

I want to be able to do opengl4.3 c/c++ programming, the [AMD/ATI] Seymour [Radeon HD 6400M/7400M Series] should be able to support it, I just don't know what drivers I have to install


Also I have installed the propriety driver (Using Video driver for the AMD graphics accelerators from fglrx)

distro recommendation - What version of Ubuntu can I run on an old desktop?

What version of Ubuntu can I run on an old desktop?
Also, can I revert to old style navigation in 11.10?



I have a P4 3ghz

1 gb ram
160 gb HDD
graphics: VESA: 6330



I installed 11.10, but it is slow.

11.10 - Can&#39;t boot from USB after installing Ubuntu

I bought a Samsung series 5 notebook and a very strange thing happened: I installed Ubuntu 11.10 from a usb pen drive but when I restarted (...