I've just discovered that this is due to a minor bug in the "ooo-thumbnailer" package.
Until a new version is released, I've managed to get thumbnails displayed again in this way:

1) As root, create a new (plain text) file, which is missing:

/usr/share/thumbnailers/ooo.thumbnailer

2) Open this new file with your text editor (e.g. gedit or medit) and paste the following text:

[Thumbnailer Entry]

TryExec=ooo-thumbnailer
Exec=/usr/bin/ooo-thumbnailer %i %o %s
MimeType=application/vnd.oasis.opendocument.graphics;application/vnd.oasis.opendocument.presentation;application/vnd.oasis.opendocument.spreadsheet;application/vnd.oasis.opendocument.text;

3) Save this file and restart Nautilus using this command in user terminal:

nautilus -q

You should now have thumbnails generated and displayed for all supported file types like ODT and so on...


I have a Sandisk Sansa Clip, which can be used in MSC- or MTP-Mode. It plays ogg files and can resume podcasts.

It is recognized well with ubuntu/banshee.

The only problem is, that the player's podcast folder is outside the music folder. But banshee stores podcasts in music/podcasts. So the player doesn't recognize all podcasts as podcast. The unrecognized files are treated as music and resume after you switch the player off, but doesn't remember the last position, when skipping the file.

When using the player with banshee, you have to manually define which episodes you heard with the player after that it automatically synchronizes your new episodes and removes the old ones.


"error while loading shared libraries: libGL.so.1: wrong ELF class: ELFCLASS32" installing ATI drivers

Note that:

  For Ubuntu 16.04 LTS and above, the AMD Catalyst or fglrx driver is no longer supported by AMD.

If you are using 16.04 LTS or above, you are very likely on your own. The following is only meant for the case described in the question. I can't guarantee that it would work on later versions.

The problem that we solved by commenting was that you were using 32-bits libraries in a 64-bits system.

  wrong ELF class: ELFCLASS32

The ending of the class should have been 64, hence producing this error. The way to go is purging the 32-bits libraries then reinstalling the 64-bits.

sudo apt-get purge libgl1-mesa-glx:i386
sudo apt-get --reinstall install libgl1-mesa-glx

And refreshing our GNU linker:

sudo ldconfig

Once everything is ok, ldconfig -p | grep libGL.so.1 should show:

libGL.so.1 (libc6) => /usr/lib/x86_64-linux-gnu/mesa/libGL.so.1
libGL.so.1 (libc6) => /usr/local/lib/libGL.so.1

If you ever need the 32-bits libraries for running 32-bits applications, you could do so installing the libgl1-mesa-glx:i386 package. But in this case remember to setting your LD_LIBRARY_PATH temporally to where the 32bits libraries are, so it won't mess up your other programs.

 export LD_LIBRARY_PATH="/path/to/library/"
 ./run_some_32_bit_program


Remove previous directories before cloning in Gitlab CI/CD

After searching the web to find a solution. At last i found that:
with this code you can keep 5 latest versions.

ls -1t | tail -n +5 | xargs rm -rf


can we update ubuntu 14.04 to ubuntu 16.04 which is of another ubuntu flavor?

You can just upgrade to 16.04 and then change your desktop manager.
    sudo apt-get install lubuntu-desktop
should do the trick to install LXDE. You can remove MATE by
    sudo apt-get purge --auto-remove mate-desktop


Why are all the people colored blue in my videos?

You may want to give this a try: http://www.wiredrevolution.com/ubuntu/fix-blue-tinted-video-in-ubuntu


Expecting authentication method via either a service token, --os-token

You have to provide below parameter or export it from command line:

export OS_SERVICE_TOKEN=************************
export OS_SERVICE_ENDPOINT=http://controller.domain.com:35357/v2.0

The token must be same as that of you have in keystone.conf file with parameter name admin_token = ************************. Probably you will have one at path /etc/keystone/keystone.conf.


paritions when booting windows (10) machine from ubuntu

"the plan is to use gpart to wipe HD clean of all previous stuff."

Hoped you backedup your important stuffs.

Ubuntu installation gives you option to install to the Entire HDD space selecting that option will  "wipe HD clean of all previous stuff" and the fresh installed Ubuntu will occupy entire space.

Am guessing you don't want to do the above "which partitions should i delete".? you ask

From gparted above it seam you had windows install in /dev/sda2,
/dev/sda1 Windows system reverse. IF your plan is to dual boot you will not want to touch those.

The possible installation candidate will be /dev/sda5 don't know what you use it for but it has enough space that you can either shrink to use for Ubuntu or backup the stuffs in it and use it entirely for your Ubuntu. If thats what you want "feel free" to delete the the partition(/dev/sda5).

Edited to answer question in comment:

What is /dev/sda1 Windows system reverse?

You could find this helpful. how do i know?. flags, label.
How did you guess windows is installed in /dev/sda2?

Its fairly obvious. knock out the other possibilities and its left alone. it can't be /dev/sda5 the used space is too small for windows to fit in.
/dev/sda4 ? the label and the flag gives it away.
How do these paritions map to c:\ drive in windows? which paritions is my c:

The partition windows is install is automatically named C.

Am not laying down any universal rule here talking out of familiarity.


what's the name of the program/app/daemon that "plays" music in rhythmbox when i try to quit it with close button?

It's still Rhythmbox, but I suspect that you may have a different version of Rhythmbox on the other distros which is why you see different behavior.  There has been some back and forthing over the behavior of Rhythmbox's close button.

But currently, on Ubuntu 12.04, the Rhythmbox close button is simply hiding the player's shell.  The player is still running and playing your tracks.


One way to do this is to simply rename three files.
Run these commands in a terminal:

cd /usr/share/applications
sudo mv gnome-about.desktop gnome-about.desktop.bak
sudo mv ubuntu-about.desktop ubuntu-about.desktop.bak
sudo mv yelp.desktop yelp.desktop.bak

To add them back to the System menu:

cd /usr/share/applications
sudo mv gnome-about.desktop.bak gnome-about.desktop
sudo mv ubuntu-about.desktop.bak ubuntu-about.desktop
sudo mv yelp.desktop.bak yelp.desktop

I was looking at the gnome-panel source code and it seems these three items are hardcoded to be included in the System Menu, but if the applet can't find those .desktop files with those exact names they won't be added.

Here is what the System menu looks like after renaming those files:


How to add icon for application installed via .deb file?

Create a .desktop file in ~/.local/share/applications/ , perhaps tusk.desktop, with

nano ~/.local/share/applications/tusk.desktop

In that file, add these lines

[Desktop Entry]
Name=Tusk
Comment=
Exec=*command to run*
Icon=/path/to/tusk/highres-icon.png
Terminal=false
Type=Application
StartupNotify=true

Save the file, and there's your Tusk desktop launcher.


Previously installed 12.04 alongside Windows, would like to install over Windows

I tried pendrivelinux yesterday and it worked like a charm. Supposing you want to install Ubuntu 12.04 i386 from an USB drive


Touchpad mouse stopped working after partition changes

I've got it working after switching the hardware enable/disable touchpad button.


It seems to me that you should Install Proprietary drivers

sudo apt-get install nvidia-current

or

sudo apt-get install fglrx


Why doesn't Ubuntu recognize Windows 10?

Boot-Repair is an Ubuntu GUI application that can repair the kind of problems that may occur after installing another operating systems to a multi boot partition. You should be familiar with the basic principals of the GRUB 2 boot loader, but Boot-Repair offers you a certain level of automation, and will provide a "Boot-info file" that can be useful in getting help from other users on the Ask Ubuntu Forum. You may need to install this application before you proceed. The following steps will install Boot-Repair on Ubuntu.

Open the terminal and run the following commands:

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

Once you have installed the 'Boot-Repair,' App launch it from >System >Administration >Boot-Repair, or search for boot-repair" from the Dash and launch from there. Select the "Recommended repair" option, or advanced options depending on the extent of your problem.

Further instructions can be found here.

https://help.ubuntu.com/community/Boot-Repair


how to get the user@machine prompt on zsh

Yes, the user@machine~ prompt is missing in zsh by default. But you can still have it by installing a theme. Find a zsh theme here. One example of a theme that has user@machine~ is alanpeabody.


backup failed .../.cache/deja-dup/metadata’: File not found in backup on ubuntu 16.04

You can refer to : https://bugs.launchpad.net/deja-dup/+bug/1217959
(It's a big mess)

This bug is known for about 3 years now!

We know this problem happen when you symlink "~/.cache/deja-dup", but maybe there is other cases.

If you are in this case, you can try to delete your symlink, and replace it by : sudo mount --rbind /run/media/daboross/external/deja-dup-cache ~/.cache/deja-dup.

Or maybe create an empty ~/.cache/deja-dup/metadata file.

If none of these solutions works, I don't know, nobody knows :)


Add/change timezone on Ubuntu Minimal 18.04

I solved the problem by installing the package tzdata:

sudo apt update
sudo apt install tzdata

...which installs the timezone database and also asks for the preferred timezone during installation.


Problem is installation with Scilab 5.4.0

A few notes I gathered from info found over the internet to quickly get you started:

(1)  Make sure Scilab is installed in /home/youruserID to ensure that you can change ./bin/scilab into an executable.  If it is an NFTS system, it can not be changed into an executable.

(2)  Get updates for Ubuntu.
Open up a terminal, or Xterm:

sudo apt-get update
sudo apt-get install -f

(3)  Problem with installing Scilab: missing libXss.so.1
You need to install libxsss1.

Again under Xterm:

sudo apt-get install libxss1

(4) To launch Scilab in Xterm:

cd <scilab-path>/scilab-5.4.1
./bin/scilab

(5) To create shortcut on Desktop:

sudo apt-get install gnome-panel
gnome-desktop-item-edit ~/Desktop/ --create-new


What does grouping in extended regular expressions mean?

Essentially, it causes whatever is inside the parentheses to be treated as a single atom. This is useful if you want to apply a quantifier for example. Compare:
$ printf 'groupinggrouping' | grep -Eo "grouping*"
groupingg

(where * is only applied to the g) with
$ printf 'groupinggrouping' | grep -Eo "(grouping)*"
groupinggrouping

where * is applied to the whole subpattern grouping.
In most (all?) regex dialects, (grouping) also captures the matched text into an indexed capture group, allowing it to subsequently be backreferenced. That doesn't have too many applications in grep - the most obvious one is for detecting repeated elements ex.
$ printf 'ba\nbb\nbc\n' | grep '\(.\)\1'
bb

matches any single character that is followed by the same character. In the context of pattern substitution (in sed for example, rather than grep), the captured group may also be referenced in the replacement text.
There are other variants in more expressive dialects - such as Perl's (?:grouping) non-capturing groups.
For further information see for example

Use Parentheses for Grouping and Capturing


No confirmation prompts when deleting a file or a directory

Hi & Welcome to AU,

Assuming that you're trying this on nautilus but no through the terminal. Well there's a known Bug discussion in place for a while now. Not sure what has happened to it yet though.

  Default behavior of deleting a file/folder is that; the moment you hit
  DEL button; file/folder will be moved to Trash without
  any further confirmation prompt. But when you use
  SHIFT+DEL together, it will for sure ask for a
  confirmation since you're completely deleting the file out of the
  system. Further the same, confirmation will be prompted when
  emptying the trash or deleting the file individually within trash.

If you're not being prompted for confirmation while emptying the trash, deleting the file individually within trash or either using SHIFT+DEL anywhere; make sure you've enabled the option which can be seen below;

Open Nautilus -> Edit -> Preferences --> Navigate to Behaviour tab & de below;

Hope this helps! :)


