Installing Ubuntu 12.04.3 UEFI/CSM problems

First, I'm not sure that Universal USB Installer is the best tool for creating the USB drive. This question and answers cover the issue, so you may want to consult it. In Linux, dd works, and there are ports of dd to Windows, such as dd for Windows and WinDD. I haven't tried either of those tools, so I can't promise either will work for you.

Second, the problem with the installer not "recognizing" Windows is deceptive. The installer is probably detecting the Windows partitions just fine, but isn't giving you the option to automatically resize and set up Linux next to them. In this case, you must use the (poorly-named) "Something Else" installation option, as described here (among many other places). Note that some sites describe use of this option on BIOS-based computers, but one detail is different for EFI systems: You must create an EFI System Partition (ESP) and tell Ubuntu to use it by marking it as an "EFI boot partition."

Finally, if all else fails, it is possible to install Ubuntu in BIOS/CSM/legacy mode and then install an EFI boot loader for Linux after the fact. rEFInd is likely to be the easiest to install, although you may need to install an EFI filesystem driver for ext4fs to get it to work.


Try the live cd of the latest ubuntu distro. As that should have a later kernel which may resolve the problem.

EDITED

So newer ubuntu distro live cd didnt work. Have you checked if you have pulseaudio install. Try reinstalling it using sudo apt-get install --reinstall pulseaudio then restarting your computer. Also use the dash to open additional drivers, check if there is a driver that your not using. If there is a driver your not using try clicking use and see if that make a difference.


Microphone doesn't work with Skype and pulseaudio

The microphone doesn't work with Skype. I see this issue Skype has been debating for years. What's wrong with Skype?
In my case, only Skype alone does not work with the microphone of both (1) the webcam and (2) the headset. All other applications work, for example the simple app Audio Recorder and the complex app OBS Studio. Their work from the microphone is visible on the Record tab in Pulse Audio, and only for Skype this tab is empty.


Microphone not working correctly on Lenovo B50

After some investigations I found the following:

Even if you do not allow Skype to adjust the sound level automatically, Skype adjusts the level of microphone down to zero, no matter if it is internal or external microphone.

Take a sound mixer, such as as veromix. Split the sound coming from microphone into right and left channel by unlocking the sound level adjustment. Then adjust right channel to zero and left channel to maximum. After that you can lock the level adjustment again, the position of level adjustment is then about 50%.

After that microphone in Skype will work normally.

Do not modify sound level for input e.g. in pulseaudio, it will give you the old situation without microphone sound. This adjustment will remain also after Restart.


Nvidia graphics driver crashes in Ubuntu 18.04

I'm having the same issue and I haven't found a permanent solution, although you can switch back to the nvidia profile via tty.
After you boot and before you log in with gdm switch to *tty you can switch the profile back to nvidia via this command:
sudo prime-select nvidia

Then reboot and login should work like before.
On my laptop this was Fn + Ctrl + Alt + F2


Deja Dup: Backup location is too small. Try using one with more space

I added another .5 GB from referrals on ubuntuone, bringing the total storage up to 10GB.  Now the backup is proceeding with no problems.  I'm not sure exactly why this is working now.  But it would not proceed with the backup until there was 10GB of space.  The backup is only taking up 6.2GB of space.  I think Deja Dup should provide more information when failing a backup.


I cannot use MacBook Pro 2017's built-in keyboard and touchpad on Ubuntu 18.04

For the MacBook Pro 2016 to 2017 you will need an external USB keyboard and Wifi to get work with Linux:
https://nixaid.com/linux-on-macbookpro/


Nemo sort php files and javascript as type program

Click with right mouse button on your sort bar and choose MIME Type or Detailed Type.


This method works for Firefox 61 on Ubuntu 18.04.

Install the following fonts and everything works fine.

ttf-dejavu
ttf-liberation

Source: How do I fix incorrectly displaying fonts? - Firefox Support Forum


triangle with exclamation mark error symbol. Ubuntu 14.04

Basically the errors are caused because the repo's you are trying to access no longer exist. You need to remove them from your list.

There are a few ways to do this .. if you have Software & Updates in 14.04 (sorry don't have that version installed atm so I'm not sure if it is installed) Launch the program and go to the Other Software tab and uncheck the two relating to ppa.launchpad.net/rohityadav/vlmc. This will remove those errors

If you want to do it manually you would need to edit the /etc/apt/sources.list file and if the ppa's exist in there you can delete them or put a # in front of the lines that contain them. If you don't see it in there then you can check /etc/apt/sources.list.d folder and remove the ones in there that relate to the rohityadav ppa's.


Ubuntu Hangs & Shows a Black Screen on Install with ASUS Z97-Deluxe & GTX 770

After hours of troubleshooting, I figured out the issue.  It turns out that the video issues were a bit of a red herring, but I'll start by explaining how they were obfuscating the problem and how to get around that.  It turns out that Ubuntu was hanging during startup, and I couldn't see why.  To get around that I pushed enter during boot (while the keyboard + person was on screen) to bring up the boot menu, pressed F6 to edit boot options, then manually replaced "quiet splash" with "nomodeset", and then launched Ubuntu from disk.  That allowed me to read the startup output and see what was going on.

It turns out that the ASUS z97-Deluxe has 10 SATA ports on two connectors that are controlled by two separate controllers.  The top 4 ports on the A set of connectors and the two ports closest to the board on the B set of connectors are controlled by the Intel controller, and the remaining ports are controlled by the ASMedia controller.  The ASMedia controlled ports can apparently be used for disk drives only and I had an ATAPI DVD drive hooked up to one of them, which was causing Ubuntu to hang.  It's a really confusing configuration and one that I'm sure will cause others trouble as well, so hopefully they manage to find this post (or get amazing help on IRC at #Ubuntu like I did, can't thank those folks enough!).


I found out the answer, the command should look like this:

sudo apt-get purge linux-image-4.2.0-{34,35,36,38}

And it worked like a charm :)


How to set notify-OSD as default in Gnome Classic session?

You should uninstall notification-daemon, as notify-osd replaces it, however some apps might use notification-daemon first if it is available. More info here on the Ubuntu wiki help page for NotifyOSD


Sounds like you're still running NodeJS on port 80. You can only run one thing on a port at a time. You need to:

Shift this node application back to a high port. That means changing your .listen(80, ...) to .listen(8000, ...) or some other port.
Have Nginx reverse-proxy back to that port:

server {
    listen 80;
    server_name example.com;

    location / {
        proxy_pass http://localhost:8000;
        proxy_set_header Host $host;
    }
}

What you did with setcap doesn't need to be reversed. It's not what is blocking nginx from loading on port 80.


I am not sure you can do this system-wide, but Ubuntu supports adjusting the volume with the mouse wheel if you hover over the volume icon and then scroll the wheel up or down.


System freeze after adding noapic acpi=noirq nolapic

I certainly don't want to sound like a smartass, but the most obvious and easiest thing for you to do IMHO would be to redo your tweaking of grub settings and try a different approach to solve your sticky mouse problem.


typed `apt-get update` now showing a long list of EDAC errors. Is there anything wrong?

EDAC is the kernel component that watches for memory errors. You get a message about lost memory errors when so many errors occurred in a short interval that the kernel was unable to log them all.

A memory error is a bad thing. Check your kernel logs (/var/log/kern.log) for messages like this:

EDAC MC0: CE page 0x283, offset 0xce0, grain 8, syndrome 0x6ec3, row 0, channel 1 "DIMM_B1": amd76x_edac

CE indicates an error that was corrected. If your RAM has error correction, it's ok to have a corrected error now and then. But when you get to the point where memory errors get lost due to their number, it's high time to replace your RAM. The message indicates which RAM module (DIMM) is faulty.

If you see UE instead of CE, it means that an error was detected but not corrected. You may have corrupt data.

If your RAM and CPU don't support error correction, then the first sign you'll get that your RAM is defective is when you realize that your data is corrupted.

This is completely unrelated to apt-get update, that's just the command you happened to be executing when the errors happened.

Replace your RAM yesterday.


Snap installed applications not showing on launcher

This happens because /var/lib/snapd/desktop is not in XDG_DATA_DIRS.
You can add it by putting

export XDG_DATA_DIRS="${XDG_DATA_DIRS}:/var/lib/snapd/desktop"

or (if /etc/profile.d/snapd.sh exists in your system)

source /etc/profile.d/snapd.sh

in ~/.profile or in ~/.gnomerc.
Of course you can also copy or symlink snapd *.desktop files from /var/lib/snapd/desktop/applications/ to one of the paths in XDG_DATA_DIRS or even to ~/.local/share/applications/.


Will removing Xubuntu packages affect Unity?

The answer from the question you refrence links to this site, http://www.psychocats.net/ubuntu/pureubuntu

In that site it states-

  These removal commands were created based on what Kubuntu, Xubuntu,
  etc. packages were added to a default Ubuntu installation. It's
  possible that the commands might remove some other packages you have
  since added to the default and want to keep. If that's the case, keep
  track of which packages those are and reinstall them. Theoretically,
  your settings should still be there. I am not responsible for any
  damage you do to your *buntu installation. If you're worried about
  breaking anything, do a full back up of your *buntu installation.

So, yes the commands may cause something to go wrong.

For example there may be programs that you use that might just happen to be installed by default in Xubuntu, that you may want to keep, in the command for removing everything installed by Xubuntu

