Ubuntu not showing up in bootloader menu

You could use EasyBCD to add a Grub2 option into the Windows boot screen. That would simplify booting into Ubuntu, as you can select the Grub2 option when you
(re)boot. Please note, EasyBCD will give you multiple Grub options to choose from. You want Grub2, not any other Grub option EasyBCD will offer.

If you don't mind using BOOTMGR (the Windows Vista/Seven/Eight boot screen) to select which OS you load, that's all you need to do.

However, if you prefer to start with Grub, you could mount the Windows partition into Ubuntu, run sudo grub-install --root-directory=/mnt /dev/sda, and finally sudo update-grub. You should probably replace the /dev/sda part of the command line with whatever drive Ubuntu is installed on. Please note that there is no number (1,2,3,4,5...) in sda. This is intentional, as (I believe) it's telling the system which hard drive to install Grub ontu, not the partition.

From there, you can reboot into Windows and remove the Grub2 option from the Windows screen, if you so desire.


I have a Broadcom BCM4313 wireless card and I had the very same problem: my WPA router network was not showing up.

You have just to change the wireless channel on your router and that's it!
Try one under 12. For instance, I found that channel 3 and 4 worked great for me.

Hope that works.


Can't compile a simple C++ program using g++

It looks like (at least) file /usr/include/x86_64-linux-gnu/bits/byteswap.h have been somehow corrupted. Open it with a text editor and check whether it looks like a normal C++ header file.

If this is the case reinstall package libc6-dev with the command sudo apt-get --reinstall install libc6-dev

If this is not the case you will need to post here the full content of file post_test_5.cpp as well as the full output of the compilation.


I think it still ext4, even I can't find any official link of the supported file system or what is the default file system used.

But as workaround you can still use some commands like mount, df -h -T , blkid which shows you the filesystem used in your system.

So give it a try and check your card FS


Count number of files of each sub-directory

Simple use of find and wc
MusicDir='/home/MyUser/Music'
find "$MusicDir" -type d | while read D; do echo -e "$(find "$D" -type f | wc -l)\t$D"; done

## Example OUTPUT
206 ./AC-DC
9   ./AC-DC/1975 - High Voltage (Australia Only)
11  ./AC-DC/1975 - T.N.T (Australia Only)
10  ./AC-DC/1976 - Dirty Deeds Done Dirt Cheap (International version)
10  ./AC-DC/1976 - High Voltage (International version)
10  ./AC-DC/1977 - Let There Be Rock
11  ./AC-DC/1978 - Powerage
11  ./AC-DC/1979 - Highway To Hell
13  ./AC-DC/1980 - Back In Black
11  ./AC-DC/1981 - For Those About To Rock (We Salute You)
11  ./AC-DC/1983 - Flick Of The Switch
6   ./AC-DC/1984 - 74 Jailbreak
11  ./AC-DC/1985 - Fly On The Wall
11  ./AC-DC/1988 - Blow Up Your Video
14  ./AC-DC/1990 - The Razor's Edge
13  ./AC-DC/1995 - Ballbreaker
13  ./AC-DC/2000 - Stiff Upper Lip
16  ./AC-DC/2008 - Black Ice
12  ./AC-DC/2014 - Rock or Bust

The output could also be sorted (second column,  alpha)
MusicDir='/home/MyUser/Music'
find "$MusicDir" -type d | while read D; do echo -e "$(find "$D" -type f | wc -l)\t$D"; done | sort -k2


PHP5-FPM w/Apache2 FastCGI Error -1 Copy file failed

From the comments, this was a permissions problem.

  Thanks I just did a chown -R www-data:www-data * current /var/www PWD and works now.


Time problem, my clock is completely wrong

WARNING USE WITH CAUTION!

This troubleshooting need to configure your bios clock time setting. It's always indicate that your motherboard battery is out (whether laptop or desktop).

You need to press F2, F8 or F12 depend on your mobo type. After that you will be greeted with Bios Setup Utility. From there, search for system time and date configuration and set it to your desire time and date. Then, try to save the configuration and exit. Restart your system. For laptop please remove the battery. Different make different interface.

2.After the restart everything should be ok, if the time/clock still display wrong time then go to step 3.

3.You need to change the bios battery. You can do it yourself or sent it to technical person for change to new battery. It is common problem and usually this fix is working for both windows and Ubuntu.

Thank you. It had save me a lot time, hope it will do the same to you.


Assuming your machine supports PCI passthrough, the host OS essentially becomes blind to the devices existing.  When I experimented it, you deliberately had the OS load a dummy driver to ensure that the host OS didn't try to use it.


Updating Tomtom GPS map (without a virtual box / wine solution)

After a little research, I can give a response :

Unless you have different infos, and i hope you will, response is NO.

pyTomtom (developed in python) and jTomtom (developed in Java) are 2 projects that are able to updates several model of GPS.

Unfortunately, they don't support Via 130 (and most of the recent models).

This because the device is not recognized as an external drive or storage device, but as a network interface card. Funny confirmation of this : when you plug in your GPS and switch it on, you will have the standard Network Connection message (Network enabled / Network disabled).

So it seems that the solution of updating a Via130 Tomtom Model goes through virtualization (with an emulator that support USB) or wine.


The "*" is the problem here. It selects too many unwanted packages and their dependencies.

Issue a command only as below:

sudo apt-get install sqliteman sqlite3


Install Sun Java via Synaptic, do a Quick Search Search for sun java and install the jre and jdk. Do not forget to run update-alternatives –config java and update-alternatives –config javac.

If you’re on the 8.10 version, please install Java manually from the Oracle website, because the distributed packages are obsolete.

Download gephi from here https://gephi.org/users/download/

Then After the download completes, unzip and untar the file in a directory.
Run it by executing ./bin/gephi script file.

You can run the script file with

chmod +x /bin/gephi.sh
./bin/gephi.sh

Hope that helps .

Source


The node /hbase-unsecure is not in ZooKeeper. Check the value configured in 'zookeeper.znode.parent'

did you clean up zookeeper data directory from previous trials ? by default zookeeper.znode.parent is /hbase ,

options you can try

if you are changing it intentionally then changing zookeeper data directory when changing it. In /home/hduser/zookeeper
try changing znode.parent to /hbase


18.04 does not recognize monitors or drivers after graphic card change

It was BIOS misconfiguration. So the video adapter was set to AUTO and somehow even "sudo prime-select nvidia", I specified the video adapter and all worked.


You can't yet , there are still alot of bugs needed to be fixed
Check out this link for more information
http://www.winehq.org/pipermail/wine-bugs/2012-May/322485.html

If you really need to use this on Ubuntu , there is still one way , Install Windows 8 ( Free Version ) in Virtualbox and through that , you play the games.

you can also check out another game client that runs nativly on Linux

DESURA
http://www.desura.com/


New applications are opening at different window locations

First, install compizconfig-settings-manager  <-- by clicking here or running

sudo apt-get install compizconfig-settings-manager

Then open it and search for something like Put Windows or Place Windows. In it change the option from smart placement to center.


How can I connect to a server directly from nautilus location bar?

For this to work, you need to know the IP Address of the server you are connecting to. I haven't tested it with the server name.

Open up nautilus (Files) and press Ctrl + L
Type this smb://IP-ADDRESS-OF-SERVER/ and it will take you to that server directly.

Example:
If I wanted to connect to the server with this IP 192.168.0.46 I would type:
smb://192.168.0.46/

You can also include the folder path if you know it:
smb://192.168.0.46/folder/


How to turn bluetooth on in Ubuntu 12.04

First of all, check that your bluetooth was unlocked on rfkill.

sudo rfkill list

In case your bluetooth is Soft blocked you can unblock it by running the below command,

sudo rfkill unblock bluetooth

In case your bluetooth is Hard blocked,then try to find a hardware switch on your laptop to unblock it.


What's the difference between Ubuntu and backtrack?

I think I can give only a brief idea as detailed comparison will be beyond a Q&A website.

Backtrack is customised Debian/Ubuntu style linux

As per the website of Backtrack linux it is a
Penetration Testing and Security Auditing Linux Distribution, thus a specialised Linux distribution which is very good for some specific purposes.

Website further states "BackTrack is a Linux-based penetration testing arsenal that aids security professionals in the ability to perform assessments in a purely native environment dedicated to hacking.". For more details see http://www.backtrack-linux.org/

Now Ubuntu is a general purpose operating system for day to day tasks for common man. It can be used for advanced purposes. But to use it as a 'Penetration Testing and Security Auditing Linux Distribution' you would need to customise it and install specific packages. And backtrack just did that. For more details see http://www.ubuntu.com/

So you would choose a distribution based on your needs. Any specific comparison questions, I would suggest raising more specific questions.

Hope this explains little bit.


Graphical mode not working properly after installing ATI properitary drivers

Boot to the recovery mode using the following -

https://wiki.ubuntu.com/RecoveryMode

Completely remove fglrx from the command line -

sudo sh /usr/share/ati/fglrx-uninstall.sh

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

I have a couple of machines with ATE Radeon HD graphics adapters and get better performance using native Ubuntu drivers.


How to prevent windows on widget layer from taking focus?

The answer turns out to be the Window Rules plugin. See http://wiki.compiz.org/Plugins/Widget and http://wiki.compiz.org/WindowMatching#Winrules , specifically the Skip taskbar and Skip pager options.

Enter widget=1 for these options to match windows on the widget layer.


What is the systemd target that is triggered when user logs in?

OK. I have found it out.

There is no such target. Events post user login are handled by completely separate systemd system, the systemd --user.

The system is launched by a custom pam module pam_systemd.so and stanza in /etc/pam.d/common_session.

AFAIU all commands triggered by the systemd --user are executed with the user's privileges. If you want to trigger something just after user login as a root - use pam, just like the systemd does.


If an app/config does not have a corresponding icon in the /usr/share/icons/Faenza* directories, it defaults to the originals which you are seeing.

For example, the 'User Accounts' corresponds to config-users.svg and the 'Universal Access' corresponds to access.svg.

It is likely that the icons for those bits are simply not there/were not created by the Faenza author.  You can have a look through or raise a bug yourself on the Launchpad:

https://bugs.launchpad.net/~tiheum

If you are feeling dedicated, you can create your own icons; then find out what names they correspond to in the ambience icons folder and save yours to the corresponding location in the Faenza folder.


Oversized swapfile preventing boot into Ubuntu

According to our discussion in comments, it seems like the issue was a full disk.

Using df -h and du, it was possible to identify some large unnecessary files and delete them to free up enough space to boot.


I had a similar situation with my Asus U46E.  Try the following see if it helps (it worked in my case):

Right after selecting English in GRUB, hit F6, it will bring up a list of GRUP boot options.  I checked nolapic and then it booted fine.


try this in your terminal

sudo rm -rf /var/lib/dpkg/lock


I have python 3 installed on both apt and snap - should I remove one of them?