if i understood your question correctly, you want to go back to default theme..
you can use the same command again and select the number 0

sudo update-alternatives --config gdm3.css

$ sudo update-alternatives --config gdm3.css
[sudo] password for mkr:
There are 2 choices for the alternative gdm3.css (providing /usr/share/gnome-shell/theme/gdm3.css).

  Selection    Path                                               Priority   Status
------------------------------------------------------------
  0            /usr/share/gnome-shell/theme/Yaru/gnome-shell.css   15        auto mode
  1            /usr/share/gnome-shell/theme/Yaru/gnome-shell.css   15        manual mode
* 2            /usr/share/gnome-shell/theme/gnome-shell.css        10        manual mode

Press <enter> to keep the current choice[*], or type selection number: 0
update-alternatives: using /usr/share/gnome-shell/theme/Yaru/gnome-shell.css to provide /usr/share/gnome-shell/theme/gdm3.css (gdm3.css) in auto mode
$

If you want to apply the changes to unlock-screen also, this answer may help.
https://askubuntu.com/a/1107377/739431

Edit:
as per the comments, you have manually deleted the folder Yaru
to install yaru-theme package run the below command,

sudo apt install yaru-theme-gnome-shell

$ sudo apt install yaru-theme-gnome-shell
[sudo] password for mkr:
Reading package lists... Done
Building dependency tree
Reading state information... Done
yaru-theme-gnome-shell is already the newest version (18.10.6).
yaru-theme-gnome-shell set to manually installed.
0 upgraded, 0 newly installed, 0 to remove and 17 not upgraded.
$

It says this is already the newest version, may be because we have manually deleted the folder Yaru

so, sudo apt purge yaru-theme-gnome-shell

$ sudo apt purge yaru-theme-gnome-shell
Reading package lists... Done
Building dependency tree
Reading state information... Done
The following package was automatically installed and is no longer required:
  xwayland
Use 'sudo apt autoremove' to remove it.
The following packages will be REMOVED:
  ubuntu-desktop* ubuntu-session* yaru-theme-gnome-shell*
0 upgraded, 0 newly installed, 3 to remove and 17 not upgraded.
After this operation, 637 kB disk space will be freed.
Do you want to continue? [Y/n]

Please note that the command sudo apt purge yaru-theme-gnome-shell will also remove ubuntu-desktop* and ubuntu-session* along with yaru-theme-gnome-shell*

Once we continue with Yes,

we need to again install ubuntu-desktop and ubuntu-session packages..

sudo apt install ubuntu-desktop ubuntu-session

$ sudo apt install ubuntu-desktop ubuntu-session
Reading package lists... Done
Building dependency tree
Reading state information... Done
The following additional packages will be installed:
  yaru-theme-gnome-shell
The following NEW packages will be installed:
  ubuntu-desktop ubuntu-session yaru-theme-gnome-shell
0 upgraded, 3 newly installed, 0 to remove and 17 not upgraded.
Need to get 113 kB of archives.
After this operation, 637 kB of additional disk space will be used.
Do you want to continue? [Y/n]


Synchronize profiles across servers (.vimrc and .bashrc)

Use a version control system like subversion or git. As a bonus, if used correctly, you get the answer to the inevitable question; Why on earth did I put that in there?


How to access System Settings when Ubuntu menu is broken?

I had the same issue so i tried this and work: open the terminal an insert:
unity-control-center

this will open the default ubuntu control center if it is intalled, if not i will give you the instructions to install it, just follow them and the system settings will appear after this


ubuntu 13.10 won't install it just reboot the pc when terying to install

Could be your hard drive. Try checking your Drive for Errors with "chkdsk" or any 3rd party tool.
It can also be an overheating issue.
You know there is something wrong when the installer doesn't see your existant Windows OS.


multiverse

unrar is not contained in the standard Ubuntu repository. You need to enable the multiverse repository in order to install it. To do this run the following command:

sudo apt-add-repository multiverse && sudo apt-get update

as described here: How do I enable the "multiverse" repository?

On Ubuntu 17.04 (zesty) this package was called unrar-nonfree, so to install unrar you would need to issue sudo apt-get install unrar-nonfree.

But since 17.04 is not supported anymore you should really upgrade your system anyway.


Cannot connect to internet running Ubuntu 14.04 using VirtualBox on my MSI GT60 - Windows 8.1 x64

I was also having connectivity issues on Ubuntu installed on Virtual Box on my Windows 8.1.
I was going crazy as none of the solutions (on this forum and others) worked for me.
Out of the blue, I decided to uninstall Anti-Virus installed on Windows and restarted it. The next time I opened the same VM with Ubuntu, and it worked!


How to configure to login without password through remote shell

After editing lightdm.conf, I just need to disable the keyring through remote shell.

I've found a solution as below:

sudo mv /usr/bin/gnome-keyring-daemon /usr/bin/gnome-keyring-daemon-old
sudo killall gnome-keyring-daemon


Google Chrome does not start: Segmentation fault (core dumped)

It's a known sandboxing issue. Start chrome with
google-chrome-stable  --no-sandbox


Frequent short freezes after upgrade to 14.04

The problem turned out to be with the kernel time processing: when I run cat /var/log/syslog | grep -i 'unstable' I see several error messages such as Clocksource tsc unstable (delta = -3474929768 ns).

I solved it by turning on ACPI HPET table in BIOS. With another clocksource Linux kernel managed to handle the timers correctly.


Can I upgrade to another desktop environment?

This is quite complicated, and there isn't an easy/quick way to do this. The best approach is to completely remove unity, install gnome3, then upgrade:

sudo apt-get purge unity unity-2d unity-2d-panel unity-2d-spread unity-asset-pool unity-services unity-lens-files unity-lens-music unity-lens-applications gir1.2-unity-5.0 unity-common indicator-sound indicator-power indicator-appmenu libindicator7 indicator-application indicator-datetime indicator-messages libnux-2.0-0 nux-tools libunity-misc4 unity-2d-common lightdm
sudo apt-get install ubuntu-gnome-desktop ubuntu-gnome-default-settings
sudo apt-get autoremove
sudo do-release-upgrade

I recommend you to do this in a text based environment, since the GUI binaries could be incomplete leaving the desktop unstable.

If you want to force unity to be uninstalled, you can put the package on hold:

echo 'unity hold' | sudo dpkg --set-selections

I'm not totally sure that do-release-upgrade respect on hold packages, due the lack of documentation.


How hard would it be to set up Conky like this?

Converting from rainmeter config to conky config, maybe if you went through it by hand yourself, but I am not aware of any automatic tool.

Conky can do free drive space, disk read/write speeds, cpu usage, free/total/used ram, sensor temps & fanspeeds, processses, network UL/DL speed & totals... just type them into your config file & test it out.

It's basically just take the default config file, and add/change stuff under the TEXT line. And the reload trick killall -SIGUSR1 conky is excellent. After you get the right settings above the TEXT line to use conky on your desktop, easy web search to find those.

See these pages for more info:

Conky Documentation Pages

Pretty table of Conky variables

Ubuntu help page on Conky
A web search for best conky configs - just copy some cool ones & edit away. Could be a lot easier than DIY'ing your own.

Lots of them use LUA and pretty rings and such, but they can take up lots of valuable desktop space... Like this Hej Conky setup found on this page :

I've got a slim bar that crams in almost every stat & graph I might want, and it's small enough to keep it always visible. Could even cover almost all of it up and leave just the 3 or 4 characters on the edge that show most important numbers.


apt-get error - tries to install Dropbox


I was able to fix the problem by renaming ~/.kde/share/config/okularrc to okularrc.OLD.


How to install Ubuntu on usb drive (not live simulation)

You will need two media at this process.
One which was prepared as installation media.
Second media for installing in it.

Create a live (installation) media (usb/cd).
Boot the computer with the installation media with the Install option
While it is being prepared, plugin your USB where your real OS will be installed.
Follow the steps and select Something Else at the right step.
Choose your OS USB disk to install. (Possibly, sdc)
Click on it and select / for mount point and "Format it"
Also be carefull to choose your OS USB to install GRUB where it asks "Where to grub install?"
It will be installed to your USB.


Press Fn+F7 to turn the touchpad on or off (toggle).


Why is my screen is showing simplified graphics

The icons seem to be part of the HighContrast icon set.
There's a few tools you can use to change your active Icon Set, i recommend you to install Ubuntu Tweak.

There's 2 ways to install it:

1) You can download the latest .deb file from the official website, open it up with the Software Center and hit Install.

2) Or add the PPA and install the package (It doesn't seem to have builds for any recent versions other than 14.04. So if you're not running Trusty then use the .deb file):

sudo add-apt-repository ppa:tualatrix/ppa
sudo apt-get update
sudo apt-get install ubuntu-tweak

To change your icon theme just open Ubuntu Tweak up, click the Tweaks tab, click Theme, and finally choose your Icon Theme on the drop-down menu.

PS: If my answer solved your problem, feel free to mark it as the Accepted Answer.


Well the solution is to change the font and size in the default Arc-Dark shell theme located in /usr/share/themes/Arc-Dark/gnome-shell/gnome-shell.css i.e.

    stage {
  font-family: Ubuntu Condensed;
  font-size: 11pt;
  color: #D3DAE3; }

Then select "Arc Dark" as the shell theme using GNOME Tweaks.


Gnome-terminal doesn't close at end of SSH session

Add this to your remote server's ~/.bashrc or ~/.profile, whichever is appropriate:

alias reboot='{ sleep 2; reboot; }& exit'

Every time you type 'reboot' on the remote server, it tells the computer to reboot in 2 seconds, while immediately exiting, ensuring your terminal won't just hang.

Edit:  have I misunderstood your question?

To close your terminal, after a SSH session ends, use an alias for sshing your server, and append 'exit' to the end:

alias server_ssh='ssh user@site.com; exit'

Put that in your ~/.bashrc


Can't boot Ubuntu on Dell Inspiron 5000 series

You possibly have enabled Legacy mode or something other than UEFI. Revert to UEFI and you should be able to launch grub.


Why update manager is still showing a development release?

From the man page of update-manager, the -d option:

  -d, --devel-release
              Check if upgrading to the latest devel release is possible

So you are already asking update-manager to try and upgrade to a development release. Remove the-d and it will work


How do I fix "/bin/sh: 2: patch: not found" and "make: *** [lib/libcurl.a] Error 127" errors?

/bin/sh: 2: patch: not found

Install patch:

sudo apt-get install patch

You could also install build-essential package to make sure you have the basic tools used for compiling.

sudo apt-get install build-essential


Cannot find any wireless networks - Networking service failing

2) I can see the wlan0 interface in the ifconfig + iwconfig commands

Ensure you have not disabled wireless by pressing some key combination on your particular netbook.


Bluetooth BCM20702A1 not working - Ubuntu 16.04

