There are many ways to install the icon themes – this is one

Search online for the KFaenza theme, e.g. using the search term: “KFaenza kde rpm”. A hit: http://rpmfind.net/linux/rpm2html/search.php?query=kfaenza-icon-theme

Download the most recent package: kfaenza-icon-theme-0.8.9-5.fc20.noarch.rpm

The RPM can be unpacked to an usable archive with the rpm2cpio command (must be installed first):

$ rpm2cpio kfaenza-icon-theme-0.8.9-5.fc20.noarch.rpm | cpio -idmv

This will unpack the KFaenza icon theme into the current directory (./usr/share/icons/KFaenza/...). The options for the cpio command can be viewed online: -i takes the archive from STDIN, -d creates the necessary directories, -m preserves modification times (not strictly necessary), and -v produces verbose output.

The unpacked KFaenza folder then has to be copied over into ~/.kde/share/icons/ to make it available:

Now the KFaenza theme can be picked from the KDE System Settings 〉 Application Appearance 〉 Icons. Apply the change, and the KFaenza is there!


Deluge: submitting a translation MO file

From Deluge translation wiki:

"To help translate Deluge please register at the Launchpad translation site"

You can upload a Polish translation file in the PO format if you are a member of the Ubuntu Polish Translators team. So if you aren't a member you may want to apply to join, or else you can ask a member to upload it for you.


This is pretty late but for the record:
The deb file you tried to use (4.4.1...) is the one Intel distributes with their compute stick.  You should be using the (4.3.5.5... version) distributed with the ubuntu releases with its firmware included the linux-firmware package.  The 4.15 kernel in Ubuntu 18.04 should allow networking to work, but it takes a 4.19 kernel for bluetooth to work.


Ubuntu Touch: How do I run an ubuntu touch app from the terminal?

A convenient way for developers to do app testing is by starting them
  through adb. To make that convenient we are providing a cli tool,
  called ubuntu-app-launch.

So create a remote connection with phablet-shell and start your applications using their desktop filename:

ubuntu-app-launch com.ubuntu.calculator_calculator_1.3.316
ubuntu-app-launch dialer-app

You'll find your application desktop files in the following folders:

/usr/share/applications for system apps and
~/.local/share/applications for user apps.

Source: https://wiki.ubuntu.com/Touch/Testing#Start_Applications_through_adb


Ubuntu 18.04 switch back to synaptics as input driver

If someone else is interessted in solving this questions:

install: xserver-xorg-input-synaptics and xserver-xorg-input-evdev

remove: xserver-xorg-input-libinput

and as far as I just figured out it works.


linux-headers-3.11.10-031110-generic in this 3.11.10-031110 means the version number.You don't need to include it while reinstalling linux-headers-generic.Follow the below steps to reinstall linux-headers-generic,

Open a terminal by clicking Ctrl+Alt+T and type.

sudo apt-get install --reinstall linux-headers-generic

If you are forcing the installation, do

sudo apt-get install --reinstall  --force-yes linux-headers-generic

  Note:- Do not force update packages, unless you know what you are doing.


The error message explains it pretty well all by itself:

Code 401 is HTTP Unautorized
Invalid credentials is a username or password that is incorrect.

Not an Ubuntu Déjà Dup issue, but a Google Authentication issue.

For further help, please contact Google.


Problem opening SFX archive file(.exe) using the archive manager

There are a few possibilities that I can think of, the obvious one being wine which should be able to deal with it as all that is needed to extract it is internal to the .exe itself. However both 7z and rar are able to create sfx archives and nowhere does it say they can open them. Another possibility is it's password protected.

To install wine in Ubuntu hardy 8.04 I would recommend installing from their ppa at launchpad to do this open software sources from the administration menu and add these two lines

deb http://ppa.launchpad.net/ubuntu-wine/ppa/ubuntu hardy main
deb-src http://ppa.launchpad.net/ubuntu-wine/ppa/ubuntu hardy main

then open a terminal and type sudo apt-get update then once this has completed sudo apt-get install wine


Problem installing nvidia driver with ubuntu-drivers command 20.04

Install the driver from Software & Update application.
After opening it go to Additional drivers tab and install the recommended driver (driver   : nvidia-driver-455 - third-party free recommended in your case)


Lubuntu 20.04 executing shell script in terminal from file manager

As one of possible solutions it could be:

Set "Launch executable files without prompt" in PCManFM-Qt to execute scripts without prompt
Add execution of script commands via terminal when needed in your scripts, so .sh script could be like this:

#!/bin/bash
qterminal -e "java -jar your.jar"

or
#!/bin/bash
qterminal -e "your_script.sh"


16.04: Networking UX Inconsistent with WIFI state

I've filed here: https://bugs.launchpad.net/ubuntu/+source/network-manager/+bug/1598902

I'll track it from here in launchpad.  If there are any work arounds please let me know.


wifi is not working, audio is not playing

Before you start up, you need Wired Internet connection.

For your Wi-Fi/Wireless:

For your wireless:

Connect your computer with Wired Internet Connection.
Open the 'System Settings' from your launcher bar.
Select 'Software & Updates' for the System Settings Window.
Now, select the 'Additional Drivers' tab.
Now, select the option 'Using Broadcom 802.11 Linux STA wireless driver source from bcmwl-kernel-source (proprietary)'.
Click on 'Apply Changes'. Now your wireless will start working.

And before installing any packages or drivers, please update or upgrade your system,

Open terminal (Ctrl+Alt+T)
Type the below command

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

And as for your Audio or Video, the easiest way is to install Vlc Media Player, to do so,

Open terminal (Ctrl+Alt+T)
Type the below command

sudo apt-get install vlc

I hope it'd work for you.


Ethernet 'cable unpluged' when waking up laptop from sleep

In terminal, type sudo lshw -C network, and look for a line that looks like this:

product: RTL8111/8168/8411 PCI Express Gigabit Ethernet Controller

Note the 8168.

If you have a similar controller, you might try installing this driver to see if it solves your problem.

sudo apt-get update
sudo apt-get install dkms r8168-dkms


No internet connection over cable (but wifi works)

Assuming you have dhclient installed (which should be installed by sudo apt-get install dhcp-client) you can use sudo dhclient eth0

To make that persistent across reboots, you would want to add the lines:

auto eth0
allow-hotplug eth0
iface eth0 inet dhcp

to your /etc/network/interfaces file.


What laptop pre-loaded with Ubuntu can I get with a pointing stick?

Haven't used it myself but Lenovo Toucan is one I found a long time ago. Looking at the price, you may be better off buying a thinkpad with free dos and installing Ubuntu yourself.


Add missing icon to a file-type (extension)?

This is probably a desktop-specific issue.
A KDE solution:
Right-click the ts file, Properties/General/Filetype options, then click the icon area and add an icon, namely some video icon.

Restart Dolphin and you will see that icon for all files with that extension.


I solved this problem on my Avell notebook uninstaling the actual kernel and instaling a 3.2.x-xx kernel. There are other kernel versions that also do not have this bug.

You can do it using a tool like Synaptic .

Check the actual version of your kernel with the command

uname -r

in a terminal.
Then mark the kernel files for complete removal in Synaptic, and mark the desired kernel to install.
After removing the trouble kernel and installing the good kernel, open a terminal and run:

sudo update-grub

Reboot.

This worked for me.

This problem is because some kernel releases does not handle the thermal control of the CPU appropriately.


ubuntu 16.04 fresh installation without integrated graphics, problem with nvidia geforce gtx

As https://askubuntu.com/users/692175/michaelbay said, the right answer is to use    nomodeset

hold down the shift key when booting starts.
You will then get a console mode menu.
Scroll to "Install Ubuntu"
Press 'e' to edit that line.
Move to the end of the line. Delete the text that says "quiet splash" and then enter "nomodeset" instead, ensuring there is a space between the new option and any other option.
Press F10 to boot

After Ubuntu installation Ubuntu will reboot. Press "Esc" key to enter command propt. Choose"Ubuntu". Press "e" to edit commands and once again delete the text that says "quiet splash" and then enter "nomodeset" instead and boot by pressing F10. In Ubuntu go to the "Software and Updates" and download NVIDIA proprietary drivers.


Installing .exe using wine but program is nowhere to be found

You may be overestimating the usefulness of Wine.
Wine is a compatibility layer. It does not work like Windows and is not a replacement for Windows.
Not all Windows applications will run on Wine, and for the ones that do, they often require various degrees of application-specific manual configuration.


can't connect samsung printer to lubuntu

To install the driver, go to http://www.samsung.com/us/support/owners/product/SCX-4623F/XAA scroll down and click the download on the right. Assuming you have downloaded the file to your downloads folder, run the following commands to install the driver:

tar xvf ~/Downloads/uld_v1.00.06.tar.gz
cd uld
sudo ./install.sh

Then restart cups, avahi, and network-manager:

sudo service avahi-daemon restart
sudo service cups restart
sudo service cups-browsed restart
sudo service network-manager restart

If you get an error on cups-browsed don't worry about it.

Finally, unplug and plug back in the printer and if all else fails, reboot to make sure the changes take effect.


Accents and tilde on Firefox are not above letters

Someone having a similar problem could solve it by removing a symlink to a system config directory:

He had a link ~/.xinput.d pointing to /etc/X11/xinit/xinput.d/scim,
and fixed the problem by removing it, so try removing it if you have that link. (maybe renaming first)

See Thread: [SOLVED] dead keys not working


Should 'apt-get upgrade' be run before 'apt-get dist-upgrade'

No, it's not necessary and from my experience, I can confirm that.

Everything else is superstition, just as the claim that I must re-start my system when a configuration has been changed.
Perhaps you then feel better, but it's not necessary. But that's another story. ;)

From man apt-get

  dist-upgrade in addition to performing the function of upgrade,
  also intelligently handles changing dependencies with new versions of
  packages


Operate Genius ColorPage-Vivied 1200xe on Ubuntu14.04 LTS

Installing a Genius ColorPage-Vivid 1200XE scanner in Ubuntu 14.04LTS

Step 1:
Locate a small firmware file named 'CCD569.fw' with size 8KB in any location on the PC. This binary file is required by the XSane scanning package to correctly communicate with the scanner. The firmware file can be here:

Step 2:
Open the terminal and type the command ''sudo nautilus'' command. This will open a file browser with root permissions.

Go to this path:''/usr/share/sane/'' and create a folder with name: ''gt68xx''

Copy the file ''CCD569.fw'' from where you have located it, into the folder ''/usr/share/sane/gt68xx''

Step 3:
Close the file browser (with elevated permissions) and the terminal.
Delete any 'temp' folder that you may have created.

You are now ready to start scanning with 'Xsane' and with 'Simple Scan' applications.

Note:
Xsane is much better scanning package than Simple Scan becouse it give us a complete control of all possible parameters, which are automatically saved on exit.


NFS Permissions get Reset as Non-Root User

That's a feature of NFS, called "Root squashing". See http://www.troubleshooters.com/linux/nfs.htm the section "User ID Mapping Options".

The "Root squashing" feature was added to prevent root on other systems from accessing files as root on the NFS server. The NFS protocol doesn't have any authentication, and would blindly accept an NFS packet saying "I am [UID=root,GID=root] write this data to /etc/passwd", without "Root squashing". With "Root squashing", the packet becomes "I am [UID=nobody, GID=nobody] write this data to /etc/passwd", a much safer command (that will fail).


