You may be totally wrong when you say: "I cannot setup an eclipse alias, when "eclipse" is listed in the apt repository". That's because the sequence adopted by the BASH shell to search for how to execute your command is as follow:

  Before a command is executed REDIRECTION is done. Then following sequence used by SHELL
  ALIASES
  Parameter expansion, command substitution, arithmetic expansion, and quote removal before being assigned to the variable
  Shell FUNCTION
  BUILTIN command
  HASH tables
  PATH variable
  If everything fails, you see command not found error message and if an appropriate packet exist in repositories, it will let you know.

Source: How BASH Shell Command Search Sequence Works.

So you can use all your aliases with confidence.

Anyway, here is a list of choices about how to "create a new terminal command" for eclipse:

Create a new alias:

alias eclipse="/path/to/eclipse"

Se also: How to create a permanent "alias"?
Create a new shell function called eclipse:

eclipse () { /path/to/eclipse; }

Add this function at the end of your ~/.bashrc file if you want to use it every time when you open the terminal.
Create a new bash script called eclipse:

#!/bin/bash

/path/to/eclipse

Save this script in your~/bin directory and don't forget to make it executable using the following command:

chmod +x ~/bin/eclipse

Create a symbolic link for eclipse:

sudo ln -s /path/to/eclipse /usr/bin/eclipse

Add /path/to/eclipse to your PATH environment variable (this answer):

PATH="/path/to/eclipse:$PATH"

See also: How to add a directory to the PATH?

Now, the choice is yours!


The host should be connected to your wifi router network, the vm uses a virtual lan to connect to your host and share it's internet connection. In Ubuntu you will see a lan connection, that is what you want.

Network Connection Journey:

Router <----As-Wifi----> Host <----As-Virtual-Lan----> Virtual Machine

Screenshot Of Default VirtualBox Network Settings For An Ubuntu VM:

Screenshot Of Default Network Settings Within The Ubuntu VM:


Where can I find a Unity configuration file?

Unity and Compiz are using GConf to store their settings.  GConf is a configuration store that provides an API for applications to read and write configuration information and receive notifications when configuration items change.  The configuration data is saved under ~/.gconf, but modifications should only be made through the GConf daemon.

You can modify the Unity settings directly using gconf-editor and browsing to /apps/compiz-1/plugins/unityshell/screen0/options.  You will notice that Unity responds to changes instantly, the same as CCSM.

If you want a command line tool to modify these settings, use gconftool-2.  For example, to reduce the launcher icon size I can do:

gconftool-2 --set /apps/compiz-1/plugins/unityshell/screen0/options/icon_size --type int 32


I had the same problem, i fixed it by running

snap connect discord:system-observe :system-observe
snap connect discord:unity7 :unity7

as seen here.


Keyboard with Ubuntu Logo for less than $100?

You could always put a sticker on and then something like clear nail polish over it to protect it.


Ubuntu 14.10 no caching page found on all hard drives

This is not a serious error, it is not actually an error at all. All that this indicates is that your drive's SCSI mode pages don't contain an entry for caching. A mode page allows reading metadata related to the device, and changing the settings of the device, for example, to disable or enable write caching.
In this case, your device does not provide information about any underlying write caching mechanism. This could be for a variety of reasons, most likely that either the device may be passed through an interface which presents itself as a SCSI device, but does not expose any cache (for example, if you were exposing the drive using a USB enclosure), or the device may simply have no cache (although this seems to not be true for your particular device).

Source


There are several screen recording tools that will allow you to record a window (with audio), a portion of the screen or the whole screen, which includes but not limits to:

Istanbul

gtk-recordMyDesktop

And there are probably lots of more useful tools. But this is what I have tested and does the trick for me. They are also probably in the repositories by default but I can't say that for sure.

Good luck!


Ubuntu 18.04 gnome desktop: all icons, font for all application is very small

You may use (GNOME) Tweaks to adjust font sizes of various elements.
First install Tweaks by running
sudo apt install gnome-tweaks

(or sudo apt install gnome-tweak-tool).
Then launch Tweaks and go to the Fonts section, you'll get the options to change font sizes.
Check the answer in details


I use GIMP to open PSD files.

Some more advanced layer groups might be broken, but in most cases it works OK.


Partition doesn't show after formatting failed

You can access grub menu with press and hold shift key on keyboard after your machines boot screen disappear.But you will see there is no windows entry there so you should add it into grub in Ubuntu.To add windows in grub open a terminal and type:

sudo gedit /etc/grub.d/40_custom

and paste the following and save:

menuentry "Windows" {
insmod part_msdos
insmod ntfs
set root='(hd0,msdos3)'
chainloader +1
}

Then in terminal type:

sudo update-grub2

Now reboot your machine and hold shift key you will see windows menu entry there select and enter if your C drive is okay you can access windows and try to correct/check your partition in windows.


How to install other languages on Libreoffice Snap

Manually repacking snap or injecting -el localization packages seems to be difficult.
So the better option is to drop Snap, and use LibreOffice from “LibreOffice Packaging” team PPA:
sudo add-apt-repository ppa:libreoffice/ppa
sudo apt-get update
sudo apt-get dist-upgrade

Then install Greek packages with
sudo apt-get install libreoffice-l10n-el libreoffice-help-el


After a lot of time spent on this issue I was able to get it resolved by downloading the newest Ubuntu 18.10 image, burn it to an USB stick and going again through the installation process, like I did many times before. It worked from the first try, but at this time I had a totally empty hard disk to use. I went through the custom partitioning myself and even instructed it to put the root partition on the Intel M2 SSD (mounted on a adapter that is connected to a PCIe port on an older motherboard). I made the rest of the Linux partitions on the hard drive, except "/usr" that I did not separate from the root mount point. I tried using swap this time. Also, had about 75 MB for the "bios boot reserved partition" and another 75-100 MB for the "EFI reserved boot partition" that were the first two partitions created on the hard drive, in that order. It worked this time. I suspect there something wrong with the previous installer and/or the handling of the two boot partitions mentioned previously (bios_boot and EFI).


What Next? What do I do at the GRUB prompt? WUBI Install

