For your first question, lets quote the webpage:

  Geany is a text editor using the GTK2 toolkit with basic features of an integrated development environment. It was developed to provide a small and fast IDE, which has only a few dependencies from other packages. It supports many filetypes and has some nice features.

What this means? That Geany is first a text editor later an IDE, it won't compile a thing by itself, so you may need the libraries and headers to start compiling.

IDE by wikipedias definition:

  is a software application that provides comprehensive facilities to computer programmers for software development. An IDE normally consists of a source code editor, build automation tools and a debugger. Several modern IDEs integrate with Intelli-sense coding features.

So, Geany will just allow you to see the code very pretty, saves you from going to the terminal and executing the compiler and help you to debug the code.

For your second question, I recommend you to got to Raspberry Pi for in deep information, but I was able to find you this:

  [...] all of the Linux binaries being used by Raspbian OS has been written using the C programming language. [...] In this blog post, I wrote two types of source code. The first one is a simplified function to compile C source code into a executible for the Raspberry Pi.

Source: http://www.element14.com/community/blogs/mirandasoft/2013/05/09/linux-simplified-cross-compiling-raspberry-pi-binaries-using-c-programming-language


Ubuntu (and other Linux distributions in general) adopts the symbols defined by the XFree86 project. You can find a list of these symbols in this wiki page. The mapping from key to symbol for each keyboard model is done by XKB. Look in /usr/share/X11/xkb/symbols/inet, for example:

// Logitech

// Logitech common definitions
hidden partial alphanumeric_keys
xkb_symbols "logitech_base" {
    include "inet(media_nav_acpi_common)"
    key <I02> { [ XF86HomePage ] };
    key <I15> { [ XF86Community ] };
    key <I16> { [ XF86ScrollClick ] };
    key <I21> { [ XF86VendorHome ] };
    key <I3B> { [ XF86New ] };
    key <I3C> { [ XF86Reply ] };
    key <I43> { [ XF86MyComputer ] };
    key <I44> { [ XF86Documents ] };
    key <I57> { [ XF86Pictures ] };
    key <I58> { [ XF86Music ] };
};


Keyboard not working properly in KDE after upgrade to Kubuntu 16.10

As described in this bug replacing ibus for fcitx solved my problem:

sudo apt purge ibus
sudo apt install fcitx
sudo dpkg-reconfigure fcitx
sudo reboot

Strange thing, after updating to 17.04 I had to redo the above steps...
This is some persistent thing. After updating to 17.10 I had to reinstall ibus to rectify this, and then redo the above steps as this problem recurred. (This however leaves me with the problem described in the linked question).


How can I add a directory to PATH in a script so that it affects the calling shell and the rest of the session?

There's two things to remember:

Commands, including scripts, keep their environment for the duration of the command running
Commands inherit environment from parent process. For commands started via shell, they'll inherit from the shell.

So if you do PATH=$PATH:/my/dir that'll last only for the scripts duration. To make it permanent, the parent shell needs to be aware of the change. Proper way to do that would be to write to ~/.bashrc if you're using bash or appropriate rc file for your shell. Thus we can use >> to append to file

echo PATH=$PATH:/my/dir >> ~/.bashrc

And when the script exits, run

source ~/.bashrc

so that the shell rereads the config and will be aware of the changes. Now every command you run in shell and every new interactive shell started will inherit new PATH variable

The two steps can be put together into a function since ( at least for bash ) functions run in current shell environment, so unlike a script when you do source part, calling source from a function will affect the current shell.


Select range of lines in native linux text-editors (gedit, pluma, nemo)

vim can certainly do this: in command mode, enter 10000G hit V then 40000G. Voilà, requested selection.

However, what do you want to do with the selection?


LTS 12.04 update NVIDIA driver 319.32 reconfigured not able to get past login screen

I had the same problem --> https://askubuntu.com/questions/351268/nvidia-driver-updated-mixed-versions-of-304-88-and-319-32-tried-saurav-kumar-f

but you only need to give ownership of Xorg back to your account as all the installs were done by root - that should solve your troubles.

simply boot into terminal (ctrl+alt+f3 in the login screen) login and write

sudo chown username:username .Xauthority

hope it helps


Pasting into SSH on remote server causes weird characters aka bracketed paste

A friend of mine was experiencing this same issue.

Turns out he was also using the 64 bit version of Putty 0.70, based on my experience as outlined in the opening statement I told him that it sounded like it was putty at fault here. I had him uninstall it and install the 32 bit version of Putty 0.70. The bracketed pasting immediately stopped.

There is no section in the putty settings for disabling this behavior. Next step is to report it to the Putty development branch for 64 bit.

In short if you are going from windows to shell in putty and you are receiving bracketed paste characters check to see if you are using 64 bit Putty.You can check this by opening putty and clicking on the "about" button.


do-release-upgrade crashed on UnicodeDecodeError in decode() while updateing to 13.10 from 13.04

Check out sources.list.d for any dotfiles (files starting with a period) containing binary garbage (which the python unicode decoder blows chunks on). I had this same problem and when I removed the dotfiles out of /etc/apt/sources.list.d/ it worked again.


Buggy full screen mode since Flash 18.0.0.204

Right-click on the lower right corner on any YouTube video, click About the HTML5 player and on the next screen tick the check box so your screen looks like below:

Then you're not using any flash.  Just HTML5.

I uninstalled Flash a while ago and haven't looked back.


convert .doc files to .pdf file using imagemagick

ImageMagick can't read doc files.

You could try

oowriter -pt pdf your_word_file.doc

which requires you have the libre/openoffice suite installed.
Note if you have libreoffice, replace oowriter with lowriter.

See this other answer for a similar question.

According to Broam an alternative invocation is

oowriter -convert-to pdf:writer_pdf_Export doc_file.doc –

though I haven't tested this.

Web service

Alternatively I would also suggest using Google docs (now integrated into Google drive) as an alternative if you have a Google account or don't mind making one.

You can upload the doc and it will convert it to pdf for you (or an openoffice format if you prefer).

Which one should you use?

Of these two options, the last time I checked Google docs had a higher conversion fidelity.


Can't install anything. Getting error - Depends python <2.8 but 3.6.1-1 is to be installed. Please help!

I finally did it!
Thanks to everybody who helped me along the way, the solution was extremely simple, I just needed to update ubuntu (I clicked on the red-white icon in top right corner) and that's it!
I hope this helps other users as well.


How about trying this? https://help.ubuntu.com/community/BinaryDriverHowto/AMD#Manually_installing_Catalyst_13.4

Do it step by step so you know you are doing it correctly.

I have never had Linux + AMD, so this was all I could come up with. I know Nvidia blacklists the open source drivers, maybe AMD does the same?


How can I install gsettings schema via a gnome shell extension?

From everything I've been able to find (google and gtk docs), it seems that you've hit on exactly the reason why extensions installed via web browser can't store settings via dconf/GSettings - you have to install dconf schemas at the system level. There doesn't appear to be a way to have per-user schemas - dconf only uses the single compiled binary file.

The  statement about adding support for this in Gnome 3.4 leads me to beleive they are going to a) implement an alternate method for extensions to store settings, or b) extend GSettings/dconf in a way that allows users to install/compile schemas under $HOME.

If anyone can confirm this (or refute it, with pointers to documentation), I, and many others I'm sure, would appreciate it.

This post mentions the limitation, but doesn't explain exactly why... http://www.ubuntubuzz.com/2011/12/gnome-shell-extensions-website-has-been.html


What are the implications of disabling debugfs for ubuntu

Look at this article in addition to the link you just posted. I believe it simply means if there are issues in your file system you won't trace logs since it would be disabled. But of course you can weigh the pros and cons from there.

From man debugfs:

DESCRIPTION
       The debugfs program is an interactive file system debugger. It  can  be
       used  to  examine  and  change the state of an ext2, ext3, or ext4 file
       system.

From there you can see what debugfs you need it to run checks on your mounted fs, from here it states "Technically it's not possible to select function_trace without debugfs enabled", so as mentioned above, again look here for ubuntu specific information but I think it's general any way.


Connecting Android 4 (Ice Cream Sandwich / Jelly Bean / KitKat) phone

Update: The GVFS-MTP module is included in the default installation since 13.04.
  For troubleshooting see this anwser.

There have been several projects to bring MTP support to Linux during the recent months. Here is a quick overview:

GVFS

The best solution would be to use GVFS via the recently released GVFS-MTP-backend to mount your Android phone. There are two PPAs with a newer GVFS version.

ppa:langdalepl/gvfs-mtp

    sudo add-apt-repository ppa:langdalepl/gvfs-mtp
    sudo apt-get update && sudo apt-get dist-upgrade

ppa:webupd8team/gvfs-libmtp

    sudo add-apt-repository ppa:webupd8team/gvfs-libmtp
    sudo apt-get update && sudo apt-get dist-upgrade

Source:

https://linuxundich.de/de/ubuntu/gvfs-update-ermoglicht-unter-ubuntulinux-endlich-den-bequemen-zugriff-auf-android-gerate-via-mtp/
http://www.webupd8.org/2013/01/upgrade-to-gvfs-with-mtp-support-in.html

go-mtpfs

You could use go-mtpfs to mount your Android phone.

Install needed packages and get the source:

sudo apt-get install golang-go libmtp-dev
sudo go get github.com/hanwen/go-mtpfs
sudo ln /usr/lib/go/bin/go-mtpfs /usr/local/bin/

Add yourself to the group fuse (after that log out and log in again):

sudo adduser $USER fuse

Create a folder for your Android phone and mount it with go-mtpfs into that folder:

mkdir android
go-mtpfs android

Unmout your Android phone (wait for the end of file operations):

fusermount -u android

Source: https://linuxundich.de/de/android/mit-go-mtpfs-unter-linux-auf-android-handys-via-mtp-zugreifen/

jmtpfs

You could use jmtpfs to mount your Android phone.

Download jmtpfs, unpack and change into directory:

cd /tmp
wget http://research.jacquette.com/wp-content/uploads/2012/05/jmtpfs-0.4.tar.gz
tar -xzf jmtpfs-0.4.tar.gz
cd jmtpfs-0.4

Add yourself to the group fuse (after that log out and log in again):

sudo adduser $USER fuse

Install needed packages, compile and install (for checkinstall questions hit enter) jmtpfs:

sudo apt-get install libmtp-dev libfuse-dev libmagic-dev checkinstall build-essential
./configure
make
sudo checkinstall

Create a folder for your Android phone and mount it with jmtpfs into that folder:

mkdir ~/android
jmtpfs ~/android/

Unmout your Android phone (wait for the end of file operations):

fusermount -u ~/android

Source: https://linuxundich.de/de/ubuntu/mit-jmtpfs-mtp-gerate-wie-das-galaxy-nexus-oder-das-samsung-galaxy-siii-in-ubuntu-mounten/


screen brightness keys stopped working -- ubuntu 14.04 LTS -- HP notebook

You can use this software to control brightness. However, it does not dim backlight, but will soothe your eyes.
Install Brightness Controller with the following commands:

sudo add-apt-repository ppa:apandada1/brightness-controller
sudo apt-get update
sudo apt-get install brightness-controller