You certainly should not remove the regular python3 package from the APT package management system. The Ubuntu system depends on it for your operation, and you will break your desktop if you remove that and even if you upgrade that.
You can remove the snap version if you feel like it. The choice is yours. For sure, this package has not been automatically installed. At most, it might have been installed as a dependency of another snap package, if you did not install it explicitly yourself.
APT and snap work independently from each other. Snaps are by design self-contained so they can run on a range of linux systems. A possible benefit of a snap versus an APT package is that it allows you to run a more recent version of some application than the one provided with (and tied to) your system through the packages of your linux distribution. Some software using other toolkits (e.g. KDE applications) or proprietary software can be installed through snap, in a 1) convenient way and 2) without changing or mixing files into your main system. Some further reading on why apt or why snap can be found elsewhere on this site, such as here or here.


lightdm or X server start very slow - takes a couple of minutes

Your lightdm login greeter may be hanging due to not having enough entropy. See https://unix.stackexchange.com/questions/442698/when-i-log-in-it-hangs-until-crng-init-done.

In my case, this issue started appearing when upgrading to the latest kernel on Debian sid. I had to wait for the following kernel message in order to continue logging in.

crng init done
7 urandom warnings missed due to ratelimiting

Adding more entropy to the kernel by using haveged or rng-tools, fixes the login issue.


Have Swap Files Been Used on Ubuntu Prior to 17.04?

File or partition, vm.swappiness affects swap as a whole. It doesn't matter where the swap area comes from (so the post could say simply "swap area"). Swap files were usable for years before Ubuntu ever existed. And Ubuntu has always used a swap partition by default until 17.04. Switching to swap files when installing has been proposed multiple times, but never implemented till now.


You need to kill evolution server before copying the old files.

You can open Gnome System Monitor and kill e-addressbook-factory.

After that, delete current address book and copy the new files. There are two evolution folders: .local/share/evolution and .local/config/evolution, I'm not sure if you need to move both (that's what I did).


How can I detect when the boot sequence is complete on headless system

This will stop the network manager looking for any network.  But any connection previously found will still work.

sudo su
echo manual >> /etc/init/network-manager.override

or in your config change your start to

start on net-device-added INTERFACE!=lo

or

start on net-device-added INTERFACE=eth0 (eth0 or what ever connection you have)


I cant update my flash player - Sonicwall issue

Yuo can manually download the flash from here and install it.
But remember to first uninstall the already installed version


What to do if Ubuntu 12.04 does not detect Windows 7 during installation

It seems that you tried to convert a GUID Partition Table (GPT) disk to a Master Boot Record (MBR) disk but you did not complete the operation, and so you now have some hybrid partition table which can be accessed by Windows only. Ubuntu does not deal well with GPT as I understand.

There could be some solution for your problem on this link. I have an older computer so I can't say it will work or not for you.

If it does not, you can use gdisk which is designed to work on GUID Partition Table (GPT) disks, and automatically convert your partition table from MBR to GPT format thus restoring your original disk configuration. It would be better to ask a pro to help you with this one, do you still benefit for support from your manufacturer? This won't be easy if you try do it yourself.

Or you can use FixParts to replace your GUID Partition Table (GPT) with a Master Boot Record (MBR) partition table type. I am not sure at all if the download links provided on that page are still working for FixParts. There is a complete tutorial on how to use FixParts but the download links work some time and other time they do not. You can download Fix parts for Windows as I understand you have Win7 installed on your computer.

It is important to understand that you cannot use both methods, you have to either fix your partition table with GDISK or with FixParts but you cannot test them both. So it is up to you, and I strongly recommend you ask someone, a friend with good computing skills or a proffesional, maybe your computer manufacturer for advice. Tell them you want to install Windows and Ubuntu, and that you want to use a multiboot configuration on your computer.


Sound Broken on Thinkpad X250 on Early March 2015 15.05 Pre-Release Daily Build

This blog post by Adam Olsen describes the most common issue with getting the Thinkpad X250 working with a recent Ubuntu version. I assume that most of the problems are still present and solve the same way in the upcoming 15.04 version:

Quoting inline:

  To make this work, create a file at /lib/firmware/x250.fw with the following contents:

[codec]
0x10ec0292 0x17aa2226 0
[pincfg]
0x16 0x21211010
0x19 0x21a11010

  ... then, create a file called /etc/modprobe.d/hda-intel.conf with the following contents:

options snd-hda-intel patch=x250.fw,x250.fw,x250.fw

  Reboot, and the audio port on your dock should work. I imagine the process is the same for any of 2015 thinkpads. With each thinkpad, the only number that changes is the second one under the [codec] heading (in this case, 0x17aa2226). That information can be found by downloading this script: http://www.alsa-project.org/alsa-info.sh, and running it via bash alsa-info.sh as root. Search for 0x17aa in the output, and you'll find the other half of the number you need.


How to add element for QML ListModel using Javascript?

Use subAlpha.append().  This method takes a Javascript object as an argument, which it uses to create a new ListElement with those keys and values.

A working example:

import QtQuick 2.0

ListView {
    width: 200
    height: 200

    ListModel {
        id: mainModel
        ListElement {
            name: "Alphabet"
            subAlpha: [
                ListElement {
                    alphaName: "A"
                },
                ListElement {
                    alphaName: "B"
                }
            ]
        }
    }

    model: mainModel
    delegate: Column {
        Text { text: name }
        Row {
            Repeater {
                model: subAlpha
                Text { text: alphaName }
            }
        }
    }

    Component.onCompleted: {
        mainModel.get(0).subAlpha.append({alphaName: "C"})
    }
}


How can I record the screen as well as audio on Ubuntu?

A simple one is simplescreenrecorder which can be found in the 18.04 repo. Install it with

sudo apt install simplescreenrecorder

start it > Continue > choose size of screen to record > tick the box for audio. For Backend choose pulseaudio. For source choose built in audio analogue stereo which would record the mic instead of the internal audio > choose save location and the default codec parameters should be ok


How do I start "Ubuntu classic desktop" (no effects) from the command line

From the command line the GNOME Classic Desktop is started with:

gnome-session --session=gnome-classic

Other session types are installed by default in /usr/share/gnome-session/sessions/ and can also be opened with the gnome-session --session=SESSION command where SESSION is the name of the SESSION.session file stored.


nvcc --version command says nvcc is not installed

The problem is [ based on the link you provided] you haven't added it the .bashrc. file so it can be seen:

From the terminal:
 nano /home/username/.bashrc

 # or

 nano /home/$USER/.bashrc

Inside there add the following:
 export PATH="/usr/local/cuda-8.0/bin:$PATH"
 export LD_LIBRARY_PATH="/usr/local/cuda-8.0/lib64:$LD_LIBRARY_PATH"

Then do the following to save and close the editor:
 On you keyboard press the following:

 ctrl + o             --> save
 enter or return key  --> accept changes
 ctrl + x             --> close editor

Now either do source .bashrc or close and open another terminal

Now run nvcc --version

Information:

.bashrc: is the file read by the terminal before opening and its found in the /home/$USER diretory of the user in question.
the . before the file means its hidden from view unless you instruct you file manager to show hidden files


Where do I get all of the versions of Ubuntu + Flavors

All supported Lubuntu releases can be found at the releases.  11.10 can be found at this minnor.  For the older unofficial Ubuntu derivative versions they can be found at their released announcements, The directs download links don't work, but the torrent still works. Released announcements: (11.04, 10.10, and 10.04)
┏━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━┯━━━━━━━━━━━━━━━┯━━━━━━━━━━━━━━━┯━━━━━━━━━━━━━━━┓
┃        Version of Lubuntu        │     Directly    │      Torrent      │     Metalink     ┃
┠──────────────────────────────┼───────────────┼───────────────┼───────────────┨
┃         Lubuntu 14.04 LTS         │   32-bit or 64-bit  │   32-bit or 64-bit  │   32-bit or 64-bit  ┃
┠──────────────────────────────┼───────────────┼───────────────┼───────────────┨
┃        Lubuntu 14.04 LTS + Mac        │   32-bit or 64-bit  │   32-bit or 64-bit  │   32-bit or 64-bit  ┃
┠──────────────────────────────┼───────────────┼───────────────┼───────────────┨
┃           Lubuntu 13.10          │   32-bit or 64-bit  │   32-bit or 64-bit  │   32-bit or 64-bit  ┃
┠──────────────────────────────┼───────────────┼───────────────┼───────────────┨
┃       Lubuntu 13.10 + Mac        │   32-bit or 64-bit  │   32-bit or 64-bit  │   32-bit or 64-bit  ┃
┠──────────────────────────────┼───────────────┼───────────────┼───────────────┨
┃           Lubuntu 13.04          │   32-bit or 64-bit  │   32-bit or 64-bit  │   32-bit or 64-bit  ┃
┠──────────────────────────────┼───────────────┼───────────────┼───────────────┨
┃       Lubuntu 13.04 + Mac        │   32-bit or 64-bit  │   32-bit or 64-bit  │   32-bit or 64-bit  ┃
┠──────────────────────────────┼───────────────┼───────────────┼───────────────┨
┃           Lubuntu 13.04          │   32-bit or 64-bit  │   32-bit or 64-bit  │   32-bit or 64-bit  ┃
┠──────────────────────────────┼───────────────┼───────────────┼───────────────┨
┃       Lubuntu 12.10 + Mac        │   32-bit or 64-bit  │   32-bit or 64-bit  │   32-bit or 64-bit  ┃
┠──────────────────────────────┼───────────────┼───────────────┼───────────────┨
┃           Lubuntu 12.10          │   32-bit or 64-bit  │   32-bit or 64-bit  │   32-bit or 64-bit  ┃
┠──────────────────────────────┼───────────────┼───────────────┼───────────────┨
┃        Lubuntu 12.04 LTS + Mac        │   32-bit or 64-bit  │   32-bit or 64-bit  │   32-bit or 64-bit  ┃
┠──────────────────────────────┼───────────────┼───────────────┼───────────────┨
┃         Lubuntu 12.04 LTS         │   32-bit or 64-bit  │   32-bit or 64-bit  │   32-bit or 64-bit  ┃
┠──────────────────────────────┼───────────────┼───────────────┼───────────────┨
┃       Lubuntu 11.10 + Mac        │   32-bit or 64-bit  │   32-bit or 64-bit  │   32-bit or 64-bit  ┃
┠──────────────────────────────┼───────────────┼───────────────┼───────────────┨
┃           Lubuntu 11.04          │      32-bit     │      32-bit     │    Not  Available    ┃
┠──────────────────────────────┼───────────────┼───────────────┼───────────────┨
┃           Lubuntu 10.10          │      32-bit     │      32-bit     │    Not  Available    ┃
┠──────────────────────────────┼───────────────┼───────────────┼───────────────┨
┃         Lubuntu 10.04 LTS         │      32-bit     │      32-bit     │    Not  Available    ┃
┗━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━┷━━━━━━━━━━━━━━━┷━━━━━━━━━━━━━━━┷━━━━━━━━━━━━━━━┛


How to read hardware temperatures and other info in Ubuntu

Try acpi.

sudo apt-get install acpi

Then run:

 acpi -V

Here are the more options for acpitool:

Ubuntu manpage for acpitool


I was running 18.04 with communitheme, but after updating to 18.10 communitheme (yaru) is gone

Communitheme was just a backport of Yaru for Ubuntu 18.04. It's the default theme of 18.10.

Just remove the PPA/Snap of the backport and select Yaru from Tweaks under "Applications"


Virtualbox ubuntu 1204 guest - guest additions installed, but graphics driver unknown

I have a 12.04 guest working flawlessly both on Windows 7 and Ubuntu 13.04 hosts. We can compare both mine and yours and see what's different.

What is your version of VirtualBox? Is it the OSE or Oracle's Proprietary version?

Also, VirtualBox uses some portions of your real hardware. What's yours?


For Ubuntu 11.04 it automatically reconnects to your wifi.

For 10.04 check Automatically reconnect wireless connection

or you may need to write a small script with

iwconfig wlan0 iwconfig wlan0 | grep -o "Access Point: Not-Associated"

ifconfig wlan0 down or ifconfig wlan0 up


What is the idea/philosophy behind Ubuntu's default fonts?

I have removed many non-English fonts as you suggested in my installations, and it's worked for me EXCEPT when I visit a non-Roman-character website. Then, it's rather hard to determine what to copy to paste into a translation site.

May I suggest, after you clean house, that you run sudo fc-cache -fv to update the fonts cache?

As to why the developers make a decision, that's an entirely different issue I cannot answer, and which should be a separate question, divorced from the how to issue of discarding fonts you don't want.


I have the same situation...
found a solution here

p.s. I know 2 years have passed, just not to leave the question unanswered


Ubuntu 20 DVD installs without asking, then won't boot (in VMware)

Never mind — I stumbled on the cause of the problem, and it was VMware. ♂
When I went into the VM settings to delete the virtual disk, I found that unbeknownst to me VMware had inserted another virtual CD drive using an image named “autoinst.iso”, as well as a virtual floppy using the image “autoinst.flp”.  I had explicitly created the machine without a floppy.  So I removed both autoinst drives, deleted and re-created the virtual disk, and booted again, and this time it finally came up with the “Welcome” screen and asked me to choose whether to “Try Ubuntu” or “Install Ubuntu”.


Installing drivers for a windows 7 guest in virtualbox

System inbuilt components like LAN, Wifi, soundcard,or graphics card will be used from the host OS. They will be virtualized using an emulation for the guest OS. In many cases you are able to choose from different emulation modes in the virtual machine settings.

  Therefore you can not install these drivers to your guest OS.

However some external components like USB attached devices (e.g. printer, scanner, Bluetooth dongle) do need an additional driver for the guest OS. In Windows you will be asked for these drivers as soon as you capture the device from the Virtual Box Manager.

Note: for full USB 2.0 support we need to run the PUEL version of Virtual Box that to date is on version 4.1.8.


How to turn on word wrapping of icon names in 20.04?

I just realized it was due to the icon height limit, set up on
/usr/share/gnome-shell/extensions/desktop-icons@csoriano/prefs.js

After raising the height there was enough room for the extra lines to show up.


Ubuntu 14.04 admin account doesn't show desktop icon, it just shows blank desktop wallpaper

First of all linux works with a concept called multi-user, that means that an operating system is considered "multi-user" is if allows multiple people to use a computer and not affect each other's 'stuff'.

So try to Ctrl+Alt+t to go to terminaland type:

sudo apt-get install --reinstall ubuntu-desktop
sudo apt-get install --reinstall unity
reboot


You basically have to use the DESTDIR environment variable to tell make to install ImageMagick into your $HOME directory:

DESTDIR=/home/josh/ImageMagick make install

Installation is done but there is one final step to do because by default all ImageMagick binaries will look for libraries in system-wide paths, giving this sort of errors:

./convert: error while loading shared libraries: libMagickCore-6.Q16.so.2: cannot open shared object file: No such file or directory

To work around this problem, just prefix the call to one of the ImageMagick program with LD_LIBRARY_PATH=/home/josh/ImageMagick/usr/local/lib/, like this:

LD_LIBRARY_PATH=/home/josh/ImageMagick/usr/local/lib/ /home/josh/ImageMagick/usr/local/bin/convert -h


Accidentally deleted windows partition, how can I do a factory reset with only Ubuntu working to restore windows?

If the Windows recovery worked, you should be able to just change a GRUB boot menu to get it to boot. You may also just have to select the windows recovery partition again if it is still in the middle of recovering.

Assuming it worked, but GRUB is not working for whatever reason, you can try using qemu-kvm in Ubuntu to emulate booting off of a partition of your hard drive and test it. For example:

sudo kvm /dev/sda2

You'll need to use the following to determine which partition it is:

sudo fdisk -l

If the Windows recovery does not work, you can look into system rescue cd, a linux distro built for data/system recovery (note that this is mainly for recovering data from a damaged partition that you can't just copy over from Ubuntu; if you are able, it would be easier to do the latter). After recovering your data, you can download a windows 7 install disk from one of the links below and then install windows onto that partition and copy your data over:

Home Premium (x64)
Professional (x64)
Ultimate (x64)
Home Premium (i386)
Professional (i386)
Ultimate (i386)

Your product key should be on your computer somewhere if it came with windows.

TL;DR

See if the install actually did work, but GRUB is just getting in
the way or not working
If not, recover what you can and install Windows again.


I don't think that is possible. As both folders share the same parent folder, and all users should have access to that parent folder, all must have at least read and execute permissions to this parent folder -- and thus can see all files/directories located therein. This is true even if they had no access to some file/subdirectory therein: they could still see (but of course not read/exexute) it.

To make it easier to understand, let me give you a picture: Let's say /home is a "closable street" with a watched entry. So you give somebody permission to pass that entry and walk the street. Though all houses (subdirectories, i.e. /home/*) are closed to him (you didn't give him permission/keys to enter any house), this visitor will still be able to see the houses. He may be unable to enter them -- but you cannot hide them from him while at the same time permitting him to walk the street.

So with this story: If the visitor should not see the houses, don't let him walk the street is the only way. With your directories: The only way to hide them completely, is not to permit entering /home. But why does this bother you, if they cannot enter the other directory (or even tell what is in there)?


Extract the content from a file between two match patterns (Extract only HTML from a file)

We can achieve this goal by the tool sed - stream editor for filtering and transforming text. The short answer is given under point 5 below. But I've decided to write a detailed explanation.
0. First let's create a simple file to test our commands:
$ printf '\nTop text\nSender <example@email.com>\n\n\n\tThe inner text 1\n\n\nMiddle text\n\n\n\tThe inner text 2\n\n\nBottom text\n' | tee example.file

Top text
Sender <example@email.com>

        The inner text 1

Middle text

        The inner text 2

Bottom text

1. We can crop everything between the tags  and , including them, in this way:

$ sed -n -e '//,/<\/html>/p' example.file

        The inner text 1

The option -e script (--expression=script) adds a script to the commands to be executed. In this case the script that is added is '//,/<\/html>/p'. While we have only one script we can omit this option.

The option -n (--quiet, --silent) suppress automatic printing of pattern space, and along with this option we should use some additional command(s) to tell sed what to print.

This additional command is the print command p, added to the end of the script. If sed wasn't started with an -n option, the p command will duplicate the input.

Finally by the two comma separated patterns - //,/<\/html>/ - we can specify a range. Please note we using \ to escape the special character / that plays role of delimiter here.

2. If we want to crop everything between the tags  and , without printing them, we should add some additional commands:
$ sed -n '//,/<\/html>/{ /html>/d; p }' example.file

        The inner text 1

The curly braces, { and }, are used to group the commands.

The command d will delete each line that maces to the expression html>.

3. But, our example.file has also upper case  tags. So we should make the pattern match case insensitive. We could do that by adding the flag /I to the regular expressions:
$ sed -n '//I,/<\/html>/I{ /html>/Id; p }' example.file

        The inner text 1
        The inner text 2

The I modifier to regular-expression matching is a GNU extension which causes the REGEXP to be matched in a case-insensitive manner.

4. If we want to remove all HTML tags between the  tags we could add an additional command, that will parse and 'delete' the strings, which begin with < and end with >:
sed -n '//I,/<\/html>/I{ /html>/Id; s/<[^>]*>//g; p }' example.file

The command s will substitute the strings that mach to the expression /<[^>]*>/ with an empty string // - s/<old>/<new>/.

The pattern flag g will apply the replacement to all matches to the regexp, not just the first.

Probably we would want to omit the delete command in this case:
sed -n '//I,/<\/html>/I{ s/<[^>]*>//g; p }' example.file

5. To make the changes in place of the file and create a backup copy we can use the option -i, or we can to create a new file based on the sed's output by redirecting > the output to the new file:
sed -n '//I,/<\/html>/I p' example.file -i.bak

sed -n '//I,/<\/html>/I p' example.file > new.file

References:

Sed - An Introduction and Tutorial by Bruce Barnett
How to select lines between two marker patterns which may occur multiple times with awk/sed
GNU: sed, a stream editor | Ubuntu: sed manual page
Sed remove tags from html file


How to mount Dynamic disk's partition on Ubuntu?

Seems this questioned might be answered, but I thought I'd offer how I did this for my LDM disk.

You can use ldmtools to handle Microsoft dynamic disks. read more about ldmtools here:

https://manpages.ubuntu.com/manpages/trusty/man1/ldmtool.1.html

sudo apt-get install ldmtool

find the uuid of your dynamic disk, you can do this with sudo blkid

then mount the disk with ldmtool create volume <uuid> <volume-name>

fill the angle brackets with the uuid from blkid and choose a volume name, obviously don't include the angle brackets with the command.

Then are many ways to integrate that command to get the disks to mount on start up. There are many other posts regarding this.


How do I stop adware and websites opening a new tab when I click on a link when using Chrome?

Remove any suspicious addons, extras, apps, etc. in Google Chrome.

If you just installed it then chances are it simply synced everything you got from when using Chrome in Windows, including malware.


I have experience with CUDA using a GT 520, and there are no problems at all. You can just install the drivers Ubuntu suggests to you. According to this forum, boinc will work as well.


Given you have sufficient permissions, the find commands will recursively change the permission bits of all files to 660 and all directories to 770 starting from the directory where it is run.