This means that something went really wrong on installing your system. :( What you see is the GRUB rescue.

First of all try to hit Enter. If does not boot, then enter the following commands (every line is followed by Enter):

insmod (hd0,2)/boot/grub/linux.mod
set prefix=(hd0,2)/boot/grub
set root=(hd0,2)
insmod (hd0,2)/boot/grub/linux.mod
linux /vmlinuz root=/dev/sda2 ro
initrd /initrd.img
boot

After a successful boot, open a Terminal and type:

sudo update-grub

and let's hope the best.

NOTE
It seems that you are a beginner, so I advice you to search an expert to help you.


Debian packaging of python library with extra files

The easiest and most default solution is to create a debian/install template for the package with contents like:

./tests/* usr/lib/python3/dist-packages/proj1/tests/
./misc/* usr/lib/python3/dist-packages/proj1/misc/

Another way is to update project's debian/rules as:

#!/usr/bin/make -f

%:
    dh $@ --with python3 --buildsystem=pybuild

override_dh_install:
    dh_install ./test/* usr/lib/python3/dist-packages/proj1/tests/
    dh_install ./misc/* usr/lib/python3/dist-packages/proj1/tests/


How to find port of a network scanner for UFW

You can use fallowing command to trace communication between pc and printer

sudo tcpdump -i interface | grep ip_address_of_printer

You will see output of network communication, protocol, port ...

After that you can set ufw

Another way is to use command

netstat -atu | grep ip_address_of_printer

With this command you will see active connection between pc and printer.

Also you can allow all trafic for printer ip address

sudo ufw allow from ip_address_of_printer


It's Definitely your Proxy. Proxy connections are often unstable(for various reasons) and can cause many Problems. I'd recommend only using the Proxy when you have to. For instance try turning off the Proxy and then install Adobe Flash. Since the Repos don't use region blocks you should be able to download and install anywhere in the world. Only if there are some really strange restrictions on your ISP would you not be able to install software on Ubuntu over the net.

After you're done installing whatever else you need you can turn the proxy back on and get on with your Web surfing.

I'd also recommend installing a Download Manager like DownThemAll for use while on a Proxy. A Download Manager can make multiple connections to a source to speed up downloads and automatically reconnect if a connection error occurs. Some (like DownThemAll) include Hash mechanisms so you can input the Download's Hash for the Manager to check with to make sure everything downloaded all right.


If you want to remove and install samba again (and than configure smbd server)
Try the following:

sudo apt-get purge samba samba-common
sudo rm -rf /etc/samba/ /etc/default/samba
sudo apt-get install samba


How do I mount USB drives as given user automatically?

Review the following forum post on UDEV rules.
http://ubuntuforums.org/showthread.php?t=168221

The key piece of information for your particular scenario would be the OWNER parameter which is not actually documented in the above post, but you can read about it here:
http://www.reactivated.net/writing_udev_rules.html#ownership


Which smartphones can have Ubuntu software?

Here is a link to the XDA website. Some one says they have managed.

He has left instruction.

Ubuntu 10.10 on LG Optimus 3D xD

Hope it helps


apt-get -- remove triggers a package install?

The package php5 depends on having either apache2 or cgi installed.

The two main options to satisfy this dependency is either libapache2-mod-php5 or php5-cgi.

If you remove one, the system will install the other, otherwise php5 would have an unmet dependency.

You can see the dependencies at php5  in the Ubuntu packages database.


How to copy and paste text from Windows notepad to Nano editor running in Ubuntu( running in VMWare Workstation Player )

to copy text from host to guest you need to follow this steps:

ensure that your host ubuntu is updated by this two commands:
sudo apt update
sudo apt upgrade

open your vbox and start the virtual guest environment.

use the toolbar click on Devices then> click on Insert Guest Additions CD image.

after installing or upgrading the guest addition you need to ensure that the Virtual Box accepting "Shared Clipboard".

go to your virtual box> click on Settings then> General > Advanced and change the Shared Clipboard to "Bidirectional".

now reboot your Virtual Box and it should work.

Notice that in every environment ou use you should copy and paste in the environment shortcuts (cntrl+shift+c) for ubuntu (cntrl+c) for windows and so on.

notice: after upgrading your ubuntu os you might need to update your guest additions to.
hope that will help you out.


Why are my two monitors switched upon login?

Apparently this had something to do with my compositor – I recently tweaked the scripts I use to start and stop the compositor, and apparently broke something. Reverting the changes makes everything work again.


./ is your current working directory, which is $PWD == $(pwd).

BTW: -O is output the document to a file. Another form -O- | xxx or -O - | xxx is also very common, which outputs the downloaded document to stdout and pipe it to other commands.


I've had the same issue, the first workaround described in ubuntu-lightdm-black-screen on webup8.org solved it for me. Seems to be a timing issue with LightDM and mostly SSD's.


UTF-8 Telugu text not rendering correctly in terminal

Turns out gnome-terminal doesn't support CTL(Complex Text Layout) yet. There is an open issue for this.

For now, we can use Konsole which handles CTL.


As explained here the issues are because of the IOMMU, do:

I found a solution here
(panariga's
"Workaround 2") with which I could keep the IOMMU enabled in the BIOS
and without needing any custom drivers. I get a steady 60 fps running
glxgears.

Workaround 2:
Add iommu=pt to kernel command line in /etc/default/grub:
sudo nano /etc/default/grub

Edit the line beginging GRUB_CMDLINE_LINUX_DEFAULT to look like this
GRUB_CMDLINE_LINUX_DEFAULT="quiet splash iommu=pt"

Update GRUB:
sudo update-grub

Reboot
reboot


My research indicate that your laptop has a SynPS/2 Synaptics TouchPad

Execute the following command

xinput list

You should see a output like the following

⎡ Virtual core pointer                      id=2    [master pointer  (3)]
⎜   ↳ Virtual core XTEST pointer            id=4    [slave  pointer  (2)]
⎜   ↳ Logitech Unifying Device. Wireless PID:1025   id=11   [slave  pointer  (2)]
⎣ Virtual core keyboard                     id=3    [master keyboard (2)]
    ↳ Virtual core XTEST keyboard           id=5    [slave  keyboard (3)]
    ↳ Power Button                          id=6    [slave  keyboard (3)]
    ↳ Video Bus                             id=7    [slave  keyboard (3)]
    ↳ Power Button                          id=8    [slave  keyboard (3)]
    ↳ USB Camera                            id=9    [slave  keyboard (3)]
    ↳ AT Translated Set 2 keyboard          id=10   [slave  keyboard (3)]
    ↳ Toshiba input device                  id=12   [slave  keyboard (3)]
    ↳ Logitech Logitech Wireless Headset    id=14   [slave  keyboard (3)]

To enable the touch pad

xinput set-prop [device id] "Device Enabled" 1

You can do a following to check the properties

xinput --watch-props [device number]

You also can try

lsmod
lsmod | grep mouse (Check the if the touchpad is loaded)

sudo modprobe -r psmouse
sudo modprobe psmouse proto=imps

Also you can take look at following post too.

Touchpad not working on MSi U130 after login in


I do not believe you can downgrade, but you can completely reset WSL2 with a couple of commands:

Open Command Prompt
"Uninstall" WSL2:
lxrun.exe /uninstall /full

Delete everything in AppData\Local\lxss*
Re-install WSL2:
lxrun.exe /install

Alternatively, depending on which version of Windows you're using:

Open "Add/Remove Programs"
Find "Ubuntu" and access the advanced options
Choose from:

repair ⇢ attempts to fix any broken configuration files
reset ⇢ returns the installation to default (same as the process above)
terminate ⇢ kill the VM, darn the consequences
uninstall ⇢ remove WSL2 from the system


How to change to default english language?

Change default language for the console :

Edit /home/USERNAME/.bash_profile file (create if not exist) and add the line export LANG=de(example given for German)


You can change this in the Scale plugin:


how do I get the nautilus navigation buttons and side panel back?

I think nautilus has switched to the new dconf backend.

Using 'dconf-editor' does the trick for me. Settings for nautilus is in 'org.gnome.nautilus'.


There is a command called (in an excess of originality) rename, that allows you to rename files using regular expressions.

In this case, you probably want to do:

rename 's/\*//' files...

Which will remove the first * character found in each filename.

You can use rename -n to list the renames that will be performed without actually doing them if you're worried about the regex not being correct.


Juju bootstrap on local machine gives an error

Two separate issues.

libvirt requires the user to be in the libvirt group. The login shell/desktop session that installed the libvirt package unfortunately won't have the groups active, till the next login. The easiest thing to do is to just logout/login.
We had some localization issues with the release. A fix is in our review queue and it should be available from the ppa by the end of the week has landed in the PPA.
https://bugs.launchpad.net/juju/+bug/873335


Why are my ubuntu partitions mounted somewhere else?

Open a terminal and type:

sudo blkid

Find and copy needed uuid to reproduce it in fstab then run:

sudo -H gedit /etc/fstab

add to the end lines like this (e.g.):

#My-Partition
UUID=xxxxxxxxxxxxxxx /media/Robbino1              ext3
defaults 0 1

Where xxxxxxxxxx is /dev/sda uuid that you copied, then reboot.

You can also manually change permissions (e.g.):

rw,auto,user,nls=utf8,umask=003,gid=1000,uid=1000 0 0

More detailed on mounting options here.


How to remove outlines around windows when switching with Alt+Tab?

I can reproduce this in a normal GNOME session (without Compiz running). Unfortunately I don't think it's possible to disable those preview borders (I skimmed through Metacity's source code and couldn't find anything relevant).


Okay, this problem happened because your EXT4 partition's journal has appeared to become corrupt. Fortunately, this is relatively easy to fix.

Decrypt Your Device
In order to run fsck on your encrypted EXT4 filesystem, we need to decrypt the device first. Run the below command, replacing /dev/sdXY with the LUKS partition we're targeting:

sudo cryptsetup luksOpen /dev/sdb1 luks_USB

Repair Your Device
If fsck wants to play nice, you can just run it on the now-exposed dm device. Replace dm-1 with whatever the DM is actually reported as, and do whatever FSCK wants you to do:

sudo fsck /dev/dm-1

fsck might refuse to work on your drive, citing that it's "mounted." If this is the case, we need to do some trickery to fix the broken things. If this is the case, do step 1 above and then:

Image Your Drive
Once you have your drive mounted, we're going to have to image it. You can place the image somewhere useful, like in your home folder. Run the below command paying very careful attention to not mix up the if and of statements. Replace dm-1 with whatever your drive's DM is, as per the norm:

sudo dd if=/dev/dm-1 of=~/drive.img

Repair The Image
Now, we can run fsck on the image itself. Be sure to (as always) listen to fsck and do whatever it wants you to do to fix the device.

sudo e2fsck ~/drive.img

Restore The Drive
Once we have a working image (you can test with mount), we can write it back to the USB device with the below command. Be very careful that you're specifying the right targets for dd, or else you will lose data:

 sudo dd if=~/drive.img of=/dev/dm-1

Once your drive is fixed (with either path), run luksClose on your device, and go back to your normal life with a working encrypted drive.


Bumblebee unable to load nvidia-uvm without sudo

Try to clean and reboot with vesa-standard and then re-install nvidia the different way :

With this I refer to the link given here :

Anyone has successfully installed CUDA 7.5 on Ubuntu 14.04.3 LTS x86_64?

There is Method A and Method B explained by me :

First of course clean the non-suiting installations with :

sudo apt-get remove bumblebee
sudo apt-get install ppa-purge
sudo apt-get purge nvidia*
sudo ppa-purge ppa:xorg-edgers/ppa
sudo reboot

For place reasons only Method A here :

sudo add-apt-repository ppa:graphics-drivers/ppa
sudo apt-get update
sudo apt-get install nvidia-355 nvidia-prime

or is this working ?:

sudo apt-get install nvidia-358 nvidia-prime ?
sudo reboot

  sudo apt-get install --reinstall bumblebee

  sudo reboot

Due to your older graphicscard nvidia-355 nvidia-prime might be sufficient !

Happy coding and merry x-mas. If you need absolutely bumblebee, you can add it back in the end (due to a demanding program).


How to exclude files in torrent from download?

Yes, it is posible.

Open transmision ->Click on the torrent you wish to edit -> Afther you click, you have on transmision top bar a button called Properties click on it.

A new windows should appear
On that windows you have a tab called Files click on it
In this tab you should see some checkboxes, if you cannot see the ckeckboxes,resize the windows and make it bigger.


Create full folder structure from "New document" (Templates) menu

I don't think this is possible via the Templates menu but you could create a Nautilus script to achieve the same. Something akin to the following should work:

#!/bin/bash

# Create folder structure from template

TemplateDir="$HOME/Folder templates/dir1"
WorkingDir="$PWD"

cp -r "$TemplateDir" "$WorkingDir/"

Place your folder with subfolders and files in ~/Folder templates and modify the TemplateDir line accordingly. Then follow these instructions to install the script.

When you're done, right click on an empty area in your Nautilus window and select Scripts → your script name. This should create a copy of your template directory in the current folder.


How can I install specific version of MYSQL

Download desired MySql generic binaries for your platform  from http://dev.mysql.com/downloads/mysql/
Then just install using simple linux script(run from /share directory where setup binaries are placed ) , refer below for a script i used for years , worked for 5.1,5.5,5.6

Note :
1.MySql 5.6 does not come with default 'my.cnf' therefore be careful
2. Make sure you uninstall any exiting MySql setup

e.g

#!/bin/sh
DOWNLOAD_DIR="/share"
ZIP_FILE=mysql-enterprise-5.1.55-linux-x86_64-glibc23.tar.gz
MYSQL_DIR=mysql-enterprise-5.1.55-linux-x86_64-glibc23

if test -f $DOWNLOAD_DIR/mysql-enterprise-5.1.55-linux-x86_64-glibc23.tar.gz; then
    echo "Starting MySql 64 bit install..."
elif test -f $DOWNLOAD_DIR/mysql-enterprise-5.1.55-linux-i686-glibc23.tar.gz; then
    echo "Starting MySql 32 bit install..."
    ZIP_FILE=mysql-enterprise-5.1.55-linux-i686-glibc23.tar.gz
    MYSQL_DIR=mysql-enterprise-5.1.55-linux-i686-glibc23
else
    echo "installation tar.gz not found, quitting..."
    exit 2
fi

groupadd mysql
useradd -g mysql mysql
cd /usr/local
gunzip < $DOWNLOAD_DIR/$ZIP_FILE | tar xf -
ln -s /usr/local/$MYSQL_DIR mysql
cd mysql
chown -R mysql .
chgrp -R mysql .
scripts/mysql_install_db --user=mysql
chown -R root .
chown -R mysql data
# bin/mysqld_safe --user=mysql &
cp /usr/local/$MYSQL_DIR/support-files/mysql.server /etc/init.d/mysql
#cp $DOWNLOAD_DIR/mysql-cnf.txt /etc/my.cnf
chmod 755 /etc/init.d/mysql
cp support-files/mysql-log-rotate /etc/logrotate.d
update-rc.d mysql defaults
/etc/init.d/mysql start
# create path links for most commonly used executables
ln -s /usr/local/mysql/bin/mysql /usr/bin/mysql
ln -s /usr/local/mysql/bin/mysqladmin /usr/bin/mysqladmin
ln -s /usr/local/mysql/bin/mysqldump /usr/bin/mysqldump
/usr/local/mysql/bin/mysqladmin -u root password 'xxxxx'
echo "Done"
exit 0


I usually check to see if the hardware is certified to work with Ubuntu before buying it: http://www.ubuntu.com/certification/catalog/


Center window horizontally and vertically

No, there isn't a default keyboard shortcut to center windows. (See the comment by mgraesslin in this reddit thread for why not!)

A convenient way to see what's available, by default, is to look at the[kwin] section in your ~/.config/kglobalshortcutsrc.

However, if you want windows to be centered when they're initially opened, navigate to System Settings > Window Management > Window Behavior > Window Actions and Behavior. In there, click on the Advanced tab and then make your choice from the dropdown that appears when you click on Placement.

If you want an existing window currently not centered to be centered by using a keyboard shortcut, look at the available Kwin Scripts compatible with your version of software.

Move Window to Center is one such script:

  A simple KWin script that introduces a KDE Global Shortcut (Meta+C by default) for centering the active window in the current screen.

To install this script in Kubuntu 18.04***:

Before installing this script, please ensure that Meta+C has not already been assigned to something else. This script requires that Meta+C be available as the keyboard shortcut.

Open System Settings > Window Management > KWin Scripts.
Click on Get New Scripts ….
A new window opens. Enter "center" in the search box.
Look for Move Window to Center by artemisfowl2007 and click on Install. Once the installation is done, you can close the window.
Reboot. Pressing Meta+C should now move the active window to the center of your screen without altering its dimensions.

***This script also works in Kubuntu 19.10 (with Plasma 5.18.3) or in Kubuntu 20.04 (scheduled for release in April 2020).


How to enable AMD Turbo Core on Ubuntu 14.04?

[Update 2015]

Starting with Linux 3.16:

The value for bapm can be provided as a module parameter (see here).
The value of bapm is set to 1 by default for Kaveri, Kabini and desktop Trinity, Richland systems (see here), resulting in Turbo Core being enabled.

Which means that with Kernel 3.16 or later, Turbo Core should work right out of the box with radeon in many cases.

If you run Debian, or if you run Ubuntu and the above is not true for you, please refer to How to set up a Debian system (focus on 2D or console/server) with an AMD Turbo Core APU for maximum energy and computing efficiency?

[Update 2014-Aug-07]

I published a detailed analysis over at unix-stackexchange.com which contains (at least for me) a few surprises. Such as the ondemand governor potentially being worse than performance (at least with the Richland A10-6700) and fglrx apparently using some questionable tricks to improve short-term boosts, abruptly having to compensate for that in the long run. I'm glad I had a closer look at this.

[Original Answer]

I am in the process of configuring a system with an A10-6700 using Ubuntu 14.04 Server.

The output of cat /proc/cpuinfo does not, and will not, reflect any processor boost. The boost is an autonomous decision on the chip based on potentially complex criteria. Read about it here.
The output of cpufreq-info will not show available boost frequencies, but the output of cpupower frequency-info will. For the A10-6700, it should show 4300 MHz (Pb0), 4200 MHz (Pb1) and 3900 MHz (Pb2) in addition to the regular 3700, 3400, 2700, 2300 and 1800 MHz.
The output of cpufreq-aperf (after modprobe msr) is comparable to the output of cpupower monitor. The frequencies shown by these tools are supposed to reflect boosts.
With the standard video driver or even the radeon module in the kernel, I did not succeed to get the A10-6700 to use a boost frequency (using stress --cpu 2).
Withe the ATI/AMD fglrx module loaded into the kernel, the processor will boost two cores permanently (and apparently also the remaining cores temporarily). This was tested without X being used or even configured.

Remember, the decision for or against the boost is made by the APU autonomously. My guess at this point in time is that the APU cannot decide whether its current power dissipation leaves room for a boost unless the integrated graphics unit is adequately initialised.

The video output with the standard module differs from the output when fglrx is loaded. Therefore, we can only guess whether the kernel can put the APU into the presumably required "smart" (power loss aware) mode by itself, while still using the VGA module.

Until this gets sorted out, I will simply load fglrx. The downside is that building it it requires a lot of stuff which you don't want on a server and which needs to be deleted after compilation.

Also, fglrx is almost 9 MB in size. It's not a problem but knowing that it's mostly dead freight in this case doesn't make me too happy.

[Edit 2014-Jul-24]

I now reported this bug.

I noticed another bug has also been reported: If in fact you use fglrx and try to use the Dynamic Power Management mode.


how to login as admin user or reset admin user password when laptop keypad and external keyboard is not working

Pretty simple, just use the onscreen keyboard & mouse. In unity greeter rather obvious, click on the accessibility icon in greeter panel, ect.

In the currrent 18.04 gdm (gnome-shell) greeter click on the  accessibility icon > enable the onscreen keyboard, then pull it up from bottom of the screen with mouse.


I am currently running 12.04, my system has just shown me that I can upgrade to 12.10, I am aware that there is a version 13. Should I upgrade?

You are using 12.04 LTS  which is having support up to April 2017. So up to 2017 you will receive all types of updates from Ubuntu. Ubuntu 14.04 is a LTS so when ever its released you can upgrade from 12.04 > 14.04 .

If you wan to upgrade to 13.04 then, you first upgrade to 12.10 and then to 13.04 .In a few days 13.10 will be out.

12.04 > 12.10 > 13.04 > 13.10 .

Regarding crashes and stability:  When your Ubuntu version is still under support it will get all types of updates including fixing crashes.

Updates: You can click on all of the updates but not "proposed/pre-released updates" , they are released for testing.

must read these :

https://wiki.ubuntu.com/Releases

https://wiki.ubuntu.com/SoftwareUpdates


Assuming you're running Ubuntu Desktop, you can use Ctrl+Alt+F7 to get back to the desktop GUI.  If this doesn't work, you can either reboot or run startx in the prompt.


The requested URL /dashboard was not found on this server

In my user's point of view, you must first run

sudo service mysql stop

in your issues and then run

sudo /opt/lampp/lampp restart


Rclone Failed to sync: googleapi: Error 403: We're sorry, but this service is not available in your location, forbidden

403 with that message indicates Google does not offer this service to your country or location.

Given the geolocation from your VPN question placing you in Iran, this is likely due to sanctions in place on your country and Google is abiding by the law of those sanctions and disallowing Iraq access to this service.  Unfortunately, this is Google’s decision and there is nothing we can really do to assist you in this matter other than suggest you use a VPN (which may or may not also forbid Iraq from connecting)


Is there a skin for VLC that would allow the same access and options as the native style?

Have you checked out the skin site?  Darklounge sounds somewhat like what you want, but I'm not sure. if it was the buttons or the menu's your after.

VLC Skins


How do you start a new python program in quickly/gedit?

A good starting point for app development with quickly and python is here: http://developer.ubuntu.com/resources/tutorials/all/diy-media-player-with-pygtk/

In general, you can see how quickly handles other .ui files in your code in the lines

from test.AboutTestDialog import AboutTestDialog
from test.PreferencesTestDialog import PreferencesTestDialog
[...]
self.AboutDialog = AboutTestDialog
self.PreferencesDialog = PreferencesTestDialog

You would add your new window the same way:

Create a new file for your menu window under your test directory, such that your code could look like this:

from test.AboutTestDialog import AboutTestDialog
from test.PreferencesTestDialog import PreferencesTestDialog
from test.MenuTestWindow import MenuTestWindow
[...]
self.AboutDialog = AboutTestDialog
self.PreferencesDialog = PreferencesTestDialog
self.MenuWindow = MenuTestWindow

Then you can show the Window in your on_button1_clicked method like this:

def on_button1_clicked(self, widget, data=None):
    print "Loading Menu!"
    self.MenuWindow.show()

Now the only question remaining is, what does your MenuTestWindow class look like? I would simply look into the quickly created classes and write something like this:

import gettext
from gettext import gettext as _
gettext.textdomain('test')

import logging
logger = logging.getLogger('test')

from test_lib.MenuWindow import MenuWindow

# See test_lib.MenuWindow for more details about how this class works.
class MenuTestWindow():
    __gtype_name__ = "MenuTestWindow"

    def finish_initializing(self, builder): # pylint: disable=E1002
        """Set up the about dialog"""
        super(MenuTestWindow, self).finish_initializing(builder)
        # Code for other initialization actions should be added here.

which leaves us with the test_lib.MenuWindow file and class (also stolen from the quickly defaults):

import gtk
import logging
logger = logging.getLogger('test_lib')

from . helpers import get_builder, show_uri, get_help_uri
from . preferences import preferences

# This class is meant to be subclassed by MenuWindow.  It provides
# common functions and some boilerplate.
class Window(gtk.Window):
    __gtype_name__ = "Window"

    # To construct a new instance of this method, the following notable
    # methods are called in this order:
    # __new__(cls)
    # __init__(self)
    # finish_initializing(self, builder)
    # __init__(self)
    #
    # For this reason, it's recommended you leave __init__ empty and put
    # your initialization code in finish_initializing

    def __new__(cls):
        """Special static method that's automatically called by Python when
        constructing a new instance of this class.

        Returns a fully instantiated MenuTestWindow object.
        """
        builder = get_builder('MenuWindow')
        new_object = builder.get_object("menu_window")
        new_object.finish_initializing(builder)
        return new_object

    def finish_initializing(self, builder):
        """Called while initializing this instance in __new__

        finish_initializing should be called after parsing the UI definition
        and creating a TestWindow object with it in order to finish
        initializing the start of the new TestWindow instance.
        """
        # Get a reference to the builder and set up the signals.
        self.builder = builder
        self.ui = builder.get_ui(self, True)

(I hope I didn't miss anything... :-)

This should be all.

However: If I would be writing this application, I would probably not use a different .ui file, but place every additional gui/window in the main window ui file (lets call the new window MenuWindow) and access it via something like this:

def on_button1_clicked(self, widget, data=None):
    mw = self.builder.get_object("MenuWindow")
    mw.show()

This way you don't have to create all those other classes and files. But it is your app and you have to know yourself, if a separate .ui file is needed in your case.


Ubuntu Server installation command mode - cfdisk command not found

Normally this command is located in /sbin. Please try to run it as sudo /sbin/cfdisk.


The Dell XPS 9343 microphone is currently broken on kernel 3.16.

You have to use kernel 3.19 which contains a fix for the microphone.

There are two ways to do it :

Manually install kernel 3.19 on your current Ubuntu installation.

sudo apt-get install linux-headers-generic-lts-vivid linux-image-generic-lts-vivid

Upgrade to Ubuntu 15.04 (which has kernel 3.19).
I wrote a full guide on how to do it on this laptop.


You ask about two choices:

install ubuntu-gnome-desktop on top of an existing Unity installation
install Ubuntu GNOME fresh

If you're thinking about option #1, which is what I opted to do, you should read my question and answer at Unity problems after installing GNOME desktop (ubuntu-gnome-desktop) as it'll save you a lot of time.

Once I installed GNOME (and used lighdm as my display manager) on my system, I remained primarily in Unity, and used GNOME as a learning environment. I've more recently switched full time to GNOME, and have changed my display manager from lightdm to gdm3, and undone some of the things answered in my earlier question.

Option #2 will probably be the most reliable, long term, if you have backups for your data.


the keyboard layout randomly turns off dead keys on boot

I have been looking into this for like one hour, because it has been nuisance for me as well.

EASY SOLUTION

The simplest solution I found, but I am not too sure if this is working all the time but it's worth the try as the first solution is when you login in, at the right top corner, you will be able to choose your keyboard, Choose the one you want from the list, after that, next time it will be the remembered (I'm not quiet sure how this works out with multiple users who choose different keyboard layouts).

ALTERNATIVE SOLUTION

Just use it if the Easy Solution did not work.
The other solution that i found is to override gnome-setting with the default system settings,

run this until you get the desired keyboard layout

$ gsettings set org.gnome.settings-daemon.plugins.keyboard active

and setxkbmap will tell you those settings

$ setxkbmap -query

and you will get something like:

rules:      evdev
model:      pc105
layout:     us
variant:    intl
options:    lv3:ralt_switch

So just add the new two following commands to be executed when ubuntu starts up, by adding the them /etc/rc.local

Command #1:

# prevent gnome from resetting keyboard setting in X
gsettings set org.gnome.settings-daemon.plugins.keyboard active false

Command #2: (based on the information obtained above by setxkbmap -query

setxkbmap -rules evdev -model pc105 -layout us -variant intl -option lv3 -option lv3:ralt_switch

Sources:

Keyboard layout on Ubuntu won't go away!


The standard tool to deal with key/mouse problems is xev. You start it from the command line, it opens a little window and until you close it every key/mouse event is recorded and displayed in that command line window.

That way you should be able to see if the keystrokes are recognized by X at all. If yes it is no hardware problem, if no it probably is.


Bluetooth Headphone Mic not detected. Issues with Audio quality Headphone speaker With solved Answer

Open your terminal and follow these steps:

We will use a PPA for adding Pipewire to Ubuntu 20.04, which is maintained regularly:
sudo add-apt-repository ppa:pipewire-debian/pipewire-upstream

To update the PPA packages in your system do:
sudo apt update

Install the package:
sudo apt install pipewire

There is also a dependency needed to be installed with Pipewire, otherwise you will face the issue of "Bluetooth headset won't connect after installing pipewire". Install the dependency by:
sudo apt install libspa-0.2-bluetooth

Now, to install the client libraries:
sudo apt install pipewire-audio-client-libraries

Reload the daemon:
systemctl --user daemon-reload

Remove your paired Headphones from your paired list

Then Reboot your machine

You can ensure that Pipewire is now running through:
pactl info

This command will give the following output, in Server Name you can see:
PulseAudio (on PipeWire 0.3.28)

Now you have pair your Headphones your machine

If Reboot needed reboot your machine again (mostly needed)

Now you can enjoy better audio quality.
When you need to use your headphone microphone, you have change to change it manually.
Note: This may be a little tricky and occasionally buggy, but you should have better audio quality, though microphone audio still needs some improvement.


Have Thunderbird 52 running in background

You can actually still use FireTray even though it's not officially supported for Thunderbird v52.

Open your web browser, go to the add-on's homepage, and download the add-on by clicking the "Download for Linux" button.

Then launch Thunderbird and open Add-ons Manager. Click on the button with a cogwheel, select "Install Add-on from File", and install FireTray from the downloaded file.

Alternatively, just launch Thunderbird and drag & drop the the downloaded file over the Thunderbird window to install the add-on.

Warning: Try this at your own risk. Since the FireTray project is discontinued you may get no support if it breaks something. (I'm using FireTray with Thunderbird 52 without any issue.)


I have done this many times and the best way is to either boot Ubuntu from live CD or from HDD.

then make sure everything needed is install.

sudo apt-get install gparted ntfsprogs

Open Gparted , make sure C: is unmounted.

click and select resize , then apply.

after doing this you will need to be on a Live CD.

to resize your / & /home partitions


What is this GPUCache folder that suddenly appears in the home directory?

I am not sure if you can hide it, but this is created by chrome/chromium browser, or electron apps.


HP Probook 4530s - fans are always on and noisy

Try installing Jupiter to tweak the power usage of your system. I have a similar issue on a Dell notebook and Jupiter is helping. The newer kernels (maybe not the newest but apparently those used in 11.10) have power usage regressions that cause low battery life and other issues with laptops. In my case, I had low battery usage and a lot of an activity. Jupiter seemed to help quite a bit:

http://liliputing.com/2011/09/how-to-use-jupiter-with-ubuntu-11-10-to-control-netbook-power-features.html

In other words, the kernel issues may be causing higher CPU usage which is reflected by your fans having to be powered on or powered on at a higher speed to combat the issue.

Update: I later took a vacuum and put it right up against my fan outlet. Everything looked cleaned before that but some fuzzy bits came out. That completely solved my fan issue although it is nice to combine both a proper solution and Jupiter.


Which Ubuntu package contains the default mouse cursor?

The package you are looking for is dmz-cursor-theme. It contains the default mouse cursor for ubuntu.


How to change Ubuntu Budgie's Plank launcher command line parameters?

First thing I'd try :

Exec="tilix --session=/home/user/.config/tilix.json"

Second thing I think about - as Budgie does not seem to immediately "update" .desktop files in panels and probably docks:

unpin from plank your actual Tilix launcher,

Launch Tilix from your customized launcher in ~/.local/share/applications, then pin it to plank.


nfs unworkable using new managed switch - no idea why - DoS of two ZyXel switches breaks portmap

It ends by finding that managed switches with DoS (denial of service) feature enables, detects SYN<1024 portmap requests and start blocking them.
Turning this feature off solves the problem completely.

I cant detect the problem otherwise than trying rpcinfo -p or showmount -e, because all ports are accesible when trying just telnet.

Google found common messages, after I already know what to search, e.g. https://serverfault.com/questions/367107/cant-mount-nfs-share-over-tcp
And different brands of switches are mentioned (mine are ZyXel, their PoweConnect and also Cisco).

IMHO, with managed switches getting cheap and common, this problem may reappear may times, and perhaps is the reason for another nfs troubles mentioned on askubuntu.


Having trouble making multiple directories and files

This creates a midterm directory in your home directory (denoted by the ~) with a bunch of other directories under it.

  It said none of the files or directories exist

Your mkdir should have a lowercase m and your -p is incorrect because it is not using a dash; possibly because it was copied from, for example, a PDF file. After copying the command to the command line, replace the Mkdir by mkdir, and replace –p by -p.

Final result:

$ mkdir -p ~/midterm/linux/{desktops/{GNOME,KDE,LXDE,Xfce},distros/,players/{Andrew\ Tanenbaum,Linus\ Torvald,Richard\ Stallman}}
$ tree ~/midterm/
/home/daniel/midterm/
└── linux
    ├── desktops
    │   ├── GNOME
    │   ├── KDE
    │   ├── LXDE
    │   └── Xfce
    ├── distros
    └── players
        ├── Andrew Tanenbaum
        ├── Linus Torvald
        └── Richard Stallman

11 directories, 0 files

The \ (followed by a space) is used to escape spaces in directory names.


Ubuntu 13.10 can not show all resolutions of my Monitor

Try installing arandr

sudo apt-get install arandr

Then open arandr to and select your resolution.


Updating to Windows 8 on dual boot with Ubuntu

You can upgrade Windows, and then restore the bootloader.

Upgrade Windows as necessary. (Sorry, but we can't help with the specifics here)
If Ubuntu does not boot, insert the Ubuntu installation CD and boot from it.
Open the terminal and run

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

Keep the terminal open and run:

sudo apt-get install -y boot-repair && boot-repair

Follow the on-screen instructions. Do recommended repair, and remember the boot-info link it gives, in case there are deeper problems. If you do not have internet in the live CD, you can use the ISO here.


Move the thunderbird notification from bottom panel

There's a gnome-shell extension that places shell notifications in up right corner.

Use firefox to install it: https://extensions.gnome.org/extension/243/shell-osd/


How do I restrict vsftpd access to a certain directory?

restrict access to the home folder and then mount the folder the user needs to work in under his home directory.

add the line to fstab

/var/www/hisdir     /home/username/somefolder name          none        bind     0   0


Can't get keepassXC to launch on startup

To have the application autostart after login, copy the desktop file you are referring to into the folder .config/autostart. .config is a hidden folder in your home folder.


Installing Tata Photon Plus Dialer-Ubuntu 13.10

To view the files on the modem,run the below commands one by one on terminal,

sudo mkdir /media/modem
sudo mount /dev/sr1 /media/modem

your modem will be mounted on /media/modem.You can go there and view the files in it.


How to change the UI language on Clementine?

This looks like a bug in clementine or at least in the version that comes packaged with Ubuntu. I use it on my Debian and have not seen this before but I installed it today on a VM running Ubuntu and it appeared in French. I live in France but have absolutely nothing set to French on my system, much less the VM.

So, it looks like Clementine is assuming the language based on your IP or some other silly method. The good news is that there is a setting for that, at least on version 1.1.1 which is what is in the 13.10 repositories.

Just go into "Tools" => "Preferences" => "Behavior" and change the language:


Why "couldn't resolve host" error occur for avahi-daemon?

For the ".local" domain to work you need a line in your /etc/nsswitch.conf file like:

hosts:          files mdns4_minimal [NOTFOUND=return] dns


I had an issue with my nvidia driver on my computer when I installed Ubuntu.

Boot ubuntu and run just the terminal so that the display card doesn't have to do much. Alternatively you can press Ctrl + Alt + F1 to open the full terminal.

Now, what you want to do is uninstall the nvidia drivers using

sudo apt-get purge nvidia*

Now, install packages. To do this you need to install the packages for your kernel, which can be found through typing

uname -r

This will display your kernel, eg. -3.3.3-33-generic.

Now enter "sudo apt-get install build-essential linux-source linux-headers"
With your kernel at the end, e.g

sudo apt-get install build-essential linux-source linux-headers-3.3.3-33-generic

Now, there's a ppa for a great team that release much more stable repo's. Install using:

sudo add-apt-repository ppa:ubuntu-x-swat/x-updates&&sudo apt-get update

Install their drivers:

sudo apt-get install nvidia-current

Now you need to check if it has installed correctly (14.04 doesn't seem to do this well)

lsmod | grep nvidia

If nothing happens, you need to manually install through

sudo depmod -a

the load it

sudo modprobe nvidia_current

Now you can restart through

sudo reboot

Hope this helps


Configuring Grub to dual-boot across two discs?

there was a thread about this in Ubuntu Forums

the solution was:

  Found a different solution:
  I added "(hd1) /dev/sdb" to /boot/grub/device.map and ran update-grub.
  This adds to operating systems on the second drive to GRUB, which works just as well.


Help with "advanced" shell scripting | how to create an image preview of a pdf

Any solution that uses the ls command will eventually fail, but don't fret; bash can handle any and all filenames safely without involving an external command (like ls) to "list" them.

To make a filename.jpg from every filename.pdf in the current directory, you can do:

for file in ./*.pdf; do
    convert "$file[0]" "${file%.pdf}.jpg"
done

You can also do that in one line

for file in ./*.pdf; do convert "$file[0]" "${file%.pdf}.jpg"; done

The double quotes (") are very important to avoid wordsplitting and pathname expansion from the result of the parameter expansions.

$file and ${file%.pdf} are called parameter expansions. See http://mywiki.wooledge.org/BashFAQ/073 and http://mywiki.wooledge.org/BashFAQ/100 for more on parameter expansions and string manipulation in bash in general.

EDIT:
And reading the question again, I see you wanted the jpegs in the parent directory of the pdfs, so I'll include the necessary modifications for that as well:

for file in pdf/*.pdf; do
    basename=${file##*/}
    convert "$file[0]" "./${basename%.pdf}.jpg"
done


I think it's not possible to do, I search a little bit and even poked around Clementine's db file but no luck.
What I found is that if you set GTK+ as default GUI theme in qtconfig, Clementine will match it selfs with GTK's widgets style.
I use lxappearance to change my widgets theme. When it's been set on crux I get the left one and after changing it to Greybird I get the right one.

So the only way that I found is changing the GTK's widgets style.


How does application get the file name in case of launch by "open file with"?

The file manager will pass along the URI of the file that you right-clicked in order to select "Open With".
In linux desktops, applications are launched using a launcher file. A launcher file is a plain text file with the .desktop extension. It contains information for the desktop environment on how to start the application, what icon to use, how and where to display it in the menu, etc. The Open With Other Application" list in Files (nautilus) is populated by the .desktop` files present on your system.
It is in the .desktop file on the Exec= line that arguments are defined. For example, for the editor Gedit, this line is
Exec=gedit %U

Only when the Exec= entry of the .desktop file contains an argument, the system will pass the argument it received from Files (nautilus) to the program.


Is swap memory required on a flash drive installation?

Skip swap on flash drive installations unless you put it on a separate thumb.  It becomes non-portable unless you switch from UUIDs back to disk label for mounting.

What you heard about disk life is correct.

Sluggish isn't necessarily lack of swap.  There's nowhere near enough detail to pin your sluggishness down.


Backlit keyboard on Toshiba Satellite P755-S5184 doesn't work in Ubuntu 12.04

I have a Toshiba p755-s5265 and I had the same issue a while back. My keyboard backlight now works, and this is what I did:

I booted up a Windows 7 install dvd, and at the install screen, I did not proceed but instead pressed the key on top of my keyboard to light up the keyboard (pressed it just once). On reboot, the keyboard backlight stayed on past grub and kernel, and is on as I type this. I hope you give it a try.

I'm ready to answer any questions you might have.


Rather than answer your stderr redirection question, I'll suggest a better (IMHO) way:

In https://github.com/waltinator/net-o-matic.git - Watch for (WiFi) network going down, then do a user-specified thing to fix it.

There's a way to monitor your connection:

  ip monitor address | \
    egrep --line-buffered \
    '^Deleted [[:digit:]]+: [[:alnum:]]+[[:space:]]+inet[[:space:]].* scope global ' | \
    while read line ; do
       ...

My net-o-matic script also contains a way to ask once:

function netstate () {
    # Return network state as "UP" or "DOWN"
    #Adjust how you decide net is UP/DOWN
    ip link show | egrep -q 'UP,LOWER_UP.* state UP'
    if [[ $? -eq 0 ]] ; then
        echo "UP"
    else
        echo "DOWN"
    fi
}


How to set iPod tracks to remember playback position

You probably will have to use iTunes to use this specific feature for an iPod. The feature isnt available through the apps you have mentioned.

This isnt the same as setting "Remember Playback Position" for every individual track as can be done via iTunes, but the following SU link discusses creating a python script to remember a specific point in a playlist: https://superuser.com/questions/249565/music-player-for-linux-which-remembers-the-playback-position


Clonezilla installation - Sub-process /usr/bin/dpkg returned an error code (1)

You need to create the /opt directory manually and try again:

sudo mkdir -p /opt
sudo apt-get install -f

I'd actually classify this as a bug because the package post-installation script assumes blindly that such a directory exists even though that is not the case on a default Ubuntu (or Debian) installation.

If you want to be nice and support free open-source software like Clonezilla, please file a bug report with the maintainer of the package in question.


okay after much deliberation, i decided to re-install windx from recovery disks and install ubuntu. this did it for me, my dynamic disks reverted back to basic, result! i then re-installed ubuntu 14.04 lts from live install off usb. i had to delete create my partitions once again in windows disk manager, had to delete my recovery partition as only four disks are recognized for my mbr disk array then re-installed ubuntu working!


Brightness Controls doesn't work in HP G62 (Ubuntu 12.04)

I have a same problem and this is the only solution I know...that is to assign different combo for the brightness,as fn key is undetected

1) Install XDoTool and Compiz

sudo aptitude install xdotool compizconfig-settings-manager

2) Open Compiz

Command : ccsm

3) Go to commands and add these lines:

xdotool key XF86MonBrightnessUp

xdotool key XF86MonBrightnessDown

In commandLine1 and commandLine2 respectively.

Now click on Key Bindings Tab and Click on disabled button

On the pop-up box click Grab Key Combination and choose desired keys (I use Super(win)+f4, Super(win)+f3)

Don't forget to check Enable Commands on left hand panel

I hope it helps :-)

If you come across the keyboard layout for hp g62 please do post it...I too need it :-P


18.04 LTS does not recognize dual monitors correctly?

Well, as often happens, as soon as I posted this question, I found the solution. My main monitor was plugged into the computers Digital DVI port, and apparently, this ASUS mobo can only run SVGA and HDMI at the same time but cannot run DVI and HDMI. My monitor is dual input so switching it to SVGA restored Ubuntu's Dual monitor settings.

So, problem solved...


I can't exit from search or application mode

I solved the problem with the version 39 of Dash to panel.
In order to install the last version, I had to edit metadata.json and replace version 9999 (?) with version 37.
And update with firefox and the extension for gnome.


16.04: What driver I install for AMD Radeon R7 M260 ?

The open source radeon driver is used by Ubuntu 16.04 and the fglrx driver is no longer in the repository, the one from the AMD site also will not work since it does not have the capability to support Xorg 1.18.