This should work
sudo apt-get install build-essential git
git clone https://github.com/jeremyb31/bluetooth-4.8.git
cd bluetooth-4.8
cp /usr/src/linux-headers-$(uname -r)/.config ./
cp /usr/src/linux-headers-$(uname -r)/Module.symvers Module.symvers
make -C /lib/modules/$(uname -r)/build M=$(pwd) modules
sudo cp btusb.ko /lib/modules/$(uname -r)/kernel/drivers/bluetooth/
sudo depmod -a

Reboot and see if it works

After a kernel update the steps will need to be done again
cd bluetooth-4.8
make -C /lib/modules/$(uname -r)/build M=$(pwd) clean
cp /usr/src/linux-headers-$(uname -r)/.config ./
cp /usr/src/linux-headers-$(uname -r)/Module.symvers Module.symvers
make -C /lib/modules/$(uname -r)/build M=$(pwd) modules
sudo cp btusb.ko /lib/modules/$(uname -r)/kernel/drivers/bluetooth/
sudo depmod -a
Reboot


In Xubuntu 14.04.1, Customizing Date & Time Display

The digital clock display is very configurable. See these links for more information on how to customize the clock the way you want:

http://docs.xfce.org/xfce/xfce4-panel/clock

https://developer.gnome.org/pango/stable/PangoMarkupFormat.html

I don't recall the original clock format, but here are a few simple examples below: (copy paste one line at a time into the clock's custom format to try them out)

Right click on the clock and click properties, Then choose the Digital layout, Then choose "Custom Format" for "Clock Options".

First, You can try the bold and big attributes to make text easier to read:

%l:%M %P (default style)
%l:%M %P
<big>%l:%M %P</big>
<big>%l:%M %P</big>

Second, you can try the span font-size and font-weight attributes to get more specific sizes:

%l:%M %P (default Style)
%l:%M %P
%l:%M %P
%l:%M %P

And lastly, here are some multi-line examples for tall panels:

<big>%l:%M</big> %P%n%A
%l:%M %P%n%A


I can't able to install ubuntu alongside with Win7 ..:

Usually that happens if you're trying to install on a dynamic 'disk'.

With Win7 now it offers to convert to dynamic disks when you already have 4 primary partitions and you try to create another. Unfortunately this process is not easily reversible and these partitions are not visible to linux as they're not in the MBR partition table.