How to enable manually Unity keyboard layout switching

To configure keyboard layout manually  Just press Ctrl+Alt+T on your keyboard to open Terminal. When it opens, run the command below.

setxkbmap -option grp:switch,grp:alt_shift_toggle,grp_led:scroll us,cz


Ubuntu UFW 3x specific IP addresses only to access a specific port

First lets deny all access:

sudo ufw default deny incoming
sudo ufw default allow outgoing

Now limit out inbound traffic to ip via these ports:

sudo ufw allow from 1111.1111.1111.1111 to any port 33
sudo ufw allow from 2222.2222.2222.2222 to any port 33
sudo ufw allow from 3333.3333.3333.3333 to any port 33

If adding a specific protocol to the rules above:

sudo ufw allow from 1111.1111.1111.1111 proto udp to any port 33

Now check your rules:

sudo ufw status

To delete these rules at any time:

sudo ufw delete allow from 1111.1111.1111.1111 to any port 33

Source:

https://help.ubuntu.com/community/UFW

https://www.digitalocean.com/community/tutorials/how-to-set-up-a-firewall-with-ufw-on-ubuntu-14-04


Probably your Windows is in EFI mode, and Ubuntu in Legacy mode. You need to convert Ubuntu into EFI mode. See https://help.ubuntu.com/community/UEFI#Converting_Ubuntu_into_EFI_mode


ba.archive.ubuntu.com is down right now for some reason and hence apt-get update is unable to fetch the package list from there. Try switching to the main repository for now by either changing your mirror in Software and Updates or running the following command:

sudo sed -i s/ba.archive/archive/g /etc/apt/sources.list && sudo apt-get update

