First off a few words on UEFI/BIOS boot device selection versus a boot loader (e.g. grub) for selecting an OS to be booted:

Any hard drive has a master boot record at the beginning of the drive. In this area the information on how to start the boot loader of this drive is stored (e.g. where to find it, what to do). The boot loader then can see the different operating systems of the hard drive and the partitioning scheme.
The BIOS selection is only to define which medium to boot from - and this means which medium to use for reading said master boot record. The medium could be an optical disk (drive), a flash drive or a (physical!) hard disk. It does not know about anything written on this disk and thus cannot see any partitioning. However you may e.g. choose if you want to boot from your SSD or your HDD.

Now for the solution of your problem:

As explained above, you always need a boot loader on a hard drive with different OSs (and the respective partitions). This is the very thing missing in your installation. The Ubuntu you installed is fine, but it cannot be found, the Windows boot loader that is still active won't display it (complain to MS for that matter).

So all we need to do is install grub.

For this boot from your Ubuntu installation CD and select a live version ("try Ubuntu"). If the live version doesn't already have boot-repair available (I think it is included by now), install it by opening a terminal and typing:

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

Start the program and follow the instructions.


Read full dpkg database state without dpkg program

See man dpkg:

  The other files listed below are in their default directories, see
  option --admindir to see how to change locations of these files.

  /var/lib/dpkg/available List of available packages.
  /var/lib/dpkg/status Statuses of available packages.

  This file contains information about whether a package is marked for
  removing or not, whether it is installed or not, etc. See section
  INFORMATION ABOUT PACKAGES for more info. The status file is backed up
  daily in /var/backups. It can be useful if it's lost or corrupted due
  to filesystems troubles.

You can quit worrying. If the package isn't in status, dpkg doesn't know about it. At all.

By the way, the "package lists" that apt is taking about is a different thing: those are the lists it downloaded from the sources in /etc/apt/sources.list, etc. and are in /var/lib/apt/lists. These contain information about packages in the repositories, and have nothing about the local system.

About your current problem, you can use the live system's dpkg to read that file, using the --admindir option mentioned above.


Can't use PHP extension Solr in Ubuntu 13.10 (Apache)

The fix was to uninstall and then reinstall the solr pecl extension:

sudo pecl uninstall solr
sudo pecl install -n solr
sudo service apache2 restart

Before uninstalling, I noticed the solr.so was in the wrong place (/usr/lib/php5/20100525/solr.so). After uninstalling and reinstalling, it is in /usr/lib/php5/20121212/solr.so which is found by Apache, etc.


Installing a new kernel on 10.04 because old kernel can't install my wireless card

This has been asked before: Can I update the kernel of my 10.04 LTS to the latest kernel?

PS: In case you didn't notice this site has a search feature at the top of the page.


mount.cifs stopped working after last kernel upgrade

I would try to reinstall smbfs:

sudo apt-get --reinstall install cifs-utils


If unity gets a plugin framework/API of some sort, what languages will be available?

In addition to what Murat said, the pluggable renderers may make it possible for items to paint themselves, creating the possibility a widgets place. The unity team has no plans for an official widgets layer or anything like that, but the possibility may exist when pluggable renderers are implemented. However; since none of this is actually coded, it remains to be seen what will actually be doable via renderers.


Copying the contents of my email here too so people will find it more easily if they google it.

I recently asked a similar question for a paper I've written
https://lists.ubuntu.com/archives/juju/2018-January/009845.html.

Here is the documentation for the charm store api: https://github.com/juju/charmstore/blob/v5-unstable/docs/API.md
URL to download the entire zip for a bundle: https://api.jujucharms.com/charmstore/v5/bundle//archive
URL to download a specific file of a bundle: https://api.jujucharms.com/charmstore/v5/bundle//archive/bundle.yaml

If you want code, here is an Jupyter notebook I use to get metrics of charm and layer usage: https://github.com/IBCNServices/reactive-pattern-results/blob/master/reactive-usage-stats.ipynb. It should be easy to modify that code to pull info about the bundles.

As an example; this is the URL to get all bundles in the Juju store: https://api.jujucharms.com/charmstore/v5/list?type=bundle

Cleaning up the data will be the hard part probably, since there are a lot of unused/broken bundles in the store. I've used the downloads/month metric to figure out what charms are actually still used.

source: https://lists.ubuntu.com/archives/juju/2018-June/009977.html


Installation stops at a black screen on a Dell XPS 15z

I have the same laptop but I installed 11.04 (Natty) and everything seems to work except for the touchpad. If you choose this path, you will need to:

1) Add acpi=noirq to the kernel parameters when you boot up the installation CD. Read the Boot Parameters. You'd need to press F6 to edit your boot options.

2) The first time you boot into Natty after the installation has completed, you may need to do the same thing again and add 'acpi=noirq' to the kernel parameters. I suggest reading up on how to change the grub configuration to make this kernel parameter permanent for your installation.

3) You may want to get "bumblebee" if you want to have the ability to switch on/off your nvidia GPU or if you have the need to run 3d graphics intensive apps such as games. Go to https://github.com/Bumblebee-Project/Bumblebee for more information on this.

I hope this helps.


Playing Sound with Ubuntu QML Toolkit preview

Problem solved, the answer is to use QtMultimedia 5.0, which now provides the Audio element.

http://qt-project.org/doc/qt-5.0/qtmultimedia/qml-qtmultimedia5-audio.html


SMTP server to deliver ALL mail to user@localhost

I found this article explaining how to do it with postfix.

The key is:

luser_relay = cam8001@localhost
local_recipient_maps =

as explained in the article:

  luser_relay is the local user on the machine to catch all email that does not belong to an existing local user. luser_relay documentation.

  local_recipient_maps is left blank to stop Postfix from checking if the user exists on the local machine. This is very important, without this line, Postfix will still reject the mail and send a bounce message.

  After adding the above two lines to the configuration, apply the changes and restart Postfix.


Unity links to USB drives do not open nautilus

Try  this

gedit ~/.local/share/applications/mimeapps.list

If there are any lines that start like this inode/directory=then delete it/them

Save & try again. The most likely would be to see inode/directory=nautilus-folder-handler.desktop, in any event remove any inode/dirctory= line(s)

The other fairly likely solution would be to do a update, you 'd probably solve with that

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

https://bugs.launchpad.net/ubuntu/+source/nautilus/+bug/876788


Problem installing Ubuntu 14.04.4 LST (64 bit) on Mid 2014 macbook pro

http://mirror.pnl.gov/releases/trusty/

  32-bit PC (i386) desktop image: For almost all PCs. This includes most machines with Intel/AMD/etc type processors and almost all computers that run Microsoft Windows, as well as newer Apple Macintosh systems based on Intel processors. Choose this if you are at all unsure.

Based on this, I suggest downloading the 32-bit image from the mirror of your choice. Beyond that, I can suggest a boot parameter which might help, but I can't explain why. Getting Ubuntu working on my own Mac was a very trying experience.

EDIT: If you decide to try, the boot parameter which helped me was nomodeset, as shown here. Again, I don't understand why this worked for me, so no way to know if it will help you or not.


How can I remove static cursor image from the screen?

Press the F5 key to refresh the screen and remove unwanted screen artifacts like a static mouse cursor image.

If that doesn't work try restarting the GNOME shell with the following command:

setsid gnome-shell --replace

This command won't cause any currently running applications to close or the current user to be logged out. After the GNOME shell restarts click anywhere in the terminal, and press the Enter key once before closing the terminal.

If that doesn't work try logging in at the usual login screen with Xorg instead of Wayland. Click the gear icon to the left of the  Sign In  button and select Ubuntu on Xorg from the dropdown menu. This selection will be persistent across reboots unless you switch back to Wayland.


do you have the use name of the user???? if you have then login as root
and type passwd and user name then it will ask for a new password by this way you can reset it.

like

passwd abd


HDMI screen does not adjust to the resolution

The monitor and TV have different vertical resolutions, so if you have both of them show the same picture, one of them will show more than the other.

XRandR requires that the framebuffer size is at least large enough so that all output views fit into it, so the larger of the two wins if you use both of them with their preferred video mode. Since they have no common video modes (one is 4:3 and the other 16:9, and neither has any scaled modes), your options are somewhat limited:

set the monitor to panning mode, with --output VGA-0 --panning 1280x1024 which will probably be annoying to use, but would allow you to reach the entire screen with the mouse at least
set up two separate viewports, using --left-of, --right-of, --above or --below. Since the horizontal resolution is the same, stacking them vertically would not create invisible areas (but window managers are usually smart enough to not move anything into an area not displayed on any monitor).


Well, the core of the printing system is 'cups', so that's a good place to put printing bugs unless you have something more specific.
Also see: https://wiki.ubuntu.com/DebuggingPrintingProblems

However, there are always at least 3 parts to a printing problem;

1) The application that produces the file/stream to be printed
  2) The drivers for the particular printer
  3) The central print queuing stuff

If you can figure out which one of these is the cause of your problem then it makes debugging easier, and you might also be able to find a more specific package.
However they can interact (the famous bug where printing from OpenOffice to brother printers on a tuesday is probably the worst case!).

