FLGRX (AMD Catalyst) driver issues in Ubuntu 12.04 I just finished installing Ubuntu 12.04 32-bit on my laptop and I'm having a hard time getting my graphic card drivers to work.

Jockey (the GUI for installing additional proprietary graphic drivers) always fails to successfully install either of the two driver options it proposes me with, which are:

ATI/AMD proprietary FGLRX graphics drivers (post-release updates)
ATI/AMD proprietary FGLRX graphics drivers

For both, it throws the following error message:

  Sorry, installation of this driver failed.
  Please have a look at the log file for details: /var/log/jockey.log

The log file was a dead end, since I lack the brains to understand it. I can post it if needed.

I continued my investigation by checking if I could install the drivers using Aptitude and here is where it gets weird. The command 'apt-cache policy fglrx-updates' reveals that my system has the FGLRX driver installed. Also, when I do a search in the dash, I can access the Catalyst control center and play with the driver settings so, as far as I can tell, the driver was, in fact, installed...?

But when I use the Additional Drivers Jockey app, it tells me that the drivers AREN'T installed and 'fails' to install them.

Furthermore, when I look at my System Details, under Graphics, it tells me my machine is using 'VESA: RS880M' which, as far as I can tell, are not the proprietary AMD drivers.
So it looks like the drivers are present on my machine but that Ubuntu isn't using them.

Also, I have a copy of Starcraft Brood War that I like to run under Wine on a different computer (a Desktop machine, also Ubuntu 12.04) and it works fine there, but here on my laptop, the framerate is very slow and choppy. So I'm wondering if these issues are related to Ubuntu using the VESA drivers and not the proper AMD drivers.

To summarize:

FLGRX drivers for my ATI graphics card seem to be installed, but Jockey and System Details tell me otherwise. Jockey says they are not installed but then fails to install them, and System Details says I am using VESA (which I assume is different and not what I want). I want the propietary drivers because I suppose they will run faster. What is VESA? Is there a better alternative? How is it that apt-cache tells me that the 'fglrx-updates' package is installed, Jockey tells me the contrary, and system details tell me it is using VESA for Graphics?
Starcraft (original, 1998 game) has a very choppy framerate but this laptop has a dual-core processor with 4GB of RAM so I'm assuming it has to do with my graphics drivers (lack of 2D/3D acceleration?) Does Starcraft being slow have anything to do with the drivers not being properly installed?

I'm lost. Let me know if I'm not making any sense.

Thanks.

I suggest two things

1 In a terminal type the following

fglrxinfo

This will tell you if fglrx is installed and working well you should see an output similar to:

$ fglrxinfo
display: :0  screen: 0
OpenGL vendor string: Advanced Micro Devices, Inc.
OpenGL renderer string: ATI Radeon HD 4300/4500 Series
OpenGL version string: 3.3.11399 Compatibility Profile Context

If not it has not installed properly and I would follow the advice on the Ubuntu ATI page here
Ubuntu ATI site

I usually always install the ATI drivers in the terminal with the following command

sudo apt-get install fglrx fglrx-amdccclete

You may also need to reinstall the updates again:

sudo apt-get install fglrx-updates fglrx-amdcccle-updates

It can be a pain I know from experience. Sometimes I have had to go back the beginning by cleaning out fglrx (sudo apt-get purge fglrx*) and starting afresh.

Let us know how you get on

You may enter this page:
How do I fix my installation of ATI Catalyst Video Driver in 12.04 LTS?
or enter this page if necessary:
http://wiki.cchtml.com/index.php/Ubuntu_Precise_Installation_Guide
You just only change your AMD Catalyst version name which you have downloaded.

First of all, if you have ATi Radeon HD 4xxx and older, you can only use catalyst 13.1 on ubuntu 12.04. If you have Radeon HD 5xxx and newer, you can use the latest catalyst (except Ati Mobility Radeon HD 5650)

Open terminal with pressing Ctrl + Alt + T
Purge AMD driver first:

$ sudo sh /usr/share/ati/fglrx-uninstall.sh   (if file is existing)`

$ sudo apt-get remove --purge fglrx fglrx_* fglrx-amdcccle* fglrx-dev*`

$ sudo rm /etc/X11/xorg.conf`

$ sudo apt-get install --reinstall libgl1-mesa-glx:i386 libgl1-mesa-dri:i386 xserver-xorg-core`

$ sudo dpkg-reconfigure xserver-xorg`

$ sudo reboot`

**If you never installing fglrx/catalyst driver before, command above are not necessary.

After reboot, open terminal, type:

$ sudo apt-get install build-essential cdbs dh-make dkms execstack dh-modaliases fakeroot libqtgui4`
Download the driver from AMD Website. Assume it have file name: amd-driver-installer-catalyst-12.10-x86.x86_64.zip
Create new folder in the home directory (assume the folder name is "Catalyst"), so that /home/your login name/Catalyst
Unzip the downloaded driver into Catalyst folder.
Right click the unzipped file and click properties -> Permission -> tick the Execute box, then close it.
Open terminal, with the assume above, type:

$ cd /home/your login name/Catalyst

$ sudo sh ./amd-driver-installer-catalyst-12.10-x86.x86_64.run --buildpkg Ubuntu/precise

$ sudo dpkg -i fglrx*.deb

$ sudo amdconfig --initial -f`
Restart your computer