sudo apt-get remove abiword abiword-common abiword-plugin-grammar abiword-plugin-mathview alacarte bison blueman brltty-x11 catfish docbook-xml exo-utils flex fonts-droid gigolo gimp gimp-data gmusicbrowser gnome-desktop-data gnome-system-tools gnome-time-admin gnumeric gnumeric-common gnumeric-doc gstreamer0.10-gnomevfs gthumb gthumb-data gtk2-engines-pixbuf indicator-application-gtk2 indicator-messages-gtk2 indicator-sound-gtk2 indicator-status-provider-pidgin leafpad libabiword-2.9 libao-common libao4 libaudio-scrobbler-perl libbabl-0.0-0 libbison-dev libcolamd2.7.1 libconfig-inifiles-perl libdigest-crc-perl libencode-locale-perl libept1.4.12 libexo-1-0 libexo-common libexo-helpers libfile-listing-perl libfl-dev libfont-afm-perl libgarcon-1-0 libgarcon-common libgdome2-0 libgdome2-cpp-smart0c2a libgegl-0.0-0 libgimp2.0 libglade2-0 libgnomevfs2-0 libgnomevfs2-common libgnomevfs2-extra libgoffice-0.8-8 libgoffice-0.8-8-common libgsf-1-114 libgsf-1-common libgstreamer-perl libgtk2-notify-perl libgtk2-trayicon-perl libgtkmathview0c2a libgtkspell0 libhtml-form-perl libhtml-format-perl libhtml-parser-perl libhtml-tagset-perl libhtml-tree-perl libhttp-cookies-perl libhttp-daemon-perl libhttp-date-perl libhttp-message-perl libhttp-negotiate-perl libid3tag0 libido-0.1-0 libilmbase6 libio-socket-inet6-perl libio-socket-ssl-perl libjavascriptcoregtk-1.0-0 libjpeg-progs libjpeg-turbo-progs libkeybinder0 liblaunchpad-integration1 liblink-grammar4 libloudmouth1-0 liblwp-mediatypes-perl liblwp-protocol-https-perl libmad0 libmailtools-perl libnet-dbus-perl libnet-http-perl libnet-ssleay-perl liboobs-1-5 libopenexr6 libotr2 libots0 librarian0 libsexy2 libsocket6-perl libtagc0 libthunarx-2-0 libtidy-0.99-0 libtie-ixhash-perl libtimedate-perl libtumbler-1-0 libunique-1.0-0 liburi-perl libvte-common libvte9 libwebkitgtk-1.0-0 libwebkitgtk-1.0-common libwv-1.2-4 libwww-perl libwww-robotrules-perl libxfce4ui-1-0 libxfce4util-bin libxfce4util-common libxfce4util4 libxfcegui4-4 libxfconf-0-2 libxml-parser-perl libxml-twig-perl libxml-xpath-perl libxss1 lightdm-gtk-greeter link-grammar-dictionaries-en linux-headers-3.2.0-24 linux-headers-3.2.0-24-generic linux-headers-generic lp-solve m4 mpg321 orage parole pastebinit pavucontrol pidgin pidgin-data pidgin-libnotify pidgin-microblog pidgin-otr plymouth-theme-xubuntu-logo plymouth-theme-xubuntu-text python-configobj python-glade2 python-gmenu rarian-compat ristretto screensaver-default-images sgml-data shimmer-themes synaptic system-tools-backends tcl8.5 thunar thunar-archive-plugin thunar-data thunar-media-tags-plugin thunar-volman ttf-droid ttf-lyx tumbler tumbler-common xchat xchat-common xfburn xfce-keyboard-shortcuts xfce4-appfinder xfce4-cpugraph-plugin xfce4-datetime-plugin xfce4-dict xfce4-indicator-plugin xfce4-mailwatch-plugin xfce4-netload-plugin xfce4-notes xfce4-notes-plugin xfce4-notifyd xfce4-panel xfce4-places-plugin xfce4-power-manager xfce4-power-manager-data xfce4-quicklauncher-plugin xfce4-screenshooter xfce4-session xfce4-settings xfce4-systemload-plugin xfce4-taskmanager xfce4-terminal xfce4-utils xfce4-verve-plugin xfce4-volumed xfce4-weather-plugin xfce4-xkb-plugin xfconf xfdesktop4 xfdesktop4-data xfwm4 xscreensaver xscreensaver-data xscreensaver-gl xubuntu-artwork xubuntu-default-settings xubuntu-desktop xubuntu-docs xubuntu-icon-theme xubuntu-wallpapers && sudo apt-get install ubuntu-desktop && sudo /usr/lib/lightdm/lightdm-set-defaults -g unity-greeter

One that you may want to keep would would be gimp if you are using it, so look through the list so you know what it is removing.


Can't install Gnome-Shell in ubuntu 11.10

Have you tried running sudo apt-get dist-upgrade? I find that if the updates are acting up, that's pretty much always the case.

However, if this causes a problem, then give sudo apt-get install -f a go.


Lenovo Y50 Subwoofer does no work with Ubuntu 14.04.2 LTS

I got my Y50-70 sub-woofer working by doing this:

in /etc/pulse/default.pa add this line at the end:

load-module module-combine channels=3 channel_map=front-left,front-right,lfe

then in /etc/pulse/daemon.conf change ;enable-lfe-remixing = no to enable-lfe-remixing = yes note that you have to remove the ;

then reboot.

Tested and validated on Kubuntu 15.04.


I think it was created while using "sudo vim" to edit some file on the system.


Because your folder is on a NTFS drive, you have to mount first that drive in order to be accessible. See this answer to know how to do it:

How to auto mount NTFS part/disks in Ubuntu.


/usr/bin/nvidia-modprobe: unrecognized option: "-s"

I also faced issue after updating my driver to 455.45.01, above instructions works,
This would also solve the issue, without adding PPA.
wget http://developer.download.nvidia.com/compute/cuda/repos/ubuntu1804/x86_64/nvidia-modprobe_455.45.01-0ubuntu1_amd64.deb

and then install with
sudo dpkg -i nvidia-modprobe_455.45.01-0ubuntu1_amd64.deb


I fix it by removing the bellow line in /etc/apt/sources.list

deb http://security.ubuntu.com/ubuntu utopic-security main


Common reasons for this:

you hard disk is not detected and the boot order in BIOS skips it and then ends up  picking network boot (PXE is related to network). This can happen if the cable in your system that is attached to the hard disk is faulty or is not connected firmly. If you open BIOS and the hard disk is detected this is NOT the cause.
Your boot order has a boot order where "network" comes before "hard drive". The item you want to boot off should to be the 1st in the line of boot options. (you could put the DVD 1st but it will take a bit of time for the system to skip booting from it and picking the next option). In general it is best to put the hard disk 1st and change the boot order when you need another option (like when installing from DVD/USB).


The format of your command is wrong. It's telling you that the device you chose is invalid. You can get a list of valid card options with the command aplay - L.

For further reading see man speaker-test or http://manpages.ubuntu.com/manpages/xenial/man1/speaker-test.1.html

There's also some good explanation of the different options to be found on the MythTV wiki.


Broadcom NetXtreme BCM5762 Gigabit Ethernet disconnects after a while

After a deep research my workaround is to add a kernel parameter.
Here's what I did:

Edit file on /etc/default/grub
Add the kernel parameter iommu=pt. Example: GRUB_CMDLINE_LINUX_DEFAULT="quiet splash iommu=pt"
Save file and apply changes with sudo update-grub
Reboot machine.

Hope helps someone.


yes, I already did the updates, and also installed 16.04 on another partition. Still no internal speaker.  Might just add that in 16.04 Firefox runs very poorly; it runs so slow that I can't stream videos.


Add it using Python3 plugin, OP included partial snapcraft.yaml, may be need only an edit:

...
parts:
  plugin: python3
  python-packages:
    - RPi.GPIO
...

Also it needs an access interface:

...
apps:
  ...
  plugs:
    - physical-memory-control
...

Then after installation the user should connect it, because that interface is not auto

sudo snap connect helloLed:physical-memory-control

Reference: Your first robot: Sharing with others [5/5]

Note

I still have some doubts: if RPi.GPIO building from source needed. If that was the case, that it should be declared in snapcraft.yaml as a part. See the linked reference.


After installing Ubuntu on my previously windows laptop, my second hard drive disappeared. How can I access it?

The first and easiest step to take is run lsblk from the terminal and see if there are any drives listed that are not mounted.  If your lucky it will be listed and just not mounted in that case you can simple mount the drive with the command sudo mount /dev/device-name /location/to/mount.  If your unable to mount the drive or it is not listed confirm the ntfs-3g package is installed.  If it was not installed install it reboot and repeat the process.


You might be missing packages repositories content. Try running this in console and whatever shows up after that:

sudo apt update


Can provide info about DSL connection?
You wish connect adsl using pppoe or pppoa?
You dsl connection terminated to you on ethernet cabel or not?
Please give me more details.
Generally you can create pppoe connection on this way

https://help.ubuntu.com/community/ADSLPPPoE

isp.lynx.net/support/download/pppoe/linux.pdf

https://wiki.archlinux.org/index.php/wicd

But I find too many sites with complaints about wicd.
If you don't use NM meybe is better to fallow this

https://help.ubuntu.com/community/ADSLPPPoE


How would I connect to a proxy on Ubuntu Studio?

I wrote a script in response to a question at Unix & Linux about setting proxies:

#! /bin/bash
HTTP_PROXY_HOST="proxy.example.com"
HTTP_PROXY_PORT=3128
HTTPS_PROXY_HOST="proxy.example.com"
HTTPS_PROXY_PORT=3128

gsettings set org.gnome.system.proxy mode manual
gsettings set org.gnome.system.proxy.http host "$HTTP_PROXY_HOST"
gsettings set org.gnome.system.proxy.http port "$HTTP_PROXY_PORT"
gsettings set org.gnome.system.proxy.https host "$HTTPS_PROXY_HOST"
gsettings set org.gnome.system.proxy.https port "$HTTPS_PROXY_PORT"

sudo sed -i.bak '/http[s]::proxy/Id' /etc/apt/apt.conf
sudo tee -a /etc/apt/apt.conf <<EOF
Acquire::http::proxy "http://$HTTP_PROXY_HOST:$HTTP_PROXY_PORT/";
Acquire::https::proxy "http://$HTTPS_PROXY_HOST:$HTTPS_PROXY_PORT/";
EOF

sudo sed -i.bak '/http[s]_proxy/Id' /etc/environment
sudo tee -a /etc/environment <<EOF
http_proxy="http://$HTTP_PROXY_HOST:$HTTP_PROXY_PORT/"
https_proxy="http://$HTTPS_PROXY_HOST:$HTTPS_PROXY_PORT/"
EOF

Save to a file (call it proxy.sh), edit it using your favourite editor to set the values of the *_PROXY_* variables and run:

chmod +x proxy.sh
./proxy.sh

It does, as far as I am aware, exactly what the GUI does (if based on a GNOME environment, which Ubuntu Studio is).


If you can send emails from server, but cannot configure desktop client, can you say SMTP is working?

Yes! I'm so glad this issue has been fixed! After a lot of googling, I found the solution myself. However, many steps need to have been taken!

postfix should be configured well. Gladly I had a second VPS with correct postfix configuration (which I completely forgot) - This one doesn't have a correct configuration either, though. Time to fix that.

Apparantly, after a lot of sudo mmap <server ip> and using telnet <port number> plus googling to port 25, I found out that port 25 is blocked by my ISP. Or.. I think so.

Therefor, I went into the Postfix master file (sudo nano /etc/postfix/master.cf) and pasted this line submission inet n      -       n       -       -       smtpd within the file. This opens Postfix on port 587 and will have Postfix use port 587 instead of port 25.

After that, just enable port 587 in your server firewall (sudo ufw allow 587) and after checking with my desktop mail client, I can verify: It's working!

If anyone has an issue like this, just open chat / comment or something. I'd like to help. However: My skills are equal to your grandmother's skills with computers, so don't expect much: Though, I managed to fix this... =)


Sound problem in Firefox after upgrade to 18.04

I had exactly the same problem. Fresh install of Ubuntu 18.04 ("Bionic Beaver") today (May 27, 2018) - full fresh install wiping all files on single partition of my laptop hard drive, hence no chance of old settings hanging around. No problems with sound in any other instances.

The answer was this old fix:

No sound from Chrome, sound works fine in Firefox etc (13.10)

Install pavucontrol from the Terminal:

sudo apt-get install pavucontrol

To open pavucontrol from the Terminal:

pavucontrol

Select the "Playback" menu and make sure that you have it set to Show Applications. Now, start playing something from Google Chrome. It will show up there, and it will show what output device is being used for Google Chrome. Make sure it is set to the output device you are trying to use.

Just posting here to let everyone else know. Ubuntu and Chromium should know too, since the solution is more than 4 years old :)

Thank you to everyone who posts their solutions here - you ladies and gents have helped me immensely with simple fixes many, many times. Thank you!


What is the consequences of a software in multiple PPA?

A newer version will be installed.

A conflict may happen if the dependencies are conflicting.


Gallium 0.4 on llvmpipe (LLVM 3.3, 128 bits)

That is the root of all your issues. It means that it's using software to rendering your stuff. If your card doesn't support Hardware Acceleration there's nothing to do (most integrated Intel's doesn't), but buying a new card that supports it..


Windows Boot Drive Programs