So try and split the problem down:
  a) If you get the application to print to a postscript or PDF files (try both if you have the option) and then look at the resulting postscript or PDF file in a viewer is it right? If it is then you're bug is less likely to be printer specific or even cups.
  b) Does only that app have a problem?
  c) Does the problem go away if you use some other options on the printer (e.g. don't use n-up printing or double sided)

If you can't print at all then lsusb to see if the printer is seen at all (if USB) is a good bet, as are the CUPS logs.

Dave


Bash, get values from json file, all in one line

I would just split the file into one entry per line first. That makes parsing it much simpler. So, find all cases of },{ and add a newline breaking them:

$ sed 's/},{/},\n{/g' file
{ "article": {"code": "01333457004","name": "ALAZANIS VALLEY 2015","note": "ČERV VÍNO EVROPA VÝCH OSTATNÍ","sel_unit": "Kus","unit_price": 229.0,"category": "ČERVENÉ,POLOSLADKÉ","unit": "L","EAN": "4867601700052","unit_volume": 0.75,"producer": null,"tax": 21.0,"text": "Alazanis Valley 2015;Gruzie,Kachetie;červené polsladké;750ml;16°C;Alazanis Valley 2015;Gruzie,Kachetie;červené polsladké;750ml;16°C;","is_action": "1","action_from": "20190905","action_to": "20190918","ordered_from": "20190126","ordered_to": "20190830","shelf_id": "1030542","is_outlet": 0}},
{ "article" ...

Now, you can just search for your code. But use the -w flag for grep which makes it look for "words" to avoid finding the code as a substring. So if you have one line with code 01333457004 and another line with code 013334570041, searching for 01333457004 won't find 013334570041.

Putting all this together gives:

$ sed 's/},{/},\n{/g' file | grep 01333457004
{ "article": {"code": "01333457004","name": "ALAZANIS VALLEY 2015","note": "ČERV VÍNO EVROPA VÝCH OSTATNÍ","sel_unit": "Kus","unit_price": 229.0,"category": "ČERVENÉ,POLOSLADKÉ","unit": "L","EAN": "4867601700052","unit_volume": 0.75,"producer": null,"tax": 21.0,"text": "Alazanis Valley 2015;Gruzie,Kachetie;červené polsladké;750ml;16°C;Alazanis Valley 2015;Gruzie,Kachetie;červené polsladké;750ml;16°C;","is_action": "1","action_from": "20190905","action_to": "20190918","ordered_from": "20190126","ordered_to": "20190830","shelf_id": "1030542","is_outlet": 0}},

If you really want to do it in a single operation, you can try using grep with -P for PCRE regular expressions which support lookaheads:

$ grep -oP '{ "article":.*?\b01333457004\b.*?}(?=,{)' file
{ "article": {"code": "01333457004","name": "ALAZANIS VALLEY 2015","note": "ČERV VÍNO EVROPA VÝCH OSTATNÍ","sel_unit": "Kus","unit_price": 229.0,"category": "ČERVENÉ,POLOSLADKÉ","unit": "L","EAN": "4867601700052","unit_volume": 0.75,"producer": null,"tax": 21.0,"text": "Alazanis Valley 2015;Gruzie,Kachetie;červené polsladké;750ml;16°C;Alazanis Valley 2015;Gruzie,Kachetie;červené polsladké;750ml;16°C;","is_action": "1","action_from": "20190905","action_to": "20190918","ordered_from": "20190126","ordered_to": "20190830","shelf_id": "1030542","is_outlet": 0}}

This will look for { "article":, then the shortest stretch of 0 or more characters (.*?) until the string 01333457004, but only if that appears surrounded by non-word characters, so only if it is a word; that's what the \b mean, then the shortest stretch of 0 or more characters again that end with a } followed by ,}.


To check the status of your Bluetooth, use:

sudo systemctl status bluetooth.service

Then consider two possible solutions:

Enable bluetooth via systemctl:

sudo systemctl enable bluetooth.service

Check if your bluetooth is blacklisted:

sudo vi /etc/modprobe.d/blacklist.conf
If the file has blacklist btusb, exit out of the file and run :

sudo modprobe btusb

This should enable Bluetooth.

Since your Bluetooth is dead, the second solution is likely to help you.


Ubuntu graphic designers: Why the strokes look pixelated when I print on paper using Gimp?

Gimp is a bitmap editor where images are made of pixels. Check the print definition (Image>Print size in Gimp). Below 150PPI things will look pixellated.

Illustrator is a vector graphics editor, if you want to edit vector graphics with perfect scaling, use Inkscape.


kile crashes at startup and has no debug symbols

My problem is similar, but not the same.

After start of Kile, I typed a letter in the editor (last edited file opened), and the application crashed immediately. If instead of typing a letter, I opened a new file and started typing in it, Kile is OK, but when I come back to the older file, again, after typing a letter it crashes.

I did not search for any details in reports and can't repeat the problem now.

Possible solutions: I think once I invoked the PDFLaTeX or LaTeX compilation as the first step, and after they had finished, the editing worked. Another time, that solution did not help, but running sudo kile or kile from CLI removed the problem. I do not understand why, but it helped.


From what I can gather, it seems that there was a small partition for grub that contained some data which allowed Ubuntu to be detected. The error message you're getting sounds like somehow this partition was removed, most likely when you removed Windows 10. The question/answer I linked to below talks to this if that's of interest to you.

I can boot into the flashed USB drive that I used to install Ubuntu, so the problem is not in the grub menu.

See if you can bring up the computer's boot menu instead of grub (there are several ways to do this, and they are different for various computers, so you'll likely need to look up this method for your specific computer; however, try pressing esc before the grub menu shows up. This may allow you to see the different bootable drives.
Notice that I have a separate partition for the EFI boot, mounted at /boot/efi
Additionally, I've found a similar, if not exact question that's been answered here before stating that you need to make sure to boot the recovery disk in UEFI mode instead of Legacy/BIOS mode among other things.
Hope this helps!


Help with script for wifi failure on wakeup with RT 2573 and 16.04LTS

Many thanks @Bidyut ,that was it!From this  I did the following:

sudo touch /lib/systemd/system-sleep/wakeup
sudo chmod a+x /lib/systemd/system-sleep/wakeup
sudo gedit /lib/systemd/system-sleep/wakeup

then used the following script:

#!/bin/sh
case $1/$2 in post/*)
    modprobe -rf rt73usb
    modprobe -v rt73usb
    ;;
esac

Also thanks to @Spmp


Most terminal programs allow multiple tabs on a given window.

  hit cntr-shift t  to open up a new tab

Go to your preferences to define window geometry


fstrim only works on ssd's that have an ext4, Btrfs, FAT, GFS2 or XFS filesystem (NTFS is not supported). And yes, the fstrim command figures this out itself.
fstrim also has a "mountpoint" option to tell it what disc to check if you have more than 1 ssd.

From the manual:

 fstrim - discard unused blocks on a mounted filesystem

 fstrim [-a] [-o offset] [-l length] [-m minimum-free-extent] [-v] mountpoint


Ok, figured it out.

Under Windows, I backed up all the data on D, then removed it, and also removed "recovery partition". Then, I recreated D, so I got

unallocated (15gb), C, D, unallocated(16gb)

After that, Ubuntu found every partition just fine.


My memory is full but processes list is empty of heavy program!

That's because the memory is filled with filesystem metadata (aka "buffers") and files' contents (aka "cached") cached by the kernel.

Since it's common for programs / users to access those kind of resources multiple times in a short timeframe and not using memory is a waste, the kernel caches them in order for them to be accessed faster than it would by reading them again from the disk.

The exact amount of cached data is reported on the 5th and 6th columns:

             total       used       free     shared    buffers     cached
Mem:          3838       2895        942        120        461        947
-/+ buffers/cache:       1487       2350
Swap:         4394        615       3779

Since the cached data can be dropped immediately if the memory is required for something else, the cached data isn't really taken and is actually available for programs to use it.

The "real" (net of buffers / cached data) used / free memory is reported in the third row ("-/+ buffers/cache:"):

             total       used       free     shared    buffers     cached
Mem:          3838       2895        942        120        461        947
-/+ buffers/cache:       1487       2350
Swap:         4394        615       3779

For easiness you could add a couple of aliases to print only the "real" used / free memory to ~/.bashrc:

alias real_used="free -m | awk 'NR==3{print $3}'"
alias realf_free="free -m | awk 'NR==3{print $4}'"


iperf test - 10/100 router result the same as crossover on gigabit

Link partner advertised link modes:  10baseT/Half 10baseT/Full
                                     100baseT/Half 100baseT/Full

That means the other end of the connection is not advertising Gigabit capability. In this case, presumably that's your Windows 8 laptop, for which the Windows command output does show only 100 Mbit/s speed. Fix your laptop.

  What is the difference between size and capacity? Should the server be 1Gbits for size and capacity?

Size is actual connection speed, capacity is what the server can support on that interface. It would be 1G for both if both ends of the connection support 1G.


Qt Creator reverted back to some previous version

As per the latest update from here on qtcreator, the ubuntu plugins for qtcreator are now located in a separate package called qtcreator-plugin-ubuntu.


Freeze after wakeup with GDM Wayland on Ubuntu 17.10

For me, it seemed that GDM was the problem.  I went back to LightDM, using:

sudo dpkg-reconfigure lightdm

And things are behaving better.  At least in this regard...


People are now packaging GTK and icon themes as Snap apps and putting them on the Snap Store for smooth installation. A variety of popular GTK themes are currently available as 'Snap themes' including Adapta, Orchis, Layan, Mojave,  Qogir, Canta, and Vimix. More will likely follow.


Monitor sometimes displays "no signal detected" on an HD4200

In this case still try to use the newest AMD proprietary driver from this step-by-step guide:

http://wiki.cchtml.com/index.php/Ubuntu_Oneiric_Installation_Guide

There is also described how to solve problems with suspend/hibernation.

To increase your performance after installing the propriatry driver, do follwing:

Install via Ubuntu Software Center Compiz Settings Manager by searching ccsm.
Start Compiz Settings Manager via Dash - go to the button OpenGL and disable Sync VBlank. Do NOT modify other settings!!

Finally, you'll still have a problem with the flash performance when you are using the proprietary driver. To solve this, open a terminal window and type (or simple copy&paste):

sudo mkdir /etc/adobe && echo "OverrideGPUValidation=true"|sudo tee /etc/adobe/mms.cfg


Burg for Ubuntu 14.04 is available at ppa:n-muench/burg PPA. Run the below commands on terminal to install Burg on Ubuntu 14.04 from muench PPA.

sudo add-apt-repository ppa:n-muench/burg
sudo apt-get update
sudo apt-get install burg

This below error report clearly shows that the PPA owner didn't updated his PPA for trusty to provide super-boot-manager package. So please wait for his updation.

W: Failed to fetch http://ppa.launchpad.net/ingalex/super-boot-manager/ubuntu/dists/trusty/main/source/Sources  404  Not Found

If you want to remove the above NOT FOUND PPA then run the below command on terminal,

sudo add-apt-repository -r ppa:ingalex/super-boot-manager


Quite possibly one of the apps (perhaps Firefox or Flash) gradually leak memory. I have a very similar issue with long Opera sessions. I found that the best way to deal with this is to reboot often enough (basically, whenever the system starts swapping).


How to reinstate the default Xubuntu 14.04 applications menu

You need to add the Whisker Menu panel item.


Newly installed kernels won't boot - what am I doing wrong? Ubuntu 13.04

I usually compile the kernel myself, but at the end I run  sudo grub-mkconfig > grub_config and then  sudo mv grub_config /boot/grub/grub.cfg  and maybe cp that old grub config for a backup. I doubt this would be the problem, maybe something to do with the kernels you are wgetting. Are they in your /boot folder? And is a proper config there for them as well?


How to show images in normal size by default with Image Viewer

I think that it is probably just impossible. Image Viewer is a pretty simple app generally.
What I would recommend is installing Gthumb, which has more functions, including the one you need.
sudo apt-get install gthumb

There you can find this option in Preferences > Viewer tab I guess.
I know that this isn't the exact answer you're looking for, but I hope that it will help anyway.


I just completed a quick-and-dirty port of kermagic to python3. Are you using python3? If so, then clone the code from Github, and good luck!


an idea for refreshing the Ubuntu 16.04 system

No, removing every single package is not a viable plan. An operating system is made up of packages as this comment pointed out. For example, the package manager, APT, that you would use to uninstall all packages, is itself a package. How will you reinstall packages after purging the package management system (actually there is a way, but it requires another package...)?

If you look at your system and have thoughts of purging every single package, you would be much better off creating a new bootable flash drive and doing an Erase disk and install Ubuntu.

Standard caveats apply, like, make sure to back up your data first.


What does the file do?

This is a lock file for gksu (Gtk+ frontend to su(do)). It does nothing if it is on the system (tested it with several gksu nautilus commands; when closing nautilus it did show a "critical" alert ... so it might be a bug that the file is there; EDIT: bug report found for 14.10 but is also has 14.04 in comments: https://bugs.launchpad.net/ubuntu/+source/gksu/+bug/1325251 )

  If I remove or edited the file,does it affect my system in any way?

Removing: the system will recreate the file when needed so here the answer is: no. If it is gone and someone is using a gksu action somewhere it will fail to finish the task.
Editing? The file is empty and probably should be empty. If you edit something in I would expect nothing to happen. Sane answer: no, does nothing. I assume the content is not checked but just the presence of the file should be enough to trigger a notice regarding a lock active.


Systemd logs (`journalctl`) are too large and slow

systemd comes with a nifty vacuum cleaner

To limit log files to a specific size systemd provides a vacuum feature to "suck out" older information from log files. The parameters allowed are:

 --vacuum-size=BYTES   Reduce disk usage below specified size
 --vacuum-files=INT    Leave only the specified number of journal files
 --vacuum-time=TIME    Remove journal files older than specified time

For example to reduce 312 MB consumption down to 200 MB (or less) use:

$ journalctl --vacuum-size=200M
Deleted archived journal /var/log/journal/d7b25a27fe064cadb75a2f2f6ca7764e/system@00056515dbdd9a4e-a6fe2ec77e516045.journal~ (56.0M).
Deleted archived journal /var/log/journal/d7b25a27fe064cadb75a2f2f6ca7764e/user-65534@00056515dbfe731d-b7bab56cb4efcbf6.journal~ (8.0M).
Deleted archived journal /var/log/journal/d7b25a27fe064cadb75a2f2f6ca7764e/user-1000@1bbb77599cf14c65a18af51646751696-000000000000064f-00056444d58433e1.journal (112.0M).
Vacuuming done, freed 176.0M of archived journals on disk.

Disk Space saved

The journalctl size is reduced substantially:

$ journalctl --disk-usage
Archived and active journals take up 136.0M on disk.

Size has dropped from 312 MB to 136 MB a savings of 176 MB and 64 MB more than expected. This is probably a one time anomaly due to an extraordinary large single log file. I'll revise this answer after a month if new info arises.

Boot Logs reduced

The number of journalctl boot logs was 32 but now it is reduced to 26:

$ journalctl --list-boots
-26 0f230cc546fd4aec8f5233e0074ab3e1 Tue 2018-02-13 03:57:20 MST—Wed 2018-02-14
-25 c0d2c0141dd840cbab75d3c2254f8781 Wed 2018-02-14 22:59:13 MST—Sat 2018-02-17
-24 aafb2573a6374e019a7165cb8eee74a0 Sun 2018-02-18 06:02:03 MST—Mon 2018-02-19
-23 8462f1969c6f4d61973e7e245014b846 Mon 2018-02-19 04:16:53 MST—Sat 2018-02-24
-22 7f71ac2fb9714c49aa05989b741655f2 Sat 2018-02-24 04:24:36 MST—Sat 2018-02-24
-21 b12a48c363474e5fb39311a166a98d54 Sat 2018-02-24 04:28:09 MST—Sun 2018-02-25
-20 fbef1e659de64a0cbdcb9994f5a39457 Sun 2018-02-25 17:48:20 MST—Mon 2018-02-26
-19 3d9b4c10f98d4ef7aab1cb2baa9b74e1 Mon 2018-02-26 08:37:01 MST—Mon 2018-02-26
-18 4412b117dcc648aa9eceabcd0f205207 Mon 2018-02-26 08:38:00 MST—Mon 2018-02-26
-17 f6794cbb7fb24213a6f2c3e368f666a1 Mon 2018-02-26 08:39:12 MST—Mon 2018-02-26
-16 472f968506ed446ab12cf7abc65fa81a Mon 2018-02-26 08:49:37 MST—Mon 2018-02-26
-15 d575c609d82e4ecd8dcebb70d40160d7 Mon 2018-02-26 17:07:36 MST—Mon 2018-02-26
-14 878cfd9239a84dae80c62e7413c72951 Mon 2018-02-26 17:24:54 MST—Mon 2018-02-26
-13 7f9913c7dbff46ab9bbd7c2cbefc4d7d Mon 2018-02-26 17:35:19 MST—Mon 2018-02-26
-12 bf90829ef13a4e9fa1794bf0a88f4033 Mon 2018-02-26 17:45:12 MST—Wed 2018-02-28
-11 fb879a836c7c459ab27f6332bee6013b Wed 2018-02-28 03:56:29 MST—Wed 2018-02-28
-10 b0fec230765046f5bf3d654db1dc13ee Wed 2018-02-28 20:03:15 MST—Thu 2018-03-01
 -9 72a2d6789eab4396be16348d9ead0408 Thu 2018-03-01 03:58:25 MST—Fri 2018-03-02
 -8 8bccdc9b16124d26af05c34c8a30a0f5 Fri 2018-03-02 16:54:36 MST—Sat 2018-03-03
 -7 40c2875db30349f5a9b1dfc849a47c05 Sat 2018-03-03 10:03:48 MST—Sat 2018-03-03
 -6 781c79d2ec7946afba0fa2300e8ebe56 Sat 2018-03-03 10:04:34 MST—Sat 2018-03-03
 -5 bb66dc875e414021940b7233072516d2 Sat 2018-03-03 17:43:08 MST—Tue 2018-03-06
 -4 ba3bcfdc71584757b8bef9df16e7b0f6 Tue 2018-03-06 16:56:36 MST—Tue 2018-03-06
 -3 60faa0fda99a4ef4b14b73c412d69e50 Tue 2018-03-06 17:00:47 MST—Tue 2018-03-06
 -2 9b317bb8403344ca84dd2f288bc90410 Tue 2018-03-06 17:02:15 MST—Tue 2018-03-06
 -1 dcb126be665a4531aae4312af7e51a34 Tue 2018-03-06 17:09:00 MST—Tue 2018-03-06
  0 6a105af650d5442a9b03004165e58adf Tue 2018-03-06 17:42:45 MST—Wed 2018-03-07

Performance improved

The time to verify journalctl integrity is noticeably quicker:

Time has reduced from 10 seconds down to 4 seconds.

Credit to this Source

Long Term Solutions

I've created a cron job to run the vacuum cleaner once a month.

Another option as mentioned in comments is to set SystemMaxUse=50M in /etc/systemd/journald.conf. There are actually four different places you can set the option:

/etc/systemd/journald.conf
/etc/systemd/journald.conf.d/*.conf
/run/systemd/journald.conf.d/*.conf
/usr/lib/systemd/journald.conf.d/*.conf

There are actually many options you can use for similar goals:

SystemMaxUse=, SystemKeepFree=, SystemMaxFileSize=, SystemMaxFiles=, RuntimeMaxUse=, RuntimeKeepFree=, RuntimeMaxFileSize=, RuntimeMaxFiles=


Installing Ubuntu 18.04 alongside Ubuntu 16.04 without losing data

If you unplug your 16.04 internal drive before proceeding, you can't do too much damage.

After installing 18.04 to the new disk, plug in the old drive and boot the computer.

If you wish to boot one drive as default, set it as first HDD in BIOS.

After OS boots, run sudo update-grub to include both drives in the grub menu.


How do I make quickly apps install into /opt?

You can use a new command to generate a proper package. It will also ask you to create a launchpad project and set up everything you need:

quickly submitubuntu


There is no amd64 emulator for the phone images yet. As such, I am not entirely sure if it is supported as an architecture by the framework and store. Also, it is still somewhat difficult to create click packages which support all architectures. As a result of that, it will take time for apps to become packaged for multiple architectures.


You have to find the directory where you installed matlab.
The default is /usr/local/MATLAB
If matlab is still in your path, you should be able to find it.
which matlab

might give you /usr/bin/matlab
then use
ls -l /usr/bin/matlab

to find where the real location is.


Menu missing in Lotus notes 8 and Eclipse in Unity

Actually there is a way to support global menus for Eclipse:
Use VI to edit the following file: sudo vi /usr/lib/gtk-2.0/2.10.0/menuproxies/libappmenu.so.
Search for Eclipse (type /Eclipse) and replace the E character with an X (type rX).
Save it (type :wq) and run sudo ldconfig.


If your TV can play movies that have subtitles muxed into the same file as the video, there are many advantages to adding the subtitles as a subtitle track, instead of burning them into the video.

mkvmerge -o movie_with_subs.mkv   movie.mp4  subs.srt

That will include all tracks from the mp4 (video, audio, chapters), and subs from the srt as a text subtitle track.  It takes about as long as copying the file, since it doesn't have to decode/re-encode the video.

Ubuntu packages mkvmerge in mkvtoolnix.  There's an mkvtoolnix-gui package, with a gui frontend.  It has a lot of options to let you control things like the subtitle offset.

The major advantage to this is that you avoid degrading the quality with another decode/encode cycle of generation loss.  It's impossible to avoid losing quality when transcoding, and it takes a lot of CPU time to even come close to the quality-per-filesize of a well-encoded source.  (e.g. x264 with -preset slower, or if your player supports it, x265 if you're willing to spend a huge amount of CPU time to make smaller files that still look good).  If you don't care about file size because you're just streaming it to your TV, transcoding with x264 with -preset veryfast -crf15 can run quickly and lose minimal quality.

Another advantage to muxing subs is that you can then toggle the subs on/off, or have your player show them in a different position on screen.

You can also extract them later and search them if you're trying to remember a line from the movie.

You can even extract them, fix typos, and mux them back in.


How do I see what PPA or PPAs are installed or in use

I use Synaptic which you can install with:

  sudo apt-get install synaptic

If you click on Origins on the left side of the Synaptic Window, the PPAs that are currently installed on your system, as well as their sources are generated between the "Reload" tile, and the "Sections" button.

You can choose to view "All" at the same time, which generates a list in the box to the right, or browse each source independently to view which packages are included in each respective PPA. (As well as which version is installed, what the latest version available is, and a description of each package.)

As for whether or not the PPA is trusted seems to be based on the user. I tend to search around to determine how many complaints a particular PPA has, as well as reviews on compatibility; or whether or not the package has been added officially.

More information pertaining to repositories, as well as various labels given to them, can be found here:

https://help.ubuntu.com/community/Repositories/Ubuntu

And another question on AskUbuntu, offers a more colloquial explanation here:

Are PPA's safe to add to my system and what are some "red flags" to watch out for?


moving windows lags after update to Natty

Install Compiz Config Settings Manager and launch it. You need to follow these steps:

Go to Composite plugin and disable 'Detect Refresh Rate'
In the option below, enter your monitor refresh rate. Mine is 60.
Now go to OpenGL Plugin and disable 'Sync to Vblank'
Logout and come back.


How can I see which packages will be updated from apt?

use the --dry-run, -s, --simulate, --just-print, --recon, --no-act argument and it won't actually do anything, it'll just tell you what it would do:

From the apt-get man page

-s, --simulate, --just-print, --dry-run, --recon, --no-act
          No action; perform a simulation of events that would occur but do
          not actually change the system. Configuration Item:
          APT::Get::Simulate.

          Simulate prints out a series of lines each one representing a dpkg
          operation, Configure (Conf), Remove (Remv), Unpack (Inst). Square
          brackets indicate broken packages with and empty set of square
          brackets meaning breaks that are of no consequence (rare).

so easily take a look into the comand:

apt-get upgrade --dry-run

or

apt-get upgrade -s


if anyone got same problem, This is what I found!
 to use this code it is required to know the Windows PC username and the Password.

sudo mount.cifs -o username=(username of the windows PC) //(IP address of Windows PC)/(Path of the windows share folder) /(path of your share folder)

and if you need to unmount use this

sudo umount -a -t cifs

I have fined this answer after watching about 30 videos. so I'm posting this for help anyone face same as me... good luck.


ImportError: cannot import name 'sysconfig' from 'distutils' (/usr/lib/python3.9/distutils/__init__.py)

I am assuming you did changed update-alternatives for python3. What is happening that you have distutils installed in your last python version, but not in the new one! And because you've changed system link with "update-alternatives", system no longer finds it with the new link of python3. To fix this you have to install distutils to python3.9.
sudo apt install python3.9-distutils

And then you can test it with following line written in terminal:
python3 -c "from distutils import sysconfig"

If there is no Traceback you are good to go.


Dark Notifications / Dark Shell Theme that fits Yaru Dark?

Original post (updated below):

Ideally there would be a Yaru-dark shell theme that is changeable in gnome-tweaks.

Issues being tracked here and here.

For now, you can build the Yaru-dark shell theme from source. I have only tested this on a fresh install of 19.10.

Building and installing Yaru-dark gnome-shell theme from source

Install git

sudo apt update && sudo apt install git

Clone the yaru repo and checkout the latest release.

git clone https://github.com/ubuntu/yaru.git
cd yaru/
git checkout $(git describe --tags $(git rev-list --tags --max-count=1))

Change $variant variable in gnome-shell.scss from light -> dark

sed -i 's/light/dark/g' gnome-shell/src/gnome-shell.scss

Install build dependencies for building yaru. Note: If you receive an error here, review this.

sudo apt build-dep yaru-theme

Build yaru

meson build
cd build
ninja

Install the newly built theme into the user themes directory

mkdir -p ~/.themes/Yaru-dark/gnome-shell
cp gnome-shell/src/* ~/.themes/Yaru-dark/gnome-shell

Now use gnome-tweaks to change the shell to Yaru-dark from Default. This can be found under Appearance if the User themes extension is enabled. You may need to install gnome-shell-extensions and reboot to get User themes to show up under Extensions in gnome-tweaks.

Update:

A new merge into master builds both the light and dark shell themes and allows them to be installed alongside each other. See here for merge details.

The updated steps are just the normal dev build instructions as described here.

Good guide and reference for this post here.


Undefined reference error _dl_stack_flags with gcc and pthreads

Looking at the information in your Stack Overflow question, I believe that the problem is due to you statically linking libpthread.  I put together the following trivial test program:

#include <pthread.h>

static void *
thread_start(void *arg)
{
}

int
main(int argc, char **argv)
{
    pthread_t thread_id = 0;
    void *result = NULL;

    pthread_create(&thread_id, NULL, &thread_start, NULL);
    pthread_join(thread_id, &result);
}

If I compile it with gcc -o test test.c -lpthread, I get no errors.  If I attempt to link thread statically but everything else dynamically, I get a number of errors including the missing _dl_stack_flags error:

$ gcc -o test test.c -Wl,-Bstatic -lpthread -Wl,-Bdynamic
/usr/lib/x86_64-linux-gnu/gcc/x86_64-linux-gnu/4.5.2/../../../libpthread.a(pthread_create.o): In function `allocate_stack':
/build/buildd/eglibc-2.13/nptl/allocatestack.c:451: undefined reference to `_dl_stack_flags'
/build/buildd/eglibc-2.13/nptl/allocatestack.c:595: undefined reference to `_dl_stack_flags'
/usr/lib/x86_64-linux-gnu/gcc/x86_64-linux-gnu/4.5.2/../../../libpthread.a(ptw-pause.o): In function `__pause_nocancel':
/build/buildd/eglibc-2.13/nptl/../sysdeps/unix/syscall-template.S:82: undefined reference to `__syscall_error'
/build/buildd/eglibc-2.13/nptl/../sysdeps/unix/syscall-template.S:82: undefined reference to `__syscall_error'
/usr/lib/x86_64-linux-gnu/gcc/x86_64-linux-gnu/4.5.2/../../../libpthread.a(nptl-init.o): In function `__pthread_initialize_minimal_internal':
/build/buildd/eglibc-2.13/nptl/nptl-init.c:277: undefined reference to `__libc_setup_tls'
/build/buildd/eglibc-2.13/nptl/nptl-init.c:295: undefined reference to `_dl_cpuclock_offset'
/build/buildd/eglibc-2.13/nptl/nptl-init.c:437: undefined reference to `_dl_init_static_tls'
/build/buildd/eglibc-2.13/nptl/nptl-init.c:439: undefined reference to `_dl_wait_lookup_done'
collect2: ld returned 1 exit status

You didn't list those additional errors, but I assume they showed up for you too.  I suspect that this error only occurs if you try to statically link libpthread but dynamically link libc.  If you dynamically link both things work, and I suspect that if you statically link both I suspect that would work too.  This isn't that surprising, since the two libraries are fairly closely related.

So I'd suggest adjusting your build configuration to dynamically link libpthread.


Difference between apt-get -d install & apt-get download

I could list following:

1) Try both without sudo, apt-get download will pass and apt-get -d install will fail (root required)

2) By default apt-get -d install will save .deb in /var/cache/apt/archives and apt-get download in current directory

3) apt-get download is newer, you wouldn't even find it in the old versions.

I hope they are helpful


High Pitched Whine Sound from HDMI port2 speakers

At first I thought it was only 4.15.0-33 kernel but yesterday I noticed it briefly in Windows 10 too. Again it happened on the secondary TV When signing in via Chrome to a password enabled website.
Then today under Kernel 4.13.0-36 I noticed system notification sound for volume change (that popping bubble sound) was coming from second TV driven by Intel HD 530 over USB-C Thunderbolt Display Port to HDMI converter whilst real sound internet video / news channels were coming from main TV driven by nVidia.
So I did a quick screenshot so you could see the setup:

I am using a special kernel module for nVidia sound due to newer Dell Laptops powering off the sound card in newer nVidia Cards to save 5 watts of electricity: https://github.com/hhfeuer/nvhda (not the exact github link but close enough).
Hopefully this helps. If not yourself then others at least.


Problem updating Ubuntu 12.04 LTS, lost Internet connection while installing flash plugin

Try the following commands:

sudo apt-get autoremove
sudo apt-get clean
sudo apt-get update
sudo apt-get upgrade

This will remove any unnecessary and partially downloaded files and upgrade all the files.


According to this community entry you just need to go to "settings > system > usb mode" and select "MSC". Just do this in my player and it now visible in ubuntu.

Looks like MTP live in parallel to MSC so don't be confused when you will not see any files copied from Windows machine.

Version of firmware on my player is 1.1.20. There is a chance that you should update firmware to find usb option


Can I safely remove tumbler in Xubuntu 14.04?

xubuntu-desktop is a dummy package that installs things that the Xubuntu desktop needs. If it would delete other packages those would have been listed too.
dependencies for tumbler.

Feel free to remove that package.


Laptop with ubuntu 18.04 gets into flight mode when i close the lid

For anyone interested this workaround by @tleyden (URL: Enters airplane mode after suspend / resume, can't toggle it) worked:
Update /etc/default/grub with:
GRUB_CMDLINE_LINUX_DEFAULT="acpi_osi=! acpi_osi='Windows 2009' quiet splash"
And now after resuming, fn + f10 takes it out of airplane mode and removes the hard block on the wifi driver.


I'm not familiar with Magix system, but if this project is able to output successfully into ANY video format, then your best bet is to export the video, then transfer with ffmpeg.

There is a free GUI utility for ffmpeg called winff , available from the default ubuntu repositories.

sudo aptitude install winff

It's easy,(for a video conversion application) ... and it does the conversion really well from almost any format to almost any other.

Screenshots from winff:


Is it likely that a fix for the RT3290 Bluetooth driver problem will be available for 14.04 and 15.10 in the near future?

I have reported a bug:
https://bugs.launchpad.net/ubuntu/+source/linux/+bug/1513705

But further investigation indicates that this issue goes as far back as late 2012. Other than the automated response requiring a further test and my subsequent information the bug tracker has had no activity.

A developer with Canonical - Anthony Wong was involved at the start ...

So unfortunately the answer appears to be "No..."


You are correct: The libvirt-bin package was dropped in 18.10.
Quoting from https://lists.debian.org/debian-user/2016/11/msg00518.html

The package was split into two parts:
libvirt-daemon-system
libvirt-clients
In most cases you probably want both of them at the same time.

So instead of libvirt-bin use libvirt-daemon-system libvirt-clients:
sudo apt-get install qemu-kvm libvirt-daemon-system libvirt-clients bridge-utils


mkpasswd -m sha-512 produces incorrect login

Okay, I locked down the issue. Since the output of mkpassword will result in $id$salt$hash, when you copy and paste this into a useradd command, bash will try and do variable replacement on the $. As such, those need to be escaped using \$id\$salt\$hash so that bash will not do variable replacement before adding the string to /etc/shadow.

mkpasswd -m sha-512 "my password"
results in

$6$5AfGzrQ9u$r6Q7Vt6h8f2rr4TuW4ZA22m6/eoQh9ciwUuMDtVBX31tR3Tb0o9EB1eBdZ2L9mvT.pX3dIEfxipMoQ0LtTR3V1

which can be copied and pasted into useradd making sure to replace each $ with \$.

useradd -m -s /bin/bash -p \$6\$5AfGzrQ9u\$r6Q7Vt6h8f2rr4TuW4ZA22m6/eoQh9ciwUuMDtVBX31tR3Tb0o9EB1eBdZ2L9mvT.pX3dIEfxipMoQ0LtTR3V1


How do I execute terminal commands by clicking an icon?

For an alternative way to run the commands at start up, you can set up those lines without the sudo in /etc/rc.local and it should execute them during start up.


Very low webcam framerate in Dell Mini 10

These Dells are becoming famous about it... :-(

Are you using Cheese? Please try changing the default resolution (usually 1024x768), sometimes it's just that. Under Edit -> Preferences, lower it to something like 320x240.


How to control gnome-terminal from Python scrypt?

According to the python docs, you want to use
  Popen.communicate(input=None)
http://docs.python.org/2/library/subprocess.html#popen-objects

I would recommend that you edit your command from python before sending it to another process. For example, display a window with the default command and allow the user to edit (or cancel) it before executing it. Also, "gnome-terminal" is probably overkill for this, "/bin/bash" should be sufficient.

If that doesn't work for you, you could also try this. (depending on what you are actually running from the terminal) Since you mentioned users could edit the command, it would be a good idea to validate the input before running.

command = ['ls','-l']
output = subprocess.check_output( command )
print( output )


Shell command to bring a program window in front of another?

Install wmctrl
wmctrl -a <name>

You can also use xdotool

Note:

More information about xdotool can be found here.


The best solution is not to install proprietary drivers for these old cards.

My experience tells me that you will not get any better performance. And new Nvidia drivers (even 340) do not always support these cards well.

But if you plan to experiment, you need to learn uninstalling the drivers if the system does not boot to GUI. You do not have to re-install your system for that.

You can boot to recovery mode using grub menu, select root and run:

mount -o remount,rw /
apt-get purge nvidia*
reboot

That will return to nouveau driver.

And do not try to install anything from .run files.


Actually there is. Use screenlets. [sudo apt-get install screenlets] = for ubuntu. It has a widget that execute a command and outputs the data in your desktop as a widget in a box. The application screenlets update the command (execute actually) every second if you want to.
You can insert into that widget the command netstat -natp

Another solution before i discovered screenlets was a script:
The link for the script is:
http://innovative.recomm.org/?p=6

The advantage of the script is that you can call it through remote shell

Good luck


How can I write a script to install BleachBit only if the version installed is not a certain version?

Here's a simpler version of your script, (keeping the humor intact :) ):

#!/bin/bash

## The && means that the script will run the next command only if this one
## succeeds, in other words, only if the string `version 1.0` is found.
bleachbit --version | grep -q 'version 1.0' &&
 echo "$(tput setaf 2)The elves have verified the BleachBit version.$(tput sgr0)" &&
   exit 0
## This block will only be executed if the grep above failed
wget -P ~/Downloads http://katana.oooninja.com/bleachbit/sf/bleachbit_1.0_all_ubuntu1204.deb &&
sudo dpkg -i ~/Downloads/bleachbit_1.0_all_ubuntu1204.deb &&
 echo "$(tput setaf 2)The elves have installed BleachBit 1.0.$(tput sgr0)"

Note that I added && to the end of each command, that way, you will avoid errors if any of the commands fail since the script will exit on the first failed command.

A safer approach would be to change the first command to:

bleachbit --version | awk '/version/{if($NF>=1){exit 0}else{exit 1}}'

This has the advantage that it will work fine for future versions, when the version number will be greater than 1. The $NF in awk means the last field and /version/ means the script will run on lines matching version. So, since the first line is:

info: starting BleachBit version 1.0

awk will test whether the last field (1.0) here is greater than or equal to one and will exit with a 0 status (success), if it is which means that the next block (&&) will be executed, and your script will stop.

You could also condense the entire thing to:

bleachbit --version | head -n 1 | awk '{if($NF>=1){exit 1}else{exit 0}}' &&
wget -P ~/Downloads http://katana.oooninja.com/bleachbit/sf/bleachbit_1.0_all_ubuntu1204.deb &&
sudo dpkg -i ~/Downloads/bleachbit_1.0_all_ubuntu1204

But that comes at the expense of the poor elves.


Run multiple instance of a program in parallel

You could use a script. Save the following as run-parallel.sh, and make it executable (chmod +x run-parallel.sh):

#! /bin/bash
trap "pkill -P $$; kill -INT $$" INT

while read n
do
    "$@" &
done < <(seq 1000)
wait

Explanation:

trap ... INT sets a command to be run when the SIGINT signal is received (which is the signal generated when you press CtrlC).
$$ is the PID of the current process (that is, of the script itself). pkill -P $$ kills those processes whose parent process i the script.
It is convention that a program which catches SIGINT kill itself using SIGINT once it has tidied up. Hence, the kill -INT $$.
seq 1000 generates numbers from 1 to 1000.
The while loop runs the command provided as arguments to the script once for each number from seq, and sends them to the background.
Then we wait until all of the background processes finish executing.

Run it thus:

./run-parallel.sh php process.php


What is the password if we put blank in type password,retype password coln in the option of password change?

You can try following solutions :

  If you have set password for root access then login as root and set
  new password directly for your administrator login.... If you don't
  set password for root just try it with blank.

OR

  If you boot from a LiveCD/USB and create a new user with a known
  password you can copy the password hash from /etc/shadow in the live
  filesystem to the shadow file in your usual file system on the disk,
  then reboot and use the known password you copied across.

else follow this thread http://ubuntuforums.org/showthread.php?t=1860583.
Hope this will helps.


Multiple commands in sudoers file results in syntax error

man sudoers says:

 A Cmnd_List is a list of one or more command names, directories, and
 other aliases.  A command name is a fully qualified file name which may
 include shell-style wildcards (see the Wildcards section below).

That is, you have to use the full path of commands. A bare word like service is an error.


you might be crashing your X server.  Next time it happens log back in and have a peek at the bottom of the file /var/log/Xorg.0.log.old and see what it has to say.


The easiest solution is to reboot your computer. The change you made is just temporary.

In order to fix the situation without rebooting the computer, you have to find the name of the module that drives your WiFi card and that you just unloaded. The lshw should help you. For example, on my laptop this is the stanza related to the WiFi card:

      *-network DISABLED
           description: Wireless interface
           product: AR9485 Wireless Network Adapter
           vendor: Qualcomm Atheros
           physical id: 0
           bus info: pci@0000:03:00.0
           logical name: wlan0
           version: 01
           serial: 00:08:ca:f7:af:26
           width: 64 bits
           clock: 33MHz
           capabilities: bus_master cap_list rom ethernet physical wireless
           configuration: broadcast=yes driver=ath9k driverversion=3.16-2-amd64 firmware=N/A latency=0 link=no multicast=yes wireless=IEEE 802.11bgn
           resources: irq:17 memory:f7900000-f797ffff memory:f7980000-f798ffff

The driver=ath9k piece on the next-to-last line tells me that the driver module is ath9k. Thus I would have to issue the command

modprobe ath9k

And then wait for the network management service to detect it again and re-establish the connection.


Android not building on Eclipse neither IntelliJ on 12.04 LTS

First, please don't cross-post

Your restriction question
It has to do with weird licensing issues and/or closed source parts.
The openJDK works just fine for a great deal more than it used to.
If people use it and troubleshoot bugs, it can only get better.
It's not Ubuntu's fault.  Get the other guys to change their licensing restrictions.

Now let's get it working
If it's not working and you think you tried everything, first blow out your eclipse installation(un-install and re-install).
If removing and re-installing plug-ins doesn't work, rename your ~/.eclipse folder and start again.
If that doesn't work, delete the .metadata folder in workspace...and start again.
(you're going to have to re-import all your projects)

Install Eclipse from repository(I'm using eclipse from software center and the openJDK).
If you're running x64: sudo apt-get install ia32-libs-multiarch

As root launch eclipse to get the latest platform/PDT updates(they're in /usr somewhere, so you need to be root).
Close eclipse(optionally delete the /root/.eclipse folder).

Launch eclipse as non-root.
Install plug-ins.  They'll be in your ~/.eclipse directory.

If it's already installed
Remove all the components in Window->Android Manager
Update the plug-in through:
Help->Install Software->Already installed -> Show updates -> Install
Re-install all the components.

If it's not already installed
Install the ADT plugin through the Help install software menu.  With this link.
Choose to install the SDKs during the ADT install.
If any part of installing gives you errors, un-install and install that part.

Install all the updates.
If any part of updating gives you errors, un-install and install that part.

This achieves the results below.

Versions:


Does Ubuntu generally post timely security updates?

Ubuntu is currently divided into four components: main, restricted, universe and multiverse. Packages in main and restricted are supported by the Ubuntu Security team for the life of an Ubuntu release, while packages in universe and multiverse are supported by the Ubuntu community. See the security team FAQ for more information.

Since nginx is in the Universe component, it does not get updates from the security team. It is up to the community to fix security issues in that package. See here for the exact procedure.

You can use Software Center or the ubuntu-support-status command line tool to determine which packages are officially supported, and for how long.

Update from the future: Nginx is moving to main so will receive support from the Ubuntu Security Team at that point. If you're unsure whether your version will, just look at apt-cache show nginx and look for the "Section" tag. When that's in Main, you're getting Canonical support for it.


Unable to run shell script inside VI/VIM

That will only work if the script file's permissions have the executable bit set. You can do this through Vim

:! chmod +x %
:! ./%

Or you could just run it through its interpreter manually:

:! bash %


Ubuntu installed into partition of external HD not booting

u should have a problem cause the system look for the MBR of the External HD and find no boot loader , u should install GRUB on the MBR of the Ext. HD or if u run windows 7 u can install EasyBCD and add another boot entry for ubuntu to boot it by windows boot loader , go to this page link and scroll down to the steps on how to do that


It can be done. I'd take a look at the Apple Users sub-forum on ubuntuforums.org for in-depth details.

These are also two good starting points for info: 1, 2.

Also check out which model MacBook it would be. For example I have a crappy plastic one that's a couple of years old. Runs like a trooper. It's designated '5,2'. The model type will be important in determining what needs to be done to get things working.

PRO

Lovely hardware.
Flexibility of GNU/Linux.

CON

Things like special function keys won't work out-of-the-box.
Battery life will be significantly lower [citation needed].
A generally less integrated experience (e.g. I notice that Thunderbolt and WLAN aren't working yet with Natty and the latest offering of MacBook Pros).
Hibernate and suspend tend to be a bit iffy.
You're getting rid of what is, in my opinion, a pretty good OS. If you need the *nix aspect of Linux it's all there. If you want something like the repository system you have options available too.

My idea would be to set-up a dual-boot environment.

Unless you're considering buying a very old Mac notebook, you needn't worry about the PowerPC architecture.

Playing DVDs is easily done. I've never had much fun with 64-bit Flash. Google Chrome arguably works better in Ubuntu.

Hope this helps.


Huawei USB modem not listed on connections menu after config with network manager

in terminal type

cd /etc
nano modules

this will open up modules file with nano editor. add this lines in the end of the file.

usbserial vendor=0x12d1 product=0x1c0b

where 12d1 and 1c0b are the vendor id and product ids gained from lsusb command.
logout and log in.connect usb dongle.


I have found that if I keep trying to start Thunderbird, it may or may not eventually start.

What is more telling is that I have the TB profile and all data files on a separate partition, which the TB launcher seems not to like.  If I open that partition in Nautilus, for example, then start Thunderbird, it will pick up the profile and will start ok.

Design flaw, as I can see it, because Thunderbird should be able to access that partition straight off.


A little digging into sound fonts resulted in finding http://www.hammersound.net/ which has a pretty extensive soundfont library. It's also possible that with sufficient motivation you could create your own by following the specification.

I'm anticipating your next question might be How can i choose soundfont in Qsynth?

Sources:

https://sourceforge.net/p/fluidsynth/wiki/SoundFont/


How to install Firefox 3.5 side-by-side to default Firefox 4?

Instead of downgrading to an unsupported Firefox version, install the User Agent Switcher add-on and set the User Agent to Firefox 3.5. This makes your bank website believe that you're using Firefox 3.5, but keeps the advantages from using Firefox 4.

It's ridiculous that your bank website is forcing you to use an outdated browser. If you really insist on using Firefox 3.5, follow the instructions in How to install Firefox 3.6 and 4.0+ in parallel?, but replace firefox-4.0.tar.bz2 with a download from http://releases.mozilla.org/pub/mozilla.org/firefox/releases/latest-3.5/linux-i686/ (pick a language at your choice)


Precise suddenly showing blank screen on bootup

I noticed from checking your RSS feed that you have a graphics card installed in your computer. Your problem could be a caused by a failing graphics card.


Using or deleting default directories in /home

Several applications use these folders as default locations for files, but you can always reconfigure that in the application. For example image viewers will look for images in Images, audio players will look for music files in Music, Firefox will save downloaded files to Downloads etc. Also it should be noted that the built-in screenshot feature (PrtSc key) dumps screenshot images right into the Images folder.
Myself I use these folders according to their intended purpose, ie. keep my documents in Documents, video files in Videos etc. I even have created multiple subfolders within them. Have no issues with that.
No configuration files are stored in these folders. In Linux, configuration is kept in hidden files or hidden folders ("hidden" in Linux means that the file or folder name starts with a dot, while in Windows hidden files are indicated by a special "hidden" attribute, not by name) within user's home directory. Most of the config is kept in subfolders within .config folder, but some applications have their own locations - for example Firefox keeps configuration in .mozilla folder, and if you install Zoom, it will keep it's configuration and temporary working data in .zoom folder.


wifi connected, but no internet access after update, i've tried it all

I had trouble with this driver and solved it installing the backports... the steps that I followed are here: Can't reach wi-fi signal on Ubuntu, but can do it on other OS/devices (ath9k)


Disable password request from suspend - 18.04

For most Ubuntu distributions and versions try this in the terminal:

gsettings get org.gnome.desktop.screensaver ubuntu-lock-on-suspend
true

If the result is true then set it to false using:

gsettings set org.gnome.desktop.screensaver ubuntu-lock-on-suspend false

Just remember to reset it before your cleaning person comes over for monthly work.


Make a snapshot of Ubuntu for future installs

genisoimage -o /media/cdrom/imagename.iso /

Operating system images are best created offline.  To do this use software like
hiren's boot cd
(includes tons of other very useful/harmful tools), k3b, brasero, partimage, etc.  This is a cross-platform solution as well.

mkisofs is another option but doesn't seem legit to me, not having a manual page.

Credit: http://tuxarena.blogspot.com/2009/03/4-ways-to-create-cddvd-iso-images-in.html;

http://www.linuxquestions.org/questions/linux-newbie-8/using-genisoimage-to-make-an-iso-of-a-live-system-627559/


Automate new route to far network on new PPTP connection

I don't think it's possible directly, because PPP is point to point protocol, i.e. allow connections between two peers only. For this to work, the distant should be configured as a gateway from your server to the far network, but you can't do that remotely through ppp.

You have to set the route explicitly on both computers in another way (iproute2 or iptables for instance).

HTH


Can I restrict root user from installing or Uninstalling Packages

No.
root is the super user. It can do everything by definition. No way to put any restrictions on the system that couldn't be reverted with root rights again.


The simplest way to do this is to boot from a USB drive with the Ubuntu live edition or some other bootable linux and then run gparted from there. You can then change the swap partition size and add the freed up space to your root partition (the one mounted as /).


The data for chromium will be in one of the hidden directories in hour /home/username folder, either ~/.chromium or somewhere in ~/.config  As I don't have chromium installed, I don't have the exact location.

According to chromium.org (which you could have checked yourself) the data is stored at ~/.config/chromium


With the tool WinSCP you can copy it to your windows machine. It might be a little slow though.

To create only one big file which would drastically increase the speed you would just need to create a tar.gz file of the files you want to transport.

tar -czf backup.tar.gz /path/to/file /path/to/file ....

Connect with WinSCP and copy it to your local drive.

You can also preserve permissions with -p etc. if you want more information look up the manual of tar with man tar.


'Permission denied' problem with 'scp' while building blockchain

It looks like you're trying to scp a file from one machine (or virtual machine) to another.  When you issue the scp command, you authenticate to the remote system using the user ssgyee, as this is the user you specify in the command.  This does not match the user fabric, which is likely the owner of the /home/fabric directory.

As a very quick test, you could try scp'ing the file to the remote /tmp directory, or a directory in /home/ssgyee.  You should have write permission to these directories, and scp should work in this test case.

On the remote system, take a look at the permissions of the target or destination directory:

ls -lsha /home/

I suspect that this will show fabric:fabric owning /home/fabric, and this is a sane and secure default.  Each user has a directory within /home that they control.  If you want the to be able to write to the /home/fabric directory, you will need to authenticate as fabric, or add ssgyee to the fabric group using groupadd, or by editing /etc/group.  In addition to being in the group, the /home/fabric (or any other directory within) will need group read, write and execute permissions.

Files belong to users and groups.  Files have specific permissions, per user, group, and then 'all others'.  Linux users and groups, as well as file ownership and permissions are essential to understand when dealing with Linux.

  Remember that file permissions are a security feature. Whenever you allow anyone else to read, write to, and execute files, you are increasing the risk of files being tampered with, altered, or deleted. As a rule, you should only grant read and write permissions to those who truly need them.


This is a known bug in gnome-settings-daemon, first documented 2015-03-27.


It looks like it uses upstart, instead of System V init.  Take a look at /etc/init/ssh.conf.

Take a look at Anarci's post explaining Upstart from your other question:  How to write an init script that will execute an existing start script?

I don't know much about Upstart, but I do know that it is intended to replace System V init, and is used for many of the startup processes in Ubuntu now.


chroot - networking doesn't work for apt-get

If you have trouble accessing your network after chroot, you probably use DHCP and can work around this by adding OpenDNS name servers to your /etc/resolv.conf after you use chroot:

nano /etc/resolv.conf

In the open file, add OpenDNS name servers

nameserver 208.67.222.222
nameserver 208.67.220.220

Source


Can't access BIOS on dual boot system 18.04 with Win10

If you can not access directly in the BIOS with F2 or Del you probably did not do a good boot of Windows at first.When you want to have a dual boot, you first need to install windows with the correct BIOS settings and then boot 18.04.You must avoid UEFI mode in bios,try with legacy mode.
Good luck.


Scanner isn't recognized in my all in one printer


Having fonts-noto-color-emoji was not enough also for my Ubuntu 18.04 system.

However, there is another answer to the question you linked to:
https://askubuntu.com/a/1029675/188679

Create a file ~/.config/fontconfig/conf.d/01-emoji.conf and put the following content inside:

<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE fontconfig SYSTEM "fonts.dtd">
<fontconfig>
  <alias>
    <family>serif</family>
    <prefer>
      <family>Noto Color Emoji</family>
    </prefer>
  </alias>
  <alias>
    <family>sans-serif</family>
    <prefer>
      <family>Noto Color Emoji</family>
    </prefer>
  </alias>
  <alias>
    <family>monospace</family>
    <prefer>
      <family>Noto Color Emoji</family>
    </prefer>
  </alias>
</fontconfig>

Then, run fc-cache -f -v. Finally, restart Chrome.


Sound problem, Dummy output sound problem on Ubuntu 18.04.4

I had a similar issue on ubuntu running light x11. Try if it works for you too.

sudo apt-get install pavucontrol
sudo apt-get install pulseaudio
pavucontrol

Now switch to "Configuration" tab (You might see only 2 tabs. Go right from here.)
Select something on the lines of "analog sterio".

Hope it works for you.


This appears to be a fault with the firmware.  Some users have found that "using gdisk convert gpt to mbr, setup boot-repair, restore mbr and then restore grub seems to help".  See bug report 1314895


Single click in Gedit file browser to open files & folders

The file browser in Gedit on a normal Ubuntu distribution is simply an extension of the Nautilus file manager.  If you want the files to open with a single click, you will have to enable single click opening in the Nautilus file manager.

Go to any folder and select from the Menus Edit > Preferences.  Then under the Behaviour tab, select the Single Click to open items radio button.

The downside is that this is the way your whole operating system will work from there on.  However, this will enable single click opening in the gedit side panel.


Changing behavior of bash prompt when functioning as root

It will also depend on how you become the root user. You need to make the change in the root user's .bashrc if you are using something like su - root or sudo -i, where you read in the environment.

With sudo -s, you should be reading your own .bashrc.

Consider adding some printf or echo statements to debug your code, to tell you when it has executed.

Use the id command to make sure you are who you think you are:

root@tau:~# id
uid=0(root) gid=0(root) groups=0(root)


Your problem has nothing to do with python-numpy. The cause is a previous installation of texlive.

Change your download server

sudo sed -i 's://ch\.://:g' /etc/apt/sources.list
sudo apt-get update

Reinstall the package

sudo apt-get clean
sudo apt-get install -f
sudo apt-get install --reinstall texlive-fonts-extra-doc

And as you said, you have only 500 MB RAM for your virtual machine

$ free -m
total used free shared buffers cached
Mem: 489 469 19 8 2 70
-/+ buffers/cache: 396 92
Swap: 0 0 0

give your system more RAM =)


No contacts in Empathy after upgrading to 3.3.2 (Ubuntu 11.10 x64)

I believe you are hitting this bug https://bugs.launchpad.net/ubuntu/+source/empathy/+bug/1018504. This should have been fixed upstream and works now in quantal and has been pushed to precise (12.04) as well.


incron job does not write to temp directory

Ok, as hinted in the comments, I figured it out. I am leaving this answer because I did not find anything on google regarding incron (or cron) and tmp directories, and the mechanisms seems rather new (it wasn't there in my old 18.04 installation).
The systemd service for incron has the line
PrivateTmp=true

which causes the service to have a private tmp directory below /tmp. I did not want this behavior, so I disabled it using
 systemctl edit --full incron.service

and removing the line (which creates a new version of the original service file from /lib/... in /etc/...).
I THINK I also observed some further weird behavior before this with permission issues inside the private tmp directory, but I didn't investigate further because I needed a global tmp for other reasons anyway.


You can use the GLOBIGNORE variable of bash:

GLOBIGNORE=ComixCursors-0.8.2.tar.bz2

Now run:

mv ComixCursors* /usr/share/icons/

Also note that when you are done with the operation it is good to unset the variable to avoid unwanted scenarios:

unset GLOBIGNORE

Or

GLOBIGNORE=


Problem with uploading files to LAMP server

hmm..
for localhost/phpmyadmin, try created a symbolic link named phpmyadmin in /var/www

sudo ln -s /usr/share/phpmyadmin /var/www/phpmyadmin

when your phpmyadmin folder is located in /usr/share/ that work in most problem with 404 page, but if that not working try this thread

then for your problem about folder var/www ..
are you doing that as root or user? because /var folder can only access with root permission..

sudo -i

can switch you to root,when change like this..

root@comp:/home/user#

then you can edit with text editor like gedit or geany

geany var/www/info.php

with this you can edit and save, if you want to add file to var/www try this (from a root shell)

nautilus

if you want know more or want edit all folder and file without root try this thread

i hope that help


whats wrong.. I cannot start apache2? using the comand : /etc/init.d/apache2 start

Address already in use: AH00072: make_sock: could not bind to address [::]:80

As the error states, then You already have a service listening to port 80. Try:

service apache2 restart

It could be apache thats already running, thus you can try restart it. If you still have problems, check your system for for other processes that might use port 80.


How to remove program which I still see in GNOME Dash after uninstalling it?

Applications that appear in GNOME Dash (also in the menus of other desktop environments) usually have a .desktop file either in ~/.local/share/applications or /usr/share/applications.
Sometimes, if you don't install an application with apt, some .desktop files may remain in these places as leftovers.
Just delete the .desktop file corresponding to the application you want to remove from the Dash (Fritzing in your case) from the aforementioned places and your issue should be solved.


Virtual box not running - '/etc/init.d/vboxdrv setup' issue

Since no helpful answer is found, here is what helped me... :

uninstall the exisiting VB :

  sudo apt-get purge virtualbox

Dependency

First install the dependency package to avoid error.**

sudo apt-get install dkms

To add PPA

Open a terminal and run the following command to download and  install the key from Oracle. Issue the password for the user when prompted.

wget -q http://download.virtualbox.org/virtualbox/debian/oracle_vbox.asc -O- | sudo apt-key add -

After installing the Oracle public key, use the below command to add it to your repository.

For Ubuntu 13.10

sudo sh -c 'echo "deb http://download.virtualbox.org/virtualbox/debian saucy contrib" >> /etc/apt/sources.list.d/virtualbox.list'

For Ubuntu 13.04

sudo sh -c 'echo "deb http://download.virtualbox.org/virtualbox/debian raring contrib" >> /etc/apt/sources.list.d/virtualbox.list'

For Ubuntu 12.10

sudo sh -c 'echo "deb http://download.virtualbox.org/virtualbox/debian quantal contrib" >> /etc/apt/sources.list.d/virtualbox.list'

For Ubuntu 12.04

sudo sh -c 'echo "deb http://download.virtualbox.org/virtualbox/debian precise contrib" >> /etc/apt/sources.list.d/virtualbox.list'

For Ubuntu 11.10

sudo sh -c 'echo "deb http://download.virtualbox.org/virtualbox/debian oneiric contrib" >> /etc/apt/sources.list.d/virtualbox.list'

For Ubuntu 11.04

sudo sh -c 'echo "deb http://download.virtualbox.org/virtualbox/debian natty contrib" >> /etc/apt/sources.list.d/virtualbox.list'

Once you added the repo using the above command,
Update your repository.

sudo apt-get update

To Install

Now install the virtualbox 4.3 using the below command.

sudo apt-get install virtualbox-4.3

To install the previous version just replace 4.3 to 4.2 / 4.1 / 4.0 / 3.2 in the above command.

To Open

Go to dash and type Virtualbox, click on the icon.

here is  source url


Starting byobu with a config file, but getting all the byobu niceties, too?

Okay, there's a couple of ways you can do this...

You can put your customizations in ~/.byoburc, which is sourced last
You can set an environment variable, BYOBU_WINDOWS=/path/to/a/config, and then run byobu. Many people use this to start different byobu sessions with different windows open at launch. For more information here, see the WINDOWS section of the manpage at: http://manpg.es/byobu.1


$ awk '/ab|bl/{s[$1]+=$2} END{for (k in s) print "sum of",k,"is",s[k]; if (a["ab"]>a["bl"]) print "ab is greater"; else print "bl is greater";}' myfile
sum of ab is 12
sum of bl is 9
bl is greater

How it works

/ab|bl/{s[$1]+=$2}

For lines that contain either ab or bl, sum column 2.
After we have finished reading myfile, use print statements to display the results:

END{
    for (k in s) print "sum of",k,"is",s[k];
    if (a["ab"]>a["bl"])
        print "ab is greater"
    else
        print "bl is greater";
 }


How to remove grub2 in favor of another linux installation grub

The last installed OS, which is Ubuntu, normally takes over the bootloading process.
It's strange that grub in Ubuntu has failed to detect Arch Linux.

Edit: The method suggested above by NikTh to mount Arch Linux partition before updating grub might probably be the solution to this problem.

Otherwise, you have 3 options that I can think of:

Manually entering a grub entry for Arch Linux, which you won't have to enter again if you include it in this file as well: /etc/grub.d/40_custom
Trying Plop Boot Manager or Rescatux (via a live CD/USB) to boot Arch Linux and re-installing grub there so that it will take over the bootloading process as you wanted.
Reinstalling Arch Linux so that it takes over the bootloading process as you wanted.


sshfs with fstab: wrong uid, gid and Input/output error

I have this exact setup working:

My OS as 18.04.2:

] lsb_release -a
No LSB modules are available.
Distributor ID: Ubuntu
Description:    Ubuntu 18.04.2 LTS
Release:        18.04
Codename:       bionic

My SSHFS version:

] sshfs -V
SSHFS version 2.8
FUSE library version: 2.9.7
fusermount version: 2.9.7
using FUSE kernel interface version 7.19

Creating the base:

] sudo mkdir /path/to/mount
] sudo chown $USER: /path/to/mount
] sudo nano /etc/fstab
] ssh REMOTEUSER@HOSTNAME touch /path/to/share/testfile

/etc/fstab entry: (you can remove the port entry)

REMOTEUSER@HOSTNAME:/path/to/share /path/to/mount fuse.sshfs port=PORT,_netdev,follow_symlinks,identityfile=/home/LOCALUSER/.ssh/RSAKEY,allow_other,uid=1000,gid=1000 0 0

Testing mount:

] sudo mount -a
] mount | grep HOSTNAME
REMOTEUSER@HOSTNAME:/path/to/share on /path/to/mount type fuse.sshfs (rw,relatime,user_id=0,group_id=0,allow_other,_netdev)
] ls -l /path/to/
...
drwxr-xr-x 1 LOCALUSER LOCALGROUP 4096 Jun 28 09:20 mount/
...
] ls -l /path/to/mount/testfile
-rw-rw-r-- 1 samh samh 0 Jun 28 10:45 /path/to/mount/testfile


13.04 wont start, "cant identify screen, graphics card etc..." error

So I reinstalled 13.04 after struggling with modifying the boot commands which didn't seem to accomplish much.  I gave a larger disk space allocation, it started fine.

thank you all for your help

thanks
stephen


Step number one:
a disk image (a *.iso for a Linux distro) is to be written with special software (disk image writer, USB boot disk creator, ...) that creates the disk by writing "blocks" from the disk image onto the stick.

Most notably

the USB stick does normally NOT need to be "formatted" before starting.
the image file is NOT to be "File copied" to the stick.
the result after writing is at least one partition with files.

Step number two:
After this process you will see a number of files on the stick - it may be necessary to remove (use "safe remove"!) and reinsert the stick into the computer though.

Step number three:
When done properly the stick will now be bootable, you might need to tell the computer to actually use the stick as a bootable device - often by pressing F11 or F12 as the computer BIOS starts - then selecting the USB stick in the menu that appears.

In this state the stick is your "Live (as in 'try') Ubuntu", "Last resort salvage disk" and "Installation media" in one package.

NOTE: A "Live" system like this has/does not (at least historically) have/had any writable area, in which case any files you create or download cannot be retained AFTER a reboot - unless you make sure to 'mount' any writable media; e.g. your live "/home", or what you intend to be that.


Under linux, the only compatible browser is Google chrome. Using it, you will find no problems watching movies and TV shows.


Installation Trouble with the Ubuntu 14.04 iso

Well, you have two options.

There is usually a third choice where you can partition your hard drive with gparted during the installation. Then, you can install Ubuntu on the new partition.
You can just create a new Ubuntu install disk.

Good Luck!


Can I use WUBI as an offline installer for 12.10?

The name ubuntu 12.10 is quantal quetzal. A name is associated with each version of ubuntu.

Yes you can do it offline.

Custom theme/ boot screen or anything inside windows 7 doesn't affect dual booting.

wubi runs from from windows.  It is nothing but a program which runs from boot time.

It creates a virtual disk. So as long as the virtual disk are present you can have your ubuntu back after reinstallation of windows.

If ubuntu doesn't boot remove from add remove programs and reinstall.

I highly recommend you to go through https://wiki.ubuntu.com/WubiGuide


UDEV: how to match SYMLINK during remove event?

%k (variables) are not to be used in the rule matching condition.

  String substitutions

  When writing rules which will potentially handle multiple similar devices, udev's printf-like string substitution operators are very useful. You can simply include these operators in any assignments your rule makes, and udev will evaluate them when they are executed.

Source: Writing udev rules by Daniel Drake (dsd)
Use directly same add condition (you have chosen a long path):

ATTRS{manufacturer}=="Zebra Technologies", ACTION=="remove", RUN+="/usr/local/bin/reinitZebra.sh"


How do I modify an Ubuntu ISO and keep it bootable?

You can use the very powerful tool live-build to create a custom ISO image of a debian based system such as Ubuntu.
  Modifying the GRUB should be pretty straightforward: Once you installed live build you have to redact your grub.cfg file and place it in the folder /includes.chroot/boot/grub/.

To go faster you can use first a ubuntu "seed" that will populate your live build working directory with everything you need to build a generic Ubuntu ISO.
   Than you can add your custom grub.cfg file where it has to be and build the image.
The live-build manual is very good but it is quite "intense": Live Systems Manual

Your modification is failing because you need to "build" the whole ISO image with the modifications you made.
 Depending on your resources (and the amount of packages that you include in your live) it can be quite long to create the ISO

I found this manual Checking the Ubuntu documentation: LiveCDCustomization
  The method is different and the manual has links to other manual (like "building a Ubuntu server image")
  You should have a look at it.

I remember that I also tried with a GUI when i was playing around with ISO building, I cannot remember it names. I did not have that much success with it. But for a little modification it should work. I guess that you'll find it with some research: There are not hundreds of GUI like this one.
  Cheers


They're both POSIX systems but no. Most OSX applications rely on various libraries (eg: Cocoa -- like GTK but not GTK) that aren't open source and therefore can't be ported.

I think there has been some interest in writing a layer like Wine to replace things like Cocoa but as far as I know, nothing has ever come of it.


Can't boot 16.04.1 from USB on Windows 10 HP laptop

Alright, I figured it out: I was trying to run it from the USB 3.0 port when it wasn't booting up, so I tried it on the 2.0 port and it worked fine. And I noticed a setting in the BIOS called "USB3.0 Configuration in Pre-OS," which I changed from "Enabled" to "Auto." Thanks to this, I can now boot from the USB 3.0 port!

I think I'll keep the other boot settings. Thanks anyway, guys!


find host ip address when guest machine is connected to host

Using NAT

In VirtualBox using regular NAT networking you can reach the host itself by using the gateway IP address. In Windows guest OS you can see this using the network adapter properties as shown below:

Host-only networking

The alternative is to connect another network adapter using "Host-only" networking as shown below.

First add a Host-only network entry in the global Virtualbox network settings:

Then add it to the networking settings of the guest:

You will then be able to reach the host at 192.168.56.1 (magic numbers here, I know!).


The best way to report a crashing Xorg would be to report a bug on Launchpad, using the ubuntu-bug utility.

Instructions for doing this are available here. Good luck!


Dell Studio 1569 Cannot Shutdown in Ubuntu 11.10 or 12.04

I fixed the problem.

Dell's ACPI support is incredibly bad.

Because of this, you have to open up the grub configuration file and add the property acpi=force.

gksu gedit /etc/default/grub

Once there, find where it says, GRUB_CMDLINE_LINUX_DEFAULT="quiet splash"

Change this to read:

GRUB_CMDLINE_LINUX_DEFAULT="quiet splash acpi=force"

Save it, then run this command to update your grub configuration.

sudo update-grub

Finally, reboot, and your machine should now be able to shutdown and reboot without correctly!


According to the thread linked by roadmr, this works:

$ sudo apt-get remove overlay-scrollbar


How to remove a few seconds from .mp4 file using ffmpeg?

Fast but possibly not accurate

This avoids re-encoding, but you can only cut on key frames, so it may not choose the duration you want.

Create segments:

ffmpeg  -t 00:11:00 -i input.mp4 -map 0 -c copy segment1.mp4
ffmpeg -ss 00:11:10 -i input.mp4 -map 0 -c copy segment2.mp4

Create input.txt:

file 'segment1.mp4'
file 'segment2.mp4'

Concatenate with the concat demuxer:

ffmpeg -f concat -i input.txt -map 0 -c copy output.mp4

Slow but accurate

You can try to do this without re-encoding, but since you can only cut on keyframes it will possibly not align with your desired cut times, so if you need accuracy you'll need to re-encode:

ffmpeg -i input.mp4 -filter_complex \
  "[0:v]trim=end=660,setpts=N/FRAME_RATE/TB[v0]; \
   [0:a]atrim=end=660,asetpts=N/SR/TB[a0]; \
   [0:v]trim=start=670,setpts=N/FRAME_RATE/TB[v1]; \
   [0:a]atrim=start=670,asetpts=N/SR/TB[a1]; \
   [v0][a0][v1][a1]concat=n=2:v=1:a=1[v][a]" \
  -map "[v]" -map "[a]" output.mp4

(a)trim will allow you to choose your clips.
(a)setpts resets timestamps.
concat concatenates the clips.

See FFmpeg Filter Documentation for details on each filter.


Unable to set default gateway on a hosted Windows virtual server

Frustratingly, I had to rebuild the Ubuntu server to get this working. I had it connecting to the network before the problem as I was running updates and using apt-get. Having followed the same steps as I did yesterday and installing the same packages the machine is working without any problems.

The only thing I can think of is that either Hyper-V has corrupted the installation at some point or that there have been problems when the machine has gone into hibernation overnight. I've suffered problems with network connectivity after hibernation with Hyper-v & Ubuntu before but that was on an older version of the software and a re-start of the Ubuntu virtual server stopped the problem - this did not work today and the rebuild was the only solution.

I'd like to thank Pl1nk for sparing his time and taking me through all of the various network settings of the Ubuntu box as he tried to solve this problem.


I could solve this problem by adding http://rubygems.org to sources of my gem.
Also I removed https://rubygems.org from it.


Call a command as if it were in called in another directory

use parentheses, so the cd occurs in a subshell:

(cd other_dir && xxx)

When that ends, your current working dir will not have changed.

cd can fail, so use && to conditionally execute the program.


secure boot problem on acer nitro 5 (2021)

I took the easy way and just disabled secure boot, then everything was fine - apart from no drivers for the wifi chipset (yet).


Trying to use amd fglrx driver, unity does not work ubuntu 12.10

The error indicates that you need to have the kernel headers.  Try installing just the kernel headers:

sudo apt-get install linux-headers-generic

and repeat your previous installation steps. If you have a hybrid graphics system (AMD + Intel graphics), the following instructions were quite helpful:

How do I get AMD/Intel Hybrid Graphics drivers to work?


Playing Encrypted DVDs

To play encrypted DVDs, the libdvdcss2 package is essential. libdvdcss is a simple library designed for accessing DVDs like a block device without having to bother about the decryption.

Below are the instructions for installing the packages using the command line.

With the entire Medibuntu repository

Adding the repository

The following bash command adds Medibuntu's repository to Ubuntu. It also adds Medibuntu's GPG key to your keyring, which is needed to authenticate the Medibuntu packages.

This command should be run in the Terminal :

sudo wget --output-document=/etc/apt/sources.list.d/medibuntu.list http://www.medibuntu.org/sources.list.d/$(lsb_release -cs).list && sudo apt-get --quiet update && sudo apt-get --yes --quiet --allow-unauthenticated install medibuntu-keyring && sudo apt-get --quiet update

If you have added the entire Medibuntu repository, you just need to install the package using APT:

sudo apt-get install libdvdcss2

With individual packages

If you wish to install just libdvdcss2, you can first download the individual package and then install the package.

i386:

wget -c http://packages.medibuntu.org/pool/free/libd/libdvdcss/libdvdcss2_1.2.9-2medibuntu4_i386.deb
sudo dpkg -i libdvdcss2_1.2.9-2medibuntu4_i386.deb

amd64:

wget -c http://packages.medibuntu.org/pool/free/libd/libdvdcss/libdvdcss2_1.2.9-2medibuntu4_amd64.deb
sudo dpkg -i libdvdcss2_1.2.9-2medibuntu4_amd64.deb

Source How to add a mediubuntu repository


How to save PDF annotations in a separate file?

Xournal can be used to take notes and annotate PDF files. Annotations are saved in a separate .xoj file. If the original file is example.pdf, the corresponding Xournal file is named example.pdf.xoj.

Is there way to parse xoj files?

xoj files are gzipped xml files. You can uncompress them by renaming them to xoj.gz and running gzip -d on them. Then you can use xml or text processing utilities on them. For example, you can use grep to search for notes that were typed in as text.


How can I remove and purge EasyScreenCast from Ubuntu 20.04?

I found the application called Tweaks, I can turn it off. I followed the steps from the website.
Open the terminal and type the following:
    sudo apt-get update
    sudo apt-get install gnome-tweaks
    sudo apt-get install gnome-shell-extensions

And then, open Tweaks and turn if off.
Later I found how to remove it, go to there: https://extensions.gnome.org/local/ and then, click X. That's all.


Can't access wireless network in ubuntu 12.04

At first go to Settings - Additional Drivers and try to install wireless driver.

If it's already installed and you still don't have wireless option try installing Wicd network manager. Install it by Ubuntu Software Center or by terminal

sudo apt-get install wicd-daemon

Then start it. Under Applications-Internet, or by terminal just type wicd.

Check now if you can see and connect to any wireless network.

**In case of problems while installing (just installed it via Ubuntu Software Center, so no problems there)..
http://wicd.sourceforge.net/moinmoin/Wicd%20on%20Ubuntu


Using sed to replace the first match in a file - why do subsequent lines get printed?

'n'
     (next) If auto-print is not disabled, print the pattern space,
     then, regardless, replace the pattern space with the next line of
     input.  If there is no more input then 'sed' exits without
     processing any more commands.

The -n option disables autoprint.

You replaced # with = in the first line with # (the pattern space). The pattern space then got printed by n because there was no -n option. Then the pattern space was replaced with the next line, then we looped by to n, which caused the pattern space to be printed because autoprint was not disabled, and then there were no more lines of input so sed exited.

Maybe it's clearer if you use -n and add a p to your loop:

$ sed -n '/#/ {s//=/; :k n;p; bk}' rgb
UPPER (#2): "RED GREEN BLUE"

after n, p forces printing of all but the first line.

$ sed -n '/#/ {s//=/; :k p;n; bk}' rgb
lower (=1): "red green blue"
UPPER (#2): "RED GREEN BLUE"

before n, p forces the pattern space to be printed every time. n never prints anything, because autoprint is disabled.

Try removing the -n option with the p command in different positions in the loop.

If you only want to print one line after changing it, you could use q:

$ sed '/#/ s//=/;q' rgb
lower (=1): "red green blue"


VBox_StopRestoreStart.sh

#!/bin/bash
if [ -z "$1" ]; then
        echo "Usage: $0 VMNAME_or_UUID"
        exit 1
fi
set -x
VBoxManage controlvm  "$1" poweroff  #enforce turnoff
VBoxManage snapshot   "$1" restorecurrent   #retore state
VBoxManage showvminfo "$1" | grep State   #display state to ensure
VBoxHeadless -s       "$1"  #run in headless mode in background

source


This was solved by removing ~/.xinputrc (which is what im-config -n REMOVE appears to do). Thank you for your help!


How to connect ubuntu 16.04 via putty from outside IP

First you need a static IP address for your home system or dynamic DNS entry.

In most companies outgoing traffic to 22 is blocked by the firewall. The easy way around that ist changeing the ssh port to 80 or 443.

If your company invested in a next generation firewall, it can even detect ssh protocol an block that too. In that case use OpenVPN and hide the VPN traffic behind https.

Keep in mind, that there might be a reason, why your company doesn't wont you to use ssh to your home machine!


How to fetch a image from online(http) and make it as a wallpaper using Ubuntu terminal

Well, you could make it a two step process:

wget url_of_image -O wallpaper.jpg
gsettings set ....


fontconfig library not found while configure for building octave 3.6

Somehow I fixed the problem.  I don't even know what steps I took, but I was able to compile Octave 3.6.1.  Unfortunately, the new Octave binary failed in 1 make check test. :(


Is it possible to rebind Ctrl+Alt to the Meta key?

It doesn't appear to be possible, you'll have to find some other key that you use less often.


How can I install ubuntu one after upgrading to ubuntu 14.04?

Neither the ubuntuone-client, nor the ubuntuone-control-panel packages are available for Ubuntu 14.04 from the repositories. Considering how close we are to the shut down of the service you should take this opportunity to find an alternative right away.


I think you'll have to convert your .flac files to apple loseless format (ALAC) to be able to play them with your ipod. You'll also be able to play your alac files using music player available on Ubuntu.

Here is explanations to convert flac files to alac files.

If you've a lot of files to convert, it can be a good idea to write a script that will convert your files. If you need help for that, ask a new question.


You might want to give full paths in the script not just relative ones

backup/world should be something like /home/ftb/backup/world (or whathever the full path to that folder is).

The same thing goes for the second line.


Wired connection started failing out of nowhere

Here are a few steps to try:

Unplug and replug the ethernet cable. (Do you have both lights on?)
Run ifconfig to see if the connection is there.
Disable ipv6 in Network Settings to make sure there is no router conflict.
Find an alternate way to connect to the internet.  Update everythying.
Look in /etc/modprobe.d to see if your Ethernet device is blacklisted.
Change the ethernet cable.

It turned out to be a bad cable!!  SOLVED


How to install Edimax AC 600 Wi-Fi adapter drivers on Ubuntu 20.04

This device seems to have a realtek ac chipset from the rtl88xxau family.
It would be useful to provide the stdout of

lsusb

You can try to install the following dkms package:

sudo apt install rtl8812au-dkms

In case it does not work, install the drivers from aircrack-ng github repository (and you will also have monitor mode)

sudo apt install git build-essential bc libelf-dev
git clone  https://github.com/aircrack-ng/rtl8812au.git
cd rtl8812au
sudo ./dkms-install.sh


Ubuntu 16.04 install no desktop icons, blank desktop (just wallpaper), tried to reinstall compiz

Have you tried reinstalling unity? That is the main Ubuntu UI program. If that is unsuccessful, try doing

sudo apt-get purge compiz && sudo apt-get install compiz


Can't see internal drive when using Ubuntu's LiveUSB

Two things need to be done:

Create empty space on Windows
Turn off Fast Startup

Create empty space on Windows
The first step is to allocate enough space for Ubuntu. With your 250 GB drive 50 GB to 100 GB could be a good balance for Ubuntu.
In Windows 10 start menu type "Disk Management" and a screen like this appears:

On this machine "Disk 1" is used to store 3 Ubuntu partitions and one shared Windows/Ubuntu data partition.
In order to create extra Ubuntu partitions, the Windows Partition was shrunk from 477 GB to 363 GB.
Make sure you create empty space at least 20 GB in size however 50 GB to 100 GB would probably suit your needs.
To create empty space you need to shrink the size of the Windows 10 partition.
Do not worry about creating a partition in the empty space. Ubuntu Installer will do that for you.

Turn off Fast Startup
When you boot your computer Windows 10 has a feature to speed up the boot process. This feature though makes it impossible fir Ubuntu to access Windows (NTFS) partitions because they are "locked".
In Windows 10 click the start menu and type "Power Options". In the screen that appears click Choose what the power buttons do:

Notice the check mark next to Turn on fast startup (recommended). Uncheck it.
Note to keep Hibernate unchecked.