$ sudo reboot`
You have state of the art ubuntu on you computer!

Please report with this method.
Maybe this can help you bro.


I need a good solution to bypass internet censorship on Ubuntu I live in Iran, where  many websites are blocked from access by a professional local firewall.
I'm looking for a free  VPN, HTTPS, or any possible proxy software/solution for Ubuntu that could let me to bypass the censorship, so that I could at least access Facebook and Twitter.
I'm saying free because I'm a full time college student and I really can't afford buying a VPN service alongside of other costs to just be able to access Facebook and Twitter.
I do use Hotspot Shield  for Windows, which is very fast and does the job. But for Ubuntu OS, I couldn't manage to find a good solution.
I have tried Tor also, but Tor is very, very slow. I can't even open a webpage without waiting for more than  5-10 minutes.

If you know any good and fast solution for bypassing censorship on Ubuntu, please let me know. I can't wait to browse all kinds of pages that I want in Ubuntu.
Thank you.

I would use wine to run FireFox and FreeGate :)

http://www.internetfreedom.org/FreeGate

http://www.mozilla.org/en-US/firefox/new/

Just switch FireFox's proxy to the ip/port listed in the FreeGate application!

Hopefully this will help googling users

this vpn server cuts through iran's firewall like a butter, so if you''ve got a vps or a friend to help you out, it's the best
Soft Ether VPN:
http://www.softether.org/

client (that works on Linux too):
VPNGate
http://vpngate.net

you can make a Linuxbox free of censorship with soft ether VPN. this was the only stable and fast solution that I have found.


Why does Ubuntu Download recommend 32-bit install? Update for 13.10: 64-bit version is now the default and 32-bit is labelled "for machines with less than 2GB RAM"
The Ubuntu desktop download screen has a pair of radio buttons you use to select whether you wish to download the 32-bit or 64-bit version.  The 64-bit version is labeled "Not recommended for daily desktop usage."  If you have a 64-bit processor, why would you not want to use the 64-bit version of Ubuntu?
Update for 10.10: They've removed the "Not recommended" label from the 64-bit version and added a "Recommended" label to the 32-bit version.
Update for 11.04: Same as 10.10.
Update for 12.04: Still says "Recommended" next to 32-bit version of desktop
Update for 12.10: 32-bit version of desktop is still default, says "recommended"
Update for 13.10: 64-bit version is now the default and 32-bit is labelled "for machines with less than 2GB RAM"

This is actually just a mis-wording of sorts. According to LaunchPad Bug #585940 It's meant to convey that typical desktops are 32-bit whereas more recent desktops are 64-bit. Since the 32bit install will always work on both 32bit and 64bit machines it remains "recommended."

Any modern CPU is capable of running 64 bit.
Both Intel and AMD, even a older AMD sempron supports single core 64bit.

If You don't need memory hungry applications then there is no need to go 64bit.
I have 16GB ram and sure 64 bit , 32bit would be a stupid move.
Counts also for windows 7 en 8.


How to disable sticky edges in Ubuntu 14.04 (Ubuntu 13.10 and earlier had a Option for On/Off Mouse Stickiness) In Ubuntu 12.04~13.10, the Settings >> Display >> Sticky Edges [On/Off] option was available. In Ubuntu 14.10, it is missing. How do I disable Mouse Edge Stickiness so that when I move my mouse from the left monitor to the right monitor, it doesn’t STICK to the edge, in Ubuntu 14.04?*

As suggested below, I tried using unity-tweak-tool, but could not locate the Mouse Edge Stickiness option. Any guidance is appreciated.

Once again, Thank you, as this will help my carpal tunnel syndrome! Thank you!

Go to Displays and disable Sticky edges.

One solution is to set the external monitor onto the left side of the desktop monitor in System-Settings >> Displays. This changes the direction you slide your mouse into the next screen, but this works when the "Sticky Edge" and CompizConfig-System-Manager options do not.

Drag and drop external monitor to the left side of the main monitor

-Please rep if this helps you -- I need 10 reps to post images!! D=

It appears that the issue with the right side is the placement of the workspace navigator along the right edge of the main monitor. The workaround is to find the sweet spots above and below the navigator but that can be rather annoying to rely upon.

NOTE: Applying this change to the left side of the monitor relinquishes any left-screen edge mouse controls such as the system search bar and the applications sidebar. However you still can access it via the "Super" button. But if you're using Gnome-Do or if you're a terminal wiz, this shouldn't be much of an issue..


Print a 256-color test pattern in the terminal How do I print a 256-colour test pattern in my terminal?

I want to check that my terminal correctly supports 256 colours.

256-colour test pattern
To get the below image, use:
curl -s https://gist.githubusercontent.com/HaleTom/89ffe32783f89f403bba96bd7bcd1263/raw/ | bash

The gist bash/zsh code is shellcheck clean, and also supports "Look Ma, no subprocesses!".

Alternatively, for a bash quicky:
for i in {0..255} ; do
    printf "\x1b[48;5;%sm%3d\e[0m " "$i" "$i"
    if (( i == 15 )) || (( i > 15 )) && (( (i-15) % 6 == 0 )); then
        printf "\n";
    fi
done

For total overkill, the granddaddy of the lot is terminal-colors, a 572-line script with multiple output formats.
You can also print a true color (24-bit) test pattern.

I liked @Tom's answer, but depending on the use case I like to be able to see black and white on the color, and the color on white and black. So I modified it a bit to:
#!/bin/bash

for i in {0..255} ; do
    # Black FG on color BG
    printf "\e[30;48;5;%sm%4d " "$i" "$i"

    # White FG on color BG
    printf "\e[97m%4d " "$i"

    # Color FG on black BG
    printf "\e[40;38;5;%sm%4d " "$i" "$i"

    # Color FG on white BG
    printf "\e[107m%4d " "$i"

    # Check whether to print new line
    [ $(( ($i +  1) % 4 )) == 0 ] && set1=1 || set1=0
    [ $(( ($i - 15) % 6 )) == 0 ] && set2=1 || set2=0
    if ( (( set1 == 1 )) && (( i <= 15 )) ) || ( (( set2 == 1 )) && (( i > 15 )) ); then
        printf "\e[0m\n";
    fi
done

Which prints something like this (first few colors shown):


NVIDIA X Server TwinView isses with 2 GeForce 8600GT cards Full disclosure, I am relatively new to Linux and loving the learning curve but I am undoubtedly capable of ignorant mistakes

I have a rig I am building for my home office desktop. The basics:

Gigabyte MB
AMD 64bt processor
Ubuntu 12.04 64bit
two Nvidia GeForce 8600GT video cards using a SLI bridge
two 22" DVI input HP monitors

So here is my issue (it is driving me nuts) with X Server.

If I plug both monitors into GPU 0 X Server auto configures TwinView and all is grand, works like a charm, though both are running off of GPU 0.

If I plug one monitor into GPU 0 and one monitor into GPU 1, X Server enables the monitor on GPU 0, sees but keeps the monitor on GPU 1 disabled. My presumption (we all know the saying about presumptions) is that all I would have to do is select the disabled monitor on GPU 1 and drop down the Configure pull down and select TwinView...problem is when the monitors are plugged in this way, the TwinView option is greyed out and can not be selected.

What am I not understanding here? Is there some sort of configuration I need to do elsewhere for Ubuntu to utilize both GPU's?

Any help will be most appreciated, thanks in advance.

It is solved here

http://ubuntuforums.org/showthread.php?t=1999966

I hope ir helps.

Jaheaga


Why am I unable to install python-gtk on my Ubuntu 16.04.1? When I try to install python-gtk2-dev, I get this message:

~$ sudo apt-get install python-gtk2-dev
Reading package lists... Done
Building dependency tree
Reading state information... Done
The following packages were automatically installed and are no longer required:
  libpaps0 linux-headers-4.4.0-51 linux-headers-4.4.0-51-generic
  linux-headers-4.4.0-52 linux-headers-4.4.0-52-generic linux-headers-4.4.0-53
  linux-headers-4.4.0-53-generic linux-headers-4.4.0-57
  linux-headers-4.4.0-57-generic linux-image-4.4.0-51-generic
  linux-image-4.4.0-52-generic linux-image-4.4.0-53-generic
  linux-image-4.4.0-57-generic linux-image-extra-4.4.0-51-generic
  linux-image-extra-4.4.0-52-generic linux-image-extra-4.4.0-53-generic
  linux-image-extra-4.4.0-57-generic linux-signed-image-4.4.0-51-generic
  linux-signed-image-4.4.0-52-generic linux-signed-image-4.4.0-53-generic
  linux-signed-image-4.4.0-57-generic paps snap-confine
Use 'sudo apt autoremove' to remove them.
The following additional packages will be installed:
  docbook-xsl libffi-dev libpython-dev libpython2.7-dev python-dev
  python-gobject-2-dev python-gtk2-doc python2.7-dev
Suggested packages:
  dbtoepub docbook-xsl-doc-html | docbook-xsl-doc-pdf | docbook-xsl-doc-text
  | docbook-xsl-doc docbook-xsl-saxon fop libsaxon-java libxalan2-java
  libxslthl-java xalan
The following NEW packages will be installed:
  docbook-xsl libffi-dev libpython-dev libpython2.7-dev python-dev
  python-gobject-2-dev python-gtk2-dev python-gtk2-doc python2.7-dev
0 upgraded, 9 newly installed, 0 to remove and 32 not upgraded.
Need to get 30.6 MB of archives.
After this operation, 72.6 MB of additional disk space will be used.
Do you want to continue? [Y/n] Y
Abort.

What should I do?

I don't know if this is your solution, but it has happen to me before when I copy paste a command into the terminal. Solution for me was to simply type it by myself.


How do I install the latest version of node.js? How do I install the latest node.js on Ubuntu? I've been looking around, and I can't find anything. Is there a Ubuntu package for node.js, or do I have to compile it myself?

Per the Node.js website:
# Using Ubuntu
curl -sL https://deb.nodesource.com/setup_14.x | sudo -E bash -
sudo apt-get install -y nodejs

Then, you will have the latest version of Node.js.
If you're not a fan of curl <url> | bash -, or are using an unsupported distribution, you can try a manual installation.

Here are the commands

curl -sL https://deb.nodesource.com/setup_8.x | sudo -E bash -
sudo apt-get install -y nodejs


Error trying to run GCCG while loading shared libraries: libjpeg.so.62: cannot open shared object file I'm trying to run GCCG (a multiplatform implementation of a card game engine) on my Ubuntu 12.04 x86_64, but I always get the following error:

./ccg_client: error while loading shared libraries: libjpeg.so.62: cannot open shared object file: No such file or directory

Of course I thought the library was missed and I tried to install using apt-get, but I realized it was already installed.

When i use

$ locate -i libjpeg

this is what i get:

/usr/lib/i386-linux-gnu/libjpeg.so.8
/usr/lib/i386-linux-gnu/libjpeg.so.8.0.2
/usr/lib/jvm/java-6-openjdk-amd64/jre/lib/amd64/libjpeg.so
/usr/lib/x86_64-linux-gnu/libjpeg.so.62
/usr/lib/x86_64-linux-gnu/libjpeg.so.62.0.0
/usr/lib/x86_64-linux-gnu/libjpeg.so.8
/usr/lib/x86_64-linux-gnu/libjpeg.so.8.0.2
/usr/share/doc/libjpeg-turbo8
/usr/share/doc/libjpeg62
/usr/share/doc/libjpeg8
/usr/share/doc/libjpeg-turbo8/changelog.Debian.gz
/usr/share/doc/libjpeg-turbo8/copyright
/usr/share/doc/libjpeg62/README.gz
/usr/share/doc/libjpeg62/changelog.Debian.gz
/usr/share/doc/libjpeg62/copyright
/usr/share/doc/libjpeg8/changelog.Debian.gz
/usr/share/doc/libjpeg8/copyright
/usr/share/lintian/overrides/libjpeg-turbo8
/var/lib/dpkg/info/libjpeg-turbo8:amd64.list
/var/lib/dpkg/info/libjpeg-turbo8:amd64.md5sums
/var/lib/dpkg/info/libjpeg-turbo8:amd64.postinst
/var/lib/dpkg/info/libjpeg-turbo8:amd64.postrm
/var/lib/dpkg/info/libjpeg-turbo8:amd64.shlibs
/var/lib/dpkg/info/libjpeg-turbo8:amd64.symbols
/var/lib/dpkg/info/libjpeg-turbo8:i386.list
/var/lib/dpkg/info/libjpeg-turbo8:i386.md5sums
/var/lib/dpkg/info/libjpeg-turbo8:i386.postinst
/var/lib/dpkg/info/libjpeg-turbo8:i386.postrm
/var/lib/dpkg/info/libjpeg-turbo8:i386.shlibs
/var/lib/dpkg/info/libjpeg-turbo8:i386.symbols
/var/lib/dpkg/info/libjpeg62:amd64.list
/var/lib/dpkg/info/libjpeg62:amd64.md5sums
/var/lib/dpkg/info/libjpeg62:amd64.postinst
/var/lib/dpkg/info/libjpeg62:amd64.shlibs
/var/lib/dpkg/info/libjpeg8:amd64.list
/var/lib/dpkg/info/libjpeg8:amd64.md5sums
/var/lib/dpkg/info/libjpeg8:i386.list
/var/lib/dpkg/info/libjpeg8:i386.md5sums

Any idea of what is going bad?

Thanks in advance!

Is the executable you are trying to run a 32 bit executable, by any chance?

The locate output shows you have a 64-bit version of libjpeg.so.62 (in /usr/lib/x86_64-linux-gnu), but that can't be used if the executable is 32-bit.

You can determine what architecture a file is compiled for using the file command.  For instance:

$ file /bin/ls
/bin/ls: ELF 64-bit LSB executable, x86-64, version 1 (SYSV), dynamically linked (uses shared libs), for GNU/Linux 2.6.24, BuildID[sha1]=0x214a38d0db472db559f0dabf0ae97f82fea83e03, stripped

If it says you have a 32-bit executable, then that is your problem.

You can install the 32-bit version of the library in question using the following command:

sudo apt-get install libjpeg62:i386

cd /usr/lib/i386-linux-gnu
sudo ln -s libjpeg.so.8.0.2 libjpeg.so.62

Now you will solve the problem


NVIDIA X Server Settings lost on every reboot I am running a GeForce GTX 770 on a Z87 Gigabyte mobo and dual-boot Windows 8.1 Pro and Ubuntu 12.04.3 LTS. The setup runs smoothly overall except for when it comes to video and 3D performance in Ubuntu. I had the infamous flickering issue at one point and found a way to fix it. It has to do with the NVidia card going into low-power mode and then videos and 3D effects suffer from tearing and stuttering. The fix is to go to nvidia-settings and change the power-mode from 'Auto' to 'Prefer Maximum Performance'. The problem is this only works until I reboot. After the reboot the setting is cleared and the problems still persist, so I have to manually set it again for the current session. I tried gksu-ing and setting it, but it didn't work. I tried to edit the etc/X11/xorg.conf, but it's empty - there are zero lines in that file... I read all the related articles, but mainly people complain about brightness being reset or dual-monitor configs, which solutions involve some specific app that doesn't help me in any way.

TL;DR: NVidia settings are reset after reboot and tried everything I could find on the Internet to no good.

If someone knows what to do in this situation, please share!

Thank you!

EDIT [1]: I did some further digging and it seems there is no obvious or safe solution. Some people have tried to set the performance level manually, but report it's unsafe and may kill the GPU.
There is still hope though. I think this could be done through the NVidia profiles option provided from nvidia-settings. The problem is that one needs to know the key in question and the value this key accepts.

I could have put a screenshot here, but I need rep => 10...

I couldn't find a list of the possible keys nor any key values... No luck I guess.

Can someone provide a link or list some useful ones?

Thanks!

EDIT [2]: Finally! Thanks to everybody for the help! I found the solution with the help of vegard torvund and this thread. And thanks to the Ubuntu Google+ Community for spreading the word!

Create a xorg.conf file by:

sudo nvidia-xconfig

Look for the Section "Device" part in the xorg.conf file
And add this line inside the section:

Option "RegistryDwords" "PowerMizerEnable=0x1; PerfLevelSrc=0x3322"

Save and reboot your machine.

PS. If you add more parameters, add ; after 0x3322

Alt+F2 and on the command type gksu nvidia-settings
Save X Configuration
/etc/X11/xorg.conf


Installing software center ubuntu Okay so I recently had some problems with ubuntu software centre where if I opened it from the dashboard it would open up, but only display a white screen. Nothing happened, so if I then clicked the 'x', it would ask me if i would like to force close the non responding software centre.

To get round this I've been opening the software centre via terminal which seems to let it work fine.

But i needed it working normally and after lots of attempts I couldn't figure it out so decided to just un-install and reinstall it.

Un-install worked fine, but now for the reinstall. When i type into terminal

sudo apt-get install software-center

I get this back;

Reading package lists... Done
Building dependency tree
Reading state information... Done
Package software-center is not available, but is referred to by another package.
This may mean that the package is missing, has been obsoleted, or
is only available from another source

E: Package 'software-center' has no installation candidate

any ideas? Thanks :)

Ubuntu 12.04

Like @dobey said, you should give the command sudo apt-get update a whirl. You may have a problem with your apt-cache and as such, you will have problems installing things.

Run the command sudo apt-get update && sudo apt-get upgrade. This will check for any and all updates/upgrades, hopefully fixing your system.

Once this runs, try running @sebastian_k's answer, sudo apt-get install software-center*. This will get/install anything and everything that Ubuntu Software Center needs to run.

Make sure you have the repository link.
From:
Main Menu: System > Administration > Software Sources.
Make sure that the Main repository is selected.
You can get a PPA with:
sudo add-apt-repository ppa:software-store-developers/daily-build
or
sudo add-apt-repository ppa:ubuntuone/nightlies

It's generally recommended to just download the source code

You can get it from:

https://launchpad.net/software-center

Or directly from:

https://launchpad.net/software-center/stable-13-10/13.08/+download/software-center-13.08.tar.gz

Or you can get it in Synaptic.


How can I connect to Nexus 7 (running Ubuntu) via SSH? I just installed Ubuntu on my Nexus 7 and works like a champ, but I can't connect via SSH/Telnet/RSH from my laptop. I've installed openssh-server, telnetd-ssl and rsh-server, but still can't.

The connection is made, but it hangs after typing my password.

$ ssh ubuntu@192.168.1.70
ubuntu@192.168.1.70's password:

I'm running Ubuntu Raring 13.04 on a Nexus 7 32GB

Thank you.

I have just installed Ubuntu 13.04 on a nexus 7.
The steps were, in a terminal on the nexus:

$ apt-get install openssh-server # answer y
$ ifconfig wlan0 # to find nexus IP address

Then, on a computer in the same wireless network,

$ ssh loginname@ip-address

The authenticity of host '192.168.131.40 (192.168.131.40)' can't be established.
ECDSA key fingerprint is 54:22:d3:ea:2e:af:b2:87:23:74:1a:ce:f5:e5:e4:11.
Are you sure you want to continue connecting (yes/no)? yes
Warning: Permanently added '192.168.131.40' (ECDSA) to the list of known hosts.
loginname@192.168.131.40's password:

The programs included with the Ubuntu system are free software;
the exact distribution terms for each program are described in the
individual files in /usr/share/doc/*/copyright.

Ubuntu comes with ABSOLUTELY NO WARRANTY, to the extent permitted by
applicable law.

Welcome to Ubuntu Raring Ringtail (development branch) (GNU/Linux 3.1.10-8-nexus7 armv7l)

 * Documentation:  https://help.ubuntu.com/

loginname@nexus:~$

Login with the user you created during the installation. But make ssh more verbose, should tell you were it is hanging.

ssh -vvv ubuntu@192.168.1.70


What is the password for ``ssh root@localhost``? I need to ssh to localhost using root account, by ssh root@localhost. When it prompts for passwords, I can not login with all possible passwords. On setting of localhost machine, regular user xxx and root user share the same password (the password that works for sudo -s), but it does not works for ssh root@localhost. So where to look at the password for ssh root@localhost

PS: with the password, I can login to regular account on ssh xxx@localhost.

PPS: to answer further questions on motivation of doing so, localhost is just a computer in a private network and setting up ssh root@localhost is just to relieve some manual management in a prototype system.

ssh root@localhost uses the same password for root. It looks like you have not set root password.
To do that log in as root using sudo -s then use passwd command to set root password.

After that you must be able to ssh as root

How to find out root password for installing software

They answered your question about login to ssh with non super user (say goblin@192.168.0.3 -p 22).

First create another account without su privleges. After you log into ssh as a non super user you can enter this command to switch to root (escalate your privileges):

su

And enter password.


How do I remap my Ubuntu keyboard shortcuts to match OSX? I'm using Ubuntu in VirtualBox on Mac. As I switch frequently, I would like to use the same shortcuts. Please, does anyone know how to have the same shortcuts on Ubuntu, as they are on Mac? Specifically, I would like to Copy, Paste, Select All, ... work with Cmd+C, Cmd+V, Cmd+A, ... (even in terminal - no Ctrl+Shift, just Ctrl).

I tried to change Keyboard Layout to Apple Laptop, but that didn't help.

There's no need to use xbindkeys to achieve OSX-like keyboard mapping on Ubuntu. This is an inbuilt option:

Go into your Ubuntu Settings
Navigate to Keyboard → Keyboard Layout Settings
add English (Macintosh)

That will depend on the software you are using to run your virtual machine.
For exemple, I use VMWare Fusion to run Ubuntu on my Mac and to achieve what you want, I went to "Settings" of VMWare Fusion and setup the key-mapping I wanted inside that specific virtual machine (I can have multiple setups, one for each VM).

I never used VirtualBox, but I'm pretty sure you can do that in the Settings of VirtualBox.


aero snap left and right in metacity ubuntu 14.10? I managed to install Gnome classic Metacity on Ubuntu 14.10 using this:

sudo apt-get install gnome-session-fallback

I can user the Super (Windows) key to maximize and restore the windows with the Up and Down arrows.

I would also like to have the Aero Snap effect with Super+left and Super+right, ideally also having it working with my external screen plugged.

I want this to work with Metacity, I would rather have it done in a quick and dirty way than having to move to something different than Metacity.

Any ideas?

You can use
Ctrl+Super+left or Ctrl+Super+right


Terminal shows menu in panel but window is missing I upgraded from 10.10. Then everything worked well except very important one -- my terminal.

I try to open my terminal, but no any window popup. I press alt+tab and the windows switcher appears in which there is the terminal. I switch to it, however, nothing happens.

I can see the word terminal in my top bar. When I move cursor on it I see the file edit view and so on. But they are useless unless I can find my terminal window.

I have no problem with chrome, firefox, eclipse, ubuntu software center, pidgin and many more applications. But without terminal, I'm using a disabled linux.

I switch to ROXterm to replace gnome-terminal.
It works well. But I'm still wondering if I can use gnome-terminal in Natty.

Just click the Ubuntu logo in the top left corner, then type in "terminal" in the search bar. It comes up under apps. Should be good to go after that.


Which 11.04 file do I download? Should be an easy enough question for you Ubuntu gurus out there. I need to know which Ubuntu file to download for a 64 bit disk image on this webpage. Thank you for your time and help.

Actually the one that says 64-bit PC (AMD64) desktop CD is the one you want "For a Desktop/Laptop".

If you want it for a server installation then go with the one that says 64-bit PC (AMD64) server install CD

64Bit Desktop - http://releases.ubuntu.com/natty/ubuntu-11.04-desktop-amd64.iso

64Bit Server - http://releases.ubuntu.com/natty/ubuntu-11.04-server-amd64.iso

64Bit Desktop (Torrent) - http://releases.ubuntu.com/natty/ubuntu-11.04-desktop-amd64.iso.torrent

64Bit Server (Torrent) - http://releases.ubuntu.com/natty/ubuntu-11.04-server-amd64.iso.torrent

you have to download  this ubuntu-11.04-desktop-amd64.iso


A command-line clipboard copy and paste utility? In Windows I used command-line clipboard copy-and-paste utilities...

pclip.exe and gclip.exe

These were UnixUtils ports for Windows (but they only handled plain text). There were a couple of other native Windows utilities which could write/extract any format.

I've looked for something similar in Synaptic Package Manager, but I can't find anything.

Is there something there, that I've missed? ... or maybe this is available in Bash scripting?

The type of utility I'd like will be able to read/write via std-in/std-out or file-in/file-out, and handle Unicode, Rich Text Format, picture, etc. clipboard formats...

NB: I'm not after a clipboard manager.

xsel

I am using xsel Install xsel, but I am only using it with plain text and unicode text.

xsel can copy and paste to three different "clipboards".

By default, it uses the X Window System primary selection, which is basically whatever is currently in selection. The X Window System also has a secondary selection (which isn't used much), and a clipboard selection. You're probably looking for the clipboard selection, since that's what the desktop environment (e.g. Gnome, KDE, XFCE) uses for its clipboard. To use that with xsel:

xsel --clipboard < new-clipboard-contents.txt
xsel --clipboard > current-clipboard-contents.txt

Yes, there is. Try tmux which is more advanced than screen. To install tmux, type this in the terminal:

sudo apt-get install tmux

Also try gpm. The commands gpm and tmux might be a good combination...


Rrrepeattt keyys in Ubuntu 14.04 driving me nuts Problem:

Repeat keys while typing, unless I use an extraordinarily slow and careful touch on the keyboard.  (Example:  Thhe quickk browwn fox.)

System:

Dell Precision 7710 with Ubuntu 14.04 and Cinnamon 2.85 desktop, although I've often seen the problem in Unity

Troubleshooting tried to date:

(1) System settings --> Keyboard --> change 'Repeat delay' to the highest available 'long' setting, and 'Repeat speed' to the slowest available setting.  I now have 'Enable Key Repeat' turned off entirely.

(2) sudo kbdrate -r 2 -d 1000 from the command line

The BIOS doesn't have a 'typematic' setting.

Any suggestions will be appreciated.

update:

I just spent almost an hour typing with an external keyboard attached via the USB port, and didn't get double keys once. -- May I safely assume that the problem is with the Precision 7710's relationship with the OS, and not with the OS itself?

Try running these commands in terminal:

Method 1:

 sudo su
 apt update
 apt install --reinstall ubuntu-desktop
 apt install unity
 reboot

Method 2:

sudo su
rm -rf ~/.config

Method 3:

sudo rm -rf .compiz-1

Hope it works.


Copying specific subfolders with directory structure to a new folder I have the following directory structure:

                            Main_Dir
                               |
              -----------------------------------
            Subdir1         Subdir2         Subdir3
               |               |               |
          -----------     -----------     -----------
          |    |    |     |    |    |     |    |    |
         fo1  fo2  f03   fo1  fo2  f03   fo1  fo2  f03

I want to copy all the subdirectories (Subdir1, Subdir2, Subdir3) to a new folder.
But how would I only copy fo1 and fo2 folders to the new place?

Use rsync:

rsync -av --exclude="f03" /path/to/Main_Dir/ /pth/to/destination

In your case it is just possible if the folders fo1, fo2, fo3 have different names, because you cannot have 3 folder with the same name in a folder. So if it looks like this:

user@host:~/test/1# find
.
./main
./main/sub1
./main/sub1/fo3
./main/sub1/fo1
./main/sub1/fo2
./main/sub2
./main/sub2/fo6
./main/sub2/fo4
./main/sub2/fo5
./main/sub3
./main/sub3/fo9
./main/sub3/fo8
./main/sub3/fo7

... you can copy (just the sub folders) by:

user@host:~/test/1# cp -R main/*/fo* ../2/

Now ../2/ looks like this:

user@host:~/test/1# cd ../2/
user@host:~/test/2# ls
fo1  fo2  fo3  fo4  fo5  fo6  fo7  fo8  fo9


How to install NodeJS 4 using apt? How can I install NodeJS 4 on Ubuntu using apt-get utilities?

Instructions were taken from here: https://github.com/nodesource/distributions

wget -qO- https://deb.nodesource.com/setup_4.x | sudo bash -

and then:

sudo apt-get install nodejs

Here is the system versions:

ubuntu@424c7702-0947-e7c7-c532-dfec484fc109:~$ lsb_release -r
Release:    15.04
ubuntu@424c7702-0947-e7c7-c532-dfec484fc109:~$ node -v
v4.0.0
ubuntu@424c7702-0947-e7c7-c532-dfec484fc109:~$ npm -v
2.14.2

This worked for me

echo 'export PATH=$HOME/local/bin:$PATH' >> ~/.bashrc
. ~/.bashrc
mkdir ~/local
mkdir ~/node-latest-install
cd ~/node-latest-install
curl http://nodejs.org/dist/node-latest.tar.gz | tar xz --strip-components=1
./configure --prefix=~/local
make install
curl https://www.npmjs.org/install.sh | sh

Source: https://gist.github.com/isaacs/579814


Ubuntu fails to boot on a dualboot system I started up Ubuntu and everything went fine till it locked up, so I restarted the tower, and upon reboot, I selected Ubuntu from Window's bootloader, but the boot failed with an error message and refused to boot Ubuntu but opened Grub.  I clicked the tab entered boot and it said kernel is missing.

Need more information.
You mention BIOS but Windows 8. Is this really a Windows 8 system with UEFI or a system you manually installed yourself so Windows 8 may be in BIOS boot mode?

How did you shutdown Ubuntu? Forcing it down may corrupt file system and need a fsck or Windows may need chkdsk from your Windows repairCD*

From liveCD so everything is unmounted,swap off if necessary, change example shown with partition sdb1 to your partition(s)
e2fsck is used to check the ext2/ext3/ext4 family of file systems. -p trys fixes where response not required

sudo e2fsck -C0 -p -f -v /dev/sdb1

if errors: -y auto answers yes for fixes needing response, also see man e2fsck

sudo e2fsck -f -y -v /dev/sdb1


What is the $DISPLAY environment variable? I am new to shell scripting. I don't understand what the $DISPLAY environmental variable is.

I have Ubuntu 13.10 and I use /bin/bash shell. I have two monitors.

Questions:

Command echo $DISPLAY will print :0.0 on my machine (on both monitors). What does this mean?
In which cases will the $DISPLAY variable be blank or NULL?
Are there any articles or tutorials on this?

The magic word in the X window system is DISPLAY. A display consists (simplified) of:

a keyboard,
a mouse
and a screen.

A display is managed by a server program, known as an X server. The server serves displaying capabilities to other programs that connect to it.
The remote server knows where it has to redirect the X network traffic via the definition of the DISPLAY environment variable which generally points to an X Display server located on your local computer.
The value of the display environment variable is:
hostname:D.S

where:
hostname is the name of the computer where the X server runs. An omitted hostname means the localhost.
D is a sequence number (usually 0). It can be varied if there are multiple displays connected to one computer.
S is the screen number. A display can actually have multiple screens. Usually, there's only one screen though where 0 is the default.
Example of values
localhost:4
google.com:0
:0.0

hostname:D.S means screen S on display D of host hostname; the X server for this display is listening at TCP port 6000+D.
host/unix:D.S means screen S on display D of host host; the X server for this display is listening at UNIX domain socket /tmp/.X11-unix/XD (so it's only reachable from host).
:D.S is equivalent to host/unix:D.S, where host is the local hostname.
:0.0 means that we are talking about the first screen attached to your first display in your local host
Read more here: support.objectplanet.com and here: superuser.com and here: docstore.mik.ua.
From a X(7) man page:

From the user's perspective, every X server has a display name
of the form:
hostname:displaynumber.screennumber
This information is used by the application to determine how it should
connect to the server and which screen it should use by default (on
displays with multiple monitors):
hostname The hostname specifies the name of the machine to which the
display is physically connected. If the hostname is not given, the
most efficient way of communicating to a server on the same machine
will be used.  displaynumber The phrase "display" is usually used to
refer to a collection of monitors that share a common keyboard and
pointer (mouse, tablet, etc.). Most workstations tend to only have one
keyboard, and therefore, only one display. Larger, multi-user systems,
however, frequently have several displays so that more than one person
can be doing graphics work at once. To avoid confusion, each display
on a machine is assigned a display number (beginning at 0) when the X
server for that display is started. The display number must always be
given in a display name.  screennumber Some displays share a single
keyboard and pointer among two or more monitors. Since each monitor
has its own set of windows, each screen is assigned a screen number
(beginning at 0) when the X server for that display is started. If the
screen number is not given, screen 0 will be used.

Recently I have been doing some scripting for some automatic launching of Firefox at a specific time for reminding me to clock in and out since I have been working from home.  I found out that the DISPLAY variable is determined by the Display Manager, i.e. GDM3, LightDM, etc.  I also made the discovery that the :0 or :1 is determined by AutomaticLogin.  In GDM3 if I have the AutomaticLogin disabled, then my DISPLAY variable is :1.  If I have AutomaticLogin enabled, DISPLAY is now :0.  These numbers do not change regardless of number of monitors I have connected to my system.
The reason why this is important is that I use cron to launch a script for me at certain times to launch Firefox.  cron does not have the variables set, in fact they are very limited, so at the top of my script after my SheBang line I have this line to export my DISPLAY type.  Without exporting the DISPLAY in the script that is being called by crontab, Firefox will not launch and instead will give an error since no DISPLAY is set.
#This line checks if automatic login is disabled in gdm3 and sets DISPLAY.
grep "# AutomaticLogin" /etc/gdm3/custom.conf >/dev/null && export DISPLAY=":1" || export DISPLAY=":0"


I can't install nvidia driver on Ubuntu 16.04 When I try to install the graphics driver it shows the following error message. I also tried fixing the broken package but it didn't work.

$ sudo apt-get install nvidia-390
Reading package lists... Done
Building dependency tree
Reading state information... Done
Some packages could not be installed. This may mean that you have
requested an impossible situation or if you are using the unstable
distribution that some required packages have not yet been created
or been moved out of Incoming.
The following information may help to resolve the situation:

The following packages have unmet dependencies:
 nvidia-390 : Depends: lib32gcc1 but it is not going to be installed
              Depends: libc6-i386 but it is not going to be installed
E: Unable to correct problems, you have held broken packages

if this might help, here is some info about my current system

dpkg --print-architecture
amd64

nashib@nashib-Vostro-5470:~$ dpkg --print-foreign-architectures
i386

nashib@nashib-Vostro-5470:~$ apt-cache policy nvidia-390 lib32gcc1 libc6-i386
nvidia-390:
  Installed: (none)
  Candidate: 390.25-0ubuntu0~gpu16.04.1
  Version table:
     390.25-0ubuntu0~gpu16.04.1 500
        500 http://ppa.launchpad.net/graphics-drivers/ppa/ubuntu xenial/main amd64 Packages
lib32gcc1:
  Installed: (none)
  Candidate: 1:6.0.1-0ubuntu1
  Version table:
     1:6.0.1-0ubuntu1 500
        500 http://archive.ubuntu.com/ubuntu xenial/main amd64 Packages
libc6-i386:
  Installed: (none)
  Candidate: 2.23-0ubuntu3
  Version table:
     2.23-0ubuntu3 500
        500 http://archive.ubuntu.com/ubuntu xenial/main amd64 Packages

Open the Software and Updates app. Click on the Other Software tab, check the Canonical Partners checkbox, enter your password when prompted. Then click on Close then on the Reload button. It will update the cache then close. Launch it again, click on the Addition Drivers tab. It will search for any drivers that it can find. If your WiFi adaptor is supported, it will come back with driver options for you to select. Choose one then click on Apply Changes


Kubuntu taskbar menu popups unusable Just installed Kubuntu 16.04 again and for some reason the taskbar pop-up menus are unusable. When i click any icon (wifi, bluetooth, hidden icons etc.) the popup menu flashes up and disappears back down again. It happens with the system tray items, digital clock and even with application menu/launcher.

Everything is updated/upgraded.

Any ideas?

I had a similar problem, and it was because I set the Focus stealing prevention to High.

Since you can't bring up the options from the menu as normal (oops), using

App Menu -> Settings -> Configure Desktop
  -> Window Management -> Window Behavior -> Select [Focus] tab

From a command line, type

kcmshell4 kwinoptions

Choose the Focus tab (already selected for me), scroll down to Focus stealing prevention and choose something less aggressive. Medium worked for me.

Have you installed all of the updates and upgrades of your system?
Try

  sudo apt-get update && sudo apt-get upgrade

and then

  sudo apt-get install aptitude

after install aptitude, upgrade your system

  sudo aptitude dist-upgrade

Something on kde must be missing, and these commands might help.


Why does 'quickly package' fail with "An error has occurred when creating debian packaging"? I've got a big problem with packing my quickly application for the Ubuntu App Showdown.
When I try to package or submit my application, I get some warnings:

quickly package --verbose
........
----------------------------------
WARNING: syntax errors in facebook/FacebookWindow.py: encoding declaration in
Unicode string (FacebookWindow.py, line 0)
WARNING: the following files are not recognized by DistUtilsExtra.auto:
  AUTHORS~
  facebook/AboutFacebookDialog.py~
  facebook/FacebookWindow.py~
  facebook/PreferencesFacebookDialog.py~
  facebook/__init__.py~
  facebook_lib/AboutDialog.py~
  facebook_lib/Builder.py~
  facebook_lib/PreferencesDialog.py~
  facebook_lib/Window.py~
  facebook_lib/__init__.py~
  facebook_lib/facebookconfig.py~
  facebook_lib/helpers.py~
  setup.py~
----------------------------------
An error has occurred when creating debian packaging
ERROR: can't create or update ubuntu package
ERROR: package command failed
Aborting

What does the second warning mean? How do I solve those warnings? I want to submit my app to the Ubuntu App developer Showdown into my PPA and it doesn't work.

Thanks for any answer.

You are probably using a version of the python-distutils-extra package from the precise-proposed pocket in the archive, that is newer than the stable release and that it is known to cause trouble with the latest Quickly version.

Try to downgrade it by running the following command, and then re-run the Quickly packaging command:

sudo apt-get install python-distutils-extra=2.32-2

To get rid of the warnings, just delete all the files that are ending in "~". Those are back-up files created by your text editor whenever you save a file. It is safe to remove them if your app runs flawlessly when you do quickly run for example. The files ending in "~" are hidden files, so when you are in Nautilus, don't forget to hit Ctrl+H to see them.


How do I make my synclient settings stick? The default setting for synaptics touchpads includes a paste functionality mapped to the upper right corner of the touchpad. I can disable this behavior by running the command

synclient RTCornerButton=0

But every time I reboot my settings are reverted. How do I prevent this from happening?

You need to put the settings in a xorg.conf file as follows:

sudo gedit /usr/share/X11/xorg.conf.d/60-synaptics-options.conf

In the new file, type

Section "InputClass"
  Identifier "touchpad catchall"
  Driver "synaptics"
  MatchIsTouchpad "on"
  MatchDevicePath "/dev/input/event*"

  Option "RTCornerButton" "0"

EndSection

sudoedit /usr/share/X11/xorg.conf.d/50-synaptics.conf

add those lines in the Section "InputClass"

Option "RTCornerButton" "0"

If you're using GNOME or Cinnamon desktop manager, there is a good chance that GNOME/Cinnamon's settings can override your custom settings. To prevent GNOME/Cinnamon's settings override yours, open dconf Editor [dconf-editor] and edit following entry:

/org/gnome/settings-daemon/plugins/mouse/
or
/org/cinnamon/settings-daemon/plugins/mouse/

Uncheck active.


hp stream wifi disconnects I have the hp stream 11" (11-d010wm) using realtek wifi: RTL8723BE
kernel 3.19.2-vivid to fix touchpad issues (I've tried v4.0rc5-vivid also)

I've tried both Ubuntu 14.10 and the latest release of Linux mint cinnamon.

The connection frequently stops responding.  Connection manager shows it still connected but no traffic is moving.  pinging my home router (or any destination) results in unreachable.  I've used both static IP and dhcp.

in Ubuntu I can just disconnect/reconnect and that seemed to work fine.
in linuxMint it will ask to re-authenticate wifi password and it will never succeed.  restart required.

Initially the connection was lasting for a while (15-30 minutes). But it seems to have increased in frequency (since switching to linuxMint?).  Now it seems i can't even stay connected for a couple minutes at a time.

When I boot the machine to windows I do not experience problems.  My other windows devices don't experience connectivity issues to the same router over wifi when stream drops.

at this time I managed to install linuxMint without switching from EFI to legacy boot (and leaving secure boot enabled) not sure if that has any impact.

I grabbed this chunk of my logs  - I don't recall what all I was doing during this time (probably tried to manually deactivate/reactivate radio before restarting, may have also tried changing network configs).

pastebin.com/ppXfeHnU

this is a really great device for what I wanted to do with it (ssh to my desktop from the couch to do some programming) but the freezing connections makes it unusable in Ubuntu/linuxMint.

I'm not sure what the next step is.  maybe trying to find the source files for the drivers and build them on my machine?

According to a reply comment from a review about the ultralight laptop at amazon: http://www.amazon.com/review/R28HR668I6LU8Y/ref=cm_cd_pg_pg6?ie=UTF8&asin=B00NSHLUBU&cdForum=Fx32V5DBEJH4RUL&cdPage=6&cdThread=Tx1I5CUWGAIAGT5&store=pc#wasThisHelpful

The wifi issue can be fixed with a new driver by.....
You can get the zip from https://github.com/lwfinger/rtlwifi_new [on the right side of the page about half way down is the download button ]. Now, extract the directory, cd to that directory, type "sudo make", "sudo make install" and reboot. The wifi now seems to be fine.

And for the mousepad right click problems.....
To solve the right-click problem I had to modify the settings for synaptics. I copied the file /usr/share/X11/xorg.conf.d/50-synaptics.conf to /etc/X11/xorg.conf.d/50-synaptics.conf. I then changed the line "MatchDriver "synaptics"" with "Option "ClickPad" "on"" and the line "Option "SoftButtonAreas" "50% 0 82% 0 0 0 0 0" with "Option "SoftButtonAreas" "50% 0 50% 0 0 0 0 0". After a reboot I could right-click again.


Broken fonts in KDE (Kubuntu 14.10) From time to time I experience a very strange bug:

Fonts are broken not only in Firefox, but in the whole KDE environment.
What can I do to fix it?

UPDATE #1

Installed Kubuntu from scratch and got this bug on the second day of using it. But now it affects only Firefox.

UPDATE #2

Well, it's not only in Firefox =)

Based on the information available in your question this can be a very broad range of things. I am going to list the ones that come to mind!

You have selected a custom system font file that does not adhere to standards. Solution: revert to the default system font or find another without bugs.
The font file is corrupt. This is not likely since you say it occurs from time to time. Solution: Replace it with an original fetched online. Rebuild font caches.
There is a version conflict in the chain of libraries that are responsible for rendering your fonts. Solution: sudo update; sudo upgrade; sudo reboot; usually does the trick. Also if you have a lot of PPAs installed, I would disable them together with software installed from them temporarily to see if the problem goes away.
One of the font rendering libraries has a bug. This could manifest itself as some glyphs not being rendered properly like in your screen-shot. Solution: Reinstall font rendering packages.
The font rendering library's cache is corrupt. Font rendering is an expensive/slow operation and it is customary to use caches of rendered bitmaps that are dynamically managed at run-time to speed this up. Should the memory or disk-space required for this cache not have sufficient security privileges, run out space, become corrupted due to hardware faults then this would make font rendering look ugly. Solution: Rebuild font caches with this: sudo fc-cache -srv; fc-cache -rv
Hardware accelerated font rendering will rely on both the GPU and its driver. The GPU driver may have a bug or you are having hardware problems with your GPU that manifest themselves as errors in font rendering. Typically GPUs will start malfunctioning "a little" when they are under stress, overheat or in some cases when they don't receive enough power from the PSU. Solution: make sure your system is not overheating. Make sure your PSU is scaled to handle your GPU. There are utilities that can help you stress-test your GPU to see if this produces your problem.
Memory chips have faults that manifest as memory corruptions. If this is the case you may also experience instability. If a memory chip gets just one bit wrong every 4 days this can manifest itself as really hard to track errors. Solution: run memtest86 or similar memory testing tools to verify that your chips are fine.
Individual applications may have bugs that manifest themselves like your screen-shot. Especially applications that are text and font intense such as web-browsers. I have seen this myself in Firefox. At one time all letters were exchanged for small filled boxes. Solution: restart app or system if it happens seldom. Update software version if it happens often.
Firmware bugs is a reality, especially in low end hardware. Also bugs in firmware are often masked over in the WINDOWS drivers. For Linux users this means we get to keep the firmware bugs for free. Solution: If you got your computer for cheaps, or it is from a vendor not known for it's focus on stability/Linux support then maybe you should start saving for a new system.

Hope at least some of this was of use. I really had a great time writing it!

Normally, this might just be a problem of the original font file. You can re-download the font family from this direct link:

http://font.ubuntu.com/download/ubuntu-font-family-0.80.zip

and then from there just re-install the entire font family. This shouldn't take more than 2 minutes combined. If this still doesn't work, leave a message in the comments


Unable to install miam-player I added the following repository

ppa:noobslab/apps

Then I updated

Then I tried to install miam-player:

aptitude install miam-player

it gives me the following output:

The following packages have unmet dependencies:

miam-player : Depends: libqtav (>= 1.9.0~) which is a virtual package and is not provided by any available package.

But in noobslab page they say that for ubuntu 16.04 this is sufficient and nothing else is needed

After some search in google I found that miam-player is uptill now supported only upto ubuntu 15.10 and is unsupported in Ubuntu 16.04.

The following article helped me to get to this conclusion:
http://ubuntuhandbook.org/index.php/2016/02/miam-player-open-source-qt5-music-player/

Bad Luck. I have to wait for some time now.

You should also install this ppa:

sudo add-apt-repository ppa:wbsecg1/qtav
sudo apt-get update
sudo apt-get install libqtav

Regards,


How do I add a DNS server via resolv.conf? Is /etc/resolv.conf useless in Ubuntu 12.04 LTS (Precise Pangolin)?

I see that the DNS server information is stored in NetworkManager now. The nmcli command line tool can list that for you.

If I want to add one more DNS server, will adding it to /etc/resolv.conf by using the resolvconf package help?

If /etc/resolv.conf contains nameserver 127.0.0.1 then adding entries to /etc/resolvconf/resolv.conf.d/tail won't really do anything useful.

If you are using NetworkManager then you should instead statically add nameserver addresses via network indicator: Edit Connections... | Edit... | IPv4 Settings | Additional DNS servers.

If you really want to add more entries to /etc/resolv.conf, create a /etc/resolvconf/resolv.conf.d/tail and add them there.

As with every Ubuntu release, it's recommended to read the Ubuntu Release Notes, available here:

https://wiki.ubuntu.com/PrecisePangolin/ReleaseNotes/UbuntuDesktop

The Desktop and Common Infrastructure sections contain a link to

http://www.stgraber.org/2012/02/24/dns-in-ubuntu-12-04/ covering the changes to the DNS infrastructure in 12.04.

Add temporary DNS. Edit /etc/resolv.conf.

nameserver 1.1.1.1
nameserver 1.0.0.1

Install or update resolvconf.

sudo apt-get install -y resolvconf

Add your nameserver into /etc/resolvconf/resolv.conf.d/tail

nameserver 1.1.1.1
nameserver 1.0.0.1

Reboot your machine: reboot


How to stop a bash while loop running in the background? I started a while loop as follows:

while true; do {command}; sleep 180; done &

Notice the &.

I thought when I killed the terminal, this while loop would stop. But it is still going. It has been hours since I killed the terminal session.

How do I stop this while loop?

I started

while true; do yad; sleep 60; done &

and closed the terminal to test it, now I got the same problem.

If you already closed the terminal you've started the loop in

Let's get an overview of running processes with ps fjx, the last lines on my machine read

 2226 11606 11606 19337 ?           -1 S     1000   0:00  \_ /bin/bash
11606 22485 11606 19337 ?           -1 S     1000   0:00  |   \_ sleep 10
 2226  9411  9411  8383 ?           -1 S     1000   0:00  \_ /bin/bash
 9411 17674  9411  8383 ?           -1 Sl    1000   0:00      \_ yad
    1  2215  2215  2215 ?           -1 Ss    1000   0:00 /lib/systemd/systemd --user
 2215  2216  2215  2215 ?           -1 S     1000   0:00  \_ (sd-pam)

You can see yad as a subprocess of /bin/bash, if I close yad it changes to sleep 60 in the output of ps. If the tree view is too confusing you can also search the output as follows1:

ps fjx | grep "[y]ad"  # or respectively
ps fjx | grep "[s]leep 60"

The output lines begin with two numbers, the first being the PPID, the process ID of the parent process and the second being the PID, the ID of the process itself. It's because of that 9411 appears in both rows here:

2226  9411  9411  8383 ?           -1 S     1000   0:00  \_ /bin/bash
9411 17674  9411  8383 ?           -1 Sl    1000   0:00      \_ yad

That's the bash subshell we want to kill and we just found out its PID, so now everything that remains is a simple

kill 9411  # replace 9411 with the PID you found out!

and the annoying subshell is gone for good.

1: The notation as grep "[y]ad" instead of simply grep yad prevents the grep process itself from showing up in the results list.

If you have the terminal still open

bash provides the variable $!, which “expands to the process ID of the job most recently placed into the background”, so the following just kills the latest process in the background:

kill $!

If it's not the latest process, just can get a list of running jobs with the jobs builtin, example output:

[1]-  Running                 while true; do
    yad; sleep 60;
done &
[2]+  Stopped                 sleep 10

There are two jobs in the job list, to kill one of them you can access it with the job number or the shortcuts %, %+ (“current job”) and %- (“previous job”), e.g. to kill the loop running in the background you could do

kill %1  # or
kill %-

and to kill the suspended sleep 10 job:

kill %2  # or
kill %+  # or
kill %

Usually bg for background fg for foreground. If you use & symbol use fg it will show the current running program. Press Ctrl+C to kill.


internet works with ip address but not with website name I just installed ubuntu on my laptop. I can't ping or open a site with it's name but everything works fine when i use IP address.
I already tested a few ways like disabling ipv6, changing dns server and changing some configuration in firefox.

it is an error in DNS server settings. DNS is service translating domain names to the IP addresses. Your DNS server is not set properly or does not work properly. Usually this can happen if you set fixed IP address with incorrect DNS. The advice in comment to setup DNS to 8.8.8.8 is correct and can help you, but better will be, if you use your local DNS, usually it is given from your provider or it can be IP address of your local router. For most cases to setup DHCP (automatic IP setup) will work.


How do I configure a vnc server which supports xkeyboard extention? I am logging into an Ubuntu 14.04 remote machine with a VNC server.
I am using some Python IDE programs which use Qt, but while running them I am getting the error:
Qt: XKEYBOARD extension not present on the X server.

Is there a VNC server which supports xkeyboard?
How can I configure an appropriate xkeyboard on my VNC server?

x11vnc

From within an x11vnc session, we can test for XKEYBOARD by running the following in a terminal window:

xdpyinfo -ext XKEYBOARD | tail -2

In 17.10, this results in:

XKEYBOARD version 1.0 opcode: 135, base event: 85, base error: 137

Which indicates the X server has the version 1.0 of the XKEYBOARD extension enabled.

Note: This is on XOrg, not Wayland.


Installing suggested packages only by top-level listed packages rather than dependencies If I do the following:

apt install SomePackage --install-suggests

It will try and not just install suggested packages specified by SomePackage, but also those packages listed as suggestions by any packages SomePackage depends on if said dependencies aren't already installed.

Is there a way to tell apt to install packages suggested by only those I have explicitly listed but not those that fall further down the dependency tree?

There are three sorts of dependencies:

Depends. These must be pulled in, and for good reason. You can prevent these by using and apt flag that I won't discuss here because it's dangerous and likely to break whatever you are trying to install.
Recommends. These should be pulled in for a full feature set. In Ubuntu, this is enabled by default. You can turn it off with apt's --no-install-recommends flag or change the apt configuration item APT::Install-Recommends from '1' to '0'. Most users should never need to touch this setting. You can check the current setting with apt-config dump | grep Install-Recommends
Suggests. These can be pulled in under limited circumstances to supplement functionality. In Ubuntu, this is disabled by default. You can turn it on with apt's --install-suggests flag or change the apt configuration item APT::Install-Suggests from '0' to '1'. Most users should never need to touch this setting. You can check the current setting with apt-config dump | grep Install-Suggests

Apt will follow the dependency tree all the way with the same settings. There is no way to change the settings halfway down the tree.

If you want some (but not all) suggested packages, you must list the packages you want. This may complicate your future life: Manually-specified packages are not eligible for autoremove, so you will need to clean up manually, too. Take good notes.

this functionality is still broken (not behaving as users want or as manual describes), and i miss this in every single distro except Arch.

In the frontends, i get first level suggestions automatically only in
Manjaro's Pamac. Without any effort. Additionally I can browse suggests or depends extremely easy.
In Discover,
Muon, Yast etc I hardly get a list of suggests in a text format,
without possibility to copy. None of them show installed files before installation. It's rather unbelievable. In Synaptic, you can right-click to choose suggested packages, but only only one by one.

Now in CLI, apt really suggest gigabytes of unwanted packages. To fix:

apt install SomePackage $(apt-cache depends SomePackage|grep Suggests:|grep -v "<"|cut -d' ' -f4)


How to upgrade to KDE Plasma 5 on Ubuntu 14.04.3? I've followed many tutorial but my KDE is still version 4.12.2....

I've tested

sudo apt-add-repository ppa:kubuntu-ppa/backports
sudo apt-get update
sudo apt-get dist-upgrade

but nothing works :(

In some websites I've found this instruction

sudo apt-add-repository ppa:kubuntu-ppa/next
sudo add-apt-repository ppa:neon/kf5

but they dont work either!
How to do it in Ubuntu 14.04.3?

I really like the plasma 5 desktop....

Any help would be much appreciated....

  EDIT: It's not possible with 14.04 LTS

Run the following commands in terminal:

 sudo add-apt-repository ppa:kubuntu-ppa/backports
 sudo apt-get update
 sudo apt-get dist-upgrade
 sudo apt-get install plasma-desktop plasma-workspace plasma-workspace-wallpapers
 sudo apt-get dist-upgrade

I would recommend just updating Ubuntu itself. You just need to make a boot disk of the latest version of Ubuntu, and select "Upgrade Ubuntu 14.04 to Ubuntu 15.10"(or a similar option). Just follow the instructions. Then type sudo apt-get install kubuntu-desktop at a terminal when you've booted in! Note that you will have to reinstall your programs and change your settings again.


15.04 VMWare Player "unable to start services" error I recently did a fresh install to 15.04. I downloaded and installed vmware player, but when I go to launch it, I receive a message saying "vmware workstation several modules must be compiled and loaded into the kernel."

I click install so that it can proceed, but then I get an error saying that it is "unable to start services."

Any ideas of how I can get it to work again?

found here https://communities.vmware.com/thread/509225

This can be fixed by running the following steps as Root (in a terminal):

log in as root (e.g. sudo -i)
Enter your Root password.
Enter these commands:

curl https://pastebin.com/raw/Z1ihzbcE -o /tmp/vmnet-3.19.patch

cd /usr/lib/vmware/modules/source
tar -xf vmnet.tar
cd vmnet-only
patch -p0 -i /tmp/vmnet-3.19.patch
mv vmnet.tar vmnet.tar.SAVED
tar -cf vmnet.tar vmnet-only
rm -r vmnet-only
vmware-modconfig --console --install-all

VMware will now compile the vmnet module for Kernel 3.19. (please make sure you have DKMS installed)

This worked well for me:

For the newbies out there, This is what the commands will do by running it in terminal:

In the folder /usr/lib/vmware/modules/source, you have to extract the vmnet-only file from vmnet.tar and make a backup of the .tar-file.
Run the patch you downloaded from http://pastie.org/pastes/9934018/download before making a new vmnet.tar from the vmnet-only folder
Delete the vmnet-only folder and do the compiling


Install: no hard drive detected? I'm trying to install Ubuntu 16.04.3 on my old HP desktop. Setup runs fine until I get to the installation type (partition) window. The installer is not detecting the Seagate SATA hard drive, and only shows the /dev/sda (the usb installer) as a device for boot loader installation. I checked multiple other questions and tried to replicate what they did, nothing has worked so far.

What I've done:
Played with BIOS settings to change the SATA controller to IDE and AHCI, both didn't work.
Plugged the HDD into every SATA port on the motherboard.
I've been able to install Ubuntu on different PCs before without any issues, this is the first time I've not been able to locate the HDD in the installer.

This is a 64 bit system on AMD Phenom II x4. Windows 10 is installed on the HDD.

You need to delete Windows boot partition (EFS) to install Ubuntu, I faced the same issue during installation in Acer predator 500. If deleting only EFS (use gparted preinstalled in ubuntu Live boot partions are marked as esp under flags) does not work then you need to delete windows partition + Microsoft reserved partition + EFS this would definitely works.
It is recommended to backup anything useful in Windows Partition.
If deleting EFS works then search for a way to recover EFS  in windows 10 < https://www.disk-partition.com/windows-10/accidentally-deleted-boot-partition-windows-10.html > Try: Method in which Windows bootable drive is used. I used this and it worked for me.

And If you're using an Optane Drive then expect delay in booting to Ubuntu almost everytime.


Won't login, resolution off, screen flickers So, since last restart my Ubuntu won't log in, it just loops.

Here's a video of what happens:
https://youtu.be/XS4j4M8HLCM

Ive tried to follow a few tutorials and solutions like making a new Xauthority file but so far no luck.

Also, the resolution is weird.

Please help,
Thanks.

I have had the same issue in the past. I recommend installing and using GDM. You can do this by typing

sudo apt install gdm3

Logout and choose gdm. Tell me if this fixes your issue too. Or type

sudo dpkg-reconfigure gdm

and then choose gdm3.


Very poor sound quality on HSP/HFP profile, BT Sony headset I've recently bought BT Sony headset. When I switch it to A2DP profile everything works fine. But when I switch to HSP/HFP for videoconference the sound is so terrible that I cannot understand other participants. Is there anything that can be done about that? It's really annoying I cannot use my headset for conferences when I bought them exactly for that.

I have this problem for 6 months, when I bought my Sennheisers.
It seems the headset profile (HSP/HFP) defines at least 2 codecs, with 8KHz and 16KHz rates. Windows and Android can use 16KHz, whereas linux only uses 8KHz (and I assume a different compression, since lows are also terrible).
Searching on Google, all "low quality" questions seem to be related to listening (i.e.: solved by A2DP switch), not for conferences.

In all those months, I only found a bug report that says ChromeOS works better (and being unable to port those patches to linux distros).

PS: please avoid setting this as an answer. I would prefer one that actually points to 16KHz solution.

I am having the same issue, at this point i have worked around it so that after conference i can at lease switch to a2dp_sink easily.

#!/bin/bash
bluetoothctl connect FC:58:FA:13:75:6F
DEFAULT_SINK=$(pactl list short sinks | grep "pci" | awk '{print $2}')
echo "Muting $DEFAULT_SINK"
pactl set-sink-mute "$DEFAULT_SINK" "1"

if [ $1 == "1" ]; then
    echo "Card Profile Selected: a2dp_sink"
    card_profile="a2dp_sink"
else
    echo "Card Profile Selected: headset_head_unit"
    card_profile="headset_head_unit"
fi

pactl set-card-profile bluez_card.FC_58_FA_13_75_6F $card_profile

sink=$(pactl list short sinks | grep -i 'bluez_sink' | cut -c1-2)

if [ -z $sink ]; then
    echo "Usage: $0 <sinkId/sinkName>" >&2
    echo "Valid sinks:" >&2
    pactl list short sinks >&2
    exit 1
fi

newSink="$sink"
echo $newSink

pactl list short sink-inputs|while read stream; do
    streamId=$(echo $stream|cut '-d ' -f1)
    echo "moving stream $streamId"
    pactl move-sink-input $streamId $newSink
done

echo "Unmuting $DEFAULT_SINK"
pactl set-sink-mute "$DEFAULT_SINK" "0"


File are being deleted after renaming Renamed files dissapears from Ubuntu One Folder. I had to move files from U O to some temp location, rename them and upload them back. Is there a special procedure for files renaming?

This could be a major bug in the software. Are you sure that it is deleted PERMANENTLY when you try to rename it? i.e. does it magically 'disappear' and 'reappear' (maybe after a few minutes) after you've renamed the file? If so, then i think you have a network problem (maybe your network is a bit too slow or you have very low latency).If not, then I think it is a bug in Ubuntu One.
P.S. Does this happen to ANY file in the ubuntu one folder? Or does it happen only to certain files (ie files over/below a certain size, files that are the same type etc)


How do I position widgets next to each other in Glade? How can I make 2 widgets (or more) stand next to each other in Glade.

For example a textbar and a toolbar.

you can do that with a Box or with a Grid. Both are aviable from the Containers-Section of the Palette.


Why is the PSPP program not present in the Ubuntu 20.04 LTS Focal Fossa repository? The program for statistical analysis PSPP is very important for research, i concluded my post-graduation with it, using Ubuntu 19.10, but it's not present in the Ubuntu 20.04 LTS repository, so we can install it easily. Why?

The PSPP package was dropped from Debian, and thence from Ubuntu, due to a licensing problem.

See https://bugs.debian.org/cgi-bin/bugreport.cgi?bug=924937

I do not know if it can help, but I solved the problem in my Ubuntu 20.04 by adding this line in my sources.list:
deb http://de.archive.ubuntu.com/ubuntu groovy main universe

Here some other repository: https://packages.ubuntu.com/groovy/amd64/pspp/download


Is Ubuntu 15.10 missing some files? I downloaded Ubuntu Desktop from here and when I mounted the .ISO file I have folders and files like bellow:

then I compare to Ubuntu 15.04 ISO file which was mounted:

I tried to re-download Ubuntu 15.10 ISO twice to make sure there's no corrupted while downloading process, but it's the same.
Then I tried to use Ubuntu 15.10 without installing. After boot into live Ubuntu, I cannot perform anything. Then I discovered that all the apps were not installed. It's all empty even terminal.

What's wrong with that ISO file?

There is nothing wrong or missing. wubi isn't supported anymore, so wubi.exe and autorun.inf are no longer necessary.

You can try using Linux live usb creator to create a live bootable usb out of the ISO and then boot from the USB

Follow this
http://www.ubuntumaniac.com/2014/11/how-to-create-bootable-usb-for-ubuntu.html


Removing Guest Session at login in Ubuntu 14.04 I recently installed Ubuntu 14.04 LTS it works fine but I want to remove the guest account login.

Just press Ctrl+Alt+T on your keyboard to open Terminal. When it opens, run the command(s) below:

sudo nano /usr/share/lightdm/lightdm.conf.d/50-ubuntu.conf

Add the following line, save and then close.

allow-guest=false

Reboot, and you're set.

Edit

Thanks to Gunnar Hjalmarsson

Based on Gunnar Hjalmarsson comment "ubuntu-session was last updated in the middle of March. Try sudo apt-get install --reinstall ubuntu-session" when that is done, the Guest session returns.

After some research, this can be done a different way as well.

Open /etc/lightdm/lightdm.conf file from your terminal using the following command:

sudo -H gedit /etc/lightdm/lightdm.conf

If the file exists, then just add the following line:

allow-guest=false

Otherwise copy and paste the following into it:

[SeatDefaults]
user-session=ubuntu
greeter-session=unity-greeter
allow-guest=false

Save the file and exit the editor.  Reboot your system, and the changes will remain even after an update to ubuntu-session as mentioned by Gunnar Hjalmarsson's comment.

Or just add:

greeter-show-remote-login=false

to /usr/share/lightdm/lightdm.conf.d/50-ubuntu.conf

along with your disable guest line

No need to overcomplicate a very simple fix by creating additional config files besides default, which will inevidably only confuse the OS at some point when the two files conflict, or the default file is erased and one of your two 'fixes' gets undone because you didn't do them together.


How to find incomplete downloaded files of updated OS? My internet connection was lost while I was updating my OS from 16.04 to 17.04 and the process stopped.There were 10-15 files remaining to be downloaded.

Now after realising that 17.04 is not a LTS version I don't wanna update my OS. But what about the downloaded files? Will they occupy any space in hard drive? Will they affect my current OS 16.04? Should I delete them? If yes than how can I find them and delete them?

Now after realising that 17.04 is not a LTS version I don't wanna update my OS...

LTS or not, you should ALWAYS update your OS! If you don't like non-LTS versions, don't install them. Updates are delivered to fix errors, so you should install them.

Just do

sudo apt update
sudo apt upgrade

and if mentioned in the output of above:

sudo apt autoremove

Downloaded packages are kept in /var/cache/apt and partial downloaded packages in partial in that directory. You can delete the files in /var/cache/apt, but it will be downloaded again next time you update, and the content of partial will normally be deleted when packages are fully downloaded. To delete the contents of /var/cache/apt/partial, you can run

sudo apt clean

apt-get stores all downloaded packages in /var/cache/apt/archives. the partially downloaded packages are in /var/cache/apt/archives/partial. to remove these packages and free up the space they are holding, you can sudo rm -r /var/cache/apt/archive

or simply apt-get clean will remove all downloaded PPA archives from the aforementioned directory - thus freeing up the space


ubuntun 14.04 not Detect Bluetooth Dongle my ubuntu not detect bluetooth ..

this is lsusb out :

Bus 002 Device 001: ID 1d6b:0002 Linux Foundation 2.0 root hub
Bus 004 Device 001: ID 1d6b:0001 Linux Foundation 1.1 root hub
Bus 003 Device 001: ID 1d6b:0001 Linux Foundation 1.1 root hub
Bus 001 Device 003: ID 1058:1110 Western Digital Technologies, Inc.
Bus 001 Device 001: ID 1d6b:0002 Linux Foundation 2.0 root hub
Bus 008 Device 002: ID 046d:c01d Logitech, Inc. MX510 Optical Mouse
Bus 008 Device 001: ID 1d6b:0001 Linux Foundation 1.1 root hub
Bus 007 Device 002: ID 046d:c318 Logitech, Inc. Illuminated Keyboard
Bus 007 Device 007: ID 0a12:0001 Cambridge Silicon Radio, Ltd Bluetooth Dongle (HCI mode)
Bus 007 Device 001: ID 1d6b:0001 Linux Foundation 1.1 root hub
Bus 006 Device 001: ID 1d6b:0001 Linux Foundation 1.1 root hub
Bus 005 Device 001: ID 1d6b:0001 Linux Foundation 1.1 root hub

this is dmesg out :

[ 5525.548037] usb 7-1: new full-speed USB device number 6 using uhci_hcd
[ 5525.797782] usb 7-1: New USB device found, idVendor=0a12, idProduct=0001
[ 5525.797789] usb 7-1: New USB device strings: Mfr=1, Product=2, SerialNumber=0
[ 5525.797793] usb 7-1: Product: Bluetooth V2.0 Dongle
[ 5525.797796] usb 7-1: Manufacturer: Bluetooth v2.0
[ 5722.020090] usb 7-1: USB disconnect, device number 6
[ 5728.876037] usb 7-1: new full-speed USB device number 7 using uhci_hcd
[ 5729.125912] usb 7-1: New USB device found, idVendor=0a12, idProduct=0001
[ 5729.125918] usb 7-1: New USB device strings: Mfr=1, Product=2, SerialNumber=0
[ 5729.125922] usb 7-1: Product: Bluetooth V2.0 Dongle
[ 5729.125925] usb 7-1: Manufacturer: Bluetooth v2.0

this is lsmod out :

Module                  Size  Used by
btusb                  27580  0
rfcomm                 53664  12
bnep                   18895  2
bluetooth             342208  22 bnep,btusb,rfcomm
nouveau               969577  3
joydev                 17101  0
hid_generic            12492  0
usbhid                 47070  0
ses                    13075  0
hid                    87604  2 hid_generic,usbhid
mxm_wmi                12893  1 nouveau
enclosure              14827  1 ses
wmi                    18673  2 mxm_wmi,nouveau
snd_hda_codec_realtek    59259  1
video                  18903  1 nouveau
ttm                    72725  1 nouveau
snd_hda_intel          42730  5
drm_kms_helper         48868  1 nouveau
drm                   244037  5 ttm,drm_kms_helper,nouveau
snd_hda_codec         164067  2 snd_hda_codec_realtek,snd_hda_intel
snd_hwdep              13272  1 snd_hda_codec
snd_pcm                85501  3 snd_hda_codec,snd_hda_intel
snd_page_alloc         14230  2 snd_pcm,snd_hda_intel
i2c_algo_bit           13197  1 nouveau
snd_seq_midi           13132  0
gpio_ich               13229  0
snd_seq_midi_event     14475  1 snd_seq_midi
coretemp               13195  0
snd_rawmidi            25135  1 snd_seq_midi
snd_seq                55383  2 snd_seq_midi_event,snd_seq_midi
serio_raw              13230  0
snd_seq_device         14137  3 snd_seq,snd_rawmidi,snd_seq_midi
snd_timer              28584  2 snd_pcm,snd_seq
lpc_ich                16864  0
snd                    60939  19 snd_hda_codec_realtek,snd_hwdep,snd_timer,snd_pcm,snd_seq,snd_rawmidi,snd_hda_codec,snd_hda_intel,snd_seq_device,snd_seq_midi
ppdev                  17391  0
soundcore              12600  1 snd
parport_pc             31981  1
lp                     13299  0
mac_hid                13037  0
parport                40836  3 lp,ppdev,parport_pc
usb_storage            48417  0
psmouse                91357  0
r8169                  61562  0
mii                    13654  1 r8169

and this is hcitool dev out :

Devices:

in lightdm bluetooth is ON

please help

https://bugs.launchpad.net/ubuntu/+source/linux/+bug/1314621

Upgrade to at least kernel version 3.14.1.
See https://wiki.ubuntu.com/Kernel/MainlineBuilds for details.


Make a list of filenames I'm looking for an easy way to build a list in a txt file of the filenames inside a given directory. Filenames only preferred, though I could trim other fields if necessary.

This command should be helpful:

find -maxdepth 1 -type f ! -name flist.txt -printf  "%P\n" > flist.txt

Command information:

-maxdepth: Don't search for files below folders of one level down.
type f: Search for only files
-printf "%P\n": Print the names only and on separate lines
> flist.txt: Store those names (using output redirection) in a file to be created on the fly called `flist.txt
! -name flist.txt: Skips the name of the output file from the generated list