In fact that error is not Wubi, it's Windows preventing you from booting directly from the dynamic partition. It would work if you picked C: but don't do this - running linux on a disk with dynamic partitions can lead to data loss (since they're not visible to Ubuntu).

Here's a thread where the poster converted from dynamic back to simple: http://ubuntuforums.org/showthread.php?t=1868679


Yes I've had the same problem after update 12.10 (worked fine with 12.04).
My Solution downgrade modem-manager (to deb of 12.04)

download deb:
http://launchpadlibrarian.net/98148171/modemmanager_0.5.2.0-0ubuntu2_i386.deb
from (https://launchpad.net/ubuntu/precise/i386/modemmanager/0.5.2.0-0ubuntu2)

and the install the old version:

sudo dpkg -i modemmanager_0.5.2.0-0ubuntu2_i386.deb

to prevent update to version 0.6.x lock the version in synaptic.
After downgrade I got the question for PIN immediately.

NOTE: Give ubuntu a change to repair, so keep in touch of update of 0.6.x version ;-)


Just installed the latest ubuntu version and my earphones don't work

Install Pulse Audio by opening a Terminal windows ant type:

  sudo apt-get install pavucontrol

Open Pulse and check or set audio output to headphones. And check the volume for headphones. Unmute if necessary.


Which word processor has best compatibility with the doc(x) formats?

I have tried all of them and they all work OK.  But I personally like Libreoffice, and it come on top in the reviews.


Firefox keeps resetting Pulse volume to 0

After living with it for several days, I deleted my Firefox profile: ~/.mozilla and started over. Problem solved, the Microsoft™ way!

source


Tried installing a program via terminal and lost all my folders, can't access them

You were in the wrong location when you moved the intended files.  It's usually better to include a directory name when you want to move all the files so that you can be sure to have the correct directory.  Also be sure to include a trailing / slash for the destination directory to avoid moving everything into a single file.

Restoring your files

Run this command to get your root directory from the /usr/local/stata12/ space:

$ mv /usr/local/stata12/* ~/

You might have to elevate the command with sudo.  If you do then some of the files in your home directory ~/ will not be owned by you.  You can insure that you own all the files in your directory with this command:

$ sudo chown -R [youruserid]:[yourgroupid] ~/

Replace the [youruserid] with your userid without the brackets.  If your user and group id is apollo the command would be:

$ sudo chown -R apollo:apollo ~/

Issue with the install

The issue with your install starts with line #5.  You missed a step from the "cd" instruction from the install procedure.  That should be step 4a, just before performing step 5.

When you change directories your prompt will change to indicate that you are in a different directory.  Make sure you see the prompt for the directory you changed to.

In this case the step from the instructions said change to the directory you created and gave you an example (YOUR_PATH/Stata12_Linux/linux.64/).

Before performing #5 you should have executed changed the directory to where you had unzipped the file.  Then looked at your prompt.  It would have looked similar to:

yourID@yourcmputer:~/Stata12_Linux/linux.64/$

If it doesn't resemble the line above you the change directory might have fail.  You'd have to find out how to get to the directory where you unzipped the file.


dependency errors from wine preventing installations of all programs

You should be able to resolve this conflict by asking apt to do it for you.

sudo apt-get install -f


Command equivalent on restarting explorer.exe in Windows

If your goal is to restart file manager , then pkill nautilus && nohup nautilus 2> /dev/null &.

If you want to restart your desktop session, sudo service lightdm restart. This command kills everything, kicks you back to login screen. Effectively restarts your graphical session


How to set a keyboard shortcut for toggling 'mouse keys' on/off in universal access, 18.04?

the commands those controls this toggling from command line are

gsettings set org.gnome.desktop.a11y.keyboard mousekeys-enable true
gsettings set org.gnome.desktop.a11y.keyboard mousekeys-enable false

you can make a script for toggling of them like below.
i named it like Mouse Keys Toggling MKT.sh and stored on Desktop.

#!/bin/bash

key="org.gnome.desktop.a11y.keyboard mousekeys-enable"
current=$(gsettings get $key)

if [ "$current" == "true" ]; then
  gsettings set $key false
else
  gsettings set $key true
fi

for toggling use the below command

bash /home/<user>/Desktop/MKT.sh

Change <user> with your user name.

Set custom shortcut for it as you wish.

go to keyboards, add new shortcut anything you wish.


Why can't Ubuntu 11.04 installer see all my partitions?

When installing Ubuntu onto a RAID device it may not work as expected or at all when using the standard installation.

You will have to download the alternate ubuntu installation iso and burn that iso to an actual cd/dvd disc.

I tried installing it through a USB onto a RAID0(stripe) but it didn't work for some reason; it got to the end and just died... So it seems to only work if booting from an actual cd/dvd disc.

Scroll to the bottom and you will find links to both 32(i386) and 64(amd64) bit installations. You can download the iso directly or grab one of the torrent files for p2p downloading.


Is NetworkManager sending HTTP requests to googleusercontent.com?

You also need to take into account the 1st bit of that:

bc.googleusercontent.com

bc originates from Google Compute Engine (Google cloud) That does not have to be from Google itself. It is a service anyone can use.

177.143.198.104 is owned by NET Serviços de Comunicação S.A. Is that your ISP perhaps?

Some other services that are from Google:

lh3.googleusercontent.com Used for loading images for Google+.
lh5.googleusercontent.com Used for loading images for Google+.
lh6.googleusercontent.com Used for loading images for Google+.
s3.googleusercontent.com Used for loading favicons for AdWords ads.
static.googleusercontent.com
themes.googleusercontent.com Used for loading font files for Google Fonts. (Generally called within CSS from fonts.googleapis.com)
translate.googleusercontent.com Google Translation Service


Your question is confusing.. But regardless, if you're trying to install a 64 bit operating system onto a 32 bit machine, it's not going to work.
Either install an OS with a 32 bit kernel, or upgrade to a 64 bit CPU.
If virtual box is only showing 32 bit operating systems make sure that your Host OS is 64 bits,
Intel Virtualization Technology and VT-d are both enabled in the BIOS, and the Hyper-V platform is disabled in your Windows Feature list.


Can`t log in to dekstop 119: export: 192.168.1.102: bad variable name

The error means that your /usr/sbin/lightdm-session has a problem

in line  119: which holds:

export: 192.168.1.102

You should fix that line.


Create or open your ~/.inputrc file and add :

C-SPACE: complete

Start bash again. Control-space should now be your additional auto-complete key


Can't execute scripts on a mounted driver

You are trying to execute files on a mounted drive. Copy/Extract the content on your personal directory (or somewhere it isn't mounted), and it should work just fine.

This happens because your permissions are set at driver level, not at file/directory level.

You shouldn't even be able to extract a tar file on a mounted driver:

bt:/media/braiam/F66E431C6E42D551/src$ tar xzf llvm-3.3.src.tar.gz
tar: llvm-3.3.src/.arcconfig: Cannot utime: Operation not permitted
tar: llvm-3.3.src/.gitignore: Cannot utime: Operation not permitted
tar: llvm-3.3.src/autoconf: Cannot utime: Operation not permitted
tar: llvm-3.3.src/autoconf: Cannot change mode to rwxr-xr-x: Operation not permitted


2011 MacBook Air with Nvidia - black screen on boot (and MokList RT error)

I got this sorted.
First, install Ubuntu with the open source graphics driver (nouveau). Get rid of the shim application and make sure grub is installed. This will fix that MokListRT error.
apt-get purge shim

grub-install /dev/sda1

Reboot once just to make sure the above didn't break anything. (If you also have rEFInd installed, you should now see two options to boot into Ubuntu, one mentioning grub, the other not mentioning it. From now on, always choose the grub one. If you don't see that one, then sth is wrong, and you need to fix that first before going on with the below.)
Now follow the steps in the first answer to below question. In short, you need to activate the VGA card as PCI-E bus master, something the Apple bios doesn't do, but that can be accomplished with a simple grub script.
Proprietary NVidia drivers with EFI on Mac, to prevent overheating
On a side note, even though I followed those steps precisely, when entering...
 ~$ sudo setpci -s "00:17.0" 3e.b

... I always get "0a" returned, not "08". I risked it anyway, rebooted, et voila, no more black screen. For reasons unknown I had to reboot twice more for the boot process to go through without any hiccups. There were still display issues on the first two attempts. I didn't change anything though, just rebooted twice more, and that somehow took care of the remaining kinks.


Windows 7 does not boot from GRUB boot loader

Whatever has caused this situation ... reinstalling the boot loaders should solve the problem.

First reinstall the Windows boot loader - boot from the Windows 7 installation media and on Install now screen select Repair your computer, choose Command prompt and execute the following commands :

bootrec.exe /fixmbr
bootrec.exe /fixboot
bootrec.exe /rebuildbcd

Then reinstall the GRUB boot loader - boot from the Ubuntu installation media and select Try Ubuntu without installing. Once on the Ubuntu Live desktop execute the following commands :

sudo mount /dev/sda9 /mnt
sudo grub-install --boot-directory=/mnt/boot /dev/sda
sudo update-grub

Note : sda = disk | sda9 = system partition (information taken from the provided screenshot)

Now delete the hiberfil.sys file from all Windows partitions and then reboot the computer.

Update addressing your comment that GRUB did not get updated successfully

On the Ubuntu Live desktop (installation media) chroot into the installed system :

sudo mount /dev/sda9 /mnt
sudo chroot /mnt
update-grub
exit

In case that you are still receiving an error, alternatively execute these commands :

sudo mount /dev/sda9 /mnt
for i in /dev /dev/pts /proc /sys /run; do sudo mount -B $i /mnt$i; done
sudo chroot /mnt
update-grub
exit

Update addressing your comment that you still can't boot Windows successfully

Repeat Step 1 (reinstall the Windows boot loader) and in case it boots into the Windows system correctly, search for the problem and solve it from within there. If the Windows OS doesn't start successfully, boot from the Windows installation media ... try to solve the issues using the repair options. When this attempt fails too, you'll unfortunately have to reinstall the Windows system.


Ubuntu 12.04 Not Detecting Ethernet Wired Connection

First thing to acknowledge here is there are reports about your specific network card being working out of the box since the Ubuntu 13.04 release. You could upgrade to 13.10 now or if you prefer, install a more recent kernel using the LTS Enablement Stack. This installs a more recent kernel (and thus more hardware support) as well as a more recent Xorg graphical stack. The latter is not really of interest, but it does provide a fairly easy way to get more hardware support without upgrading to a more recent Ubuntu release.

See also:

What is hardware enablement (HWE)?
LTS Enablement Stacks - Should I use quantal, raring or saucy?


For the distro to have such a low level issue would be impossible as you would see this forum go wild.

So now you need to fault find.

Best option is to use the IP address instead of the hostname. That way you will rule out any DNS issues or DHCP issues that don't pass the DNS servers correctly.

If you consistently connect when you use an IP address it rules out router, hardware issues. Although the issue might be your computer.

Check your logs for any errors. The dmesg command is a good start for seeing errors.


403 Forbidden Error after changing LAMP Apache root/ www directory

It appears that you're running Apache 2.4; they changed the auth module between 2.2. and 2.4.

<Directory /home/alicia/Dropbox/Programing/PHP/intern-magnet/>
    Options Indexes FollowSymLinks MultiViews
    AllowOverride None
    # Remove Apache 2.2 access controls
    #Order allow,deny
    #allow from all

    # Add Apache 2.4 access controls
    Require all granted
</Directory>

Other thoughts to consider: generally it is considered "best practice" to house your personal web development projects in ~/public_html, enable the usedir module a2enmod userdir, allow PHP to execute code there, and finally call the URL by browsing to http://localhost/~alicia/intern-magnet

Specific steps if you're interested in this tangent:

sudo a2enmod userdir
sudo $EDITOR /etc/apache2/mods-enabled/php5.conf
# Comment out lines "<IfModule mod_userdir.c> ... </IfModule>"
# This re-allows executing PHP code by users of your workstation, (presumably only you).
mkdir ~/public_html
ln -s ~/Dropbox/Programing/PHP/intern-magnet ~/public_html/intern-magnet
sudo service apache2 restart
# Develop and Profit!

Additional projects you start simply need their code linked to inside ~/public_html just like the above ln -s command, then browse to /~alicia/PROJECT_NAME_HERE!


I will not enter in the c (which seems really C++) part --- you just have to send the correct command to gnuplot.

Changing the output format is called changing terminal in gnuplot.

For example, to generate a PNG file, in gnuplot:

[...instruction to make youtr graph...]
set term pngcairo
set output "filename.png"
replot
set output

...will generate the graphic in a file called filename.png. Remember to switch back to your terminal (or use another instance of gnuplot) with something on the style of

set term wxt persist

before plotting again.

You have a lot of information in help set term pngcairo:

gnuplot> help set term pngcairo
 The `pngcairo` terminal device generates output in png. The actual
 drawing is done via cairo, a 2D graphics library, and pango, a library for
 laying out and rendering text.

 Syntax:
         set term pngcairo
                      {{no}enhanced} {mono|color} {solid|dashed}
                      {{no}transparent} {{no}crop} {background <rgbcolor>
                      {font <font>} {fontscale <scale>}
                      {linewidth <lw>} {rounded|butt} {dashlength <dl>}
                      {size <XX>{unit},<YY>{unit}}

 This terminal supports an enhanced text mode, which allows font and other
 formatting commands (subscripts, superscripts, etc.) to be embedded in labels
 and other text strings. The enhanced text mode syntax is shared with other
 gnuplot terminal types. See `enhanced` for more details.

There are terminals for generating bitmap in a lot of formats: just look at

help set term jpeg
help set term gif

In the gif mode you can even generate an animated gif. See:

gnuplot> set term gif animate
Terminal type set to 'gif'
Options are 'nocrop font "/usr/share/fonts/truetype/liberation/LiberationSans-Regular.ttf,12" fontscale 1.0 animate delay 10 loop 0 nooptimize size 640,480 '
gnuplot> set output "test.gif"
gnuplot> plot sin(x)
gnuplot> plot sin(x-1)
gnuplot> plot sin(x-2)
gnuplot> plot sin(x-3)
gnuplot> plot sin(x-4)
gnuplot> plot sin(x-5)
gnuplot> set output
End of animation sequence

...and you have in test.gif:


The feature is already installed on your Ubuntu. The "server" can be configured in System/Preferences/Remote Desktop, whereas the "client" is in Applications/Internet/Terminal Server Client.

A blog entry explain this better than I can: http://www.makeuseof.com/tag/ubuntu-remote-desktop-builtin-vnc-compatible-dead-easy/


As far as sshd's are concerned, the flash essentially is transparent to the 'end user'. In most cases it would be transparent to the underlying os too, but this may vary- some modes let the OS determine some of the use of the flash.

Essentially the flash acts as a secondary layer of cache, rather than a seperate device and both OSes should be able to use it.


Accessing localhost from other computer without the ip

Either (1) you can add static name in your router DNS table
This means you can add a line that will tell every PC on the lan that "home" is that one ip.

or (2) you set up a DNS server in one of your PC of your lan.
The PC running the DNS server must always be on, registered as DNS server in the dhcp configuration of the router,
in the DNS server configuration you add a line that make correspond "home" for the ip of your machine.


Can I change the contents of the Keyboard Shortcut List that shows up when I hold down super?

The model of the keyboard-shortcuts overlay is hard coded in unity, so no customization is available for the time being.


What package should I install for driver of the Atheros AR8161 Ethernet Controller without net?

For 12.10, you need linux-backports-modules-cw-3.6-quantal-generic. You will also need its dependency linux-backports-modules-cw-3.6-3.5.0-17.


Does an upgrade from 12.10 to 13.04 will effect the version of PHP/other packages installed?

No. PHP is not a dependency of Ubuntu 13.04.

FYI, when you do sudo apt-get dist-upgrade via the command line, it will list all packages that are slated for upgrade. You can double check for PHP's existence.


I have tried two times and it worked for me (But i do not know if this is the correct way to do it). First you need to create the first Live USB following the USB Creator steps.

Then when a new update comes just overwrite the files that are newer than the ones in the usb. Well in my case everything in the dist, pool and casper folder. It worked the two times i have tried but am talking about when 10.10 was in beta till it was released.


What is the story behind the default times set in /etc/crontab?

Ubuntu started in 2004, and is based on Debian. By then, the current crontab was present, so we get to trace through Debian history to find its origins.

Here is the crontab from Debian 0.93R6 (November 1995). The hour is present, but the minute is different for the cron.daily entry:

# m h dom mon dow user  command
42 6    * * *   root    run-parts /etc/cron.daily
47 6    * * 7   root    run-parts /etc/cron.weekly
52 6    1 * *   root    run-parts /etc/cron.monthly

By Debian 2.1 (March 9, 2009), it changed. The cron.hourly entry isn't present yet, but the rest of the times are the same as they are currently:

25 6    * * *   root    run-parts --report /etc/cron.daily
47 6    * * 7   root    run-parts --report /etc/cron.weekly
52 6    1 * *   root    run-parts --report /etc/cron.monthly

Thankfully, Debian has changelogs, so we can see why this change was made. I've linked the bug number, which thankfully Debian keeps around:

Do cron.daily a little earlier, try to avoid overlap with cron.weekly (closes: Bug#23023) (from 3.0pl1-46)

Now, finding out where 6 AM and 47 and 52 came from, you'll have to follow back into pre-Debian history. I've checked the original Vixie Cron sources, and it doesn't appear to come from there.

As far as I can tell, SLS 1.03 didn't ship cron, but SLS 1.05 did. However, it doesn't appear to have come with an /etc/crontab, and the example in the manpage is different. Nor does it have a run-parts.

Looking at run-parts from Debian 0.93R6 (package miscutils), it seems its a Debian-specific tool (a short Perl script back then). So those cron lines probably originate from very early Debian development.


How do I make the official JDK version the default java?

You'll need to get into the command line for this one (although I expect you're happy with that if you've installed the JDK!).

Open a terminal using Ctrl+Alt+t. Then type:

sudo update-alternatives --config javac
sudo update-alternatives --config java
sudo update-alternatives --config javaws

I see you're new to Ubuntu so I'll explain some of these commands. Sudo tells the computer to execute the following command with the super-user's privileges. You will therefore be asked for your password. Update-alternatives keeps track of what your preferred options are when you have several software packages providing similar functionality, such as different JDKs. The rest is just telling update-alternatives what you'd like to configure. Never enter commands in a terminal if you don't know roughly what they'll do. If in doubt, enter man <command name> in the terminal to read the command's manual.


Just selecting the nouveau option and rebooting should reset it. Of course, there's always the chance that might not work, but this should.

Switch to the nouveau driver and reboot (which you've probably already done if you tried the first solution). Now, run sudo apt-get purge nvidia-367 to purge the NVIDIA driver and reboot again.

If you don't have the NVIDIA driver, there's no way it can be in use, so purging should work.


Give 2 users folder permissions only works periodically

if you want your new created files to be created as the group you specified to the folder you could do the following

sudo chmod g+s /var/log/nginx/

this will set the SGID-Bit ( Set Group ID ) to the folder with the result that every new created file inside that folder will inherit the group of the folder.


In terminal use the following command :

unity --reset


How to remote access Aster express through ubuntu?

so you created a Windows VM on your Ubuntu machine, installed VMware player for Windows, and then installed Aster Express in the player, right?

You could try using VMware Player for Linux directly on your Ubuntu machine.  It's not officially supported, but it seems to work.


"Install UBUNTU along side windows 7" option is not showing

This happened with me too. Probably you don't a spare partition to install Ubuntu. Use Gparted or some similar software to edit partition and make one empty for Ubuntu to be installed. Remember to backup your data before you edit partitions.

After you do this you will see the option to install Ubuntu alongside Windows.

I hope this helps.


Add the above command  to /etc/rc.local

 route add default gw 192.168.1.1

You need to remove sudo part since /etc/rc.local running as root.
Anything added to this file will be executed after all other startup programs.


Can I block root ssh access from external notwork, but not from the local LAN

You can do this using a Match block in /etc/ssh/sshd_config. First, make sure you have this line:

PermitRootLogin no

That will block root access. You can then allow it for your local network with this:

## Permit local root login
Match Address 192.168.1.*,127.0.0.1
      PermitRootLogin yes

This assumes that your LAN gives IPs like 192.168.1.N, if not, change accordingly. Also, I suggest you add this at the end of /etc/ssh/sshd_config to make sure it does not conflict with other directives. Once you have done so, restart the ssh service (sudo service ssh restart) and you will be able to ssh as root from local machines only.


First step would be to delete the middle virtualhost:

server {
    listen 443;
    listen [::]:443;
    server_name subdomain.domain.pw;
    return 301 https://subdomain.domain.pw$request_uri;
}

The next step would be to alter your SSL VirtualHost so it uses CloudFlare's cipher suite, add this into the body of the last VirtualHost (replacing the existing ssl_protocols, ssl_ciphers and ssl_prefer_server_ciphers config variables):

ssl_protocols               TLSv1 TLSv1.1 TLSv1.2;
ssl_ciphers                 EECDH+CHACHA20:EECDH+CHACHA20-draft:EECDH+AES128:RSA+AES128:EECDH+AES256:RSA+AES256:EECDH+3DES:RSA+3DES:!MD5;
ssl_prefer_server_ciphers   on;


Possibly the problem was with the jorunalling fs, and fsck and the mount cannot handle the problem well. So i mounted the fs with the following mount flags:
-t ext4 -o ro,noload.
This worked for me well.


You can with gparted it is part of ubuntu.
Be sure to resize that partition first (shrink it) and freespace that left will be turned in unallocated space. Make new partition from that unallocated space.
You can shrink it with graphic slider.


Is there a tracking site for which community packages might need attention?

I'm not sure if that is want you want, but the Advanced Search on bugs.launchpad.net lets you select "Show only bugs associated with a CVE" in the "Bug relationships" section.


Just fixed the issue, for some reason there was a line in my ~/.gnupg/gpg.conf "keyring /etc/pacman.d/gnupg/pubring.gpg"

Which I commented out and now it works.


Drop box is not syncing in Ubuntu 18.04.3 LTS

I had this exact problem on a new install of 18.04 & new install of Dropbox. As mentioned in a comment on the other answer, executing the following commands in terminal solved the problem. First,

dropbox stop

followed by

dropbox start

This command prompted an error message, which provides a new set of commands for the terminal:

Unable to monitor entire Dropbox folder hierarchy. Please run "echo fs.inotify.max_user_watches=100000 | sudo tee -a /etc/sysctl.conf; sudo sysctl -p" and restart Dropbox to fix the problem.

So I ran the command in terminal mentioned in the error message (repeated below)

echo fs.inotify.max_user_watches=100000 | sudo tee -a /etc/sysctl.conf; sudo sysctl -p

And then restarted dropbox and the problem was fixed.


There is no way to run Photoshop natively on Ubuntu.

You can either use wine to run it in a windows environment. (Haven't tried CS5 so I'm not sure if you have to do some tricks to make it work.)

The other way to do it is to run it in a virtual windows environment. I have Windows 7 set up as a virtual machine where I run visual studio and photoshop etc.
I did find this blog post where Photoshop is set up in a virtual environment but behaves (sort of) as a native application.


Small off-site photo-backup server, new to Linux, which Ubuntu version to use?

It sounds like you won't normally have a monitor attached to this server. This means you probably want the Server version which doesn't come with desktop packages like Gnome.

If you decide you want to switch later on, the Server and Desktop versions are basically the same OS with different packages so it is trivial.

See also this.


ssh-copy-id just automates the commands

scp .ssh/id_rsa.pub user@other-host:
ssh user@other-host 'cat id_rsa.pub >> .ssh/authorized_keys'
ssh user@other-host 'rm id_rsa.pub'

That is: it copies your local id_rsa.pub file to the other server and appends it to the remote user's authorized_keys file.

It is just a convenience script and it requires authentication. You have to supply user's password (at other-host) for it to work. ssh-copy-id doesn't do anything else than scp and ssh on your behalf so if they require password authentication, ssh-copy-id will do so as well.


Samsung series 9 np900x4c-a03us Dual boot windows 7

Dual Boot Win7 and 12.04 putting MBR with Grub2 into /dev/sda.

With this answer, each time that i boot, i get the grub2 boot menu listing options for 12.04 and Win7.

The SSD on this system is 256G and, from the OEM Win7 install, i wanted to get rid of the Hibernate and the Recovery Partitions , reclaiming and additional 30GB of space to allocate between Win7 and 12.04.

STEPS for INSTALL

on Win7, use 'DISKPART' app in a shell to reduce the size of the main, C partition from 208GB to 100GB. You can use the "shrink querymax" to evaluate how much you can reduce the C:\ partition. Mine said i could go down to 100G from 208GB so, in a couple of cycles in the shell, using shrink, i freed up about 105GB .

When i left windows to boot from the USB stick, i had:

1. about 100 GB unalloacted,
2. 100Mg in the SYSTEM partition - for Win7
3. 100GB in the C:\ partition    - for Win7
4. 8GB Hibernate -  unwanted, how to delete? answer is below
5. 21GB Recovery -  unwanted, windows restore/recovery will be manual - how to delete?

With Care, create the USB stick bootable on drive with > 4GB

Lots of misinformation on the WEB! I wasted 6 hours on this one.

1. Format a USB drive using step #4 - http://www.ehow.com/how_5937471_format-usb-flash-drive-dos.html
2. Download the 64b, AMD Desktop linux iso - http://releases.ubuntu.com/12.04/
3. Download/install Unetbootin - http://http://unetbootin.sourceforge.net/
4. Tell the Unet dialog that you want to use the downloaded ISO to copy to the formatted USB

Make required changes to Default samsung BIOS BEFORE trying to change the BOOT order

TURN OFF bios/advanced/fast BIOS mode

i wasted alot of time here too. I guess that they did something to maximize wake from sleep to the SSD but, it prevents you from booting a USB. Turn it OFF.

DISABLE - bios/boot/UEFI mode boot

-EDIT :  i use Win7 and UEFI is disable

Change Boot order in BIOS

this is standard reorder of boot options.

USB HHD should preceed the hard drive.

Insert the USB stick into one of the 2, USB slots on the right-hand side.

Boot and you should go into the well documented Ubuntu install dialogs.

In the UBUNTU system that comes up, start ‘gparted’ in order to deallocate additional space. In Dashhome, the upperleft icon in Unity, i think u can search for “Gparted”. It will come up showing 4 windows partions ( 2 that you need to keep are the 100Mg SYSTEM , and the big C:\ partition at around 100GB ).

1. Use GParted to delete “Recovery 21 GB”
2. use GParted to delete “Hibernate 8 GB”

You are now ready to do the install. At this point , i had about 145GB for the Ubuntu install. Just click the install icon on the main screen and you are away on the install dialog.

Allocated the following in a new, Extended partition created during the ubuntu install where i selected the 3rd option to instruct it on partition details:

/boot logical 500Mg
/ (root) logical 40GB
/home logical 80GB

NOTE: 20GB remained unallocated after the above were taken from the available disk.

Note: no swap! what with 8GB ram. i will worry about swap later.

EDIT - Mainline kernel. Note that in the months following the install, my only complaints were occaisional UI freezes and the kernel support for Intel integrated HD4000 chipset. Had alot of problems with WebGL/Chrome browser. Solved the problems by upgrading the kernel to relatively recent ubuntu mainline kernel and by using the 'chrome-beta' release of the browser.


Will I lose my files when I replace my Windows OS with Ubuntu?

Yes, you will lose your files if you replace Windows OS with Ubuntu.
For that, install Ubuntu on a separate partition other than the partition where Windows is installed.


Removing 'Applications' from Unity launcher while still accessing it using shortcut

I don't know if this qualifies as "shortcut keys," but if you want, you can hit Super (or whatever brings up that unity box, as per your settings), and navigate to it with the arrow keys. It's not one key combo, but it is a keyboard-based solution, and you can probably get used to doing it pretty fast.

Sadly, though, I'm pretty sure it's impossible to remove "Applications" in the first place.


My first suggestion is to edit your /etc/fstab file so that the EFI System Partition (ESP) mounts read-only, or even not at all. (You could set it so that it doesn't auto-mount, but can be mounted manually.) This will limit operations that involve updating the boot loader on the ESP, but those are few and far between -- mostly just GRUB updates. The idea behind this suggestion is that your uncontrolled shutdown may be leaving the ESP's FAT filesystem in a state to which your firmware objects. Mounting it read-only, or not at all, should prevent such problems from occurring. The big risk to this approach is that if you fail to mention a GRUB update, it won't be written properly to the ESP. In a worst-case scenario, the system might fail to boot; but a more likely scenario is that you'll continue to boot with an outdated GRUB.

Another suggestion is to prepare and learn better tools for recovery. You can put my rEFInd boot manager on a CD-R or USB flash drive and keep it ready. If this problem recurs, you could then use rEFInd to boot into Ubuntu, thus bypassing the need to boot a recovery disk. That might be enough to get it to boot correctly on the next reboot; and if not, you might be able to use efibootmgr to re-register GRUB with the firmware, if it's forgotten that. You'll need to learn to use some new tools, and figure out precisely what's happening that's causing your boot to fail, but the end result should be a quicker and easier recovery than running Boot Repair from an emergency disk.


How to create an audio ISO file from WAV files?

I couldn't explain it any better or shorter while being precise enough like Wikipedia:

  A CD can have multiple tracks, which can contain computer data, audio, or video. File systems such as ISO 9660 are stored inside one of these tracks. Since ISO images are expected to contain a binary copy of the file system and its contents, there is no concept of a "track" inside an ISO image, since a track is a container for the contents of an ISO image. This means that CDs with multiple tracks can't be stored inside a single ISO image; at most, an ISO image will contain the data inside one of those multiple tracks, and only if it is stored inside a standard file system.


As per this,

Do the Following:

Open /etc/modprobe.d/blacklist.conf in your favorite text editor.
Add the line blacklist i2c-hid
Save and reboot


Install airwave manager (https://github.com/phantom-code/airwave)
Open airwave, create a new link
Show airwave where is located the superior drummer dll (vst plugin location)
Show airwave where it can make the bridge, choose a folder where your DAW can locate the VST bridge (link location).
Choose a name for a bridge.
Click OK and close Airwave manager
Go to your DAW and go the settings part where you can set a path to VST's. Just set the same path you set on "link location" on airwave.
Your DAW should now find the VST and identify it as a LXVST (linux vst).

But you also may want to set your system with wine-rt so the plugin can work on realtime.


I can not change password length complicity by editing common-password

You can use cracklib pam module to set minimum length to password and much more.
Install using:

apt-get install libpam-cracklib

Add the line below to the common-password:

password        requisite                       pam_cracklib.so retry=3 minlen=8 difok=3

before the line:

password        [success=1 default=ignore]      pam_unix.so obscure use_authtok try_first_pass sha512

More info


ubuntu 13.10 no option to install to usb

Just download lili (Linux Live USB creator).It helps to make bootable usb of ubuntu.After crating bootable ubuntu usb boot the computer,select usb asthe boot device from bios.When it boots from usb you will have two options either install or try ubuntu.If you don't want to install ubuntu you can select try ubuntu option.Then you can use ubuntu from usb


display port not working for Dell XPS 14z

I have Dell XPS 14z.
I have managed to run external monitor connected to the mini DisplayPort over VGA adapter.
Unluckily I get at most 640x480 resolution.

15z and 14z are slightly different according to:dell

My solution:
I use Ubuntu 10.04 LTS.
I have installed bumblebee according to instructions on github
I have modified /etc/bumblebee/xorg.conf.nvidia as follows:

Section "DRI"
        Mode 0666
EndSection

Section "ServerLayout"
    Identifier "Layout0"
    Option "AutoAddDevices" "false"
    Screen    "Screen0"
EndSection

Section "Module"
        Load  "dbe"
        Load  "extmod"
        Load  "glx"
        Load  "record"
        Load  "freetype"
        Load  "type1"
EndSection

Section "Files"
    ModulePath "/usr/lib/nvidia-current/xorg,/usr/lib/xorg/modules"
EndSection

Section "Device"
    Identifier "Device1"
    Driver "nvidia"
    VendorName "NVIDIA Corporation"
    BusID "01:00:0"
    Option "NoLogo" "true"
#    Option "UseEDID" "false"
    Option "UseEDID" "true"
#    Option         "IgnoreEDID"
#    Option "ConnectedMonitor" "DFP"
    Option "ConnectedMonitor" "DFP-1"
EndSection

Section "Screen"
    Identifier    "Screen0"
    Device    "Device1"
    DefaultDepth    24
    Monitor    "DFP-1"
    SubSection "Display"
    Depth   24
        Modes      "1920x1200" "1920x1080" "1680x1050" "1600x1200" "1440x900" "1280x1024" "1366x768" "1360x768" "1280x800" "1024x768" "800x600" "640x480"
    EndSubSection
EndSection

Section "Extensions"
        Option "Composite" "Enable"
EndSection

Section "Monitor"
    Identifier    "DFP-1"
    VendorName    "Unknown"
    ModelName     "Unknown"
    HorizSync   28.0 - 73.0
    VertRefresh 43.0 - 72.0
    Option        "DPMS"
    Modeline       "1920x1200"  193.25  1920 2056 2256 2592  1200 1203 1209 1245 -hsync +vsync
    Modeline       "1920x1080"  173.00  1920 2048 2248 2576  1080 1083 1088 1120 -hsync +vsync
    Modeline       "1680x1050"  146.25  1680 1784 1960 2240  1050 1053 1059 1089 -hsync +vsync
    Modeline       "1600x1200"  161.00  1600 1712 1880 2160  1200 1203 1207 1245 -hsync +vsync
    Modeline       "1440x900"  106.50  1440 1528 1672 1904  900 903 909 934 -hsync +vsync
    Modeline       "1366x768"   85.25  1366 1440 1576 1784  768 771 781 798 -hsync +vsync
    Modeline       "1280x800"   83.50  1280 1352 1480 1680  800 803 809 831 -hsync +vsync
    Modeline       "1280x1024"  109.00  1280 1368 1496 1712  1024 1027 1034 1063 -hsync +vsync

# 1024x768 @ 60Hz (VESA) hsync: 48.4kHz
#ModeLine "1024x768"   65.0 1024 1048 1184 1344    768  771  777  806 -hsync -vsync

# 1024x768 @ 70Hz (VESA) hsync: 56.5kHz
#ModeLine "1024x768"   75.0 1024 1048 1184 1328    768  771  777  806 -hsync -vsync

# 1024x768 @ 75Hz (VESA) hsync: 60.0kHz
#ModeLine "1024x768"   78.8 1024 1040 1136 1312    768  769  772  800 +hsync +vsync

# 1024x768 @ 85Hz (VESA) hsync: 68.7kHz
#ModeLine "1024x768"   94.5 1024 1072 1168 1376    768  769  772  808 +hsync +vsync
EndSection

You may need to restart "/etc/init.d/bumblebee restart".
Unluckily all the mode settings do not work.
Then I run:

DISPLAY=:8 optirun glxspheres

and it is there. Of course "glxspheres" here is an sample application - you may run "gedit" or anything else there.
The problem is - it is separate display, so you may need window manager there (metacity?).
If you need it as single desktop maybe "synergy" will work.
I need "overlaping" displays, so I run VNC server for display :8 (and use void mouse/keyboard there) and let vinagre connect to it. This causes a window appear on the main screen displaying content of external monitor.
My solution is to create a script with all the clients to be run on external monitor and then run the script with "DISPLAY=:8 optirun" prefix.
Powersaving seems to work as well:

/etc/bumblebee/cardoff

\_SB.PCI0.PEG0.PEGP._OFF

/etc/bumblebee/cardon

\_SB.PCI0.PEG0.PEGP._ON

with appropriate settings in /etc/bumblebee/bumblebee.conf.

I have noticed some problems running the card after "suspend".
My solution is to "/etc/init.d/bumblebee stop" before suspend and
"/etc/init.d/bumblebee start" after it.

If you would like to use HDMI port I would try to change DFP-1 to DFP-0 at first.

I hope 12.04 LTS will provide easier solution.

Michał


Gedit from terminal - inconsistent behaviour

It usually depends on whether gedit is already running.

If it is, the open jibbery gets sent to the open process and depending on how things are running (Gedit 3.x seems to have some weird behaviours) it'll fork into a new window or just a new tab.
If it's not, a new process is started as a child of the prompt, so it blocks the prompt.

If it really annoys you, you can create an alias, or a ~/bin/ script to override the standard behaviour and force it to fork out with & every time.


where does the shell fall into the process hierarchy?

Indeed the parent of the bash process is the terminal. You can see the process hierarchy using the ps -aef command:

$ ps -aef
UID        PID  PPID  C STIME TTY          TIME CMD
[...]
sylvain   3510  1862  2 22:02 ?        00:00:01 gnome-terminal
[...]
sylvain   3520  3510  0 22:02 pts/1    00:00:00 bash
sylvain   3587  3520  0 22:03 pts/1    00:00:00 sh

PID: Process ID
PPID: Parent Process ID

In this example I started a sh process (3587) from the bash shell (3520)


Connect to other network to use git repo

drives do not exist in the file system by their label... you can access it in CLI like so

mount /dev/sdb /any/directory/you/want

cd /any/directory/you/want

that is assuming that the drive is in fact refered to as sdb and a directory called /any/directory/you/want already exists

some basic info on mounting

http://www.linuxnix.com/2013/09/what-is-a-mount-point-in-linuxunix.html

some google-ing would do you well

https://www.google.com/search?client=ubuntu&channel=fs&q=linux+how+mount+points+work&ie=utf-8&oe=utf-8

as for how a specific software handles mounting, you should read their documentation, which would most likely be found on their website


Confusing about CUPS and Samba for my print server?

CUPS, aka Common Unix Printing System, is a program made by Apple in order to unify printing system for all Unix (and -like) OSes, including MacOS, FreeBSD, Linux, ... You can configure CUPS using a web page which is fairly easy, as it doesn't necessarly require the use of the command line.

Samba is, as far as I'm concerned a network file sharing application/protocol. I haven't heard of the fact that it's able to print and scan files. After a little research on the net and I found that Samba uses CUPS as a backend to setup printers.

My advice for you is to go with CUPS as it's, in most cases easier.
Note that you may need to download a driver for your printer if it's not supported natively. Refer to your manifacturer website in that case.


When I used the example you've given, substituting one of my virtual box vms like so:

chris@4314-APPWP:~$ VBoxManage export "Ubuntu LTP" --output bar.ova

The bar.ova file was generated in my home directory.

chris@4314-APPWP:~$ ls -lah bar.ova
-rw------- 1 chris chris 1.3G Jun  7 14:26 bar.ova
chris@4314-APPWP:~$ pwd
/home/chris
chris@4314-APPWP:~$

Hope this helps!


xrandr failed to get size of gamma for output defualt

Actually it turns out to be just me booting of the recovery mode everytime (see why in my previous question) so i updated ubuntu to 19.10 and everything seems to be working


GNOME adding desktop for GNOME menu not parsed

I founnd my answer after a 'wee-bit' more Googling, surprisingly something that is not mentioned on the GDM wiki but something I came across per-chance from a askubuntu post

Solution:

Add bash -i infront of the Exec file, as shown

Exec=bash -i "/opt/google/android-studio/android-studio/bin/studio.sh" %f

Final Solution

[Desktop Entry]

# The type as listed above
Type=Application

# The version of the desktop entry specification to which this file complies
Version=1.0

# The name of the application
Name=Android-Studio

# A comment which can/will be used as a tooltip
Comment=Android studio IDE

# The executable of the application.
Exec=bash -i "/opt/google/android-studio/android-studio/bin/studio.sh" %f

# The name of the icon that will be used to display this entry
Icon=/opt/google/android-studio/android-studio/bin/studio.png

# Describes whether this application needs to be run in a terminal or not
Terminal=false

# Describes the categories in which this entry should be shown
Categories=Education;Languages;Java;

StartupNotify=true

Note aswel, I added a line StartupNotify. I found a reasonable explaination for its purpose, aswel as a few other components of a .desktop file

Hope this helps!


Had the same problem in 12.10 and it was driving me mad. The problem seemed to be caused by using the Emacs key binding theme as described in the links given by others, except that according to GConf I was still using the default.
I realized that this is now set in dconf Editor irrespective of the settings in GConf.
To change this open dconf Editor and navigate to:
org > gnome > desktop > interface >gtk-key-theme.
If the setting there is Emacs change it to Default.
Or on a terminal:
gsettings reset org.gnome.desktop.interface gtk-key-theme

Problem solved. For me at least.


sudo cp /usr/share/sounds/ubuntu/stereo/* /usr/share/sounds/

Do this in a terminal and your login sound should play.
The above command copies the content of directory /usr/share/sounds/ubuntu/stereo to directory /usr/share/sounds


Wireless option gone from Network Center

Clean out your old drivers if any that are lurking around by open a terminal
Hit your super key and type Terminal

then

sudo apt-get remove b43-fwcutter firmware-b43-installer
sudo apt-get remove bcmwl-kernel-source

Then type

sudo apt-get update

sudo apt-get install  bcmwl-kernel-source

This should then rebuild your Broadcom drivers for you in your terminal

To save you having to reboot try 'switching on ' your wireless by typing

modprobe wl

alternatively if you want to the B43fwcutter again instead type

sudo apt-get install b43-fwcutter firmware-b43-installer

If you get any errors let us know directly here in the comments. This should be sortable and should be quite easy to do so too. :) but I know it used to frustrate the heck out of me


OpenConnect VPN via NetworkManager: invalid default route, still using local gateway?

Yes, as usual, I found the (more or less) solution 5 minutes after posting the question :-/
It seems like this bug is related: https://gitlab.gnome.org/GNOME/NetworkManager-openconnect/-/issues/33#note_889793
The linked comment suggests using a script in /etc/network/if-up.d/ to fix the routes, I'm using this for now.
#!/bin/sh
# Hacky workaround bug in NM not setting the default routes.
if [ "$IFACE" = "vpn0" ]; then
  #ip route replace default via 0.0.0.0 dev vpn0
  ip route del default via 192.168.178.1 dev enxXXXXXXXXXXXX
fi

I'd still like to see this fixed without hacky scripts, but apparently, it's a known bug.


Convert single page from PDF to JPEG and getting error: `no matches found: Binder3.pdf[12]`

[12] is a shell glob expression - in the default bash shell, if it doesn't match anything in the current directory, then the string Binder3.pdf[12] will be passed unmolested to the convert program, however in zsh the default is to error out on nomatch (equivalent to the bash failglob shell option).

You can get bash-like behavior in zsh by setting setopt +o nomatch however this may result in unexpected behavior if there is a glob match - it's better to force the shell (whichever one) to treat the characters literally e.g.

convert Binder3.pdf\[12\] image.jpg

or

convert "Binder3.pdf[12]" image.jpg


Okay, I found out a way to rectify this problem. All you have to do is to remove the installed kernel in  the iso file, and install a new one.

1) Remove initrd.img and vmlinuz

rm initrd.img vmlinuz

2) Remove the kernel files

apt-get purge linux-image-*

3) Install kernel generic version

apt-get install linux-image-generic

This one solves my problem.


What command is the most effective for listing processes?

The 'ps' command only displays processes.  htop by default shows each thread as a separate process. Which implies 'htop' will always show more items than 'ps'.

We can show per-thread statistics with the 'ps' command as well.

for ex:

ps -Lf | grep xyz.sh

Which one to use ?

If you are looking for threads status of a single process - htop
If you are calculating CPU, memory usage - ps

One can get the info from both the commands. But default view makes the difference here. For ex: To check the memory used by a process, One should look at the process level, since threads share memory. So, ps is preferable. But, we can configure htop as well.

To turn off the display of threads for htop, press H, or use the "Setup / Display options" menu, "Hide userland threads". This puts the following line in your ~/.htoprc or ~/.config/htop/htoprc (Recent versions do not use ~/.htoprc, but rather ~/.config/htop/htoprc):

hide_userland_threads=1


The problem exists in the last command lxc-start, the command should be:

lxc-start -n cont --logfile bla.txt -- /bin/bash

Basically there is not need to run /bin/bash since when I attach the container I will have shell access


Graphics drivers for Intel NUC Hades Canyon NUC8i7HVK (AMD Radeon RX Vega GH)

The answer to this questsion is as follows:

a) You need ucode files not existing in Ubuntu 18.04, namely those: https://people.freedesktop.org/~agd5f/radeon_ucode/vegam/ - they need to go to /lib/firmware/amdgpu

b) You need a kernel that includes vega m patches. Those are currently pending to be including into drm-next. Hopefully they make it into kernel 4.18. If you build from source, here you go: https://cgit.freedesktop.org/~agd5f/linux/log/?h=drm-next-4.18-wip - you can use kernel-package to build it (make-kpkg ...) When you install kernel and updated firmware, make sure to run sudo update-initramfs -u

c) I suggest using mesa 18.1 or later. Paulo has that version in his ppa: https://launchpad.net/~paulo-miguel-dias/+archive/ubuntu/pkppa

On the hades canyon NUC at hand we disabled the Intel-GPU in Bios. After above steps everything was working - including hevc-10 bit decoding via vaapi.


It looks like you still have some PHP packages installed with version 5.3.10-1ubuntu3.6, while the new package is trying to install 5.3.10-1ubuntu3.26. These versions mismatch. Try uninstalling the old PHP packages first:

apt-get remove php5-cli php5-curl php5-gd php5-sqlite php5-tidy php5-xmlrpc php5-common phpldapadmin

There might be other PHP packages left, so you might also want to use the wildcard:

apt-get remove php5-* phpldapadmin

After the packages have been removed, reinstall everything with the new version:

apt-get update
apt-get install php5-cli php5-curl php5-gd php5-sqlite php5-tidy php5-xmlrpc php5-common apache2


According to this link and others there seems to be issues with Software Center in 16.04. There are two suggested fixes:

1. Upgrade System and Reinstall Gnome Software

from the command line try the following:

sudo apt update && sudo apt upgrade
sudo apt autoremove gnome-software && sudo apt install gnome-software

If this doesn't fix Software Center, perhaps you could use Synaptic instead.

2. Use Synaptic Instead

Synapic package manager pretty much always works when other GUI managers fail.

sudo apt install synaptic

Edit: the problem has been reported in 18.04 as well and the solution is similar:

sudo apt install --reinstall gnome-software


How to disable ctrl + scroll zoom in Lubuntu or openbox

In your ~/.config/openbox/lubuntu-rc.xml or rc.xml at:

 <mouse>
    ....
    <context name="Frame">
     .......

set this:

<!-- prevent that the browsers do zoom in/out when navigating with ctrl + scroll up/down -->
<mousebind button="C-Up" action="Click" >
        <action name="Focus"/>
</mousebind>
<mousebind button="C-Down" action="Click" >
        <action name="Focus"/>
</mousebind>

Type openbox --reconfigure in terminal to check the changes, if the changes has broken it will validate.

It's all.


No, the v1 API does not provide the ability to copy existing file. Only renaming a file is supported.


Dual boot Windows 10 and Ubuntu - Can't load Ubuntu

try boot repair

either from an Ubuntu live-session (boot your computer on a Ubuntu live-CD or live-USB then choose "Try Ubuntu") or from your installed Ubuntu session (if you can access it)
connect to the Internet
open a new Terminal, then type the following commands (press Enter after each line):

sudo add-apt-repository ppa:yannubuntu/boot-repair

sudo apt-get update

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

Using Boot-Repair
Recommended repair

launch Boot-Repair from either :

the Dash (the Ubuntu logo at the top-left of the screen)
or by typing 'boot-repair' in a terminal

Then click the "Recommended repair" button. When repair is finished, note the URL (paste.ubuntu.com/XXXXX) that appeared on a paper, then reboot and check if you recovered access to your OSs.
If the repair did not succeed, indicate the URL to people who help you by email or forum.

Warning: the default settings are the ones used by the "Recommended Repair". Changing them may worsen your problem. Don't modify them before creating a BootInfo URL, and asking for advice on Ubuntu Forums Absolute Beginners Section or in Installation and Upgrades.

more info here boot repair


Wifi (Killer 1535) issues after linux-header update to 4.4.0-53

Ok, I think I could get my wifi work better:

1.) I looked at the files in folder /lib/firmware/ath10k/QCA6174/hw3.0 and there were two files, I never saw before. I looked at this folder several times to resolve my BT-problems.

2.) The files /lib/firmware/ath10k/QCA6174/hw3.0/board-2.bin.wifi-qca6174 and /lib/firmware/ath10k/QCA6174/hw3.0/board.bin.wifi-qca6174 are new and I added .old to their filename.

3.) It seems those connection-problems are much smaller now. Sometimes I have to wait some seconds, but not 3 minutes.


File got deleted when moving to parent directory

I searched for this entry in the bash history and couldn't find it. Thinking there was a possibility that I unconsciously typed rm instead of mv, I searched for this entry with rm instead of mv, and it was not found. So I've duplicated this operation to determine whether this is a bug or an isolated quirk.

obalaban@BM:~/mnt/qq/iso$ touch boot-repair-disk-64bit.iso
obalaban@BM:~/mnt/qq/iso$ mv -v boot-repair-disk-64bit.iso ../
‘boot-repair-disk-64bit.iso’ -> ‘../boot-repair-disk-64bit.iso’
obalaban@BM:~/mnt/qq/iso$ ls ../
boot-repair-disk-64bit.iso  iso

Conclusion

The file was successfully moved to it's parent directory using ../ as the destination. Apparently, this file deletion is a quirk that defies explanation.


Update path in location-independent installation

Yes, open .bashrc with gedit. View hidden files with nautilus in your home folder by pressing Ctrl+h.

Then add the following at the end of the file:

PATH=$PATH:/path/to/another/bin

Now you will see, if you put an executeable in /path/to/another/bin, it is runnanble from the terminal.

For example, execute the following in your terminal (i assume ~/bin is /path/to/bin):

$ echo "echo 'hi'" > ~/bin/testing_things
$ chmod +x ~/bin/testing_things

and now you can just execute

$ testing_things
  > hi

instead of

$ ~/bin/testing_tings
  > hi

So probably for the program you just have add that line to $PATH, so it can directly execute the executables.

I haven't heard of LD_LIBRARY_PATH yet, but hopefully adding

LD_LIBRARY_PATH=$LD_LIBRARY_PATH:/path/to/lib

in your .bashrc will work.


Keyboard backlight disabled in Virtual Box

By default Virtual Box will capture (almost) all keys from our keyboard. This may lead to unwanted effects for keys that control special functions, depending on hardware.

For these cases auto capturing can be disabled in Virtual Box general preferences:


What are the default Startup Applications Preferences in Ubuntu 16.04?

The entries in ~/.config/autostart are the ones that you have added in addition to the default ones. By comparing the entries there with what you see in the Startup Applications Preferences GUI, you can tell that the default startup applications are:

GNOME Software (No description)
Indicator Application (No description)
SSH Key Agent (GNOME Keyring: SSH Agent)

If you want to restore the default startup applications, from https://ubuntuforums.org/showthread.php?t=1387844&p=8713404#post8713404, you can simply do:

rm -r ~/.config/autostart

If you don't want to delete the directory for good, you can consider renaming it to something you prefer (say, autostart.bak):

mv ~/.config/autostart ~/.config/autostart.bak


Problem solved.
There are two steps.

1) Install the latest ATI Catalyst 11.4 driver. (AMD said that they have solved problems with switchable graphics and drivers problem, and this is BIG PRESENT for Linux users.)

2) Disable the radeon kernel module, and let the video driver handle all work with the video card.

echo "blacklist radeon" > /etc/modprobe.d/blacklist-radeon.conf
update-initramfs -u

These two steps helped me fix my boot problems. It also sped up boot time by 2-3 times. Also it enables me to work with switchable graphics on notebooks(AT LAST!). And many other benefits! So for now, I am happy.


Ubuntu 20.04 no longer compiles Tk8.6.10 easily?

Run
sudo apt install libx11-dev

and this should be resolved.
The package can be found by using search for contents on packages.ubuntu.com.
The installed package for known file can be found by
dpkg -S Xlib.h


If you remove the branding, it IS okay.  It's not very documented how to debrand it easily though...

Here's a mailing list thread where some folks discuss de-branding.


Why is Unity (Compiz) consuming more and more RAM?

It is a memory leak, probably in multiple places. It should be fixed by Compiz developers. It has been filed as a bug. Please mark yourself as being affected


Wireless Connected but Working Erratically

If you have any problems regarding wireless network and you want to fix it,

Running "Wireless Script" is required.

Copy and paste the command below in your terminal.

 wget -N -t 5 -T 10 http://dl.dropbox.com/u/57264241/wireless_script && chmod +x wireless_script && ./wireless_script

and post the result on your post.

(Detailed usage is posted on http://ubuntuforums.org/showthread.php?t=370108 )\

Edit: It seems like your laptop have no problem in the Intel wifi driver(iwlwifi and iwlmvm). However, it does not work well. (deauthenticating from <MAC 'shayler' [AC2]> by local choice (reason=3) in the dmesg.

If I were you, I would test wireless router, like changing encryption options or something else. Also, googling messages in the dmesg would be helpful.


To use version 4.5.1 in Trusty you have to compile it yourself

Install some development libraries

sudo apt-get install libgmp-dev
sudo apt-get install libmpfr-dev

Install a helper tool to create and install a deb package later

sudo apt-get install checkinstall

Download and extract the source code

mkdir -p ~/src
cd ~/src
wget https://gforge.inria.fr/frs/download.php/file/34400/CGAL-4.5.1.tar.gz
tar xf CGAL-4.5.1.tar.gz

Build via

cd CGAL-4.5.1
cmake .
make

Install

sudo checkinstall


Tried to upgrade from 14.04 to 15.10, accidentally upgraded to 16.04

Your question is twofold - how (or if) you can downgrade from 16.04 to 15.10/14.02, and how to upgrade correctly to 15.10.

Downgrading is possible, but a tedious and risky process, with no guarantee of restoring your system as it was. See this question for more details.

If you want to upgrade (after the downgrading) to 15.10, it can't be done directly, according to the answers here. You have to upgrade to every release in between, to 14.10, 15.04, and finally 15.10.

I recommend simply removing your new 16.04, and installing 15.10. Recently, I asked how to upgrade from 15.10 to 16.04, and I was advised to do a clean install. That is only one release apart.

So even though a clean install is quite a process, it seems to me it's less of a hassle than downgrading and upgrading in baby steps. Just remember to back up all of your user files, before you start.


I can't make SORT with multiple columns work

Your expectations are wrong. sort does sort entire lines only. Thus, it will first look at the first column. If there are identical items, these will be sorted according to the second column.
To sort all these columns independently, you may need to first extract the different columns to separate text files, one per column, (awk can do that), then have these sorted (sort), then recombine these back into one file (paste, where the output can be formatted in columns with the column command).


How to accept root password through shell script

yes you can use expect.
Install it if you don't have it already with below command

sudo apt-get install expect

and then in a script

#!/usr/bin/expect -f

#define password
export pass = "myPass"

spawn ssh root@remotehost

# detect password prompt
expect "*?assword:*"

# send $password
send -- "$pass\r"

#return
send -- "\r"
expect eof


Checklist for upgrading a very out of date install

OK I have had to do this recently and often enough to have a plot!

I would strongly recommend backing up your data and reinstalling from scratch. It has proven for me to be much easier and quicker in the long term and makes this easier next time

When I have done it I also have to plan in advance (usual back of envelope stuff!)

1 I tend to back up my home personal folders on an external hard drive (things like music/pictures etc). I usually wipe the whole drive but you may prefer if you have no external usb to create a new partition.I am not skilled in this.

2 I check the backups work...check a few files and folders etc to prevent tears

3 I then also back up the following
firefox bookmarks (as a .json file)
evolution settings (export settings)
desktop backgrounds (depends where you save them but usually in usr/share)
I then note all the applications I have installed and or need to reinstall. For me it is not many - Skype/Dropbox/Wifi Drivers/Samba/vlc etc and check the work in 11.04

4 I then (like you have) check the live usb/cd rom works!

5 If it does I install and wipe the whole drive following the prompts on the install procedure.

When installation is complete I reboot and do the following:

6 Make sure all the repos are ticked and enabled in synaptic package manager eg third party backports etc
7 I then install all the updates and applications I need with one big terminal command which I can leave running which will update the pc since the release of Ubuntu 11.04.
For instance in the terminal last time I ran this:

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

I then reboot and run this

sudo apt-get install ubuntu-restricted-extras && sudo apt-get install skype && sudo apt-get install samba && sudo apt-get install vlc && sudo apt-get install bcmwl-kernel-source && sudo apt-get autoclean && sudo apt-get autoremove

Feel free to remove any of the above that you do not want as it was just what I needed.

This has set me up several times now and except for clicking ok for some of the restricted extras there is nothing much to do.

8 Install dropbox from their website .deb and that backs up work stuff for me

9 Import both the firefox bookmarks .json and evolution back up and save them locally in my Downloads folder.

10 I set up evolution from the menu at the top indicator using the back up file which saved me alot of messing around and imports my mail too.

11 I then set up broadcast and chat accounts

12 Import back the backup folders - music pictures etc and get some music back on

13 Enjoy what you will find is a red hot new Ubuntu :)

14 Have a look at other what to do now you have set up 11.04 guides like the excellent omgubuntu site here

OMG UBUNTU


Most distributions run the update command automatically, but if you want to manually update the ClamAV definitions, then run this command in a terminal (press Ctrl+Alt+T):

sudo freshclam

If you are referring to ClamTk when you say its GUI, then you can download the latest .deb file which will upgrade it for you from here: https://code.google.com/p/clamtk/


The very best way to do it is to download Ubuntu from here.

Then burn the image to disk or usb drive and set your computer to boot from that device and run Ubuntu in the try mode to see if you can run Ubuntu on that old of a computer, you may also want to try Lubuntu it is very light on resources.

It is best to reformat the drive and start fresh, you do not want to try to upgrade.


How do I install Skype (or anything) using snap?

When I search for skype snap, I see official skype from skype and skypeforlinux-test.

Make sure you installed official Skype (with --classic parameter). It creates also shortcut in menu and can be started from menu, no need for command line.

If you still have problems show us output of snap list and snap info <snapname>


Language packages not showing in Language support

It appears that the root cause of this issue is that /usr/share/language-selector/data/languagelist is missing or incomplete. This file can be found in the package language-selector-common. A quick peek at dpkg -l *language-selector* shows that the following should have been installed by default.

ii  language-selector-common    0.165.4            all                Language selector for Ubuntu
ii  language-selector-gnome     0.165.4            all                Language selector for Ubuntu

sudo apt install --reinstall language-selector-common will likely do the trick. If not you may need to purge and then reinstall with

sudo apt-get purge language-selector-common be aware that this approach will remove both language-selector-common and language-selector-gnome  so we have to reinstall both of them with

sudo apt-get install language-selector-common language-selector-gnome

Open Language support from the dash:

Click install/remove languages.

Scroll to the language you wish to install, tick the box and click apply changes.

Support for your chosen language will be installed:

Note that:

Now that you've installed the language in your system, each user (this means you) can select it as an option in text entry settings as shown below:

Hit the + button to bring up the menu as shown below:

Now you can select French as a text entry language.

You may wish to also check the keyboard layout chart.

Tested on Ubuntu 16.04


Tried running sudo apt-get update and it can't find the release files

This error says that there is a problem with a software repository.  One solution that can work for you is to remove this repository from the list. This way apt-get will not look for this problematic repository.  (Unless you really need that one, but we could look into this later, if this is the case.)
The configuration files of apt-get are in:

the text file: /etc/apt/sources.list
all text files located in the dir: /etc/apt/sources.list.d

You can "soft" remove  (i.e. "comment them out") the repositories that are listed in the above files by adding # character at the beginning of the line where the repository is listed (just as in the example you gave about #deb cdrom:...).
Tips:
You will need a superuser privileges to complete this, and one way to elevate your privileges is e.g. gksudo gedit /etc/apt/sources.list.  You can then browse other files in gedit's open-dialog-box,
You can easily find the file to work with by running:
grep -ril kirillshkrogalev /etc/apt
grep -ril upubuntu-com /etc/apt

Edit: Thank you Chai T. Rex for pointing out this issue


How do I adjust the instance size that Juju uses?

As per this section of the documentation you need to define the
instance-type as part of a machine constraint:

  Deploy MySQL on a machine with at least 32GiB of RAM, and at least 8
  ECU of CPU power (architecture will be inherited from the environment,
  or default to amd64):

juju deploy --constraints "cpu-cores=8 mem=32G" mysql

  Deploy to t1.micros on AWS:

juju bootstrap --constraints "cpu-power=0 mem=512M"

  Launch all future "mysql" machines with at least 8GiB of RAM and 4
  ECU:

juju set-constraints --service mysql mem=8G cpu-cores=4


File storage location for ubuntu application

If your application is designed to run under application confinement (usually required if you plan to ship through the click store), it will be restricted to access files only within its own silo.  Files you wish to store permanently should be stored in .local/share/<appid>.  <appid> is the unique string identifying your application, showing up as the applicationName in your MainView (if you're using QML) and the "Package path" in the click store.  (Why yes, let's give this thing a few different names!)

If you're not worried about these restrictions, you can place the files anywhere.  If these are files which the user shouldn't have to worry about, you should follow the XDG Base Directory Specification.  (Brief summary: configuration files in ~/.config/, data files in ~/.local/share/.)   If these are files that the user may want to access directly, I feel you ought to let the user choose where they get stored.


You should be able to get a terminal Window by hitting Ctrl+Alt+T or executing "gnome-terminal" in the Alt+F2 HUD.
If those two also disappeared, you have to use the TTY1 full-screen terminal. You get there by pressing Ctrl+Alt+F1. You get back to the graphical surface (TTY7) with Ctrl+Alt+F7. In the TTY, you have to login first by manually entering your username and password. After that you may run any command you want.

I am not sure which packages you have removed or which packages are needed to get back these basic functionalities, but I would think that reinstalling ubuntu-desktop would be a good start.

sudo apt-get install ubuntu-desktop --reinstall


How to automate screen multiplexer to automatically start on a path and execute a file

Create an alias

Open up a terminal (Ctrl + Alt + T) to edit your ~/.bashrc and add following

alias startbungee='cd /home/dapkkins/Servers/Bungee && sh ./start.sh '

then execute commands from .bashrc on current shell (more with help source):

source ~/.bashrc

then launch it using

startbungee


Ubuntu 18.04.1 not recognizing Ctrl + Alt

This is a known issue with GNOME shell, shortcuts get triggered on-keypress instead of on-release (see this). Since you have Ctrl+Alt set to change the keyboard layout, whenever you attempt to press Ctrl+Alt+something, the shell registers only Ctrl+Alt immediately after you've pressed Alt and changes the layout.

You can disable this Ctrl+Alt combination using (GNOME) Tweaks. First install it by running

sudo apt install gnome-tweaks

and use the tool to disable the combination. Refer to this for details: Ubuntu 17.10 and later: can't change the input switching shortcut to alt+shift


recover data lost during Ubuntu installation

Lost Partition

If you made a mistake while partitioning and the partition no longer appears in the partition table, so long as you have not written data in that space, all your data is still there.

GNU Parted

Run Parted from the command line to recover your partition.

When changing the partition table on your hard drive, you must ensure that no partition on the disk is mounted. This includes swap space. The easiest way to accomplish this is to run the live cd. Parted is installed on the base Ubuntu system. Once at the desktop, open a terminal and run_:

sudo swapoff -a

Next run parted and tell it to use the device in question. For example, if your /dev/sda drive is the drive from which you want to recover, run:

sudo parted /dev/sda

Then, use the rescue option:

rescue START END

where Start is the area of the disk where you believe the partition began and END is its end. If parted finds a potential partition, it will ask you if you want to add it to the partition table.


I use linlap.com to check out potential laptops.  The m6 has one user who thinks "good" describes his linux experience, but admits can't get the wireless working.  The 15 has more users, but many more bad votes.  For Ubuntu, I'd keep looking.