There are lots of options for making an installer USB in Windows, most are syslinux based..

Some offer Live installs, (without persistence):

Rufus - 3.1.1320 (BIOS and UEFI)

Copy/Paste ISO Contents - (UEFI only)

Some offer a choice of either Live or Persistent installs:

MultiBootUSB - 9.2.0  (BIOS and UEFI, 4GB persistence, Problems: Missing casper-rw file)

Linux Live - 2.9.4  (BIOS and UEFI, >4GB persistence BIOS only, comes with Portable Virtualbox)

UNetbootin - 661 (BIOS and UEFI, 4GB persistence)

Universal - 1.9.8.3 (BIOS and UEFI, 4GB persistence)(>4GB BIOS/NTFS)

YUMI - 2.0.5.7 (BIOS only, >4GB persistence NTFS)

YUMI-UEFI - 0.0.0.8 (UEFI only, 4GB persistence)

All of the commercial Syslinux installers require at least three inputs:

Location of source ISO.
Target drive letter.
Amount of persistence.

Several of the programs will allow formatting the drives FAT32 or NTFS, if not sure choose Default, (FAT32). NTFS does not boot with UEFI.


I advise you to not try to do this. SD cards are notoriously slow (although experiences vary), with a max of 312 MB/s for the highest class. Compare this to the max of 6 Gb/s for a hard drive.

At the very least, you will need to have a Class 10 or UHS-1 SD card, which are not cheap. The SD from your phone won't cut it.

Add this to the fact that Chromebooks are very well known to be lacking in performance, I'd be surprised if your games will even be able to run.

With that in mind, take this advice with a grain of salt.

Begin by inserting your SD card and making a note of where it mounts.
Download PlayOnLinux and symlink your wineprefix to your SD card.
Use PlayOnLinux as you normally would. Games should automatically install to the SD card.


Ubuntu 14.04 not discovering wireless router

I would try the tutorial here:

https://help.ubuntu.com/community/WifiDocs/Driver/bcm43xx#b43%20-%20Internet%20access

Follow the instructions for your 4311. I have the 4318 and that page got mine working just fine.


qpdfview 0.4.14, "could not load plug-in for file type 'PDF'!"

Found out the reason why it was failed.

libpoppler-qt5.so.1: cannot open shared object file: No such file or directory

So just downloading relevant package from Synaptic Package Manager solved the problem.


How Can I Find the Drive Mount Point of an Arbitrary Directory?

You can use df for that:

$ df --output=target /media/sarah/drive/Snapshots
Mounted on
/media/sarah/drive


pygtk not available on Focal Fossa (20.04)?

You can install python-gtk2 manually from 18.04 LTS repository:
cd ~/Downloads
wget http://archive.ubuntu.com/ubuntu/pool/universe/p/pygtk/python-gtk2_2.24.0-5.1ubuntu2_amd64.deb
sudo apt-get install ./python-gtk2_2.24.0-5.1ubuntu2_amd64.deb

and use it as usual :)


Can I open visual basic .vbp files using gambas?

According to some documentation I have found on google:
http://www.arabteam2000-forum.com/index.php?app=core&module=attach&section=attach&attach_rel_module=post&attach_id=51517

You should be able to import a VB project using Gambas "New Project" wizard.


Show a notification at login using pam_exec

There exist more easy way to send notifications on login (without knowing your DISPLAY variable or using tty command to identify your terminal).

In order to send some notification during GNOME or other Desktop Environment start you must create /etc/xdg/autostart/foobar.desktop file which calls your script with notify-send "Hello there!" "Hello". Check /etc/xdg/autostart/ for examples. You can make a copy of the existing .desktop file, rename it and modify for your needs. You can also add X-GNOME-Autostart-Delay=XX parameter to set XX seconds delay for your task. If you need to add this only for the selected user, use ~/.config/autostart/ of that user to place your .desktop file and check with gnome-session-properties that this launcher is active.

In order to send the notification on terminal or ssh login you can use the script placed to /etc/profile.d/ or send this notification, adding echo "My Message" to /etc/bash.bashrc directly. Both of them are called from /etc/profile and will be run on every login to interactive shell, be it virtual terminal or ssh login. For the selected user use ~/.bash_login of that user and put the desired message there. Note: usage of /etc/bash.bashrc and ~/.bash_login makes sense if the default bash shell is used; if the user invokes some other shell, for example /bin/sh/, these files will be ignored.


How to move one file to a folder using terminal?

mv [file] [directory]

For example, to move info.txt from the actual directory into the config/ directory, type mv info.txt config/

As was pointed out in a correct comment, the above will fail if the user running the command doesn't have write access to either the file or the folder.

If you prefix the command with sudo, you are telling the system to run the command as the root user (similar to an Admin account). Example:

sudo mv info.txt config/

BIG IMPORTANT NOTE:
Only use sudo if you are sure you know what you're doing - Ubuntu protects things for a reason.  Using sudo you can break your OS, forcing a reinstall, if you move (or delete or whatever) important files.


I just used a boot repair disc to fix the issue.


Re-mapped Caps key not working properly with `x`

Short answer: OS is fine, Hardware's fault.

I tried the same operating system in one of my other laptop and the remapped key worked fine there. After more fiddling, I noticed that my Ctrl-w, Ctrl-s was also not working. After a bit of search, I came across this thread in freedesktop bugzilla where another user had the same problem like me. So, finally this turned out to be a limitation of the keyboard hardware. (My laptop is Dell Vostro 3559 - Buyers beware :-)). As of now, I'm using an external keyboard which works fine with my re-mapped Caps key.


You have to hit F12 over and over again until it takes you to a "special" boot menu. There, it will allow you to select what partition\drive to boot into. I have the same problem. The issue is that new machines skip over all boot selectors for some reason and just go straight to Windows to speed things up.


Intermittent wifi connection in ubuntu 18.04 in HP 15q ds 0017tu laptop

Can you rephrase your question and focus on problem?
If you want to see wireless connection please look at

  Settings--> Wi-Fi --> Visible Networks

  and see if you see your Wi-Fi from mobile.
  I hope it helps.


How can I automatically start the Xbox Gamepad driver whenever I log in?

A clean way to achieve what you want is allowing to run this particular command without the need for an elevated password prompt.

Passwordless sudo command execution

To allow driver loading without prompting for a sudo password, add the following snippet to a new sudoers file include.

Example:

sudo visudo -f /etc/sudoers.d/xbox_gamepad_driver

# Allow Xbox gamepad passwordless driver loading.
Cmnd_Alias XBOX_LOADER = sudo xboxdrvr --detach-kernel-driver --daemon
%sudo ALL=(root) NOPASSWD: XBOX_LOADER

Then you can add it to your Startup Applications to be launched at login (or even simply add your command to your .profile, which is sourced at GNOME Shell login).

Creating startup *.desktop launchers

To achieve this, you can use the Startup Applications app (search for it into applications menu) and create a new entry from the GUI, or simply create a xbox-controller-driver.desktop file inside .config/autostart folder including the content below:

[Desktop Entry]
Type=Application
Exec=sudo xboxdrvr --detach-kernel-driver --daemon
Hidden=false
NoDisplay=false
X-GNOME-Autostart-enabled=true
Name=Xbox Gamepad driver loader
Comment=Load Xbox Gamepad driver

Note: .desktop files under .config/autostart doesn't need execution permission.

Hope it helps.


Where/how can I find somebody to help me packaging an application for Ubuntu in my area?

Ubuntu has Local Community (LoCo) Teams all over the world. Copy/paste from the website for this:

  About Local Community (LoCo) Teams

With the incredible success of Ubuntu around the world, the LoCo project is here to help groups of Ubuntu fans and enthusiasts work together in regional teams to help advocate, promote, translate, develop and otherwise improve Ubuntu. Our worldwide network of LoCo teams is providing a strong backbone to our already vast and extensive Ubuntu community. Why not go and see the full list of teams!
Joining a LoCo Team

  Do you want to join a LoCo Team?

It's easy! Just find a team in your area and click the 'Join This Team!' link at the top of their page.
If you are not able to find a LoCo Team in your area and want to create one, take a look at the LoCo Team HowTo for more information on setting up a LoCo Team.

  Why Local Teams?

Ever since the birth of computers, enthusiasts and fans around the world have collected together in garages, universities and pubs to talk about their interest, learn from each other and help promote their interest. Combine this with the huge popularity of Ubuntu, and you have the Ubuntu LoCo project.

But the most interesting page for you would be the information on the Ubuntu California LoCo team. Pay them a visit and I bet there will be more than several people that can help you.

The next event for this LoCo team:

When:  Wed, 05 Dec. 2012 18:00 - 19:00 PST
Where:    The Roastery in San Francisco
Event Contact:    Elizabeth Krumbach
Organizing Team(s):   Ubuntu California
Global Event: Ubuntu Hour

Maybe you will not get an answer but you are sure the get alot of pointers, tips and links to good information or an exchange of e-mail addresses.


How to play sound on our local server through ssh without logging in on that server?

You can use the program screen on the server (https://help.ubuntu.com/community/Screen, http://www.gnu.org/software/screen/).

$ sudo apt-get install screen # if not installed on the server

Login via SSH and start a screen

$ screen -S my_sound_bash

start you music. You can use Ctrl+A+D to leave the current screen session and you can logout. The music should still play.

You can login again using SSH and with

$ screen -r my_sound_bash

you should get your running player back.


I can not ping microsoft.com but can open it using browser

In this particular case, microsoft servers blocks/drops ICMP packets and don't reply to them at all. For such cases is better use other tools like nmap to have an accurate result:

nmap -p 80 microsoft.com

Starting Nmap 6.40 ( http://nmap.org ) at 2014-03-03 13:08 AST
Nmap scan report for microsoft.com (65.55.58.201)
Host is up (0.14s latency).
Other addresses for microsoft.com (not scanned): 64.4.11.37
rDNS record for 65.55.58.201: 00001001.ch
PORT   STATE SERVICE
80/tcp open  http

Nmap done: 1 IP address (1 host up) scanned in 0.65 seconds

As you can see the "host is up" even through it doesn't answer the ICMP echo packet.


gnome shell system monitor applet not work in Ubuntu 19.04

Your options:

Either wait for a new release of the applet, current version ain't compatible with Ubuntu 19.04
If you know your way around terminals and git, just clone the applet git repository somewhere and make install it, the master branch works.

git clone https://github.com/paradoxxxzero/gnome-shell-system-monitor-applet.git
make install

Then just log out and back in your sessions to restart gnome-shell, I got the following result:

Quite happy to have my dashboard back ;)

Would you drive a car without one ?

Initial answer  below:

There's currently an open issue there:

https://github.com/paradoxxxzero/gnome-shell-system-monitor-applet/issues/511

  Does work on Ubuntu 19.04 with Wayland. X11 suffers from "LOOOOOOONNNNG login times with system-monitor enabled" as described in #515 (login not possible at all)

Ubuntu 19.04 is still a little fresh and rough around the corner, either try to DIY or simply wait for the next stable release on https://snapcraft.io/gnome-system-monitor

Edit: check the applet README if you reaaally wanna test (and improve ? ;) ) the master branch of the git repository.


Tested at the end of the driver name in the Additional Drivers utility means the driver is considered to be first class in terms of stability and reliability. Other drivers that are not tested could be considered to be second class by comparison.