In terminal, change directory to the required folder, then use the command:

ls > files.txt

This will redirect a list of the contents of the folder to the text file files.txt.  You didn't indicate what form the contents of the folder takes.  If there are sub-folders present, in addition to a group of files, the folder names  will also be included.  But, once you have the text version you can sort/edit it any way you desire.


Is there anyone who has Canon MX435 printer. No driver for Linux There is Mac and Windows drivers only. I tried that tar.gz file http://support-au.canon.com.au/contents/AU/EN/0100412601.html
Nothing happened. Usb cable not connected. Trying to print over wifi.

How can I use MX435 from Ubuntu?

According to that webpage you posted, there is a Linux driver. It's nice to find Linux support from manufacturers. The bad part is there's no easy installer provided.

In case you didn't know already, a .tar.gz file is a compressed directory in a file, somewhat like a .zip.

What you want to do first is extract the .tar.gz file. You can do this by double clicking the downloading cnijfilter-mx430series-3.70-1-deb.tar.gz file and selecting "Extract". After you extract the contents of the archive, navigate to the extracted directory. Inside you will find install.sh. Double click it - Ubuntu will then ask whether you want to run the program or not. Say that you want to run the program in a terminal.

Tell us if it works, or if the terminal says anything unusual. If it says something along the lines of must be run as superuser or need root privileges, then you'll need to run it as root. For that...you'd need to navigate to the directory in a terminal and run sudo install.sh.