This replaces all instances of ba.archive in /etc/apt/sources.list so that apt uses the main archive (http://archive.ubuntu.com) to update from


Ubuntu squid with windows 2012 active directory users authentication

I did the same thing recently and I found the howto below really helpful.  It is however in Russian.  Since I don't speak Russian I used Google translate to convert the page to english.  The translation was fine and made the howto perfectly usable.  Maybe it can help you as well.

https://blog.it-kb.ru/2014/06/16/forward-proxy-squid-3-3-on-ubuntu-server-14-04-lts-part-2-prepare-separate-vhd-disk-partition-for-squid-cache-in-fdisk/

Cheers.


I've fixed the issue, don't really know how but i wanted to share:
I did a 'dpkg-reconfigure cloud-init' and now it works!

Thanks for your help all!


Mouse not working and many UI errors after 12.04 upgrade

Looks like your upgrade has gone wrong. Boot into recovery mode from your Grub menu, enter a root shell and run:

dpkg --configure -a
apt-get install -f


So, I kind of solved it by limiting the 2.4 Ghz channel with 20 Mhz on my router.

I also looked at network manager logs and compared them with dmesg as posted above and it seemed that everything was working but the signal was too weak, it works with limited channel width though it's about 10-20 times slower then on my other computer nearby adn I still wasn't able to connect to my phone.

And then I got that idea about signal being weak and noticed I have an external antenna that was not connected (it's a new computer).  With antenna connected it works perfectly, so It's not that tricky, it's just an issue with me overthinking a simple problem :)


When running `ll`, what does `root root` mean in an entry?

The 1st one is the user. The 2nd one is the group.

Linux knows several layers that you can set permissions to that would apply to the user. One of these layers is a group: you can create a group, set permissions for that group and then add users to that group. Changing the group applies it to all the users to that group.

If you have 100 users it would be rather time consuming to set permissions to all of those users seperatly if large amounts of those users will have the same set of permissions.

Have a look at AddUsersHowto on how to set this (bottom part includes command line options).

When you type groups in command line you will see the groups you belong to yourself. I myself belong to the groups rinzwind adm cdrom sudo dip plugdev lpadmin sambashare jupiter. For most of these groups you can check this page for some information about them but there purpose should be fairly obvious. jupiter is software that is for CPU management that I added after install; the rest should be default. dip is the odd one out in naming but that is for modem access. lpadmin for printers etc.


"No such file or directory" error message when running program

Thanks for the advice.

strace was interesting but not helpful to me this time.

ldd provided the clue: the file was not the same file after all, and this one was not executable under Linux. How it got installed, I don't know, but I'm not going to worry about that right now.  The error message, in this instance, simply means the file you are trying to run is not an executable (even though the file permissions say it is ...) - not a helpful message in this case, in my view!

Anyway, I replace the file with the equivalent from another machine and everything starts working.


The Startup Disk Creator tool is known to having some issues.
Use the Disks tool to create the Ubuntu installation media properly.

Open Disks, select Restore Disk Image from the menu on the top right of the application.
Choose the Ubuntu installation ISO file and the USB drive to write it to - then start restoring.


Enable Mattermost to be accessible from outside of the LAN

I simply enable port in iptables:

sudo iptables -I INPUT -p tcp -m tcp --dport 8066 -j ACCEPT


Ok This was a tricky one. It turns out there was no issue with the Replay Gain plugin but rather the Magnatune plugin. What I needed to do was disable it being loaded when opening Rhythmbox by doing this:

Alt + F2 and entering dconf-editor
Navigating to org > gnome > rhythmbox > plugins
Removed the magnatune entry from active-plugins
(Don't know if this helped) navigated further within the Rhythmbox plugins menu to magnatune > source and deselected show-browser


unable to find mysql-server package in ubuntu

Apart from depeneding on the Repository source. You can try following

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

Then search for the package using apt-cache.

sudo apt-cache search mysql | grep mysql | more

You will have couple of results and you can choose appropriate one for you. You might need the client or Server (depends on your needs). The result is as below:

    mysql-server - MySQL database server (metapackage depending on the latest version)
    mysql-server-5.5 - MySQL database server binaries and system database setup
    mysql-client - MySQL database client (metapackage depending on the latest version)
mysql-server - MySQL database server (metapackage depending on the latest version)
 mysql-client-5.5 - MySQL database client binaries

Once you figure out what version of sql is available. You can install it with apt-get.

sudo apt-get install mysql-server mysql-client

Hope this helps. Alos this is the official Mysql Community page to download MySQL Server for different platforms.


ERROR: Can't change MAC: interface up or not permission: Invalid argument

you should have to do that with sudo , unless you are a root user you cant do that.

sudo macchanger --mac 00:11:22:33:44:55 wlan0

will help you.


How to improve usability of Ubuntu by providing feedback?

Ubuntu Wiki.

https://help.ubuntu.com/community/CommunityHelpWiki

Fridge.

http://fridge.ubuntu.com/

Also you can post your ideas in any blog, site, etc. that allows it.


Using existing home directories in different partition to Ubuntu

As steeldriver said, the answer lay in the post he/she referred to. All I had to do was edit the fstab file, as per the instructions. Home now points to my sda10 partition.


Am I correct to assume that you want to use nginx just as a proxy to sickbeard server?
If so then there are a couple of things to correct here:

web_root in config.ini defines a path on the webserver that sickbeard expects to receive in HTTP query (look here: https://code.google.com/p/sickbeard/wiki/AdvancedSettings). Therefore given that you've set up nginx to re-route queries on /sickbeard, the web_root should be 'sickbeard'.
The 'proxy_pass' in nginx config is also incorrect. It should contain the URL at which you have your sickbeard running directly (which I think in your case is the URL without opt/sickbeard). I presume if you try to open your 'proxy_path' URL in a browser, you will get a HTTP 404.

There is a nice tutorial at nginx website (http://nginx.org/en/docs/beginners_guide.html#proxy) so you might want to check that too.


How to tell Ubuntu to remember I have a UK keyboard?

I consider this a bug, but by adding a US keyboard below the UK one in the Layouts tab of the Keyboard Layout settings window, I can now say "problem solved" #ftw.

Although now I have an annoying "en1" item in the top right menu bar of Gnome Shell.


To easily find the corresponding development package for Ubuntu when configure fails with such error, you can use http://packages.ubuntu.com/search?keywords=libpcap

Usually the package that you're looking for contains the following description:

 "development library for <lib name>"

Then open a terminal to install the package with:

sudo apt-get install libpcap-dev


How can I convert the complete file to a specific format?

I'd do this in Perl:

$ perl -lne 'printf "\"http://$_\","' file | sed 's/,$/\n/'
"http://google.com","http://trafficinviter.com","http://example.com"

The -l removes newline characters from the end of each line (also adds a \n to each print call which is why I'm using printf instead). The -ne means "run the script given by -e on each line of the input file. The script itself will print "http://, the current line ($_), and ",. Then, the sed removes the final trailing comma.

Alternatively, you could do:

$ sed 's#^#"http://#;s#$#"#' file | tr "\n" "," | sed 's/,$/\n/'
"http://google.com","http://trafficinviter.com","http://example.com"

Here, the 1st sed will replace the beginning of each line (^) with "http://, and the end of each line ($) with a "; the tr replaces each newline character with a comma and the 2nd sed removes the last trailing comma.


I can't comment as I have too little karma, so I will ask in the answer.

Did you install Savanna UI with the following guide?
http://savanna.readthedocs.org/en/0.3/horizon/installation.guide.html

If yes, you should see a new Savanna tab to appear in your Horizon (OpenStack Dashboard).


How to provide straight access to usb wifi adapter in virtualbox(guest OS is win7 x64) on Ubuntu 16.04 LTS host

There is a method known as "PCI Passthrough" which will allow your VM to access directly some physical devices.  This extension to VirtualBox is not installed by default, and it is considered by the VirtualBox people to by experimental.

As this is a development feature, and not a development feature of Ubuntu or Linux, support on this website will be very limited.  I would suggest that you read through The Virtual Box Manual for instructions about pre-conditions and installation instructions for PCI passthrough, and sign up to the Virtual Box Community for support on this subject.


Avoid Hidden files while calculating disk usage?

The ambiguity you are getting is because when you right click on a folder and check its properties, it shows you much size the file/folder has occupied on disk, i.e. its disk usage and not because of hidden files.

However, du shows the file size, i.e, the number of bytes the file/folder has. This is different from the size occupied by the file/folder because of spare blocks, internal fragmentation and other parameter which are filesystem-dependent.

To remove this ambiguity, use du as follows:

du --apparent-size -hs

From du's manual page:

  --apparent-size
          print apparent sizes, rather than disk usage;
          although the apparent size is usually smaller,
          it may be larger due to holes in (`sparse') files,
          internal fragmentation, indirect blocks, and the like


How to set up nVidia Optimus/Bumblebee in 14.04

To install bumblebee in Ubuntu 14.04, run these commands in terminal

sudo apt-get install bumblebee bumblebee-nvidia primus nvidia-331

Now you have to install Bumblebee GUI to manage apps to be opened using nVidia. Here is the instructions:

Install Python App Indicator:

sudo apt-get install python-appindicator

Install Git:

sudo apt-get install git

Make a directory for git:

mkdir git && cd git

Check out the repository:

git clone https://github.com/Bumblebee-Project/bumblebee-ui.git
cd bumblebee-ui
sudo ./INSTALL

Go to Startup Applications and add bumblebee-indicator

Now reboot.


The i-rocks IK6 Crystal USB Keyboard has, what they call, a Windows and application keys disabled function.

The function is turned on and off using Fn + F11.

There is even a small Windows icon on the F11 key.


Ubuntu Mobile Installation Stuck at "The device needs to be unlocked for the following to work" Nexus 7

I had the same issue, started in android. Then shut down, restarted the bootloader and the script started working again. Not sure what caused it to work then and not the first time it went to the bootloader.


First, be warned that it might not be legal in some countries, because of software patents.

With that being said, here is how to install it, click here:

ubuntu-restricted-extras

Or
you can open up a terminal and run the following command:

sudo apt-get install ubuntu-restricted-extras

Select yes, and you'll have ubuntu-restricted-extras installed and working


How do I boot Windows 10 after installing Ubuntu 16.04.3?

From Ubuntu open the terminal (e.g. with CTRL+ALT+T) and type or copy and paste (you may need to enter one command at a time since it prompts for a password):

sudo add-apt-repository ppa:yannubuntu/boot-repair
sudo apt-get update
sudo apt-get install -y boot-repair
sudo boot-repair

Open the Boot Repair application, try the recommended repair first, then restart. I think doing this fixed the issue for me. If Windows still doesn't show in the Grub menu, boot into Ubuntu and open Boot Repair again, click advanced options, and in the second tab from the left (Grub location), select the dropdown menu for the option: OS to boot by default and select Windows (via the sda5 menu). (You can always change it back again later. I thought that changing this default boot option to Windows fixed the issue, however after checking this option again, it is set to boot by Ubuntu by default, so I may have not applied the changes.)

Restart the computer. In the grub menu, to boot by Windows, quickly tap down to go to Windows and press enter, making sure you cancel the 5 s timeout by tapping down, before the 5 s timeout automatically selects the option highlighted. Ubuntu is still at the top of the list, but there are three other options. The original options were only Ubuntu generic and Ubuntu advanced (with sub-options in advanced). Now, the new options are two memory tests, and Windows at the bottom of the menu.

Make sure you update the Linux system time as described here, otherwise the system time on Windows will be the UTC time (which is the hardware time set by Linux), rather than the local time. I found that the simplest solution was to update the Linux system time.

  Open a terminal and execute the following command:

timedatectl set-local-rtc 1

Alternatively, update the Windows system time to the UTC time, as also described in the linked post.


Wireless network Connecting and disconnecting intermittently

Try this in the terminal:

echo "options iwlwifi 11n_disable=1" | sudo tee /etc/modprobe.d/iwlwifi.conf
sudo modprobe -rfv iwlwifi
sudo modprobe -v iwlwifi

The report you provided indicated that you are using Ubuntu 14.04.2 with kernel 3.13 which was the kernel from Ubuntu 14.04.1.

With 14.04.2 the kernel is version 3.16 which solved many WiFi issues including mine.

I am using the Atheros R9285 chip and I had the same issues of connection loses but not any more after upgrading to 14.04.2.

Please check for any available updates before trying the method above and check if the issue will be solved that way.


How do I change or delete the album cover image shown in rhythmbox?

All rhythmbox covers are held in a database format called trivial database.

This database is found in the folder ~/.cache/rhythmbox/album-art.

In theory you can write some code or use tools such as [tdbdump](http://manpages.ubuntu.com/manpages/precise/man8/tdbdump.8.html) to interrogate the database, but in practise it is easier just to delete the folder and its contents.

Don't worry - it recreates itself when rhythmbox starts and you next add album-art.

If you are using Rhythmbox v2.97 and later you can instead drag-and-drop pictures from Nautilus onto the album-art plugin and it will update your album-art - make sure you are playing your music track first when doing this.

If you are using Rhythmbox v2.96 you cannot use this drag-and-drop technique.  However, if you use my rhythmbox plugin coverart-browser, you can similarly drag-and-drop pictures onto your albums.


This fix for this issue got released on 2013-11-01 (https://bugs.launchpad.net/ubuntu/+source/gtk+3.0/+bug/1199877/comments/73). Just keep an eye out for gtk+3.0 in the Softare Updates and apply it once it arrives on your machine. I can confirm that this fix solves it for me.


Attempted ubuntu 14.04 install, windows 8 vanished

Your installation may hae simply diabled your ability to bot to Windows. Insert any windows recovery disk or Windows installation disk you have lying around and let it repair it's boot. After you regain access to your windows, do the Ubuntu installation again overwriting your existing installation (It may be corrupt).


Go to your router's settings page and try changing the Wi-Fi channel. Some devices cannot connect to Wi-Fi when the router is automatically set to a different channel.

Also, can you connect to Wi-Fi when booting from a Live CD?


Better to copy it:

sudo cp /usr/lib/xorg/modules/drivers/r128_drv.so /usr/lib/i386-linux-gnu/dri/r128_dri.so

Check also if its kernel module is loaded:

lsmod | grep r128

If it's not loaded, Add r128 to /etc/modules and the running in place (blacklist ...) to /etc/modprobe.d/blacklist.conf
Then run:

sudo update-initramfs -u


Ubuntu 14.04 does not recognize my battery

I have the same problem for ASUS Zenbook and resolved with:

edit grub:

sudo vi /etc/default/grub

change like below:

GRUB_CMDLINE_LINUX_DEFAULT="quiet splash acpi_osi="
GRUB_CMDLINE_LINUX="acpi=force pcie_aspm=force drm.vblankoffdelay=1 i915.semaphores=1"

update grub:

sudo update-grub

and restart


Cloned live-only drive

"Ubuntu 16.04 partition 1 1.6 GB iso9660" indicates that it is a cloned Ubuntu system (cloned from the iso file to the USB pendrive). This is correct, but it is a live-only drive with a read-only iso 9660 file system.

As long as you boot from this drive, you cannot change it. But if you boot from another drive you can create a new partition table and file system (alias 'format' it alias 'restore it to a standard storage device').

In Ubuntu

If you have an installed Ubuntu 16.04 LTS system, you can use mkusb-dus to restore it to a standard storage device. See the following links,

help.ubuntu.com/community/mkusb/

sudo add-apt-repository universe  # only for live standard Ubuntu

sudo add-apt-repository ppa:mkusb/ppa  # and press Enter
sudo apt-get update
sudo apt-get install mkusb mkusb-nox usb-pack-efi

help.ubuntu.com/community/mkusb/wipe

In Windows

If you have Windows, you can use Windows tools to format the drive (for example to create a partition with a FAT32 file system).

If still problems

If there are problems to restore the drive to a standard storage device, the following link might help you [solve the problem or at least understand what is the problem],

Can't format my usb drive. I have already tried with mkdosfs and gparted


Problem with google chrome icon in launcher (left bar)

Removing Google Chrome from the launcher and adding it back may solve this problem, depending on what is causing the problem. Try this:

Unlock all Google Chrome from the launcher. (Right-click them to show this option.)
Add the application to the launcher again by dragging Google Chrome from the dash to the launcher.


Can I retrieve data from a hard drive running Ubuntu from a USB drive?

Yes, it should! Ubuntu autu-detects all present and mountable volumes at boot. Your hard drvie should show up in the file manager's sidebar. You would then only need to click on it to browse its contents.

Note that if the partition was not cleanly unmounted before, you may need to repair it using a tool like Gparted Partition Editor.


When was the machine turned on:

uptime

Example from my notebook:

20:06:33 up  1:50,  2 users,  load average: 0.03, 0.04, 0.05

That is current time, uptime, amount of users and the load average.

What programs run:

Command line

ps -ef|more

GUI - System monitor (dash, system monitor):

When the computer was resumed or sleep

last

what folders were opened

what files where accessed

None of these I know a command for. Natty has activity journal for files.

Other interesting things...

To see when the users logged in the last time: lastlog.

Login failure: faillog.

last, lastlog, faillog make use of log file /var/log/wtmp (last), /var/log/lastlog and /var/log/faillog. If those are not active you will not get any result.
lsof shows a list of currently open files.

It can do alot of checks on a lot of options. From man lsof:

  To list all open IPv4 network files in use by the process whose PID is 1234, use:

lsof -i 4 -a -p 1234

  To list all open files for login name ``abe'', or user ID 1234, or process 456, or process 123, or process 789, use:

lsof -p 456,123,789 -u 1234,abe

  To list all open files on device /dev/hd4, use:

lsof /dev/hd4


Uninstall xubuntu-desktop:

sudo apt-get remove --purge --auto-remove xubuntu-desktop

Many more Xubuntu packages may need to be uninstalled, if they were set to manually installed, but my assumption above makes sense; or you may just not desire to remove them all.

Then install lubuntu-desktop:

sudo apt-get install lubuntu-desktop


Ubuntu supports NTFS (Windows) file systems by default, and you don't need any special software to view them.

If you installed Ubuntu side by side with Windows, then your Windows partition will show up in Computer:/// in Nautilus.
It will also show up in your file system under /media/pathtopartition.


Are you using an xperia?
 I see that C1505 might be their code.
It's only supported for Nexus phones right now. To force the Nexus 4 (mako) install try this:

sudo phablet-flash ubuntu-system --no-backup -d mako

Make sure you don't mind bricking this phone if it's not a Nexus 4.


How to I move MySQL data files onto different partition?

Well, actually there is a potential Ubuntu specific answer to this question.

As mentioned by Gergoes link, this is basically about modifying /etc/mysql/my.cnf and set a new value for datadir = in the [mysqld] section. So far the unspecific part of the answer.

Assuming you are running a somewhat modern version of Ubuntu you might very well have AppArmor installed by default, with a profile for /usr/sbin/mysqld in enforced mode. That default profile will most likely not accept your new datadir.

Let us assume that your new datadir will be /home/data/mysql.

If you open the file /etc/apparmor.d/usr.sbin.mysqld you will among the rules find these two lines.

/var/lib/mysql/ r,
/var/lib/mysql/** rwk,

Assuming our example above, they will have to be replaced or (probably preferable) complemented by these two lines.

/home/data/mysql/ r,
/home/data/mysql/** rwk,

Before we can startup our MySQL server, with its new datadir, we will also have to explicitly reload our new apparmor profile.

$ sudo apparmor_parser -r /etc/apparmor.d/usr.sbin.mysqld


How to set second monitor as unique if connected with xrandr

The best wat I found to do that it's using the arandr tool. . The equivalent command would be:
        xrandr --output HDMI-1-3 --off --output HDMI-1-2 --primary --mode 2560x1080 --pos 1920x0 --rotate normal --output HDMI-1-1 --off --output eDP-1-1 --mode 1920x1080 --pos 0x0 --rotate normal --output DP-1-2 --off --output DP-1-1 --off


Ubuntu doesn't detect my Windows partition

If you want to install Ubuntu on your machine then you've got to have somewhere to put it - i.e. a separate partition on your Windows hard disk or a second (blank) hard drive.  If all you have is one drive with Windows on it and you try to install Ubuntu then it is probably is going to assume you want to wipe Windows and replace it with Ubuntu!

What sort of system/setup do you have? How many hard drives, etc.?


CPU temp on ubuntu 12.04 higher than on windows 5-10C in "normal usage"

Well, it could be that the kernel isn't doing a great job at powering down devices when it could, or it could be that you have some busy applications that are keeping the machine from being idle.

Consider looking at: https://wiki.ubuntu.com/Kernel/PowerManagement/IdentifyingIssues

and also:

https://wiki.ubuntu.com/Kernel/PowerManagement/PowerSavingTweaks


Do you get to the login screen at least? does it crash after loading the desktop environment (i.e compiz) or before the login screen

if you can get the login screen, have you tried a Ubuntu-2d environment?


When you use the display tool, if you click on the second monitor from within the tool, does it still say 1280x1024?  The resolution that it displays is only for the currently selected monitor.


How to increase disk space given to Virtual Box VM through the GUI?

I was also looking for this info a while ago, but after quite a bit of searching for an easy way to increase the size of a VirtualBox HD, I was unable to find any other way than the method you linked to.

I even searched Oracle’s  support website, which was where I found the VBoxManage modify hd method that you did, that was the only way mentioned for any host OS on Oracle's site, even Windows does not appear to have a GUI way of doing this.

As to the second part of your question I can at least answer that helpfully.

When enlarging the virtual HD it will only increase the size of the HD not the partitions on it.  You will have just blank, unformatted space at the end of the drive.

To use the rest of the HD you will need to boot into the VM using a Live image(i.e. an LiveCD or booting directly from the ISO, in my experience VirtualBox will not boot from a LiveUSB, but this may have changed with the most recent update).

After booting into the Live system and clicking "Try Ubuntu" you will need to use a partition editor like gparted to enlarge the existing partition to the size desired and then expand the file system to fill the space.

If you are just using the space for a new partition you should be able to just boot into the guest OS and format the new partition with a formatting program.  If you have a Windows guest I think that it still comes with some form of Drive Management program that can do this, but my latest experience with Window is Win 7 so I may be outdated.


In crontab, what does "/usr/bin/php -f" do? Specifically, the -f

Just check man php:

   --file file
   -f file        Parse and execute file


First method:
Go to “System -> Administration -> Users and Groups” on the top panel.
Click on the user you want to set up auto-login for and click “change” on the Password field.

If “Don’t ask for password on login.” is checked, uncheck it.

Second method:
Edit /usr/share/lightdm/lightdm.conf.d/60-lightdm-gtk-greeter.conf.
NB:  if you don't have that file in your system, try with /etc/lightdm/lightdm.conf.

You can edit that file by running sudo gedit /usr/share/lightdm/lightdm.conf.d/60-lightdm-gtk-greeter.conf (you can change gedit by your favorite editor).
The output of the file will look like this:

[SeatDefaults]
greeter-session=lightdm-gtk-greeter
autologin-user=username

To enable password on login, comment the line: autologin-user=username by adding # in front of it.
Finally, save and exit.

Credit: How to Enable Automatic Login in Ubuntu


qpdfview supports tabs and seems very good. I have it as the default pdf reader and so far found no problem.

Install it as follows,

sudo apt-add-repository ppa:b-eltzner/qpdfview
sudo apt-get update
sudo apt-get install qpdfview


Kdesudo depends on Qt4 which is absent in Ubuntu 20.04 LTS. This package was last available in Ubuntu 16.04 LTS.
So I would recommend to use pkexec instead in the way shown below:
pkexec env DISPLAY=$DISPLAY XAUTHORITY=$XAUTHORITY FreeFileSync

I have just tested it - FreeFileSync launches normally.


As a non-answer to your question: mod_python is no longer the recommended way of deploying python applications. Turning your application into a proper wsgi app and using mod_wsgi is the state of the art.

Now for an actual answer: You'll need to set up a handler. mod_python doesn't just run random scripts, but you need to specify which module contains the handler, this is what AddHandler does.

For more info, see the mod_python tutorial.


Audio glitches every few seconds with VLC and the ALC1220 codec

After some investigation it turns out that the issue isn't with the audio chip, it's with my system RTC clock having about a 4% drift. VLC sees the drift and inserts silences in order to compensate for the delay.

To test for this, turn off the ntp server (sudo systemctl stop systemd-timesyncd) and use date to compare the time to an accurate external clock over a period of time. On my system I'm loosing about 12 seconds over a period of 5 minutes.

To fix the issue:

You many want to turn off NTP first but I'm not certain this is
required
Install adjtimex: sudo apt install adjtimex
Analyze the drift: sudo adjtimexconfig

This will automatically analyze the drift and put adjustment parameters in /etc/default/adjtimex
The parameters are immediately loaded into the system and will be reloaded on boot

Check that the update was made: adjtimex -p
redo the date to external clock test.

You should now see no drift.

Turn back on NTP if you turned it off.


How do I set GNOME to "focus follows mouse"?

System -> Preferences -> Windows

Check "Select windows when the mouse moves over them"


Two things could be failing. First, the system could be improperly installed in your USB and second the board could not be trying to boot from the USB. Without more information on the error or the settings in your board it's pretty difficult to determine what's the problem. Try to expand your question with more details.

You can install Ubuntu in a DVD-RW, yes.


Leave Ubuntu server to compute in background

You can run a process in the background by using an Ampersand (&). For example

sh example.sh &

would run the script example.sh in the background. You can then safely logoff and return later to check if the script has finished.


Which free remote system such as VNC or similar is known to work on 14.04 cloud

Below method works for me.

Install desktop with minimal packages.

sudo apt-get install --no-install-recommends ubuntu-desktop

Install few gnome packages to load VNC properly.

sudo apt-get install gnome-panel gnome-settings-daemon metacity nautilus gnome-terminal

Install vnc4server

sudo apt-get install vnc4server

Open /usr/bin/vncserver

Find "# exec /etc/X11/xinit/xinitrc\n\n". line and add these lines below

      "# exec /etc/X11/xinit/xinitrc\n\n".
       "gnome-panel &\n".
       "gnome-settings-daemon &\n".
       "metacity &\n".
       "nautilus &\n".
       "gnome-terminal &\n".

Start vncserver

vncserver

Afetr starting session , you could access VNC with your IP and session ( 12.34.56.78:1 )


Ubuntu 18.04 "Failed to start Snap daemon"

op did you ever get this to work?  I have a live usb, what am I supposed to do after I am in a live session?
Answer:  Log into live session, sudo su for root, mv snap to snap2, or whatever.  reboot.  fixed.


Phppgadmin does not work on Ubuntu 16.04 LTS

try to active the following module

sudo a2enmod php7.0

and install

sudo apt install php libapache2-mod-php

additionally read this thread:
Upgrade to 16.04. php7 not working in browser


A samba user is a normal Ubuntu user that you create and then use to set up samba with. Samba has its own password program called "smbpasswd" with ...

smbpasswd -a {user}

That gives access to /home/{user}/

/etc/samba/smb.conf also lets you set a share for that samba user

[accounts]
comment = Accounts data directory
path = /directory/dir/
valid users = {user}
public = no
writable = yes

That last one makes files writable.


I know this question is a bit old, and you may have already fixed it, but I've ran through this issue as well, and it took me a couple hours to find out what the hell was happening and what should be done to fix it.

Firstly, a quick question: Did you install Cinnamon Flavour in your Ubuntu distro? (I bet you did)

If so, continue this reading, please.

I wrote a README, as follows, describing what to do to fix it. Hope it'll help others as well! Let me know if you have any questions.

What is this?

This is a tutorial to fix your Cinnamon 4.0 installation on your Ubuntu 18.04 LTS, in case you lost your Software & Updates application, and can't run it through terminal with sudo software-properties-gtk, and neither commands such as sudo add-apt-repository PPA work.

You are probably encountering the following issue when trying to run any of these commands:

LSB codename: 'bionic'.
This codename isn't currently supported.
Please check your LSB information with "lsb_release -a".

Why is this happening?

When you installed Cinnamon through a PPA repository, it also installed a package called mintsources. This package essentially controls the Software Sources package, which is a Linux Mint version of Software & Updates.

This means your Ubuntu version of software-properties-common, software-properties-gtk and python3-software-properties gets replaced by mintsources.

So when you try to run any command that depends on any of these packages, they will try to find what is your Mint distribution, on the folder "/usr/share/mintsources/", and output an error in case your LSB codename differs from any of the existing distros in the folder. See source: mintsources.py.

How To

Undoing this is pretty simple, altough a little difficult to find the solution on the internet.

First off, download the three official packages of Ubuntu into a temporary folder, by running the following commands:

$ mkdir /tmp/cinnamon-fix/
$ cd /tmp/cinnamon-fix/
$ wget http://archive.ubuntu.com/ubuntu/pool/main/s/software-properties/software-properties-gtk_0.96.24.32.1_all.deb http://archive.ubuntu.com/ubuntu/pool/main/s/software-properties/software-properties-common_0.96.24.32.1_all.deb http://archive.ubuntu.com/ubuntu/pool/main/s/software-properties/python3-software-properties_0.96.24.32.1_all.deb

By the time this README was written, these were the latest versions of each package, according to the sources:

software-properties-gtk
software-properties-common
python3-software-properties

Now you should remove the faulty packages:

$ sudo apt remove --purge software-properties-gtk software-properties-common python3-software-properties -y

Last, remove mintsources package so it doesn't replace the packages you are going to install by its Mint version, and install them through dpkg:

PS: make sure you are inside our previously created folder "/tmp/cinnamon-fix/"

$ sudo apt autoremove mintsources -y
$ sudo dpkg -i *

If the first command tells you this action could be potentially harmful, don't be afraid, you can safely continue this.

To make sure a sudo apt update followed by sudo apt upgrade won't force mintsources to be reinstalled and break your system again, you should now remove the PPA repository through regular Software & Updates package.

Only add it again in case you really need to update something related to this PPA, but be aware you'll have to run through this process again.

Done! :)

Additional info at https://forum.level1techs.com/t/upgrading-to-cinnamon-4-0-on-18-04-dont-forget-one-package/135561. Many thanks to the user FurryJackman.


Best remote desktop protocol for windows client and ubuntu server

I would recommend X2go. Based on SSH, it is most secure from the above mentioned.

Link

You can choose between multiple desktops, KDE,Xfce,Gnome,Openbox, Unity, Mate etc.

PKI is supported as well.

https://gyazo.com/faaa8fa946b0528d02f51386946374a4

Simple, fast and secure.


Run second screen process after first screen process complete?

IIUC, you simply want this:

screen <COMMAND> ; screen <COMMAND1>

Try with other commands, this for example:

sleep 3; echo hi

will first sleep for 3 seconds and after that it will print hi. You can read more on that in Lists chapter in man bash.


I've seen support for HDMI Stereo 3D land in Intel driver for Linux 3.13, but there was no word of stereo 3D in r600g whatsoever, so I have to assume that it doesn't support Stereo 3D. But I have no 3D displays to actually test if it works.

And I still have no info about support for HDMI 3D in Catalyst.


How to use amazon instances' public IPs in hadoop configuration?

I have found the answer.

The trick is not to have any entries regarding the amazon EC2 instances in the '/etc/hosts' file and also the '~/.ssh/config' file should only contain only the following setting when it comes to amazon instances:

Host ec2-x-x-x-x.compute-1.amazonaws.com
    StrictHostKeyChecking no
    IdentityFile /path to private key

Here ec2-x-x-x-x.compute-1.amazonaws.com is the public IP of the amazon instance.


Hard disk not detected in BIOS menu but shows in GParted in ubuntu live usb

It says that you have a corrupted gpt partition. Since it is a fresh install, boot into Ubuntu live, then delete everything, create a new partition table and then install Ubuntu.


Examples folder not showing in ls output

The "Examples" object you're talking about in your home folder is neither a directory nor a regular symbolic link ("symlink"). It is a .desktop file, similar to those which define your application launcher icons.

You should see a examples.desktop text file in your home folder with ls, which gets displayed like a link to a directory in the Files explorer GUI.

It's contents are shown below (abbreviated by omitting all but the "en_GB" translations). You can get them by e.g. typing cat examples.desktop in the terminal.

[Desktop Entry]
Version=1.0
Type=Link
Name=Examples
Name[en_GB]=Examples
# ...
Comment=Example content for Ubuntu
Comment[en_GB]=Example content for Ubuntu
# ...
URL=file:///usr/share/example-content/
Icon=folder
X-Ubuntu-Gettext-Domain=example-content

If you have a look at the Type and URL field, you see that this file represents a link to the /usr/share/example-content/ directory. Its display name gets adjusted according to your selected language.


Extracting source code by using script language

You should use the -L option to "follow redirects" as described here and of course also on the man curl

curl -L http://www.example.com

Maybe it would even be enough to use

curl https://www.example.com

since it says here that the most common reason for a 301 response is a former migration of the page from http to https.


New 14.04 i386 desktop with 3ware 9500s and 4TB RAID, can't partition

Test this:

Try the LiveCD version of Ubuntu from a DVD or USB

Open a terminal.

Identify the device names for your hard drives, type:

sudo -i
fdisk -l

Suppose their hard drivers were /dev/sda and /dev/sdb.

Then create the partition on each drive.

The partition table needs to be GPT to allow more than 2TB to be used.

Type:

parted /dev/sda

At the parted prompt, create the partition table, type:

mklabel gpt

Then type to quit:

q

Type:

parted /dev/sdb

At the parted prompt, create the partition table, type:

mklabel gpt

Then type to quit:

q

Now install Ubuntu via the GUI.

Select Manual as your partition method

Select your hard drive, and agree to Create a new empty partition table on this device ?

Select the Free Space on the 1st drive then select automatically partition the free space

Ubuntu will create two partitions, / (root) & swap

On / (root) partition select bootable flag and set it to on

Repeat steps for the other hard drive

Now select Configure Software RAID

Select Yes

Select Create new MD drive

Select RAID type: RAID 0 or RAID 1.  RAID 0 and 1 need 2 drives.

Number of spare devices. Enter 0 if you have no spare drive.

Select which partitions to use..

Repeat steps with each pair of partitions you have created.

Filesystem and mount points will need to be specified for each RAID device. By default they are set to do not use.

Once done, select finish.

Open a terminal

Type:

sudo -i
grub-install /dev/sda
grub-install /dev/sdb
update-initramfs -k all -u


I cant use Ctrl+s to save in eclipse when language is not english

well its a know bug I guess since 13.10
on libreoffice and eclipse (and maybe other java applications ) hotkeys like ctrl-c ctrl-v ctrl-s ctrl-b and so on dont work while in foreign language
see here for example
search for "hotkey 13.10 language" and maybe youll find a fix. I  didnt..


Start ubuntu with xrandr generated screen resolution

After a while I found out how to use a xrandr code automaticly when ubuntu starts.

Open dash and type "startup"
Open Startup Applications
Click on "add" to add the code
Fill in the form and click add

Done


prevent ping output from showing (truncated) instead of time=

I believe this is not possible.

Given my reading of the ping source code if the data size returned is smaller than the data size sent, it will always print that.

My guess is that the time is viewed as invalid or useless due to the data being truncated.

For clarification: The conditional on the line linked above is

if (cc < datalen+8) {

cc represents the number of bytes received and datalen is the number you provided with the -s option. Therefor, this is checking if the size of the reply is less than the size sent (1373 in your 2nd example).

Another thing I just noticed is the timing is calculated in the very next block following the one that detects the truncated data. After the line that prints the (truncated) text, the function returns, so the timing block never runs.

Not really an answer solving your problem, but an explanation of why it can't be done.
The answer of how to not show (truncated) is: make the remote host to not truncate the packets.


Is there a way to search for files with the whisker menu?

You can use Catfish to search for files and it can be started from within the Whisker menu. In the Whisker menu properties "Search Actions" tab, create a new search entry with the following parameters:

Name = Catfish
Pattern = ~
Command = catfish --start %s

*Note: you can use whatever pattern is most useful to you.
Once this is done, simply enter in Whisker Menu's input field the pattern indicator followed by the search term.
For example, to search for a file called "New Document", enter "~New Document" in the input field and press enter. Catfish will open and display the search results for you (by default, it will only search in your home directory).

The command catfish --start %s will search in$HOME, but new search actions with new patterns can be added:

for searching a mounted drive - use a command like catfish --start /path/to/mountpoint %s

for searching the entire system - catfish --start / %s

Setting "s" as "Pattern" for "Search entire system":


The default version in the repos for 15.10 should do fine, I think 352.  I use that version with my 970m right now in 14.04 with the Wily kernel.  If you do have troubles though I wouldn't recommend downloading the drivers from the nvidia site as it does have bugs that crop up.

Instead you can try the new ppa https://launchpad.net/~graphics-drivers/+archive/ubuntu/ppa

If you aren't planning on gaming honestly the open drivers will do great for most any task unless you are planning on something that requires the Nvidia closed source driver.


Apparently not - there are recognition engines (Sphinx, Julius) but all require a library of speech / meanings - there are several expensive ones out there, and a project to crete an open-source one (which looks to be dead).

Apparently Julius works if you speak Japanese. Sphinx appears perhaps more promising, with updates this year. I don't think it looks simple though.

Disappointing...


wlp2s0 - failed to remove key on PC (can't stop laptop)

Please see: https://bugs.launchpad.net/ubuntu/+source/linux/+bug/1720930 The bug is supposed to be fixed in a later kernel version.

Comment #17 and several comments following suggest that a change to GRUB will be a temporary work-around. I suggest that, from the terminal, you do:

sudo nano /etc/default/grub

Change this line:

GRUB_CMDLINE_LINUX_DEFAULT="quiet splash"

To instead read:

GRUB_CMDLINE_LINUX_DEFAULT=""

Proofread carefully twice, save (Ctrl+o followed by Enter) and exit the text editor (Ctrl+x).

Next, update GRUB:

sudo update-grub

Reboot and test.


How can I change the keyboard shortcut to switch lenses?

These key combinations are hardcoded into the Unity plug-in for Compiz and are not exposed as options that can be changed through a configuration setting. To change them, you would need to recompile your own version of Unity.


Download AppleUSBVideoSupport driver file (e.g. dl.getdropbox.com/u/332246/AppleUSBVideoSupport) and place at ~/Desktop
sudo apt-get install isight-firmware-tools
Skip the prompt to immediately load the driver file.
cd ~/Desktop; sudo cp AppleUSBVideoSupport /lib/firmware/
sudo ift-extract -a /lib/firmware/AppleUSBVideoSupport
sudo nano /etc/default/acpi-support
Find MODULES and make it MODULES="isight_usb".
lsusb | grep -Po '(?<=:)(\d+)(?=.*iSight)'
This outputs the product ID of your specific iSight USB device. Remember this number. Mine is 8507. The default Ubuntu driver seems to be hardcoded for 8300, which is a problem.
sudo nano /etc/udev/rules.d/isight.rules
Add (and be sure to replace the "8507" with your product ID.):
ACTION=="add", SYSFS{idVendor}=="05ac", SYSFS{idProduct}=="8507", RUN+="/usr/lib/udev/ift-load --firmware /lib/firmware/isight.fw"
Shutdown/poweroff (not reboot or restart).
Reboot.
sudo apt-get install cheese; cheese

I've been using this fix for a couple weeks, and my webcam now reliably works across reboots and suspends. The bug seems to be caused by simply incorrect acpi and udev configurations.


Check VPN connection status (connect/disconnect) from the command line

If you want to know if any VPN-connection is active then the following invocation is useful:

nmcli con | grep -i vpn

Depending of the connection status you will get either

VPN099     ...  vpn              wlan0

if active or

VPN099     ...  vpn               ---

if inactive.


https://wiki.ubuntu.com 's fonts are too small, how do I report the problem?

The wiki page content is maintained by the ubuntu-docs team. You can file a bug on the wiki by filing it here:

https://bugs.launchpad.net/ubuntu/+source/ubuntu-docs/+filebug

I am not sure if the team can fix the CSS directly, so they might move it around and assign it to another team, but at least the issue will be reported.


nouveau driver issue when trying to boot ubuntu

Problem solved. Needed to add nomodeset to the boot parameters.

Here's a link to a thread with solution: http://ubuntuforums.org/showthread.php?t=1613132


There are a few different things you can do to improve security on port 22 (the SSH server).

Move it to a different port - one that is unlikely to be targetted by brute force scripts.  For example, 2922, or 31822.
Allow only certain users access to SSH.  This can be accomplished with an AllowUsers directive in /etc/ssh/sshd_config.
Allow only certain IP address ranges to connect to SSH.  This can be accomplished with your firewall software (eg ufw).
Rate-limit new connections to your SSH port using your firewall, for example, by using a "limit" clause in ufw.  This can reduce the rate that users can try to brute-force your server, although the SSH server does have some of its own ways of dealing with that too.
Ensure that all users with SSH access have a secure password.  The more characters the better.  8 or more is good, 10 or more is better.  Do allow digits and symbols on a standard keyboard.  Stress the importance of not using dictionary words, famous names or simple patterns.
Enforce the use of key-based authentication, where the user generates a public-private key pair on their computer and stores the public part on the SSH server, instead of allowing passwords.


Preventing Users/Groups from accessing certain Domains

You could use iptables to restrict the network access. The module ipt_owner enables you to match network packets by user id. A command like

iptables -A OUTPUT -m owner --uid-owner mike --dst www.google.com -j DROP

would prohibit user mike to access www.google.com.

As iptables really works with IP's instead of hostnames, this would create several rules, one for each IP of www.google.com. Downside is that you can't use iptables to limit whole domains, you would have to repeat that command for every single hostname you would like to restrict.

Be warned: If you're new to iptables you might have a hard time... ;)


Open a terminal with font size option through command line

Open gnome-terminal and choose File/New profile. You will see the current defaults.
Enter a new profile name, let's say SmallFont. Modify the settings (including font size) as desired, and save.
Open a new window with File/Open Terminal/SmallFont to check if things look OK.
Close this window.
Enter gnome-terminal --window-with-profile=SmallFont. This should now have the proper font size.


How to disable (hide) weekday in gnome-shell (GNOME 3.x) clock?

If you're using GNOME 3.x then you can adjust clock setting using gnome-tweak-tool. However, you can take out the the date but not the day (i.e. Sat cannot be changed so far as I can tell)!

sudo apt-get install gnome-tweak-tool

You can also look in g-settings via a terminal:

gsettings list-keys org.gnome.shell.clock
gsettings set  org.gnome.shell.clock show-date false
gsettings set  org.gnome.shell.clock show-date true

which gives only two options: show-date or show-seconds!
Or you can open up the configuration editor, then open "org" - "shell" and you will see calendar and clock which you can change manually.

When you open the Tweak Tool and go to Top Bar, you will see the option for showing/hiding the date:


What edition(s) of wubi input method do the various wubi packages in Ubuntu implement?

As regards ibus-table-wubi the README file states that it's Wubi-Heifeng86.
https://salsa.debian.org/input-method-team/ibus-table-chinese/-/blob/master/README
Take it as a hint how you can find out for the Fcitx packages.


Why is Lubuntu slower than Kubuntu (in the same machine)?

I'm no high fi technical person, but I believe I understand your concern..
I'll try to explain with a different viewpoint.

Lubuntu is customized to work on a low cpu speed and RAM, when you use system with 2GB or more RAM and multicore CPU's most of the resources are not in use while running Lubuntu, but Kubuntu or Ubuntu uses all the resources of a high end newer computers.

Have you ever tried to run a Ubuntu 12.10 or higher on Dual Core CPU and 1GB RAM? I did!... and the OS was getting hanged while moving the cursor .. yupp.

Anyway, do one thing... (I have not tried it yet, but going to soon..) install Virtual Box and try running two or three Lubuntus inside your Lubuntu OS and do the same thing in Kubuntu. Let me know what you experienced .

Looking forward to your response

:-)


Acer Aspire One sometimes freezes on startup

Try this: connect the Internet with wired cable first, then start your computer. If every thing is good, then the most probably problem is the Ethernet card and the wireless card share the same ID. If this is the case, you simply make PCI Lan disabled in BIOS.


Most likely you are simply missing a compiler.

Get one by installing build-essential package.

Typing sudo apt-get install build-essential into terminal is one of the easiest ways to achieve that.


Nmap port scan shows all 65000 ubuntu (20.04) ports closed

The nmap needs the ping feature enabled in the firewall that it can recognize a host.
If the host does not respond to "ping probes" it will usually reported as down.
$ nmap -sV -p- 4.2.2.1

Starting Nmap 7.40 ( https://nmap.org ) at 2020-06-30 21:58 WEST
Note: Host seems down. If it is really up, but blocking our ping probes, try -Pn
Nmap done: 1 IP address (0 hosts up) scanned in 3.38 seconds

But when you enable the -Pn flag the to disable the normal "ping probe" behaviour it is able to scan the host:
$ nmap -Pn 4.2.2.1

Starting Nmap 7.40 ( https://nmap.org ) at 2020-06-30 21:59 WEST
Nmap scan report for a.resolvers.level3.net (4.2.2.1)
Host is up (0.090s latency).
Not shown: 999 filtered ports
PORT   STATE SERVICE
53/tcp open  domain

Nmap done: 1 IP address (1 host up) scanned in 9.64 seconds

Now that you find all ports blocked might be that the host is blocking your "nmap host" where you run the scan.
Or the scanned host might recognize the "nmap probe pattern" and just ignore it.


This is a virtualbox issue, more than Unity, but my understanding from reading this:

https://forums.virtualbox.org/viewtopic.php?f=9&t=43379

Your friend can press the host key, then ALT+SPACE and minimize from full screen.  I have not tried this, so only going by the forum thread.


After getting a deleted partition with Testdisk software, can I recover it on the unallocated space of the deleted partition without any problem?

Yes, it will just restore the partition record. No data from the Windows partition will be lost, the Linux data won't be touched too.

EDIT: After deleting and recovering partitions from an old drive, here's the result (F:, shared, has music in it, restored and G: made by mistake before deleting F:)


Let's check the default permission of /etc/apt/sources.list:

-rw-rw-r-- 1 root root 2563 Aug 21 04:24 /etc/apt/sources.list

As you can see only user root and the members of group root can write to the file, all other users while trying to edit the file will get a message saying that the file is read only for them.

To edit the file, just use sudo to impersonate root e.g. using nano :

sudo nano /etc/apt/sources.list

or gedit:

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


To my observation the main reason why it seems complicated to achieve media streaming to any external hardware media devices is that the manufacturers of these devices lean back and rely on the presence of OS X or Windows on their customer's machines.
DLNA media file access
From the many solutions that do exist I had success with the following solutions for DLNA media access for my Internet Radio, Android Devices, and Smart TV:

Serviio: closed source, rather sluggish on my machine.
Rygel : default GNOME DLNA streaming server, crashes on access from some devices.
MiniDLNA : very lightweight and stable, needs to be set up from a configuration file.
uPnP : not further developed, does not stream to all of my devices.

My favourite on that list definitely is minidlna, which now runs here 7/24 for several months with no issues. By default minidlna will run on startup as a service. To run it in user space you may use stream2ip from version > 1.0, or the MiniDLNA Application Indicator I made for this. You will still have to set up minidlna by its configuration file first.
Live streams
Sadly none of these solutions are able to stream the output of my soundcard live to the receiver. Newer devices do not support the old RAOP protocol used by pulseaudio but seem to need the newer RAOP2 protocol which is not (yet?) available for Ubuntu.
Live streams to external (non-Ubuntu) devices is possible in case they support the RTP protocol pulseaudio is able to stream with, but I have not found one which does.
Another possibility is setting up an Iceast Internet Radio Server to generate our own private radio "station" in our local network. This works great but a prererequisite is that the tuner is able to connect to a stream defined by its IP-adress, and port. It should be an easy thing to do, but sadly most devices do not offer this. Instead they support Internet Radio directory services (e.g. vTuner, or tunein) which may dependent on the device not support custom radio streams to be added. From me only my radio device which operates through Reciva has no issues playing custom streams generated from Icecast (both via stream2ip, or from command line).

Marantz
Last time I contacted Marantz (August 2012) they gave me the following information regarding support for a custom radio station:

"It is not possible to enter a custom radio station to your favorites. You can only select a station from the list provided by vTuner. From there you will have a choice of more than 17.000 stations." Translated from German

We may try if adding a custom URL in a personalized instance of a radio station service  (see this blog for Denon) will work by now. For Marantz we can access the vTuner service on http://radiomarantz.com/. To personalize the service we need to register with the device's unique access code (likely to be the MAC). We then may be able to add the local URL of our Icecast radio stream (<IP>:<Port>/stream.mp3) as a custom radio station. Unfortunately due to lack of hardware we can't test this here.


some ubuntu apps don't display properly the font

I recently resolved this problem by simply deleting all files from home/.cache/fontconfig directory.


problem im my key 3G "Connection activation failed" in 14.04

None of the above solutions worked for me in Ubuntu 14.04

The thing that worked:

Remove your broadband connection (right clicking Network applet > Edit Connections)
Reboot
Add connection again

This worked for me.


You don't need to install with the downloaded Firefox package and it's probably a bad idea.

How did you installed Firefox 57.0b2 in the first place? (Rhetorical question)

Firefox 57.0b2 is the Firefox DevEdition version. In Ubuntu, Ubuntu flavors and derivatives, the usual and recommended way to get this unstable version is with the Firefox DevEdition PPA. Based on this report

  Installed Firefox from the Software center. And presto! my nightmare is back. FF 57.0b2 again.

I suspect that you took the most common route as described above. If so, whilst the PPA is there that should be expected.

How to downgrade to the stable version as provided by the official Ubuntu repositories:

sudo apt install ppa-purge
sudo ppa-purge ppa:ubuntu-mozilla-daily/firefox-aurora


SOLVED

I've installed this from terminal.

sudo apt-get install bcmwl-kernel-source

and after reboot i disabled the secure boot.


I want to purchase the Toshiba Satellite C55-A5281 Laptop but need to make sure Ubuntu will work

In addition to the good reply from @user87317:

Before making a decision, I prepare a fully-updated Live USB with my favourite applications. I pop into the store and, with permission from the staff, boot the display model using my Live USB.

The laptop needs to successfully boot and pass various tests, e.g. camera, microphone, playing multimedia, wireless Internet, touch-screen, connect to my phone via USB and Bluetooth (if it has Bluetooth), and run my must-have applications. (Test this on your existing computer to iron out any problems before you get to the store.)

The staff member is usually keen to give authorisation, because he hasn't seen Ubuntu before, is curious as to how you can boot something other than Windows from a Windows computer, and knows that he's more likely to make a sale if he allows you to proceed.


Installing Windows 7 on a new Ubuntu computer

You should first make a separate partition using Gparted. It is a good tool to create/add/delete/manage partitions of your HDD. Since you got pre-installed Ubuntu, It may not be installed already.

Open a terminal(CTRL+ALT+T) then execute following:

    $ sudo apt-get install gparted

Open gparted from dash and make partition as required. Gparted so easy to use that any one can grab it. I prefer you to install Windows 7. It is possible that after installing Windows, you will not be able to access Ubuntu. But don't worry, you can fix this issue very easily, if you have a bootable CD of Ubuntu.

For more information you can prefer following link:

How to dual boot Windows 7 x64 and Ubuntu 13.04 x64 as BIOS, not EFI

You have to follow the preferred answer(i,e answer which is marked as tick).


There are a lot of mount options there, of which (seen on last line):

mount.options=ro,...

where "ro" is "read-only"

You could try

mount -o remount,rw,uid=$UID /media/egalea/FORENSICS

And see if that helps.


apt-get install insists on removing a package I don't want removed!

postfixadmin depends on php5-pgsql which is about to be removed. Make sure you keep that too; then things should work.


12.04 After HWE upgrade and running Ubuntu Tweak to clean cruft, can't start lightdm

Fortunately I had a working system to compare it to.  Ubuntu Tweak for some reason deleted a symlink in /etc/X11 and this caused lightdm to fail.

The fix is easy:

cd /etc/X11
sudo ln -s /usr/bin/Xorg X

and Bob's yer uncle.


Really slow file transfer from Ubuntu 18.04 to USB 2.0 pendrives

It's probably crappy USB drive. Cheap USB drives have a write speed of <15MB/s, some as low as 1-2MB/s. Want faster? Buy an more expensive one.

10 minutes for 2GB works out to approx. 3.3MB/s, which is reasonable for a cheap drive.

The reason it show a quick progress is memory caching. The file is only written at the end of the copy process, which tricks the UI into believing that copying is further along than it actually is.

(As a sidenote: I've even seen drives advertised as USB 3.0... and 5MB/s write speed!)


pkill -f vlc not killing /usr/bin/vlc --started-from-file file:///home/pi/hdd/DL/

To find Process ID of the vlc , Run
ps -e | grep -i VLC

It will list the process ID of VLC as
46577 ?        00:00:58 vlc

Now to kill it , use
sudo kill -9 46577


How to manage translations of help pages in debian packaging?

One idea is to make an override_dh_install: entry in debian/rules to deal with it. I haven't the time to draft an example right now, but you may want to give that a thought.
Edit:
Ok, this is the method I had in mind in the form of a diff:
diff -ru recipe.orig/debian/install recipe/debian/install
--- recipe.orig/debian/install  2021-01-11 20:08:08.000000000 +0100
+++ recipe/debian/install   2021-01-13 09:29:50.645316616 +0100
@@ -2,4 +2,3 @@
 res/com.github.alexhuntley.Plots.svg /usr/share/icons/hicolor/scalable/apps/
 res/com.github.alexhuntley.Plots-symbolic.svg /usr/share/icons/hicolor/symbolic/apps/
 res/com.github.alexhuntley.Plots.metainfo.xml /usr/share/metainfo/
-help/C/* /usr/share/help/C/plots/
\ No newline at end of file
diff -ru recipe.orig/debian/rules recipe/debian/rules
--- recipe.orig/debian/rules    2021-01-13 09:27:58.952883958 +0100
+++ recipe/debian/rules 2021-01-13 09:25:00.736193794 +0100
@@ -6,3 +6,15 @@

 %:
        dh $@ --with python3 --buildsystem=pybuild
+
+override_dh_install:
+   dh_install
+   # install docs in available languages
+   cd help; \
+   for lang in `ls`; do \
+       cd $$lang; \
+       for doc in `ls`; do \
+           install -m 644 -D $$doc $(CURDIR)/debian/plots/usr/share/help/$$lang/plots/$$doc ; \
+       done; \
+       cd .. ; \
+   done


Maybe the Ubuntu developers community could help you :

http://community.ubuntu.com/contribute/developers/

Emman


I do not have an proper answer but if a workaround fits your need.

I have the exact problem (last line):

# ldd .perl.bin
    linux-vdso.so.1 =>  (0x00007fffcf1ff000)
    libperl.so => not found
    libnsl.so.1 => /lib/x86_64-linux-gnu/libnsl.so.1 (0x00007f3eae3e9000)
    libdl.so.2 => /lib/x86_64-linux-gnu/libdl.so.2 (0x00007f3eae1e4000)
    libm.so.6 => /lib/x86_64-linux-gnu/libm.so.6 (0x00007f3eadee8000)
    libcrypt.so.1 => /lib/x86_64-linux-gnu/libcrypt.so.1 (0x00007f3eadcaf000)
    libutil.so.1 => /lib/x86_64-linux-gnu/libutil.so.1 (0x00007f3eadaab000)
    libpthread.so.0 => /lib/x86_64-linux-gnu/libpthread.so.0 (0x00007f3ead88e000)
    libc.so.6 => /lib/x86_64-linux-gnu/libc.so.6 (0x00007f3ead4cf000)
    /lib64/ld-linux-x86-64.so.2 (0x00007f3eae60a000)
    libssp.so.0 => not found

So i "cd" into /opt/bitnami/perl/bin and did

mv .perl.bin .perl.bin.bitnami && ln -s /usr/bin/perl .perl.bin

I was then able to update my box without errors.

I first tried to amend my $PATH to remove the /opt/bitnamii paths but nothing done the trick. Looks like the perl.bin shipped with bitnami is to old :

# file .perl.bin.bitnami
.perl.bin.bitnami: ELF 64-bit LSB executable, x86-64, version 1 (SYSV), dynamically linked (uses shared libs), for GNU/Linux 2.4.0, not stripped
# file /usr/bin/perl
/usr/bin/perl: ELF 64-bit LSB executable, x86-64, version 1 (SYSV), dynamically linked (uses shared libs), for GNU/Linux 2.6.24, BuildID[sha1]=0xded7e7bb8672f54eacf8f90a2262dba723e11c29, stripped


Sadly, you cannot do that through configuration.

More precisely, this is a localized string "GNU GRUB  version %s", which resides in /usr/lib/grub/i386-pc/normal.mod.

A few solutions, if you really want to change it:

Build your own packages, with a patch in the source code (see const char *msg in grub-core/normal/main.c) or in the po/ locales;
Modify the appropriate po file with, for example, poedit, then recompile it to an mo file and put it in /boot/grub/locale.


Will GIMP, Inkscape work on ldm / lxde / lubuntu in 18.04

Yes! GIMP and Inkscape will work on lxde / lubuntu in 18.04!

In linux, you can run any application on any desktop environment (Gnome Shell, Mate, XFCE, LXDE) or even on a bare window manager (i3, openbox), as long as all dependencies are installed. You package manager takes care of installing all dependencies when you install an application.


You can search for package names using the command line and the apt-cache command.  For example, enter the following command to find out what the package name is for firefox

  apt-cache search firefox

If you get a long list of results, you can view (pipe) the results in a viewer or a text file

  apt-cache search firefox | less

  apt-cache search firefox > ~/firefox-list.txt

The command apt-cache search searchstring performs a full text search over all the software sources registered on your Ubuntu system. It will search the package names and the descriptions for an occurrence of the searchstring and prints out the package name and the short description, including virtual package names.

if --names-only is given then the long description is not searched, only the package name is.  This option usually gives a smaller set of results.


Play Music stored on ubuntu via Android device

Emby-Server is great for that .. i can listen to my music, view photos, even watch tv because my server has a tuner connected .. the emby app is available in the google play store

If you take a lot of photos and would like to save some space .. Syncthing is also a nice program that will sync any files on the phone you want when you are connected to your local network over wifi and you can make it a one way sync so once transferred you can delete them from your phone and they will be saved on your server... and viewed with emby-server ..

Then Emby app will let you access your files from any wifi .. and cell too i guess but that could get expensive .... so you always have access to your files.


UBuntu 12.04 Broadcom 4313 Wireless Problem

I suggest you try the native driver brcmsmac instead of the proprietary STA driver. Please get a temporary wired ethernet connection and do:

sudo apt-get remove --purge bcmwl-kernel-source
sudo apt-get install linux-firmware-nonfree

Now let's check any blacklists you added:

gksudo gedit /etc/modprobe.d/blacklist.conf

If you blacklisted brcmsmac or bcma, please remove those lines. Proofread, save and close gedit. Reboot and tell us if it is working now.


Thanks Merri.

It was related to EFI, now that I am booting from grub-efi, heat and battery performance are much better. The CPU is still slightly warmer than in OSX but not by too much, idles at around 45 - 55 which is quite good for a laptop. If you are having similar problems I would suggest using EFI boot instead of the legacy BIOS.

Here is a post i put on the UBuntu forums on the problem an solution.

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

Bill


How to share folders over the network in Xubuntu 18.04?

I found a solution here: https://ubuntuforums.org/showthread.php?t=1670223

sudo apt install samba system-config-samba
Run system-config-samba - just type sudo system-config-samba in terminal.
After running sudo system-config-samba I got an error "'SystemError: could not open configuration file /etc/libuser.conf: No such file or directory". Simple solution is sudo touch /etc/libuser.conf found here
Run sudo system-config-samba again.
Create the share (choose File > Add Share, or click the plus icon):

Directory = select directory to share
Share name = share name
Description = description
Writable = to allow users to write to directory
Visible = to make the share visible while browsing
Access tab = select who should have access to the share

In Thunar, access "Network" or "Browse Network" (on the bottom left)

I have to think a moment about my question, if I should edit it to be more precise and concrete.


Trouble connecting to the internet in windows (dual boot ubuntu)

After wandering around settings, I found that in windows I'd Proxy. After disabling it, problem got resolved.


Ubuntu 16.04 - Turn NumLock on and disable NumLock key permanently

After a bit of searching, I seem to have found a solution - Install "Gnome tweak tools" and under Typing-->Miscellaneous Compatibility Options, set "Numeric keypad keys always enter digits".


How to run greeter/login script with lightdm

During the past week I saw this problem many times doing my research and effort to fix it.  It turns out that any entries placed in a "lightdm.conf" file for Ubuntu 13.10 will break lightdm.

There is an entry in the lightdm.conf.d provided for this.  I added my KVM script to:

/etc/lightdm/lightdm.conf.d/50-unity-greeter.conf

This works!


Understanding machine config, multiprocessor or multi-core or both?

The Q6600 is a single processor with 4 cores.  You should actually be seeing processors 0-3 (total of 4) not 0-4 (which would be 5).  If you look at the "physical ID" field you should see the same number (0).

On a hyperthread enabled quad-core, you should actually see 8 virtual processor cores (2 virtual HT cores run on each physical core).  You may have hyperthreading disabled.


What are the default arguments for ClutterGst?

You start by initializing ClutterGtk, then GstClutter, both with sys.argv, then everything should work fine.

Take a look at audience's initialization code for example:
http://bazaar.launchpad.net/~audience-members/audience/trunk/view/head:/Audience/Audience.vala#L898
(not sure if the X.init_threads is really necessary, but there were some strange problems in Audience which were (probably) solved with this)


Not sure how it could happen, but some process must have either created- or edited the local sublime-text.desktop file.
How to solve?
If you installed Sublime Text globally (and thus the file /usr/share/applications/sublime-text.desktop exists) simply remove the local one:
rm ~/.local/share/applications/sublime-text.desktop

and log out/in to make Unity find the global one.
If /usr/share/applications/sublime-text.desktop does not exist, open the local one:
gedit ~/.local/share/applications/sublime-text.desktop

and look for the first line, starting with Name=. Then replace the line by:
Name=Sublime Text


After downloading Ubuntu installer, it asked me to reboot for install. It shut down and seemingly rebooted into a black screen!

I had a small problem that can be of help to you: HDMI, there is some problem with HDMI that if its not correctly configured after installation it will stay black all the time,my advice is to switch to VGA and see if the problem continues.


I use Ubuntu 16.04 and had the exact same problem today here's how I solved it, first uninstall nautilus using :

sudo apt-get remove nautilus

and go ahead and reboot your PC

sudo reboot

reinstall nautilus using :

sudo apt-get install nautilus

My nautilus was broken so bad due to gnome3 install/update that it didn't work properly even after last step and there were some issues while minimizing and maximizing Terminal, so I uninstalled nautilus once again and installed this nautilus alternative named Nemo, now everything works just fine and nemo is way cooler than nautilus. Here's how to install Nemo :

sudo add-apt-repository ppa:webupd8team/nemo

sudo apt-get update

sudo apt-get install nemo nemo-fileroller


If you look at https://help.ubuntu.com/community/Installation/SystemRequirements you will see that recommended minimum system requirements of Ubuntu are 512 MiB of system memory (RAM)

There are two install disks, the Desktop (LiveCD) and the Alternate (straight install). The Desktop disk needs a lot of RAM (300Mb+?)to install. The Alternate only needs 64Mb to install.

With 256Mb you should use either Xubuntu(Xfce) or LXDE.

Yes, there are people who will say 256Mb is enough to run Ubuntu, but it will go s-l-o-w-e-r


To gain access to the root-reserved space, change the size from 5% to 0,5%. As you are not on a server, it won't hurt anybody.

sudo tune2fs -m 0.5 /dev/sda7

Resize with an ubuntu liveCD/liveUSB or with Gparted LiveCD. It can move, shrink, grow partitions. But keep in mind, that you must one task at a time (eg. first shrink, then move ...).


Skype is in the Canonical partner repository. If you unchecked that it will not show up. See Dash, Software and updates:

And Skype is there:


How do I upgrade from Python 2.7.6 to 2.7.8?

If you think easy_install has anything to do with upgrading the python interpreter itself, my answer is: don't do it. easy_install is a script that installs or upgrades additional python packages - not python itself ... and in almost all cases it is better to use pip for that for quite some years already.

The preinstalled python 2.x and 3.x are heavily used by the system itself and have exactly the version that the system needs. Upgrades of the python version are done by the system if necessary, as part of the normal system updates.

If you need a different python version for development it should be kept separate from the python used by the system. You usually use virtualenv for that. There is a good description how to do that in an virtualenv in a stackoverflow question

If you need a newer version of Python itself, than what the system offers I would recommend using pyenv for easy installation of additional Python versions in userspace.


pgadmin installation error while compiling from source

Install libxml2 and libxslt if you have not already.

You should make sure that you have the library files for libwx_baseu_xml in /usr/local/lib or somewhere in your computer. Also make sure that this location of libwx_baseu_xml is in the library search path in /etc/ld.so.conf

You can update the libraries by simply executing the following command:

  sudo ldconfig

In most cases this should solve the problem.


Swapping function and special keys on HP Pavilion DV6?

That is not a problem, it's an option in your laptop BIOS. There is an option in your BIOS that enables FN everytime you press an F key, for quick access. As soon as you enter your bios it won't be a big trouble until you find the option. Hope it helped.


Chrome uses both the clipboard-proper and the primary clipboard, and in this instance is attempting to paste from the wrong clipboard. Try this instead:

xsel -ip < txt/"$BASE".txt

There's a whole load of more detail in this post on Unix.SE.


How to reset or recover password without Grub?

You don't need to reinstall Grub or change its menu to reset passwords. You can however boot it in single user mode and add the 'init' parameter to change user passwords. Let's forget about it for now.

Do you have any account that has a password set and that you can log in with? If that's the case, are you trying to change a password of a different user than this one?


How to find out who is using the physical console?

I'm afraid I can't give you a specific answer (because I don't know the tech well), but I believe you can find it out using D-Bus and ConsoleKit.

For example, when I switch from X to a VT and back, I get this listening on dbus-monitor:

$ dbus-monitor --system | grep ConsoleKit
signal sender=:1.16 -> dest=(null destination) serial=19039 path=/org/freedesktop/ConsoleKit/Session2; interface=org.freedesktop.ConsoleKit.Session; member=ActiveChanged
signal sender=:1.16 -> dest=(null destination) serial=19040 path=/org/freedesktop/ConsoleKit/Seat1; interface=org.freedesktop.ConsoleKit.Seat; member=ActiveSessionChanged
signal sender=:1.16 -> dest=(null destination) serial=19041 path=/org/freedesktop/ConsoleKit/Session2; interface=org.freedesktop.ConsoleKit.Session; member=ActiveChanged
signal sender=:1.16 -> dest=(null destination) serial=19042 path=/org/freedesktop/ConsoleKit/Seat1; interface=org.freedesktop.ConsoleKit.Seat; member=ActiveSessionChanged
   string "/org/freedesktop/ConsoleKit/Session2"

Specifically, you could use the GetActiveSession method.  Here's how with dbus-send (may require sudo):

$ dbus-send --system --type=method_call --print-reply --dest=org.freedesktop.ConsoleKit /org/freedesktop/ConsoleKit/Seat1 org.freedesktop.ConsoleKit.Seat.GetActiveSession

Then, depending on your application, you'll want to check out the returned object's properties, which should be an object path to a Session.


I cannot access my files on the other Ubuntu computer

SSH

Working within linux I suggest that you run openssh-server in the 'server'. Then you can log in via ssh and access files via sftp or use a graphical user interface for example 'Files' alias nautilus. At first you can log in with password, but it is a good idea to log in with SSH keys and disable log in with password (to increase the security).

In the following example the server has the IP address 192.168.0.13. Use your server's address. The following screenshots show login using password with 'Files'.

-o-

You can also log in remotely with a text user interface.

ssh guru@192.168.0.13

and use the option -X to make it possible to run graphical programs

ssh -X guru@192.168.0.13

like this example with  'Disk Usage Analyzer' alias baobab

-o-

Windows can connect via WinSCP or Filezilla to an SSH server.


how to fix the error while downloading video

You are using an outdated version of youtube-dl. Since YouTube changes its interface regularly, youtube-dl has its own update mechanism. Type

sudo youtube-dl -U

to update. If that does not work, feel free to file a bug at the youtube-dl project. Don't forget to include the full output when calling youtube-dl with -v, like this:

[debug] System config: []
[debug] User config: []
[debug] Command-line args: ['-v', 'http://youtu.be/My2FRPA3Gf8']
[debug] Encodings: locale 'UTF-8', fs 'UTF-8', out 'UTF-8', pref: 'UTF-8'
[debug] youtube-dl version 2014.01.27.2
[debug] Python version 2.6.6 - Linux-2.6.32-274.7.1.el5.028stab095.1-x86_64-with-debian-6.0.8
[debug] Proxy map: {}
[youtube] Setting language
[youtube] My2FRPA3Gf8: Downloading webpage
[youtube] My2FRPA3Gf8: Downloading video info webpage
[youtube] My2FRPA3Gf8: Extracting video information
[youtube] My2FRPA3Gf8: Encrypted signatures detected.
[youtube] encrypted signature length 85 (44.40), itag 22, html5 player ima-en_US-vflkClbFb
[youtube] encrypted signature length 85 (44.40), itag 43, html5 player ima-en_US-vflkClbFb
[youtube] encrypted signature length 85 (44.40), itag 18, html5 player ima-en_US-vflkClbFb
[youtube] encrypted signature length 85 (44.40), itag 5, html5 player ima-en_US-vflkClbFb
[youtube] encrypted signature length 85 (44.40), itag 36, html5 player ima-en_US-vflkClbFb
[youtube] encrypted signature length 85 (44.40), itag 17, html5 player ima-en_US-vflkClbFb
[youtube] encrypted signature length 84 (41.42), itag 137, html5 player ima-en_US-vflkClbFb
[youtube] My2FRPA3Gf8: Downloading js player vflkClbFb
[youtube] encrypted signature length 84 (41.42), itag 136, html5 player ima-en_US-vflkClbFb
[youtube] encrypted signature length 84 (41.42), itag 135, html5 player ima-en_US-vflkClbFb
[youtube] encrypted signature length 84 (41.42), itag 134, html5 player ima-en_US-vflkClbFb
[youtube] encrypted signature length 84 (41.42), itag 133, html5 player ima-en_US-vflkClbFb
[youtube] encrypted signature length 84 (41.42), itag 160, html5 player ima-en_US-vflkClbFb
[youtube] encrypted signature length 84 (41.42), itag 140, html5 player ima-en_US-vflkClbFb
[youtube] encrypted signature length 84 (41.42), itag 171, html5 player ima-en_US-vflkClbFb
[youtube] encrypted signature length 85 (44.40), itag 137, html5 player ima-en_US-vflkClbFb
[youtube] encrypted signature length 85 (44.40), itag 136, html5 player ima-en_US-vflkClbFb
[youtube] encrypted signature length 85 (44.40), itag 135, html5 player ima-en_US-vflkClbFb
[youtube] encrypted signature length 85 (44.40), itag 134, html5 player ima-en_US-vflkClbFb
[youtube] encrypted signature length 85 (44.40), itag 133, html5 player ima-en_US-vflkClbFb
[youtube] encrypted signature length 85 (44.40), itag 160, html5 player ima-en_US-vflkClbFb
[youtube] encrypted signature length 85 (44.40), itag 140, html5 player ima-en_US-vflkClbFb
[youtube] encrypted signature length 85 (44.40), itag 171, html5 player ima-en_US-vflkClbFb
[download] Destination: Miley Cyrus - Wrecking Ball-My2FRPA3Gf8.mp4
[download] 100% of 40.76MiB in 00:04


How do I install the global appmenu (mac menu)?

Instead use this:

sudo apt-get install appmenu-gtk indicator-appmenu indicator-applet-appmenu

Add it to your panel by right clicking on the panel, choosing Add to Panel and then select Indicator Applet Appmenu

I got this from OMGUbuntu

Hope that helps!! :)


What is the difference between shutdown and poweroff commands?

The answer is in the poweroff(8) man page:

  When  called  with  --force  or when in runlevel 0 or 6, this tool invokes the reboot(2) system
  call itself and directly reboots the system.  Otherwise this  simply  invokes  the  shutdown(8)
  tool with the appropriate arguments.

A bit of explanation:

The reboot() system call
is the kernel function used to reboot, halt or poweroff the
machine. It is called reboot for historical reasons, but performs
all three functions, depending on parameters that are passed to it.
The difference between halt and poweroff is that in halt mode
the control is returned to a "ROM monitor" (think BIOS), whereas
poweroff simply powers the system board off. (I have never seen
this distinction in effect on PC architectures; on Sun machines it's
different, though.)
So, when the poweroff program is invoked when the Linux system is
in runlevel 0 or 6, it will immediately power off the system via the
reboot(RB_POWEROFF) system call.
In any other case, poweroff will just behave as an alias for
shutdown now.


How to switch off sidebar menu at thin clients based on Ubuntu 12.04?

You could always run a command when they login?

The updated commands for hiding the Unity launcher would be:
gsettings set org.compiz.unityshell:/org/compiz/profiles/unity/plugins/unityshell/launcher-hide-mode 1

And for unhiding the Unity launcher:
gsettings set org.compiz.unityshell:/org/compiz/profiles/unity/plugins/unityshell/launcher-hide-mode 0

Source


How to connect GTK3 button click events to callbacks

Have a look at this example on how to connect events to callbacks in Gtk 3 and Python. In short, you use the connect() method to connect a signal name (which is emitted when an event such as a button click occurs) to a callback, which is the function that will handle your event.

def __init__(self):
    # Other initialization code

    # We create a button
    self.button = Gtk.Button(label="Click Here")
    # We connect the 'clicked' signal to the callback
    self.button.connect("clicked", self.on_button_clicked)

def on_button_clicked(self, widget):
    # This function will be called whenever the user presses the button
    print "Hello World"

You can also watch the Gtk3 Introduction Workshop video that is part of the Ubuntu App Showdown.

If you're using Glade, you will need to make to make sure that the on_<name-of-your-button>_clicked() callback is defined in the code as a method of your window.

If you're using Quickly, that's all you'll need to worry about.

Otherwise, you'll need to manually connect the signal to the callback. You've got two options:

Do it in the code with self.builder.get_object('name-of-your-button').connect() - assuming builder is the name of your Gtk.Builder() in which you've loaded your Glade UI.
Do it with Glade looking at the properties of your button, choosing the signals tab and then writing the name of your callback in the 'clicked' signal.


How can I change Firefox's default dictionary?

Firefox seems to use myspell/hunspell and listing /usr/share/myspell/dicts/ shows me the dictionaries that I'm given options to use:

$ ls -1 /usr/share/myspell/dicts/*.dic
/usr/share/myspell/dicts/en_CA.dic
/usr/share/myspell/dicts/en_GB.dic
/usr/share/myspell/dicts/en_ZA.dic
...

Search for the dictionary filename in installed packages:

$ dpkg -S /usr/share/myspell/dicts/en_CA.dic
hunspell-en-ca: /usr/share/myspell/dicts/en_CA.dic

So with the Canadian language package name, the fix is to remove it:

sudo apt-get remove hunspell-en-ca


There are loads of SMS gateway services. These companies charge a small amount to provide you with a HTTP method to retrieve SMS messages sent to one of their phone numbers.

The charge is small (2p a message on one I was looking at) and usually without an ongoing commitment... But this is something that can add up.

Alternatively, if you have a GSM modem and a valid SIM card, you could look at gsmsmsd. IMO the gateway is going to be more reliable but the modem might be cheaper at scale (there are many plans with unlimited messaging).


The command you're looking for is head -n D where D can be any integer number. Example:

curl http://example.com/123 | head -n 3