Right-CTRL key not supported in Kubuntu 14.04? In my fresh install of Kubuntu 14.04, I can't use anymore the (pretty useful) shortcut to move along words: (right) CTRL + Left (or Right) Arrow.

The Left-Control key is working fine. If I try to add a secondary shortcut for this action in System settings > shortcuts & gestures > standard shortcuts > forward one word, I got an error popup saying:

This key is not supported by Qt

My keyboard didn't change, it's a basic French AZERTY 101 keys. Is there a trick to configure something somewhere?

I had the same problem with Ubuntu 14.04, using the "French (alternative)" layout (which probably stands for "Français (variante)". The issue seems to originate from a bug in xkb.

I could solve it without changing the layout and without remapping keys.

Follow these steps:

Open /usr/share/X11/xkb/symbols/fr as administrator.
Find the line include "level5(rctrl_switch)" and remove it or comment it out. (Commenting out is done by adding // at the beginning of the line.)
Save the changes
Delete all the .xkm files in /var/lib/xkb (or move them to another folder). This will force to rebuild xkb.
Reboot.

This blog post (in French), addresses the problem and points to this bug entry which helped me figure out the solution.

I hope it will help a lot of French *ubuntu users.

Try
ctrl-alt-shift (left/right)arrow

http://www.unixmen.com/quick-tip-enable-workspaces-ubuntu-14-04-lts-desktop/


Unable to fully remove Juju After downloading Juju and playing around with it a little bit, my curiosity is satisfied. I decided to move on to other endeavors and uninstall Juju, although despite my best efforts a piece of Juju lives on in my syslog (on system boot):

kernel: [   16.509086] init: juju-jon-sample-file-storage main process (2163) terminated with status 1
kernel: [   16.509113] init: juju-jon-sample-file-storage main process ended, respawning
kernel: [   16.680103] init: juju-jon-sample-file-storage main process (2164) terminated with status 1
kernel: [   16.680138] init: juju-jon-sample-file-storage main process ended, respawning
kernel: [   16.873943] init: juju-jon-sample-file-storage main process (2165) terminated with status 1
kernel: [   16.873965] init: juju-jon-sample-file-storage respawning too fast, stopped

...actual number is much greater, but you get the idea, also present is the identical errors replaced with juju-jon-sample-machine-agent.

I tried

sudo apt-get remove juju
sudo apt-get purge juju
sudo apt-get autoremove

and

sudo update-rc.d juju remove
sudo update-rc.d juju-jon-sample-machine-agent remove
sudo update-rc.d juju-jon-sample-file-storage remove

Any ideas how to remove my that last piece of Juju stuck to my syslog? I am running 12.04 64 bit. Thanks in advance.

Juju installs some upstart files for local provider environments. Prior to removing juju it can be removed via juju destroy-environment for each local environment. Post removal that the upstart files can be removed from /etc/init by hand, their prefixed with the environment name and user name. update-rc.d doesn't work with upstart files afaik.

Try this:

sudo apt-get remove juju-core


cant start windows 7 after ubuntu dual boot upgraed I was running dual boot win 7/64 - Ubuntu 12.04 installed via Wubi. After upgrading Ubuntu to 14.04, I can't login to windows 7, the GRUB menu loads, but its stuck on loading windows screen.

Initially, I wasn't able to login to Ubuntu either, but this thread helped me http://ubuntuforums.org/showthread.php?t=2217829, I followed the hakuna_matata's advice on changing GRUB2 boot enry.

After running boot-repair, I got the following http://paste.ubuntu.com/9647860/, while the repair said it was successful, my problem remained.

I welcome even rough hints, as I'm not sure how to move from this point

Ordinarily boot repair solves issues of simple grub issues.  That report you posted revealed a problem I've never seen before, or even heard mention of.  I refer to line 731 which reads, "Partition 4 does not start on physical sector boundary."  The good news is that theoretically this may be something you can fix by yourself using gparted.  It may be as simple as deleting partitions 5 and 6 and then deleting partition 4 as well.  After you do all that you can install Ubuntu again but this time in more traditional manner that should not be prone to these problems.


How to properly setup a second hard drive for all users? My computer has two hard drives. Ubuntu is installed on the first drive and the second drive (i.e. /dev/sda1) will be used by many users to store data. What is a proper way to mount this drive? That is, how can I mount this drive so it would satisfy all the following criteria?

The drive must be named "Drive2"
It would appear under the main drive as indicated in the figure below (and if possible, not as a mounted drive on a folder in the root directory, e.g. /Drive2).
All users would have access to it.
Each user would get a folder with their username (there are more than 30 users, so I hope this can be done automatically).

The following is not a requirement and I don't know if it is possible. If it is, I am very curious to know how would one set up this drive for the following two separate cases:

non-sudo and sudo users can only view their own content.
sudo users can view everyone's content but non-sudo users can only
view their own content.

To clarify, I am not just asking how to mount a drive, but I am also looking for insights for systematic and secure file management system for secondary or external hard drives.

Step 1 -- Setup Drive
Use gparted to partition the drive. Make one partition covering the entire drive with the label "Drive2" and formated to ext4. Make note of the UUID for the partition.
Next, setup auto-mount. Make a folder for a mount point: sudo mkdir /mnt/drive2
Then add the following lines to /etc/fstab
#Drive2 automount
UUID=<UUID from above> /mnt/drive2 ext4 defaults 0 2

Reboot to test the auto-mount.
Step 2 -- Setup Folders
If auto-mounts works, open a terminal and type cd /mnt/drive2
I chose to set normal users with access to only their folder, and give sudoers access to all folders. I do not know a way to do this automatically; perhaps someone could make a script.
Repeat the following commands for each user. Replace "user1" with the actual user name.
 mkdir user1 #sudo might be needed.
 sudo chown user1:sudoers user1
 sudo chmod 770 user1  #user and sudoers full access, other no access
 ln user1 Drive2 #sudo might be needed again
 sudo chown user1:user1 Drive2
 sudo mv Drive2 /home/user1

Your users should now have a folder named "Drive2" in their home directory that links to their folder on Drive2.
For ease of access, a link for /mnt/drive2 can be made and copied to all the sudoers.
Notes:
With this setup, sudoers will be able to add files to user's folder, and delete files they created. But may only be able to view files created by others because default file settings are user:user 755 (maybe 754). And vis-a-versa. Though sudoers should be able to change permissions and owner.


No wifi detected after today's(Apr 10 -2015) Ubuntu software update I updated Ubuntu 14.04 system when it asked for a software update and after the installation I observed that no WiFi network is detected.

I rechecked the driver setting and it is set to Broadcom driver in Additional driver tab of Software and updates.

It is not a problem with Wifi hardware as it works well in Windows. I have copied the update history here.

I am not sure which package is causing the problem and ways to crack the problem.

Appreciate your help to identify and tackle the problem.

Hardware details

Laptop    : Dell Vostro 2520
WiFi chip : BCM43142

Output of uname -a

Linux ilabs 3.13.0-49-generic #81-Ubuntu SMP Tue Mar 24 19:29:48 UTC 2015 x86_64 x86_64 x86_64 GNU/Linux

Below is output of sudo lshw -C network

     *-network UNCLAIMED
       description: Network controller
       product: BCM43142 802.11b/g/n
       vendor: Broadcom Corporation
       physical id: 0
       bus info: pci@0000:07:00.0
       version: 01
       width: 64 bits
       clock: 33MHz
       capabilities: pm msi pciexpress bus_master cap_list
       configuration: latency=0
       resources: memory:f7c00000-f7c07fff
  *-network
       description: Ethernet interface
       product: RTL8111/8168/8411 PCI Express Gigabit Ethernet Controller
       vendor: Realtek Semiconductor Co., Ltd.
       physical id: 0
       bus info: pci@0000:09:00.0
       logical name: eth0
       version: 07
       serial: e0:db:55:b2:71:45
       size: 100Mbit/s
       capacity: 1Gbit/s
       width: 64 bits
       clock: 33MHz
       capabilities: pm msi pciexpress msix vpd bus_master cap_list ethernet physical tp mii 10bt 10bt-fd 100bt 100bt-fd 1000bt 1000bt-fd autonegotiation
       configuration: autonegotiation=on broadcast=yes driver=r8169 driverversion=2.3LK-NAPI duplex=full firmware=rtl8168e-3_0.0.4 03/27/12 ip=192.168.1.100 latency=0 link=yes multicast=yes port=MII speed=100Mbit/s
       resources: irq:41 ioport:e000(size=256) memory:f0004000-f0004fff memory:f0000000-f0003fff

Output of rfkill list

0: hci0: Bluetooth
    Soft blocked: no
    Hard blocked: no

Output of sudo dkms status

bcmwl, 6.30.223.248+bdcom, 3.13.0-49-generic, x86_64: installed

Finally, I figured out the problem.It was  with the version of the GCC.I have two version of GCC, gcc-4.4(which I need for some CAD tools) and gcc-4.8. Unfortunately it was set to gcc-4.4 at the time of update.So I guess the driver is compiled using gcc-4.4 which was failed to load.

To resolve this,I did

Switch gcc to gcc-4.8
In Additional driver tab of Software and updates,select Do not use the device and apply changes.
Then again switch back to the additional driver(Broadcom driver in my case) shown in Additional driver tab and apply changes.

you can restart the network-manager service using the command

/etc/init.d/network-manager restart

or try restarting the network service as well.

/etc/init.d/network restart


How to repair a hard drive file system used for Samsung smart tv I'm having a problem with my hard drive I use for my Samsung smart tv. Apparently it is a known problem, as the Samsung D-model TVs sometimes ruins the hard drivers file system, so I found a guide online on how to repair it.

I had to get ubuntu and plug in the hard drive. I should have received an error message saying something like "Cannot mount the driver I/O error", but I didn't.

After this I should write the command "sudo xfs_repair -L /dev/sdc" (I also tried with sdc1) in Terminal. I did that, and got the message "Phase 1 find and verify superblock..bad primary superblock - bad magic number !!! attempting to find secondary superblock...sorry could not find valid secondary superblock. Exiting now."

I tried searching online for different things to do. I tried the following commands:
sudo fdisk -l
--> giving me:

Disk /dev/sdc: 500.1 GB, 500107835392 bytes
255 heads, 63 sectors/track, 60801 cylinders, total 976773116 sectors
Units = sectors of 1 * 512 = 512 bytes
Sector size (logical/physical): 512 bytes / 512 bytes
I/O size (minimum/optimal): 512 bytes / 512 bytes
Disk identifier: 0xd5f0e851

   Device Boot      Start         End      Blocks   Id  System
/dev/sdc1            2048   976769023   488383488    7  HPFS/NTFS/exFAT
ubuntu@ubuntu:~$ sudo mount /dev/sdc

I also tried:

sudo badblocks /dev/sdc

--> it gave me:

1024
1025
1026
1027

And I tried:

sudo fsck /dev/sdc

--> it gave me:

fsck from util-linux 2.20.1
e2fsck 1.42 (29-Nov-2011)
fsck.ext2: Superblock invalid, trying backup blocks...
fsck.ext2: Bad magic number in super-block while trying to open /dev/sdc

The superblock could not be read or does not describe a correct ext2
filesystem.  If the device is valid and it really contains an ext2
filesystem (and not swap or ufs or something else), then the superblock
is corrupt, and you might try running e2fsck with an alternate superblock:
    e2fsck -b 8193 <device>

ubuntu@ubuntu:~$ sudo e2fsck -b 8193 /dev/sdc
e2fsck 1.42 (29-Nov-2011)
e2fsck: Bad magic number in super-block while trying to open /dev/sdc

The superblock could not be read or does not describe a correct ext2
filesystem.  If the device is valid and it really contains an ext2
filesystem (and not swap or ufs or something else), then the superblock
is corrupt, and you might try running e2fsck with an alternate superblock:
    e2fsck -b 8193 <device>

I'm a very inexperienced linux user and I have no idea what is wrong or how to fix it. I do NOT want to format my hard drive as I have important files on there.
I would really appreciate some help.

The fdisk output says that it is an NTFS file system:

/dev/sdc1            2048   976769023   488383488    7  HPFS/NTFS/exFAT

So you don't need linux to correct it, you need windows and run chkdsk /f on the drive. xfs_repair is for the XFS file system and fsck is for most of the linux native file systems. Linux doesn't have proper tools to fix an NTFS file system, since NTFS is not linux native, but Microsoft's proprietary file system.

If you want to fix the NTFS partition under Linux, please have a look at the manpage of ntfsfix and decide for yourself.

I've never used it and can't give any recommendation.


Cannot import Numpy and Pandas I have installed numpy and pandas using pip. After executing my python code it shows the following error:

Traceback (most recent call last):
  File "demo.py", line 1, in <module>
    import numpy as np
  File "/home/tauhid/.local/lib/python3.6/site-packages/numpy/__init__.py", line 142, in <module>
    from . import core
  File "/home/tauhid/.local/lib/python3.6/site-packages/numpy/core/__init__.py", line 59, in <module>
    from . import numeric
  File "/home/tauhid/.local/lib/python3.6/site-packages/numpy/core/numeric.py", line 3093, in <module>
    from . import fromnumeric
  File "/home/tauhid/.local/lib/python3.6/site-packages/numpy/core/fromnumeric.py", line 17, in <module>
    from . import _methods
  File "/home/tauhid/.local/lib/python3.6/site-packages/numpy/core/_methods.py", line 158, in <module>
    _NDARRAY_ARRAY_FUNCTION = mu.ndarray.__array_function__
AttributeError: type object 'numpy.ndarray' has no attribute '__array_function__'

I have tried uninstalling and reinstalling the packages, but same error reoccurs.

The import numpy as np, pandas command won't work unless you run it with Python 3.x, because you installed numpy and pandas for Python 3.6. To install Numpy and Pandas for Python 2.7 open the terminal and type:
sudo apt install python-numpy # 20.04 and earlier
sudo apt install python-pandas # 18.04 and earlier

The equivalent of the above command for Python 3.x is:
sudo apt install python3-numpy python3-pandas

Numpy and Pandas are currently installed locally in the home directory, not globally. To install the latest stable versions of Numpy and Pandas globally with pip run this command:
sudo python3 -m pip install numpy pandas

Before you make a hasty decision to install Numpy and Pandas globally with pip, remember that Numpy and Pandas packages are in the default Ubuntu repositories too.

Try this:

sudo python -m pip install --upgrade numpy
sudo python -m pip install --upgrade scipy


"Unable to mount Audio Disc Location is unmountable" error Possible Duplicate:
  Unable to mount Audio Disc

I've lost use of my cdrom player in Ubuntu 10.10. The message is "Unable to mount Audio Disc  Location is unmountable". How can I correct this?

You usually don't mount audio discs. If you want to play one, use a media player. You should also be able to use whatever default ripping program you have. Pure audio discs don't have a file system that the standard linux drivers can mount. Instead, linux has drivers that allow other programs to access it as a special audio-cdrom device.


How do I use cut to make tab the delimiter? I am working with the egrep command and I need to pair with the cut (and ONLY cut) command to change a ":" into a tab. For example change:

Blahblahblah:2000

to:

Blahblahblah    2000

I currently have this, but it turns the ":" into "/t" and not tab:

egrep -e "^[0-9]" *.txt | cut -d ":" --output-delimiter="/t" -f 1- > test.txt

Use this:

egrep -e "^[0-9]" *.txt | cut -d ":" --output-delimiter=$'\t' -f 1- > test.txt

should work in Bash.

Alternately, you can also use the tr command, if your need is to just replace the delimiter as follows

echo "Blahblahblah:2000" | tr ':' '\t'

You will get the following output

Blahblahblah    2000


How can I get mv (or the * wildcard) to move hidden files? I am migrating my home directory from an old system to a new one, and the tarball I made contains everything, including hidden files like .bashrc. However, when I move the contents of the unpacked tarball (which are in /tmp) to my new home directory, the hidden files do not copy (mv /tmp/home/rcook/* /home/rcook/). How can I get mv to move them?

Actually, I think the problem is not with mv, but with bash's globbing. If I do this:

mkdir a
mkdir b
touch a/.foo
touch a/bar
mv a/* b/
ls -a a/ b/

I see this:

a/:
.  ..  .foo

b/:
.  ..  bar

a/.foo did not move. So how can I get the * wildcard to find hidden files?

Yes, I suppose I could decompress the tarball directly into my home directory, but the tarball decompresses into home/rcook/..., and I want to be sure I overwrite the new .bashrc, etc. with the old, customized versions, and knowing how to find and move hidden files is a worthwhile skill. Suggestions?

Some answers suggest doing something like mv src/.* dest/. However, I tried this on my test directories and got errors. Starting with:

rcook$ ls -a a/ b/
a/:
.  ..  bar  .foo

b/:
.  ..
rcook$ mv a/.* b/
mv: cannot move 'a/.' to 'b/.': Device or resource busy
mv: cannot remove 'a/..': Is a directory
rcook$ ls -a a/ b/
a/:
.  ..  bar

b/:
.  ..  .foo

What am I doing wrong?

You can do this :

shopt -s dotglob
mv /tmp/home/rcook/* /home/rcook/

You can put

shopt -s dotglob

in your ~/.bashrc if you want it to be the default.

See http://mywiki.wooledge.org/glob

Another approach to copy the dot files:

mv /tmp/home/rcook/.[!.]* /home/rcook/

Don't use the pattern ..* as it matches .. (pointer to the parent directory). If there are files whose name begin with two dots (..something), also use the pattern ..?*.

If you want to copy files including hidden files to the current directory that you are in.

cp -Rp source-directory/. .


Why does window buttons appear twice in Chrome/Chromium? After following some beginners tips/tricks for Ubuntu 12.10, I noticed that Chrome/Chromium windows shows the minimize, maximize and close button twice. I tried undoing what I did, but that didn't fix the issue.

Why is it so?

If chromium is not maximized, it will show two sets of {minimize,maximize,close} buttons due to the way it's coded.


Installing mysql causes Error 2002 error I tried installing mysql server a couple of times and I'm having problems. First of all, when I install it gives me a message that it's setting up and it just hangs. I can't ctl + c out of it, so I reboot the server and try to log into the db with

sudo mysql -u root -p

I enter my password and then get

ERROR 2002 (HY000): Can't connect to local MySQL server through socket '/var/run/mysqld/mysqld.sock' (2)

I restart the server:

$ sudo /etc/init.d/mysql start
Rather than invoking init scripts through /etc/init.d, use the service(8)
utility, e.g. service mysql start

Since the script you are attempting to invoke has been converted to an
Upstart job, you may also use the start(8) utility, e.g. start mysql

I try this:

$ aptitude search mysql | grep ^i
i A libdbd-mysql-perl               - Perl5 database interface to the MySQL data
i   libmysql-java                   - Java database (JDBC) driver for MySQL
i A libmysqlclient16                - MySQL database client library
i   mysql-client-5.1                - MySQL database client binaries
i A mysql-client-core-5.1           - MySQL database core client binaries
i   mysql-common                    - MySQL database common files, e.g. /etc/mys
i   mysql-embedded                  - MySQL - embedded library
i   mysql-server-core-5.1           - MySQL database server binaries

When I navigate to the folder to see if the *.sock file exists:

'/var/run/mysqld/mysqld.sock'

it does not. I also try this:

$ service mysql status
status: Unable to connect to system bus: Failed to connect to socket /var/run/dbus/system_bus_socket: No such file or directory

Any ideas? On my other machines installing mysql has been a snap, not sure what the problem is here.

You've corrupted your packages I see. You said you cancelled the installation of MySQL server, which is the package mysql-server-5.1.

Try clearing your MySQL configuration and reinstalling it:

sudo rm -rf /etc/mysql /var/lib/mysql
sudo apt-get install mysql-server-5.1

Note that the first command clears previous settings and passwords of the MySQL database including the MySQL database itself. If you've just installed the server (as I can make up from your question), this is not an issue.

As SpamapS noticed, you can use apt's purge feature to get rid of the MySQL server and its settings. The commands for purging and installing follows:

sudo apt-get --purge remove mysql-server-5.1
sudo apt-get install mysql-server-5.1

Does the file mysqld.sock exist? If not, try the following:

sudo mkdir /var/run/mysqld
sudo touch /var/run/mysqld/mysqld.sock
sudo chown -R mysql /var/run/mysqld


How do you restart Apache? I switched from SLES to Ubuntu and now I want to restart my local server.
In SLES I used :

rcapache2 restart

but this somehow seems not to work in Ubuntu. :(

How do i restart my Apache?

sudo service apache2 restart for the way that's borrowed from Red Hat.

if you are root: (In Ubuntu root is disabled, I think, than use 'sudo' command!)

$ /etc/init.d/apache stop
$ /etc/init.d/apache start
$ /etc/init.d/apache restart
$ /etc/init.d/apache reload

(If you used a2ensite or a2dissite, you have to reload your apache configuration)


pulseaudio does not start after logout and login again I am using Ubuntu 12.04. When I logout and login again pulseaudio does not start and I have to start pulseaudio manually. When I boot my computer and login, pulseaudio is starting as expected. This happens only if I logout and login again.

Try changing default output plugin with the tool: gstreamer-properties.
Select default output as "PulseAudio Sound Server". It should work. Logout and Login again.

If you have still problem, Delete the folder .pulse and the file .pulse-cookie in your home directory. Logout and Login again to see change.

This is very late, but more I suppose of a comment.  Check the permissions on the system.pa,

I had followed everything on this thread as I had the same problem

Then a thought occurs.   I checked the permissions on system.pa and somehow it was root only.  Addressed that so it was not ONLY root and cured it for everyone on this system having issues.

Strange bit-flip I had done 3 total reinstalls and not wiped accounts and never could get the problem solved.  Thank you for keeping this posted as it was a comment someone made that was not directed so much as a fix as it was a gift. "here is my System.pa, make sure the permissions are set correctly."

"Permissions?  I have the system.pa...so..check permissions.  AHA!" The whole bug in the soup was cured.  Thanks again.


The system network services are not compatible with this version Ubuntu 14.04 I have Ubuntu 14.04 LTS installed on my PC. I have created some new accounts and then after I logged in to my own account there was no internet connection. When I try to open the network settings I faced this error

The system network services are not compatible with this version.

I have tried starting the NetworkManager manually with this command

sudo service network-manager start

but it has not worked.

Can you please help me?

Network Manager Crash on ubuntu 14.04

After upgrade from proposed repository the next packages:  libnl-3-200, libnl-genl-3-200 and libnl-route-3-200.

You'll need to downgrade your libnl-3 packages:

sudo apt-get install libnl-3-200=3.2.21-1 libnl-genl-3-200=3.2.21-1 \
libnl-route-3-200=3.2.21-1

if you can not install these packages or have trouble making the downgrade you can manually download them from here(from my account):

https://mega.nz/#F!7kchgI7Z!U5Y_M80OSSS5DZKfZGrC3g

Steps:

Download the 3 files on another computer.
Copy them to a flashdrive.
Put the flashdrive in to the affected computer.
Copy the 3 files into a new folder.
Open a terminal in that folder and run

sudo dpkg -i lib*.deb
sudo reboot

And you may need to apply a hold until a fix for NetworkManager can be released.

sudo apt-mark hold libnl-3-200 libnl-genl-3-200 libnl-route-3-200

And after the fix:

sudo apt-mark auto libnl-3-200 libnl-genl-3-200 libnl-route-3-200

More info:

You can try this in your terminal

sudo ifconfig eth0 up // Make your interface up
sudo dhclient  // assign Ipaddress by dhcp
sudo apt-get install network-manager // Now install latest network-manager
sudo service network-manager restart //restart network-manager

after your try it, update you network manager.


How to get a a graphical BASH prompt? I want something that looks like this:

Is there any way to achieve this?
If so, how can I do this?
NOTE: I use Kubuntu Disco in case that is important.

For Kubuntu 19.04, install fonts-powerline using sudo apt install fonts-powerline. Your system should also have fonts-hack.
Visit this site and copy the entire script, all 348 lines as on 20190906, to ~/bin and save it as powerline.sh or whatever. Use the file manager to make the script executable.
(Note that ~/bin is by default in your system's path and so you do not need something like $HOME/bin/.powerline.sh.)
Open konsole and, from your home folder, run
echo "source powerline.sh" >> ~/.bashrc

Doing so will add
source powerline.sh

as the last line of your ~/.bashrc.
From your still open konsole window, run
source .bashrc

to reload .bashrc and use powerline.sh in the existing konsole window.
If you want to go back to the default prompt, comment out the source powerline.sh line  in ~/.bashrc by placing a # mark at the beginning of the line.
Read the contents of ~/bin/powerline.sh if you want to modify some aspects of the prompt.

Konsole, whether in Kubuntu 19.04 or Kubuntu 18.04, doesn't need fonts-powerline installed. But other terminals such as lxterminal and gnome-terminal need the package to get the triangles and the prompt to display nicely.

The simplest way: https://ohmyz.sh/

And choose a theme like this one: https://github.com/robbyrussell/oh-my-zsh/wiki/Themes#agnoster


Enable networking without the gnome-applet I've switched to XMonad as my window manager. Sometimes when I put my laptop to hibernate, it's hanging and won't shut down. I have to force it off by pressing the powerbutton for 5 seconds.

After I boot again, I can't connect to the internet. I have to logout, go to gnome, and after logging in, I rightclick the network applet icon and select the enable networking options. After that, my internet is working again.

Is there a way to do this via the command line or another option?

You can use nmcli (part of NM) or cnetworkmanager

sudo apt-get install cnetworkmanager

to control NetworkManager from the commandline.

BTW: you can configure Monad to use a panel or such (but maybe that's not what you want).

It sounds like you've killed the network-manager daemon. You can restart it by doing sudo service network-manager start. However if you're not using network-manager you can always remove it all together (and probably eliminate this issue).


New NextCloud installation requires change but I'm not sure where to run this line of code I just installed NextCloud 15 on a new installation of Ubuntu 16.04.5 LTS.

The welcome page shows this:

  Some columns in the database are missing a conversion to big int. Due
  to the fact that changing column types on big tables could take some
  time they were not changed automatically. By running 'occ
  db:convert-filecache-bigint' those pending changes could be applied
  manually. This operation needs to be made while the instance is
  offline. For further details read the documentation page about this.
  filecache.mtime filecache.storage_mtime

Where do I run this command at and how:

occ db:convert-filecache-bigint

I tried running it on the command line and also the mysql command line. The command line said occ not found and mysql said it was bad syntax.

Where do I execute this line at?

occ is a console script in the Nextcloud html directory, which should be per default located at /var/www/html/nextcloud or maybe /var/www/nextcloud/.

You can cd into that directory and run ./occ from there:

cd /var/www/html/nextcloud
./occ db:convert-filecache-bigint

or run it from anywhere with full path provided:

/var/www/html/nextcloud/occ db:convert-filecache-bigint

  Note that the official documentation states that you must run occ as your HTTP user (which defaults to www-data in Debian/Ubuntu) to ensure that the correct permissions are maintained on your Nextcloud files and directories:
  sudo -u www-data php occ
  or sudo -u www-data php /var/www/html/nextcloud/occ

See: > Using the occ command

If you have installed Nextcloud as a snap package, you can run occ as nextcloud.occ.

nextcloud.occ db:convert-filecache-bigint

This one working with me:

cd /var/www/html/nextcloud
sudo -u www-data ./occ db:convert-filecache-bigint


How do I install/upgrade r-base to the latest version? I am pretty new to Linux. I installed R-base in my Ubuntu 12.04 using the Software Center (which by default is r-2.14). I want to upgrade to/install R 3.02 or newer. How can I do that? Thank you.

You need to add R's repository to your system:

Use your favorite text editor (I'm using gedit as an example) to open /etc/apt/sources.list:

sudo -H gedit /etc/apt/sources.list

Add this line to the file (if this is slow, use another mirror. You may also want to change precise into the codename for your Ubuntu version --- e.g., trusty for 14.04):

 deb http://cran.rstudio.com/bin/linux/ubuntu precise/

Update the list of packages

sudo apt-get update

Install the latest R-base (you can also use the software center again):

sudo apt-get install r-base

For Ubuntu 14.04 LTS the commands are

sudo -H gedit /etc/apt/sources.list

deb http://cran.rstudio.com/bin/linux/ubuntu quantal/

*Note: the forward slash is required otherwise you get an error

sudo apt-get update

sudo apt-get install r-base


Going back to standard scrollbars on Unity Possible Duplicate:
  How do I disable overlay scrollbars?

I am running xfce4 on a fairly normal 12.04 upgraded-from-11.10 install.

I really do not like the scroll bars. They are hard to find and click. How do I get normal, sane scrollbars back?

Remove the newer overlay scrollbars; and replace them with older scrollbars:

sudo apt-get remove overlay-scrollbar liboverlay-scrollbar-0.2-0 liboverlay-scrollbar3-0.2-0

This is for 12.04, despite how it looks.

This is a screenshot of what the scrollbars look like after this command is run:

Ref: http://www.webupd8.org/2011/04/how-to-disable-overlay-scrollbars-in.html

This should do it for you: sudo apt-get purge "scrollbar*"


Adobe Flash Player not detected on Chromium for Ubuntu I am using Chromium for Ubuntu and it's telling me I need to install Adobe Flash Player (AFP) when I go to play a certain video by directing me to Adobe's website. I have AFP installed via Ubuntu Software Center, however that seems to be not good enough.

How can I get it working?

I have done some research before posting this and I'm being told (from Adobe's website) to download the tar ball, extract, then cp the files into certain directories, namely libflashplayer.so into Chromium's "browser plug-in directory" and a /usr folder into "the flash player local settings configuration."

I presume this process will work given that it's in Adobe's readme file; I have a few questions about the instructions. How do I find the browser plugin in directory, generally speaking; I'd like an answer that applies to any OS as well as browser if possible.

If there is a better way to go about solving this problem, please address it.

You could just use Chrome instead of Chromium, if you need a browser to work with flash out of the box. (I am not sure about Chromium, but am using Chrome and I have Flash built in which works fine.)


Setting JDK 7 as default four@twenty:~$ file /etc/alternatives/java /etc/alternatives/javac
 /etc/alternatives/java:symbolic link to `/usr/lib/jvm/java-7-openjdk-amd64/jre/bin/java'
 /etc/alternatives/javac:symbolic link to `/usr/lib/jvm/java-6-openjdk-amd64/bin/javac'

Forgive my noobishness but I am interpreting these messages as the runtime environment using Java 7 but the compiler is using Java 6?

Is this right, and if so, how can I set it to use Java version 7?

Switching between installed Java versions can be accomplished using the update alternatives command.

To get a list of your installed Java platforms, run the following command from the terminal:

sudo update-alternatives --config java

This will give you a list output similar to this:

There are 2 choices for the alternative java (providing /usr/bin/java).
   Selection    Path                                           Priority   Status
  ------------------------------------------------------------
  0            /usr/lib/jvm/java-6-oracle/jre/bin/java         1070      auto mode
  1            /usr/lib/jvm/java-7-openjdk-i386/jre/bin/java   1051      manual mode
* 2            /usr/lib/jvm/java-6-openjdk-i386/jre/bin/java   1069      manual mode
Press enter to keep the current choice[*], or type selection number:

In this case, the Open JDK 6 version is running. To switch to the Open JDK version 7, you would select option 1 at the prompt and press the Enter key.

You will now be running the OpenJDK 7 version. No other changes will be needed to switch your Java versions.

the GUI way

$ sudo apt-get install galternatives
$ sudo galternatives

more here: https://askubuntu.com/a/159594/216936


How to disable Bluetooth power saving? I've been using a Bluetooth keyboard with Ubuntu for years now. To begin with it was quite tricky to get it to pair, but for the last several releases it's been rock solid.
After updating to 20.04 (from 19.10) it still works great, but it has acquired a new feature in which the keyboard goes to sleep if I don't type anything for a while. I presume this is deliberate and meant to be an improvement, and it reconnects just fine when I do press a key, but it takes a few seconds and drops any key presses in the meantime, so it's annoying.
How can I go back to the old always-connected mode, please?

Maybe try this...
The comment in /etc/bluetooth/input.conf says it should already default to '0' so this shouldn't be needed, but explicitly setting IdleTimeout to 0 like this seems to have worked for me, I am using Ubuntu 20.04
sudo sed -i 's/#IdleTimeout=30/IdleTimeout=0/g' /etc/bluetooth/input.conf

just go on settings power and disable the button in which comp. can save power by disabling bluetooth
.
in my case it is on just disable it youcan take help from above


I installed Ubuntu 14.04.3 LTS, but I can't boot into it. How can I fix this? I've installed Ubuntu 14.04.3 LTS from a USB drive, on a PC running Windows 8.1. But when I turn on my PC, I'm not presented with an option to choose to boot either Windows or Ubuntu. Instead, I'm taken straight to Windows. I've reinstalled Ubuntu (from the same USB drive), and nothing's changed. Moreover, Ubuntu doesn't appear in my list of programs in the Windows control panel. How can I boot into Ubuntu?

Someone suggested I boot the USB drive and type the commands:
sudo fdisk -l
sudo grub-install /dev/

Here's the output of these commands:
Output of sudo commands

I have something similar. I never see grub. However, if I get the BIOS boot menu, I can choose either Windows or Linux.

You may also need to disable safeboot in the BIOS.

When your machine first comes on it should tell you which key to press to get BIOS settings. F10, F12, del or something.

There is a section of your HHD that is the boot area. The information in there will dictate the boot steps. If you installed Ubuntu along with Windows then you need to install GRUB from ubuntu to the boot manager. That will handle our chioce of win or ubuntu.

You will need to boot the live disk and either fully reinstall or install grub from there. Open a terminal, and type sudo fdisk -l Now, type sudo grub-install /dev/


How can PPAs be removed? I've added many PPAs using the add-apt-repository command. Is there a simple way to remove these PPAs? I've checked in /etc/apt/sources.list for the appropriate deb lines but they aren't there.

This is on a server system so a command line solution would be great!

There are a number of options:

Use the --remove flag, similar to how the PPA was added:
sudo add-apt-repository --remove ppa:whatever/ppa

You can also remove PPAs by deleting the .list files from /etc/apt/sources.list.d directory.

As a safer alternative, you can install ppa-purge:
sudo apt-get install ppa-purge

And then remove the PPA, downgrading gracefully packages it provided to packages provided by official repositories:
sudo ppa-purge ppa:whatever/ppa

Note that this will uninstall packages provided by the PPA, but not those provided by the official repositories. If you want to remove them, you should tell it to apt:
sudo apt-get purge package_name

Last but not least, you can also disable or remove PPAs from the "Software Sources" section in Ubuntu Settings with a few clicks of your mouse (no terminal needed).

Create this function (add it to wherever you store your functions) and then run with the appropriate ppa name:

rmppa()
{
    sudo -- sh -c 'rm /etc/apt/sources.list.d/"$1".list ; apt-get update'
}

rmppa snagglepuss

Add error checking (non-existent parameter, for example) if you desire...


Xfce forgets desktop icons positions Sometimes, after logging out and in, Xubuntu forgets the positions of the desktop icons and re-arranges them on top-left as default.

I have tried a proposed solution on a similar subject. This locks the icons that were on desktop when I ran the command but not the newer icons.

What could I do to permanently fix this issue?
I use Xubuntu 12.10 with xfce 4.12.

The problem seems to have been solved in the 13.04 edition, but the "semi-solution" I had used made the problem persist. If you have the same problem, try deactivating the lock:

sudo chattr -i ~/.config/xfce4/desktop/icons*

Since Ubuntu 14.04, the Directory structure has changed in Ubuntu 16.04, the desktop Icon placement is no longer
a collection of Icons kept in .config/xfce4/desktop/icons as it used to be, now Ubuntu uses a ".rc" file which contains
information about desktop layout, found in .config/xfce4/desktop/. The files used to configure desktop Icon
placement look like these - icons.screen0-1904x1014.rc - they are text files, when examined in a text editor, they
show the name of the Icon and its position, designated by column and row [x,y co-ordinates].

I my case I discovered 16 seperate ".rc" files each one having a different screen resolution in its name, so the
first task was to determine which of those 16 files was the current one in use for reference. By looking at the
date accessed column in the file manager, this became apparent. Leaving the file manager window open, I highlighted
the current file, I opened a terminal at the directory "desktop" with a right button click in the file manager.
The directory path was displayed in terminal, and with "sudo -s" authenticated access to this directory, using "ls"
the contents of "desktop" were listed in terminal, referring back to the open file manager window with the current
file name highlighted, all other desktop configuration files ".rc" were deleted using "rm" leaving the one which was
current, at this point the command line: sudo chattr -i ~/.config/xfce4/desktop/icons.screen0-1904x1014.rc can be
used to make the file writable and removable [-i] I then rolled up all windows to arrange the Icons in the order of
MY choice. I applied the [+i] variable to lock the file: sudo chattr +i ~/.config/xfce4/desktop/icons.screen0-1904x1014.rc

This appears to work, after days of battling with this annoying problem, I restarted the machine and to my delight
all desktop Icons were for once, where I wanted them to be, although, quite why I had 16 seperate configuration
files, I have no idea, I would imagine the system only needs one as a reference.

The Introduction of more Icons onto the desktop will require the file attributes to be changed again, so this
procedure needs to be carried out with each desktop change.

I Hope this will help all other users of Ubuntu 16.04 to solve the wandering Icon problem - best wishes: Peter Newton


Where is the gnome-shell-extension configuration file? I'm searching the config file that says which extensions are active beacause i want take it in /etc/skel directory.
also i'm searching too the file of theme configuration (that says which theme is active)

I'm not sure if this will help in all aspects of your question but have you tried the

Gnome Tweak Tool

It will definitely show you which theme is active plus it has the following features.

Install and switch gnome-shell themes
Switch gtk/icon/cursor themes
Switch window manager themes

Change

The user-interface and titlebar fonts
Icons in menus and buttons
Behavior on laptop lid close
Shell font size
File manager desktop icons
Titlebar click action
Shell clock to show date
Font hinting and antialiasing

There is also an indepth article that I have linked to below that explains customizing the GNOME Shell. It explains how the GConf CORBA-based configuration system is no longer used and has been replaced by GSettings which it goes on to explain in detail.

Customizing the GNOME Shell article


How do I run update-grub from a LiveCD? Okay, so I did something stupid.  I was trying to clean up my Grub entries, and accidentally removed all of my Linux kernels from Grub (they're still on the hard drive).  So now, obviously, Grub doesn't give me any way to boot into Ubuntu; I can boot into Windows just fine, but Ubuntu isn't even listed.

So I just want to run "sudo upgrade-grub" somehow to restore Ubuntu to the list.  I can boot from a LiveCD, but once there how do I run that command?  (My Ubuntu installation is on sda5, by the way.)

Since you say your grub bootloader appears, but the menu is empty, I think you don't need to reinstall grub, but rather, as you ask, run update-grub. To achieve this, you can use a Live CD, mount the relevant partitions from your hard disk, chroot into the mounted directory, and run update-grub, which should work as if you were operating on the actual hard disk.

Boot with your Live CD, selecting "Try Ubuntu without installing".

Once it boots, open a terminal (ctrl-alt-t) and mount your Ubuntu partition on /mnt. I'm assuming the Ubuntu partition is /dev/sda5, but you should determine this yourself. Let me know if you need help to do this:

sudo mount /dev/sda5 /mnt

Then mount a few more directories that are needed:

sudo mount --bind /dev /mnt/dev
sudo mount --bind /sys /mnt/sys
sudo mount --bind /proc /mnt/proc

Also, if you have a separate Ubuntu boot partition (pretty uncommon these days, but it may be the case):

sudo mount /dev/sdaX /mnt/boot

How can you tell if you have a boot partition?

Once you have your Ubuntu partition mounted, open  /mnt/etc/fstab. If you see an entry for /boot, note which device it is pointing to (/dev/sda4 maybe?). This is the one you have to mount.

Once these are mounted, do chroot to start using the mounted directory as the root partition:

sudo chroot /mnt

You'll get a #/ prompt. First thing to do is confirm that you're using the correct /boot directory. Go to /boot/grub and look at the files there. There should be a bunch of .mod files and a grub.cfg file. If the directory is empty, don't continue, because it means this is NOT your actual boot directory. Look above to see how to determine if you need to mount an additional boot directory.

Once you've confirmed that /boot/ contains the correct files, meaning that it is the correct location, type:

sudo update-grub

This should rebuild your /boot/grub/grub.cfg file with the menu entries.

Then exit the chroot:

exit

At this point you may want to check that things were correctly updated. For this, cd /mnt/boot/grub and check that grub's files are there, there should be a bunch of .mod files and grub.cfg, the latter should have entries for your Ubuntu kernels. If you only see grub.cfg and no .mod files, it means that this is NOT the correct boot directory, look above for how to mount a separate boot partition.

Unmount the filesystems:

sudo umount /mnt/dev
sudo umount /mnt/sys
sudo umount /mnt/proc
sudo umount /mnt/boot #Only if you mounted it earlier
sudo umount /mnt/

And then reboot, hopefully your Grub menu will be restored.

Thanks for all the great help!  However, in the end nothing seemed to work, and since I had a separate /home partition, I was able to reinstall Ubuntu without losing any data.  I still have to reinstall programs and do some configuring, but everything seems good at this point.


How to adjust maximum Output Volume The maximum output volume as allowed by the slider control in the menu bar is never loud enough. I have to open the Sound Settings and boost it past 100%.  This has been the case in 12.04, 12.10, and 13.04. Also, if the volume was set past 100% through sound settings, the use of volume shortcut keys cause the volume to slide back to 100%.

How can I adjust what Ubuntu considers 100% on the Output volume?

What do you mean with 100%?
100% Its that...100% If you access to Sound Settings, There is a place where you can "Amplify" overpass 100% and get more "louder",  but is over level.
In same way, you can look at VLC where It's a volume level, that's 100% and you can amplify this to %200, but, is just that.
I recomend you a good pair of speaker system, or may be a nice pair of earphone to get better sound.

If you are over Level, you got a distortion of real sound.


Is there a specific Ubuntu Touch rom for xperia ion? I just want to know if there is any specific rom online for Sony Xperia ion.

Are there installation instruction too?

I think you could be first to install and share your experience:
Ubuntu Touch Install Getting Started
Installing Ubuntu for Devices


Where is the cron / crontab log? I want to verify that my cron job is executing and at what time.  I believe there is a log for my sudo crontab -e jobs, but where?

I searched google and found recommendations to look in /var/log (in which I do not see anything with 'cron' in the name) and to edit the file /etc/syslog.conf which I also do not have.

On a default installation the cron jobs get logged to

/var/log/syslog

You can see just cron jobs in that logfile by running

 grep CRON /var/log/syslog

If you haven't reconfigured anything,the entries will be in there.

Check all CRON related logs in syslog files included compressed log files as well like this way:

zless /var/log/syslog* | grep CRON


Cant install Ubuntu. How do you format a Windows HDD I have an HP 630, and would like to install Ubuntu.

All goes well until the point where you have to choose how you want Ubuntu installed. I choose on the whole HDD, I want Windows off the HDD.

I press enter and about 5 seconds later the CD tray open and the computer reboots. This happens over and over.

How do I format this Window HDD completely to install Ubuntu 13.04.

I have tried 3 different CD's and the same thing happens each time.

If you don't want windows, then when you get to the installation type screen, just choose Erase disk and install Ubuntu.  If you want more control on size of partition and swap, then choose Something else, which will let you do manual partitioning.


How to install Ubuntu on a computer with a Nvidia Geforce GTX 550 TI? When I try to install Ubuntu 12.04 64-Bits on my desktop computer, I don't get any video output from the installation since I click "Install Ubuntu" (or something like that). It stays with a black screen just like in a console.

I googled about my problem and I found that maybe Ubuntu isn't capable of showing image when running on a Nvidia Geforce GTX 550 TI, but I couldn't find any solution. How can I install Ubuntu on my dear computer? :P

PS: The problem isn't with the USB I use, I installed already Ubuntu 12.04 64 into my netbook Asus 1215P, and is working fine.

I figured it out. When the installation pops up, I clicked F6, then ESC. In the text that appeared on the screen, I changed quiet to noquiet, splash to nosplash, and added nomodeset right after nosplash.

The install finally opened. When installed I checked "install updates during install" and "install third party software" (or something like that) after connected to my wireless network, and when the setup finished and I rebooted my computer, everything was working just fine, with NVidia drivers installed and Unity 3D working.

For Alternate install:
After base packages are installed (before grub install), open a prompt (ALT+F2) and "chroot /target", then "apt-get install nvidia-current", "CTRL+D" to exit chroot, "ALT+F1" to resume install. Complete the installation and you should be good to go.

Do seen some glitches or other visual anomalies??

I have a GTX 560 TI and occasionally colored boxes appear on the screen, even to blocked the desktop Unity and i can't work more with them (reboot to resume).

I install the lasted nVidia Drivers and blocked free nVidia nouveau drivers in blacklist.conf.

Thanks


How to install Side by Side Boot on Windows XP I have looked at other questions but none seem to help my problem.

I am trying to install the latest version of Ubuntu off a USB Stick Side by Side with Windows XP. I have it booted up but when I get to the install page the only options are erase hard drive or "Something Else". I don't want to destroy anything messing with partitions, so if that is the answer please be specific and detailed...

Thanks

There should be an "Install alongside Windows" option and I think you know that, but it's not showing. That may be a problem but immediately, to get Ubuntu safely installed isn't too hard:

Boot to LiveCD under the Try Ubuntu mode.
Load gparted
Resize Windows' partition so there's enough space for Ubuntu, apply the changes and close gparted. If it gives you gyp about Windows needing to shut down properly, that might explain why the main installer isn't being cooperative: Boot Windows, shut down, boot Windows again, shut down again, and try the installer again. If that doesn't work, use the try-ubuntu mode and do the resize.
Then run the installer and it should give you an option to install into the free space you have created. Accept all the other defaults.

This should get you to a point where you can boot into Ubuntu. There is a possibility that because that installer couldn't find Windows, that there will be no option to boot to Windows from within the Grub boot menu. If that's the case you might want to run Boot Repair to fix things up.

You might want to consider using the CD instead of the USB Stick. Then, the option to install alongside your existing OS might be available.

What version of Ubuntu, and what installer are you using?
I'd recommend re-downloading the ISO, and actually burning it to a disk. Writable CD's are fairly cheap at Wal-Mart or wherever; I got a 50-pack for $20 or so. (I can't remember how much, exactly, but they're fairly cheap. I ended up using them for all kinds of things, and it's lasted me forever, so I'd actually recommend buying a few just to have them.)

(The reason I recommend re-downloading it is that you may have gotten an outdated, incorrect, or unofficial version. There may have also been an error in the download, although that's fairly unlikely.) The official download page for the Desktop edition installer is http://www.ubuntu.com/download/desktop.
Get the "Standard" installer unless your computer is truly ancient, as it is easier to use and more user-friendly (and therefore more likely to offer pre-configured partition options, such as installing alongside an existing OS.)

If none of that helped, and you end up "forced" into a manual partitioning, then remember that the Windows partition will be an NTFS partition. I believe that this will be labeled as "Type 7".


Ubuntu does not load after successfull installation I have Windows installed on my pc on partition (C), then I installed Ubuntu 14.04 on another partition. After the installation process finished successfully, Ubuntu asked to restart. Unfortunately, after the restart Windows was booted without showing a menu and asking me which OS to boot.

So how can I fix this problem and get a boot menu that allows me to boot Ubuntu?

This problem happens to me as well. The way you you fix this problem.

First turn off secure boot and fast boot. and if that doesn’t work proceed to the following steps

1.boot from the Ubuntu disk.
2.Click try Ubuntu.
3.Get Boot repair
4. Run the recommended repair.

If you need better more clear instructions ill give you the link to the help site
https://help.ubuntu.com/community/Boot-Repair


How do I find out if an external drive is in active use (being read/written to)? I have some external drives connected to a power outlet. The outlet is USB switchable, i.e. I can run a program on my PC that physically disconnects the external drives from the power grid. I only use those drives every once in a while for backup. Often I forget to turn them off (though it is really easy with that switchable outlet).

Now what I want to do, is check if they are actively in use. That is, I want to know if larger amounts of data have been written or read from them in, say, the last half hour or so. How would I go about such a task?

Okay, the best I could do so far was to install sysstat     and then query the following command every once in a while (replace sdX with the name of the drive - you can figure this out by first running iostat -m to identify the drive you want):

iostat -m | grep sdX | tr -s ' ' | cut -d ' ' -f 5-

When these two values (read and write) change significantly, the disk is in active use (not generated by a daemon or something).

I suppose one could do it without installing the bloat of another package by just looking at /proc/diskstats. If anyone has a better, more elegant solution, i'd be happy to here it.

If you want you want to list the USB devices (To see if they're in use), you can open a terminal and type lsusb.

It might come up with this: (Please note, my output is different to yours)

Bus 001 Device 001: ID 1d6b:0002 Linux Foundation 2.0 root hub
Bus 002 Device 001: ID 1d6b:0002 Linux Foundation 2.0 root hub
Bus 001 Device 002: ID 8087:0020 Intel Corp. Integrated Rate Matching Hub
Bus 002 Device 002: ID 8087:0020 Intel Corp. Integrated Rate Matching Hub
Bus 001 Device 003: ID 413c:2005 Dell Computer Corp. RT7D50 Keyboard
Bus 001 Device 004: ID 413c:3016 Dell Computer Corp. Optical 5-Button Wheel Mouse
Bus 001 Device 005: ID 03f0:a007 Hewlett-Packard

It will list the devices, so you can see if they're physically in use.

Hope this helps!!!


Cannot install Ubuntu -- Wubi does not currently support EFI I have the .iso image of Ubuntu 15.10 that a friend gave to me. I have a pre-installed Windows 10. When I mount the image and run wubi.exe, it gives the following error:

  Wubi does not currently support EFI.

Please tell me how to install (dual-boot) Ubuntu (with Windows). My FastBoot service is off and Windows is installed in UEFI mode.

You can try creating a different partition through windows and then installing with custom installation(when you boot with the USB or CD there is an option after you press ''Install Ubuntu'' instead of install alongside Windows or delete windows). Here is a program that you can try using and a guide along with it: Safely Create Partition for Windows 10 with Free Software

It seems that you can't use wubi with EFI enable.

Try to disable EFI from your bios and do the followings:

Installation with wubi: requires to resize your NTFS windoze partition from Windoze Disk Management  to make free space and then you must create a second NTFS partition for Ubuntu, Note that wubi will install Ubuntu on the second NTFS partition and Ubuntu will be slower since NTFS is not a GNU/Linux file system, you will see the instructions just choose what you want, dual boot etc.

Installation without wubi with EFI enable: requires to resize your NTFS partition of windoze to make free space for Ubuntu and set your pc bios to boot from the cd now all you need to do is boot from cd and follow the instructions, is pretty straightforward, will also ask you about dual boot.

Ubuntu on Ext4 partition is much faster since is a file system for GNU/Linux.

Installation without wubi is the best way to go. (recommended)


Problems after install TP-LINK T2UH AC600 Wireless adapter Driver (Ralink mt7610u) help me!
I follow the steps on that post:
How to install TP-LINK T2UH Wireless adapter Driver (Ralink mt7610u)
But, my dongle only work on 2.4Ghz and not 5Ghz, what I do?
My kernel is:
4.2.0-30-generic
My Ubuntu is 14.04.04 (LTS).

$ nano ~/mt7610u*/os/linux/rt_linux.c

@@ -1086,8 +1086,8 @@ int RtmpOSFileRead(RTMP_OS_FD osfd, char *pDataPtr, int readLen)
    if (osfd->f_op && osfd->f_op->read) {
        return osfd->f_op->read(osfd, pDataPtr, readLen, &osfd->f_pos);
    } else {
-        DBGPRINT(RT_DEBUG_ERROR, ("no file read method\n"));
-        return -1;
+        DBGPRINT(RT_DEBUG_ERROR, ("no file read method, using vfs_read\n"));
+        return vfs_read(osfd, pDataPtr, readLen, &osfd->f_pos);
    }
}


Hollow Progress Bars in Ubuntu 13.04 Software Center I've noticed in Ubuntu 13.04 (and 12.10) that the progress bars in the Software Center have a transparent space in the middle, not solid orange, which shows the color of the background behind it. It's nit-picky but I was wondering if there is a way to fix this.

I don't suppose anything is broken here. Maybe ubuntu just moved away from the completely orange-filled progress bar to this swanky version for software center.


Thumbnails not showing in video in Ubuntu 18.04 I have Ubuntu 16.04 LTS and I've manually installed Ubuntu 18.04 LTS.
Everything looks fine except video thumbnails.
How to solve this?

Install FFMPEG Thumbnailer-

sudo apt install ffmpegthumbnailer

Then close and reopen file manager. Thumbnails for most video files should generate now.

However, if it's still not working then open file manager, go to your home folder if you're not already there (Home folder is usually the folder which contains Downloads, Documents, Photos etc folders).

Press Ctrl+H, enter into the folder named .cache. Then enter in the folder thumbnails.
 Delete everything in there. Restart your PC.

I followed HattinGokbori87's instructions above, that is:

sudo apt install ffmpegthumbnailer

Then delete thumbnail cache and restart

This fixed my issue, which was that only some mp4 files have thumbnails. However, it also removed existing mpeg thumbnails.

So, I remove ffmpegthumbnailer:

sudo apt remove ffmpegthumbnailer

Then delete thumbnail cache and restart

And it works, I guess all I really needed to do was delete the cache and restart.


How can I use smbclient to connect to Windows shares by hostname when a firewall is enabled? I can't connect to file shares on Windows computers using smbclient -L //hostname when the firewall is enabled.

This occurs whether I'm using ufw (which allows outgoing traffic and replies back in with the default configuration) or iptables (where I'm allowing outgoing traffic and replies back in with iptables -A INPUT -m state --state ESTABLISHED,RELATED -j ACCEPT).

However, smbclient -L //ip-address works whether the firewall is enabled or not.

I also tested this against a Samba server running on Ubuntu and again smbclient -L //hostname does not work when the firewall is enabled, but smbclient -L //ip-address works whether the firewall is enabled or not.

For reference, here are the iptables rules I used during testing:

*filter
:INPUT DROP [0:0]
:FORWARD ACCEPT [0:0]
:OUTPUT ACCEPT [0:0]
-A INPUT -m state --state RELATED,ESTABLISHED -j ACCEPT
-A INPUT -p icmp -j ACCEPT
-A INPUT -d 224.0.0.251/32 -p udp -m udp --dport 5353 -j ACCEPT
COMMIT

I was having a similar problem: I didn't had samba installed but I wanted to browse the network with smbclient and I couln't get no servers in my network, but with the firewall down I could see all the servers.

After searching I found out that ufw (my firewall) wasn't loading the nf_conntrack_netbios_ns module.

I've edited the file /etc/default/ufw, added the module in the line IPT_MODULES=, restarted the firewall with no ports open and voilá, I could browse the samba shares in my network :)

More people had this issue and a bug was opened in ufw about it: https://bugs.launchpad.net/ufw/+bug/360975

Hope this helps.

Turn off the firewall; you have blocked the SMB packets from the other machine trying to tell you its name.


No sound device is detected in Ubuntu 16.04 until I kill pulseaudio No sound device is detected by my Ubuntu system unless I run

killall pulseaudio; rm -r ~/.config/pulse/* ; rm -r ~/.pulse
pulseaudio -k

Then the sound device is detected. After shutdown or restart the problem returns.

How can I fix this?

killall pulseaudio and pulseaudio -k (or pulseaudio --kill) have same function. i don't see why final command should be needed

When Pulseaudio starts it checks home folder configuration for user settings. If there are none found, a fresh default set of files is created.
Pulseaudio used to use ~/.pulse, recent versions switched to ~/.config/pulse.
Check hidden folders in home with file manager and you should only find one of those folders (probably the second one)

If anything to get your sound working isn't saved to configuration or deleted, default configuration is re-created with same error after restart

Open Pulseaudio Volume Control (pavucontrol)don't rely on volume
control in panel, pavucontrol shows all needed settings
Check in Playback tab to see if audio playback showing and not muted
Go to Configuration tab, try setting all devices to OFF first
Change only one device to "analog stereo playback"
(digital is ok if can't use analog, stereo and playback only to keep it simple temporarily for troubleshooting)

If sound starts working, reboot PC to check if audio working and configuration saved.


Uninstalling Ubuntu 12.04.2 or expanding its partition I currently have Ubuntu dual-booted on my windows 7 laptop. I installed Ubuntu 12.04.2 via the windows installer and I only allocated 18GB for its partition. I still want to use Ubuntu but I want it on a larger partition so I would like to either delete the partition it's currently using and reinstall Ubuntu with a larger partition (around 100GB or so). OR if there's a way I can actually expand the partition it's on that would be great since I wouldn't have to start all over again.

There are two different techniques for resizing the Ubuntu partition in Wubi:

Resize and Duplicate Wubi Disk - This is not strictly a resize, but rather a duplication to a new virtual disk. This has the benefit in that it doesn't modify your current root.disk, and also leaves a backup. On the downside, if you want to go from a 7GB Wubi install to a 10GB Wubi install, you need a full 10GB of free space, as well as enough free space for Windows to operate (so may not be ideal if you are low on space). This technique must be run from within the booted Wubi install.1
In-place Resize of Wubi virtual disk This method is a true resize of the virtual disk (root.disk), and must be performed from an Ubuntu live CD. This is very fast, and can also make better use of the available space on the host partition than the alternate method, which duplicates the virtual disk.2

The step-by-step illustrated instructions for resizing the Ubuntu Wubi partition using each of these two techniques are available at the two Ubuntu Documentation wikis which I have referenced in the following two footnotes.

1Source: https://help.ubuntu.com/community/ResizeandDuplicateWubiDisk
2Source: https://help.ubuntu.com/community/ResizeWubiDisk

Yes you can do that. Read this properly.


How to change time servers? I'm behind a firewall, so I can't access pool.ntp.org or Ubuntu's own time servers directly, and I'd like to change the time servers for my system. When googling, I find references to missing manpages like ntpd.conf(5) and ntpd(8), to a missing GUI for setting the time servers, and to a  cron script (/etc/cron.daily/ntpdate) that doesn't seem to exist on my system. I've also found a reference to there being changes to ntpd.conf, so I'm hesitant to just create that file in /etc. How is one supposed to change the time servers in 11.10?

I don't know of the GUI you mention, but all the missing files sound like they're part of the ntp package.

sudo apt-get install ntp

should install them, then you'll have /etc/ntp.conf which you can edit. Once done, do:

service ntp restart

to reload your new config. The command

ntpq -pn

will show you the list of servers it's using (and various stats).

Most pools are set up to maintain time at the Stratum-12 to Stratum 16 level.  You will get best time when the system is set to use use the Master Clock in Boulder, Colorado, which will give either Stratum-1 or 2.

NTP Server – Stratum Levels Explained

Excerpt:

  Network Time Protocol is a hierarchical protocol and is divided into
  stratum which define the distance from the reference clock. A
  reference clock source that relays UTC (Coordinated Universal Time)
  time and has little or no delay is known as a stratum-0 device.
  Stratum-0 servers cannot be used on the network, instead, they are
  directly connected to computers which then operate as primary time
  servers.

  A primary server that receives a time signal from a stratum 0 device
  either through the GPS network or national time and frequency
  transmission is known as a stratum-1 device. On a network a stratum 1
  time server supplies the time to other devices on the network which
  are known as stratum-2 devices. These also can be used as a time
  source and equipment that connects to a stratum-2 device to receive it
  become stratum-3 and so on.

  NTP can handle up to 16 different stratum levels, although the lower
  down the hierarchy you go the less accurate the devices become.

Here is a Q&A that describes how to set it up:

How do I set Ubuntu to use the primary time server time.nist.gov?

The settings are in /etc/ntp.conf and there is only a few changes that need to be made.

First is to comment out the lines that specify the pools.

Then add this line instead:


How to configure and run hadoop cluster on LVM(Logical Volume Manager) Well i am new to the concepts of LVM(Local Volume Manager) and have create volumes in Ubuntu

Actually I am using windows and putty.Now i have also created LVM in that putty.

My question is whether it is possible to configure and run hadoop cluster in LVM(Logical Volume Manager) and if yes how to do it

check this one, it looks lvm can help avoid some maintenance hassle with trade-off some performance

http://nicktj.tumblr.com/post/10201994102/hadoop-on-lvm2


How to set network connection as Internet connection? In Kubuntu 13.04 it looking as that:

Wired connection used for Internet access on screenshot (notice globe icon). How to swtich "Internet" status from wired connection to another?

In kubuntu search for network settings in the start menu. You can edit your connections there.


No sound after Liquorix Kernel update I recently installed the Liquorix Kernel after hearing that it had the 200 line patch
in the kernel.

Once I installed it, everything worked great and I had HUGE performance improvements. At that point i was using the 2.6.36-14 version.

The kernel has now updated twice to version 2.6.36.-16 and now I have no sound coming from my system. Alsa mixer shows that nothing is muted.

How can i resolve this issue?

  Here is the script output file everyone requested.
  alsa-info.txt

I would argue you should ask in the Liquorix forums. Only a few people here have experience with the patches it uses.

Something to try before you do though, and it'll sound silly, but have you run alsamixer and checked that it isn't muted? Sounds silly, but you wouldn't be the first person to overlook it. We've all done it at least once ;)

Please see Ubuntu sound not working, thanks!

If you feel odd about posting a bug report in Launchpad, the procedure we normally follow to request necessary information is to ask that a developer's debugging shell script be executed.  This bash script is available at http://www.alsa-project.org/alsa-info.sh, and you would execute it using bash ~/Desktop/alsa-info.sh --no-upload in a Terminal provided you saved the shell script to your Desktop.  You can then pastebin /tmp/alsa-info.txt and/or link to it from a response here.


How can I convert audio from MP4 or FLV video files to mp3? Is there an application that allows me to extract the audio from a MP4 or FLV video file and store it as an MP3 file for use in a portable media player?

You can do the same in 12.04 by using several software.

Using WinFF

Install winff and libavcodec-extra first

 sudo apt-get install winff libavcodec-extra

Open Winff from dash

Then in Winff window, do these

Add file
Select what catagory to convert (select Audio)
Select Audio file format (mp3)
Type the output folder for converted file

Then click the Convert button. You can also click Options button to file tune the audio format and other options.

Using VLC

Install VLC and "libavcodec-extra" package first

sudo apt-get install vlc libavcodec-extra

Open VLC from dash by pressing Super key and typing "VLC" there

Then from top panel menu, Select Media → Convert/Save.

Then Add file to convert in the new window. Then click Convert button.

In the new window, Select the directory for output file, select the conversion profile (Audio mp3) and click Start button.

Using command line

First install the tools

sudo apt-get install ffmpeg libavcodec-extra libav-tools

If you are using
Use this simple command to extract the audio file

avconv -i /input-file-name-with-path output-filename.mp3

For example to convert the "How fast.ogg" video file into how-fast.mp3 use this command:

avconv -i /usr/share/example-content/Ubuntu_Free_Culture_Showcase/How\ fast.ogg how-fast.mp3

See the manual page for more options and information.

To Just extract audio

Check these answer

https://askubuntu.com/a/234197/61218
ffmpeg to extract audio

Transmageddon

You can also use Transmagedon Video Converter to convert video file to sound file.

Or in trminal:

sudo apt-get install transmageddon

To convert to MP4, you have to select in Choose Video Codec as No Video.

Can convert to .ogg by selecting the Presets as Ogg.


isight camera on quantal is erratic (macbook air 4,2) I have a macbook air 4,2 (13" - 2011).  The isight camera has become rather erratic in quantal.  If I just pull up something like skype and go into the settings, things look fine.  The problem occurs when I am in an actual network video chat.  The other party sees me skipping, lagging, still video for 30 seconds at a time, etc.  Audio works without flaw during those times.  Also, in OS X in the same applications (skype and google plus), on the same network, things appear just fine.

I don't have hard evidence, but IIRC, this problem did not occur in precise.  I know that my video chat has worked in the past, and I believe that the quantal upgrade was the dividing line.

Is there some problem with the driver for the isight camera?  Some kind of settings that I am missing?

Thanks!

I think that there is a problem with your camera driver. Just check for updates and install them.


Avoiding user interaction with tzdata when installing certbot in a docker container I want to install certbot in a docker environment with an Ubuntu 16.04 image:

For example:

docker run -it ubuntu:16.04 /bin/bash

When I'm inside the container, the most straightforward way to install certbot does not work as it requires user intervention:

apt-get update && \
apt-get install -y software-properties-common && \
add-apt-repository -y -u ppa:certbot/certbot && \
apt-get install -y certbot

The problem is tzdata, which stops with this interactive dialog:

Extracting templates from packages: 100%
Preconfiguring packages ...
Configuring tzdata
------------------

Please select the geographic area in which you live. Subsequent configuration
questions will narrow this down by presenting a list of cities, representing
the time zones in which they are located.

 1. Africa      4. Australia  7. Atlantic  10. Pacific  13. Etc
 2. America     5. Arctic     8. Europe    11. SystemV
 3. Antarctica  6. Asia       9. Indian    12. US
Geographic area:

Strangely enough, it works when I install tzdata before adding the ppa:

apt-get update && \
apt-get install -y tzdata && \
apt-get install -y software-properties-common && \
add-apt-repository -y -u ppa:certbot/certbot && \
apt-get install -y certbot

Questions:

Why makes it a difference whether I install tzdata before or after adding the ppa?
Is there a better approach for avoiding the interactive dialog when installing certbot?

To run dpkg (behind other tools like Apt) without interactive dialogue, you can set one environment variable as

DEBIAN_FRONTEND=noninteractive

For example, you can set it in Dockerfile using ARG:

ARG DEBIAN_FRONTEND=noninteractive

You should just set your timezone BEFORE installing of tzdata:
# Set timezone:
RUN ln -snf /usr/share/zoneinfo/$CONTAINER_TIMEZONE /etc/localtime && echo $CONTAINER_TIMEZONE > /etc/timezone

# Install dependencies:
RUN apt-get update && apt-get install -y tzdata


Rstudio in Ubuntu 19.04 i installed Rstudio in Ubuntu 19.04, the installation had no problems but the software does not open, any solution?

I didn't have any trouble installing RStudio on 19.04 just a few days ago. I downloaded the .deb from https://www.rstudio.com/products/rstudio/download/#download and installed it using the following commands.

sudo apt install gdebi-core
sudo gdebi rstudio-1.2.1335-amd64.deb

I elected to use this route based on instructions from https://linuxconfig.org/rstudio-on-ubuntu-18-04-bionic-beaver-linux and reading the notes on https://community.rstudio.com/t/rstudio-does-not-install-on-debian-10-or-ubuntu-19-04-depends-on-old-libssl/24883. Unfortunately, I can't find the link that lead me to the exact commands I used above.

I tried several ways of downloading rstudio on my new laptop which runs ubuntu 19 but no luck. I think Rstudio need to release a new version to run on ubuntu 19.
For the time being I'm using rstudio server, which you can download on ubunutu 19 - https://www.rstudio.com/products/rstudio/download-server/


"Failed to retrieve share list from server" error when browsing a share with Nautilus A bit before upgrading from 10.04 to 11.10, my Ubuntu desktop stopped allowing me to access  my Windows share directories.   I figured I'd upgrade to 11.10 and the problem would get fixed but no.

Whenever I click on a Windows network domain using Nautilus, the following message pops up.:

  Unable to mount location - Failed to retrieve share list from server

Where do I start troubleshooting this problem?  I am getting desperate now :(

I tried

sudo mount -t cifs //SomeMachine/SomeShare some_directory

and I get

mount error(115): Operation now in progress

Strangely enough, I got a popup stating:

Could not display network:/// Error: Dbus error org.freedesktop.DBus.Error.NoReply: Did not receive a reply ...

I found this advice from Gord Nickerson worked for me:
The error message is 'failed to retrieve share list from server' so it cannot browse a Windows 7 pc or a Ubuntu 10 pc or a mac desktop pc.

First of all, the Samba daemons smbd and nmbd must both be running for network browsing to work. They can be started with service, or with systemctl start for the newer systemd-based releases of Ubuntu.

smbtree lists all the shares from machines on the network.

So, off to /etc/samba and we sudo pico smb.conf.

The name resolve order uses hosts files first and broadcasts last and it is commented out! Maybe we change that to:

name resolve order = bcast host

and then restart the servers with service smbd restart and service nmbd restart

Works! This is an awful mistake to make in an upgrade. Upgrade should not break what is working, particularly something as important as networking. Good thing i recall the manual work you had to do to get samba working back in redhat 5 and 6.

I could only see my samba server by ip address.

Switching bcast to 1st in 'name resolve order = bcast lmhosts hosts wins'. And restarting samba. Btw this 1 line restarts samba.

sudo service samba restart

That didn't work either.

I went to look in /etc/samba/lmhosts to check it & no file! So I made lmhosts.

$ sudo nano /etc/samba/lmhosts
10.0.2.2   server_name

I still couldn't search the server name.
Then I thought wait, the computer name & samba name are different. So I edited hosts & hostname, changing them to the samba server's name. Careful hostname only has one word in it. The computer name no # comments.

/etc/hosts
/etc/hostname
$ sudo reboot

Now it just works. I can just click network in nautilus or caja and the server just pops up! On all clients, all are linux or android. Even on an old debian squeeze machine.


Switching between Intel and NVIDIA GPU My laptop has 2 GPUs, the Intel HD Graphics 4000, and NVIDIA GeForce FT 650M. How do I switch between GPUs? I tried installing drivers from NVIDIA, but that ruined my Ubuntu installation, and I had to reinstall. The Additional Drivers in Settings don't list any Nvidia drivers either.

Your graphics card is not yet officially supported by Nvidia, and requires the bumblebee drivers for Linux. You can find more information on this post: Switchable laptop graphics issues on Ubuntu 12.04?

This is way outdated!!

Google

For Switching

Log out and back in
    nvidia-prime (best)  Solid

On the Fly

Bumblebee (still problematic and difficult/tedious to install)

Trying to help Mark

p.s a new CLI (terminal) way to install your latest Drivers is

sudo ubuntu-drivers autoinstall


Compiz slow under proprietary nvidia driver I am using Ubuntu 10.10 and have problem with proprietary nvidia driver for my GeForce GTS 250. I have issue with poor Compiz performance. And there is also open-source "noueau" driver.

Proprietary: I tried many versions but neither works fast on desktop. This means 30 FPS without heavy effects. Currently I am using version 270.18. Even normal desktop use feels bad (moving windows) In games (and 3D benchmark) it is really good! (Unigine Heaven works good!)
Open-source "nouveau": Very fast on desktop with heavy effects (blur, ...). I have 300 FPS and more, even in Expo mode. Games were good but not as good as prop. And driver causes xorg to crash even the latest (ppa:xorg-edgers/nouveau), so I switched back to proprietary.

I also have computer with Ubuntu 10.04, GeForce 8600GT and drivers around 185.x and Compiz works great there.

There is similar question Nvidia proprietary driver performance in 10.10

Which version of nvidia (prop) driver is fast in Compiz in Ubuntu 10.10? How do you install a specific version of nvidia driver? Is it the case that each newer driver works slower on compiz?

edit: I tested 8600GT and GTS250 on Ubuntu 10.04 under 197.x.x drivers. Performance in Compiz and games are great! So Ubuntu 10.10 with 260.x.x or newer driver is not good for Compiz?

I would try 260.19.36 or 260.19.29.

The 270 driver line is VERY beta right now.  I'd steer clear.  I currently use 290.19.36 in Ubuntu 10.04 -- sorry can't upgrade right now to 10.10 for comparison.

FWIW, I use this link.

Here's what I did and it seems to fix things. One of the options when installing the driver from the nvidia .run file (version 270.26) is whether to install 32bit compatibility libraries.  You need to select NO on this if you have a 64 bit system.  When I disabled the driver from the repositories and reinstalled this driver without adding 32 bit compatibility support, the performance problems disappeared.  (Note if you're doing it this way, you also need to blacklist the noveau kernel module.)


can not update 12.10 to 13.04 Trying to get to 14 version by updating 12.40 to 13.04 but get failed fetch error. Have tried upgrade through Software updater and get all the way through to the update prompt "you should update to 13.04" I click update get the 'release notes' window and select 'upgrade' and than i get the 'Fetching the upgrade failed. There may be a network problem.' have tried numerous things to no avail.

Upgrading to 13.04 or 13.10 is not required. You can directly upgrade to 14.04.

  do-release-upgrade

You might have to add SUDO depending on your privilege.


How to delete virtual interfaces This is the part of the result of ifconfig -a.

ovs-system: flags=4163<UP,BROADCAST,RUNNING,MULTICAST>  mtu 1500
    ether 72:8b:a7:2c:25:ef  txqueuelen 1000  (Ethernet)
    RX packets 0  bytes 0 (0.0 B)
    RX errors 0  dropped 0  overruns 0  frame 0
    TX packets 0  bytes 0 (0.0 B)
    TX errors 0  dropped 0 overruns 0  carrier 0  collisions 0

s1: flags=4098<BROADCAST,MULTICAST>  mtu 1500
    ether 06:5e:2c:fd:5d:4b  txqueuelen 1000  (Ethernet)
    RX packets 0  bytes 0 (0.0 B)
    RX errors 0  dropped 0  overruns 0  frame 0
    TX packets 0  bytes 0 (0.0 B)
    TX errors 0  dropped 0 overruns 0  carrier 0  collisions 0

These are virtual interfaces. I would like to delete them and I tried the below.

sudo ip link delete s1

But I got the below although I could delete other except the two by the command.

RTNETLINK answers: Operation not supported

Could you help me?

ip addr will show your virtual interfaces (highlighted pink):

sudo ip link delete enp5s0 will remove virtual interface (link) enp5s0
Note in my case that's my ethernet and I don't want to delete it, but I had a whole bunch of other ones that were messing with my LAN games and getting rid of them solved a huge headache.

Have you tried with

ip link set s1 down

or withifconfig

Also, you might want to check this out: remove virtual interfaces


Help running World of Warcraft in Ubuntu 13.10 I'e been trying to play world of Warcraft on Ubuntu. I even tried on Mint. Tried Playonlinux, trial of crossover and just Wine 1.6.2 and Wine 1.7 can anyone give me some assistance. I'm new to linux

64 BIT Ubuntu 13.10

If you check on WineHQ and the WoW forums the 64 bit version is not working. You currently need to run 32-bit.


Wifi is disabled by Hardware Switch - Compaq 610 After installing Ubuntu 14.04 the wireless switch in the laptop is not getting switched on. It was working fine with windows8 earlier.

Here are some additional info

rfkill list all

0: phy0: Wireless LAN
    Soft blocked: no
    Hard blocked: yes

 lspci -nn | grep -i network

10:00.0 Network controller [0280]: Intel Corporation PRO/Wireless 3945ABG [Golan] Network Connection [8086:4222] (rev 02)

sudo rfkill unblock all (or wifi) is not working, I tried many times using it.

sudo rmmod -f ath9k
sudo rfkill unblock all
sudo modprobe ath9k

Then suspend and wake up your laptop. Your wifi should work.

That worked for me, but just until I shut down my laptop, then I need to do the same thing again when I turn it on.

I found the above commands in some other question.


can not install skype on ubuntu 15.10 o@lifebook:~$ sudo apt-get install skype
[sudo] password for o:
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:
 skype : Depends: skype-bin
E: Unable to correct problems, you have held broken packages.

i also tried apt-get install skype-bin skype
but it is not working

 sudo apt-get install skype-bin skype
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:
 skype-bin:i386 : Depends: libqtwebkit4:i386 (>= 2.2~2011week36) but it is not going to be installed
                  Depends: libgl1-mesa-glx:i386 but it is not going to be installed
E: Unable to correct problems, you have held broken packages.

You can download the for your Ubuntu http://www.skype.com/en/download-skype/skype-for-linux/

Open Terminal,

Execute:

 sudo apt-get purge skype skype-bin

Or

First:

sudo apt-get -f install

Then

sudo apt-get install skype

Skype for linux has not been updated since 12.04; It is most likely that the issue is, if you're using a ppa the dependencies needed are for 12.4 and apt-get is not retrieving the dependencies from the ppa, if you have installed g-debi it is better for you to go to www.skype.com and just go to downloads and choose the deb they have for 12.4 (multiarch) that way you get all the dependencies from the deb, that's how I installed it on my end.


Rabbitvcs Nautilus not working on ubuntu 13.04 I just installed Rabbitvcs on ubuntu 13.04 as per the official instructions.
When i tried to install apt-get install rabbitvcs-nautilus3, i got the following error message :

Reading package lists... Done
Building dependency tree
Reading state information... Done
Package rabbitvcs-nautilus3 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
However the following packages replace it:
rabbitvcs-nautilus

E: Package 'rabbitvcs-nautilus3' has no installation candidate

So i installed it with apt-get install rabbitvcs-nautilus, and now rabbitvcs options are not showing when i right click on a folder. Any help and suggestions will be highly appreciable. Thanks.

I added the below symlinks

sudo ln -sf /usr/lib/i386-linux-gnu/libpython2.7.so.1 /usr/lib/libpython2.7.so.1

sudo ln -sf /usr/lib/libpython2.7.so.1 /usr/lib/libpython2.7.so.1.0

and replaced the /usr/share/nautilus-python/extensions/RabbitVCS.py with RabbitVCS.py

Now its working fine for me. :)

The problem was related to the permissions for me also. When (on my Ubuntu 12.04 32b) I added  a new user, the rabbitvcs stopped to work on the first user. I solved the problem deleting the .config/rabbitcsv directory and restarting the nautilus.


"Lvmetad is not active yet, using direct activation during sysinit" on boot? Some time ago I installed Ubuntu 16.04 on my PC. Everything went well and no problems so far. When the first kernel update came out I could not start it and got the following error:

Lvmetad is not active yet, using direct activation during sysinit
Volume group "ubuntu-vg" not found
Cannot process volume group ubuntu-vg

When I pick the old kernel from the GRUB menu it was ok and no problems there. After that another kernel update came out and also that one did not work out. Basically after clicking the newer kernel version I got the error and was repeated on the screen over and over again (with no end, not tested at least).

I tried the following without any luck:

Error Run LVM LVMETAD socket connect failed: no such file or directory  (both answers)
lvmetad is not active yet; using direct activation during sysinit (tried the only answer to that one)

Neither worked. I have my disk encrypted as it was an option during the install and I thought why not? I think something is going on with that although it is more like a gut feeling than hard evidence. I searched if it is possible to deactivate the encryption and was a pretty tedious work, so I kind of stopped looking for that, but if that seems to be the solution I can still try it.

So the installed kernel version was 4.4.0-21-generic (as displayed in GRUB). Works fine no problems. After that the installed kernels were4.4.0-22-generic, 4.4.0-24-generic and 4.4.0-28-generic (as seen in GRUB). Which all three don't work and give the exact same previous error.

Why am I getting the error and how do I solve it?

I had the same error messages after I did a release-upgrade from Ubuntu 14.04 LTS to 16.04 LTS in a chroot (chroot as described in this German article) from a live system.

The error occurred before the password prompt. As the LVM volume group is usually within the encrypted volume, it must be a dm_crypt/LUKS configuration issue.

I found a solution here and will explain it below.

In my case, the name of the mapper of the encrypted volume was different from the name given in /etc/crypttab.

I picked the name of the luks mapper from the output of ls -l /dev/mapper, after opening the encrypted device with the the graphical file manager. In my case, the output was:

control
luks-87fc4c8e-017b-8482-cd09-7332fe351628
vgubuntu-root
vgubuntu-swap

Then, as root, I changed my /etc/crypttab (please note the beginning of the line) from:

sda5_crypt UUID=87fc4c8e-017b-8482-cd09-7332fe351628 none luks,discard

to:

luks-87fc4c8e-017b-8482-cd09-7332fe351628 UUID=87fc4c8e-017b-8482-cd09-7332fe351628 none luks,discard

Finally I updated my initramfs:

update-initramfs -u -k all

It was a bit confusing that these two names were different. One would assume that when the mapper is created, its name is taken from the crypttab. Anyway, it worked.

I did the whole stuff in a chroot, running a live system. It might also work from the busybox shell in which you drop after booting your system, but I haven't tried.

New Answer:
I realised that just editing that file won't work at least for me, for some reason the changes had been reverted.

You can do this if you want: startup Ubuntu on your older kernel (via grub boot selection menu) and download Grub Customiser, Go to "General settings" tab and select the older kernel boot  "predefined:" under "default entry". Save it. This way you will always choose the older kernel by default.

Original Wrong answer:
Why not just use the older kernel? I also have the same problem as you and thanks to your finding on using the older kernel, I change /boot/grub/grub.cfg first menu entry's kernel from 4.4.0-28-generic to 4.4.0-21-generic and my computer finally able to boot completely.


To install Canon Lide 220 scanner I am using ubuntu 14.04 , While trying to install the scanner canon Lide220 using the command sudo apt-get install xsane the following message appears:

E: Could not get lock /var/lib/dpkg/lock - open (11: Resource temporarily unavailable)
E: Unable to lock the administration directory (/var/lib/dpkg/), is another process using it?

What can I do to succesfully install it?

This might be caused by the auto-update task in the background, you can just try again a couple minutes later to see if this issue still exist.

Or if you want, you can disable the auto-update by following these steps:

Open the Dash
Search for "Software & Updates"
Select the "Updates" tab.
Change "Automatically check for updates" from "Daily" to "Never".

After disabling the auto-update, it will stop the daily task to update the software list. See the reference link for more detail. And you won't be blocked by this (auto-update in the background issue) in the future.

Reference: http://www.omgubuntu.co.uk/2016/02/how-to-disable-automatic-update-ubuntu


can't play videos in totem - error says that we're missing plugins that should not be missing Relevant: During install I already clicked the box to allow restricted content. Recently I also installed ubuntu-restricted extras. These videos used to work on previous install with no problem. Formats are mp4, webm, and avi.

The error is "Totem could not startup. Some necessary plug-ins are missing. Make sure that the program is correctly installed".

VLC

This would allow you to watch videos and listen to music but doesn't fix a very serious problem with totem & gstreamer:

rm -r ~/.cache/gstreamer-1.0

This is overkill, actually intended to remove ~/.cache/gstreamer-1.0/registry.[cpu_arch].bin

But it's harmless. It just removes cache files that will be regenerated as soon as you use gstreamer again (in totem or whatever). The idea is that your cache may somehow be corrupt and pointing to the plugins in the wrong place. There are no theories as to how this can happen or why this fix works, but it works for some people.

Not for me :)

If edwin's solution doesn't work you should download VLC in Ubuntu Softwarecenter. This program allows almost every format (audio and video) to open without problems.


Starting Eclipse from the Unity launcher doesn't work correctly When I start Eclipse from the Unity launcher I get this message:

Could not find the folder 'tools' inside SDK '/home/engine/android-sdks/'

But when I type in the terminal

sudo eclipse

it works properly, and after running

sudo chown -R $USER:$USER ~

I got this:

/home/engine/.gvfs : Permission denied

after that I tried :

engine@Engine:~$ ls -al /home/engine/android-sdks/

and I got this :

total 36
drwxrwxr-x  5 engine engine  4096 Jul 31 22:17 .
drwx------ 57 engine engine 20480 Aug 11 10:26 ..
drwxrwxr-x  2 engine engine  4096 Jul 31 22:17 add-ons
drwxrwxr-x  2 engine engine  4096 Jul 31 22:17 platforms
drwxrwxr-x  2 engine engine  4096 Jul 31 22:17 temp

thanks  Eliah Kagan

Is there any reason for this?

There may be two things going on here:

Ownership: Files located in the user's home directory may be owned by root, when they should be owned by the user.
Location: Files may be located in root's home directory (/root) when they should be located in the user's home directory. (The OP figured this out, but accepted this answer,  so I've augmented it to include this for the benefit of others experiencing this problem.)

Fixing Ownership

sudo eclipse runs Eclipse as root, but it still uses your (that is, not root's) home directory to save its files. Since it runs as root, files it creates are owned by root, and users other than root cannot access them. The result is that if you've run sudo eclipse once, Eclipse can only be run via sudo eclipse afterwards, until the problem is fixed.

This is not actually a permissions problem, it is an ownership problem, and the solution is to retake ownership on the affected files and folders. It's usually safe to be the owner of all the files inside your home folder. So, with Eclipse not running, run this command:

sudo chown -R $USER:$USER ~

$USER will be expanded by the shell to your username, so you can run that command exactly as-is. Alternatively, if you want to replace $USER with your actual username (in this case, engine), that works too.

How that command works:

chown is the command for changing ownership on files and directories.
~ is shell shorthand for your home directory.
-R means it's not just changing ownership of your home directory, but that the operation is to apply recursively, to all files contained anywhere within your home directory.
The first $USER means you will be the owner of the files. The second $USER (after the :) means your user's group (the group created with your user account, to be the default group-owner of your files) will be the group owner.

For future reference:

If you must run a graphical application as root, you should use a graphical sudo frontend like gksu/gksudo or kdesudo. This sets the $HOME environment variable to /root--root's home directory. (It also makes a copy of ~/.Xauthority.)
However, it's best not to run complex applications like Eclipse or Firefox as root at all, for security reasons. Some graphical utilities must run as root to work, but Eclipse is not an administration tool, and you should never need to run it as root. If you do, something is wrong.

Fixing Location

As @Engine wrote:

  The problem wasn't the whole directory, but only the folder /tools in
  android-sdks. I copied it from the root folder and then I gave my
  user the ownerships rights with:

chown -R $USER:USER ~

That is to say that, when eclipse had been run as root, it had (at least at some point) used root's home directory (not the user's home directory), and the Android SDK had been stored inside root's home directory.

Either that, or the Android SDK could have been manually installed as root beforehand.

For the benefit of others with this problem:

The tools folder can be copied from inside /root with:

sudo cp -R /root/android-sdks/tools ~/android-sdks/

Or you can move the tools folder (rather than copying) with:

sudo mv /root/android-sdks/tools ~/android-sdks/

Then fix ownership as described above. Or, just for the relocated tools folder, with:

sudo chown -R $USER:$USER ~/android-sdks/tools

Yes, I know this issue.

Check/change permissions for the folder. (Use 755.)