The URL http://support-au.canon.com.au/contents/AU/EN/0100412601.html
does contain a driver.

I also have an Canon MX 435 that i have had trouble installing on my Ubuntu 12-04.

After installing this driver the printer works so far.


Indexers - Which are in use by which projects? Nepomuk, Zeitgeist, Tracker? I am trying to get an idea if indexers like Zeitgist or Nepomuk are in active use by the various desktops or are they being phased out and replaced?

Most of the documentation online for these seem to be a year or three old, which might indicate that they are not in active development.

What does KDE use now and what are the plans for the next year or so?
Same with Gnome, Unity, LXDE. Where are they going in the next year?

Ubuntu 14.04 will be a LTS support release, so it would be good to know what it's fundamental indexing technology will be.

First of all, to clarify, Zeitgeist is not an indexer, in the same sense that the systems provided by Nepomuk and Tracker are. Zeitgeist is for logging activity, while Nepomuk/Tracker are for indexing content. The latter are for finding things, and Zeitgeist is for finding when those things were accessed/used.

Nepomuk is the KDE indexing infrastructure. Tracker is the GNOME one. Unity uses Zeitgeist for some stuff, but doesn't actually have a specific indexing service it uses. The Unity dash interacts with scopes, and you could have a scope that searched in Tracker, Nepomuk, Google, or anywhere else.