Fortunately the radeon open source drivers are pretty good since AMD do release the specs for their cards but if you are absolutely set on using the AMD proprietary drivers then you should probably wait and see if they upgrade them to support newer versions of X.


How to connect a MIDI Keyboard and automatically write notes?

AS an aside, you may want to look at Ubuntu Studio if you are going do a lot of multimedia.
IMHO the easiest is musecore (also called mscore as the binary is mscore), it is probably included in Ubuntu Studio.
To install see https://musescore.org/en/node/75936
# To add the PPA if you don't already have it:
sudo add-apt-repository ppa:mscore-ubuntu/mscore-stable

# To install or upgrade MuseScore:
sudo apt-get update sudo apt-get install musescore

mscore will import a mdmi file.
https://musescore.com/
https://musescore.org/en/handbook/midi-import
or you can imput with your keyboard
https://musescore.org/en/handbook/note-entry
Or more specifically https://musescore.org/en/handbook/note-input#midi-keyboard

MIDI keyboard You can also insert pitches using a MIDI keyboard.
Connect your MIDI keyboard to the computer and switch the former on
Start MuseScore (this must be done after the keyboard is switched on)
Create a new score Click the rest (selecting it) in measure 1 to
indicate where you want note input to begin Press N to enter note
input mode Select a note duration such as 5 for quarter notes
(crotchets), as described above Press a note on your MIDI keyboard The
pitch should be added to your score.
Note: The MIDI keyboard enters
one note or chord at a time. This mode of note input (often called
"step-time entry") is fast and reliable.