The reason why there are different grades of graphics card drivers is that for newer models of graphics cards the tested graphics card driver does not always work properly. The same thing goes for very old graphics cards that only work properly with either a legacy graphics card driver or the default built-in open source graphics card driver. Offering a variety of graphics card drivers improves the chances of the user finding a graphics card that works properly on his system.


What alternatives are available to replace the purple boot splash screen?

Ubuntu Sunrise (plymouth)

I use an old favorite "Ubuntu Sunrise" in 12.04 (In fact I have been using it since 10.04 LTS). It's easy to install (instructions below) and it has never caused me any issues. However you should note that changing your Plymouth may cause resolution issues depending on your own resolution.

INSTALLATION INSTRUCTIONS

Step 1:

Download the Plymouth Sunrise deb file from here.

Step 2:

Open the Terminal (Ctrl-Alt-T) and type

gksudo nautilus

Step 3

Copy ubuntu-sunrise folder to /lib/plymouth/themes
Copy the file splash into /etc/initramfs-tools/conf.d (Optional, for better buffer)

Step 4:

Type in the terminal

sudo update-alternatives --install /lib/plymouth/themes/default.plymouth default.plymouth /lib/plymouth/themes/ubuntu-sunrise/ubuntu-sunrise.plymouth 200
sudo update-alternatives --config default.plymouth

Step 5:

Choose the number associated with ubuntu-sunrise in the options that pop up.

Step 6

Type in the terminal

sudo update-initramfs -u

Then

sudo reboot

That's it.