My research has indicated that all 3 of these are in active use. I went through the manifest files of Ubuntu, UbuntuGnome and Kubuntu and searched through the websites of SuSe and Redhat.

Nepomuk is used in KDE, has been for several years and is in upcoming releases.

Zeigeist is used in Unity and in recent Gnome versions and is in upcoming releases.

Tracker is used in Gnome, has been for several years and is in upcoming releases.


Downclock CPU reaching critical temperature I have an HP tx1250 laptop. It always had serious overheating problems and although usually it runs fine I'm now running a continuous test for my dissertation, this brings the CPU temp close to the critical and from time to time the computer shutdown for reaching it (checked the log).

I use to have the same problem on Win XP but I noticed Win Vista and 7 downclock the CPU when is necessary to cool it down so I was thinking if the same is possible on Ubuntu 12.
The only program I've found that may do the job is computer temp ( http://computertemp.berlios.de/ ) but it doesn't seems to work under Ubuntu 12.

The inside of the laptop is fairly clean, the thermal paste is quite recent, I'm keeping it lifted from the desk and judjung by the sound of the fan that's running fine as well. The pc in now running between 78 and 91 degrees C  but about once a day it shut down for reaching 95. I need the results of the test it's running pretty soon so it's important that it runs non-stop.

I've though to set the maximum clock of the CPU to slightly less the maximum but then these tests I'm running would take much more time.