See linked documentation for details.


Dedicated AMD Radeon GPU not available on X but available on Wayland

Following one of the answers on the link ppetraki provided in his answer, I added Option "DRI" "3" to /etc/X11/xorg.conf.d/20-intel.conf, and after a session restart everything was working again. xrandr --listproviders still does not list the AMD GPU, but seemingly DRI3 does not need that.

I was able to confirm the effect of this fix by watching GPU activity through radeontop while running DRI_PRIME=1 glxgears.


Can't boot installation on desktop with NVIDIA GPU

You can set the option right in the GRUB boot menu. After turning on your computer, hold Shift to display the GRUB screen, press E to enter the edit menu. Here, scroll down to the line having linux and add the nomodeset parameter right to the end of that line.

If you're able to successfully log in, then open a Root Terminal, and open /etc/default/grub  with your favourite editor. Add nomodeset inside the quotes to the line starting with GRUB_CMDLINE_LINUX_DEFAULT (create that line if it doesn't exist), and then run sudo update-grub.

Let me know if I'm missing any details here.


Once cable is unplugged, network never restarts, even once plugged back in

Check that the link had carrier (cable plugged in). See the output of ip link for that. Especially the LOWER_UP flag.

If that is not the case, then either you have a hardware (cable, NIC), firmware or kernel issue. Possibly unloading and reloading the driver would work around the issue (lsmod, rmmod and modprobe). Check whether your kernel driver has reported issues in this regard.

If kernel doesn't say that the interface is connected, NetworkManager cannot do anything about that. And restarting the daemon is almost always the wrong thing to do. But in this case it's useful to confirm that it is probably not a NetworkManager issue.


One potential work around is to use Chromium on a proxy-free network to download an extension called "Proxy Helper". This will set Proxy Settings for you on Chromium.


What Kernel Version to be Upgraded or considered for Ubuntu 14.04 with kernel version 3.16.0-30-generic in mitigating Spectre & Meltdown

See https://wiki.ubuntu.com/SecurityTeam/KnowledgeBase/SpectreAndMeltdown for the current status of mitigations across all releases of Ubuntu, and the official blog post covering the issues for a high-level analysis.


You've downloaded an ISO image of a CD-ROM. In order to install it, you will have to prepare a bootable medium of some sort (either burning the image to a CD with Brasero or creating a bootable USB stick with Startup Disk Creator), boot it, and install the software.

The community wiki installation page is here

Another topic I can think you might want to visit is ...

How can I keep recent files from appearing in Unity?


How to cross-compile programs for the Raspberry Pi with gcc?