You can control brightness using its slider.

(source: ubuntu.com)


Can I Modify Ubuntu 16.04.03 and sell it for Profit?

You can sell your modified Ubuntu, however you will have to release it under GPL licence, and thus it must be open-source. See a more detailed discussion here.

Edit: as David Foerster points out, Ubuntu contains components with different licences (GPL is just the most common one). Depending on what you distribute, you will have to comply with the licences of every component you use.


Unable to download a file using drag&drop

I've solved the problem myself reinstalling the system. Now drag&drop works fine!


Unable to create or extract archives in Ubuntu 12.04.5 Unity

I assume that you are using Nautilus, you have nothing else mentioned.

Install the archive manager file-roller:

sudo apt-get install --reinstall file-roller

Press Alt+F2

Type: unity and press Enter.


I got it back with fn F7, but I don't know where it went.


Lenovo thinkpad E460 keyboard issue after skype call

It's fixed in the recent versions of skypeforlinux. Upgrade Skype to 8.61.0.95 or a newer version.


"E: Error, pkgProblemResolver::Resolve generated breaks, this may be caused by held packages" after long time without using ubuntu

You can try to force the installation of the packages by :
 sudo apt-get dist-upgrade

Note:
dist-upgrade can be quite dangerous. It will install all pending updates, with their new dependencies. It could delete packages. It could leave you with a very broken system.

https://debian-administration.org/article/69/Some_upgrades_show_packages_being_kept_back

Maybe this helps:

First clean the local repository of retrieved package files:
sudo apt-get clean

And then fix broken dependencies:
sudo apt-get -f install


SANE: sane-find-scanner works (now) scanimage and frontend do not

You probably need to create a udev rule to give access to the device to the members of the scanner group. See https://unix.stackexchange.com/questions/184367/scanimage-does-not-find-scanner-unless-sudoed-but-shows-up-with-sane-find-scan/184463#184463 for an example.

I had to put the following in /etc/udev/rules.d/55-libsane.rules:

SUBSYSTEM=="usb", ATTRS{idVendor}=="04a9", MODE="0660", GROUP="scanner", ENV{libsane_matched}="yes"

before restarting udev (systemctl restart udev.service).

Then make sure that the users who need to use the scanner are in the scanner group:

adduser username scanner


I had the same issue and resolved it as follows:

I installed flvstreamer.  After this get-iplayer was able to download!

By the way, don't forget to use get_iplayer command NOT get-iplayer.


Unable to update or reinstall flash player after update

Manually download the latest adobe-flashplugin_11.2.XXX.XXX.orig.tar.gz from here, then run sudo dpkg-reconfigure flashplugin-installer. It will show this dialog:

Just enter the directory where you've saved the file.


here is the solution

enabling the following two InnoDB directives in your /etc/mysql/my.cnf file appears to have resolved this issue:

default-storage-engine=innodb
default-table-type=innodb

When restarting your MySQL server, there appears to have been some lingering processes so the mysqld.sock file wasn't being created correctly. As you saw in Lish, I forcefully killed the lingering processes using the kill command, and then restarted MySQL normally with service mysql start which allowed the mysqld.sock file to be created.


Thinkpad E14 RYZEN 5 4500U Kernel Update v5.8.10 Not Working

You’ll likely need to update the GRUB_CMDLINE_LINUX_DEFAULT in your /etc/default/grub file to include iommu=pt. If you cannot boot normally, you may need a Live USB to make this work.

Edit the Grub boot file as root:
sudo vi /etc/default/grub

Add the iommu flag to GRUB_CMDLINE_LINUX_DEFAULT so that you have something like:
GRUB_CMDLINE_LINUX_DEFAULT="quiet splash iommu=pt"

Save the file
Run the Grub updater. This is very important. Do not forget:
sudo update-grub

Reboot

This should resolve the issue.


Systemd persistent timers do not work as expected

I continued researching on that topic.

For testing purpose, I added an own timer, also with Persistent=true, which called the apt-daily.service unit.
The timer had the same content as the the original timer unit, except the value for RandomizedDelaySec, which I set to 0.
After this, the timer worked and an elapsed timer after reboot is triggers the service as well.

I also modified the original apt-daily-upgrade via drop-in and removed the value for RandomizedDelaySec, which also led to a working timer.

So either there is a bug in the above mentioned systemd version, or my understanding of the timers is still not correct.

Can someone verify this with 20.04?


How can I remove the package oracle-java11-installer-local?

Run the following command:

sudo rm -rf /var/cache/oracle-jdk11-installer-local