Thanks for your answers but I was thinking about something much easier.
Actually I was about to do a bash script reading the temp on lm-sensor and adjusting the frequency but I though there was already some software doing this or Linux itself should.

On this webpage there is a bash script that will attempt to keep your CPU below a specified temperature. http://seperohacker.blogspot.com/2012/10/linux-keep-your-cpu-cool-with-frequency.html

This script does this by reducing CPU frequency, and it works for my Intel i7 processor.

Shameless plug- I wrote and maintain the above script.

In addition to what Huckle suggested, you could disassemble the laptop and immerse it in oil.

What you would need to do, is to plunge your laptop's innards in a specialized coolant oil that would absorb the heat it would give off, and then using a motor of some sort, send the oil to a radiator where it could be cooled down before being recycled back into the oil tank.

This method would be a cost-effective solution to keeping your laptop cool (as opposed to air cooling alone), and has been proven to increase power usage effectiveness (or PUE) by as much as 35% in some systems.

Here's another possibility: you could use the HP Cloud to run your test; it moves very fast, and it has app. As an HP cloud user, you already have access to a capacity of 1000.

References: oil, cloud.


How do I increase the size of swapfile without removing it in the terminal? Is there a way to increase my existing "swapfile" without having to destroy and re-create it?
I would like to up my swap space from 1GB to 2GB.  Currently it is set up as such:

$ sudo swapon -s
Filename                Type        Size    Used    Priority
/swapfile               file        1048572 736640  -1
$ ls -lh /swapfile
-rw------- 1 root root 1.0G Nov  9  2016 /swapfile

I'm using Ubuntu 14.04.

First disable swap file:

sudo swapoff /swapfile

Now let's increase the size of swap file:

sudo dd if=/dev/zero of=/swapfile bs=1M count=1024 oflag=append conv=notrunc

The above command will append 1GiB of zero bytes at the end of your swap file.

Setup the file as a "swap file":

sudo mkswap /swapfile

enable swaping:

sudo swapon /swapfile

You might also want to check permissions. Other way to do this:

# check your swap
free

# turn off swap
sudo swapoff /swapfile

# To create the SWAP file, you will need to use this.
sudo fallocate -l 4G /swapfile  # same as "sudo dd if=/dev/zero of=/swapfile bs=1G count=4"

# Secure swap.
sudo chown root:root /swapfile
sudo chmod 0600 /swapfile

# Prepare the swap file by creating a Linux swap area.
sudo mkswap /swapfile

# Activate the swap file.
sudo swapon /swapfile

# Confirm that the swap partition exists.
sudo swapon -s

# check your swap again
free


batch tesseract conversion I am trying to OCR a book using tesseract however I do not want to type each individual page as it is a book near 1000 pages. How would I accomplish this