Note: Some people have issues installing other Plymouth themes (I've never had any) and I would strongly advise you to take a look at these issues here at Ask Ubuntu to familiarise yourself.


How do I remove linux-kernel-image 4.0.2 and install 3.*.* back?

NOTE:  This works for Ubuntu 14.04.2

To install the 3.16 kernel, type in the following in a terminal window:

sudo apt-get install --install-recommends linux-generic-lts-utopic

after it is installed reboot your host to the 3.16.xxx kernel. Then from a terminal window type in:

sudo apt-get remove linux-headers-4.0* linux-image-4.0*

to remove the Linux 4.0.x kernels.


First, by having inotifywait -e moved_to only monitor for files moved to the target directory, you omit monitoring for files that were written or overwritten there, by, for example Filezilla. Add -e modify -e create to your command, or, unless you have a convincing reason to ignore some inotifywait events, discard all the -e whatever options.

Second, by not quoting the from files in your mv ~/folderA/fileA/* "/folderB/myNewDest" command you run the risk of being caught by silly filenames, e.g. foo;rm -rf *. I would suggest

find ~/folderA/fileA/ -maxdepth 0 -type f -print0 | \
xargs -0 mv --target-directory=/folderB/myNewDest --

which does the same thing, but more safely.


This issue was resolved after I got the correct drivers installed for my Broadcom wireless card.  I'm not exactly sure why wireless drivers would affect the computer's ability to shut down, but after I corrected a problem with the wireless drivers the computer started shutting down normally.


Update fail (libappindicator0.1-cil) Ubuntu 14.04

I've solved this problem on two laptops running Ubuntu 14.04.1 by doing the following:

Start Synaptic.
Search for "Mono", without quotes.
Reinstall all packages already installed in the found list.
Run in terminal: apt-get update ; apt-get upgrade

That's it!


I answer most of your questions in my GPT fdisk (gdisk) documentation. In particular, see:

The page on working around MBR limitations, which describes conditions in which you can use MBR on disks of up to 4 TiB. I don't recommend you try this, but if you're really desperate, you can.
The page on converting from MBR to GPT. You could do a dd or similar low-level copy or Clonezilla clone of your current disk to the 4 TB disk, then convert it to GPT, then re-install GRUB to the 4 TB disk. This should get you up and running fairly painlessly, although of course copying 2 TB of data will take a while. Note that you'll need to resize (and possibly move) at least one partition if you take this approach.
The page on booting from GPT disks. In brief, it is usually possible to boot from GPT disks on BIOS-based computers; however, some BIOSes have quirks that require tweaking the GPT data structures in some unusual way. There's no way of knowing what might be required without trying it, though; these are quirks of specific BIOSes that cause problems, after all.

Instead of starting the new disk as MBR and then converting to GPT, as implied by the second bullet point, you should be able to set up partitions on the new disk in your final GPT configuration and then clone the filesystems from your original disk, or use tar, rsync, cp -a, or some other file-level tool to duplicate the configuration. There are lots of sites that describe how to copy installations using such tools, but I don't have any specific URLs handy. Personally, that's how I'd do it, simply to avoid having to resize any filesystems.

Your question hints at another possibility: Use your existing 2 TB MBR disk as it is now and add the 4 TB disk as a GPT data disk. This approach will likely be the least troublesome, at least from a software perspective -- but if you prefer to have a single disk or keep your optical drive, replacing the 2 TB model with the 4 TB model may well be preferable. It's your choice.


I have found a solution to this :)
Here you can find a similar issue: "Thread: Problems with software upgrading: aptdaemon".

The problem arises from the following directory:

/var/lib/apt/lists/partial

So doing the following:

sudo rm -rf /var/lib/apt/lists
sudo apt-get update

did the trick :)


I had the same problem. And used a contiki script to make a clean mspgcc install on ubuntu 1204LTS. But First, installed these packages

sudo apt-get install  ncurses-dev flex libgmp3-dev libmpfr-dev bison  libmpc-dev texinfo zlib1g-dev automake build-essential patch

Then I executed a modified script from contiki (listed below).
 Don't forget to add /usr/local/bin to the PATH

 INSTALL_PREFIX="/usr/local/msp430"
echo The installatoin prefix:$INSTALL_PREFIX
# Switch to the tmp directory
mkdir tmp
cd tmp

# Getting
wget http://sourceforge.net/projects/mspgcc/files/mspgcc/DEVEL-4.7.x/mspgcc-20120911.tar.bz2
wget http://sourceforge.net/projects/mspgcc/files/msp430mcu/msp430mcu-20130321.tar.bz2
wget http://sourceforge.net/projects/mspgcc/files/msp430-libc/msp430-libc-20120716.tar.bz2
wget http://ftpmirror.gnu.org/binutils/binutils-2.22.tar.bz2
wget http://mirror.ibcp.fr/pub/gnu/gcc/gcc-4.7.0/gcc-4.7.0.tar.bz2

# Unpacking the tars
tar xvfj binutils-2.22.tar.bz2
tar xvfj gcc-4.7.0.tar.bz2
tar xvfj mspgcc-20120911.tar.bz2
tar xvfj msp430mcu-20130321.tar.bz2
tar xvfj msp430-libc-20120716.tar.bz2

# 1) Incorporating the changes contained in the patch delievered in mspgcc-20120911
cd binutils-2.22
patch -p1<../mspgcc-20120911/msp430-binutils-2.22-20120911.patch
cd ..

# 2) Incorporating the changes contained in the patch delievered in mspgcc-20120911
cd gcc-4.7.0
patch -p1<../mspgcc-20120911/msp430-gcc-4.7.0-20120911.patch
cd ..

# 3) Creating new directories
mkdir binutils-2.22-msp430
mkdir gcc-4.7.0-msp430

# 4) installing binutils in INSTALL_PREFIX
cd binutils-2.22-msp430/
../binutils-2.22/configure --target=msp430 --program-prefix="msp430-" --prefix=$INSTALL_PREFIX
make
make install

# 5) Download the prerequisites
cd ../gcc-4.7.0
./contrib/download_prerequisites

# 6) compiling gcc-4.7.0 in INSTALL_PREFIX
cd ../gcc-4.7.0-msp430
../gcc-4.7.0/configure --target=msp430 --enable-languages=c --program-prefix="msp430-" --prefix=$INSTALL_PREFIX
make
make install

# 7) compiping msp430mcu in INSTALL_PREFIX
cd ../msp430mcu-20130321
MSP430MCU_ROOT=`pwd` ./scripts/install.sh ${INSTALL_PREFIX}/

# 8) compiling the msp430 lib in INSTALL_PREFIX
cd ../msp430-libc-20120716
cd src
PATH=${INSTALL_PREFIX}/bin:$PATH
make
make PREFIX=$INSTALL_PREFIX install

# cleanup
# no need since every thing created in tmp
echo Reminder: remove tmp


Persistent Linux USB won't boot... getting weird error screens, maybe related to UEFI

Which Ubuntu release are we talking about?  The Ubuntu 16.04 install media dropped persistence, but an older 14.04 release still has it.  If you just made another partition with a FAT filesystem on the install media, labeled it "casper-rw", and edited the grub boot command to add the wrord "persistent" to the linux kernel line, it might work though (never tried it).

The full install probably needs an EFI partition (300M FAT fs, boot flag) to install grub to, although the Ubuntu intaller still ignores the location and puts the Ubuntu bootloaders on the hard disk (and maybe messes up the nvram boot entries too).  Lots of answers posted about just copying all the hard disk's EFI directories/files to the USB, then copying /EFI/ubuntu/grubx64.efi and shimx64.efi to /EFI/Boot and rename shimx64.efi to bootx64.efi.


Wifi list is empty after latest update (yesterday)

I recovered my wifi connection by doing following:

sudo vi /etc/network/interfaces

then comment lines about interface "wan0", like this:

# interfaces(5) file used by ifup(8) and ifdown(8)
auto lo
iface lo inet loopback

#auto wlan0
#iface wlan0 inet dhcp
#    wpa-conf /etc/wpa_supplicant/wpa_supplicant.conf
#sudo systemctl enable wpa_supplicant.service

above is all the content in the file.

I don't know why, it just works.


Change the boot order of your PC from the bios setup. So that it does not boot from the USB automatically when it is plugged in.

For now, remove the USB drive and boot the system.


How come file size is different after copying files from Ubuntu to my other Windows machine?

It's simply an issue of different units. Windows uses binary prefixes  (1024 bytes = 1 kibibyte (KiB), 1024 kibibytes = 1 mebibyte (MiB) etc.) whereas Ubuntu in general uses the metric prefixes  (1000 bytes = 1 kilobyte (KB), 1000 kilobytes = 1 megabyte (MB) etc.). Windows also uses "GB" instead of "GiB" and so on.

Thus 44.2 GB in Windows = 44.2 GiB = 44.2×1.024³ GB ≈ 47.4594 GB ≈ 47.5 GB (in Ubuntu), so it adds up.


Answering my own question:
There must be a corresponding entry in /etc/fstab in order for this to work properly.

The timeout=10 option in 12.04 LTS appears to b unsupported


The power of tools in Ubuntu is that you can combine them.  The next command finds all .mp3 files in the current directory and its subdirectories, and copies them to the ../TEMP2/ folder, preserving paths:

find -iname '*.mp3' -exec install -D {} ../TEMP2/{} \;

find -iname '*.mp3' - finds all files ending with .mp3 (case-insensitive) and

-exec - executes a command for each match:

install -D {} ../TEMP2/{} - copies the matched file to ../TEMP/ preserving the path. ({} is replaced by the path including filename)

\; - ends the -exec command

If you want to get the progress, add -ls ("list") to the command before -exec. It can be put after \; too, but in that case the name is shown after being copied. Examples:

find -iname '*.mp3' -ls -exec install -D {} ../TEMP2/{} \;
find -iname '*.mp3' -exec install -D {} ../TEMP2/{} \; -ls


Ubuntu 14.04 Laptop Screen Shaking - no problem on external monitor (HDMI) - Lenovo Y70 Touch

I got the same issue with you, after numerous installs I could not fix the issue, but then i tried installing a later kernel, more specific 3.18rc3. For me this fixed the problem, the one thing that i can not do is install the nvidia drivers but this is not an issue for me.

Get the .deb files from here http://linuxg.net/how-to-install-kernel-3-18-rc3-on-ubuntu-14-10-ubuntu-14-04-and-derivatives/

I hope this helps


Allocate free space on a partition inside an extended

Shrink sda2 and then expand the extended partition (sda3), and then expand sda5.


The directories Guile searches for modules in are specified in the %load-path variable. You can add to this by setting the GUILE_LOAD_PATH environment variable (you can add multiple directories by using a colon between each).


Probably the easiest way would be to open the Start-Up Application window and when creating the new entry use the command line:

bash -c "sleep 20 && drapes &"

i.e. you dont really need to create a file in /usr/bin since the above will achieve the same thing.


Using rsync to ensure two directories have exactly the same files

Yes you can make rsync look into the files to check that everything matches. From man rsync

    -c, --checksum              skip based on checksum, not mod-time & size

Of course it will be slow, but rsync should find differences that the normal check would not find.

But rsyncing is not cloning. If you want a cloned copy, use Clonezilla.


qtchoose doesn't run due to "'/usr/lib/x86_64-linux-gnu/qt5/bin/qtchooser': No such file or directory" error

The error message is normal, although uninformative. In essence you're trying to execute qtchooser with itself, which doesn't work. Run the man qtchooser command on a terminal for how to use qtchooser, or just keep the ubuntu-sdk (and qt5-default) packages installed, in which case you don't need to care about qtchooser existing.

Upstream has fixed the problem with a more helpful text nowadays, but that version of qtchooser is not yet in Ubuntu.


Apparently the size of the key has to be minimal (1024)


How to stop systemd.tmfiles-clean service command line

I have edited the file systemd-tempfiles-clean.timer and changed the OnUnitActiveSec=1d to 60d

That should do until I find what's in the temp files that makes the Ubuntu to hang.


When changing the password for a user on my system, why does the size of /etc/shadow never get bigger or smaller?

Because it's saved as a hash and hashes of the same algorithm are the same length no matter what.

In Ubuntu I think the default algorithm for user passwords is sha512, which, as the name implies is always 512bit = 86byte long.

See:

https://www.aychedee.com/2012/03/14/etc_shadow-password-hash-formats/
What is the length of a hashed string with SHA512?
Acceptable Hashes by shadow


Add the PPA for Ubuntu Wine Team:

sudo add-apt-repository ppa:ubuntu-wine/ppa

Install the wine1.3 package. Just running Update Manager won't install it as it is a different package than wine1.2 (the version of Wine included in the repositories).

sudo apt-get update
sudo apt-get install wine1.3

Double-click on AngryBirds.exe or in a terminal run the command:

wine AngryBirds.exe

If this still doesn't work, try backing up and removing your ~/.wine directory:

mv ~/.wine ~/.wine.bak

Kill some green pigs:


Startup Disk Creator shows no free space on my USB stick

Actually, there is another way to create bootable USB drive with the "Disks" utility. All you need to do is "restore disk image" using the iso file as the source image and you're good to go.

If you need more help...

Open "Disks" utility.
Choose the USB drive from the side.
Press the little "stop" ( ■ ) button.
Delete all file systems with the minus ( - ) button (WARNING: THIS WILL DELETE ALL THE DATA ON THE USB DRIVE!).
Press the "two gears" button and select "Restore Disk Image".
Under "Image to restore" choose your downloaded iso file.
Press "Start Restoring" and you're done.

The whole process should not take more then 10 minutes.
GOOD LUCK :)

Note: some OSs like Windows won't be able to use the USB drive until you format it again.


How-to make file have different color when doing ls?

You can edit ~/.dircolors, if it doesn't exist you can create it with:

dircolors -p > ~/.dir_colors

As the example here shows, you can have this in your .bashrc:

eval `dircolors ~/.dir_colors`
alias ls="ls --color=auto"


Does it mean that a non-login shell is used?

Yes. (Depends on what you mean by "login shell", though.)

  My understanding is that both login and non-login shells involve .bashrc and so the difference is that the profile is not sourced for a non-login shell.

Incorrect. A login bash reads .profile, and as it happens, Ubuntu's .profile sources .bashrc. A non-login, interactive bash reads .bashrc. A non-login, non-interactive bash invocation does not read .bashrc (or .profile, for that matter).

When you run ssh foo command, the command is run by a non-interactive shell. However, a non-login shell run by SSH is a special case, and bash reads .bashrc. Other shells may or may not read their respective rc files, so it could be the case for some shells that no configuration file is read at all. Bash is not the be-all and end-all of shells.

Non-interactive shells are run for a number of reasons, and usually there's no reason to load the full set of customizations set by a user.

  Why would we want to ignore the profile of user?

See above. Also, SSH has other ways to set environment variables.


Word on PlayonLinux does not recognise printer

The WineHQ documentation for other things to configure points out that wine will use CUPS.  You should install libcups2, and potentially libcups2:i386:

sudo apt-get install libcups2

If you want to be able to print to a .pdf file, you'll need cups-pdf:

sudo apt-get install cups-pdf

Otherwise, you may be experiencing this problem, where you need to have to printer plugged in for it to actually work.


I found this method or solution.

Make a temp directory in say /home/$USER/inkscape_dark
Change into that directory and clone the repo from github:

git clone https://github.com/alma4rebi/Inkscape-0.91-dark-theme.git

Move into the repo cd Inkscape-0.91-dark-theme
Now follow these steps accordingly using a terminal:

Untar the file tar -cvf Inkscape\ 0.91\ dark\ theme\ linux.tar.gz
cd Inkscape\ 0.91\ dark\ theme\ linux
cd Set\ dark\ theme/
sudo cp etc/gtk-2.0/gtkrc /etc/gtk-2.0/
sudo cp share/icons/icons.svg /usr/share/icons/
sudo cp share/themes/Default/gtk-2.0-key/gtkrc /usr/share/themes/Default/gtk-2.0-key/

Now launch inkscape and you should see your dark theme.

Note:

To return to bright theme use the contents of the Return bright theme folder also found therein.

Source:

https://github.com/alma4rebi/Inkscape-0.91-dark-theme


Why does Ubuntu Music Lens display only a few songs and albums?

For Ubuntu 12.04, in particular, the performance of the dash was such that it did not handle displaying hundreds or even thousands of results very well. In addition, it was felt that a user would find it cumbersome to parse hundreds of results visually when it was easier to type terms to narrow down the search, so limiting the number of results displayed was a good trade off.

As such, there was a limit set on the number of results a scope would return to the dash to be displayed (100 when there is no search, 50 for a search in the music lens and 20 for a search from the home lens).  Presumably, in this case, the first 100 songs it finds are spread between 44 albums.

The music lens is written in vala. It should be possible to edit the source and compile  and install a new version with much larger limits.  The limits for the Rhythmbox scope are defined here: http://bazaar.launchpad.net/~unity-team/unity-lens-music/6.0/view/head:/src/rhythmbox-scope.vala#L48


How do I run a custom animated bootscreen?

I Found what I need:

HorizontalAlignment=.25
VerticalAlignment=.5
Transition=merge-fade
TransitionDuration=.5

Look at these videos:

http://www.youtube.com/watch?v=AnwFM-46fdM

http://www.youtube.com/watch?v=c1bwlG6G8f8

[Plymouth Theme]
Name=Bizcom Glow
Description=Corporate theme with pie chart boot progress followed by a glowing emerging logo
ModuleName=two-step

[two-step]
ImageDir=/lib/plymouth/themes/glow
HorizontalAlignment=.25
VerticalAlignment=.5
Transition=merge-fade
TransitionDuration=.5

It loads the files:

  progress-00.png to progress-32.png

and

  throbber-00.png to throbber-19.png

To create the animation.

Here's some good links:

http://blog.fpmurphy.com/2009/09/project-plymouth.html

https://wiki.ubuntu.com/Plymouth


it seems to be that Chrome 64-bit is already installed.

I think it would be easy to check your software-resources if there's a mention of Chrome (you can find that out on the second tab 'other software')

If so, open softwarecenter and install the pack Synaptic (a handy program for all purposes)

After installation open Synaptic and type in the search-box 'Chrome'

You can see, if there's a package installed, some fields concerning Chrome (or Google Chrome) marked on the left side as green (indication that it's on your system) .
Click there and mark it for complete removal , after the removal is over and done, you can try to install again Chrome (but the 32-bits version)

May I mention that you can easilly install Chromium from the softwarecenter ? They are virtually the same and will give you no headache to install it ;) , updates included.
Just a suggestion.


how to allocate space from windows to ubuntu?

There are 2 problems: the first one is that the partitions are locked - you can see the little key icons next to the partition names. The partitions are locked because they are mounted and they are mounted because you booted from them. The easiest way around this is to boot from a live USB or CD (a live Ubuntu CD for example). Then you can unmount the partitions if they still happen to be mounted.

Next problem: since your Linux partition is inside of an extended partition (/dev/sda2), you have to first resize the extended partition, and then finally you'll be able to resize /dev/sda6.

Finally: it looks like you have plenty of disk space so I recommend giving the swap partition (/dev/sda5) a little bit of space - maybe 1Gbyte.


IndexError: list index out of range when installing iPython in Ubuntu 14.04

This is probably caused by having an outdated version of pip. You can upgrade pip by running:

sudo pip install -U pip


Install / downgrade specific version of Node.js

just drop that =11 part. Like this:

sudo apt install nodejs

and

node -v
v11.15.0

The reason is that first curl command installs the repository which replaces apt's pointer for nodejs - so no need to specify the version.


Alt + F2 worked for me (i know you suggested it didn't work for you, however its worth reinforcing for others!).

Kubuntu 15.04


how to install Ubuntu server In dual Boot PC with Ubuntu and XP?

Since you don't need your desktop Ubuntu, you can install your server on the partition you used to install the desktop version. Its easy to recognize which partitions are currently occupied by the desktop version. The ones which show an "ext" partition while allocating partitions are the ones belonging to Ubuntu(desktop). So, first delete these partitions("partitions"(plural) because you may have allocated different ones for / /home swap, /boot etc.). So delete all of them, by pressing on the - button on partition screen and then re-allocate the partitions according to your convenience.

If you feel that the process to install/partition a server version of Ubuntu is different from the one for installing a desktop, then no, its not. You need not worry, only thing you keep in mind is delete "ext" partitions and reallocate them. This way, you won't have to handle grub-rescue too!


How to disable shutdown/reboot/suspend/hibernate?

User access to these actions are controlled by polkit.  In particular, they correspond to the following actions:

org.freedesktop.consolekit.system.stop
org.freedesktop.consolekit.system.restart
org.freedesktop.upower.suspend
org.freedesktop.upower.hibernate

All of these actions are allowed by default for active local users (although consolekit further restricts the first two permissions to only work when there is a single user logged into the system).

If you want to disable these actions create a file /etc/polkit-1/50-local.d/disable-shutdown.pkla containing something like:

[Disable shutdown/whatever]
Identity=unix-user:*
Action=org.freedesktop.consolekit.system.stop;org.freedesktop.consolekit.system.restart;org.freedesktop.upower.suspend;org.freedesktop.upower.hibernate
ResultAny=no
ResultInactive=no
ResultActive=no

This should prevent those actions from completing.  More information on these policy files can be found by running man pklocalauthority.

If you are trying to restrict root though, this will only be a minor inconvenience.  By definition, root is an unrestricted account according to the traditional UNIX discretionary access control system.  If you can't trust users you've given full root access to, then you've got bigger problems than them just shutting down the system.

Note that in later Ubuntu versions somebody decided to break compatibility. As answered in How to disable shutdown/reboot from lightdm in 14.04? the action seems to have changed to "org.freedesktop.login1.reboot" (and the-like).

For example in 14.04 adding the following lines as /etc/polkit-1/localauthority/50-local.d/restrict-login-powermgmt.pkla works:

[Disable lightdm PowerMgmt]
Identity=unix-user:*
Action=org.freedesktop.login1.reboot;org.freedesktop.login1.reboot-multiple-sessions;org.freedesktop.login1.power-off;org.freedesktop.login1.power-off-multiple-sessions;org.freedesktop.login1.suspend;org.freedesktop.login1.suspend-multiple-sessions;org.freedesktop.login1.hibernate;org.freedesktop.login1.hibernate-multiple-sessions
ResultAny=no
ResultInactive=no
ResultActive=no

In addition note that this method block solely reboot/etc commands issued from GUI. To block reboot/etc commands from command line one may use molly-guard - as explained in Disabling shutdown command for all users, even root - consequences?


Ok, I could figured out how to (kind of) do so using this mencoder command

mencoder input-video.avi -sub mysub.srt -subcp utf8 -subfont-text-scale 3 -subfont-outline 1 -ovc xvid -oac mp3lame -xvidencopts pass=1 -o output-video.avi

Note: You need to either import a proper ttf file to your ~/.mplayer OR symlink the folder to a ttf file in /usr/share/fonts. (Doc)

The command can burn the Arabic utf8 fonts into AVI video, However, the only annoying thing that I see is that when a line in the .srt is long, the second line goes above the first one.


Sound coming out of headphones and speakers!

I can help. i had the similar problem. this actually has nothing to do with whatever software or OS you are using. I had to take my computer apart and tighten my headphone jack. If its not that then i dont know what it is


This article was tremendously helpful to me in setting up OpenVPN.  I assume you are running it as a client?  Of course, I do not know what configuration steps you have already performed, but it is likely that you need to edit your profile file ?.ovpn to, as a minimum, include the hostname of the server you are trying to connect to.  Then, depending on the client you are using, you can either merge the certificates and keys into ?.ovpn or supply them separately.  Step 4 in the linked article goes over this in detail.  Then step 5 shows how to incorporate the profile into a number of different client systems (IOS, OSX, Windows).


How to send the output of `time some_command` run repeatedly to a file?


X-Server broke after I tried to configure a theme in Xubuntu 16.04

I am still not completely sure why this worked, but deleting ~/.config/xfce4/xfconf/xfce-perchannel-xml/xsettings.xml (or rather renaming it to xsettings.xml.bk) fixed the problem.  And not just this problem, it also fixed the broken theme I was trying to fix with editing.

This is what this file used to be:

<?xml version="1.0" encoding="UTF-8"?>

<channel name="xsettings" version="1.0">
  <property name="Net" type="empty">
    <property name="ThemeName" type="string" value="Greybird"/>
    <property name="IconThemeName" type="string" value="elementary-xfce-darker"/>
    <property name="DoubleClickTime" type="empty"/>
    <property name="DoubleClickDistance" type="empty"/>
    <property name="DndDragThreshold" type="empty"/>
    <property name="CursorBlink" type="empty"/>
    <property name="CursorBlinkTime" type="empty"/>
    <property name="SoundThemeName" type="empty"/>
    <property name="EnableEventSounds" type="bool" value="false"/>
    <property name="EnableInputFeedbackSounds" type="bool" value="false"/>
  </property>
  <property name="Xft" type="empty">
    <property name="DPI" type="empty"/>
    <property name="Antialias" type="int" value="1"/>
    <property name="Hinting" type="int" value="1"/>
    <property name="HintStyle" type="empty"/>
    <property name="RGBA" type="empty"/>
    <property name="Lcdfilter" type="empty"/>
  </property>
  <property name="Gtk" type="empty">
    <property name="CanChangeAccels" type="bool" value="false"/>
    <property name="ColorPalette" type="empty"/>
    <property name="FontName" type="empty"/>
    <property name="IconSizes" type="empty"/>
    <property name="KeyThemeName" type="empty"/>
    <property name="ToolbarStyle" type="string" value="icons"/>
    <property name="ToolbarIconSize" type="empty"/>
    <property name="MenuImages" type="bool" value="true"/>
    <property name="ButtonImages" type="bool" value="true"/>
    <property name="MenuBarAccel" type="empty"/>
    <property name="CursorThemeName" type="empty"/>
    <property name="CursorThemeSize" type="empty"/>
    <property name="DecorationLayout" type="empty"/>
    <property name="ColorScheme" type="string" value="selected_bg_color:#398ee7;selected_fg_color:#eeeeee;"/>
  </property>
</channel>

The reason I decided to delete this file was that my guest account didn't have it. Initially, I was only going to copy all of my guest settings (I have an actual user named guest rather than a standard guest account, so it has its own home directory). But when I started comparing my files, I noticed that quite a few of them only exist on my main account. Which is when I tried to remove some of them. The xsettings.xml seemed the most suspicious to me because of its many empty values (although I kept in mind it was entirely possible they needed to be empty).

The moment I renamed it and restarted lightdm, I could log in to my main account, and the X-server loaded without problems. However, it is not the only file I subjected to this treatment. It is entirely possible that this solution only worked because I have renamed the other file, ~/.config/gtk-3.0/gtk.css. I also copied ~/.gtkrc-2.0 to ~/.gtkrc-2.0.bk, but it definitely wasn't what helped because I didn't remove the original file.

I didn't do anything else, other than trying to diagnose and backtrack the problem. Which I think paid off.

I am not sure what exactly caused this problem because I didn't edit the files until I already experienced it. It might be a glitch in the Theme Configuration GUI, because that's what caused the X-Server to freeze in the first place. Either way, if the same thing happens to you, I recommend that you keep at least two accounts (one of which you don't normally use) so that you could compare your configuration files, and if you don't, try renaming ~/.config/xfce4/xfconf/xfce-perchannel-xml/xsettings.xml to something else. It might just solve your problem.


Setting system wide preferences in Firefox

Firefox generally reads its settings from ~/.mozilla/firefox, so if you have the settings in a shared location, once that folder has been created, Firefox will ignore your shared settings. What you could do however is take a look at the addon xulet-ubufox  used by Ubuntu to modify Firefox settings (it is installed by default), and see how that gets it done.

Another option, if the systems do not yet have user accounts set up (or if you can recreate the accounts), is to put a customized ~/.mozilla/firefox folder in /etc/skel. This will be copied to all new accounts.

A third, possibly easier option, is to create the customized defaults, package them in a deb that points to some shared location like /usr/share/firefox-defaults, and then copy these settings on startup (of the user profiles) to ~/.mozilla/firefox. I don't know the full technical details of accomplishing this, but I believe it should be possible to do it by adding something to /etc/rc.local

Another way to get this ~/.mozilla/firefox re-initialised on every login could be by making a 'login-script', activated by the pam-script module. See here for more info on how to use it.


Concerning the behavior of `do-release-upgrade` with and without `-d`

About upgrade from 18.04 LTS to 20.04 LTS - it is blocked by some bugs. This is why we need -d here.
About next upgrades - you have to set back Prompt=lts in /etc/update-manager/release-upgrades.
The update-manager or do-release-upgrade will adjust their behaviour by reading above configuration file and -d option (if any) at next run time. So there are no worries here.


Is WUBI installation a full installation, or is it a live CD with persistent file or partition?

The two installations are very different.

wubi is a full installation and installs ubuntu into a file with is mounted at boot. Yes an update replaces files and the file can become full.

See https://wiki.ubuntu.com/WubiGuide

https://wiki.ubuntu.com/WubiGuide#How_do_I_migrate_to_a_real_partition.2C_and.2BAC8-or_get_rid_of_Windows_entirely.3F

Booting the iso with persistence is very different. The iso contains a ro file system (squasfs) which is mounted. When you use persistance a cow (copy on write) file is made. When you upgrade, the old files are NOT over written, they are copied to the cow file system and then updated. The cow files are overlaid on the ro files. So yes it takes up more space.

IMO persistance is best for maintaining customizations and data in your home directory. System updates or installing packages creates large files and tends to be error prone.


I can't install LibreOffice Base into Ubuntu 12.04

It appears that the files it's trying to download actually do not exist.

This suggests that you have not run

sudo apt-get update

before running a command like sudo apt-get install ....

So, try running sudo apt-get update first. That may fix this problem.


broadcom 4312 card. cant find any wireless network

Install the firmware for this type of card.

Execute in a terminal:

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


Open multiple directories with vlc in command line

What you did should work. What happens is that vlc opens the first folder immediately and starts playing, so when you look at the playlist, you will see the list of files in the first folder. The second folder is not expanded immediately, so you don't see its files, only its name. For example:

$ ls dir1 dir2
dir1:
1.wav  2.wav  3.wav

dir2:
4.wav  5.wav  6.wav

If I now open these directories with

vlc dir1 dir2

I get:

As soon as the playlist finishes the files from dir1, it becomes:

As you can see, both directories were added correctly but the contents of the second are only shown when vlc attempts to play them.

If you really need to have the files shown immediately, you can tell vlc to open the directories' contents instead of the directories themselves:

vlc dir1/* dir2/*

Or, if you need that to work recursively and open files in subdirectories as well:

shopt -s globstar
vlc dir1/** dir2/**


You update them manually. This means: if there is an updated appimage file available, you download it and replace the old appimage file with the new one.

Appimages work as self contained executables. They, by design, exist on their own on your system, in the folder where you put them yourself. There is no software present on your system that would allow to update them automatically.

In contrast to appimages, other systems to install software such as APT (Debian, Ubuntu) or the other new distribution formats, flatpak and snap, provide an automated application management framework. These packaging formats represent specific systems through which installed applications can be maintained, checked against a repository and updated according to their specific technologies.


How to make XFCE show the Shutdown Menu?

Short solution:
Make sure that xfce4-session and upower are installed, and that the affected user is in the "power" group. If this doesn't help, here comes the scary part:

System shutdowns must always be issued from a root context. Different desktop environments use different approaches to achieve this. Mostly the shutdown is requested via a dbus call from the login manager, which in turn runs as root.

XFCE however, in an approach to make things less bloated and employ simpler technologies, uses its own helper programs. (Hey, I think that's cool!)

The shutdown helper should be contained in the package xfce4-session.

If this package isn't installed in your system, there could be the solution to your problem already.

Furthermore your user should be able to run the shutdown helper with root permissions.   The xfce wiki has a paragraph on this:
http://wiki.xfce.org/faq#session_manager

Different distributions prefer different solutions described in this wiki. I cannot check right now what applies to you, since I'm neither using XFCE nor Ubuntu. I would start by making sure your user belongs to the "power" group. You might need to install upower to set up this group and its infrastructure in the first place.
Apart from configuring sudo or polkit as described in the wiki, issuing "chmod +s /usr/bin/xfce4-shutdown-helper" is a less secure but more convenient way to make sure the helper runs as root.

Well or has xfce4-shutdown helper become xfsm-shutdonw-helper? And is it placed in /usr/bin or /usr/sbin or /usr/lib/xfce4/ ..? I've lost track, it differs from distro to distro and from version to version. But maybe you don't need to get this deep into it.

Hope I could help ;-)


You're pretty close, you just missed a couple of steps.

Run
sudo add-apt-repository ppa:webupd8team/java
sudo apt-get update
sudo apt-get install oracle-java8-installer

The first command (which you already ran) adds the personal package archive, the second command updates your list of packages and the third command installs the package.

To verify that you installed the correct version, run java -version


Compress and split files in the file explorer

Only some archiving tools support splitting. One of them is RAR -- package rar (but it's shareware and you need to buy it after 40 days -- Shareware in Ubuntu repositories? (RAR)) and another is for example 7zip -- package p7zip-full. You need to install one of them (I suggest 7zip because it's completely free).

You can also create a sigle archive and then split it into parts using split command (or HJSplit for GUI).


Dual boot Linux/Mac OS X with native file support

This looks the closest to what I was looking for, found it just reading up on other things, figured if anybody else has similar concerns it would help them out: A Comprehensive Guide to Sharing Your Data Across Multi-Booting Windows, Mac, and Linux PCs


extract files from filesystem.squashfs file

From your overall question, and comments like:

i ran a diskless virtual machine with an iso as a "cd drive", and booted from the "cd".

It sounds to me like you may have only been running "live" with no persistence. Especially given the iso in the VM's "cd drive", I'm suspecting there might not be any saved files to recover, unless the VM saved them somehow...

But, maybe using a USB it did let you save persistent data. If there is a casper-rw file then you should be able to mount it and take a look, as Eric's comment suggests, with

mkdir /tmp/casper
sudo mount -o loop /path/to/casper-rw /tmp/casper


How to resolve the 'cannot get security labeling handle: No such file or directory' error?

Based on Naftuli Kay's answer the following command helped me solve this issue:
mount /sys/fs/selinux -o remount,ro


Man, you've got a unfortunate SoC, that is Bay Trail. I'll just quote the relevant part of another answer of mine on the like matter:

  There's a bigger problem: you've got a System-On-Chip called Bay Trail, and Intel is struggling yet to supply good support (which is funny, given the number of engineers, and that Bay Trail is in production). Most of the issues are fixed as of kernel 4.7, except that there's no sound.

  You can track the process of solving the bug with sound here. I'd recommend to hold with installation, while it gets solved (or, just in case you're a programmer, you could try to join the fun of getting the sound up and running).


Send sms from the command line from Ubuntu over an Android connected with gsconnect?

Currently, I found no answer to the specific question I asked, because the GSConnect suite doesn't include CLI commands.

But I found a workaround in two steps:

You can issue adb commands over a bluetooth link. See: https://stackoverflow.com/questions/11129817/adb-over-bluetooth-android
Once you can use adb, you will find how to send an SMS looking at: https://stackoverflow.com/questions/4043490/how-do-i-send-an-sms-from-a-shell

Hoping this helps.


Difference between /var/log/messages, /var/log/syslog, and /var/log/kern.log?

Syslog is a standard logging facility. It collects messages of various programs and services including the kernel, and stores them, depending on setup, in a bunch of log files typically under /var/log. In some datacenter setups there are hundreds of devices each with its own log; syslog comes in handy here too. One just sets up a dedicated syslog server which collects all the individual device logs over the network. Syslog can also save logs to databases, and other clients.

According to my /etc/syslog.conf, default /var/log/kern.log captures only the kernel's messages of any loglevel; i.e. the output of dmesg.

/var/log/messages instead aims at storing valuable, non-debug and non-critical messages. This log should be considered the "general system activity" log.

/var/log/syslog in turn logs everything, except auth related messages.

Other insteresting standard logs managed by syslog are /var/log/auth.log, /var/log/mail.log.

2020 update

You may still stumble upon syslog; but the defaults have changed.

journald has replaced syslog, in quite a big portion of systems, including Ubuntu.

This is relevant because you won't be finding /var/log/messages that often anymore. journald doesn't write plaintext logs — it uses its own, compressed and partially authenticated format.

Search online for e.g. journalctl cheatsheet, or just study man 8 systemd-journald, man 1 journalctl yourself.

Syslog and journald are, to a degree, cross-compatible; you can transport logs between them in either direction. However, you won't get plaintext logs a-la /var/log/messages with journald; and you won't get structured (journalctl -o json-pretty) and authenticated logging with syslog.


Which character can work as "tick" (US "check-mark") in documents under Ubuntu and Windows?

Unicode has a character for the tick (check-mark) character:

✓

http://en.wikipedia.org/wiki/Tick_(check_mark)

You can find this character using the search function of the "Character Map" application.  But do search for "check mark" and not "tick".


Can't boot Ubuntu 12.04 or any other Linux distribution on my Fujitsu Siemens Amilo xa 2528

It seems that the best way to actually install Ubuntu when faced with errors like initramfs and other weird stuff is to install via mini.iso, it gave me no issues at all and booted beautifully. Put it on a USB and go to town if you're having similar issues.


Whats wrong with the NFS client in 16.04

Argh, the problems was not setting rsize=32768,wsize=32768.

I mount using defaults and just assumed this didn't change. It did and 14.04 don't show default values in the mount list like 16.04 does. That is why i didn't pick up on it sooner.

rsize/wsize defaults for NFS mounts changed to 1048576 in 16.04.


Jekyll broken after upgrading Ubuntu/Ruby

I had the same issue. It's caused by ruby update in new Ubuntu. Just uninstall jekyll and install it again:

gem uninstall jekyll
gem install jekyll


Your core issue is here:

SCPlugin-Ifupdown: devices added (path: /sys/devices/virtual/net/tun1, iface: tun1)
SCPlugin-Ifupdown: device added (path: /sys/devices/virtual/net/tun1, iface: tun1): no ifupdown configuration found.

When the VPN service is started, it adds a network interface tun1, and tries to configure it. However, there is no configuration for tun1 in /etc/network/interfaces, so the VPN service stops right there.

Now, I don't know enough about VPNs on Linux to tell you exactly what to do. Maybe it was tun0 before, and another tun0 has been added to the machine, so it increased by one? Maybe you can just set-up tun1 in /etc/network/interfaces?


Keyboard shortcut to paste text in lowercase

That sounds useful... I do that very untidily like this...

Paste the text into a terminal (making sure it doesn't have any destructive commands or end with a new line.)

Press ctrl+a to go to the start
Press alt+l repeatedly or hold it down to lowercase each word.
Copy the text to the clipboard...


This is likely a inode issue. df -i will give a percent inode used.

If inode's are your problem finding an lot of small files and archiving and deleting or just deleting them will free inode's. du ~/ | sort -n | head -n 10 will list the 10 smallest files in the current users home dir.


To be able to upload your project to launchpad, you must have the SSH key of your computer recognized by your launchpad account, a ppa set up for your project, your openPGP key recognized by launchpad, and then you must run quickly share or quickly release. It should connect to launchpad, allow you to specify the ppa where you wish to upload, then upload it. I had problems similar to yours yesterday, then I found out I had to make launchpad recognize my computer.


Android emulator independent of Virtual Box/VM-ware capability

Anbox, seems to be active.

Shashlik, as of writing the words last activity on github was 2016 year, so could be abandoned.

Archon, a runtime for running Android in Chrome. If I am correct that this is the code (I am not sure because its name is distinct for some reason; but the front page points there, and google didn't give other links), then as of writing the words last activity was in 2015 year.

I can't remember the names, but there is a few more (AFAIK inactive) projects of that sort.

Either way it boils down mostly to amount of devs wanting to work on that. So if you occasionally know devs or CS students or just enthusiasts wanting to run Android natively on their desktop, point them to try joining one of those projects ;)


Install error for GIMP 2.8 repository in Ubuntu 12.04

So, in case anyone else runs into this problem, I figured out how to fix this.  It was actually a problem with the apt-get-repository package itself, rather than something to do with gimp.  So I'm thinking I must have removed the above mentioned libheimbase.so.1 file while uninstalling something else, since this seems to be a shared file/library.  So I looked up the origins of this file and it's part of the package: libheimbase1-heimdal

So I installed/reinstalled this package:

sudo apt-get install libheimbase1-heimdal --reinstall

Then did the normal actions for installing the repository and gimp.

sudo add-apt-repository ppa:otto-kesselgulasch/gimp
sudo apt-get update
sudo apt-get install gimp

and everything is working perfectly now!


At first remove the skypeforlinux package by

sudo dpkg --remove --force-all skypeforlinux

then get all updates and install them

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

and then resume installation of Zoom.


updated from ubuntu 18.04 to 20.04 and now my django project is not working

Okay so I solved this by deleting my virtual environment folder and all the libraries and 3rd party apps that I was using then I created new virtual environment and installed everything from my requirements.txt file again


Startup Disk Creator will only work with Ubuntu and other Linux distros.

You need to install WinUSB if you want to make bootable USBs containing Windows through Ubuntu.

To install WinUSB, open a Terminal and enter the following commands -

wget https://launchpad.net/~colingille/+archive/freshlight/+files/winusb_1.0.11+saucy1_amd64.deb

sudo dpkg -i winusb_1.0.11+saucy1*

sudo apt-get -f install


juju bundle deploy in one machine in LXC?

I'm going to append a slight bundle modification below that should get you up and running.

sample:
  services:
    ubuntu:
      charm: "cs:trusty/ubuntu"
      num_units: 1
    mysql:
      to: lxc:ubuntu=0
      charm: "cs:precise/mysql-27"
      num_units: 1
      annotations:
        "gui-x": "139"
        "gui-y": "168"
    wordpress:
      to : lxc:ubuntu=0
      charm: "cs:precise/wordpress-20"
      num_units: 1
      annotations:
        "gui-x": "481"
        "gui-y": "178"
  relations:
    - - "wordpress:db"
      - "mysql:db"

What I did differently was deploy an ubuntu charm to the canvas which will just deploy an ubuntu host. Nothing fancy - no additional config. From there, i deploy to LXC containers targeted at that host which will warehouse your MySQL and Wordpress instances in LXC - mind you we still haven't resolved reachability from the outside world and this will require a reverse-proxy server, such as haproxy to live on the "ubuntu" node. Not LXC but the parent service.

juju deploy cs:trusty/haproxy --to ubuntu/0

or if your machine id were #1

juju deploy cs:trusty/haproxy --to 1

From here you should see 2 total machines consumed (1 for the bootstrap, 1 for the LXC containers + haproxy)


How may I clean ALL the cruft from 12.04?

I have a very similar attitude to yours and have two ways for solving your problems, both used by me with success:

Remove unnecessary packages, leaving only those that you deem necessary. Read this thread. It's quite long, a bit complicated and I remember experiencing problems (which taught me a lot and were well worth the trouble
Get Ubuntu MinimalCD and install your system from scratch (not as scratch as linuxfromscratch) and build up from there. I did it several times, it's not at all difficult and taught me a lot about dependencies between packages. I'm not sure whether you can marry that approach with wubi, though (didn't check, have no idea).


How can I check from the command-line if my integrated Wi-Fi adapter is disabled?

While Zanna's answer is correct on Connection level, You can check if the actual device is disconnected or disabled using this command

nmcli device status

It will show in color for network devices either disconnected or unavailable status. While

disconnected means the device is enabled, but disconnected from any connection
unavailable means the device is disabled.

This is the output I get when my wifi device is disabled.

DEVICE                                    TYPE      STATE         CONNECTION
ttyUSB0                                   gsm       connected     MyISP Web
AB:CD:EF:GH:IJ:KL                         bt        disconnected  --
enp0s29f7u5                               ethernet  unavailable   --
enp6s0                                    ethernet  unavailable   --
hfp/org/bluez/hci0/dev_AB_CD_EF_GH_IJ_KL  gsm       unavailable   --
wlp4s0                                    wifi      unavailable   --
lo                                        loopback  unmanaged     --

The particular line shows this when It is enabled, but disconnected

$ nmcli device status
DEVICE                                    TYPE      STATE         CONNECTION
wlp4s0                                    wifi      disconnected  --


how to manage high ram usage of an MPI app

From the comments...

Mem 7.7GB Available 517MB
Swap 2 GB Available 1.4 GB

Do to the use of an application that requires significant resources, I recommend more RAM and more swap.

Add RAM in matched pairs, to take advantage of memory interleaving. So if you've got one 8G DIMM now, add another 8G DIMM. If you've got two 4G DIMMs, then replace them with two 8G DIMMs.

I recommend trying a 8G swap for now. We can adjust it later. We can also adjust vm.swappiness later if it's determined to require adjustment.


The Linux kernel has a process which monitors each CPU on the system.

There are special interrupt(s) in the kernel. This interrupt(s) function calls a soft-lockup counter, it will compare the current time stamp with the specific kernel CPU data structure time information. If it looks like the current time stamp is greater than the defined threshold (in seconds) later as compared to the stored time stamp, it is assumed that the monitoring process or watchdog thread(s) have not executed in a respectable amount of time.

Why or how can a CPU soft lock occur? How can a CPU get locked if the kernel is carefully scheduling CPU access? Basically any poorly written code that loops a lot or infinitely, would own a CPU and get some priority. It can be a programming problem or 3rd party software.

Locking issues in drivers. Even kernel bugs in important drivers or the scheduler. A scheduler could tell schedule a driver routine to run and if that driver has problems and doesn’t check on it, that driver routine could own or hog that CPU for a longtime. By definition as described above, the watchdog would catch this and issue a soft lockup alert.

Soft lockups mostly hang a CPU and possibly your system temporarily.

A kernel update may fix the problem.  To update the kernel, just press Ctrl+Alt+T on your keyboard to open Terminal. When it opens, run the command(s) below:

for 32-bit system:

wget http://kernel.ubuntu.com/~kernel-ppa/mainline/v3.11-saucy/linux-headers-3.11.0-031100-generic_3.11.0-031100.201309021735_i386.deb
wget http://kernel.ubuntu.com/~kernel-ppa/mainline/v3.11-saucy/linux-headers-3.11.0-031100_3.11.0-031100.201309021735_all.deb
wget http://kernel.ubuntu.com/~kernel-ppa/mainline/v3.11-saucy/linux-image-3.11.0-031100-generic_3.11.0-031100.201309021735_i386.deb

for 64-bit system:

wget http://kernel.ubuntu.com/~kernel-ppa/mainline/v3.11-saucy/linux-headers-3.11.0-031100-generic_3.11.0-031100.201309021735_amd64.deb
wget http://kernel.ubuntu.com/~kernel-ppa/mainline/v3.11-saucy/linux-headers-3.11.0-031100_3.11.0-031100.201309021735_all.deb
wget http://kernel.ubuntu.com/~kernel-ppa/mainline/v3.11-saucy/linux-image-3.11.0-031100-generic_3.11.0-031100.201309021735_amd64.deb

For both 32-bit & 64-bit, run below command to install them:

sudo dpkg -i linux-headers-3.11.0*.deb linux-image-3.11.0*.deb

Once installed, restart your computer!

If you have problem with this kernel, run below command to remove it:

sudo apt-get purge linux-image-3.11.0*

Sources:Linux Kernel & How to upgrade Kernel Version


A solution is to install the gnome-icon-theme package.


How do I modify "/sys/kernel/mm/transparent_hugepage/enabled"

You can

install the sysfsutils package:

sudo apt install sysfsutils

and append a line with that setting to /etc/sysfs.conf:

kernel/mm/transparent_hugepage/enabled = never

This is the cleanest solution, because it keeps all the sysfs configuration in one place instead of relying on custom start-up scripts. The other answers, with the scripts and conditional expressions, are suitable if you don't know through which path the kernel will expose that setting, i. e. if you don't even have a rough idea of the kernel version running on the affected machine.


"The software on this computer is up to date" while upgrading 12.10 to 13.04

Question here, have you tried looking at the System Settings > Software & Updates information? Specifically on the updates tab, look at the drop-down where it states:

Notify me of a new Ubuntu version:

If it does not say 'For any new version' but instead says anything else, then this would occur.


How to install ubuntu packages offline from installation CD

You can download the required files from another system which is connected to Internet. For that you have to create a download script from the server.

apt-get --allow-unauthenticated -y install --print-uris build-essential | cut -d\' -f2 | grep http:// > download-list

This will create a new file named download-list in which the required files for download is included.

Now copy this file download-list to the system where you have Internet facility.

Run the following command to download all files.

wget -c -i ./download-list

Now copy all the downloaded .deb files to the /var/cache/apt/ folder of your server. You will need root permission for this.

After this you can install build-essential simply as we do regularly.

sudo apt-get install build-essential


The directory was received from another user on the remote machine.
You are not the owner of that machine so i suspect that the directory is "secured" from sudo command.
Try to contact the user that you received the directory from and the root of the remote machine and ask them to run this commands:

chown -R yonatan:yonatan <filename> or chown -R 1004:1005 <filename> (wich is the same command).
if the root run the command he can run it directly on the file you have received.
if the user that sent you the directory running the commands he needs to run that on a copy in his own "home file" and then sent it to you with your uid and gid permissions.

After you will be the owner of the directory try to run again the chmod command with the permissions you want.

for an example chmod 775 <filename>

Remarks:

in your own specific case 93501 is the user that own the directory and 1491 is the group that own the directory.
another option for a solution is to add your own user to 1491 (by the root), but then if other group 1491 users have access to your directory they will still have permissions to the file.
i recommend to use this calculator as "permissions calculator" http://permissions-calculator.org/
if the following answer is failing to solve the problem please let me know on the comments so we can keep try to solve that out.


installing ubuntu 13.04 along side window 7 64 bit

It looks like Ubuntu is not seeing Windows.

Follow these instructions to fix the problem:

Boot into BIOS
Set the SATA mode to IDE
Set the SATA3 mode to AHCI
Install. You will need to change these settings back when you boot into Windows and vice versa, as Windows cannot boot with these settings.
It is likely the bootloader will not show up, but that can be fixed easily by first typing sudo fdisk -l in a Terminal
Then, run sudo mount /dev/STEP_5_OUTPUT /mnt && sudo grub-install --root-directory=/mnt/ /dev/sda

Now you should be able to boot, but be sure to revert the changes to BIOS to boot Windows and vice versa


Why I have several mount point with the same name?

When we take a look to your ls -l /media/$USER we will make sure. But the guesses now is that you have not 1 but 2 directories called Virtual Box in /media/$USER. The easiest way to solve this is:

Make all directories symbolic links of /media/$USER/Virtual Box:

sudo umount /media/$USER/Virtual\ Box2
sudo umount /media/$USER/Virtual\ Box1
sudo umount /media/$USER/Virtual\ Box
mv /media/$USER/Virtual\ Box2 /media/$USER/Virtual\ Box
mv /media/$USER/Virtual\ Box1 /media/$USER/Virtual\ Box
ln -s /media/$USER/Virtual\ Box2 /media/$USER/Virtual\ Box
ln -s /media/$USER/Virtual\ Box1 /media/$USER/Virtual\ Box

Remove the others directories and remount the drive again:

sudo umount /media/$USER/Virtual\ Box2
sudo umount /media/$USER/Virtual\ Box1
sudo umount /media/$USER/Virtual\ Box
rm -ri /media/$USER/Virtual\ Box2
rm -ri /media/$USER/Virtual\ Box1
rm -ri /media/$USER/Virtual\ Box

Restart the system.


A CD is a storage medium and it is automatically mounted when inserted in the optical drive tray and shown in Files file manager like any other storage media or device. From Files simply copy the zipped archive from the CD and paste it wherever you want.


Can't enable wireless connection; no blocks on wifi card

You have installed a wrong driver. Connect to the internet by wire and run

sudo apt purge bcmwl-kernel-source
sudo apt install firmware-b43-installer

and reboot.

You can disable hp_wmi that blocks your WiFi by running

sudo tee /etc/modprobe.d/blacklist-hp.conf <<< "blacklist hp_wmi"

Reboot after that.


Ubuntu 18.04 (Bionic Beaver) hangs on purple login screen

Have you tried ALT+F2 or ALT+F3 to get another login screen?
I think ALT + F10 takes you to system log where you can see what happened.


How to install latest version of R on Ubuntu 12.04 LTS?

GUI method

In the Ubuntu Software Center, click "Edit > Software sources..."
On the "other software" tab, click "Add..."
Enter the following settings:

Type: Binary
URI: http://cran.fhcrc.org/bin/linux/ubuntu
Distribution: trusty/
Components:
Comment: R CRAN

This creates a new "software source" that will be checked alongside the regular Ubuntu/Canonical software repositories. After you do this, you need to re-run sudo apt-get update to query the new repository. After that, your system will default to installing R from the CRAN source rather than Canonical, since the CRAN source will always have an equal or greater version number.

Important notes

the URI line can have lots of different values, and you should pick one that is geographically close to you from the list of CRAN mirrors. cran.fhcrc.org is in Seattle, USA.
the Distribution line should match the "codename" of your Ubuntu version, which you can get by typing lsb_release -cs in a terminal window.

Terminal method

There are good instructions here. Briefly:

codename=$(lsb_release -c -s)
echo "deb http://cran.fhcrc.org/bin/linux/ubuntu $codename/" | sudo tee -a /etc/apt/sources.list > /dev/null
sudo apt-key adv --keyserver keyserver.ubuntu.com --recv-keys E084DAB9
sudo add-apt-repository ppa:marutter/rdev
sudo apt-get update
sudo apt-get upgrade
sudo apt-get install r-base r-base-dev

Again, replace cran.fhcrc.org with a geographically appropriate choice from the list of CRAN mirrors.


How to configure Apache2 to allow it to read directories from other media

I have figured it out. I have to run Apache as user who mounted the media I want to use. In order to do that I had to modify two lines of apache2.conf file.

I had to check what user have permissions to read files from /media/user/E874D9B0/wamp24/www/app2/ with ls -al command. And write that user name into config file.

User user
Group user


keyboard up- down-arrowkeys do not respond from browser address bar

It is still not working in Firefox, but at least with the Chromium update that was released on the 23th of September 2014, it's working.
Chromium Version 37.0.2062.120 Ubuntu 14.04 (281580) (64-bit)


How can I find an always updated list of repository mirrors?

There is an extensive list of repository mirrors, including how up-to-date they are, here. If you click on a mirror it will give you the URL to use in your software sources (or source.list).

For CD image mirrors, see here.