sudo rm /var/lib/dpkg/info/oracle*
sudo apt purge oracle-java11-installer*
sudo rm /etc/apt/sources.list.d/*java*
sudo apt autoremove


How to Install standalone Ubuntu while keeping Windows?

There is a recovery partition for Windows, where are actually stored installation files. You can preserve this partition while installing Ubuntu.


Install or reinstall soundcard drivers and needed packages :

sudo apt-get install build-essential linux-headers-`uname -r` alsa-base alsa-firmware-loaders alsa-oss alsa-source alsa-tools alsa-tools-gui alsa-utils alsamixergui

Or:

sudo apt-get --reinstall install build-essential linux-headers-`uname -r` alsa-base alsa-firmware-loaders alsa-oss alsa-source alsa-tools alsa-tools-gui alsa-utils alsamixergui


how can I increase my RAM size with a swap partition?

In a default Ubuntu installation you will always have a swap partition which will be created by the installer. In your setup it is the partition /sda5 but this location may change from system to system.

This partition will obviously not be able to increase the physical RAM but it is storage memory on your hard disk reserved for the kernel to use whenever we run short of physical RAM. This may never happen on a system with 2 GB of RAM unless we perform very memory demanding tasks (e.g.
video processing, huge image processing) or have many applications running simultaneously.

Note that memory usage on swap is extremely slow, so we do not really want to have that other than in emergency situations.

In case you need a larger swap you can do so after installation either by creating a larger swap partition:

How do I add a swap partition after system installation?

or by adding a swap on a file (which can not be used for hibernation):

Adding a new swap file. How to edit fstab to enable swap after reboot?

More about swap can also be found here:

Why is swap being used even though I have plenty of free RAM?
How do I configure swappiness?
I have 16GB RAM. Do I need 32GB swap?


How to pass text file contents as argument to console application?

./myapp `cat text_file`

Or

./myapp $(cat text_file)

Or use double quotes to pass all the text as a single argument

./myapp "$(cat text_file)"
./myapp "`cat text_file`"


It should definitively have be asked before, but cannot find a reference.

By the way, it is a normal situation, answered here.


Why is Chromium not updated automatically as Firefox is?

In a Linux distribution, software doesn't usually use its own internal "automatic update" mechanism.  Instead, it relies on the distribution to update it.

This is the case for both Firefox and Chromium supplied with Ubuntu.

The interesting thing here is that Firefox and Chromium have a different level of support from Canonical, and also that Firefox on Ubuntu has a somewhat unusual release strategy.

Firefox is included in Ubuntu's main repository, whereas Chromium is in the universe repository.  This means that Ubuntu's version of Firefox receives the best level of support directly from Canonical, whereas Chromium's support relies on the Ubuntu community.  Most packages in universe rely heavily on the work of Debian developers, and Debian has different priorities.  So, based on this you would expect Firefox to include more Ubuntu-specific customisation, and to be better supported with updates.

The thing is, almost all software in a stable-release distribution (like Ubuntu, and most other distributions other that the "rolling release" ones) should not receive updates to new versions of software during the life cycle of that version of the distribution.  At best, it should receive only minor updates or security patches.  Firefox on Ubuntu is somewhat unusual here, because Ubuntu are providing full major new upstream versions of Firefox to their stable distributions.

The justification for this will be Firefox's rapid release strategy, which ensures that "major" releases are actually somewhat less disruptive than most software's major releases, but also makes it quite hard to backport security patches to older versions.  So Canonical has obviously decided just to give Ubuntu the new upstream version than patch the old version.

For Chromium, it's not completely like this, but looks can be deceiving.  Chromium on Ubuntu sometimes does get new upstream releases (which is why even Lucid is on a v18.x), and other times the Ubuntu community patch the existing version with fixes and security updates, but don't increment its version number.  However, this means that despite the version number of Chromium in Ubuntu, it still includes some of the fixes that newer versions of Chromium have.


Asus WiFi Driver for 13.10 (requires patch to work with kernel 3.11)

Install ndiswrapper

sudo install ndiswrapper-common ndiswrapper-modules-1.9 ndiswrapper-utils-1.9

Install the WiFi driver (from Windows):

sudo ndiswrapper -i yourdriver.inf

Check the driver is working:

sudo ndiswrapper -l

Load the module:

sudo depmod -a

sudo modprobe ndiswrapper

Configure modprobe so that it loads ndiswrapper:

sudo ndiswrapper -m

Edit the modules to add ndiswrapper at the end:

sudo gedit /etc/modules

Remember to add ndiswrapper at the end.

Hope you now have your WiFi up and working!


How do I set up apache with multiple sites?

To install LAMP on ubuntu 12.04 how to configure apache linux not the one on the ubuntu wiki ApacheMysqlPhp which seems to be a bit outdated since you can ow do the whole installation with:

sudo apt-get install lamp-server^

Now my problem was after creating two news web sites directories called site1 and site2 and enabling them in apache2, I had to point apache2 to their location by editing the etc/hosts file.
this was my mistake or what was not working:

127.0.0.1 localhost
127.0.0.1 localhost site1
127.0.0.1 localhost site2

The solution was to point my new sites directories in one line like this:

127.0.0.1 localhost site1 site2


sudo apt-get install libnl-3-dev libnl-genl-3-dev libssl-dev

You are specifically missing libnl-genl-3-dev which needs to be installed along with the other 2 packages listed.


Firefox full screen flickers to previous window when adjusting volume

I've encountered a similar problem along with some screen tearing.
For me the solution was to:

sudo mkdir -p /etc/X11/xorg.conf.d
sudo vim /etc/X11/xorg.conf.d/20-intel.conf

And paste the following content in this configuration file

Section "Device"
    Identifier "Intel Graphics"
    Driver "intel"
    Option "TearFree" "true"
EndSection

Note that this is with an intel graphics card and may not work with others


Wierd sound from headphone on ubuntu 14.04.1 lts

Hmm, recently I've also noticed strange sounds, especially while NOT playing music. From my short experience those may be:

Related to Ubuntu 14.04? I see nothing we can do but report that at the bugs website.
Static? I suggest making sure Your computer is grounded (power supply connected via 3 wires not 2, consistent all the further way). Sometimes - like in my case, there is no real grounding in the house while fake third bolt / hole sits in the wall sockets, this may be actually dangerous and should be fixed.
But this is all hoping Your computer is grounded correctly inside.
Two of my CPU went's wings once flied away seeking freedom (do not recommend, they ended up in the trash with a very miserable look), this causes serious vibrations to my notebook (after few mins random things on the table starts resonating, this is actually quite fun) and can influence electronics (like tiny disconnections of headphones).

All these 3 points can be possible since recently so I have no idea whatsoever.


You can also use

sudo apt-get purge gimpshop

which will remove package with its config files. Sometimes you want to get rid of everything that the package brought and AFAIK this is your case.

In the next versions of Ubuntu, when btrfs filesystem will be default, apt-get is integrated with snapshots of btrfs so you can get exactly to the state before the package was installed.


Not getting write speed and write method options in infrarecorder while burning image to disc

Try re-installing Infra Recorder.  You can download it here.

Or

You can download Free ISO Burner, a completely free program that only burns ISO files, making it really easy to use.

Note: Free ISO Burner is completely free and fully functional. It works on Windows 7, Vista, and XP, and will burn an ISO image file to any of the various kinds of BD, DVD, and CD discs that exist.


In general, the letters (fd, sd, hd) refer to the device type ('SATA, SCSI/SATA, IDE'), the third letter is for the device order (a the first, b the second, etc) and  the numbers refer to the partitions the device has, starting by zero.

hd refers to an IDE-type drive
sd refers to a SCSI drive in general, but is mostly popular for SATA drives and CD/DVD
fd is floppy disk

So for example:

the first (1) partition on your first (a) SATA drive is /dev/sda1
The third (3) partition on your second (b) SATA drive is /dev/sdb3
the second partition (2) of the second (b) IDE hard disk is '/dev/hdb2'

This device naming is more of a background one, as the actual point to access it a directory mount point.

I think that the following three articles will help you a bit:

Ubuntu install-guide: Device Names in Linux
http://tldp.org/HOWTO/html_single/Partition/
Ubuntu install-guide: Linux Devices


The PPA has not seen an update since February of 2017. If you want to install via an apt package, you will need to use 14.04, which is EOL, or 16.04, which will be EOL in a little over a month. Looking at the GitHub repository for the project, it seems to be primarily focused on macOS, though you may be able to compile it from source if you’re willing to debug. I say this last bit because the build status appears suspect:

If you would like to give compiling a try, the instructions can be found here.
Good luck


GObject (GTK3) TreeView: how can I activate row programmatically?

You'll need a GtkTreePath to the row, and a GtkTreeViewColumn for the column, but you can use row_activated() on the TreeView widget you wish to activate from. Calling this will result in the row-activated signal being called, as well.


How do I install Ubuntu Server on Foxconn Nano PC?

Hit Del on startup to get to BIOS
Make sure the first bootup device is "hard disk".
Click on "Hard disk bootup options"
If you have your USB inserted, you will see both your HDD/SSD and USB disk
Change hard disk boot order to boot from USB first
Press F10 to save BIOS settings.
When you boot with these settings, it should boot to the USB.


"No such file or directory" even though the file is listed with ls

The output of namei shows what the problem is: your file exists, but has permissions ----------, meaning it is neither readable, writable nor executable by anyone, including the user who owns the file. Try:

chmod u+rw program.fs

The command ls -l program.fs should then show something like

 -rw------- 1 username username 0 Nov 22 14:21 program.fs

The rw means that you have given yourself permission to read and write this file. See e.g. https://www.tutorialspoint.com/unix/unix-file-permission.htm for more info.


Comparison of various Pitivi video editor project settings

Personally I Would use MKV For High quality as it is open source and has more options than any other format Comparison of container formats. As far as mobile or streaming is concerned I would use webm as its also open source and is designed to be streamed and is backed by google (chrome os, android etc.....) and for everyone else flv.
Hope this helps.


Can netplan bring down the routing for an interface entirely if another interface has a priority route-metric?

The answer is no, there is no way to do this through netplan.  Metrics are supported using their standard meaning.


ubuntu-desktop package broken for Ubuntu Server 14.04

Noticed the same during yesterday, thought it was bound to this (https://bugs.launchpad.net/ubuntu/+source/update-manager/+bug/1654008) and was seeing the same package break during a netinstallation of 14.04.

It seems the issue was present at least on some official mirrors in EU and Asia, a colleague of mine just informed that it was solved now.

Doing a test installation now today went through fine. So try again :)


Brother MFC-J450DW Printer not working on14.04LTS

The easiest way for us noobs is to install the drivers from the debs (actually on the Brother website).

http://support.brother.com/g/b/downloadlist.aspx?c=us&lang=en&prod=mfcj450dw_us&os=128

Just install all of these (just double-click on the file once it's downloaded).  You may need to restart your computer (with the printer plugged in just to be safe), but it should just be plug and play from there.

I had an earlier model and, once doing this, I was able to hotplug (plug it in to a running OS) and print, or run Simple Scan, and it'd just-work.


How to I copy bootable USB flash drive to larger drive?

Ok, this is what i would do:

Assuming your old disk is /dev/sda and the new one is sdb.

dd if=/dev/sda of=/dev/sdb

After that, check if it is booting.

If it does, you can resize the partitions with your tool of choice.


Which programming language to develop software for USC that also runs on other OS? (Windows / OS X)

Then i was at JAVA - SWT: It is to heavy. I want do code a small app
  that improves the Ubuntu desktop. I don't want to ship a program with
  eclipse included.

I would suggest not to dismiss Java and SWT on this basis. If you want something in Java that really looks native, SWT is your best option. Eclipse's WindowBuilder supports it will too. You're clearly misunderstanding what you need to ship with your application. You don't have to ship Eclipse, just the SWT jars. Unless you application is really simple, it's likely that you'll have to depend on 3rd party jars at one point or another (or ship your own anyway).

The main difference with Swing is that you need to ship the right SWT jar for the right platform (e.g. x86_64). It's not actually so hard to do, and can be packaged appropriately with a suitable build system.


Launch Files (aka Nautilus) and click on the "Files" button next to "Activities" and select Preferences.

Change all the entries (First/Second/Third) under "Icon View Captions" to None.


Here's a (long) short explanation...
When you perform a Ubuntu upgrade, it disables all of your "foreign" sources, on the assumption that they may cause problems with the upgrade. It's left to the user to determine which repositories need to be re-enabled, and which might require editing. All these "foreign" repositories have a comment indicating that they've been disabled on upgrade to yakkety.
You have to edit each repository entry to determine its status. I'll use one of my own examples.
Here you see that this repository is using an older xenial distribution. I wonder if there's a newer one for yakkety? Copy the URI field to the clipboard, open your web browser, and paste the clipboard into the address bar, and hit enter to go to the web site.

Here we are at the web site. Click on the dists directory.

Then we end up here. Notice that this repository does not have a yakkety directory. The newest directory is for xenial. So image #1 is correct, and needs no updating, except for editing the comment field and removing the disabled on upgrade to yakkety comment. If there was a yakkety directory, we could edit image #1 to show that distribution. Click OK to save any edits, and enable the checkbox in front of that repository.

Go through all of your repositories like this. Then when you exit Software & Updates, it'll rescan the newly (re)enabled repositories to make sure that no errors exist. If there are errors, write down the error message, and go back to that repository entry and recheck that the information is correct.


A quick search online also tells me Nvidia Tegra it's not i386 or amd64 at all, but an ARM architecture, so cannot use i386 or amd64 as it's the wrong architecture (and bit size doesn't matter).
Your cpu is armv7 (32-bit ARM) or arm64 (64-bit ARM) neither of which is i386 or amd64 as they are incompatible being a different architectures.
i386 is the 32bit x86, which is not compatible with armv7 (32bit ARM).
amd64 is the 64bit x86_64, which likewise is not comptable with arm64 (64bit ARM)
ARM use very different opcodes, so program code for one architecture can only be used as program data on the wrong architecture. To execute ARM code on AMD64 processors you need interpreters that execute it, and likewise ARM requires an interpreter so it could process AMD64 code (or i386 code too), the results of which are comparatively slow & need loads more memory that code executed without interpreter.  Even if you have loads of RAM and can run an interpreter, the results are usually not fun with games due to loss of speed.


This is a bit of a long shot but it may work well enough. Apparently, it only needs to be run once. Please download this from my personal Dropbox. These are the files I compiled in connection with the forum thread I linked: https://dl.dropboxusercontent.com/u/7436581/ideapad2.zip Drag and drop the file to the desktop of the Yoga. Right-click and select 'Extract Here.' Make sure the module in the kernel is unloaded:

sudo modprobe -r ideapad-laptop

Now load the experimental version I compiled:

cd ~/Desktop/ideapad2
sudo modprobe sparse-keymap
sudo insmod ideapad-laptop.ko
sudo rfkill unblock all
rfkill list all
sudo rmmod ideapad-laptop.ko

Look for errors, warnings and wireless activity! If you encounter the 'unknown symbol' again, you may need the kernel headers matching your kernel. Go here: http://packages.ubuntu.com/trusty/linux-headers-3.13.0-32-generic Download and install the 64-bit package. Then try the commands above once more.

If successful, blacklist the original module:

sudo -i
echo "blacklist ideapad-laptop"  >>  /etc/modprobe.d/blacklist.conf
exit

WARNING: This fix may only work for kernel version 3.13.0-32-generic and 64-bit.


Install php5 on Ubuntu 16.04 without installing Apache 2.4

The reason why apt-get is installing Apache2 because it is resolving a dependency. To satisfy that dependency first install php5-fpm before php5:

sudo apt-get -y install php5-fpm php5

This should solve the issue you are having. I got this answer from here


Ubuntu 16.04 Dual Boot Windows 10 boots to black screen unless I boot windows first

Open a terminal after Ubuntu has booted to your desktop. Ctrl-Alt-t is the easiest way to open it.

Open the grub settings file with sudo:

sudo nano /etc/default/grub

Go down to the blank line after

#GRUB_GFXMODE=640x480

press Enter and enter

GRUB_GFXPAYLOAD_LINUX=keep

The position in the file doesn't actually matter, it's just most logically placed there.

close the file with CtrlwCtrlx.

Run sudo update-grub in the terminal. Reboot.


Missing Top/Bottom Panel in Gnome on Ubuntu 12.04

gksu nvidia-settings
You will get to see a window, similar to this

Select the window, by clicking, on which you want the Panel to appear
Then click on the "Make this the primary display for the X screen"
Click Apply

This should bring the Panel to the display of your preference.

From your question, I understand that your window manager also has changed.

To get back both the Top and Bottom panels,

Logout
After typing the username, click on the icon
Then select Gnome Classic from that list
Now login, you should see both bottom and top toolbars

NOTE: In plain old Gnome (not Gnome classic), Ctrl-Up, Ctrl-Down, will switch workspaces.


MSI GS 65 Ubuntu 18 wireless: no wifi adapter found

I checked my device using lspci -knn | grep Net -A3. This gave me the PCI id (8086:a370). I searched with that and found this forum. It clearly says that it is supported for kernel >= 4.16. Ubuntu 18.04 has 4.15.

You can just upgrade the kernel to solve the problem. Since I have nvidia drivers installed I upgraded to Ubuntu 18.10 which has 4.18. This indeed solved the problem.


Does a virtual whiteboard that offers real time editing exist for ubuntu?

I've just discovered OpenMeetings after some googling.
Features (list taken from its web):

Audio and Video Conferencing

Meeting recording and Screen sharing

File Explorer
With public (conference room) and private (logged user) views

Moderating System

Multi-Whiteboard and Chat
White board with drawing, writing, Drag n' Drop, Resizing, Images

User and room management

Private message center

Plan meetings with integrated calendar

Polls and Votes

Backup

It is a more general piece of software, but it might fulfill your needs.
PS: Or you can just use Skype screen sharing if you don't need to interact remotely with the board. You need to go premium for multiuser video, so probably for screen sharing too.


Answer in Progress..

keep mouse pointer at top left,


Cannot boot Windows 8 after installing Ubuntu 14.04

Unfortunately it looks like the problem was that during the install you formatted Windows off the drive. In your Gparted image here notice there is no partition marked as Microsoft or Windows. Not seeing the grub menu on boot is the standard behaviour for a system that only has Ubuntu installed on it. It looks like you will need to restore your Windows and install Ubuntu again. During the install process for Ubuntu you are given an option to install alongside your existing operating system.


Because you said, the command

gsettings get org.gnome.desktop.input-sources source

gives you

[('ibus', 'bogo'), ('xkb', 'us')]

you have to correct the settings with the command

gsettings set org.gnome.desktop.input-sources sources "[('xkb', 'us')]"

Maybe you have to restart Unity.


Ubuntu 64 bit download flagged as phishing site

It is probably a problem with the mirror it is using. Mirrors are usually calculated to give the fastest internet speed for your location. The mirror I get is:
http://mirror.sov.uk.goscomb.net/ubuntu-releases//saucy/ubuntu-13.10-desktop-amd64.iso

Anyway, you can download it directly from here:
http://releases.ubuntu.com/13.10/

It does not seem to use mirrors, as it gives this as the link for the amd64.iso:
http://releases.ubuntu.com/13.10/ubuntu-13.10-desktop-amd64.iso


In both cases (suspended / powered-off) the VM doesn't consume battery.

The major difference between those two modes:

Suspend writes memory to disk and the Guest OS enters hibernate/sleep state
Powers off the virtual machine. The virtual machine does not attempt to shut down the guest operating system gracefully.

More info from VMWARE online library


It is possible. You could do a Live USB with persistent storage space. This may help you (http://www.ubuntu.com/download/desktop/create-a-usb-stick-on-windows). However, I think that the best solution would be to go with a distro that is designed for running on a USB drive, like Puppy Linux (http://puppylinux.org/main/Overview%20and%20Getting%20Started.htm). You should know, however, that using the OS on a thumb drive has it's limitations, even tough it is fine for light stuff (internet browsing, text editing, etc.).


As the error message says, the already known hash sum of the package mismatches the calculated one of the download.

You will have to discard the file and download it again.

Possible reasons:

Unreliable internet connection
'Optimizing' internet service provider
broken network cable
hard disk failure.


Open system setings then notification
go to applications-configure
then plasma workspace and configure events
uncheck trash-emptied and warning message


Drivers for Lenovo Thinkpad E550 Touchpad

I was able to fix this (I have the same laptop) on my Ubuntu 14.04 installation using a newer kernel (v3.19+ from Vivid or later). I ran:

sudo apt-get install linux-generic-lts-wily

did a reboot and the touchpad seems to be working now (source).

Other people seem to be able to solve this problem by using a newer kernel too:
https://github.com/duncan-bayne/mint-setup/issues/41

Also, if you have VirtualBox, your computer will keep reporting or bugs, a possible workaround is to uninstall to VirtualBox and install the latest one.


13.04 plus chrome = video with audio at too high of a pitch

I had this problem too.
Any time it went wrong I used

pulseaudio -k

in the terminal. It shut the sound off for a couple of seconds, and then when I open chrome again, the problem is fixed. It seems to be an intermittent problem - are you running kernel 3.8.0-23 perchance?


connect to linux nginx server from windows machine

That is going to happen when you are newbie in Linux.It was simple...deactivating linux firewall.

   sudo ufw disable


How can I format my active hard drive to NTFS?

So, I assume you are trying to format with ubuntu, and not wanting to keep ubuntu, so the best thing to do is to boot up to a live cd of ubuntu(most likely the disk you used to install ubuntu, if not Ubuntu download) and use gparted off the live cd, using gparted video, because you can't format the active partition while using it. Just keep in mind that formating the partition will get rid of ubuntu and all your data


Is there a 'contiguous' option for the magic wand in Gimp?

Yes you can.

In Gimp you have two tools:

The Fuzzy Select Tool

Which will allow you to choose an area based on the color and the similarity using a few additional tools like thresholding, mode, selection by composite, channel, saturation and value and a few more.

In the next example I am using the Fuzzy Select Tool which is selecting only the white color around the logo.

Using the same tool, I am adding inner sections of the logo by keeping the Shift key pressed while clicking on the sections to add.

The Select by Color Tool

With this tool you can choose which color base regions you wish to choose with just a click, using additional tools, like: mode, selection by composite, channel, saturation and value and a few more.

In the next screenshot I am using the Select by Color tool in order to click into the center oval of the number nine in the logo in order to choose all the regions that are similar (based on the threshold) to the color I picked when clicking.

As in the previous tool, you can keep the Shift key pressed while clicking in order to continue adding adjacent areas.

Based on thresholding, the selection may be more accurate.

Depending on the mode that you use, you can have the effect that you wish. In the next example I have activated the second mode which will act as additive in both the Fuzzy and Color selection tools.


Normally the tutorial for the W500 should work fine, but  why do you need a tutorial for that? Isn't it a normal x86 or x64 architecture?

Should boot fine from USB, as Ubuntu is abled to boot in UEFI mode. Take care of the touchscreen drivers and have mouse+keyboard ready during and after installation(maybe you need a USB splitter, if only one port)


How to Create a cron job to backup ghost blog directory

Looked like you previously had some quotation issues. Using ascii quotes won't work well with code, use the standard coding quote (") instead.

Ascii quotes come from word processors like libreoffice or abiword; don't use those programs for coding. Use something like gedit or leafpad.

Also, are you putting this in /etc/crontab? If so, you need to add a user before the command to execute. Either root or your username. This is an example of a correct /etc/crontab job line:

10 6    * * *   root    bash /home/myusername/myscript.sh


Is there a locate type command for finding hostnames?

Take a look at the "dig" utility

> # dig google.com

; <<>> DiG 9.8.2rc1-RedHat-9.8.2-0.10.rc1.el6 <<>> google.com
;; global options: +cmd
;; Got answer:
;; ->>HEADER<<- opcode: QUERY, status: NOERROR, id: 8753
;; flags: qr rd ra; QUERY: 1, ANSWER: 6, AUTHORITY: 0, ADDITIONAL: 0

;; QUESTION SECTION:
;google.com.                    IN      A

;; ANSWER SECTION:
google.com.             120     IN      A       209.85.202.100
google.com.             120     IN      A       209.85.202.139
google.com.             120     IN      A       209.85.202.102
google.com.             120     IN      A       209.85.202.101
google.com.             120     IN      A       209.85.202.113
google.com.             120     IN      A       209.85.202.138

;; Query time: 1 msec
;; SERVER: 192.168.0.228#53(192.168.0.228)
;; WHEN: Thu Oct 27 14:43:06 2016
;; MSG SIZE  rcvd: 124


How to open terminal automatically when ubuntu boots up?

In "Startup Applications" add the program with the command gnome-terminal.

You can also install gnome-tweaks and go in the menu "Startup Application" where you can choose from a list the applications.


Install some packages (with deps) on machine that has no internet connection

There are several ways to import the package from your machine to the server machine and install it.

Creating you own DVD Repo - Follow this thread
Copy all the .deb packages inside your /var/cache/apt/archives folder and scp it to the server. Then in the server install the packages via the following command.
sudo dpkg -i *.deb
Try Keryx. Its a package manager allows you to download the packages to you pendrive and you can install it in your machine where you don't have an internet connection.

As you have an server machine Keryx won't suit you. You can try the other options.


HUD doesn't work with Firefox and Thunderbird

HUD requires that you have global menu enabled.Go to Tools>Add-ons>Extensions and enable Global Menu Bar Integration

If you don't find this add-on in your list,then you need to install firefox-globalmenu and thunderbird-globalmenu packages.


can we add extra items to gallery of libre office writer

Install the Open ClipArt package from the Ubuntu Software Center.


Cannot find the .iso file to create a live USB disk

When you open Startup Disk Creator, you see in the Make Startup Disk window the following text: Source disk image (.iso) or CD. In order to get the ISO file that you need, visit the Download Ubuntu Desktop webpage.

Because the Ubuntu ISO is a large file, it is better to copy its link location and then download it with wget, because wget can resume broken downloads. To download a file from source http://www.ubuntu.com/start-download?distro=desktop&more-stuff... and save it to your Desktop, open the terminal and run the following command (for Ubuntu 13.04. For later versions of Ubuntu follow the 4 steps below the command to replace the Ubuntu 13.04 download link with the current download link):

cd ~/Desktop && wget -c http://www.ubuntu.com/start-download?distro=desktop&more-stuff...

In Ubuntu 14.04 and later replace the link in the above command: http://www.ubuntu.com/start-download?distro=desktop&more-stuff... with the link that you get when you visit the Download Ubuntu Desktop webpage and then follow these steps to get the URL of your download link:

Choose your flavour from the dropdown menu.
Click the Download button.
Click the link at the bottom of the page that says: Not now, take me to the download ›
Right-click the link to the correct iso file to download where it says download now and from the context menu select Copy Link Location. The exact wording of the Copy Link Location menu entry may vary depending on what web browser you are using. The link location is the URL of your download link.

After you have downloaded the ISO file, the md5 checksum hash is used for file verification. The Ubuntu Documentation UbuntuHashes wiki contains all of the md5 Hashes for the different versions of Ubuntu. Let's assume that you downloaded a file called FILE.iso to your Desktop, and you want to find its md5 checksum. To find the md5 checksum of a file called FILE.iso, open the terminal and type:

cd ~/Desktop
md5sum FILE.iso

When the ISO has been downloaded and its md5 checksum has been verified, it is ready to use in Startup Disk Creator.


After yesterdays update Firefox can no longer connect to the Internet (Chromium does)

Same here. Solved with a new profile. However this is annoying. The bugs point toward seccomp sandbox violation and WARNING: Unable to create pipe as shown here as well (quite old): https://github.com/mozilla/geckodriver/issues/787, https://github.com/SeleniumHQ/docker-selenium/issues/388


Kde, Dolphin : Dolphin not showing preview of images or any files

I had exactly the same issue. I used

sudo apt-get install kio-extras

and now it works well. You might need to go to

Settings>Configure Dolphin...>General>Previews

and then select whatever you need. Then of course press the "Previews" button if you haven't or go to View>Previews, but at least images should be by default. I also read that for some other formats (that I'm not using, so I haven't tested it) you should try

sudo apt-get install ffmpegthumbs

sudo apt-get install mplayerthumbs

sudo apt-get install kffmpegthumbnailer

I hope it works for you too!


What does the -b switch for udisksctl do?

The -b (--block-device) option is for choosing a block device like /dev/sdb1. You can find this out by typing udisksctl unlock --help for instance; replace unlock with mount, unmount and lock and you will see the -b option is used in the same way for all 4 cases.


Where do I report packaging bugs? For example regarding dependencies

Same place you report other bugs: Launchpad

How do I report a bug?


Cannot Keep Ubuntu Server running on a laptop despite workarounds

turned out the entire section was commented out I didn't realize because I am only use to commenting in C.


Is it possible to decrease length of unity laucher?

not unless you go into the code and hack it yourself, you will also need to deal with other code that assumes its full width.

It would probably be easier to switch to something like gnome3 instead of unity of you want that behaviour.

This explains how to enable gnome3
http://www.webupd8.org/2016/04/how-to-install-gnome-320-in-ubuntu.html


I had the same issue. Changing Display Manager from gdm3 to lightdm solved the problem in my case.

Install LightDM

sudo apt install lightdm

Run dpkg-reconfigure and select lightdm in the dialog

sudo dpkg-reconfigure lightdm

Noteworthy that I have the latest available Nvidia driver installed:

$ ubuntu-drivers
devices :
vendor: NVIDIA Corporation
driver : nvidia-driver-430 distro non-free recommended


How to Enable Wifi N-only in Ubuntu 14.04 on Broadcom BCM4360?

For the wifi issue:
MacBook Pros and MacBook Airs have very similar wireless cards (if not the same), so a simple sudo update && sudo apt-get install firmware-b43-installer should do the trick.

The reason for it not connecting to the router could be because it is a different type of connection, that the current driver does not support.


If you want to continue on your current path you could save a substantial amount of time using Ansible to configure the machines and setup the keys:

https://docs.ansible.com/ansible/latest/modules/authorized_key_module.html

Ansible is not too hard and has saved us many thousands of hours by templating.


I want to back up everything, OS and files to a USB. it says my hard drive disk is about to fail

In my opinion the easiest tool to achieve this task is Clonezilla
For that purpose you'd need:

One smaller USB stick or a CD or some other storage device to boot Clonezilla from - the website has pretty good instructions and there are numerous instructions on the web how to do it;
One large USB stick, external HDD, NAS or a similar storage space to store the image of your hard drive on.

You then boot Clonezilla, choose "Device to Image" option and run the backup.
You can then replace your hard drive with a larger one and reverse the process: boot Clonezilla, select "Image to Device" and restore backup.
The PC should start normally and you would not see any differences. You can then use GPartEd to enlarge the partitions to use the extra space.
The process is pretty straightforward.
Note: cloning to a smaller drive is not supported and, although possible, is rather hacking and I'd highly discourage it.  Especially if the drive is actually failing.


Formatted my data drive but it works now, no more hanging with modprobe things, and no more waiting for root device. But now I have to reinstall all my stuff when I get windows again.


Installing at some custom location using apt-get

No, it is not possible to change the locations of files using apt-get. Paths are part of the package. To change them you will need to modify the package itself (which might or might not be easy, depending on the package).
To download the source code for your package, all you need to do is sudo apt-get source libmysqlclient-dev.

Hope this helps


Not sure it's the best option, but i use the repository of badgerports
About badgerports:

  badgerports is a software repository
  for use with Ubuntu Linux 10.04.
  Whilst on the whole it is a good idea
  to use the software provided with your
  Linux distribution, there are
  sometimes bugs or major software
  updates that cannot be included for
  operational reasons. badgerports is a
  home for a number of wayward software
  packages, to enhance the Ubuntu
  experience.

  The primary purpose of badgerports is
  to provide recent versions of the Mono
  framework, and associated packages
  such as F-Spot, Banshee, and
  Monodevelop. Suggestions for other
  packages to include are welcome, but
  don't be offended if I decline for
  whatever reason.whatever reason.

You can find the instructions on how to use it here


Terminal way
Type this:
lspci|grep 'VGA\|Display'

and you'll see something similar like this:
00:01.0 VGA compatible controller: Advanced Micro Devices, Inc. [AMD/ATI] Carrizo (rev c9)

You can ignore grep 'VGA\|Display' to list all PCIe and figure out how many GPUs you have by yourself if somehow the data is inaccurate.
GUI way
Install hardinfo and run it on terminal/search in Dash for "System Profiler and Benchmark". Look at the PCI devices section. It should looks like this:


apt-get doesn't see packages in my trivial repository

can you try with dpkg-scanpackages instead of dpkg-scansources


TV Screen disconnect when playing sound over hdmi

Depending on your sound hardware you may also find the appropriate port to where your digital HDMI sound goes. To list ports of cards available issue:

pacmd list-cards

Usually there are several profiles available to adress different ports. These will also be lsited with the command above. Try if selecting another profile gives you the expected results (replace <card-index> and <profile-name> with values read above):

pacmd set-card-profile <card-index> <profile-name>

If no profiles adressing different ports are available you can also change the port of a given sink with:

pacmd list-sinks  # to read the sink index for the next command
pcmad set-sink-port <sink-index> <port-name>

In case you have a graphical desktop you may also change the card profile with pavucontrol  in the "Configuration" tab:

Note that different HDMI-profiles may be listed which all show up having the same name.

If all that fails you may try to disable HDMI-CEC on your TV set or try with a different HDMI cable as flickering of the screen on your TV set may indicate an erroneous electrical input on the HDMI-ports.


HDMI stops working with my new Acer aspire E3-112

I had a similar problem. I wiped Winows 10 and installed Ubuntu 14.04 and the HDMI output worked in that the laptop screen was mirrored to HDMI. So I could watch BBC iplayer for example. Then I upgraded to Ubuntu 16,04 and the only HDMI output was the ubuntu screen with no programs running . So I reinstalled Ubuntu 14.04 (clean install) and the only program that gets mirrored to HDMI is Skype. Not Firefox etc. I can no longer watch BBC iplayer on HDMI now.

Any ideas please?


It's a windows program so you it probably won't work normaly. You can either try using WINE (Package to use windows programs on linux) or find an alternative that can do the same. Regards, ADDB


Use ssh-keygen. More information here: https://help.ubuntu.com/community/SSH/OpenSSH/Keys


Making ubuntu take over windows space on mac

In simplest terms, you can't make Ubuntu just "take over" the Windows partition. Windows uses an NTFS filesystem, which Ubuntu does not support. (By default, Ubuntu uses ext4.) If you only want Mac OS X and Ubuntu, you'll have to first boot an OS live (your Ubuntu installation media is a good choice) and delete the Windows partition. You can then make your Mac OS X or Ubuntu partition (your choice) bigger to fill up the new free space you have. You can make Ubuntu bigger or Mac OS X bigger, just a preference. You will then have to see if you can boot Ubuntu still. (I'm assuming your dual-boot works by booting to GRUB and choosing what to boot from there.)
If you see your OS choices (it's okay if Windows is still there, we'll take care of that), choose "Advanced options" or something similar, and boot your latest Ubuntu kernel into recovery mode. You should see an option to Update GRUB. Choose that, and hopefully everything will work well with a reboot.

If the above worked for you, skip this. Now, let's suppose that booting your Mac didn't work. Maybe you got some "No bootable media" error or something, or GRUB brought you to some "GRUB recovery command-line", which, if you don't already know, is not the recovery mode I speak of above. We need to re-install GRUB (assuming your dual-boot works by booting into GRUB to choose your OS). Boot from your Ubuntu installation media, and open up GParted. Use this to figure out the path to your partition with Ubuntu. In my example, it will be /dev/sda2. Once you figure that out, you can close GParted as we don't need that anymore, and open a terminal. Now, be careful when running this. I don't mean to alarm you, but if you don't install GRUB properly (i.e. you install it on top of Mac OS X), there could be disastrous effects! No pressure. Enter the command sudo grub-install /dev/sda2, where /dev/sda2 is the path to your Ubuntu partition. Reboot and change your boot order to boot Ubuntu instead of any other OS. Hopefully, all should be well now. If it's not, look up your problem online. I'm not an expert on GRUB, and even if I was, making every possible error and problem a part of this answer would make an answer longer than it already is, so I am not going to help you with GRUB if you have problems after taking the advice I have already given you above.


How do I resolve unmet dependencies when installing virtualbox 6.1 on Ubuntu 20.04?

Try this...
sudo apt autoremove --purge virtualbox*

wget -q https://www.virtualbox.org/download/oracle_vbox_2016.asc -O- | sudo apt-key add -
echo "deb [arch=amd64] https://download.virtualbox.org/virtualbox/debian `lsb_release -sc` contrib" | sudo tee --append /etc/apt/sources.list.d/virtualbox.list

sudo apt instal virtualbox-6.1


How to show the menu bar in Thunar in Xubuntu 15.10?

Simply press: Ctrl+M

This shortcut is shown in the View menu.


Error message of embree and ospray on Ubuntu

The problem is solved. In detail, I installed another version of SCIRun5 and qt4-opengl.


This is not expected behavior, and may be coming from a third-party hardware driver.

With the reboot command, you can try the -p option or the -f option if it is not shutting down all the way.

Also, you don't need to run sync before reboot; reboot will run sync automatically!


Rename folder of files based on file content

Probably not very efficient, but how about

for f in *; do
  d=$(awk '/^Date:/ {print $2; exit}' "$f")
  [[ -n "$d" ]] && echo mv --no-clobber -- "$f" "${d}-${f}"
done

Remove the echo once you are satisfied that it is doing the right thing.


Lubuntu Linksys WUSB6400M Wifi USB adapter driver help

I managed to get it running on ubuntu 16.04 by installing rtl8822bu driver from https://github.com/ulli-kroll/rtl8822bu


Is KDE 4.6.X available for Ubuntu 10.04?

For what i have seen in the kubuntu forums and ubuntu forums is no. Only the 4.5.x are for 10.04 (Ubuntu/Kubuntu) and 10.10 (Ubuntu/Kubuntu). The 4.6 and newer is for 11.04 (Ubuntu/Kubuntu)


How to install libncp-dev on Ubuntu 14.04?

sudo add-apt-repository "deb http://archive.ubuntu.com/ubuntu/ saucy universe multiverse"

sudo apt-get update

sudo apt-get install libncp-dev

Worked for me

EDIT: add-apt-repository will add the saucy repsitory for universe and multiverse to your /etc/apt/sources.list file which is where the libncp-dev package currently resides.

Originally From: "Accessing a Novell share on Trusty Tahr?"


Virtualbox 5.0.2-102096 Unity Launcher not hidden in full screen

Confirmed workaround is:

Put the VB Guest in either windowed or full screen mode
Lock the Ubuntu screen - VB Host - via the menu
Unlock
Put the VB Guest in full screen mode or go to windowed mode then back to full screen mode.

The launcher and top menu row then disappeared / behaved as wanted and expected.


Try using the following command in the terminal:

sudo do-release-upgrade


Should I install the Debian or xUbuntu version of TeXstudio on 12.04?

xUbuntu :
  The 'x' stands for whatever version. So, in this case, "xUbuntu" means "Ubuntu or Xubuntu or Kubuntu or Lubuntu".

  Which one should I choose ? : In my opinion, the best would be to take the xUbuntu way, because it's more likely to have the needed dependencies for Ubuntu.

  Should I ask the developers ? : I don't think it's necessary, for the reasons already given.

So, to install the 2.5.2 version of TeXstudio on Ubuntu 12.04 x86_64 (64bits), you should do this :

wget http://download.opensuse.org/repositories/home:/jsundermeyer/xUbuntu_12.04/amd64/texstudio_2.5.2_amd64.deb
sudo dpkg -i texstudio_2.5.2_amd64.deb
sudo apt-get install -f

Or, graphically, download this package and install it with the Software Center.


gpg: no valid OpenPGP data found in ubuntu

Remove the Ethereum repository first:

sudo add-apt-repository --remove ppa:ethereum/ethereum
sudo apt update

Remove imported GPG key:

sudo apt-key del 2A518C819BE37D2C2031944D1C52189C923F6CA9

Import GPG key of the Ethereum repo again:

sudo apt-key adv --keyserver keyserver.ubuntu.com --recv-keys 2A518C819BE37D2C2031944D1C52189C923F6CA9

Add repository again:

sudo add-apt-repository -y ppa:ethereum/ethereum
sudo apt update

UPDATE

Remove the Ethereum repository again:

sudo add-apt-repository --remove ppa:ethereum/ethereum
sudo apt update

Remove imported GPG key:

sudo apt-key del 2A518C819BE37D2C2031944D1C52189C923F6CA9

Try

gpg --keyserver keyserver.ubuntu.com --recv-keys 2a518c819be37d2c2031944d1c52189c923f6ca9

and next

gpg --export --armor 2a518c819be37d2c2031944d1c52189c923f6ca9 | sudo apt-key add -

Add repository for Ubuntu 16.04:

echo -e "deb http://ppa.launchpad.net/ethereum/ethereum/ubuntu xenial main" | sudo tee /etc/apt/sources.list.d/ethereum-ubuntu-ethereum-xenial.list

Update apt:

sudo apt update

Install software you want from the Ethereum repository.


How to completely uninstall LXDE (12.04)?

What you can do is, to first, check the dependency of the lxde.
You can do this using the apt-cache command.

sudo apt-cache show lxde

This enables you to remove dependency packages.
So far, this has worked for me!


Can't install a package due to "Something wicked happened resolving" error

Close all programs/windows which have to do with installing software e.g. Synaptic, software-centre and terminals.

Now you should delete the locked files:

  You can delete the lock file with

sudo rm /var/lib/apt/lists/lock

  you may also need to delete the lock file in the cache directory

sudo rm /var/cache/apt/archives/lock

  by: this answer

and now you should open a terminal and run:

 sudo apt-get update --fix-missing

and now you can install everything you want again.
Have a nice day


Windows disappeared from UEFI menu after installing Lubuntu

Oops, looks like Lubuntu may have either formatted your EFI System Partition (ESP) or removed your boot files. You can restore it by using the following:

Boot your computer using a Windows 10 installation media or Windows 10 recovery disk. On the first screen, press SHIFT+F10 to enter Command Prompt.

Use the following commands:

select disk # (“#“ is your ESP that you will copy boot files to.)
assign letter=S (You may replace “S” with other letters which are not already used.)
exit

Use the command below to copy the boot files from the Windows partition to the EFI system partition and create the BCD store in it:

bcdboot C:\windows /s S: (“C” is the drive letter of the system partition and “S”  is the drive letter you assign to the EFI partition.)

exit

Restart your computer.

After the restart, boot into Lubuntu immediately. Open QTerminal (or LXTerminal, I don't use LXDE/Qt) or use tty (Ctrl+Alt+F2)

Update Grub using sudo update-grub.


laptop disconnects from power then reconnects on 18.04

SHORT ANSWER:

the charger was not capable of supplying enough power to keep up with the needs of this laptop.

LONG ANSWER:

So after a while of trying different things, i finally figured it out. I had noticed that the charger i happened to be using on this power hungry laptop was getting VERY hot, so i decided to hack together another one, of a much higher rating.
  it worked.


Where are the 17.04 checksum files located?

For 17.04, they are here: http://releases.ubuntu.com/17.04/

As sudodus mentioned, the checksums for all current Ubuntu varieties are linked here: https://help.ubuntu.com/community/UbuntuHashes

For what it's worth, on the 17.04 download page, you can click Learn how to verify, then Download sums, then Download sums and signature for Ubuntu 16.04.2 LTS, then edit the url from 16.04 to 17.04, to get to http://releases.ubuntu.com/17.04/. I agree it's unintuitive.


How to restore ssh_config file in /etc/ssh

The file /etc/ssh/ssh_config is part of the package openssh-client. Therefore

sudo apt-get purge openssh-client
sudo apt-get install openssh-client

or

sudo apt-get install --reinstall openssh-client

Purging the package ssh makes no sense, it's only a meta-package for openssh-client and openssh-server and purging this package doesn't purge openssh-client and openssh-server.


Is it possible to install a Rust (steam pc game) server on xubuntu 16.04?

I have not used Rust server  before, but the following links could help you:

How to host a rust server in Linux

Rust dedicated server

Rust server on Linux Ubuntu

Rust | Linux Game Server Managers (Recommended)


Unable to connect to server on internal network

So I tried what mchid said and turned off AP Isolation in the router and now I can access my server without having to sit next to the router!!!


Here is my $0.02....
RAM: According to Kingston.com you have a max of 2GB with 2 sockets. If someone has been able to have 4GB installed, and usable, then there may have been a BIOS upgrade that enabled this. I do not think 8GB would be possible. DDR2 800MHz is the top for you. DDR3 will not work. 915GV is the chipset. If BIOS is reporting 82915G/GV/910GL, 82915G is you.
32-Bit vs 64-Bit: If the board is 32-Bit, that is what you have to install. You CANNOT install a 64-Bit operating system on a 32-bit board. You can install a 32-bit operating system on a 64-bit board though. Short of buying a 64-bit board, there is nothing that can be done to upgrade the board to 64-bit.
HARD DRIVE: Off the top of my head, I do not see any reason why you should not be able to run a SSD. As long as it is a SATA drive, you should not have a problem there.
WIRELESS: I am not familiar with the other 3 adapters but, the Linksys should work. I would suggest booting the system off of the DVD and just run a live session. If the adapter works there, it will be just fine.
UBUNTU VERSION: You should be good there. If it has been tested with a recently older version, you should be fine.
GOAL: My recommendation, use what you are familiar with. Since this is a learning PC, why not duel boot both Ubuntu and Debian? I would also suggest, make sure you can make several images of the drive as you play. I have found myself with dead installs by playing with seemingly harmless settings and programs. Ghost was a very close friend.
VIDEO CARD: You have PCI Express. You can always upgrade there. Being that this will be a learning PC and you will not be doing any gaming, I don't see a need to upgrade there. Steaming video could be a concern. Even then, a decent $50 card can go far.


The performance governor for cpufreq doesn't seem to behave as advertised

Sadly, in 12.04, the cpufreqd-deamon overrides any setting you do in other apps, whether in cpufreq-cli or in Unity-applet.  The easiest solution I found while browsing the Ubuntu documentation was to edit /etc/cpufreqd.conf and first add a profile called On Demand as follows:

[Profile]
name=On Demand
minfreq=10%
maxfreq=100%
policy=ondemand
[/Profile]

Then you need to scroll down past #basic states, and choose the new On Demand profile as the profile for all the Basic states.

The current problem is that cpufreqd polls acpi for AC state, notices that the AC is connected, and then sets the cpu governor to performance, because that is what is set in the basic rules in the config file. It couldn't care less that you have selected another governor either by command line or by the scaling applet in Unity.

Remember to run

sudo service cpufreqd restart

after editing the config file.

Fun fact: cpufreqd seems to NOT override me if I choose the performance governor in the unity applet. But before I edited the config file, it would always override my choice for on-demand, and fall back to performance. I have no idea why.

I use the powernow-k8 driver, if that means anything to anyone reading this answer later.

Note: The Ubuntu documentation is severely lacking concerning cpufreqd (as well) and there might well be a better/easier/GUI-solution to the problem.


Remove Ubuntu bootloader from Windows 7 dual boot

You very well may want that bootloader one day! ;)

But try this and see if you like it:

sudo -i gedit /etc/default/grub

Look for:

'GRUB_TIMEOUT=10'

Change that to 0. This will make the countdown on the grub screen 0, and it will boot the default OS. MAKE SURE Ubuntu is your default selection, or it will just boot back to windows!

Then:

sudo update-grub


My process is already daemonized before calling fork

If you are not changing users, there is no reason to use start-stop-daemon in an upstart script. Simply exec testservice.


How to remove snap completely without losing the Chromium browser?

Debian Repo Saves the Day!
Debian still maintains Chromium as a regular package in their APT repository. We can configure Ubuntu to get it from there, and continue to receive timely security updates along with all of our other OS updates. This makes sense from a security perspective, since Debian is where Ubuntu already gets most of its packages, and is a very well known high-profile project. There is no need to risk installing software from some random source or telling your system to trust a PPA.
Obligatory Warning: This is entirely unsupported and could conceivably cause problems either immediately or in the future. If you break something, it's your own fault.
Here's what I did on Ubuntu 19.10:
sudo apt update && sudo apt upgrade

That brings all my already-installed Ubuntu packages up to date, so it will be easier to see how upgrades are affected after I make my changes.
snap remove chromium

Bye bye, annoying snap.
sudo apt purge chromium-browser chromium-chromedriver

Bye bye, fake Chromium packages. (You can leave out the chromium-chromedriver part if that package isn't installed on your system.)
umask 22

That just makes sure that the files I create will be readable by everyone, including the system.
Create an /etc/apt/sources.list.d/debian-stable.list file containing:
deb [signed-by=/usr/share/keyrings/debian-archive-keyring.gpg] http://deb.debian.org/debian stable main
deb-src [signed-by=/usr/share/keyrings/debian-archive-keyring.gpg] http://deb.debian.org/debian stable main

deb [signed-by=/usr/share/keyrings/debian-archive-keyring.gpg] http://deb.debian.org/debian-security/ stable/updates main
deb-src [signed-by=/usr/share/keyrings/debian-archive-keyring.gpg] http://deb.debian.org/debian-security/ stable/updates main

deb [signed-by=/usr/share/keyrings/debian-archive-keyring.gpg] http://deb.debian.org/debian stable-updates main
deb-src [signed-by=/usr/share/keyrings/debian-archive-keyring.gpg] http://deb.debian.org/debian stable-updates main

That tells apt to look for packages not only in the Ubuntu archives, but also in the Debian stable archives. This is ordinarily a bad idea, because you don't want hundreds of random Ubuntu packages being replaced with Debian versions, which would very likely break your system. However, we're going to add some rules to avoid this problem.
Note: The /usr/share/keyrings/debian-archive-keyring.gpg file referenced above, along with several other Debian keyring files, are already present on my Ubuntu system thanks to the debian-archive-keyring package. It may already be on your system, too, but if not, you should install it: sudo apt install debian-archive-keyring
Create an /etc/apt/preferences.d/debian-chromium file containing:
Explanation: Allow installing chromium from the debian repo.
Package: chromium*
Pin: origin "*.debian.org"
Pin-Priority: 100

Explanation: Avoid other packages from the debian repo.
Package: *
Pin: origin "*.debian.org"
Pin-Priority: 1

The first stanza assigns a below-normal priority to Debian Chromium packages; just high enough to allow them to be manually installed and automatically updated, but not high enough to be preferred over Ubuntu packages. This is called apt pinning, and is described in the apt_preferences manual. The second stanza assigns a very low priority to all other Debian packages, so they will only be automatically installed or updated if necessary to satisfy a dependency.
(I suppose I could have assigned a much higher priority to Debian's Chromium packages if I needed them to override Ubuntu's, but since they use different package names, no overriding is necessary. I could also have pinned all of the Debian repo at priority 100; that would make any Debian-only dependencies eligible for automatic updates, effectively treating the Debian repo like Ubuntu Backports in manual install mode. I chose the more conservative approach just to be cautious.)
sudo apt update

That refreshes the package database, so my Ubuntu system now knows about everything in the Debian archives that I added.
apt upgrade --simulate

That shows me what a system-wide package upgrade would do, without actually doing it. Since I already did an upgrade before making any changes, I don't expect to see any upgradable packages listed here.
If one or two upgradable packages were listed, it could mean that Ubuntu happened to release some updates while I was working, which is normal. I would ask apt where each of those updates come from before proceeding, with apt policy package-name. If any of them were from the Debian archives, I would consider reverting my changes, by removing the files I created and running sudo apt update again.
If many upgradable packages were listed, it would probably mean that apt now thinks Debian's packages are valid replacements for Ubuntu's packages, which I do not want. This would happen if I made a mistake in those files I created. I would revert my changes, by removing the files I created and running sudo apt update again. I might then consider starting over and typing more carefully.
All was well at this point (no upgradable packages were listed), so I proceeded.
sudo apt install chromium

The package manager then asked me to confirm, listing chromium and a small handful of dependency packages needed by Chromium. Once again, if many packages were listed here, I would investigate and consider reverting my changes. (I investigated each dependency anyway, because I'm careful, and found that only one of the dependencies was coming from the Debian archive: libjpeg62-turbo, and it doesn't conflict with anything I have installed.) All looked well, so I told the package manager to proceed.
When it finished, Chromium was finally installed as an apt package. Thanks, Debian maintainers!
I don't use any snaps, so the next thing I did was to look in the snap directory in my home dir, make sure there was nothing in there that I needed, and then drop it in the trash. If you want to do the same, consider first that any user data that you created/modified/saved in Chromium since the snap was first installed lives somewhere under that snap folder. (Probably under snap/chromium/current/.config which is hidden by default in most file managers.) You might want to back it up or move it to chromium's usual data directory: $HOME/.config/chromium. In my case, the Chromium data that I wanted to keep was still in its old/usual place, since I had only used the snap for about five minutes.
That's it. I hope it helps someone. If it damages your system, steals your bike, runs off with your boyfriend, or does something else that you don't like, then I'm sorry, but it's still your own responsibility.
Good luck!


Configuring libinput-gestures for a MacBook like experience

An excellent blog post that answers your question.

https://devhub.io/repos/bulletmark-libinput-gestures

I just finished configuring my system (MacBook Air) using this and Ubuntu Gnome 16.10.

BTW -- this is my first real commitment to Gnome as I normally use ubuntu unity DE... I choose to do this because while Unity has some built-in gestures for the touchpad, I didn't find them as good or as useful as those from the OS X.  Gnome appeared to have less conflict with the libinput-gestures.

I have happily got my system set up for vertical 3-finger up/down change desktop, 4-finger up to go to expo, 4-finger down for launchpad/dash, 3-finger left/right for browser and files/nautilus navigation, and 4-finger left for previous app and 4-finger right for alt-tab next app.  Had to do a custom configuration.

Finally to really get Gnome to work for me, I had to use several extensions.  Most notably:
+++ Workspaces to Dock (GREAT extension and probably could use all by itself because it can combine dock and workspaces in one.
++Dash to Dock
GnoMenu

Enjoy --- I know this is way late, but you or someone else may find it useful.


Personal website of mine shows a blank page on Ubuntu 14.04

Here's what i suggest. Install apache, php following the commands below in terminal

#if you don't have apache and php installed
sudo apt-get install apache2 php5
#create the info.php file either like this or using an editor
sudo echo "<?php phpinfo(); ?>" >> /var/www/html/info.php
#restart the apache web server
sudo service apache2 restart
#open a firefox browser to see results.
firefox localhost/info.php

Tell me how it goes.


Alternatives to rpm -qa and rpm -ql in ubuntu

dpkg -l <packagename> gives you the status of the package

dpkg -L <packagename> gives you a list of files including their locations

see also the manpage


Most users won't need to use a firewall at all, since Ubuntu doesn't have any open ports by default. But Firestarter is a only a GUI to configure the firewall. It will still run when you're not running Firestarter. It'll just use the same configuration until you change it.

I see nothing bad about installing Gnome packages in Lubuntu, and vice versa. For instance, I've used the panel from LXDE in Gnome. The packages will just be installed. They won't be used until you use something that requires it.


Find word that has more than 50 characters

Personally I use egrep only:

egrep -nor '[^ ]{50,}' .

See man egrep to understand what is happening in the previous command.


Command to install Wifi Drivers on Ubuntu 16.04

Please follow this steps:

sudo apt-get install linux-headers-generic build-essential git
git clone https://github.com/scrivy/rtl8812AU_8821AU_linux
cd rtl8812AU_8821AU_linux
make
sudo make install
sudo modprobe 8812au

Provided by:
https://www.amazon.com/review/RST7YXG0YX6BJ/ref=ask_dp_lswr_rp_hza


New HP laptop, Ubuntu does not recognize Wireless Adapter

You can use ndiswrapper. It allows you to install Windows drivers of wireless cards.
Before installing:
Type  lshw -C network  in a terminal. You can also try lspci -vvnn look for the wireless card. It looks like this in my terminal:
 *-network
       description: Wireless interface
       product: AR9485 Wireless Network Adapter
       vendor: Qualcomm Atheros
       physical id: 0

Installation
If you have wired access to internet:
sudo apt-get install ndisgtk

If you don't you can find the packages you'll need at http://packages.ubuntu.com. Here are the 3 packages you'll need:

http://packages.ubuntu.com/trusty/ndiswrapper-common
http://packages.ubuntu.com/trusty/ndiswrapper-utils-1.9
http://packages.ubuntu.com/trusty/ndisgtk

Now you can download the Windows driver. You can find it on the manufacturer's website and install it with ndiswrapper.
You should also read this for more details


Double, or even triple check if your fans are OK.

Check if your thermal paste is in good condition, I highly recommend using a good one instead of the default one.

See the temperatures at the boot-up, maybe it's a clock problem where ur CPU is always clocked at its highest level.

Clean up your PC, not just the fans.


How to format ubuntu without deleting data?

In order to do this, you would need to have your data on a different partition. ie:

[drive]
   |
   +--- [volume1]
   |        +---[LVM (All linux partitions)]
   |
   +--- [volume2]
            +---[Data Partition]

edit: Because you have all your data on the root directory, yes you will loose it if you format the drive. You can create a new data partition on the drive, move your data to it and then go from there. But you will probably need to manually edit the partitions, not let it auto partition during the install...


Ubuntu One doesn't provide a way to restore your files but if you cantact the team them should be able to restore the files for you https://one.ubuntu.com/help/contact/


I would recommend installing the GUI for Samba (if you haven't already) by searching for "samba" in the Ubuntu Software Center, or by installing the "system-config-samba" package with this command:

sudo apt-get install system-config-samba

Then start start samba with the following command:

sudo system-config-samba

Then create a new share, give it a folder and make it accessible to "everyone". Then create a new user.
Select your own username in the drop-down menu "Unix Username"
Then enter a Windows username and Samba password. These two, along with your computers IP-address are the settings you enter in WiiMC under SMB Share.

(Keep in mind that you can't stream videos with a quality higher than 480p, because the Wii simply isn't strong enough.)


Kubuntu 20.04 - front panel audio jacks "unplugged" and Analog Stereo Duplex profile "unavailable"

This is really a workaround to make changes in pavucontrol GUI permanent rather than correct jacks appearing as "unplugged" and profiles as "unavailable". I thought I could share it in case someone bumps into similar problems and it is maybe too large for a comment.
PulseAudio has a command-line interface that is documented in man pulse-cli-syntax (which I found here). These commands may be tested in pacmd (which I found here). Using this documentation and pacmd's help, I found that the two commands I needed to reproduce my changes in pavucontrol are
set-card-profile 1 output:analog-stereo+input:analog-stereo
set-sink-port 0 analog-output-headphones

Then, to make these changes permanent, one can change ~/.config/pulse/default.pa (a list of related configuration files is shown in man pulse-cli-syntax). Here, I appended the following:
### Set Built-in Audio (HDA Intel) profile to Analog Stereo Duplex
set-card-profile 1 output:analog-stereo+input:analog-stereo

### Set Built-in Analog Stereo port to Headphones
set-sink-port 0 analog-output-headphones

Finally, pulseaudio -k restarts the sound server and confirms that these two changes apply. The same should happen at restart.


You can find it in /user/share/X11/

If there is no xorg.conf file there, feel free to create one. In some cases xorg.conf is not needed.


Use https://www.shellcheck.net/ , it will help you find the issues with the script:

$ shellcheck myscript

Line 2:
echo "NECESSARY FILES ARE UNCOMPRESED OBSERVATION (.o) FILES
^-- SC1009: The mentioned syntax error was in this simple command.
     ^-- SC1078: Did you forget to close this double quoted string?

Line 10:
grep "MARKER NAME" *.[0-9][0-9]o > grep_file
     ^-- SC1079: This is actually an end quote, but due to next char it looks suspect.
                 ^-- SC1078: Did you forget to close this double quoted string?

Line 14:
  sed -n "$1p" $2
         ^-- SC1079: This is actually an end quote, but due to next char it looks suspect.
             ^-- SC1073: Couldn't parse this double quoted string. Fix to allow more checks.

Line 24:

^-- SC1072: Expected end of double quoted string. Fix any mentioned problems and try again.

So you should quote the argument to echo in line 2


Corsair MP600 on Ubuntu 20.04.1 with HWE kernel

In the end, I RMA the 2 MP600 and got two brand new working ones. So not an ubuntu software issue.


Installing Ubuntu 14.04.1 LTS with hardware RAID

I had an issue like this on an HP server with an internal raid controller. It was listed as supported on all the HP and Ubuntu hardware matrices, but it turns out that the controller was only supported on Windows, not Linux.

However, if you have a hardware RAID controller, do you see a prompt when the system POSTs (power on self test), saying something like "Intel storage array configuration. Press F4", or some such message? You would press that function key to get into the array configuration software resident on the controller, BEFORE the Ubuntu installation even starts.

In that config utility, you would setup your two disks as a RAID1 "logical volume". Then, when you go to install Ubuntu, this logical volume would be listed as the disk device upon which you would install Linux.

The caveat is that if Ubuntu does NOT support that RAID controller, the logical volume will not be recognized. That's what happened on my HP server.

So I had to delete the logical volume (in the raid controller software), then create a software RAID set in the server version of Ubuntu (this isn't available in the desktop version). There is a really good tutorial on the Ubuntu doc set for setting up software raid (using mdadm).


Ubuntu 12.04 lts won't boot after system crash + corrupt file system

Your filesystem is corrupt, I believe that you can't get data back (you should do backups).
You can try some "Deleted Files Recovery" programs, don't know if this will do anything. Seems like a reinstall for me, but I might be wrong.


While on live-cd run GParted. Then right click on partition You want to resize and set right amount of space.


How do I setup a pppoe connection in Ubuntu?

Did you run /usr/sbin/pppoeconf? It has a nice user-interface and can help setup the networking. All you need is the username and password.


Overheating and fan noise problem on a Toshiba Portege R830-13C

There is a known issue with the Active State Power Management (ASPM) in the kernel for Ubuntu 11.10 that effects some laptops - details in this Phoronix article .

You can edit your GRUB cofig file and add some parameters to try to solve the issue;

From a terminal (or after pressing Alt + F2) run:

gksudo gedit /etc/default/grub

and enter your password.
Find the line starting with GRUB_CMDLINE_LINUX_DEFAULT and append i915.i915_enable_rc6=1 i915.i915_enable_fbc=1 pcie_aspm=force quiet splash to its end. For example:

GRUB_CMDLINE_LINUX_DEFAULT="i915.i915_enable_rc6=1 i915.i915_enable_fbc=1 pcie_aspm=force quiet splash"

Save the file and close the editor.
Finally, start a terminal and run:

sudo update-grub

to update GRUB's configuration file (you will need to enter your password).

Warning

If pcie_aspm=force is set, hardware that does not support ASPM can cause the system to stop responding. Before setting pcie_aspm=force, ensure that all PCIe hardware on the system supports ASPM.


Every application installed with dpkg or apt-get has a *.list file in /var/lib/dpkg/info folder. Those files list everything associated with that application, including images. According to /var/lib/dpkg/info/steam.list, there is /usr/share/pixmaps/steam_tray_mono.png file, which is the icon you wish to change. You could take that image and replace it with another ( of the same size preferably, which on my system is reported as 48x48 pixels ).  Example of that would be a two-step process, like so:

Backup original image first,

sudo mv /usr/share/pixmaps/steam_tray_mono.png  /usr/share/pixmaps/steam_tray_mono.png.bak

Move in the new one

 sudo mv /path/to/new/image.png /usr/share/pixmaps/steam_tray_mono.png


Testing keyboard issue , is it hardware related?

I don't have any good idea for this situation but, When I tried to use external keyboard , my laptop's keyboard worked as expected. So I think , can some usb cables or adapters or usb fans make short circuit or something like that?


Executing echo Command Using Launcher Icon

I do this type of things a different way.

Create a script ~./local/bin/fan.sh like this:

 #!/bin/sh
echo level 5 > /proc/acpi/ibm/fan

Make it executable

chmod +x ~./local/bin/fan.sh

Create a shortcut to this commad:

pkexec /home/$USER/.local/bin/fan.sh

It will ask for a password.

This is for 18.04. In previous versions use gksu instead of pkexec.


I found this blog helpful in the same situation so I thought I'd pass it along.

http://lkubuntu.wordpress.com/2011/08/30/quick-and-easy-way-to-fix-x11-issues/

I could boot up to Stopping System V Init Process, which meant all of the services had started and the only thing left is the gui. I tried dpkg-reconfigure and booting to a older kernel in grub and none of that helped. I could start a VM headless so virtualbox was working. I use xfce4 and its much better than the default desktop.


GRUB2 not working after installing xubuntu 14.04

See this bug report:
Ubuntu 14.04 Update breaks grub, resulting in "error: symbol 'grub_term_highlight_color' not found"

https://bugs.launchpad.net/ubuntu/+source/grub2/+bug/1289977

You need to chroot &   use dpkg-reconfigure grub-pc instead of grub-install directly, so that the system knows that it needs to run grub-install on that drive the next time grub is upgraded.

Boot-Repair has a chroot total uninstall and reinstall of grub, which may work or while in chroot run the dpkg update.


How to remove/change ubuntu logo in the loging page (Ubuntu 19.04)

the logo is from the package plymouth

the file is located at /usr/share/plymouth/ubuntu-logo.png

you can change this Image to your wish or rename it to ubuntu-logo.png.bak to hide it..


How to access a local http server on windows by its hostname

From the manual page of ping:

  ping [ -LRUbdfnqrvVaAB] [ -c count] [ -i interval] [ -l preload] [ -p pattern] [ -s packetsize] [ -t ttl] [ -w deadline] [ -F flowlabel] [ -I interface] [ -M hint] [ -Q tos] [ -S sndbuf] [ -T timestamp option] [ -W timeout] [ hop ...] destination

Hrmpf...  I was going to tell you that the manual shows that destination should be an IP address or a hostname and not a Fully Qualified Domain Name With Protocol (FQDNWP), but it doesn't...

Therefore: Nope, you can't do that, but you could:

telnet hostname.domain.com 80

which would connect you to port 80 (http) of the FQDN


Android Studio not working - tools.jar classpath error

I got the same error when trying to run the android-studio beta installation. I tried various options, but the one that worked for me was:

sudo apt-get install openjdk-7-jdk

Didn't have to do anything else.

But, I am surprised that

java -version

listed the same 3 lines before and after the jdk install:

java version "1.7.0_55"
OpenJDK Runtime Environment (IcedTea 2.4.7) (7u55-2.4.7-1ubuntu1~0.13.10.1)
OpenJDK 64-Bit Server VM (build 24.51-b03, mixed mode)

and

echo $JAVA_HOME

outputs blanks, but now the android-studio is running.


Your hdparm command doesn't work because you probably also have the udisks2 daemon running which spins down the disk on its own schedule (and/or overwrites your settings).
Thus, you can either stop/disable/mask that daemon, e.g. to just temporarily stop it:
systemctl stop udisks2.service

Or change the StandbyTimeout= udisk2 setting for your disk.


Ubuntu 20.4 virtualbox Kernel driver not installed (rc=-1908)

Am having the same issue over here, upgraded from 18.04 to 20.04 and am having trouble with virtual box, it says the same thing as the original post says


Cant extend ubuntu partition after removing windows from dual boot

You'll need to boot to a Ubuntu Live DVD/USB, or gparted Live CD, to manage your partitions. Once there, you'll want to...

Before you start, backup your important data as these operations could corrupt or loose data!

right-click on sda7 and choose move/resize
position the mouse pointer into the center of sda7 and move sda7 all the way left
position the mouse pointer on the right-edge of sda7 and resize the partition to the right for as large as you wish sda7 to become
close the move/resize window
click the Apply icon
if sda7 will NOT occupy all of the unallocated space, you'll need to also move sda8

right-click on sda8 and choose swapoff
right-click on sda8 and choose move/resize
move sda8 all the way left
close the move/resize window
click the Apply icon
right-click on sda8 and choose swapon


It looks like I have found the answer:

https://www.omgubuntu.co.uk/2016/03/ubuntu-drops-amd-catalyst-fglrx-driver-16-04


window creation issue Python Gtk via Quickly

This can be a common problem with closing windows. In the delete-event handler, make sure you either return True if you hide the window or return False if you destroy it.


Howto install package language-support-en

Go to dash and type

  language support

search and install


Sharing folders in NTFS partitions in a network with SMB

There could be several reasons that it's not working, but rather than troubleshoot the "simpler" method, it would probably be much easier (and much more secure) to share it only with yourself, unless you need to share it with others, in which case they would need a login on the system, and the folder would need to allow access by them.

If you only share it with known users, then you will need to give the user name and password the first time, but it should remember in the future (assuming you tell it to).  I don't actually use Windows, but I'm assuming it works the same as Ubuntu, more or less (I hope, anyway).


Why is my internet under 17.10 no longer working?

Debug WLAN connection
If the WLAN is not working and the GUI frontent of the Network-Manger does not help. First check if the hardware is working properly by looking at dmesg
$ dmesg
...
[   13.899555] wlan0: Broadcom BCM43b1 802.11 Hybrid Wireless Controller 6.30.223.271 (r587334)
...
[   14.845234] wl 0000:07:00.0 wlo1: renamed from wlan0
...

If there is a wlan device, the hardware drivers/module is working.
Install the wireless-tools and look at the interfaces:
Install tools wireless tools:
$ sudo apt-get install wireless-tools

Check the WLAN interfaces:
$ sudo iwconfig
wlo1      IEEE 802.11  ESSID:"NetworkSSID"
          Mode:Managed  Frequency:5.56 GHz  Access Point: XX:XX:XX:XX:XX:XX
          Bit Rate=400 Mb/s   Tx-Power=200 dBm
          Retry short limit:7   RTS thr:off   Fragment thr:off
          Encryption key:off
          Power Management:on
          Link Quality=69/70  Signal level=-41 dBm
          Rx invalid nwid:0  Rx invalid crypt:0  Rx invalid frag:0
          Tx excessive retries:0  Invalid misc:0   Missed beacon:0

Scan on the current interface:
$ sudo iwlist wlo1 scan
wlo1      Scan completed :
          Cell 01 - Address: XX:XX:XX:XX:XX:XX
                    Channel:112
                    Frequency:5.56 GHz
                    Quality=69/70  Signal level=-41 dBm
                    Encryption key:on
                    ESSID:"NetworkSSID"
                    Bit Rates:6 Mb/s; 9 Mb/s; 12 Mb/s; 18 Mb/s; 24 Mb/s
                              36 Mb/s; 48 Mb/s; 54 Mb/s
                    Mode:Master
                    Extra:tsf=0000000000000000
                    Extra: Last beacon: 16ms ago
                    ...

It looks like the encryption is not activated on the WLAN device. Try setting the key manually by setting:
$ iwconfig wlo1 key s:secretkey

Read the iwconfig manpage for the proper syntax!
For the error messesage
Error for wireless request "Set Encode" (8B2A) :
    SET failed on device wlo1 ; Invalid argument.

check this post on superuser. It might help.
For testing the wireless connection, I recommend using the manual configuration via /etc/network/interfaces
auto wlo1
iface wlo1 inet dhcp
                wpa-ssid <ssid>
                wpa-psk  <password>

You can test it with:
$ ifup wlo1
$ ifdown wlo1


Open a terminal by pressing Ctrl+Alt+T

 upower --dump

and it will show you the real output

A laptop battery is a rechargeable lithium ion battery after a certain time period of use (between 1 and 6 years depending on usage) it looses its capacity to charge and can not reach the energy design in your case 43.0WH and shows as full at 38.4WH...But if your battery is New then You can manually calibrate your battery (full discharge) method .

Fully charge the battery to its maximum capacity (100%);
Let the battery "rest" fully charged for 2 hours or more in order to cool down from the charging process. You may use the computer normally within this period;
Unplug the power cord and set the computer to hibernate automatically .
Leave the computer discharging, non-stop, until it hibernates itself. You may use the computer normally within this period;
When the computer shuts down completely, let it stay in the hibernation state for 5 hours or even more;
Plug the computer to the A/C power to perform a full charge non-stop until its maximum capacity (100%). You may use the computer normally within this period.