I tried tesseract *.tif *
which gives me this
read_params_file: parameter not found: II*

To avoid overwriting the output file for every new page, I did:

for i in *tif; do b=`basename "$i" .tif`; tesseract "$i" "$b" hocr; done

It worked fine.

(I found this solution here.)

I wanted convert Kannada (Indian language) as searchable pdf
I modified this
for i in *tif; do b=basename "$i" .tif; tesseract "$i" "$b" hocr; done
AS BELOW
for i in *tif; do b=basename "$i" .tif; tesseract  -l kan "$i" "$b" pdf; done
It worked well for the entire folder was converted from image to searchable pdf
Tnakyou


Format a partition stil working after 2 weeks I'm trying to format a partition large 185 gb using gparted on an usb pendrive, but it's still working after 2 weeks... it's normal or my program chashes. The last voice of the list says "creation new file system ntfs" and still doing. Help i don't know what to do...

Do you mean that your machine has been trying to format a 185GB for 2 weeks none stop? If this is the case GParted has crashed as any formating program should do this job in a few hours at most. Swtcich of your system & try again. If you get the same problem, you should investigate:
1- Run some tests on your hard disk (Here are 2 free toolkits that will help you:
A- Hiren's boot CD, http://www.hirensbootcd.org/download/
B- Ultimate boot CD, http://www.majorgeeks.com/files/details/ultimate_boot_cd_(ubcd).html)
2- Read GParted help on memory requirements, etc.
3- Seek help from GParted's manufacturers, if needed.
Good luck.


Ubuntu won't boot up properly (Toshiba Satellite P50) So I recently switched out windows 8 for Ubuntu on my Toshiba laptop. I installed it from my usb and everything went fine. Ubuntu was on my comp and I stupidly spent a few hours personalizing it and installing my favorite programs. Then I restarted the comp. Now, the only way Ubuntu will boot is if the usb is in. Not only that but it goes right back to the bare bones Ubuntu and not my personalized version. Before it boots the same black screen comes up and asks if I want to try Ubuntu or install it and I have to hit either one just to get into the system. If the usb is not in the comp then nothing boots up. Ubuntu should already be installed onto my comp. How do I switch the OS from on the usb to permanently on my hard drive? It is not an issue with boot order. I have already played around and changed order up a few times.

Some systems shipping with Windows 8 have trouble booting Ubuntu the way it is currently implemented for UEFI machines.

You could try booting the live USB again and follow my instructions from this Q&A:
UEFI machine doesn't boot Ubuntu through NVRAM bootcatalog. How to fix?

Regarding the customization, if you haven't successfully booted Ubuntu from the hard drive before, these changes were lost during the reboot.

Please post the model of the computer you are using to help analyzing this issue further.

First enter your bios and change the bootup sequence to something like this:
1. Harddisk
2. CD-rom
3. USB
4. etc..

Then during boot press F12 to enter the one-time Boot menue!
Otherwise your USB-stick will be named SDA that should be your (Primary) harddisk.
Try that.


How to copy files via terminal? I have read about copying files with terminal but these examples will help me a lot. So here is what I want to do:

Examples:

I have a file in /home/levan/kdenlive untitelds.mpg and I want to copy this file to /media/sda3/SkyDrive and do not want to delete any thing in SkyDrive directory.
I have a file in /media/sda3/SkyDrive untitelds.mpg and I want to copy this file to /home/levan/kdenlive  and do not want to delete any thing in kdenlive directory
I want to copy a folder from home directory to sda3 and do not want to delete any thing on sda3 directory and opposite
I want to cut a folder/file and copy to other place without deleting files in that directory I cut it into.

1) By using -i for interactive you will be asked if you would like to replace the file:

cp -i /home/levan/kdenlive/untitelds.mpg /media/sda3/SkyDrive/

or you can use -b to create a backup of your file:

cp -b /home/levan/kdenlive/untitelds.mpg /media/sda3/SkyDrive

2) Same as the above:

cp (-i or -b) /media/sda3/SkyDrive/untitelds.mpg /home/levan/kdenlive

3) Use -R for recursive and -i for interactive:

cp -Ri ~/MyFolder /sda3/

4) This last one can be done via the mv command, move is like cutting:

mv -i ~/MyFile ~/OtherFolder/MyFile

if you want to move a directory, use:

mv -Ri ~/MyDirectory ~/OtherDirectory/

use cp command. Type man cp from the terminal for more info.


ibus-avro is not working in ubuntu 12.10 I was using ibus-avro with ibus input method to write Bengali in Ubuntu 12.04. Recently I have upgraded Ubuntu from 12.04 to 12.10, now ibus-avro was removed. I have tried to install it again but was getting error message as follows

Some packages could not be installed. This may mean that you have
requested an impossible situation or if you are using the unstable
distribution that some required packages have not yet been created
or been moved out of Incoming.
The following information may help to resolve the situation:

The following packages have unmet dependencies:
ibus-avro : Depends: gir1.2-gjsdbus-1.0 but it is not installable

Finally I am able to install it. I have compiled it from the source without installing gir1.2-gjsdbus-1.0 and till now it is working perfectly.
First install the bellow mention packages using the code.

  sudo apt-get install git ibus libibus-1.0-dev automake autoconf gjs gir1.2-ibus-1.0

Now install the following code to download, compile and install the ibus-avro

  git clone git://github.com/sarim/ibus-avro.git
  cd ibus-avro
  aclocal && autoconf && automake --add-missing
  ./configure --prefix=/usr
  sudo make install

I have found this instruction from in this link
https://github.com/sarim/ibus-avro/blob/master/README.md

You may notice that I have omitted the package "gir1.2-gjsdbus-1.0" which is told by Sarim in the comment of an issue, you can check it in the following link
https://github.com/sarim/ibus-avro/issues/37

Thanks

I found the solution from here.... just do what it tells you to do and compile the sources as described....
 http://forum.linuxdesh.org/thread-1088.html


How to get telnet to localhost working? I'm working on a local dev setup that requires the use of telnet (playing with setting up a MUD server) so please no feedback suggesting I use SSH as a more secure alternative.

However, though I've got the telnet daemon up, I am getting this output when I telnet localhost.

$ telnet localhost
Trying 127.0.0.1...
Connected to localhost.
Escape character is '^]'.
Connection closed by foreign host.

What are some reasons that the connection is closed? I have checked the docs on hosts.allow and hosts.deny, and have decided to not put any entries in either as the default is to allow all and that is sufficient for my local dev purposes.

Okay, let's investigate this, step by step.  To figure out what is actually running on telnet's port, type:

sudo netstat -tulpn | grep :23

and paste the output.

From another angle: what PHP game library are you using?

Try with telnet localhost 80
Where 80 is the port on which your server is running.
I tried with 80 port for apache server and it works.

Also you might need to use -K and -X option. Read more about them in the man telnet


Lock user session from terminal I'm looking for a command to lock user session (kinda like Super+L). I saw it for screen lock but I need something to work while I'm connected through SSH (e. g. with PuTTY).

You'll need to combine of the answer of How do I lock the screen from a terminal? and How do I run a graphical application on a remote server when logged in through SSH? The former gives you multiple commands that will lock the current session but they all assume that they're executed from within that session. The latter explains how to execute a program in the context of a different session by setting an environment variable to the address of the display server running the that session. Example:

DISPLAY=:0 dbus-send --print-reply --session --type=method_call --dest=org.gnome.ScreenSaver /org/gnome/ScreenSaver org.gnome.ScreenSaver.Lock

You can log out (instead of lock) the user via:

gnome-session-quit --logout

I don't think there's any other way of invoking the session lock, than  gnome-screensaver-command --lock though.


HP Laserjet M1136 MFP in Ubuntu 16.04 My HP Laserjet M1136 MFP used to work well in Ubuntu 15.10 with hplip. After an update it stopped working, but still showed the message that pages were printed successfully.

I upgraded the system to Ubuntu 16.04 LTS and it still doesn't work, though the printer was detected and installed without any trouble. While scanning it shows the message "device I/O error".

The lsusb output is

Bus 001 Device 001: ID 1d6b:0002 Linux Foundation 2.0 root hub
Bus 005 Device 001: ID 1d6b:0001 Linux Foundation 1.1 root hub
Bus 004 Device 001: ID 1d6b:0001 Linux Foundation 1.1 root hub
Bus 003 Device 003: ID 03f0:042a Hewlett-Packard LaserJet M1132 MFP
Bus 003 Device 002: ID 0a12:0001 Cambridge Silicon Radio, Ltd Bluetooth Dongle (HCI mode)
Bus 003 Device 001: ID 1d6b:0001 Linux Foundation 1.1 root hub
Bus 002 Device 002: ID 1a2c:0042 China Resource Semico Co., Ltd
Bus 002 Device 001: ID 1d6b:0001 Linux Foundation 1.1 root hub

HP device manager also can't help, its test print shows the same message.

Can anyone help?

Had the same problem and after a massive search found this tip
and succeeded. If there are still problems, try this:

Make sure that the HP LaserJet M1132 MFP is connected to the computer and power is turned on!
Open a terminal
Run the following command in the terminal

sudo hp-setup -i

Go through the setup process…
At some point, the program wants to download a proprietary binary file (hp-plugin) and that can take a couple of minutes to start downloading – be patient, it will start!
Once the setup has finished, printing should work without any problems…

I hope this helps!

maybe the command hp-doctor can help...

HP Smart Install is a service running on firmware which makes printer to appear as "Mass Storage Devices" when connected via USB cable. This is to install the minimal printer software from flash memory of printer. This service needs to be disabled on linux in order to have the device function as a printer.

Run hp-doctor script. It will notify you if there is a Smart Install device connected and prompt you for disabling the same.

Source: http://hplipopensource.com/node/367


Create encrypted (password protected) zip file How do I create an encrypted (password protected) zip file?

This will prompt for a password:
zip --encrypt file.zip files

This is more insecure, as the password is entered/shown as plain text:
zip --password (password) file.zip files

Warning, the standard zip encryption is very weak and is easily cracked.
Note, Use -r to zip directory and subdirectory recursively.

Encrypt

gpg -c your.zip

creates your.zip.gpg

Decrypt:

gpg your.zip.gpg

To turn off password caching

More details including directories.

https://superuser.com/a/249516/27275