Using a combination of poking around in the apt repositories and the extremely excellent Building Embedded Linux Systems (2nd edition, 2008, O'Reilly), I found this:

  arm-linux-gnueabi-gcc

That is both the name of command and the package that you install to acquire it.  Once invoked, it acts exactly as "vanilla" gcc, with the only exception that it builds packages for the ARM architecture (or a subset including the BCM2835, at least).  Building Embedded Linux Systems (pg 93-94) explains that the names used for invoking the GNU tools in a cross-compilation manner follows this format:

  cpu-kernel-manufactuer-os

The -gcc at the end of the topmost example is the component, used for specifing which part of binutils you want to use.  It can be swapped out for another GNU toolchain component, such as ld (linker) or as (assembler).  For arm-linux-gnueabi-gcc, arm is the architecture, linux is the kernel, gnueabi is the os, and gcc is the component.  Where is the manufacturer?  Apparently, the manufacturer can be specified as "unknown", as it rarely makes a difference, or left out alltogether (including it would make arm-linux-unknown-gnueabi-gcc).


How to get YYYY-MM-DD HH:MM date format in Thunderbird 60

sudo ln -s /usr/share/i18n/locales/en_DK /usr/share/i18n/locales/root
echo 'root.UTF-8 UTF-8' | sudo tee -a /etc/locale.gen
sudo locale-gen
LC_TIME=root.UTF-8 thunderbird

Why LC_TIME=en_DK.UTF-8 thunderbird no longer gives this date format

Thunderbird and Firefox now use CLDR (Unicode Common Locale Data Repository), which does not have the ISO 8601 date format in en_DK.

References

http://kb.mozillazine.org/Date_display_format
https://bugzilla.mozilla.org/show_bug.cgi?id=1426907

https://bugzilla.mozilla.org/show_bug.cgi?id=1426907#c59 - The solution shown above

https://bugzilla.mozilla.org/show_bug.cgi?id=1509096

https://bugzilla.mozilla.org/show_bug.cgi?id=1509096#c0 - Explanation about en_DK not working


Do all that works for Ubuntu work for Lubuntu?

The core of all desktop Ubuntu's (Ubuntu, Xubuntu, Kubuntu, Ubuntu-Mate, Lubuntu, Ubuntu-Budgie..) are the same so nearly every command will work in all flavors.

There are differences though, eg. Ubuntu uses GNOME (17.10) or Unity (14.04, 16.04) which are based on GTK+ 3, Kubuntu uses KDE & Qt, etc so libraries are different, and a small 'install' for a GTK+ based *Ubuntu maybe large for Kubuntu, a small install command for Kubuntu could be very large when using Lubuntu. Whilst the commands will work (eg. a sudo apt-get install) the effect could be different in installs, disk space & memory needed etc.  (more libs require more memory which can slow your system down; Lubuntu is light but using other flavor libs will stop it being light)

Themes are different between DEsktops, so a theme for GTK+ based (gnome, unity..) you won't expect to work in Qt based Kubuntu, or Lubuntu. Hence whilst most commands will work perfectly in other flavors, there are some that won't in every flavor due differences in libs or config files etc

the following is an example in an attempt to explain a later question

kate is a text editor for KDE (or K DEsktop) or an equivalent to leafpad as found in Lubuntu (I believe anyway). Kate being for KDE thus uses Qt libs. My system is Ubuntu 17.10 (with GNOME & Mate, thus using GTK+ 3 libs). I

  sudo apt install kate

which would install kate on any Ubuntu. When I hit enter it tells me

 "0 to upgrade, 135 to newly install .."

which is a huge warning to me its going to use libraries that aren't in my system. 1 for kate I'd expect, maybe 1-4 extra is okay; 135 is a red-flag. It may work, but will be inefficient (memory wise, use more disk space etc)

My system has 8gb of ram so It'll handle having KDE's Qt libs, plus GTK+ (v3) libs in memory, but if I was using my old eeepc (1gb ram which runs Lubuntu) I'd answer "N" (not continue, or abort the install) as on 1gb of ram it'd be inefficient (ie. laggy). Sorry I don't know a filter, and don't use GUI tools much, but terminal commands give tons of output & clues...

A text editor (eg. kate) is a small 'app', if I was to pick something like Libre Office (huge office suite, Writer, Calc, ....) I'd expect a larger number than 5 extra files (my guess was 15-30), a quick dpkg -l libre* | grep ^ii|wc (deb-package -list libre* | grep (show only lines starting with 'ii' or installed) | wc (word-count; where I only look at line count) tells me i have 28 such files installed (named libre*). My point is large apps/suites like LibreOffice will be higher than 5, but the 135 for my kate example is way to big.

I can recognize the package names for kate & recognize libkf5* (kde v5 framework), libqt5* (kde qt v5 libs) from the names etc. But even if you don't recognize the names (you'll get to pick/recognize them pretty quickly if you want to) - the summary package count makes it pretty easy.


Prevent the guest account from accessing a particular flash usb pen drive key?

It is important to understand that these permissions are only enforced when the version of ubuntu on the pen drive is running. If I were to connect this pen drive to another computer I would be able to read any data on the pen drive, regardless of the permissions set in the file system.

If someone else has physical access to the pen drive, only encryption of the contents will give you any protection. (Note that this applies to a desktop computer too - if someone has physical access then they can remove the hard disk and examine its entire contents on another machine, or boot from their own USB stick - the operating system only enforces permissions on files when it is running).

You might want to look at a cross-platform encryption tool like TrueCrypt to store your data.


Bluetooth manager can't find new Bluetooth mouse, but my phone can

Wow, as luck would have it the search I did immediately after posting this hit paydirt. I don't understand what needed to be fixed, nor do I have any insight why bluetoothctl worked when the bluez tools didn't. I just followed the instructions below (taken from here which got them from here, thanks whoever you are):

# bluetoothctl
[bluetooth]# list
Controller 01:23:45:67:89:AB fzidpc73

// choose the controller to work with
[bluetooth]# select 01:23:45:67:89:AB

// show/display the controller details
bluetooth]# show
Controller 01:23:45:67:89:AB
Name: fzidpc73
Alias: fzidpc73-0
Class: 0x000000
Powered: no
Discoverable: no
Pairable: yes
UUID: PnP Information (00001200-0000-1000-8000-00805f9b34fb)
UUID: Generic Access Profile (00001800-0000-1000-8000-00805f9b34fb)
UUID: Generic Attribute Profile (00001801-0000-1000-8000-00805f9b34fb)
UUID: A/V Remote Control (0000110e-0000-1000-8000-00805f9b34fb)
UUID: A/V Remote Control Target (0000110c-0000-1000-8000-00805f9b34fb)
Modalias: usb:v1D6Bp0246d0517
Discovering: no
[bluetooth]# power on
[CHG] Controller 01:23:45:67:89:AB Class: 0x000104
Changing power on succeeded
[CHG] Controller 01:23:45:67:89:AB Powered: yes

// scan for bluetooth devices (make sure your mouse is in discovery mode before running this command)
[bluetooth]# scan on
Discovery started
[CHG] Controller 01:23:45:67:89:AB Discovering: yes
[NEW] Device 34:88:5D:87:C0:A6 Bluetooth Mouse M336/M337/M535
[bluetooth]# scan off
Discovery stopped
[CHG] Controller 01:23:45:67:89:AB Discovering: no

// turn the agent on just incase you need to supply a pin code[bluetooth]# agent on
Agent registered

// note that the device might not ask you for a pin code

[bluetooth]# pair 34:88:5D:87:C0:A6
Attempting to pair with 34:88:5D:87:C0:A6
[CHG] Device 34:88:5D:87:C0:A6 Connected: yes
Request PIN code
[agent] Enter PIN code: 1234
[CHG] Device 34:88:5D:87:C0:A6 UUIDs:
00001101-0000-1000-8000-00805f9b34fb
[CHG] Device 34:88:5D:87:C0:A6 Paired: yes
Pairing successful
[CHG] Device 34:88:5D:87:C0:A6 Connected: no

// once you have done this use the following two commands to
// complete setup

[bluetooth]# connect 34:88:5D:87:C0:A6
...
[bluetooth]# trust 34:88:5D:87:C0:A6
...

If it's not clear the lines starting with [bluetooth] are things you type. I'm not sure the responses I got were precisely the same, but they were pretty close. (Well of course the device ID strings were different.)


How to benchmark speed of data transfer through sockets?

I am using iperf to benchmark the speed of data transfer between the socket on the host and that on the guest. To use iperf for benchmarking the rate of data transfer using virtIO-serial channel, I am doing the following:

Boot the VM to create a TCP socket on the host and have created a socket on the guest over virtIO-serial's character device on the guest.
On the guest, I setup the socket to listen for connections and start iperf using

iperf -c localhost -p <port_no>

And on the host, I use

nc localhost <port_no> > /dev/null

just to redirect the data I get from the guest to /dev/null, since I don't need the benchmarking data.


Installing Ubuntu on a desktop from .iso downloaded to a Mac

Use a tool like "Etcher", multi plattform and more reliable than "Unetbootin". https://etcher.io


Problem solved.  Not sure why it worked this time, but I tried

    sudo dpkg-reconfigure phpmyadmin

again, and it worked.  I'm now able to access my phpmyadmin account.


The port number that's being logged (59962) is the originating port on the other system (59.45.175.12). See man 7 socket for info on how sockets work.

Yes, it looks like you are being attacked. Look at the fail2ban package:

fail2ban - ban hosts that cause multiple authentication errors

Find the hostname of the other system via:

dig -x 59.45.175.12


Audacity, Openshot, Ardour fail to launch 12.04 precise

I had the same problem, also jack rack would not launch. So I went to this website and did a translation and here is the answer, it worked for me:

  Found the solution: we must upgrade to the latest version of csladspa.


How do I move my encrypted /home to a new computer?

Great question!  I actually do this quite frequently (every few months).  To do so, I use rsync to copy all of my /home partition/directory from the OLD machine to the NEW one.

First, ensure that you have openssh-server and ecryptfs-utils installed and running on the NEW machine.

sudo apt-get install openssh-server ecryptfs-utils

You could install your public SSH key in the root user's /root/.ssh/authorized_keys file.  But I usually set a root password on the NEW machine.

sudo passwd

Also, on the NEW machine, create a new user, who's name and password precisely matches the name and password on the old machine.

sudo adduser YOURUSER

Make absolutley sure that YOURUSER is NOT currently logged into either the NEW machine or the OLD machine.

Now, from the OLD machine, as root, rsync your /home directory from the OLD to the NEW machine:

sudo rsync -aP /home/ NEW:/home/

Finally, make absolutely sure that the files on the NEW machine are owned by YOURUSER:

sudo chown -R /home/.ecryptfs/YOURUSER /home/YOURUSER

And that should do it!  You should be able to login as normal to your NEW machine and read and write your data!

Full disclosure: I'm the author and maintainer of Ubuntu's Encrypted Home Directory feature.


Octave Installation Issue with Ubuntu 16.04

Finally, I found a link and this solved it.

Re: Error while Compiling octave 4.0 on ubuntu 14.04

We are required to delete old installed octave related files before re-installing to an upgraded version. And then ask Ubuntu to continue with the previous installation.

sudo rm -rf /usr/local/{bin,include,lib,libexec,share}/octave*
sudo rm -f  /usr/local/bin/mkoctfile*
sudo apt-get -f install


How do I know when the system recognizes a PC card device?

I use a simple notify-osd utility such as udev-notify - as the name suggests, it uses udev to display a notification when a new device is inserted.

Alternatively, run a terminal command such as

sudo lshw -class network

If the kernel does not recognise the device then the output would be "Unclaimed".


Lubuntu - power button doesn't turn off computer,

Try this.  Edit /etc/acpi/powerbtn.sh, and the make sure that the lines below are the last lines in it.

# If all else failed, just initiate a plain shutdown.
/sbin/shutdown -h now "Power button pressed"

also look in /etc/acpi/events/powerbtn, and make sure it matches below, specially the last part.

# /etc/acpi/events/powerbtn
# This is called when the user presses the power button and calls
# /etc/acpi/powerbtn.sh for further processing.

# Optionally you can specify the placeholder %e. It will pass
# through the whole kernel event message to the program you've
# specified.

# We need to react on "button power.*" and "button/power.*" because
# of kernel changes.

event=button[ /]power
action=/etc/acpi/powerbtn.sh

If you make any changes, make sure you run, before you try to see if it works.  You may need to reboot.

sudo service acpid restart


Does Ubuntu 64 bit boot and work on an iMac 32 bit?

32-bit chipsets can only run 32-bit operating systems. If your iMac is 32-bit, you'll have to get the 32-bit version of Ubuntu.

If this Mac is a PowerPC Mac, you're going to have to install a special version of Ubuntu. https://wiki.ubuntu.com/PowerPCDownloads

If it's an Intel Mac, install the normal 32-bit version of Ubuntu.

Provide the model of your iMac and I can provide more specifics.


The following methods will ensure your changes persist as long as you use gnome:

Using GUI (dconf-editor)