As you were in /root (root's home directory) and assuming you were running as root and the owner user:group is root:root, this should not be a major problem except that some specific programs may complain about some specific files or directories, such as ssh might complain about the permissions of /root/.ssh directory and /root/.ssh/authorized_keys file when doing key-based authentication, you need to fix those manually.

Also, don't run any command found in the wild blindly, you should ask what the command does at first, and then run it.


HP Envy m4 unable to toggle wifi hardware switch

"Hard blocked" means that there is a PHYSICAL SWITCH in the "OFF" position. You can't fix it via software.

Others have had this problem, see https://h30434.www3.hp.com/t5/Notebook-Wireless-and-Networking/Where-is-wireless-button-on-HP-ENVY-all-in-one/td-p/5677496

From the solution linked above:

  I am certain that my keyboard is different than yours, but I have to
  press the "fn" key at the bottom of the keyboard and the "F12" key at
  the same time.  This will turn my wifi off and on.  You may have to
  use a different key with the fn key.


If are devices connected to the same switch you simple can add virtual interface

sudo ifconfig eth0:1 192.168.2.xxx netmask 255.255.255.0

You will have one nic with 2 ip address, but only network 192.168.1.xxx will have default gateway.


How to keep graphical session running in 17.10 when external screen is turned off?

I heard from a duplicate question that you can work around this by locking your screen (Super+L) (that's the "windows" or "command" key, plus L) before turning off the display.


It seems to be a list of open windows triggered by the Window List extension (or something similar).

Run the following command in Terminal

gnome-shell-extension-prefs

A window should appear which should let you manage installed extensions. Disable the Window List extension (or the similar one).


Ubuntu file system questions. (EFI Partition, FAT32, VFAT)

FAT has been expanded over time in two orthogonal ways:

FAT pointer size -- FAT filesystem pointers come in 12-, 16-, and 32-bit sizes. The smaller sizes are useful on smaller media (like floppy disks) but impose media size limits. FAT32 is the least limiting in this respect; it can handle up to 2TiB partitions (or 16TiB for disks with 4KiB sectors). The FAT size is fixed when the filesystem is created, and it's not easily changed after the fact. Some tools report the FAT size of existing partitions, but others don't.
Long filename support -- FAT was originally used by DOS (and variants of it by other OSes in the 1980s, and even in the late 1970s), and had a limit of 8-character filenames with an optional 3-character extension (so-called 8.3 filenames). With Windows 95, though, Microsoft introduced a way to store longer filenames on a FAT filesystem in a backwards-compatible way. This technique is called VFAT. Note that VFAT is not specified at filesystem-creation time; it's activated (or not) by the OS that accesses the filesystem. In Linux, this is done by specifying the msdos (8.3 filenames) or vfat (long filenames) filesystem type code to the mount command. A filesystem that's been used only by DOS can be accessed later as VFAT and long filenames added; or a disk that's been used with VFAT long filenames can be accessed without long filenames (but filenames will be shortened).

VFAT is compatible with any FAT pointer size, so you can have VFAT-12, VFAT-16, or VFAT-32. These terms are pretty rare, though; perhaps because the bit-depth is independent of the filename length, the bit-depth is often combined with "FAT" to identify that detail, whereas "VFAT" is generally used alone. All of this was pretty well-understood by computer-literate individuals in the mid-to-late 1990s, but the details have been forgotten (or never learned) since then.


why is it a risk to clone a LUKS container?

As long as you keep the clone identical to the original, there is no security breach. But if you add data to either the original or the clone, or change the passphrase, the existence of the clone adds security issues.

The problem with cloning is being able to access the clone will forever be equivalent to being able to access the original. First, if you use the clone in an insecure environment where someone can obtain your passphrase (with a keylogger, shoulder surfing, …), then they get your passphrase for the original. Furthermore, if someone is ever able to obtain the master key on the clone, then they have the master key on the original (i.e. they can access the original, whether they have a passphrase for it or not). So if

you mount the clone on a compromised machine; or
an attacker can obtain your passphrase and a copy of the clone encrypted with this passphrase; or
an attacker has access to the encrypted clone and is able to crack your passphrase by a dictionary search;

then the attacker gains access to the clone and can decrypt the original. Since the master key is fixed in stone, this is true even if you changed the passphrase after cloning.

To clone a LUKS volume securely, you should create a new volume, apply the same passphrase (unless you want to change it), and copy the data.


You don't need a ppa, just

sudo apt install xsane


Computer Hangs Even Before GRUB is Reached

Since the computer hangs before Grub is reached, you don't have an Ubuntu problem, you have a hardware or firmware problem. Specifically, the problem is in a component related to your graphics chip, perhaps the chip itself, or its heatsink, or a circuit leading to it, or the memory containing its firmware, or the firmware code itself, or …

If the hosed display wasn't enough of a cue, the error message you quote points to the same component: Nouveau is a driver for NVidia graphics chips, and “GPU lockup” means your graphics processing unit crashed. This error message is coming from Linux, but not from Ubuntu: it's from ExpressGate, which is an appliance Linux distribution available on high-end Asus motherboards.

Try powering off the laptop completely; unplug it and pull out the battery, then wait a couple of minutes and try booting. Another thing that has a tiny but nonzero chance of working is to do a BIOS upgrade (even if it's to a version you already have).

If the fault is in the hardware rather than in the software, there's not much you can do unless you're comfortable tinkering inside laptops (and perhaps not even then). If the computer is still under warranty, have it repaired or exchanged. If you'd like to save your data and erase the disk, take it out and plug it into another computer using a SATA to USB adapter.


Firefox redirecting from locahost to 192.168.x.x

I guess openconnect configures http proxy to be used by FF. ('Connection through HTTP proxy, including libproxy support for automatic proxy configuration.') FF Preferences - Advanced - Network etc, you should exclude localhost.

Another option is a change of resolv.conf that will redirect even localhost. cat it.

I'd try wget -vvv and see exact step which is wrong.


You may simply run OpenfaceOffline for linux instead :

https://github.com/TadasBaltrusaitis/OpenFace/archive/master.zip
unzip ~/Downloads/OpenFace-master.zip
cd ~/OpenFace-master
chmod +x download_models.sh install.sh
./download_models.sh
./install.sh

(you'll have to type in your password and be patient, it takes a long while you'll also have to type in "y" to accept installation of dependencies after a long while.)

run it with ./build/bin/FaceLandmarkVid -f "samples/changeLighting.wmv" -f "samples/2015-10-15-15-14.avi"

works brilliant for me.


No Wifi on ubuntu 14.04 in Inspiron 15 5570

You need much newer firmware! With a working internet connection, please open a terminal and do:

cd /tmp
sudo wget http://security.ubuntu.com/ubuntu/pool/main/l/linux-firmware/linux-firmware_1.169.1_all.deb
sudo dpkg -i linux*.deb

Reboot and your wireless should be working.


Finding "optional codes" using apt-get (17.10)

There are three levels of dependencies.

Depends: Package A absolutely must have this package installed.
Recommends: Package A should also have this package for the common use of Package A.
Suggests: Package A is usually enhanced by suggested package.

apt-get defaults to installing depends and recommended packages. To also install suggested packages run apt-get --install-suggests install gfortran

To list a synpackages dependencies , run apt-cache depends <package> from the command line.

apt-cache depends gfortran
gfortran
  Depends: cpp
  Depends: gcc
  Depends: gfortran-5
  Suggests: gfortran-multilib
  Suggests: gfortran-doc

A gui method would use synaptic package manager. Screenshot


How to update core-js to core-js@3 dependency

You can update core-js by running this command:

npm install --save core-js@^3


Firefox hint issue when editing text in Roboto font. How to fix it?

After some tests with fontconfig, I found a solution by disabling full hinting on Roboto font.
In /etc/fonts/conf.avail/56-kubuntu-noto.conf replace :
<edit name="hintstyle" mode="assign"><const>hintfull</const></edit>

by :
<edit name="hintstyle" mode="assign"><const>hintmedium</const></edit>

You must quit your session and reconnect for the change to be effective.
I am not a fontconfig expert. Maybe there is something better to be done, but it works for me.
Since this file comes from the kubuntu-settings-desktop package, I assume this is a Kubuntu only issue.


Why is there an extra space when I type "ls" in the Desktop directory?

The extra space appears when you have file names in your directory needing ' around them (e.g. file names with spaces or other special characters).

~/mytmp$ ls
 a           'file(abc)'         proyecto3.csv   test         Test.sh
 b           'file(ab,c?).mp4'   rootfile        Test1.txt    Test.zip
 F26         'file(abc?).mp4'    scr             Test2.test   vowels
 Feb          guess              script          Test2.txt
'Feb 26 xx'   hw                 something       test.rar

After removing the 'strange' files I get:

~/mytmp$ ls
a    guess  proyecto3.csv  script     test        Test2.txt   Test.sh
b    hw     rootfile       something  Test1.txt   test.rar    Test.zip
F26  loop   scr            speak      Test2.test  testscript  vowels


what is dependencies, build, installing about apt ? (intalling xrandr-invert-colors)

I think you are referring https://github.com/zoltanp/xrandr-invert-colors
So the actual steps are:

clone codes and enter root of code;

$ git clone https://github.com/zoltanp/xrandr-invert-colors.git
$ cd xrandr-invert-colors
install dependencies, actually it is doing "sudo apt-get install libxcb-randr0-dev";

$ sudo make deps-apt
build the binary;

$ make
install the binary;

$ sudo make install
Now you can use "xrandr-invert-colors" which is installed as "/usr/local/bin/xrandr-invert-colors", as you can see on github page.


WLAN drivers not preinstalled! WiFi 5100AGN do not working

Copy your .tar.gz on /home/user (the user is depend on your system settings). Then extract the tar files on that folder. After that, change your directory to that folder. Example if your folder name is Wireless, open terminal (Ctrl+Alt+T) then type this:

sudo cd /home/user/Wireless

Then type this command:

sudo make install

After that, restart your system to connect to the wireless network.


Libreoffice is available as a deb-package and as a snap- package.

While the deb-package provides version 6.0.7.3, the snap-package comes with version 6.4.1.2

You can install the libreoffice-snap with

snap install libreoffice

You can have both versions installed in your sysytem. If you want to remove the deb-package, you can do that with

sudo apt remove libreoffice*


How can I set up a server to listen for wireless and wired interfaces at the same time?

Connect the server by wire to a wired/wireless router and the router will take care of everything.  If the server has both wired and wireless, turn off the wireless (or if you need redundancy, bond the wireless and wired connection.)


Solving USB hub failure issues without reboot

From the comments...

One of your USB devices may be causing this error message. Unplug one or more USB devices and see if the messages stop.

Update #1:

Disconnected all USB devices and connected back, warning message storming stopped.


One liner to show CPU, RAM and HDD usage


Can I play a game inside windows in virtual box?

So I want to play Pubg lite, is there anyway to play it using ubuntu?

Natively: No. It requires dotnet as we do not have that. The best next alternative is virtualization. If you have a Windows license you can also dual boot.

  And if I installed windows 10 in virtual box is it possible to play it smoothly?

Yes, Windows virtualised is almost the same as a normal Windows. The only thing you miss is a bit of power: you run an OS inside an OS. A nice amount of RAM is advisable.  Mind though that in theory you could set the amount of RAM used by Windows pretty high if you do not use Ubuntu at the same time.


Yes, yes and yes.

Any of these options will work out of the box. Except that maybe you will need to remove the proprietary drivers of the old computer.

Unless of course your disk is encrypted.


chromium 37.0 cannot detect flash player in Ubuntu 14.10

Run:

sudo update-pepperflashplugin-nonfree --install

If this doesn’t work you may need to manually configure Chromium. With Chromium fully closed/exited, run the following command in a Terminal to launch the appropriate file in a text editor:

sudo gedit /etc/chromium-browser/default

Add the following line at the end on a new line:

. /usr/lib/pepflashplugin-installer/pepflashplayer.sh

Save and then close.
Launch Chromium and it should work.

I found this trick on omgubuntu and it worked for me.


Installing libapache2-mod-php should fix it.

Then, you can purge your installation and, if you want a simple installer which rarely fails, use the script provided by apachefriends. https://www.apachefriends.org/index.html


I don't know how i can check if ''aplay -D hw:0 something.wav'' work.
tried typing it to terminal and got this 1 picture ''aplay: main:788: audio open error: No such file or directory'' and by typing ''aplay -l'' to terminal i get- 2 picture
**** List of PLAYBACK Hardware Devices ****
card 0: HDMI [HDA Intel HDMI], device 3: HDMI 0 [HDMI 0]
Subdevices: 0/1
Subdevice #0: subdevice #0
card 0: HDMI [HDA Intel HDMI], device 7: HDMI 1 [HDMI 1]
Subdevices: 1/1
Subdevice #0: subdevice #0
card 0: HDMI [HDA Intel HDMI], device 8: HDMI 2 [HDMI 2]
Subdevices: 1/1
Subdevice #0: subdevice #0
card 0: HDMI [HDA Intel HDMI], device 9: HDMI 3 [HDMI 3]
Subdevices: 1/1
Subdevice #0: subdevice #0
card 0: HDMI [HDA Intel HDMI], device 10: HDMI 4 [HDMI 4]
Subdevices: 1/1
Subdevice #0: subdevice #0
card 1: PCH [HDA Intel PCH], device 0: ALC282 Analog [ALC282 Analog]
Subdevices: 1/1
Subdevice #0: subdevice #0
card 2: U192k [UMC202HD 192k], device 0: USB Audio [USB Audio]
Subdevices: 1/1
Subdevice #0: subdevice #0


charm proof issues a "relation server has no hooks" warning

It is just a warning about a nonexistent relation defined in your metadata.yaml file.

Does not mean there is something wrong with your Charm and can be ignored. Your Charm will probably work normally so no need to worry.


Mate: Start Gui applications at startup on VPS

This isn't a direct answer, but I think you're possibly trying to do the wrong thing.

I run Transmission on our home server via transmission-daemon and connect to it in a number of ways depending on where I am: browser plugins, the built-in Web UI or even the actual Transmission client.

I'm writing under the assumption that if you could connect directly, that would be better.... But you could still remote in over xrdp and run a local client that connected to the local daemon instance.

Otherwise you just need to square away the networking. I'm not sure I'd trust open access to a Transmission on the internet so if I were you, I'd limit the daemon to 127.0.0.1 and use SSH's port tunnelling to get access:to handle the networking side of things. I don't think I'd trust open access to Transmission on the internet. I'd use ufw to limit the connecting port (if you have a static IP) or do port tunnelling with SSH.

ssh -L 9091:localhost:9091 user@your_server.com

Then just browse to http://localhost:9091 (or hook up your client to that).


Ubuntu 12.10 - Graphics driver shows Gallium 0.4 instead of intel HD

Not exactly a preferred solution but i was able to bypass the issue by swapping my 2720qm with my original 2630qm. Graphics are now accelerated by the intel hd drivers. The problem is with the 2720qm which apparantly is unstable (see edit 3 above)


If you are using Ubuntu Desktop, the configuration of the network is normally delegated to Network Manager by netplan.  Netplan itself does not interface with the GNOME network apis.  If you have changed your netplan config to use the networkd backend instead of the NetworkManager backend, then Network Manager will see the network as unmanaged and be unable to report online status to applications.

For best desktop integration, you should continue to use the 'NetworkManager` backend to netplan.  You can configure your static network directly in the netplan config, or you can configure it in Network Manager.


How to have a server the makes a clients update and download software offline?

My solution to this is to use apt-cacher.

How to set up an apt-cacher server?

You may also use apt-mirror.

Thanks


How to physically separate partitions for User/Home access on demand?

Install Windows first on the S-ATA HDD. It will install it's bootloader to the MBR.
Then, when installing Linux (preferably Ubuntu!), select the following setup for the partitions:
A. Select / partition to be on the Compact Flash Drive. Use the entire drive.
B. Select /boot partition to be on the S-ATA HDD. Also, the linux bootloader must be installed to the MBR of the S-ATA HDD. This is because the bootloader searches the same hard disk, on which it is installed, for GRUB (i.e., /boot partition).
C. Select swap partition to be on the S-ATA HDD. Swap partition should be twice as large as your RAM size. So, if your machine has 4 GB RAM, ten the swap must be 8 GB. This will allow you to hibernate your machine when required.
D. Select /home partition to be on the PCMCIA Compact Flash Adaptar. NOTE: The /home partition is only mounted when a user logs in. Otherwise, just switching on the machine will not mount the /home partition (access on demand).
After this is done, continue with the installation. At one point, you will be asked to create the Administator user. At this point, you can also opt to encrypt the /home partition. Do so. Now, your /home partition will be encrypted.
Finish the installation. And you are done!

NOTE: I have asked you to install Windows first because it will over-write the MBR and it does not detect Operating Sytems other than Windows versions. So, your install Windows first and then install Linux. Linux will detect all other Operating Systems and it will allow you to choose which Operating System you want to boot, like Windows, Mac or Linux.


You could use the Tor browser PPA that webupd8 maintains, of course you don't get any warranty using a third party repository.

sudo add-apt-repository ppa:webupd8team/tor-browser
sudo apt-get update
sudo apt-get install tor-browser


Boot Freezes and "Loading initial Ramdisk"

I had issue with microcode on 19.10 (but it seems resolved recently).
But after update to 20.04 my laptop was freezing when try to start w/o charger plugged. Adding dis_ucode_ldr to grub helped in my case:
See: https://www.dell.com/community/Precision-Mobile-Workstations/Precision-7540-will-only-boot-Linux-if-charger-is-connected/td-p/7449042/page/3
UPD. BIOS update also helped in my case


Have you tried running a scandisk in windows? That's how I've always fixed faulty partitions.


Last time I couldn't mount/format a USB drive in Linux, I just used Windows. For some reason, Windows just has better USB support. You may want to use CheckDisk to see if there are any disk errors.


on desktop you can't put launcher. elementary does't support "have file manager handle desktop"
in dock (plank), open the app and his launcher is been show in dock. right click on icon and in meny go to "keep to dock".
in wingpanel, same as unity panel, is possibe  via dconf-editor some, but launcher to panel not. indicators in panel & message meny work like in unity panel


Restoring Ubuntu 16.04/Windows 7 partitions to new drive with Clonezilla

Run Clonzilla to make a full device-to-device clone copy onto your larger SSD. (You just can't go to a smaller destination drive, but bigger is ok).
Replace the 250G SSD with the 500G SSD and make sure it boots to both Windows and Ubuntu. Partition sizes will be the same as they were on the 256G SSD.
Boot a Ubuntu Live DVD/USB and use gparted to move/resize the Ubuntu partition(s) to the rear of the drive (assuming that Windows was installed first), enlarging the partition if desired.
Again, make sure Windows and Ubuntu boot.
Boot Windows, and use the Windows Disk Management app to resize the Windows NTFS partition.
Confirm that both Windows and Ubuntu boot.

Note: If you desire to share data/files between Windows and Ubuntu, it's best to create a new clean NTFS partition some time during this process. Both Windows and Ubuntu can use NTFS.


Search is useless. How can I force it to index my hard drive (2018)

Files are indexed for the locate command but normally it is updated every day so any new file you created today won't show up until tomorrow. I've circumvented this shortfall by putting sudo updatedb as a cron job that runs every 15 minutes (it only takes a few seconds to run).

The locate command behaves as if wildcards are used:

$ time locate etc/profile
/etc/profile
/etc/profile.d
/etc/profile.d/appmenu-qt5.sh
/etc/profile.d/apps-bin-path.sh
/etc/profile.d/bash_completion.sh
/etc/profile.d/cedilla-portuguese.sh
/etc/profile.d/jdk.csh
/etc/profile.d/jdk.sh
/etc/profile.d/vte-2.91.sh

real    0m0.696s
user    0m0.671s
sys     0m0.024s

I prefixed the locate command with the time command so you can see how blindingly fast it is doing lookups on indexed filenames and directory names with implied wildcards.

The locate output is rather sparse so I created an alias llocate to format the output nicely (How to make locate output look like `ll` or `ls -la` but nicer?):

$ time llocate etc/profile
ACCESS      OWNER  GROUP  SIZE  MODIFIED      NAME (updatdb last ran: 2018-07-01 11:30:05)
-rw-r--r--  root   root   575   Nov 12  2017  /etc/profile
drwxr-xr-x  root   root   4096  Jun  4 17:19  /etc/profile.d
-rw-r--r--  root   root   40    Feb 16  2017  /etc/profile.d/appmenu-qt5.sh
-rw-r--r--  root   root   580   Oct 18  2017  /etc/profile.d/apps-bin-path.sh
-rw-r--r--  root   root   663   May 18  2016  /etc/profile.d/bash_completion.sh
-rw-r--r--  root   root   1003  Dec 29  2015  /etc/profile.d/cedilla-portuguese.sh
-rwxr-xr-x  root   root   301   Feb 20  2013  /etc/profile.d/jdk.csh
-rwxr-xr-x  root   root   299   Feb 20  2013  /etc/profile.d/jdk.sh
-rw-r--r--  root   root   1941  Mar 16  2016  /etc/profile.d/vte-2.91.sh

real    0m0.760s
user    0m0.754s
sys     0m0.020s

Notice how the heading tells you the last time files were indexed. If you can't find the file you are looking for and, was created before that time, simply run sudo updatedb.

The time command is used again so you can see that using llocate is marginally slower than locate unless a huge number of results are returned.

locate GUI front-end glocate

Although locate is a CLI command I've created a GUI front for it using zenity. This is an initial "no frills" front-end that could be improved using yad instead.

Enter up to 10 search file names / directory names

This screen appears when you start glocate:

You can enter directory names and filenames in whole or in part.

Results returned in scroll box

glocate takes about a second to display the results in most cases:

Bash Script

Here is the bash script you can create using:

sudo -H gedit /usr/local/bin/glocate

Then copy and paste the following line:

#!/bin/bash

# NAME: glocate
# PATH: /usr/local/bin
# DESC: Provide zenity GUI front end to locate command

# DATE: Dec 24, 2018.

# NOTE: Written for: https://askubuntu.com/questions/1104069/search-is-useless-how-can-i-force-it-to-index-my-hard-drive-2018/1104112#1104112

Init () {
    # Get date `sudo updatedb` was last run
    LastRun=$(stat --printf=%y /var/lib/mlocate/mlocate.db | sed 's/\.[^\n]*//')
    SearchMax=10    # Search for up to 10 filenames or directories at once
}

GetSearchNames () {

    SearchNames=$(zenity \
        --title "glocate - updatedb last run: $LastRun" \
        --text 'Enter up to 10 search names' \
        --forms --width=800 --height=480 \
        --add-entry="Search 1" --add-entry="Search 2" --add-entry="Search 3" \
        --add-entry="Search 4" --add-entry="Search 5" --add-entry="Search 6" \
        --add-entry="Search 7" --add-entry="Search 8" --add-entry="Search 9" \
        --add-entry="Search 10" 2>/dev/null)

    Action="$?" # Glitch: When ESC pressed or Cancel clicked result is 0?
    # echo "Action: $Action" # Remove leading # to debug

    # Zenity not returning array like yad would. Build array manually
    SearchArr=() # Reset array
    for (( i=1; i<=$SearchMax; ++i)) ; do
        Field="$(echo "$SearchNames"| cut -d '|' -f $i)"
        [[ $Field != "" ]] && SearchArr+=("$Field")
    done

    # Click OK without search names?
    CharacterCount=$(wc -c <<< "${SearchNames[@]}")
    # echo "CharacterCount: $CharacterCount" # Remove leading # to debug
    # if [[  "$Action" == 0 && "$CharacterCount" == "$SearchMax" ]] ; then
    if [[ "$CharacterCount" -le "$SearchMax" ]] ; then
        zenity  --error --title="glocate" \
                --text="No search names entered. Program will end." \
                2>/dev/null
        Action=99
    fi
    return "$Action"  # 0 = Proceed with search, anything else = quit.
}

DisplaySearch () {

    Result=$(locate "${SearchArr[@]}" )

    zenity \
        --title "locate search results" \
        --text 'Scroll to see more results' \
        --list --separator="$IFS" --width=800 --height=480 \
        --hide-header --column "Directory and filenames" \
        "${Result[@]}" 2>/dev/null
}

Main () {

    Init
    while GetSearchNames ; do DisplaySearch ; done

}

Main

Save the file and exit gedit.

Mark the script as executable using:

sudo chmod a+x /usr/local/bin/glocate

If you want to create a desktop shortcut see: An easy way to create a desktop shortcut?

To call the script from the terminal simply use: glocate.


restart urfkill after resume from suspend

The problem solved by changing  /etc/pm/sleep.d/urfkill file permissions from root to current user.


How to return from grub prompt to the grub menu?

Type normal, hit Enter, and then tap Esc until the menu is displayed. Hitting Esc at this point won't drop you to the grub command prompt (so don't worry about hitting Esc too many times).


I had the same problem, Logging in the terminal mode (Alt+F1) and running the command:

sudo dpkg-reconfigure -a

and rebooting fixed my problem.


You can obtain the media for download from this location.

You will also find an install guide there.

If you use USB, you will need a tool to burn the iso image to USB. I have used the unetbootin a couple times with success

While this guide is mainly for 12.04, I found it helpful the first time I installed.


How can I remove C-a as a byobu tmux prefix?

Easy answer which took me 1 day to find:  run byobu-ctrl-a

$ byobu-ctrl-a

It asks what ctrl-a should do and the change is immediate.

I found I could also pass argument to it, such as "emacs" meaning, don't let tmux use it.

$ byobu-ctrl-a emacs

It turns out all this script does is ask the currently running tmux to source its config again from beginning. I could have done this manually by ^B:source-file /usr/share/byobu/profiles/tmuxrx

That system byobu file sources my local user config for byobu-tmux, so my key change took effect.


Add this to your startup applications:

gsettings set org.gnome.desktop.background picture-uri file:///home/serrano/Pictures/x.jpg

Change the path, but the file:// at the beginning is important, and cannot be removed.

To add it to startup applications:

Click the Cog ⚙ and then Startup Applications.

Click Add

Enter the details and click save.

It should set the image on startup.


How to update packages compiled from source?

When you install from source, there is nothing (like dpkg) that will track the newly installed files for you (what files and where they were placed). Unless you explicitly use a tool.

How to know where the files were installed

I use Git to track installations in my /usr/local. Here is how it looks:

cd /usr/local
git init
git add .
git commit -m "Starting to track /usr/local"

Install new software (./configure, make, make install). And then:

cd /usr/local
git status
git add .
git commit -a -m "Installed open-magic-1.2.3"

Now you call see what files were installed and when:

cd /usr/local
git log --stat

If you are skillful with Git you can even do uninstalls with a few git commands. But be careful as Git does not track the file permissions (I wrote a special script that can save  and restore all permission and ownerships to/from a files). I only did uninstalls a couple of times, even though I have 334 commits (e.i. installed) in my /usr/local.

Some people install software into dedicated directories and make symlinks or add the bin directories to PATH.

I started doing that too. I install sources with PREFIX set to /opt/open-science-1.2.3 (for example)  and then make symbolic links to the bin files in my Git tracked /usr/local/bin. What's really nice about that is I can pre-create the /opt/open-science-1.2.3 directory owned by non-root and then run make install as non-root. This proves to me that the install script did not wire files anywhere in the system expect into /opt/open-science-1.2.3.

The simple but messy way

Probably the easiest way to upgrade is to just re-install the new sources. Just do the installation procedure all over as if it is the first time. You may end up having some orphaned older files lying around. The software will run correctly but the orphaned files take up space  make your setup messy.


Actually namu@ubuntu:/$ mkdir file means you are currently in root directory as namu user. Now to make any changes to this location you need root permission (although you should not make changes in root(/) directory). You could use super user privileges to make a new folder, by sudo mkdir by assigning you root user privilege after prompting for the password.


use systemd-escape in an interavtive way

Read one line from standard input:

$ read -rsp "password: " && \
  systemd-escape "$REPLY"; unset REPLY

Using systemd-ask-password with systemd-escape:

$ systemd-escape "$(systemd-ask-password)"


Answer approved by OP in comments.

  Have you tried CompizConfigSettingsManager-> Windows Management-> Place
  Windows ? I have this happening in 11.04 with a third Writer document
  window opening above the first Writer document window and hence, under
  the top panel. This did not happen (to me) in 11.10 which I have been
  using since beta 2 so I never tried finding a permenant fix.


what happened and why? moved file to wildcard, now cannot find moved file, contents of new location has missing files

Good news for you !!

All your files and directories are on the only existing directory under B/, including the source directory /home/user/temp/.

How this happened:

When you did mv /home/user/temp/ * while at B/, the shell expands * to all files and directories on the B/ directory; this happened first, before mv is run
Luckily, the directory came at last according to the collation order on pathname expansion, so the mv command became e.g.:

mv /home/user/temp/ B/file1 B/file2 B/some_directory

As the last argument was a directory, mv moved all files and directories into that directory. If the last one were a file, mv would have shown an error that the target is not a directory (as there are multiple sources involved).


How to activate mobile broadband automatically once a broadband modem is active?

This youtube video suggests an approach that I would consider using myself on Ubuntu 12.04 LTS


Enable only 802.11b/g in a 802.11n in atheros wireless card

Researching here on the linux kernel wireless page for your driver the 'ath9k' shows:

http://wireless.kernel.org/en/users/Drivers/ath9k

That there is no way to switch off 802.11n support for this driver, not unless you modified the code and recompiled. You should report the issue of this missing feature here:

https://bugzilla.kernel.org/buglist.cgi?query_format=specific&order=relevance+desc&product=&content=ath9k

This guy here shows how he disabled 802.11n in ath9k, but it might be a little hard to do:

http://permalink.gmane.org/gmane.linux.drivers.ath9k.devel/1645


How to add a Reply To: header to mail when using postfix and Mailgun as SMTP server?

try:

/^From:[[:space:]]your-mailing-list@example.net/ PREPEND Reply-To:your-mailing-list@example.net


What should I look for, or avoid, in a laptop that will run Ubuntu?

You can have a look in this site it has Ubuntu-certified hardware for Laptops,     Desktops, Servers and Netbooks


Go to the terminal and type the following:

xinput -set-prop "DualPoint Stick" "Device Enabled" 0


Which version of Ubuntu should I install on an old PC?

You might want to consider installing XUbuntu. It is an officialy supported derivative of Ubuntu, which sports XFCE as its Graphical User Interface which is very nice and notoriously lightweight.

Speaking from experience (I use XFCE on my Debian Virtual Machine, which I use daily for various tasks), XFCE is very nice and you are going to have the full Ubuntu experience even if your computer lacks raw processing power to support Unity 3d.

Some screenshots of XUbuntu:

Precise Pangolin 12.04 Desktop using XFCE:

Application menu:


Unable to boot ubuntu 12.04 even after repairing grub with boot repair

I believe efi can be used with mbr or gpt partitioned disks.  What mode do you have your bios set to?
Usually there is an option for uefi or legacy or something else besides uefi.  I have found that uefi likes gpt disks especially if you have as many partitions as you do.  I realize that some of your disks are logical but with gpt partitioning they won't have to be.  I am just not sure windows xp supports gpt, actually I am pretty sure it doesn't.  You should be able to do anything you need for XP in a virtual machine, however.

It looks like everything should work in theory the way you have it set up, but a lot does depend on your bios set up.  For grub to be your primary bootloader you will either have to install it to sda (not sdaX...just sda) or the better solution is what you have most likely already done which is install grub to sdb.

The trick there is to set your bios to boot from the second hard disk (sdb or primary slave or secondary master in your bios) After you do that, you can chainload into the windows 8 and windows xp bootloader.

If you get stuck at some point but have already been able to get grub back to a working point and can get into a version of windows.  play around with a program called EasyBCD to fix your windows related problems.

One other negative depending on your computer manufacturer about disabling uefi mode is that sometimes you lose hardware virtualization abilities.  It also can cause you problems with graphics drivers that were poorly written for uefi systems only. Hope this helps!


AlternC: It is basically a great open source software, which is quite easy to install and use as well.

AlternC is user friendly, and it's capable of managing large hosting services, and offers plenty of features. The licensed AlternC GPL provides automatic installation, configuration and web based control panels. Few of the web services provided by the software are domain control, ftp accounts, email configuration, website statistics, and you can literally do everything that cPanel offers… The documentation and user manuals are available in French, though the translations are available in English too.Om Thoke

Baifox: It is yet another GPL control panel, which is great for managing hosting services. The unique feature of this control panel is that it is lighter than most of the other controls panels; it offloads the work from the server and does not disturb too much either. Hence, the performance of the server remains unaffected, and the CPU consumption low.Om Thoke

You may also take a look at ServerPilot.  ServerPilot is the best hosting control panel for developers and businesses running their PHP applications on cloud servers.ServerPilot


Applications don't start after boot after changing python3 symlink

Since a number of applications on Ubuntu are based on Python, and the Python libraries they use are installed to locations specific to the version of Python being used, changing /usr/bin/python3 or /usr/bin/python will likely cause a number of system-provided applications from working. Use xterm (which does not use Python) or the TTYs to change /usr/bin/python3 back to python3.5 (the default on Ubuntu 16.04), and keep it that way. (Also see: How to change python3 from python3.5 to python3.6, where the top answer advices against doing what you did.)


Ubuntu i386 installed with bad DDR2 2GB memory card

To check the filesystem itself, you fsck it.  This requires it to be unmounted, so you either need to boot from the live cd, or you can run sudo touch /forcefsck and reboot and it will be checked at boot time.

To check the integrity of installed applications/files, you can install the debsums package and run it and it will verify the md5sums of all files installed from packages.  Any packages with corrupt files you can sudo apt-get install --reinstall them.


PCIe Bus Error: severity=Corrected, type=Physical Layer, id=00e5(Receiver ID)

I believe this may be due to PCIe Active State Power Management that is transitioning the link to a lower power state and maybe causing the device to trigger these errors.  I believe the device in question is the Sunrise Point-LP PCI Express Root Port.

Try using the pcie_aspm=off boot parameter to see if this stops the messages. Note that this will increase the power consumption of your machine as it disables the power savings.


How to transfer the choice of optional packages to a new Ubuntu version?

To get a list of packages, apt has the following command:

apt list [option]

Some useful options for your case being...

--installed

displays packages that are installed on the system

--manual-installed

lists the packages that were explicitly installed


Radeon HD 6950 temperature is way too hot

I have here a rather old Thinkpad with a Mobility Radeon HD 3400 series card, having  similar problems:

The closed-source fglrx driver is almost unusable, due to flickering, glitches, etc with gnome-shell.
The open-source radeon driver is working very nice, but the card gets too hot. Checking using cat /proc/acpi/ibm/thermal shows that the card heats up to > 90°C.

My solution:
- Use the open-source radeon-driver (accodring to the man-page your card is supported) and manually clock down the card: If it is not installed already, install it, the package is named 'xserver-xorg-video-radeon':

aptitude install xserver-xorg-video-radeon

Purge fglrx:

aptitude purge fgrlx

On the next start, X will automagically use the radeon driver. You can check this using 'lsmod | grep radon', you should see something like this:

root@XERXES3:~# lsmod | grep radeon
radeon               1015995  3
ttm                    76805  1 radeon
drm_kms_helper         42558  1 radeon
drm                   236330  5 radeon,ttm,drm_kms_helper
i2c_algo_bit           13423  1 radeon

ensure that the fglrx driver is not loaded, 'lsmod | grep fglrx' should produce no output.

Check if your card is running at the highest speed too: 'cat /sys/kernel/debug/dri/0/radeon_pm_info' shows you the clock-speed of your card

root@XERXES3:~# cat /sys/kernel/debug/dri/0/radeon_pm_info
default engine clock: 680000 kHz
current engine clock: 675000 kHz
default memory clock: 800000 kHz
current memory clock: 792000 kHz
voltage: 1200 mV
PCIE lanes: 16

Set the power-profile to something more reasonable:

echo "mid" > /sys/class/drm/card0/device/power_profile

Now check again the clock-speed of your card:

root@XERXES3:~# cat /sys/kernel/debug/dri/0/radeon_pm_info
default engine clock: 680000 kHz
current engine clock: 297000 kHz
default memory clock: 800000 kHz
current memory clock: 405000 kHz
voltage: 900 mV
PCIE lanes: 16

It should show reduced clock-speeds and voltage.

That did the job for me. I'm now using gnome 3 for quite some time, things work very nice with Ubuntu. You might also be interested in this bug-report:

http://ati.cchtml.com/show_bug.cgi?id=99

It seems like ATI is having serious problems in providing a decent working linux-driver.

Also note, that this problem of "Radeon driver is clocking the card too hot" started to appear on my system with the introduction of KMS. It seems like the card is never switched to a reasonable power-profile, even if it is getting too hot.
Before KMS, I was able to use in Xorg.conf the options "dynamic clocks on" (or similar) and the card adjusted its speed properly.

ATM I'm just setting the power-profile to "mid" each time after booting (a script could do the job).

Hope this helps, cheers

Note, I forgot to mention one thing: If you have a system with switchable graphics (in my case a thinkpad T400 with a ati card and a ibm gfx-chip), you need to disable the 'switchable graphics' in the bios and manually set in the bios which card to use (Discrete graphics in my case to use the ati-card). If not, it might happen that both cards are "powered-up" and are running at top-speed, producing heat. Here is a lot of informations about this:

http://en.gentoo-wiki.com/wiki/Lenovo_ThinkPad_T400#Getting_graphics_to_work


Blank Screen After login in ubuntu 14.04 LTS

Try reinstalling lightdm

sudo apt-get install --reinstall lightdm


Some tray icons disappear after shutdown overlay

If I restart the shell the icons come back, to do so:

press alt + f2

type "r" without quotes

hit enter

This is not a solution but a quick workaround. I believe it affects the icons of all the programs that depend on QT.

I opened a bug report and this is the address: https://bugs.launchpad.net/ubuntu-gnome/+bug/1594550

If you have this problem subscribe to the bug.


How do you set up a static address using /etc/networks/interfaces

I'm just gonna quote this great article:

  Defining physical interfaces such as eth0

  Lines beginning with the word “auto” are used to identify the physical interfaces to be brought up when ifup is run with the -a option. (This option is used by the system boot scripts.) Physical interface names should follow the word “auto” on the same line. There can be multiple “auto” stanzas. ifup brings the named inter faces up in the order listed. For example following example setup eth0 (first network interface card) with 192.168.1.5 IP address and gateway (router) to 192.168.1.254:

iface eth0 inet static
address 192.168.1.5
netmask 255.255.255.0
gateway 192.168.1.254

  Setup interface to dhcp

  To setup eth0 to dhcp, enter:

auto eth0
iface eth0 inet dhcp

If you're new to Ubuntu, or Linux in general, I recommend you bookmark that site. He has a lot of great articles and tutorials that will help you out.


How can I force Ubuntu to boot on a stuck boot menu?

As of Ubuntu 12.04, a more straightforward, but nevertheless undocumented, solution is to use /etc/default/grub to override the recordfail timeout:

GRUB_TIMEOUT=10
GRUB_RECORDFAIL_TIMEOUT=$GRUB_TIMEOUT

Then run sudo update-grub to apply the changes.

The fact that such option is completely undocumented is just too bad.

Actually, the support for GRUB_RECORDFAIL_TIMEOUT was added in the middle of the 12.04 cycle, starting from version 1.99-21ubuntu3.3:

  grub2 (1.99-21ubuntu3.3) precise-proposed; urgency=low

[ Ben Howard ]
* Parameterization of recordfail setting. This allows users to define the
  default time out of GRUB when recordfail has been set. The curren
  setting causes hangs on headless and appliances where access to the
  console is limited or prohibited.  (LP: #669481)  [1]

-- Louis Bouchard <louis.bouchard@canonical.com>  Tue, 21 Aug 2012 10:51:58 +0200

More detailed information from LaunchPad.


What are the files with the ".O" extension in `/etc/cups/ppd` used for?

The .O files are created by the CUPS system whenever the printer configuration is changed, e.g., if /etc/cups/printers.conf is modified, the previous version is automatically saved as /etc/cups/printers.conf.O. This makes it easy to revert to a previously working configuration.
According to this U&L answer the

.O stands for oldfile as indicated in cups/scheduler/file.c:
oldfile[1024];            /* filename.O */


purging old kernels fails to remove old initrd files

It is safe to remove them manually. It also looks like there is a bug report filed: https://bugs.debian.org/cgi-bin/bugreport.cgi?bug=717584

I can report the same happening here with the 3.13.0-54 kernel and 3.13.0-55 kernel.

-rw-r--r-- 1 root root 1.2M Jun 17 20:03 abi-3.13.0-55-generic
-rw-r--r-- 1 root root 1.2M Jun 19 05:04 abi-3.13.0-57-generic
-rw-r--r-- 1 root root 162K Jun 17 20:03 config-3.13.0-55-generic
-rw-r--r-- 1 root root 162K Jun 19 05:04 config-3.13.0-57-generic
drwxr-xr-x 5 root root  12K Jul 11 15:54 grub
-rw-r--r-- 1 root root  11M Jul  7 21:37 initrd.img-3.13.0-54-generic.old-dkms
-rw-r--r-- 1 root root  27M Jul  4 13:37 initrd.img-3.13.0-55-generic
-rw-r--r-- 1 root root  27M Jul  4 13:37 initrd.img-3.13.0-55-generic.old-dkms
-rw-r--r-- 1 root root  27M Jul  6 18:28 initrd.img-3.13.0-57-generic
-rw-r--r-- 1 root root 173K Mar 12  2014 memtest86+.bin
-rw-r--r-- 1 root root 174K Mar 12  2014 memtest86+.elf
-rw-r--r-- 1 root root 175K Mar 12  2014 memtest86+_multiboot.bin
-rw------- 1 root root 3.3M Jun 17 20:03 System.map-3.13.0-55-generic
-rw------- 1 root root 3.3M Jun 19 05:04 System.map-3.13.0-57-generic
-rw------- 1 root root 5.6M Jun 17 20:03 vmlinuz-3.13.0-55-generic
-rw------- 1 root root 5.6M Jun 19 05:04 vmlinuz-3.13.0-57-generic


Doubts regarding the 15.04 upgrade (is it inevitable and unavoidable?)

Ubuntu 14.10 will go End-of-Life on May, 2015.  Support for the release will end, and updates will be sparse, perhaps.

On the otherhand, 14.04 is a long-term release, and will be supported and downloadable until April 2019

You can always stay on an old release, and possibly suffer from security issues or lack of updates, or you can go with Ubuntu 15 (which will be short term, only 6 to 12 months of support), or revert at some point to 14.04


How to install a .deb pacage without internet AND Synaptic?

You don't need to make it executable. What you did, sudo dpkg -i my_file.deb should work just fine. What are the error messages?
However, I recommend for new users to just double click and it will open in gdebi. If it doesn't, set up its properties so that deb packages open in gdebi.
Using gdebi automatically handles dependencies, and if the dependencies are not satisfiable, it tells you outright and will prevent you from installing the package.
On the other hand, dpkg -i installs the package but not resolve its dependencies. You will need to learn other apt commands like --fix-broken to end up with a clean system. And if the dependencies are not satisfiable it just removes the package you just installed and you will be wondering what went wrong.
You can even use gdebi in the command line if you want, using -n or non-interactive mode. This is still better for new users than dpkg, because it still resolves dependencies and refuses to install debs whose deps cannot be resolved, even in non-interactive mode.


apt-get update could not resolve archive.ubuntu.com

Did you say archieve.ubuntu.com? Well, it is incorrect. It is archive.ubuntu.com.

Method 1

You can change it by typing in the terminal:

sudo sed -i -re 's/([a-z]{2}\.)?archieve.ubuntu.com|security.ubuntu.com/archive.ubuntu.com/g' /etc/apt/sources.list

Method 2

Or, if you are not familiarised with complex terminal commands, type this more simple command in the terminal:

sudo gedit '/etc/apt/sources.list'

Then, click on Find, and type archieve.ubuntu.com. Replace all those entries with archive.ubuntu.com. When you're done, save the file. Then, you can exit.

When you completed it with one of the above methods, update the apt cache by typing in the terminal: sudo apt update.

I hope for the best!


How to make nvidia drivers work without having the boot problem of clean, n/n files, n/n blocks

So the problem was either a driver/OS problem or hardware.

For that I tried it on Windows. As the board didn't work on windows I concluded it was a hardware problem.

Now it can be either the motherboard or the GPU, so I tried another Nvidia GPU and worked so the most likely conclusion is that my GPU (GeForce 2080) was faulty.


Adding space to VMware Virtual Disk for running Ubuntu Server Guest on LVM Partition

So just because it's a virtual machine doesn't mean it behaves differently from a physical server, hotplug is hotplug. If you have indeed added the device to the VM, and you've performed a rescan of the correct bus, then the drive should come up. First lets start with how to verify that the drive is there.

~$ sudo lshw -short -c disk
H/W path           Device       Class          Description
==========================================================
/0/100/1f.2/0      /dev/sda     disk           128GB TOSHIBA THNS128G
/0/100/1f.2/1      /dev/cdrom1  disk           DVDRAM GT30N

Note that I emphasized which bus to scan. The way Linux handles SATA is to represent each LINK as a scsi_host, so you can't just scan any old host, you have to scan the right one where your drive is attached. A little shell scripting will help here.

hosts='/sys/class/scsi_host'
for i in `ls $hosts`;
do
echo "- - -" > ${hosts}/${i}/scan
done

Wait a few moments, then verify the disk is there, and then pvcreate and vgscan just as you normally would. That VMware didn't generate a hotplug event is their problem, I don't know how they implement that. QEMU assigns a PCI device per disk and piggy backs on that
hotplug mechanism, no additional probing required. You should really consult the vmware documentation on guest management...

http://www.linux-kvm.org/page/Hotadd_pci_devices#Add_a_disk


Try to have a look to TextStat http://neon.niederlandistik.fu-berlin.de/en/textstat/
It should do exactly what you're looking for


How can I deactivate certain mouse buttons?

I don't have a mouse like that, but I know it's different from windows, try this link. Hope it can help you.


Ethernet Network card BCM4401-B0 no longer recognised?

Your wired network driver b44 is probably blacklisted by your wireless driver.

This should be fixed by

sudo -H gedit /etc/modprobe.d/blacklist-bcm43.conf

And removing blacklist b44, b44 and ; modprobe --ignore-install b44
from the last line.

The file should look this way

# Warning: This file is autogenerated by bcmwl. All changes to this file will be lost.
blacklist b43
blacklist b43legacy
blacklist ssb
blacklist bcm43xx
blacklist brcm80211
blacklist brcmfmac
blacklist brcmsmac
blacklist bcma
install wl
modprobe -r b43 b43legacy ssb; modprobe --ignore-install wl

Save the file.

After that wired network should work after reboot.

Note In case bcmwl-kernel-source is upgraded, this procedure probably should be done again.


There is Teamviewer it-self.

Otherwise, there is Open-source alternative. Look at some client for RDP protocol, or VNC protocol.


How to run multiple commands in parallel and see output from both?

GNU Parallel defaults to postponing output until the job is finished. You can instead ask it to print output as soon there is a full line.

parallel  --lb ::: 'lsyncd lsyncd.lua' 'webpack --progress --color -w'

It avoids half-line mixing of the output:

parallel -j0 --lb 'echo {};echo -n {};sleep {};echo {}' ::: 1 3 2 4

Spend 20 minutes reading chapter 1+2 of GNU Parallel 2018 (online, printed). Your command line will love you for it.


It seems the interface eth0 was configured before and the address was kept persistently (for some reason) by the kernel.

To clear all addresses from interface eth0 without having to restart network services or bringing the interface up/down :

sudo ip addr flush dev eth0

Then you can use ifup to configure eth0 by reading /etc/network/interface file :

sudo ifup eth0

For verbosity :

sudo ifup -v eth0


Samsung Ativ book 9 lite install problems

If anyone else should have any issues with installing ubuntu on the ativ 9 here is what you need to do.

One of the problems was making the USB. not managing to make it bootable in Windows, I made a Tails OS live USB from which I made the Ubuntu install USB. Then it worked. Why it didn't in windows i do not know.

Second problem:
When it boots from the USB and you can choose between Try Ubuntu without Installing and Install Ubuntu, choose install.
The drivers for the graphics card are proprietary and do not automatically install, therefore you will not be able to start the desktop fully.

When installed and rebooted press CTRL + ALT + F1 to access console login.

Type in your username and password.

Then install fglrx with

sudo apt-get install fglrx

(make sure you are connected to the internet.)

reboot and all is good :)

regarding the network card - this does not seem to be an issue after all.


inside, in all settings, you must find FFmpeg decoder and switch off hardware acceleration. All work fine. CPU - 3-4% loading. (i5 3570/Nvidia 1050Ti/8G DDR3/Asus Z77-V-Pro/Linux Mint 18.3 Cinn 64bit). Try. Its easy.

OLEG


How do I fix “swap area creation failed” error

Using the live USB I unmounted, and edited the SSD via the Disks tool; resetting it to its default state, then rebooted and reinstalled Ubuntu with no issues.
I didn’t have to manually partition the drive like before.

Thanks @heynnema


How to make cairo-dock icons not to hide

Right click on the dock itself and choose 'Cairo Dock'->'Configure'.
Under 'Behaviour' choose 'Visibility'.

You will find a 'visibility of the main Dock' section with a 'visibility' drop down - select 'Always on top'.

That way, your dock will always be on top of any window.


How should I deal with bugs that are for unsupported versions of Ubuntu?

I am a member of Bug Control (one of the higher-privileges bug triager groups) and the Bug Squad.  We have specific guidelines for triage of old bugs (excluding atypical, special guidelines bugs which have special nonstandard workflows)

TL;DR: The status we set on EOL bugs is dependent on multiple factors.

DO NOT UNDER ANY CIRCUMSTANCES ALTER A BUG STATUS IF IT IS "Fix Released", "Invalid", or "Won't Fix" already!!!  These bugs are already considered 'closed' and you should NOT mess with them!

If the bug is 'Fix Committed' then it depends on what you do there - either try and see if a fix was ever committed, or mark "Won't Fix", since EOL release.  Be careful here. Sometimes a release isn't really fully EOL so you have to keep that in mind (10.04 Server for example).

If the bug is known to be fixed AFTER the EOL release is out we Won't Fix the EOL release's bug.

If the bug is not confirmed fixed, we mark Incomplete and ask for people with the oldest supported release and other supported releases to try and replicate the bug, and report back.  If nobody can confirm we can either leave Incomplete until the bug autoexpires or Won't Fix the bug (usually the former if nobody responds back, or the latter if people report back and can't replicate the bug).

If the bug is solely affecting Hardy and no other releases then we Won't Fix the bug.

In any case that we mark the bug Wont Fix we always comment explaining why and that they should change the status to New (if no other release series is on the bug) if they find the bug or reproduce in a supported release.

In any case we mark incomplete we comment why we did and ask for additional tasks or info and mention the bug will autoclose and expire after some period of inactivity.

Invalid only makes sense if we have a new bug filed on the EOL release, then we can mark it 'Invalid' or 'Won't Fix'.  We typically reserve 'Invalid' for "Not a Bug" bugs, or bugs which are against nonexistent packages or things not in the repositories (such as PPA versions and such instead of the versions in the repositories.)

Your best bet is to follow the triage guide and stop by the #ubuntu-bugs channel on Freenode IRC and ask for per-bug guidelines and tips and suggestions from other bug squaders and also bug control members.

(This has been on my radar for some time... I am going to go through the EOL-release-series-targeted bugs by script and automatically close them all via the Launchpad API in a few days after checking with other bug controllers and the security team and other teams to make sure it won't impinge on their processes or cause mayhem)


Ubuntu 15.04 on laptop - "When plugged in" setting not enforced after battery is charged to 100%

Ubuntu and Batteries do not co-operate very well. I would suggest trying out TLP. I have found TLP to solve few of my Battery related issues from 12.04 LTS to 14.04 LTS on Dell Latitude Series.

Look the accepted and thoroughly written Answer here:
Is there a power saving application similar to Jupiter? (Its too long to repeat, nor I wish to take credit for it -It helped me a lot)

Installing:

sudo add-apt-repository ppa:linrunner/tlp
sudo apt-get update
sudo apt-get install tlp tlp-rdw

Removing:

sudo apt-get remove tlp
sudo add-apt-repository --remove ppa:linrunner/tlp

Links to TLP Official Site for Further and extra information how set/edit/modify/configure TLP and its functions.

http://linrunner.de/en/tlp/docs/tlp-linux-advanced-power-management.html

I highly recommend to read the above post and Linrunner TLP Guide.


Problems during the installation of OpenFOAM231 and Paraview410

I have the same problem installing OpenFOAM2.3.1 on Ubuntu 14.04.2 lts
You have to update all the unmet dependencies manually.

Try this link Installing qt4 on Ubuntu 14.04 LTS

In your terminal (as the root user) type the command: apt-get install libglew-dev libcheese7 libcheese-gtk23 libclutter-gst-2.0-0 libcogl15 libclutter-gtk-1.0-0 libclutter-1.0-0

This should update all the unmet dependencies so that you can install all the required packages for OpenFOAM.

Good luck!


Add a file in etc/modprobe.d/ with the name aliases

sudo gedit /etc/modprobe.d/aliases

with these contents

## Turn on DMA for DVD ############################
alias ata_generic off
alias pata_atiixp on

and reboot

sudo reboot

(source: https://help.ubuntu.com/community/DMA)


How could I safely delete a truecrypt volume?

Remove the file with, eg:

sudo shred -u /dev/disk/by-id/<your_filename>

And as Terrance says in the comments:

  Better to take time to eliminate, then to be sorry in the future.

from man shred

shred - overwrite a file to hide its contents, and optionally delete it

-n, --iterations=N
      overwrite N times instead of the default (3)

-u, --remove[=HOW]
      truncate and remove file after overwriting; See below

Delete  FILE(s)  if  --remove  (-u)  is  specified.  The default is
not to remove the files because it is common to operate on device
files like /dev/hda, and those files usually should not be removed.
The optional HOW parameter indicates how to remove a directory entry:
'unlink' => use a standard unlink call.  'wipe' => also first
obfuscate bytes in the name.  'wipesync' => also sync each obfuscated
byte to disk.  The default mode is 'wipesync', but note it can be
expensive.


Need to take bootable usb image of installed system

You can have a look at Remastersys.

Although its development is no longer taking place, you can still download it from here and install the deb file using dpkg.

sudo dpkg -i <filename>.deb

It can be used to create custom bootable ISOs (LiveCD) which can be customised according to the user's preference in terms of the packages installed, themes, etc.

For a tutorial, you can visit this page.


From man mount:

  Some of these options could be enabled or disabled by default in the system kernel. To check the current setting see the options in /proc/mounts.

cat /proc/mounts

Shows that relatime is an option for almost all filesystem mounted, but I can't say for sure if is a default for every filesystem that supports atime.