Install and run dconf-editor (if you're on 12.10, dconf-editor might be pre-installed):

$ sudo apt-get install dconf-tools

$ dconf-tools
Go to the following settings directory:

org.gnome.settings-daemon.peripherals
Under touchpad, uncheck the touchpad-enabled checkbox.

Command-line

If you prefer not to meddle with dconf-editor's GUI, run the following command instead:

$ gsettings set org.gnome.settings-daemon.peripherals.touchpad touchpad-enabled false


How do I disable the guest account on Ubuntu 13.10 (Saucy)

Open /etc/lightdm/lightdm.conf.d/50-unity-greeter.conf with root rights.
Append the line allow-guest=false
Reboot.


How to disable mouse acceleration in Ubuntu 16.04

You can modify certain parameters of the mouse driver permanently, i.e. accross reboots.

First list Xorg input devices.
Results are for my present machine and will be different in yr case.
List Xorg session input devices in terminal (CRTL-ALT+T):

$ xinput --list
⎡ Virtual core pointer                 id=2 [master pointer (3)]
⎜   ↳ Virtual core XTEST pointer       id=4 [slave pointer (2)]
⎜   ↳ SynPS/2 Synaptics TouchPad       id=10 [slave pointer (2)]
⎜   ↳ PS/2 Generic Mouse               id=11 [slave pointer (2)]
⎣ Virtual core keyboard                id=3 [master keyboard (2)]
    ↳ Virtual core XTEST keyboard      id=5 [slave keyboard (3)]
    ↳ Power Button                     id=6 [slave keyboard (3)]
    ↳ Video Bus                        id=7 [slave keyboard (3)]
    ↳ Sleep Button                     id=8 [slave keyboard (3)]
    ↳ AT Translated Set 2 keyboard     id=9 [slave keyboard (3)]
    ↳ HP WMI hotkeys                   id=12 [slave keyboard (3)]

So my mouse is identified by: "PS/2 Generic Mouse" and has identifier 11. For you it might be different.

Next, to list the mouse properties, do in terminal:

$ xset q | grep -A 1 Pointer
Pointer Control:
     acceleration:  2/1    threshold:  4

To experiment with zero mouse acceleration parameters,use:

$    xset m 0/1 4

Your device may have other parameters values. You can experiment with them until you are satisfied with the result. Doing so with the cli utility xset allows you to tweak the device parameters on the fly, i.e. without restarting the Xorg session. However those settings will not be preserved across reboots.

You need to make them persistent (until the next driver or system upgrade), by creating a new file in /usr/share/X11/xorg.conf.d/. For instance:

$ cd /usr/share/X11/xorg.conf.d

$ sudo vim 80-mouse-accel-disable.conf
Section "InputClass"
    Identifier "Set mouse acceleration to zero"
    MatchIsPointer "on"
    MatchDevicePath "/dev/input/event*"

    # Default value of mouse acceleration: 2/1 4
    # Set AccelerationNumerator to zero to disable
    Option "AccelerationNumerator" "0"
    Option "AccelerationDenominator" "1"
    Option "AccelerationThreshold" "4"
EndSection

$ sudo chmod 644 80-mouse-accel-disable.conf

That's it. You can logout and back in or reboot. In principle yr mouse acceleration should be persistently set to 0.

EDIT:
As suggested in one of the comments below, the above may only apply to Ubuntu 14.04 and derived flavors. In later versions the config file syntax and keywords may change slightly, although the general principle of the solution remains valid. See this tip for version 16.04 and (perhaps) later (not tested by me).


Your Ubuntu installation (and files) are on the Ext4 partition that is second to last in the image.


Error showing :Ethernet Cable unplugged in Ubuntu 14.04?

I had this kind of trouble, I'm not sure is the best way but it use to help doing :

sudo ifconfig eth0 down

sudo ifconfig eth0 up

depending on your system "eth0" may be something else, just have a look whith

sudo ifconfig

This will show you all your interfaces

hope this help !


Try to install grub2 on /dev/sda through chroot method.See this How can I repair grub? (How to get Ubuntu back after installing Windows?).

Or

Try the second method on this page.


Warning on running tensor flow in Ubuntu

This means the binaries you installed on your PC are do not have support for instruction sets such as SSE4. This may not give optimum performance for the programs but in normal case won't affect the execution.

If you want to enable those supports, try to compile the sources with relevant flags and install it replacing the pip installed versions. Go for installing with VirtualEnv


You need to get the module hid-a4tech loaded. Run sudo modprobe hid-a4tech, and check whether it's working.


Assuming that you really want to have bin folder in your home directory, first create the folder using command

mkdir ~/bin

After following command is executed, then your mv command will work. What's most likely is happening is you don't have bin folder, but when you try to move, the file is moved as "bin" - that is your file now becomes bin.

If you want to move file "myscript.sh" to bin execute following command after making sure directory/folder exists.

mv myscript.sh ~/bin/.


Why don't programs completely uninstall (remove all their files) when I remove them?

That's not quite true.  No package operation should remove user data, ever, under any circumstances.

The reasoning for this is simple: The application doesn't own the data.  You do.

Firstly, as an aside, other than the Ubuntu login screen, if an application asks you to log in, then your data is almost certainly not on your machine.  The log in process is most likely related to an online authentication mechanism to provide access to your data stored somewhere else.  Android and iOS have a (limited) ability to sync small amounts of user and configuration data for applications with "cloud" servers, but that doesn't necessarily disappear after uninstalling an application either.

All OSs (including Windows* and Android) are dependent on removal scripts.   These presume that you want the software to go away but keep the configuration so that you can install it again later.  The --purge option to apt merely removes configuration files.

If you're making modifications outside your own data (/home) then we assume you know what you're doing so your system continues to behave to your configuration.  It's easy to rm -R the config files yourself, it's not so easy to get your specific customised version of things back the way you had set them up.  So these scripts tend to err on the side of caution.

These scripts make various assumptions about what was installed and they are frequently written by humans who can make mistakes.  Sometimes the software does something special, particularly when the software has dependencies.

We (Ubuntu developers) do do tests on test systems.  We install the software into a clean installation of Ubuntu, and then we run apt remove and apt --purge remove and verify that the system returned to the expected (pre-installed) state.

If you do see a situation where a package is installed, no modifications are made to the config, and the package is then removed but files remain, then please file a bug against that package.

An alternative is to use snap, which houses the application entirely in its own environment.

*(in fact, this is one of the top ways Windows applications install malware, by "piggybacking" malware onto applications you choose to install, and then not removing them when you uninstall them.)


How do I specify file search parameters?

EDIT: Try typing . first in the search entry, then you can add options.

OR

You could try gnome-search-tool

sudo apt-get install gnome-search-tool

You could also launch it with custom otions in the current nautilus path using a nautilus script or nautilus-actions.


You should store your script in the /etc/init directory, you may also want to run init-checkconfig emacs.conf on your script and initctl check-config.


The error message is not particularly helpful but it seems you are missing the python3.6-dev package, which is installed using apt:

sudo apt update
sudo apt install python3.6-dev

After this, repeat your installation using pip as before.


Having recently bought a SSD I made some tests to understand the native Ubuntu support for SSD/TRIM.

I followed the following instructions (source)

sudo -i
dd if=/dev/urandom of=tempfile count=100 bs=512k oflag=direct
hdparm --fibmap tempfile

Note the first LBA

hdparm --read-sector FIRST_LBA /dev/sdX

Replace FIRST_LBA with the number found with --fibmap and /dev/sdX with the device name (probably sda).

You should get a set of numbers. If you get all zeros you are doing something wrong and you are probably reading the wrong segment or device.

At this point remove the file and check again.

rm tempfile
sync
hdparm --read-sector FIRST_LBA /dev/sdX

If TRIM is enabled you should get mostly zeros, if not you should get the same series of number than before.

So, to answer your question, if this test is to be belived Ubuntu is not supporting TRIM by default.

Personally I add discard to the fstab options, but many prefers to run fstrim from a cronjob, but this is covered by other threads/answers.


How to prevent Network Manager from auto creating network connection profiles with "available to everyone" by default

A script to give NetworkManager Amnesia:

#!/bin/sh
# /etc/NetworkManager/dispatcher.d/01-die-nm-die.sh
# must be chowned to root:root, chmod +x
#
INTERFACE=$1 # The interface which is brought up or down
STATUS=$2 # The new state of the interface

case "$STATUS" in
    'up') # $INTERFACE is up
    # maybe do something
    ;;
    'down') # $INTERFACE is down
    # Check for active interface and down if no one active
    find /etc/NetworkManager/system-connections.d/ ! -name 'conn-i-want-to-keep' -exec rm {} \;
    ;;
esac


Fractional scaling resets after logout in 20.04

This has been a bug in Ubuntu for over a year and recently a fix got released. However, from what I can see this fix has not been released for any stable Ubuntu version. Let's hope that happens soon.


Steam don't open after installing and updating

I updated my system to 16.10, then had to update Steam as stated in this message, which lists a forum thread provided by @Patrick Negus that unfortunately seems to no longer work.  It worked perfectly when it still existed.  I will see if I can remember the process.

Copy directories "SteamApps" and "userdata" from i believe /usr/.steam/steam and save them to the desktop if you already have games installed.

In terminal type: sudo apt-get remove --purge steam-launcher to remove steam

Remove the /usr/.steam directory, and the steam directory in your Home

Then remove the repository: sudo add-apt-repository --remove ppa:steam

Update the repositories: sudo apt-get update

now reinstall steam: sudo apt-get install steam

Move the saved directories to Home/.steam/Steam

Edit the Steam script in /usr/games/ to add two lines before the last line starting with test:

find $runtime -name libgcc_s.so* -delete
find $runtime -name libxcb.so* -delete

I am sure I got a couple of things wrong, please double-check as I am still new and going from memory.


The reason we can not run a 64-bit guest in Virtual Box even when run on a 64-bit host is that 64-bit guests don't make use of software virtualization. They depend on hardware virtualization to work:

  VirtualBox's 64-bit guest support (added with version 2.0) and multiprocessing (SMP, added with version 3.0) both require hardware virtualization to be enabled.Virtual Box Manual

In case our CPU supports it we need to enable it in the BIOS of our computer:

How do I enable hardware virtualization technology (VT-x) for use in Virtualbox?

In case our CPU does not support hardware virtualization we are unable to run 64-bit guests. We will still be able to install and run 32-bit guests.


Make a portable Ubuntu on a USB stick (bootable on Windows 8.1)

From my experience using lili usb creator, as soon as I put it in and it scans, it will have a slider for presistance. its really straightforward.


As recommend reading this question/answer: HDMI/VGA connection cuts borders of screen or creates blurry text for some additional information but the problem might be the actual the configuration for the TV. What I mean with this as for example, you are saying you can have 1920 with a 30 refresh rate. Check /etc/X11/xorg.conf so that the Horizontal/Vertical sync is at least 30. In my case it is 50/60.

Another way is to not jump directly to 1920 but rather go slowly towards it. Jump to the next higher resolution. Then the next. At least until you get to 1920. I would recommend using 1680x1050 because many TVs in Ubuntu that mention 1920 work better on 1680. If you had an Nvidia, some of the options you could do with the Nvidia Settings would help.

There are also some TVs that have an option to automatically correct the resolution. You could also try that.


Libreoffice is losing the title of my doc files

it seems the file did not have the ".doc" extension which cause the "untitled" problem. Still seems like a bug to me , but fortunately its a minor one .


sudo ufw status

 sudo ufw default DENY

 sudo ufw enable

Then sudo reboot. The easiest way is to install ufw and check back often.


Looks like you can edit ~/PlayOnLinux's virtual drives/prefixname/Users/username/AppData/Local/Blizzard/Hearthstone/options.txt. If you don't know what to edit i suppose you can just delete it and the game should generate a new one with default options once you launch it, back it up for an insurance though.


It looks like the Ubuntu distribution after Pangolin has not the same problem. Now I am using Mint 14 "Nadia" based on Ubuntu Quantal, and it works.

I suggest you to upgrade your system.

OFF TOPIC I have only a problem with the microfone... :(


Is there a way to play a one-sided stereo on both sides?

If you are talking about video in the browser such as on youtube then I would recommend a plugin. I use Audio EQ for Chrome and I absolutely love it. It allows me to adjust the gain, EQ and make it mono.


Is it possible to check if a connection is local or via ssh *after* elevating to the root account with `sudo`?

If you're in a bash shell, you can do pstree -s $$ ($$ is the current shell's PID) and look for "sshd" in the output.


Eth0 lost when ethernet is using crossed cable

Cross cables and straight cables are two different types of Ethernet cables which are used in connecting network equipment and devices with each other.

Starting from the early days, equipment used to transfer data in one direction only and different product companies mentioned which cable is compatible with the product. Modern Ethernet cables are 8-strand, 4-pair, twisted-pair cables.  Of those individual wires inside the cable, only four of the eight cables are used to transfer data - two for transmitting and two for receiving.

Most modern Ethernet networking interface cards are designed to be autonegotiating and can usually determine which wires to send the data over.  However, older equipment may not be able to do this.

You may need to use a standard straight Ethernet cable instead, or try and connect a switch or hub between the two instead.


very slow internet connection on ubuntu 14.04

Fix the bug in Debian Avahi-daemon

The slow WiFi in Ubuntu problem could also be related to a bug in Avahi-daemon of Debian. Ubuntu and many other Linux distribution are based on Debian so this bug propagates to several Linux distributions. To fix this bug, you have to edit the nsswitch configuration file. Open a terminal and use the following command:

sudo -H gedit /etc/nsswitch.conf

This will open the configuration file in gedit so that you could edit it easily in GUI. In here, look for the following line:

hosts:          files mdns4_minimal [NOTFOUND=return] dns mdns4

If you find this file, replace it with the following line:

hosts:          files dns

Save it, close it, restart your computer. It should fix the slow wireless connection problem for you. If it doesn't check the other solution.

If this dosen't work, try other solutions from here.


Package information was last updated 59 days ago even though Ubuntu is up to date

Make a backup of your sources file before editing it.

sudo cp /etc/apt/sources.list /etc/sources.list.bak

Next, run this command to remove the offending line:

sudo su -c "cat /etc/apt/sources.list.bak | grep -v 'extras.ubuntu' > /etc/sources.list"

Be sure not to make any typos.


How to edit gnome settings in config file(.xmll or other)

You can undo your settings with changing false to true:

$ gsettings set org.gnome.nm-applet disable-connected-notifications true
$ gsettings set org.gnome.nm-applet disable-disconnected-notifications true
$ gsettings set org.gnome.nm-applet disable-vpn-notifications true

Or you can reset the value of keys to default with reset option:

$ gsettings reset org.gnome.nm-applet disable-connected-notifications
$ gsettings reset org.gnome.nm-applet disable-disconnected-notifications
$ gsettings reset org.gnome.nm-applet disable-vpn-notifications

  I hope see all settings and change them

Here it is you can list all of them by using this command:

$ gsettings list-schemas

Or if you want to get list all schemas with all keys and values, use the following command:

$ gsettings list-recursively

And for listing all the keys from a specific schemas, use gsettings list-keys <SCHEMA-PATH>

$ gsettings list-keys org.gnome.nm-applet
stamp
disable-disconnected-notifications
disable-vpn-notifications
disable-connected-notifications
suppress-wireless-networks-available
show-applet
disable-wifi-create

And listing their schemas-path and value:

$ gsettings list-recursively org.gnome.nm-applet

See man gsettings for more info.


Why can't I get the man page of the crypt function?

While the mcrypt package provides a Section 1 manual page for the crypt executable command, the Section 3 page (covering the crypt library function) is provided by the manpages-dev package:

$ dpkg -S /usr/share/man/man1/crypt.1.gz /usr/share/man/man3/crypt.3.gz
mcrypt: /usr/share/man/man1/crypt.1.gz
manpages-dev: /usr/share/man/man3/crypt.3.gz


How do I fix Unity from freezing and artifacts on my screen when I'm charging my laptop?

It appears the answer is to use Proprietary NVidia drivers version 331.20

Drop down to the command line

Ctrl + Alt + F1

Stop unity

sudo service lightdm stop

uninstall ubuntu nvidia drivers

sudo apt-get --purge remove nvidia-glx-* nvidia-settings

backup xorg.conf

sudo mv xorg.conf xorg.conf.backup

regenerate xorg.conf

sudo Xorg -configure
sudo mv ~/xorg.conf.new /etc/X11/xorg.conf

install NVidia drivers

Download NVidia Drivers

sudo sh NVIDIA-Linux-x86_64-331.20.run

Start Unity

sudo service lightdm start

you should be brought back to your X display if not try Ctrl + Alt + F7

look in /var/log/Xorg.0.log for any errors.


I have the same NUC. You will need a reasonably recent kernel that supports Intel HD Graphics (Braswell) which is inbuilt in your NUC's CPU (Intel Celeron N3050) - I think support was added in 4.2, but it could be also 4.1. These kernels are not available in standard repositories for Ubuntu 12.04, so you will have to head over to http://kernel.ubuntu.com/~kernel-ppa/mainline/ and select one of the 4.x kernels, download the .deb packages relevant to your system (in your case, amd64 of the "generic" variety, low-latency is not normally recommended) and install them with dpkg -i. For example:

wget http://kernel.ubuntu.com/~kernel-ppa/mainline/v4.5-wily/linux-headers-4.5.0-040500-generic_4.5.0-040500.201603140130_amd64.deb
wget http://kernel.ubuntu.com/~kernel-ppa/mainline/v4.5-wily/linux-image-4.5.0-040500-generic_4.5.0-040500.201603140130_amd64.deb
sudo dpkg -i linux-headers-4.5.0-040500-generic_4.5.0-040500.201603140130_amd64.deb
sudo dpkg -i linux-image-4.5.0-040500-generic_4.5.0-040500.201603140130_amd64.deb

After installing the packages, run sudo update-grub and reboot. The graphics should work fine now.


HADOOP commands not working any where in ubuntu 16.04

You can make a soft link between Hadoop directory and your user bin directory. In this way you'll be able to call Hadoop command from everywhere.

So, to solve your issue, run this command:

sudo ln -s /usr/local/hadoop/bin/hdfs /usr/local/bin/hdfs

I hope this could help you.

More info about ln command can be read in the manual with this command:

 man ln


Snapcraft removed all my data without --purge

Ok, turns out that the snapshot was indeed saved it just didn't automatically restore it when I re-installed. The way that snapcraft makes these backups is detailed here: https://snapcraft.io/docs/snapshots
Looking at my saved snapshots showed that it was saved:
~ » snap saved                                                                                andre@andre-office
Set  Snap   Age    Version  Rev  Size    Notes
31   brave  51.5m  1.24.82  112  1.72GB  auto

So I just had to run, sudo snap restore 31 to get it all back.


Did you try this?

  Force Pipe A Quirk This problem typically exhibits itself on Intel
  graphics hardware (most particularly i855) by locking up the machine
  when closing the lid. The fix for this issue is to quirk your card to
  force enabling Pipe A. If you suspect you're having this bug, try
  setting this option in your xorg.conf:

 Section "Device"
     ..
     Option "ForceEnablePipeA" "true" EndSection

Fore more reference visit the source of the above quote:

https://wiki.ubuntu.com/X/Quirks#Force_Pipe_A_Quirk


Ubuntu install window shows up after restart from installing

Changing the boot order of the "bootable" devices on your computer, like your hard drive or bootable media in a USB port (e.g. flash drive), floppy drive, or optical drive, is very easy.

The BIOS setup utility is where you change boot order settings.

and remove your ubuntu cd


How to connect to postgresql 11 just installed on ubuntu?

I had missed an instruction to start the server...

It finally started with the following instruction

sudo -u postgres /usr/lib/postgresql/11/bin/pg_ctl -D /etc/postgresql/11/main -l /var/log/postgresql/postgresql-11-main.log start


Well, there are 3 main options. 3d one was mentioned in the comments. You can share files over:

NFS protocol - that one, as I understand it, is the protocol over which default ubuntu share option, mentioned by you, works.
samba
SSH

I would recommend to go with samba for 1 reason: there are a lot of tutorials and information available on it. And if you're new to certain technology it's important to be able to easily find help online. You will face troubles with any option, but with some it will be easier to find solutions online.

If you're not concerned about security samba is a good pick. It's not that complicated, it does not use encryption (that makes it a little faster than a default setup of SSH), it allows you to share files with Windows machines and, after some configuration, it lets you share the whole /home directory or almost anything you want. Also, when I was searching info myself, I was able to find more information on it, rather than on a default ubuntu share mechanism.

1st option is okay too. To connect to the server (if it's set up correctly) you may type nfs://yourservername/yourfoldername


Installing Ubuntu 16.04 LTS on Macbook Air - Keyboad not working after mtrack install

I had the same issue recently on an older MacBook Pro.  It looks like the problem happens because installing the mtrack package automatically removes a bunch of other input packages.  I fixed it by using the onscreen keyboard to run

sudo apt-get install xserver-xorg-input-evdev

then rebooting.


I can not access phpmyadmin after installing Lampp(XAMPP for Linux 1.8.1) on Ubuntu 12.04

You need to add this line("Require all granted") to httpd-xampp.conf file at <Directory "/opt/lampp/phpmyadmin"> section.

Here's how the changes will look-

# since XAMPP 1.4.3
<Directory "/opt/lampp/phpmyadmin">
    AllowOverride AuthConfig Limit
    Order allow,deny
    Require all granted
    Allow from all
</Directory>


using rsync do compress whole directory during copy

rsync is using compression during the transfert, if you are not doing differential backups, you can use tar to compress before and scp to transfert the compressed files directory.

cd /opt/lampp/htdocs/files/
tar czvf ../files.backup.tar.gz .
cd ..
scp /opt/lampp/htdocs/files.backup.tar.gz demo@192.168.157.130:~/files_backup


Add a VPN connection unavailable in Ubuntu 16.10 on a Lenovo x1 Carbon

This problem has been reported elsewhere (and I experience it myself). I'm not sure of the cause. But you can add VPN connection information by going down to 'Edit Connections' instead. Some have reported that as being a successful workaround for them.


chmod +x file.run gives the file the execute permission but it does not control whose permissions the file has when it executes.

./file.run runs the file with the privileges of your user.

sudo ./file.run runs the file with the privileges of root.

Your file.run apparently needs root privileges.  That is why sudo ./file.run is needed.