You can edit the grub configuration file at /etc/grub/grub.cfg, removing the offending entry and then enter sudo update-grub, however this can be a little difficult.

An alternate solution is to use GrubCustomizer

sudo add-apt-repository ppa:danielrichter2007/grub-customizer
sudo apt-get update
sudo apt-get install grub-customizer

Then run the program grub customizer from the Dash.  It will display the menu nicely, allow you to delete an entry, and update grub for you


How do I install the new BootHole update?

Most folks don't need to do anything at all.
The Ubuntu Security Team has labored mightily to ensure that these CVEs can be fixed through normal security upgrades. For most folks, those occur automatically.

Ensure that you have the -security repository enabled for your release of Ubuntu. This is already enabled by default in all deb-based versions of Ubuntu. The following steps won't work without the -security repository enabled.

Related: How to enable the -security repository (most folks do not need this)

Unattended Upgrades is also enabled by default. If it's enabled, then you don't need to do anything. The fixes will be automatically downloaded and installed automatically.

If you have disabled Unattended Upgrades, or don't want to wait a couple hours, then an ordinary sudo apt update and sudo apt upgrade will install the fixes.

To check if you have already received the security upgrade is a simple two-step process:

Look at this table to determine your NEW package version.
Example: on 20.04, the table says that the package grub-efi-amd64-bin is fixed with version 2.04-1ubuntu26.1

Query apt for the current installed version.
Example: On 20.04, the current version according to apt:
 $ apt list grub-efi-amd64-bin
 Listing... Done
 grub-efi-amd64-bin/focal-updates,now 2.04-1ubuntu26.1 amd64 [installed,automatic]

See how the version number matches the table? This system is already fixed (it was done by Unattended Upgrades automatically a few hours ago)

References:

Security Team Blog Post on the Boothole vulnerabilities.

Ubuntu Security Podcast Episode 84, a discussion from the Ubuntu Security Team of the vulnerability, how the fix works, and how the fix was coordinated across multiple distros.

Ubuntu Wiki Page detailing the CVEs

Ubuntu Security Notice for boothole, showing the fixed package versions.


I found the problem was nothing to do with Tor being used as a relay. When you create a new tor instance it downloads about 8.5MB of data to the specified data directory. If you are creating multiple tor processes at once, this will cause a lot of bandwidth to be used. But once you have a data directory established, it does not download these files again. You can probably set multiple tor processes to run from the same data directory by specifying a different pid file for each process, using the command:

--PidFile tor$i.pid


Unmet dependencies for cups when running apt-get upgrade

Run dpkg -l | egrep '^ii.*cups' to see all your installed CUPS packages. If some of them are at version 2.1.3-4ubuntu0.2, revert them to version 2.1.3-4 with

sudo apt install package1=2.1.3-4 package2=2.1.3-4 ...


If you already have ability to ssh onto that remote host then on local ubuntu machine issue

sudo apt-get install sshfs

mkdir ~/local_mountpointdir  # create empty local live mirror of remote dir

sshfs remoteuserid@remotehost:/path/remote_dir  ~/local_mountpointdir

You are free to use any local editor to do live edits on any file living on that remote dir  /path/remote_dir  by editing the same filename found on your new local live mirror directory ... still on local machine issue

cd  ~/local_mountpointdir
ls -la   # you will see all files listed which live on remote host

Now just edit any file in  ~/local_mountpointdir which will live real time auto sync all edits up to remote host dir ... when done just kill the local box  pid running sshfs at which point the connection will be gone and so will the contents of  ~/local_mountpointdir  knowing they are safe up on remote host  ...  killall sshfs


NTFS file systems cannot be trimmed in Linux, it is not supported. From wikipedia :

  Not all filesystems make use of Trim. Among the filesystems that can issue Trim requests automatically are Ext4,[25] Btrfs,[26] FAT, GFS2[27] and XFS.[28] However, this is disabled by default due to performance concerns,[29] but can be enabled by setting the "discard" mount option. Ext3, NILFS2 and OCFS2 offer ioctls to perform offline trimming.


Why do I get a command not found message when I open a terminal?

Your ~/.bashrc contains a line calling rbenv, but it isn’t installed on your system. Either remove the line or install the software as suggested and the message will cease to appear.


How is Ubuntu 18.04 available already? (Lubuntu)

According to official site Lubuntu 18.04 LTS is available since 2018-04-26.

So you can try to start upgrade as usual.


Unable to install windows driver for Belkin n600 DB

Ubuntu should recognize your wifi usb stick. If it's not for some odd reason, I'd suggest you exchange it for Wifi extender, or Wall-plug range extender (one that you plugin into power outlet in one room and another one plug in the basement). Both of those options will allow you to connect via ethernet cable and it should work 100%. Plus you'll get a better speed/link if you use power wall plug extender.


PPTP VPN missing in "connection type dialogue" in Ubuntu 16.04

I believe you are missing the GUI components of Network Manager PPTP VPN packages.  pptp-linux is the core for PPTP functionality, and network-manager-pptp is the core for Network Manager's PPTP functionality, but the core required software and libraries does not equate to the GUI components which show in the Network Manager GUI.

Install the network-manager-pptp-gnome package and see if it becomes available under VPN items

sudo apt-get install network-manager-pptp-gnome


How to fix Empathy startup bug and sudden crash?

After rebooting it resets itself.

That could be an issue with file permissions. Maybe for some reason Empathy has not the rights to write in it's configuration files the settings that you made, because the permissions of the folders or files used by Empathy are wrong. Performing following command in terminal should fix this issue:

chmod -R 700 ~/.config/Empathy/ && chmod -R 700 .mission-control/accounts/


I have Ubuntu installed on an SSD. Will mounting my HDD to increase storage space reduce performance?

SSDs are typically faster than HDDs at reading and writing information to the disk
Any data kept on your HDD will be subject to the limitations of the read/write speed of your HDD.
Your operating system and software need to access your disk frequently, so if you keep your OS and your software on the faster SSD, those tasks will benefit from the increased read and write speeds.
It is only when your computer needs to access files stored on your HDD that you will be subject to the slower read/write speeds of the HDD.


Taking screenshot of a specific area from the command line

In Lubuntu, you can do exactly what you want: take a screen shot from the command line with the command:
scrot_extended 100 100 400 400

using the script below.
The four arguments are <x>, <y>, <width>, <height>.
I didn't have the chance (yet) to test it in Lubuntu 12.04, but it seems unlikely it wouldn't work; it uses python 2 and basic command line tools that exist for a long time already.
Explanation
The script:

takes a screenshot with scrot
saves it into a temporary file
using imagemagick, it creates a new image, cropping the screen shot, with the arguments you ran the script with
the image is saved into a directory as a numbered file, to prevent overwriting

How to use

The script uses both scrot and imagemagick. scrot should be on your system. To install imagemagick:
 sudo apt-get install imagemagick

Copy the script into an empty file

By default, images are saved to ~/scrot_images, named: outputfile_1.png, outputfile_2.png etc. . Change it if you want, as marked in the script. Note that if you change the diretory, you have to use the full path.

Save the file to ~/bin (create the directory if needed) as scrot_extended (no extension) and make it executable.

Log out and back in and take your screenshot with the command:
 scrot_extended <x> <y> <width> <height>

Example:
scrot_extended 100 100 400 400

outputfile:

The script
#!/usr/bin/env python
import subprocess
import os
import sys
# setting default directories / filenames
home = os.environ["HOME"]
temp = home+"/"+".scrot_images"
img_in = temp+"/in.png"
# if you prefer, you can change the two line below:
output_directory = home+"/"+"scrot_images" # output directory
filename = "outputfile"                    # filename
# creating needed directories
for dr in [temp, output_directory]:
    if not os.path.exists(dr):
        os.mkdir(dr)
# creating filename (-number) to prevent overwriting previous shots
n = 1
while True:
    img_out = output_directory+"/"+filename+"_"+str(n)+".png"
    if os.path.exists(img_out):
        n = n+1
    else:
        break
# reading arguments,arranging commands to perform
coords = sys.argv[1:5]
cmd1 = ["scrot", img_in]
cmd2 = ["convert", img_in, "-crop", coords[2]+"x"+coords[3]+"+"+coords[0]+"+"+coords[1], "+repage", img_out]
# Take screnshot, crop image
for cmd in [cmd1, cmd2]:
    subprocess.call(cmd)


Cannot load font 7x13bold while using xosview

It was an old bug, check here. However, this can easily be solved by installing xfonts-base package as suggested in the bug reports. xfonts-base package has 7x13bold font.

Open a terminal and Install it with this command

sudo apt-get install xfonts-base

Hope that will solve the problem.


How to fix stuck boot after upgrade to 19.10?

Your issue most likely comes from splash screen. In order to enter your system you can temporally make your system bootable via:

Enter grub menu by pressing Esc during startup of the machine
Hit "e" in order to edit startup options one Ubuntu selection
Search for the line quiet splash and replace it with nosplash
Store it via ctrl + x and boot into the system

Once you are in your system, make the change permanent via:

Edit the file /etc/default/grub with admin rights and change the value for GRUB_CMDLINE_LINUX_DEFAULT fromi quiet splash to nosplash.
Run sudo update-grub2 to persist the change


Is there a way to convert a PDF file to ePUB format WITHOUT using Calibre

We know you don't like Calibre... but have you tried its CLI conversion tool?

The Calibre install provides the command ebook-convert that will handle what you want, and there's no need to run Calibre.

ebook-convert file.pdf file.epub

is all that's required.

If the output looks a little wrong - try this

ebook-convert file.pdf file.epub --enable-heuristics

It will try a "smart" way to convert. Not perfect, but can work well in most conversions.


After trying to downgrade the bluetooth package to see if that made a difference, I decided/realized that while it may have improved somewhat, it did not fix the issue. Continued researching and found: https://ubuntuforums.org/showthread.php?t=2372916.

Suggestion is:

echo "options iwlwifi bt_coex_active=0" | sudo tee /etc/modprobe.d/iwlopt.conf

Then restart.

Seems to be working substantially better


try this
'sudo ifdown -a'
'sudo ifup -a'


Flickering monitor connected by VGA to new System76

Solution to my own question:  Stop trying to use a VGA connector.  Instead, use something digital like HDMI or DVI.  My computer had HDMI and my monitor had DVI; an adapter between those two ports gave me a perfect image on the monitor.


How do I fix UPnP Port Forwarding on Ubuntu using miniupnp?

I just used upnp-router-control to add a port forwarding to my router and it worked like a charm :)

If that doesn't work for you i would suggest you use wireshark to analyze the network traffic and look where it hangs.


Any 'tray' for cloud indicator in Ubuntu 17.10?

You may have to enable the panel integration. You can use an extension like TopIcons.

You can read this guide to know how to use GNOME extensions in Ubuntu. Just a disclaimer, I wrote this guide.


Will the files from other partitions show in ubuntu dual boot?

Yes I have Ubuntu 20.04 and I can access all files in other drives from  Ubuntu but I can't access the data from the drive where the Ubuntu is installed because if you see the drive partition ( from disk management in Windows ) where Ubuntu is installed the drive has no letter assigned to it. Generally when we see any other drive it has name so we can access it but the drive where Ubuntu is installed has no name so we can't access it from Windows.
So You can access every thing including Windows files from Ubuntu but you can't access the data from the drive where Ubuntu is installed by using Windows There should be a way but I don't know how to do that. Thankyou


Okular snap package fails to find libKF5Parts.so.5

The library is part of the kde-frameworks-5 snap which you need to install first. Do this to fix it:-

sudo snap remove okular
sudo snap install kde-frameworks-5
sudo snap install okular


How do I open specific applications on specific workspaces in Lubuntu 13.04

Let's assume you have four desktops. And you want to always launch leafpad on Desktop 1,  chromium-browser on Desktop 2, lxterminal  on Desktop 3, and Document Viewer on Desktop 4.

First you need to run a program called xprop for each application this way as illustrated with leafpad. On any desktop, open lxterminal (not maximized) and open leafpad (not maximized). Then, in lxterminal, run xprop | grep "^_OB_APP". Nothing happens but the mouse cursor is now a cross-hairs. Now, click anywhere within the leafpad window. Then look back in the terminal window. You should see output like this:

[08:39 PM] ~ $ obxprop | grep "^_OB_APP"
_OB_APP_TYPE(UTF8_STRING) = "normal"
_OB_APP_TITLE(UTF8_STRING) = "(Untitled)"
_OB_APP_CLASS(UTF8_STRING) = "Leafpad"
_OB_APP_NAME(UTF8_STRING) = "leafpad"
_OB_APP_ROLE(UTF8_STRING) =

Then, do this for the other programs.

_OB_APP_TYPE(UTF8_STRING) = "normal"
_OB_APP_TITLE(UTF8_STRING) = "Untitled - Chromium"
_OB_APP_CLASS(UTF8_STRING) = "Chromium-browser"
_OB_APP_NAME(UTF8_STRING) = "chromium-browser"
_OB_APP_ROLE(UTF8_STRING) = "browser"

_OB_APP_TYPE(UTF8_STRING) = "normal"
_OB_APP_TITLE(UTF8_STRING) = "LXTerminal"
_OB_APP_CLASS(UTF8_STRING) = "Lxterminal"
_OB_APP_NAME(UTF8_STRING) = "lxterminal"
_OB_APP_ROLE(UTF8_STRING) =

_OB_APP_TYPE(UTF8_STRING) = "normal"
_OB_APP_TITLE(UTF8_STRING) = "Document Viewer"
_OB_APP_CLASS(UTF8_STRING) = "Evince"
_OB_APP_NAME(UTF8_STRING) = "evince"
_OB_APP_ROLE(UTF8_STRING) =

With this information, we can proceed.
Make a backup of ~/.config/openbox/lubuntu-rc.xml.
Use a text editor, preferably one providing syntax highlighting, to edit lubuntu-rc.xml as described below.

Lubuntu-rc.xml has several sections and we're interested in the last section that starts with <applications> and ends with </applications>. You'll notice that the content in between these tags is commented out by the use of <!-- and -->.

Move to the end of this section and just above the line that has </applications>, paste in the following (as an illustrative example):

<application name="leafpad" class="Leafpad">
<desktop>1</desktop>
</application>

<application name="chromium-browser" class="Chromium-browser">
<desktop>2</desktop>
</application>

<application name="lxterminal" class="Lxterminal">
<desktop>3</desktop>
</application>

<application name="evince" class="Evince">
<desktop>4</desktop>
</application>

(Please note everything is case-sensitive. Use regular double quotes not smart quotes --- smart quotes may confuse the syntax highlighting in some editors.)

Save and close lubuntu-rc.xml. In a terminal, run openbox --reconfigure to register the changes. If you've done everything correctly, you'll just get the command prompt back. If you've messed up the tags, you'll get a pop-up!

Now, whenever you launch the programs you've specified above, they'll open on the assigned desktops.

I've found Openbox - Edit rc.xml to Gain Control very helpful in understanding lubuntu-rc.xml even though it's not written for Lubuntu.

Please note that you can also specify how (most) windows open. In other words, you can specify if they are to open maximized or, if not maximized, you maybe able to specify their size and position on the respective desktop.


Wacom Bamboo Pen & Touch not working after installing doctormo's PPA

It looks like your wacom tablet isn't being discovered by the underlying usb driver. There is no way that your wacom will work if the usb device isn't plugged in and detected by the kernel.

Check any usb hub, check everything over. Your wacom will have to appear in the lsusb in order for the wacom driver to kick in. Also check your dmesg log to see if it's being junked by some weird kernel error. More logs will be needed to confirm what's going wrong.


Local Workspaces Permissions Management and GitHub Integration

Turn on the credential helper so that Git will save your password in memory for some time. By default, Git will cache your password for 15 minutes.

git config --global credential.helper cache
# Set git to use the credential memory cache

git config --global credential.helper 'cache --timeout=3600'
# Set the cache to timeout after 1 hour (setting is in seconds)

See: https://help.github.com/articles/caching-your-github-password-in-git/


Add quotation marks to selected word via shortcut

One solution would be the following:

Go to Settings > Configure Kate > Editing
Activate the Auto brackets option

Now you are able to wrap the selected text with brackets.

Though there is one drawback. The Auto brackets option is "always on", meaning that once you type "(" the corresponding ")" also comes up.


How do I uninstall Ubuntu One on Windows 7?

Or choose "Uninstall Ubuntu One" from the start menu.

And then remove this folder:

c:\program files\ubuntuone

and if you're on 64-bit:

c:\program files (x86)\ubuntuone

Then in the Control Panel → Credentials, remove the "Ubuntu One" key.


Use Vmware workstation (commercial) or VirtualBox (free)


Why does my network feature is disabled?

Ahh, the good old NM bug.

stop network-manager

sudo rm /var/lib/NetworkManager/NetworkManager.state

start network-manager

Scream bloody murder if this fixes the issue. (This really should have been fixed a long time ago)


You aren't checking if the starting directory was aborted only the destination directory. Also you can shorten if - then - fi like this:

d1="$(zenity  --file-selection --title="Bulk Move    Choose starting directory"  --directory)"
[[ "$?" != 0 ]] && exit
d2="$(zenity  --file-selection --title="Bulk Move    Choose destination directory"  --directory)"
[[ "$?" != 0 ]] && exit

This gives double the amount of abort checking with 1 less line of code.

To test the progress bar on any system use this:

$ for i in ./* ; do echo $i ; sleep .1 ;  done | zenity --pulsate --title "Processing " --text "${filename} " --pulsate --auto-close --auto-kill

--pulsate is not supported for this dialogue

Ah there is an error message! --progress is missing to tell zenity a progress bar is desired. So the working script would be:

d1="$(zenity  --file-selection --title="Bulk Move    Choose starting directory" \
    --directory)"
[[ "$?" != 0 ]] && exit

d2="$(zenity  --file-selection --title="Bulk Move    Choose destination     directory" \
    --directory)"
[[ "$?" != 0 ]] && exit

for i in "$d1"/* ; do

    ## filter out the actual file name
    filename=$(basename -- "$i")
    ## the meaty bit
    ffmpeg -i "$i" -c:v libx265 -preset medium -x265-params crf=28 \
        -c:a aac -strict experimental -b:a 128k "$d2"/"${filename%.*}.mkv"

done | zenity --progress --pulsate --title "Processing " \
              --text "ffmpeg - convert files" \
              --pulsate --auto-close --auto-kill

Passing ${filename} to --text option will not update display with each file name processed. If you want this you will need to switch to yad (Yet Another Dialog) which is a super-charged version of zenity:

Although the source code appears in the .gif you can copy and paste in your own script from this Q&A:

How do I create a fake process bar?


Realizing that I needed to turn the native nvidia drivers off to be able to see the screen; after changing boot sequence, I quickly tapped F6 key to get into the Linux screen.

I checked nomodeset to disable the native video controller and hit esc.  I was then able to install 12.04 LTS, using linux video drivers.  After installing OS, I then installed Synaptic: googled Linux drivers for GeForce 8800m G.  Downloaded from Asia nVidia site. US site doesn't have them.  Installed the Linux drivers for the video controller.


Wifi Fn+F2 is not working on Ubuntu 15.04 on Asus laptop X450JB

You have a wrong platform driver acer-wmi.

If you did not start it manually, this must be a bug with a wrong detection of the laptop vendor. This should be reported as a bug by

ubuntu-bug linux

As a workaround you can disable this driver by

sudo modprobe -r acer_wmi


Ubuntu 20 lts - blank screen without suspension

You might try these commands :
$ xset +dpms s on
$ gsettings set org.gnome.desktop.session idle-delay 300
$ gsettings set org.gnome.desktop.screensaver idle-activation-enabled true
$ gsettings set org.gnome.settings-daemon.plugins.power idle-dim true


permission denied for root@localhost for ssh connection

By default, the SSH server denies password-based login for root. In /etc/ssh/sshd_config, if the following line exists, possibly commented out (with a # in front):
PermitRootLogin without-password

Then change it to the following, uncommenting if needed (remove the # in front):
PermitRootLogin yes

And restart SSH:
sudo service ssh restart

Or, you can use SSH keys. If you don't have one, create one using ssh-keygen (stick to the default for the key, and skip the password if you feel like it). Then do sudo -s (or whatever your preferred method of becoming root is), and add an SSH key to /root/.ssh/authorized_keys:
cat /home/user/.ssh/id_rsa.pub >> /root/.ssh/authorized_keys


jDownloader 'server busy' -- is there a problem with my installation?

The problem was with the router I was using: D-Link DIR-600 wireless router. I tried using our old wired router, updated jDownloader and it worked. I'm not sure what is the settings with my wireless router that blocked the updating since the settings are all in default except for securing the net access.

Also, I updated my Java version from 6 to 7. I'm not sure if it contributed so I'm including this part too since I did this while trying to work out a solution.


Cannot make local connection between Oracle SQL Developer and SQl plus

You haven't said that you have a database yet.

SQLPlus and SQL Developer are just clients you use to connect to a database.

You have to already have a database, or you need to create one.

When you create a database you set a password for the admin users (sys and system).

I talk about this more here


On a new Ubuntu Server 20.04 install I can't connect to anything via my local network, i.e. Ping, SSH, etc. what steps should I take now?

Well, I swear I did this several times already, but I just rebooted my router and access point again and all of a sudden everything is working. I can SSH, ping via IP and name, etc.


Turns out the problem was that the EFI was disabling grubx64.efi from booting. By entering the security tab in the bios and under the add new file to efi option, added the grub file.


I seem to have a similar setup, and it is working for me. Can you perhaps try this one?

xrandr --setprovideroffloadsink 0x45 0x7c

In order to see whether it actually works it can be interesting to use something else than steam, like glxgears.

glxgears
DRI_PRIME=1 glxgears

The latter should show a higher fps in the console than the first. For me it is 60 FPS compared to 3995 (???) FPS.

On a side note, DRI_PRIME is great, but does not really work well with the fancy compositors like the one used by Ubuntu Unity. I installed xfce, which I log in to for gaming only, as that works way better. But first try to get steam working on your dedicated GPU :)


Bizarre SSH Problem - It won't even start

You got duplicate sections in your /etc/ssh/sshd_config file.

Rename your sshd_config file

sudo mv /etc/ssh/sshd_config /etc/ssh/sshd_config.old

and reinstall openssh-server to get the original file:

sudo apt-get install --reinstall openssh-server

See if it works now.


Wacom pen small tablet ctl-490/b isn't recongnized

You should now be able to install the driver using the ppa package I've put together here for 14.04:

https://help.ubuntu.com/community/Wacom/LatestDriver

Please follow the instructions and report any issues or errors here.


Grub Do not Load Dual Boot after ShutDown

Sounds like your bootloader is corrupted.

Here is the official guide to reparing your bootloader.


Files copied to a NTFS partition in Ubuntu 12.04 missing

Here is the answer I referenced:

If you hibernate windows (or purpose or because of power-saving), then use ubuntu to store files on the NTFS partition, and then boot up windows, Windows thinks the disk was corrupted while it was in hibernate and "fixes" anything different. After that loging back into ubuntu just confirms that the files have in-fact been deleted.

Also I have seen that windows 7 may do a chkdsk after it installs updates on shudown when you bring it back up windows does extra tasks related to installing updates, so be careful not to boot into ubuntu after shutting down from updates. http://www.linuxquestions.org/questions/linux-newbie-8/windows-chkdsk-deletes-files-written-by-ubuntu-on-an-ntfs-partition-913606/

Yes even on a shared partition seprate from the windows partition and take care even with fat partitions (usb drives).

Sources, https://superuser.com/questions/211079/what-do-i-have-to-take-care-of-when-hibernating-both-ubuntu-and-windows-dual-bo/211175#211175 , https://superuser.com/questions/39532/hibernating-and-booting-into-another-os-will-my-filesystems-be-corrupted

Edit: I was looking through the widows site to try and find if they detailed the hibernate process, but this sounds interesting http://msdn.microsoft.com/en-us/library/dd143253(v=winembedded.5).aspx , It seems at best the write caching from the harddrive is being saved to memory, then being written after bringing the drive back up, this may mean that the files can't be recovered, because it's not "deleting" as in removing the first letter of the file so the system does not see it, but actually overwriting large areas of data that have been cached. Needs to be looked into more.


How to install Bumblebee-UI (GUI) in Ubuntu 12.04

Install Git:

sudo apt-get install git

Make a directory for git:

mkdir git
cd git

Check out the repository:

git clone https://github.com/Bumblebee-Project/bumblebee-ui.git
cd bumblebee-ui
sudo ./INSTALL

Go to Startup Applications and add /usr/local/bin/bumblebee-indicator.


How can I fix my Epson Stylus TX101 Multifunction Printer to print, scan, and copy?

Your model number isn't specifically listed here, but if you want to try there are several .deb files you could attempt to install to get this piece of hardware working. It'd be a total shot in the dark, but it may be worth your time.

http://avasys.jp/eng/linux_driver/download/lsb/epson-inkjet/escp/


It's normal. There is no special Ubuntu laptop version. Desktop and laptop use the same installation media. When you visit www.ubuntu.com to download Ubuntu, you are given a choice of Ubuntu releases using several different desktop environments. Any further customization that you want can be done after you finish installing Ubuntu.

Check the release notes of the release of Ubuntu that you want to download before you download it to make sure that your computer has the same or better hardware (CPU, RAM, etc.) than the minimum system requirements.


When I update my machine I get 'Release does not have a Release file' error

Delete the ppa from your machine...
cd /etc/apt/sources.list.d/
sudo rm webupd8*

Then update your sources.
sudo apt update

Note, since you will not be able to update Java, you may want to uninstall the outdated package from this PPA.
sudo apt autoremove purge oracle-java8-installer


Almost everything that you're looking for is in :

/usr/lib/mono

It would be hard to only get parts of it, so you might try putting them all in the chroot.
For a list of the mono packages, do :

sudo aptitude search mono


a) Option 1:

Setps.....

1) Insert the Windows 7 DVD into the CDROM.
2) Shut down the computer. (DO NOT RESTART)
3) Start the computer, & immediately after that start tapping on F12 which will give you boot options. Select CD/DVD ROM Over there.
4) Windows 7 should start the installation Process.

b) Option 2:

Steps......

1) boot the system normally using Ubuntu installation that is there on Hard Drive.
2) Once you reach Ubuntu Desktop, insert Windows 7 DVD in DVD ROM Drive.
3) Ubuntu will automatically give you pop-up of the Windows 7 DVD & Start the Default auto-run program of Windows 7 DVD.
4) Click on the option to install Windows 7 from that pop-up menu.
System may restart Automatically After step no. 4
5) Windows 7 will start the installation.

Let me know if u have any further queries.


answer to this question is here Languages Using Complex Text Layout

  Ctrl+Shift+D or Ctrl+Right Shift Key - switch to right-to-left text entry

  Ctrl+Shift+A or Ctrl+Left Shift Key - switch to left-to-right text
  entry


The Software Center will open but will not respond

This answer is rather a suggestion, but if there is something wrong and you possess little knowledge on Ubuntu/Debian/Linux yet, a good approach could be

Back up your data (this is always good, so that nothing can get lost).

Use the way outlined in this answer: Can I uninstall and reinstall Ubuntu Software Center? (I copied the information and pasted it below).
What will be the attempt to "repair your Software Center malfunction", is to un-install and the re-install it. By doing so, a lot of other software should also be uninstalled and reinstalled and it seemed to work in the answer linked. Here is the recipie:

Press  CTRL+ALT+T  simultaneously to enter terminal.
To uninstall Software Center:

sudo apt-get remove software-center

sudo apt-get autoremove software-center

To re-install Software Center:

sudo apt-get update

sudo apt-get install software-center


How do you make it so all youtube videos play the worst quality by default on ubuntu?

This doesn't look like an Ubuntu related question. AFAIK it holds by your YouTube account settings. Anyway, I'll try to answer.

You must to log in on YouTube with your account. If you don't have one, you can create one. Then follow the instructions from the following image:


Problem installing ubuntu with nvidia geforce gfx 850

After so many tries... I discover in some forum that you can disable the nauveau drivers to install ubuntu...

I have to press the shift key.. when the system starts... that shows you the grub2 screen... select installation and then press e (for edit boot settings) then put the word  "nomodeset" before the "quiet splash".. Save and reboot...
Continue the installation process

once again you install ubuntu, the nauveau error is going to appear again... if you want that to disappear without installing nvidia.. just repeat the procedure... but put the word "nomoset" on the boot of the normal start up...

I still dont have my nvidia video card configured.. because everytime I try to configure them... my system shows a blank screen after splash... (but still hear the login sound, so I think is video card problems only)

You can check this link for more info about installing the drivers...
https://help.ubuntu.com/community/BinaryDriverHowto/Nvidia


How to transfer files a-la Dropbox with an iPad in a LAN?

You could use something like:

http://www.webupd8.org/2011/10/owncloud-2-your-personal-cloud-server.html (a software solution) --or--

http://tonido.com/  if you prefer a hardware approach.


Solved the problem, using Coordinate Transformation Matrix. Well yes, i need to pull off second (non touchable) monitor and run xinput_calibrator. With the calibration number resulted from that, i'm applying the matrix and plug in the second monitor. Everything runs well.

Thank you everyone.


Logitech F310 gamepad's setup ignored by games

I have the same F310 and it works with Xonotic 0.8.2 (downloaded from the website) on Ubuntu 18.04 after turning on the setting labeled use joysyik input on the other section on the input setting. Also the joystick need to be in the "X" position.

I'm hoping this solves your problem

P.S. The default joystick mapping seems to be strange


When I install chinese language my language sport hang (GUI)?

You may want to try via the terminal:

sudo mkdir /usr/share/locale-langpack/zh_CN
sudo apt install $(check-language-support)


I'm not sure if this is your problem but there's an old issue with Acer machines running on an outdated BIOS. On older Acer notebooks, the fan wouldn't start on Ubuntu because it was controlled by Windows,  which led to overheating and random shutdowns. The following fixes were given:

1.) Upgrade your BIOS (which is nothing you want to do on a whim) or

2.) Play around with the fan_control script. Step-by-step instructions can be found here:

http://ubuntuforums.org/showthread.php?t=1748521

Hope this helps.


Which recent Ubuntu should I use for Matlab R2011a, Octave 3.6.1 and recent R?

This may answer part of the question… or not at all:

I have MATLAB2011b and Octave 3.2 on Ubuntu 12.04 (64 bits), working well.


How to Map my enter key to a different key

You need to have two app: xev and xmodmap, both are commandline-tool.

Run xev. Then press the key whose behaviour you want to change. i.e. Enter. and then xev will output some information about the pressed key. Pay attention to the third line. It should be like this:

state 0x10, keycode 110 (keysym 0xff55, Prior), same_screen YES,

In this example Prior is the name of the behaviour the key is assigned to at the moment, the number keycode is the internal id to recognize the key. Now do this with another key i.e. PgDown give this output

state 0x10, keycode 115 (keysym 0xff56, Next), same_screen YES,

Here again the interesting part for us is keycode 115 and Next. Now, when you want to swap the two keys use xmodmap.

 xmodmap -e "keycode 110 = Next"

This changes the key with keycode 110 on your keyboard to the action Next. It's pretty simple.


How to set maximum video width in ffmpeg?

You can use an expression:

-vf "scale='min(600,iw)':-1"

If you need the auto-calculated height to be divisible by 2 then change -1 to -2.


First use sudo apt-get update && sudo apt-get -f install, then run sudo apt install samba again.


The solution was to have the "use colors from system theme" box checked as shown below.


Dual boot Win10 + Ubuntu on separate hard drives, plus multiple screens in Ubuntu

It seems to me you are asking two questions here If I understand properly. The first on having your computer boot to Windows by default or Ubuntu. The second on how to get your Nvidia card to run two monitors.

The first involves using/customizing GRUB so that it points to Windows while giving you a list... Try: https://www.ostechnix.com/configure-grub-2-boot-loader-settings-ubuntu-16-04/ (I cannot vouch for it but it seems clear.)
The second is your Nvidia card. If Ubuntu installed properly, which I am guessing it did, Ubuntu should have loaded the 'Nvidia X Server Setting' menu/panel. Usually, the Nvidia software can be found in the control settings panel or just search for 'Nvidia' on your machine. You should get a menu like this...  Worse come to come worse got to Nvida.com and download the latest and greatest version, better yet just go and check their docs...

HTH


I think there is no problem with that, but you can delete your swap partition and use swapfile only.
Don't forget to add your swapfile in /etc/fstab file.


Is there a Oracle Mobile Authenticator (based on Google Authenticator) clone for Ubuntu?

Google Authenticator complies to HOTP/TOTP (RFC 4226 6328)
Take a look at oathtool, which is a command line implementation of HOTP/TOTP.


Weird Apache ssl_error_rx_record_too_long error

Not entirely sure what was wrong, I requested a new cert from CA using a non-encrypted private key.  However, upon install, it still didn't work so I started with a fresh copy of the default-SSL site and it started working.  It could be some weird interaction between Textmate and local file caches as (at one point) what I had open in Textmate and what was in my Nano shell differed but that could be bogus.  I also altered the filenames to remove the .is.crt but that shouldn't matter at all.

TL;DR Restarted from scratch using SSL template, did everything in the shell using Nano to bypass file caches, and exercised the demons by hopping on one foot.


$ apt-cache search makedepend
xutils-dev - X Window System utility programs for development

So you have to install xutils-dev package(which includes the program makedepend) .Install xutils-dev package by running the below command on terminal,

sudo apt-get install xutils-dev


Failover DNS When Primary Can't Resolve?

You can see your current configured DNS server list in

/run/systemd/resolve/resolv.conf

If it does not contain all the DNS server you need, try adding more, each separated by comma in the network settings under IPV4 tab, IPV4 DNS setup

If that doesn't work, you can setup fallback DNS directly in /etc/systemd/resolved.conf

Here's a sample:

#  This file is part of systemd.
#
#  systemd is free software; you can redistribute it and/or modify it
#  under the terms of the GNU Lesser General Public License as published by
#  the Free Software Foundation; either version 2.1 of the License, or
#  (at your option) any later version.
#
# Entries in this file show the compile time defaults.
# You can change settings by editing this file.
# Defaults can be restored by simply deleting this file.
#
# See resolved.conf(5) for details

[Resolve]
#DNS=
#FallbackDNS=
#Domains=
#LLMNR=no
#MulticastDNS=no
#DNSSEC=no
#Cache=yes
#DNSStubListener=yes


How can I install Broadcom Wireless Adapter BCM4352 802.11ac PCID [14e4:43b1] (rev 03) on Ubuntu 18.04.3 LTS?

This problem looks like some kernel bug. The wl kernel module is not loading for some reason.

Try out if it has been fixed by updating your system by running:

sudo apt update && sudo apt upgrade


You could fetch the Ubuntu source to your computer, apply the patch, rebuild Xorg, install, and test the result. Rebuilding the package is a rather advanced topic, I don't know how experienced you are.

Another approach would be to wait a couple of months if you can. The quantal-proposed branch appears to me to have that patch. I'm referring to this code on Launchpad. This is currently being tested and if testing is OK will probably be incorporated into the Quantal 12.10 release in October.


The .iso file is readonly by design. If you want to change something in it, first extract it somewhere in your home folder, change files, than create new .iso using Brasero, mkisofs or another program.

However if you want temporarily execute some file, mount .iso using exec option like:

mount /tmp/disk.iso /mnt rw,exec

For additional information refer to

man mount


How to set the default homepage and search engine in the Ubuntu Touch browser app?

As of now you cannot change the default homepage or search engine in the Ubuntu Touch browser app. For the first version, only the core features like browsing, history, tabs were targeted.

However looking at the development trunk of the browser app, I see two branches [1] and [2] that look to implement this feature.

If you are missing features or experience a bug, feel free to let the developers know by reporting a bug report at their launchpad page.


Launching a program like Firefox starts 20+ separate processes on 14.04 LTS draining the memory

The reason you see this many entries in htop is that it shows you threads not processes and Firefox has a lot of those.

If you press H repeatedly you toggle between showing threads and showing processes.

All those Firefox threads are sharing the same memory space so you should only count the RES 345MB once, not add it up for each thread.


Is there a way to cascade windows in Unity?

Stack windows windows side-by-side

If by cascading you meant to say that you want to stack windows windows side-by-side, then, Super (Windows key) + (Right/Left) Arrow
Alternatively , you can use Super (Windows key) + up arrow to maximize, and down to un-maximize. This answer was available in another thread.

Using an extension - gnome cascade windows

If you are looking for a cascading tool specifically for gnome shell, then there is one such extension: gnome-cascade-windows
After installing, you can use Super (Windows key) + c to trigger the cascading effect.

Mouse gestures

Alternatively, you can drag the window to one the edges.
But this operation is very manual. I believe it depends on which side of the window-pane your mouse pointer is at too.


Resolved!!

File explorer started working after-
 sudo apt install gnome-tweaks

Icons were visible after-

sudo apt purge indicator-common
sudo apt install gnome-shell-extension-appindicator
gnome-shell --replace &


To add 1GB of swap to your computer follow these steps:

Open a terminal,Press Ctrl+Alt+T

And run:

To create the file myfile.swap in /mnt, to be used for swap:

sudo dd if=/dev/zero of=/mnt/myfile.swap bs=1024 count=1048576

To format the file for swap:

sudo mkswap /mnt/myfile.swap

To add the file to the system as a swap file:

sudo swapon /mnt/myfile.swap

You must edit  file /etc/fstab to make the change permanent:

sudo nano /etc/fstab

Add this line to the end of file:

/mnt/myfile.swap  none  swap  sw 0  0

Ctrl + O, save file. Ctrl + X, close nano.

Reboot your computer to ensure that the changes go into effect.


Portable ubuntu on external hard drive to work on multiple devices

Always backup your information before attempting any repairs.
Your assumption is correct. When you installed Ubuntu, it installed grub to the EFI partition of the internal HDD. In order to make the external drive bootable, it needs an EFI System Partition with grub installed in it. Usually this partition is the first partition on the drive. However, moving the root partition can cause boot errors.
If reinstalling is a viable option
Repartition the external hard drive. Delete the linux partition, then make a 500MB partition formated FAT32 and Flagged as ESP (Efi System Partition). Use the remaining space for the linux partition formated Ext4. The result should be:

EFI partition 500MB formatted FAT32 and flagged ESP
Linux partition formatted Ext4 no flags
Swap partition formated swap no flags
NTFS partition

Then reinstall Ubuntu. Use the manual partitioning option to select your precreated partitions. Make sure the EFI partition of the internal drive is set to "Do Not Use".
Booting an external drive requires the use of the default media path. Boot the LiveCD, and mount the EFI partition on the external (you may need to teporarily remove the ESP flag to do this). Copy EFI/ubuntu/shimx64.efi to EFI/boot then rename it bootx64.efi. Unmount the EFI partition and set the ESP flag if you had to remove it.
Attempt to repair the current installation
Boot from a LiveCD, and use gparted to shrink the linux partition by 500MB. Create a new partition with the freespace, format it FAT32, and flag it ESP. Record the UUID of the new partition.
Mount your linux partition. Edit etc/fstab. Look for a line similar to:
# /boot/efi was on /dev/sda1 during installation
UUID=BB1E-83B5  /boot/efi       vfat    umask=0077      0       0

Replace the UUID with the one for the new EFI partition.
Next, mount the EFI partitions for both drives (you may need to remove the ESP flag temporarily). Copy /efi/ubuntu/shimx64.efi from the internal drive to /efi/boot/ on the external then rename it to bootx64.efi. Note: you will have to make the folders on the external drives.
After either repair
Finally, mount the EFI partition of the internal drive. Delete the folder /EFI/ubuntu. Reboot and open system settings by pressing the appropriate function key while booting. Change the boot order so USB HDD is before the internal drive.
You should now boot linux when the external is connected, and Windows when the external isn't connected.


How do I configure Ubuntu 16.04 server for root public key ssh

I finally figured out what was causing my issue.  Because the sshd_config file on the server has the entry ServerKeyBits 1024 I had to create the key at 1024 bits, ssh-keygen -t rsa -b 1024.

Thanks anyway for your consideration.


General Rules for dealing with File Permissions

Every file on your system is owned by a user. Each user is a member of one or more groups. Using the chmod command a user can selectively allow self or others to read, write, or execute the file. Use of chmod is fairly complex, and you'll want to check out man chmod before proceeding, or perhaps http://en.wikipedia.org/wiki/Chmod .

Every file that I expect to need to edit is in my Home directory, and belongs to me.
The only exception is the case of configuration files for system-wide things like Xorg or Samba. In general, new users probably shouldn't be editing these files by hand either, since other methods exist in most cases for adjusting those configurations.

After restoring backups, you'll find sometimes that you don't have permission to edit your own files. This is because, for example, you have reinstalled Ubuntu. Even though you set up a user with the same name during the reinstall and are logged in as that user, your UID is different, so the system regards you as a different user- not the one who owns the files. This is fixed by using the chown command. As with chmod usage is complex, so read up on it first.
 Probably there is also a way to get Nautilus or some other command-line program to change file ownership also, but I don't know it.

BE VERY CAREFUL when messing about with file ownership and permissions. You can cause great havoc this way.


Does Ubuntu 14.04 have something like Window's DXDiag?

There are various tools that can do this, including:

inxi

$ sudo apt-get install inxi
$ inxi -G
Graphics:  Card: NVIDIA G86 [GeForce 8400 GS]
   X.Org: 1.14.3 drivers: nouveau (unloaded: fbdev,vesa) Resolution: 1920x1080@60.0hz
   GLX Renderer: Gallium 0.4 on NV86 GLX Version: 3.0 Mesa 9.2.2

lshw

$ sudo apt-get install lshw
$ sudo lshw -C display
  *-display
       description: VGA compatible controller
       product: G86 [GeForce 8400 GS]
       vendor: NVIDIA Corporation
       physical id: 0
       bus info: pci@0000:02:00.0
       version: a1
       width: 64 bits
       clock: 33MHz
       capabilities: pm msi pciexpress vga_controller bus_master cap_list rom
       configuration: driver=nouveau latency=0
       resources: irq:16 memory:fd000000-fdffffff memory:e0000000-efffffff memory:fa000000-fbffffff ioport:dc00(size=128) memory:feae0000-feafffff

lshw-gtk

$ sudo apt-get install lshw-gtk
$ sudo lshw-gtk

Then:

hardinfo

$ sudo apt-get install hardinfo
$ hardinfo

Then:

While only hardinfo actually reports the memory available to the graphics card, it is trivial to get that from Google. For example, searching for GeForce 8400 GS finds an NVidia page which tells me that my card has 256MB of memory.


Send files from Android to Ubuntu via bluetooth fails 'transfer forbidden by target device'

Try running the Obexd deamon with the -a option like:

/usr/libexec/bluetooth/obexd -a


no wired connection and wirewireless disabled

Do:

sudo apt-get purge bcmwl-kernel-source

Then:

sudo modprobe -v ssb
sudo modprobe -v b44

your ehternet should come on, give it a minute then do:

sudo apt-get install firmware-b43-installer

Reboot


How to temporarily disable sleep and hibernate from the command line

On Ubuntu 16.04 LTS, I successfully used the following to disable suspend:

sudo systemctl mask sleep.target suspend.target hibernate.target hybrid-sleep.target

And this to re-enable it:

sudo systemctl unmask sleep.target suspend.target hibernate.target hybrid-sleep.target


Ok, I managed to solve this issue. It was a purely hardware issue. After finding this discussion in the Dell support forums, I tried turning the laptop off and unplugging the battery. The next time the system went up, the Bluetooth device was there, and that mysterious USB device was gone.


installing ubuntu onto a netbook and a pc

press F12 or what ever it prompts to change boot sequence at ACER POST screen.
BTW you may have to press F2 at ACER screen, and Enable the F12 BOOT MENU.

after getting into the boot menu choices:
choose the option that shows your bootable usb stick.

enjoy.


Is possible to increase inode in ubuntu 16.04?


what is the web address where my files are stored on Ubuntu One?

https://one.ubuntu.com/ is the URL to the base site.

If you want to 'publish' a file you will click on 'more' at the right of the file name. Then click the option to publish it. When you do that you will see a URL that the file is published too. (see below)

I hope this helps with your question.


Other than using a USB reader I dont think there is much of a solution to be honest. I know for my own laptop it WILL NOT read the card on boot unless I put it into an external reader. After the bios hands off to the OS its completely different. The OS has drivers for the media drive and accepts it as its own source. The bios however, only accepts USB and the other standard set of things.


KDE Konsole Shortcut to Launch New Tab with different profile

TLDR

Disable "Run all Konsole windows in a single process" in konsole settings
install xdotool
Create a global shortcut with the follwing command, replacing [profile_name] with your profile's name:

qdbus org.kde.konsole-$(xdotool getwindowpid $(xdotool search --class "konsole" | tail -1)) /Windows/1 newSession "[profile_name]"; xdotool windowactivate $(xdotool search --class "konsole" | tail -1)

There doesn't seem to be a dedicated shortcut for this, and as this post suggests, the default behaviour seems to have changed in recent versions.

However, there is a workaround. As explained here, you can open a new session (=tab) by sending a qdbus command. The problem with this is that you need to run that command in a shell inside the konsole window, otherwise the environment variables will not be set. Now you could bind the following command to a keyboard shortcut in bash using bind:

qdbus $KONSOLE_DBUS_SERVICE $KONSOLE_DBUS_WINDOW newSession "[profile_name]"

...but using bind is not really user friendly and especially not shell independent. Alternatively, you can specify an alias if that is acceptable.

If you want to have a keyboard shortcut that is independent from the shell you are currently using, you'll need to use a global shortcut and inevitably lose the environment variables.

Using a global keyboard shortcut

The process depends on the "Run all Konsole windows in a single process" setting in "Settings -> Configure Konsole".

All windows in one process

If that is enabled, there will be one qdbus service called org.kde.konsole and each window will be an object Windows/1, Windows/2 etc. So if you only use one konsole window, the following command would be sufficient for a global keyboard shortcut:

qdbus org.kde.konsole Windows/1 newSession "[profile_name]"

One process for each window

If konsole is configured to spawn a new process for each window, you'll have some additional options. In that case, there will be one qdbus service for each window called org.kde.konsole-[process_id], each with only one object Windows/1.

To retrieve the id of the process owning the konsole window, we can use xdotool. In each of the following examples, replace [profile_name] with your profile's name:

open new tab in active konsole window

qdbus org.kde.konsole-$(xdotool getactivewindow getwindowpid) /Windows/1 newSession "[profile_name]"

open new tab in most recently used (or active) konsole window

qdbus org.kde.konsole-$(xdotool getwindowpid $(xdotool search --class "konsole" | tail -1)) /Windows/1 newSession "[profile_name]"

open new tab in most recently used (or active) konsole window and bring it to front

qdbus org.kde.konsole-$(xdotool getwindowpid $(xdotool search --class "konsole" | tail -1)) /Windows/1 newSession "[profile_name]"; xdotool windowactivate $(xdotool search --class "konsole" | tail -1)


Select elements in list in groups of 2 - Bash

In general, you should avoid iterating over the results of ls - see for example

bash pitfall #1
Why not parse ls (and what to do instead)?

Compared to a for loop, a while loop gives you much more control over delimiters and file selection. For example:

printf '%s\0' my/path/*.zip | while IFS= read -r -d '' f1 && IFS= read -r -d '' f2; do
  echo 'unzipping files'; echo unzip "$f1"; echo unzip "$f2"
done
unzipping files
unzip my/path/S1A_IW_SLC__1SDV_20180412T171648_20180412T171715_021437_024E95_BDA1.zip
unzip my/path/S1A_IW_SLC__1SDV_20180424T171648_20180424T171715_021612_02540A_BB21.zip
unzipping files
unzip my/path/S1A_IW_SLC__1SDV_20180506T171649_20180506T171716_021787_025996_98AB.zip
unzip my/path/S1A_IW_SLC__1SDV_20180518T171649_20180518T171716_021962_025F27_A15C.zip
unzipping files
unzip my/path/S1A_IW_SLC__1SDV_20180530T171650_20180530T171717_022137_0264C8_5D94.zip
unzip my/path/S1A_IW_SLC__1SDV_20180611T171651_20180611T171718_022312_026A3D_BBFC.zip
unzipping files
unzip my/path/S1A_IW_SLC__1SDV_20180623T171652_20180623T171719_022487_026F7C_450E.zip
unzip my/path/S1A_IW_SLC__1SDV_20180623T171652_20180623T171719_543456_64324F_452W.zip

Here printf '%s\0' my/path/S*.zip expands the shell glob into a list that is unambiguously delimited by the NULL character (the only character that may not appear in a Unix filepath), and then each read command reads one of them. The IFS= unsets the field separator - the only effect of this is to prevent the reads from stripping leading whitespace (in the very unlikely event that you need to handle such names).

A possibly cleaner way, using the set builtin with a shell glob to read the file names unambiguously into the positional parameter array $@:

shopt -s nullglob

set -- my/path/S*.zip
while (($# > 1)); do
  echo "unzipping files";
  echo unzip "$1"; echo unzip "$2";
  shift 2
done


Is it normal for laptop fans to completely turn off (sometimes)

Yes, most laptops have a series of thresholds for fan speeds and some have the bottom one to switch off when passive cooling is enough. The motivation behind this is to reduce the noise created by the laptop when it is unnecessary.

It will depend on the chipset used on the motherboard if you have any control over when and how fast the fan comes on.


To solve

IBUS-WARNING **: The owner of /home/myPC/.config/ibus/bus is not root!

use gksudo or gksuinstead of sudo to open the file,

gksudo gedit php.ini

or

gksu gedit php.ini

More on gksudo

The next error

(gedit:12512): Gtk-WARNING **: Calling Inhibit failed: GDBus.Error:org.freedesktop.DBus.Error.ServiceUnknown: The name org.gnome.SessionManager was not provided by any .service files

can be solved by updating gir1.2-gtksource-3.0

sudo apt-get install gir1.2-gtksource-3.0


Can't write to USB drives on Ubuntu 13.04

You need to turn off journaling if you want to be able to read/write to it from Ubuntu. Ubuntu only has support for writing to non-journaled HFS+ volumes.  Linux can read HFS+ volumes. It can also write to HFS+ volumes, but only if they're formatted without journaling.

On your Mac, you can do so from disk utility, or open terminal, and do:

diskutil disableJournal /Volumes/Macintosh HD

Then you can mount the partition on Ubuntu

sudo mount -t hfsplus /dev/sdax /media/mac

Complements of Z.Hossain


Ubuntu 12.04: Andorid virtual device: Android virtual device not starting up

Suppose the tools folder is ~/Software/android-sdk-linux/tools

In the console, before running the emulator command do:

export LD_LIBRARY_PATH=~/Software/android-sdk-linux/tools/lib:$LD_LIBRARY_PATH
./emulator64-arm -avd <AVD_name>

Now it should work...


Command after apt-get install is not executing in script

You might want to end your lines with && so the script only advances when the command is done. Example:

ssh -t -t $USER@$REMOTE <<'ENDSSH'
sudo apt-get update &&
sudo apt-get install -y nodejs &&
sudo apt-get install -y npm
ENDSSH


How to download packages from a repository that is not in sources.list

Before starting: You really shouldn't remaster Lucid. It's more than 3 years old, will cease support in April 2014 and most of the common packages doesn't receive updates. Remaster 12.04 if you must, but don't use Lucid. That said, my instructions may not work for anything before Precise.

  Is there a way to download the latest versions of its packages from the repository without editing sources.list?

You can ask apt-get to use another sources.list file. Just add -o Dir::Etc::SourceList=/some/file to the apt-get call. This may work for aptitude too.


issues connecting MSI wind u123 via wireless

Go through these steps (it's ok if you've done some these before already, try them out anyway in this order):

In terminal:

Install ndiswrapper packages: sudo apt-get install ndiswrapper-common ndiswrapper-utils*
Install the driver with sudo ndiswrapper -i drivername.inf from the folder where you have your windows driver files (*.sys, *.inf)
Install package sudo apt-get install ndiswrapper-dkms
Check the driver installation with ndiswrapper -l, notice the driver name(s)
Do sudo modprobe ndiswrapper
Check your ìfconfig. If the connection is listed, see number 7. If the wireless connection is not listed, try: modprobe drivername where drivername is the driver name result from number 4. If there are two of the names, run for both. Check your ifconfig in between.
If you got your connection listed, add ndiswrapper as a last line in your \etc\modules file (plus, as new lines, either of the two driver names from number 6 if needed). This way the driver will be loaded on system boot.

If you got your network listed, see your network manager if you can connect to it.

Hope this helps.


Last time I had that problem, I found that you needed to change the window manager. Try searching for a window manager and change it through that. Tho, It may not be there, as I am on XFCE and not Unity.


I followed this which solved the problem by downgrading to 14.04 lts..
Hope to see the open-source drivers getting better before April 2019 :D


unable to upgrade to xubuntu 20.04 from 18.04 as Repositories Not Found

I found an answer on another thread relating to Ubuntu upgrade to 20.04
Upgrade to 20.04, authentication failed.  answer by Anuga


Mount / Link non-existent volume directory to a directory

I suspect you have the Volume2 as the first parameter in the ln -s command, it works perfectly here when it is the second used.
root@zeus-H370M:~# mkdir -p test/Volume1
root@zeus-H370M:~# cd test
root@zeus-H370M:~/test# ln -s Volume1 Volume2
root@zeus-H370M:~/test# ls -l
total 4
drwxr-xr-x 2 root root 4096 Feb 11 23:04 Volume1
lrwxrwxrwx 1 root root    7 Feb 11 23:05 Volume2 -> Volume1


how to run a C file and various files associated with that(makefile, .h ,.c)?

My Google-fu found the source files you are trying to compile:

http://robotics.stanford.edu/~gerkey/tools/hungarian.html

and in particular:

http://robotics.stanford.edu/~gerkey/tools/libhungarian-0.3.tar.gz

Simply running make you can build all the things that have to be compiled (make hungarian is the wrong command).

Output of make process:

gcc -O3 -Wall -I. -c hungarian.c
hungarian.c: In function ‘hungarian_routine_two’:
hungarian.c:432:14: warning: variable ‘newsum’ set but not used [-Wunused-but-set-variable]
   int oldsum,newsum;
              ^
gcc -O3 -Wall -I.   -c -o makeprob.o makeprob.c
ar cr libhungarian.a hungarian.o makeprob.o
gcc -O3 -Wall -I. -o test test.c -L. -lhungarian
gcc -O3 -Wall -I. -o timetest timetest.c -L. -lhungarian -lm

Now you have two executable files (test and timetest) and one static library file (libhungarian.a).

To run the test programs:

./test

./runtest

If you want to write a program that uses this library, you need to #include "hungarian.h" in your myprogram.c file, and to compile it with a command similar to those of the test programs:

gcc -O3 -Wall -I. -o myprogram myprogram.c -L. -lhungarian

I suggest you to make a copy of test.c (cp test.c myprogram.c) and modify it to fit your needs.

As you can see, there's some magic happening here: man pages of make and gcc should shed some rays of light on it.


How do you administer CUPS remotely using the web interface?

I found this way to be simpler.

# cupsctl --remote-admin --remote-any --share-printers

It will update the /etc/cups/cupsd.conf file and restart cups for you, saving a backup of the previous configuration in the same folder.

It's the similar to the method presented in the official CUPS guide to printer sharing.
I found the options --remote-admin in man cupsctl.


First, the NTFS file system handles permissions significantly different (more the Windows way) than any Linux file system like ext4. You should edit the line in /etc/fstab which mounts your NTFS partition.

You can open an editor to edit it with this command (use a terminal): gksu gedit /etc/fstab

Firstly: which partition is it?

In this case, this needs to be a device node identifier. e.g. /dev/sda1, a partition UUID, or a partition label.

Running sudo blkid -c /dev/null in a terminal will tell you all the relevant information about your partitions. Hopefully you can determine from this list which one is the correct partition.

If you use a UUID or Label, you need to declare it as such. e.g. "LABEL=Windows", "UUID=ABCDEFGHIJKLKLMNOP".
Next, where should it be mounted?

This part is simple: where do you want the partition to be accessible from? Ubuntu mounts partitions in /media by default, so if you want the partition to be mounted there, say so. e.g. /media/Windows. You will need to manually create this folder since fstab will complain if it's not there, so make sure that the folder isn't being used already, and run

sudo mkdir /media/Windows
Next, which filesystem should it be mounted as?

Since we're mounting an ntfs partition, specify ntfs-3g for this column. Don't use "ntfs" unless you don't want to be able to write to the partition after it's mounted (by write, I mean making new files, editing files, moving files and folders, etc.; the "ntfs" driver is outdated and only lets you read files.)
Next, what options should it be mounted with?

This is the most important column in this case, this is where you specify permissions. How you do this isn't immediately obvious, but there's a way, and it's actually rather simple.

This is a comma separated list, so don't use spaces or tabs, or else you'll find that the mount line doesn't work as expected. To specify the permissions, you merely need to declare three things: UID, GID, and umask.

uid=#### specifies which userid should own the files on the partition. e.g. uid=1000 means that the user with the id "1000" should own the files. You can find out your UID by opening a terminal and running echo $UID.

gid=#### specified which groupid should own the files on the partition. e.g. gid=1000 means that the group with the id "1000" should own the files. Finding out groupids is slightly more difficult than finding out your userid because you can belong to several groups at the same time.

Now, Ubuntu normally creates a group for every user, with the same ID as the UID, so you can probably use your UID as the GID. However, you can get a list of groups by running, in a terminal, cat /etc/group. This will display a list with up to four colon-separated fields per line. The lines will contain the following items: name, an encrypted password, the GID, and a list of users in the group. Find the group you want to use, and add it's GID to the options.

umask=UGO is the most important of the three options; it specifies what the permissions will be for the user, the group, and everyone else. The numbers used here need to be between 0 and 7, anything else will probably cause an error. These numbers are actually an inverse of normal permissions, so while "7" means "read, write, and execute" in normal permission setting, in fstab "7" means "no permissions". Setting umask=000 will give EVERYONE read, write, and execute permissions. For clarification, the U is the permissions for the user, G is for group, and O is for others. See www.cyberciti biz/tips/understanding-linux-unix-umask-value-usage.html for more details about umask.

You may also add other things to this list. Generally speaking, it's best to start with the "defaults" option. "auto" makes the partition mount automatically when you boot up. Read more here: www.tuxfiles org/linuxhelp/fstab.html
The final two columns should be "0" and "0".
These two columns are only used for Linux filesystems, so setting them to 0 stops any complications from arising.

A finished fstab line may look like:

UUID=ABCDEFGHIJKLKLMNOP /media/Windows ntfs-3g defaults,auto,uid=1000,gid=1000,umask=002 0 0

The next time you boot up, or the next time you run sudo mount -a, the partition should be mounted where you want it, with the permissions you want it to have.

Source


issues setting static IP in ubuntu server 14.04

I'd probably shorten it up a bit. As well, there appears to be no space between the DNS namesever addresses. I suggest:

auto lo
iface lo inet loopback

auto eth0
iface eth0 inet static
address 172.16.140.98
netmask 255.255.255.0
gateway 172.16.140.5
dns-nameservers 8.8.8.8  8.8.4.4

Given the address of the gateway, I doubt you need to use 255.255.0.0.

Restart the interface:

sudo ifdown eth0 && sudo ifup eth0

And test:

ping -c3 www.ubuntu.com


Live CD works great, but installed drops to INITRAMFS, kubuntu 16.04 LTS, XFCE

I upgraded my Kubuntu 15.10 to 16.04 yesterday. After few hours, I get to initramfs, I tried some few things and none of them worked. Finally I started my system with Live Linux USB and I tried this:
sudo fsck -a /dev/sda1

I was asked questions and I just hit Enter (many times) until the end and restart my system. You can find the source at Help! (initramfs) failed boot.


Using makefile wildcard command for file names with spaces

I asked on Stack Overflow and a user named perreal helped me to solve this, here is his answer.

Here is what I did to get it to work:

Use src=$(shell ls Photos | sed 's/ /?/g;s/.*/Photos\/\0/') to fix the spaces problem in the wildcard command and get targets to work with spaces.
This leaves a question mark in the resulting file, so use a call function to replace ? with a space in the final file: replace = echo $(1) | sed 's/?/ /g'. Call this with @convert "$<" -scale 20% "``$(call replace,$@)``" (I only used one backtick, but I don't know how to get it to display correctly).

So, here is my final Makefile:

src=$(shell ls Photos | sed 's/ /?/g;s/.*/Photos\/\0/')
out=$(subst Photos,Compressed,$(src))

replace = echo $(1) | sed 's/?/ /g'

all : $(out)

clean:
    @rmdir -r Compressed

Compressed:
    @mkdir Compressed

Compressed/%.jpg: Photos/%.jpg Compressed
    @echo "Compressing $<"
    @convert "$<" -scale 20% "`$(call replace,$@)`"

Compressed/%.JPG: Photos/%.JPG Compressed
    @echo "Compressing $<"
    @convert "$<" -scale 20% "`$(call replace,$@)`"


Can't dual-boot Windows 7 after installing Ubuntu

This is really a Windows issue, not an Ubuntu issue, but it does interact with Ubuntu, so it merits an answer.

Your first task is to figure out your Ubuntu boot mode. If the directory /sys/firmware/efi is present, you're booting Ubuntu in EFI mode. This is the best possibility for overcoming your problem. If that directory is not present, then you're almost certainly booting in BIOS/CSM/legacy mode, which could complicate matters. I'll take the simpler case first.

If you're booting Ubuntu in EFI mode, then the solution is to get the Windows installer to boot in EFI mode, too. I just did a Web search and found this forum post on the subject. I can't promise it's 100% accurate. If you have problems, try a Web search of your own or ask on a Windows forum.

If you're booting Ubuntu in BIOS/CSM/legacy mode, then you need to figure out if your computer is capable of EFI-mode booting. If it is, you can install Windows in EFI mode and then install an EFI boot loader for Linux (see below), thus getting both Windows and Linux booting in EFI mode. If the computer is BIOS-only, then you're faced with the need for more complex or ugly workarounds, such as:

Run Windows in a virtualized environment (such as under VirtualBox).
Convert the disk from GPT to MBR form (which you can do with gdisk, with some caveats), then install Windows in a conventional dual-boot configuration.
Create Windows partitions and then create a hybrid MBR that contains those partitions to keep Windows happy.

I've listed these options in more-or-less the order I recommend them, although details of your configuration and needs might change that order.

Note that when you install Windows, in any boot mode, it's likely to either partially overwrite GRUB or configure its own boot loader as the primary one. (Using VirtualBox is the only solution that will eliminate this risk.) Thus, I wouldn't invest much effort in making Ubuntu boot loader changes before installing Windows. The Boot Repair utility can fix many Ubuntu boot problems; but it's important that you boot the emergency disk that you use to run it in the same mode you use for booting your OSes (BIOS/CSM/legacy vs. EFI/UEFI). To control this boot mode, you may need to use your firmware's boot manager, and details of how to do that vary from one computer to another.

Another boot loader repair option, albeit only for EFI-mode boots, is to use my rEFInd boot manager. You can download the CD-R or USB flash drive version, boot from it, and boot into Ubuntu in EFI mode. You can then install rEFInd from its Debian package or PPA; or run Boot Repair and be confident you're doing it in EFI mode.


How to change the default folder of 'Files' to "Starred"?

You can change the default startup folder of nautilus by editing the .desktop launcher for Files, as detailed in this anwser. It boils down to copying the system wide launcher to your private .local/share/applications folder, and then editing the copy in that local folder. Edit it such that the Exec= lines read like
Exec=nautilus starred:///

In contrast to what is indicated in the related answer, you need to remove both --new-window and %U for this to work.
Users that wish to autostart in the "Recent" folder can supply recent:///.


gedit modelines – What are they? How do they work?

Modelines allow you to set preferences on a file-by-file basis, and allow you to mimic some of the preference-setting options of a few other popular editors (Vim, Emacs, and Kate).

For example, if you have your gedit preferences set to use 4 spaces per indentation, you can use modelines to override this and set only 2 spaces per indentation on that particular file.

Actually creating modelines in your documents is another matter, though. It can be rather complex (look at the documentation for the Kate modelines), and is generally suited to people who are intimately familiar with their editors of choice. This is why the gedit documentation links out to the various manuals for Vim, Emacs, and Kate, rather than describing their modelines in detail within the documentation.

Here is a sample vim-style modeline in a python file. Let's call it test.py. The line at the end turns on the modelines, sets the tab spaces at 24 spaces (clearly a bad python coding practice, but done just for effect here), and turns off the expanded tabs feature.

print "hello"
print "say what?"

# ex:set ts=24 noet:

Give it a try in gedit and let me know if it works for you. The vim modeline options are documented fairly well here. If you would like to wade through the Emacs documentation to find their modeline options, you are welcome to do so.  :)


Usually there is no need to set a root password. See: https://help.ubuntu.com/community/RootSudo

To set or change your (root) password:

sudo -i
passwd

To lock it again

sudo passwd -dl root


Maybe the following will be helpful:

If you run me-tv and close the window using the close button, me-tv still runs. You have to close it using the menu File->Quit.

dvb-usb-af9015.fw is provided by linux-firmware-nonfree

I've never managed to detect channels without a decent antenna, event though I live in a place with no obstacles between me and the tower.


Stuck at Kubuntu splash screen after adding Kde to Ubuntu

I was able to get past the splash with albert's help found this:

A start job is running for Hold until boot process finishes up (Xmin Xs/no limit)

[This answer][1] seemed like it could be my problem and reconfiguring lightdm did fix it . by bringing up the terminal with alt right arrow.

[1] Cannot boot system due to start job running for hold


Startup Applications not running in Remote Session

Just in case someone is also experiencing this problem, apparently it's related to using the Unity Desktop Environment with XRDP, if I use another Desktop Environment, the autostart works. I've just decided to use XFCE instead of Unity.


This seems to be a Ubuntu bug.  See the bug report relating to it here


How do I get a CDMA USB Modem ZTE AC682 modem working?

Yes, the modem will be detected when you plugged in. You may see like the screenshot shows under network icon.

The configuration is easy just click on the detected modem and follow the instruction.

To configure you CDMA using another way check this answer: How do i configure universal USB modems in linux (e.g. iBall 3.5G Connect)


How to setup a mouse shortcut to raise window if it's covered by another window, otherwise lower it?

Shift+Alt+middle-click on the title bar moves a window to the background (at least on my system; if this is not default behaviour please correct me and I'll try to find out how I did it).  That's probably not exactly what you want though?


I had the same problem on Ubuntu Mate 20.04.
Resolved it as follows.  The otto-kesselgulasch repository is depreciated and is no longer maintained. It needs to be replaced.
sudo apt install ppa-purge
sudo ppa-purge ppa:otto-kesselgulasch/gimp
sudo add-apt-repository ppa:ubuntuhandbook1/gimp
sudo apt update && sudo apt upgrade

If that doesn't work you may need to re-install GIMP
sudo apt install gimp gimp-gmic

This worked for me.
You may also need to do
sudo apt autoremove

and
sudo apt update && sudo apt upgrade

for a number of cycles until all the dependencies are satisfied and unused dependencies removed.
Trying to install GEGL didn't help for me.  I removed / purged GIMP (and GEGL 0.4.22 - it was installed correctly!) as above a number of times without result.  However, doing this routine from the start worked first-time on my second machine!
Thanks to Ubuntu Handbook for hosting the repository.


Touchpad won't work after Ubuntu 14.04 install on Toshiba Satellite S55-B5266 laptop

Restart your laptop and while restarting press Fn+F2 to enter into BIOS and press Fn+F5 in order to refresh the hardware settings (although you cant see the BIOS getting refreshed). That's it and now just save and exit from BIOS and your touchpad starts working.

It worked for me.


How to create a local repo using apt-mirror without a server

Usually, running a web server isn't a problem, even if you just want to serve the local system and not any network. There is lots of software in the Ubuntu archive that you can install to provide this service.
There's nothing special about server software; it's just software that allows a program to connect to it. For instance, the Transmission Bit Torrent client that's used in Ubuntu desktop by default, includes a built-in web server so you can connect to it via a browser. If you bind your web server to 127.0.0.1, then only clients on that computer can connect to the server.


Kubuntu UEFI Dual Boot with Windows 7 failed at installing Grub-efi

If the installation has mostly finished, but just failed on the GRUB installation, I have two suggestions:

Try Boot-Repair, which should set up GRUB for you.
Try the USB flash drive or CD-R version of rEFInd. If that gets Linux booted, you can then install the Debian package version, which with any luck will install without error to the hard disk.


This preliminary answer summarizes steps involved to debug sound available for one user only in an environment where domains were joined for this user. It may need be extended later.

In case we have sound for one user only we may have some bad configuration in this one user account's setting. We need to take the following steps from the affected user account to get further insights into the problem.

Is pulseaudio running at all?
Usually you will see that from having access to the sound menu in the top bar. Alternatively we can issue the following command in a terminal:

pulseaudio -k

There will be an error in case pulseaudio does not run. In addition this command takes care of stopping and respawning pulseaudio in case it hangs.
Are there wrong user settings for the pulseaudio daemon?
To test this we have to rename the settings directory in the affected user's HOME followed by a restart of pulseaudio (see 1.):

mv ~/.pulse ~/.pulse.bad

or

mv ~/.config/pulse ~/.config/pulse.bad  ## for newer releases

Are channels muted from ALSA?
We may open the alsamixer in a terminal to adjust channel volumes, and to unmute a channel in case it was accidentally muted:

alsamixer

Make sure users are not in the 'audio' group
A user in the audio group has exclusive access to the pulseaudio server. Other users can not access it while this user uses it. Therefore user should not be in the audio group.
Start Pulseaudio manually
In case pulseaudio was not running we can also start the daemon from command line with

pulseaudio -D

Pulseaudio then uses default settings and starts it's daemon. We can also put this command to our Autostart Applications to overcome the case when pulseaudio fails to run before the desktop was loaded.
Browse log files
Pulseaudio will be loaded on system start up, and on user login. Therefore errors can only be read from a log generating on starting pulseaudio. See this guide on how to generate a pulsaudio log script. In short, we have to take care pulseaudio does not  respawn we may run it in verbose mode:

pulseaudio -vvvv <options>

to be completed

In the case given in the question we could see that pulseaudio fails to run because it was unable to start the D-Bus service. This may likely be caused by a broken or overlong path to the user's HOME (see bug #872992). As a workaround we may issue pulseaudio without D-Bus control by commenting out the following line in /etc/pulse/default.pa like this:

# load-module module-dbus-protocol

However then we (and our applications) will not be able to control pulseaudio using D-Bus.


Recovering Grub after installing windows 8.1

You just need to install grub again with an Live CD.
This link could help you


This depends on how you install Ubuntu. It could be actually because the boot for Windows 7 is actually locate in Windows RE partition instead of the main C: drive. I wonder this may help, but you can try to use Live CD or Live USB to determine your Windows RE partition still exist, and you might want to disable the grub.

To my knowledge, Windows RE partition is hidden in Windows, but when I use Linux to detect the partition, it usually located in dev\sdX3 or 4, (For Windows 8, the boot is somehow in a FAT32 partition), if grub is installed in sdX1 partition, your computer will read the grub and enters grub.

Hope this gives a wee bit information to help you further your quest of solving your answers.


One of the systems that supports CIFS and NFS perfectly (and I currently own one) is Synology.

Just works, no complaints.

Any other NAS that supports either CIFS or NFS will work because you can mount any of these protocols in Ubuntu without any problems.

One word of advice I have is to just check the website forums page of the brands you are interested and have a look for any NFS or CIFS complaints users are posting there.

ie: Synology had a problem with CIFS low transfer rates that was fixed 2 versions of the software ago, you can read about all the complaints on their forum. Its fixed now.

To use a NAS on your network cannot be more simple:

1) Plugin the NAS to your router, it will probably be setup to look for IP addresses by it self

2) Create users and shared folders on the NAS using the NAS interface (much likely a HTTP page)

3) In your Ubuntu system install the required protocol files (CIFS or NFS)

4) Modify your fstab file (`/etc/fstab') to mount the shared folders you just created automatic on each startup, instructions for that normally can be found on your NAS website support pages.

Thats all! Its that simple. Gl and if you need any further assistance on this just ask ;)


Why does my laptop suddenly freeze after a period of time?

As you're familiar with Ctrl+Alt+F1, I suppose you're more technical then the reputation 1 you have here would suggest...

The standard Ubuntu NVidia drivers generate some problems on slightly older and slightly newer NVidia hardware.

If you want more then the standard Ubuntu repository drivers, install the xorg.edgers PPA.  As the xorg.edgers group ask not to give installation instructions directly without linking to their page, this is the best I can do.

If you don't know what a PPA is or don't know how to choose different drivers or need some guidance after reading their page, leave a comment below.


After running docker version the below error is reflecting while every thing has done properly

It seems your docker service is stopped. Try to start the docker sudo service docker start.


go still run even its path not in environment variable path?

Your actual $PATH is probably different than the on in /etc/environment. Check this by typing echo $PATH in the terminal. It probably includes /snap/bin, and this directory probably has a symbolic link to the go executable. I have Ubuntu rather than Linux Mint, but on my system the $PATH gets updated by /etc/profile.d/apps-bin-path.sh with this line:

export PATH=$PATH:${snap_bin_path}


ubuntu 18.03 says no wifi adapter found on dell inspiron 3543

You can try using other operating system on a "Live CD" to check if exists a damage on your WiFi physically, if your WiFi works correctly on the "Live CD", try verify if exists an official driver for your operative system. Regards.


Seems like panflute is going to be abandoned. As rhythmbox and banshee are both integrated with sound menu, I think you could either choose one of the following. Or you could use Covergloobus which says it supports audacious but you wont have as much control as sound menu. As for alternative to panflute, I donot know of any such applications.

Or you may just enable systray icon of audacious. I am using audacious that way.


The Official Ubuntu base image available at Docker Hub Registry is based on Ubuntu Core released by Canonical.

Core's page on Ubuntu Wiki explicitly states it is suitable for use in Docker (emphasis mine):

  Ubuntu Core is a minimal rootfs for use in the creation of custom images for specific needs. Ubuntu Core strives to create a suitable minimal environment for use in Board Support Packages, constrained or integrated environments, as the basis for application demonstration images, or Linux containers such as LXC or Docker.

The manifest file contains the list of pre-installed packages. Of course, you can install any package available in the Ubuntu repos, but you may have a hard time trying to run GUI applications inside a container.


Logitech S100 USB speakers output no sound on Ubuntu 15.04, USB 1.1

I found what I needed in pavucontrol.  It's not a USB thing, and it's still unclear why there is no Sound  option in the settings menu.


Xresources not working properly after restart

I think that the name of this file should be a different one (at least on Ubuntu).
Try(1) the following:

find your hostname:

% hostname
pern

(type hostname in your preferred shell --- in the same xterm if you like. You'll have the hostname printed --- in my case it is "pern").
you should use .Xdefaults-hostname as a file name for your default resource file. For example, supposing your is .Xresource, you can create a symbolic link:

cd ~; ln -s .Xresources .Xdefaults-$(hostname)

(more simply put: the resources file should be called after your hostname; so if for example your hostname is alfabeta, your resource file should be named .Xdefaults-alfabeta. The above command, typed as is in a shell, will take care of creating an alias, aka symbolic link, for your existing .Xresources file(2))

...and now it should load it at startup (logout and login to check, no need to reboot).

As a last resort, you can try to put the xrdb command in an executable script named .xprofile (works for me in Xubuntu) or .xsessionrc in your home directory, or add it to your session startup programs.

Footnotes:

(1) all the X11 resource mechanism, although not officialy obsoleted, is basically used only by programs from the 90ies and before (XJed, xterm, xfig and so on). Which I still use, together with a couple more dinosaurs. Probably the status of the maintenance of the scripts loading them is, well, lagging. Given that you are a new user, why not going with a more powerful terminal emulator like, for example, terminator? It has profiles, configurability, split screen, status line, and a lot fancier stuff than ole good xterm.

(2) that, by the way, I do not know why it is not working. It should be loaded by /etc/X11/Xsession.d/30x11-common_xresources, which is sourced by /etc/X11/Xsession. Anyone?


Make a Ubuntu Live USB without having it waste the whole USB?

Mkusb will make a Live or Persistent Live USB stick with:

Fat32 boot partitions.
ISO9660 read only OS partition.
Ext2 Casper-rw persistence partition, (optional).
NTFS data partition accessible to Linux and Windows, (optional).


ICEauthority problem I am not able to start my laptop

If you're able to switch to the terminal (Ctrl+Alt+F1), try ls -la to see whether you are permitted to edit the .ICEauthority file. The output should look like this:

-rw-r--r--   1 user user  6682 Jan  6 00:02 .ICEauthority

If it doesn't, try executing the following:

sudo chmod 644 .ICEauthority

Then try again to log in.


How can I send SMS from Ubuntu to cell phones?

SMS from Ubuntu is possible. This is not specific to the OS. The support for SMS comes from applications. I know of at least two application that makes SMS from Ubuntu possible:

Skype for Linux supports SMS for a fee.

To send a text to one of your contacts

In Skype, find the person you want to text and click on them.
Right-click the contact, select Send SMS and then select the number you wish to text.

Google Voice has the capability to SMS from web browser, both send and receive (to phones in the US only?). So far it's free. Thanks tufkab for mentioning this in the comments.

Google Chat also allowed SMS from the web browser. Now that chat has been moved to Google Hangout, this feature is gone. It may come back in the future.

Hope this helps


Virtual Machine Manager interfaces with the libvirt daemon, not Xen, so if you are creating virtual machines within Virtual Machine Manager, then you will have to interface with libvirt from PHP in order to keep your virtual machines synchronous between the web interface and Virtual Machine Manager.

Apparently there is already a PHP module for handling this: https://libvirt.org/php/

How to Install libvirt-php?

Hope this helps


Can I install Ubuntu on a laptop as a VM host for various VM guests?

First of all, using Virtualbox or Vmware depends on your needs. You can check out those:

https://www.virtualbox.org/wiki/VBox_vs_Others

http://www.zdnet.com/blog/perlow/virtualization-smackdown-2-oracle-vm-virtualbox-32-vs-vmware-workstation-71/13020?pg=3&tag=content;siu-container

Also, you can find tons of comparison links between virtualization applications via Google.
For those you listed, either Virtualbox or Vmware can do any of it easily.

If you prefer 64bit OS, that would be nice. Using multiple guest VMs will surely eat your RAMs, also consider reserving a good Swap part.

Network access via host machine is not a problem, you can easily do that.

Each application has USB and sound support.

You can autostart any VM via some scripts or just commands.

I recommend using server with a lightweight desktop, maybe Flubox.

Choosing Virtualbox or Vmware is up to you. You can use Vmware server for free, Virtualbox is totally free as you can see.


How do I get ubuntu for my Android phone?

I'm sure you'll find all your answers and more over at xda


Thinkpad X1 Carbon: Headphones not working

Try this command in a terminal:
sudo alsactl restore
If problem persists, try to manually change audio parameters in 2 ways:

Install  pavucontrol "pulseaudio volume control" with command sudo apt install pavucontrol
Run  pavucontrol (via command or menu) :
in output device tab, test manual change  port to "headphone" or "speaker"  (also in  configuration tab, check  "profile" is  set  analog)
next control is alsamixer (with headphones connected):

Run alsamixer  (or alsamixer -c1 if hdmi audio is first) in  a terminal (maximize window)
using left/right arrow keys to scroll thru faders, raise  volumes  master/speaker/headphones (up/down arrow key) , unmute muted faders with m key  (muted fader have a MM label) .
desactivate and activate "automute" control which could be screwed . Check also switching on/off "independant HP" and "loopback" . Normally this 2 last parameters are disabled. On some pc, i have seen  one of these 3 functions  create problem .

if no success, it may be a driver problem , whats the result of
cat /proc/asound/card0/codec#* |grep Cod
Just saw a  similar recent  bug  reported here  , low headphone volume on Lenovo ThinkPad X1 Carbon 7th g


the package "apt-xapian-index" is in the universe repository since Ubuntu 16.04 Xenial (see http://packages.ubuntu.com/xenial/apt-xapian-index). Before Ubuntu 16.04 Xenial the package "apt-xapian-index" was in the main repository, so it was always available, even if the user had the "universe" repository disabled. It's not the case anymore.

To confirm what is above just run the following:

apt-cache policy apt-xapian-index

If the result is not available it's because apt-get can't find it in the present repositories present in the file /etc/apt/sources.list.

My guess is that you have removed/disabled the universe repository from your APT /etc/apt/sources.list file. Make sure to add "universe" at the end of the the lines starting with "deb" in that file. Example, change the following line to have the universe repository enabled, in the file /etc/apt/sources.list file:

deb http://archive.ubuntu.com/ubuntu/ xenial main

To something like (add the last word in the line):

deb http://archive.ubuntu.com/ubuntu/ xenial main universe

Then update apt-get repositories:

sudo apt-get update

Apt-get will update its sources of available packages, now with the universe repository enabled. Then try to fix the problem:

sudo apt-get install -f


How to install Oracle Java 8 on Ubuntu 19.04

I just upgraded to Ubuntu 19.04 on Sunday and had this exact same problem the webupd8team PPA was removed due to the recent Oracle license changes.

I solved the problem using this script from GitHub: install-java.sh

It is a Bash script that did a professional install of Oracle JDK 1.8_201 using the files I downloaded from Oracle's website.  I have just used it today and selected yes to everything.  It works like a charm on Ubuntu 19.04.  I ran with with the following files that I downloaded from Oracle:

-rwxrwxrwx 1 don don      8409 Sep 26  2018 jce_policy-8.zip
-rwxrwxrwx 1 don don  58807261 Jan 21 22:56 jdk-8u201-linux-x64-demos.tar.gz
-rwxrwxrwx 1 don don 191817140 Jan 21 22:50 jdk-8u201-linux-x64.tar.gz

It installs JDK into /usr/lib/jvm and adds the programs (java, javac, etc.) to /usr/bin, and will update or add JAVA_HOME to your bashrc file.

I tested the installation by running a GUI Java program from my desktop.  Everything is working perfectly.


First, assignment of the /dev/sda and /dev/sdb identification is done by the kernel. If both disks are controlled by a single chipset, then typically /dev/sda will be attached to a lower-numbered port than /dev/sdb. (Ports are often numbered on motherboards or at least identified in documentation.) Sometimes BIOS settings can influence which device gets which moniker. If the two are controlled by different chipsets, the assignment will depend on the order in which the two chipsets' drivers register their devices. (This order can vary between boots in some cases.) In the case of removable disks, of course, the order in which they're plugged in can be a factor, too. There are also exceptions to these rules, such as if you explicitly adjust assignments with udev rules, but that's getting into pretty obscure stuff. Note that the rules for what device gets a given assignment have nothing to do with the importance of a device for you or even with where Linux "lives."

It's unclear what you mean by a "primary" drive, but most likely meanings do not guarantee superior performance. Disk performance is determined mainly by hardware -- ideally the bottleneck will be on the disk platter itself, but it can be in the interface technology or elsewhere. Moving Linux from a spinning hard disk to an SSD is likely to improve its performance. Moving it from one spinning disk to another might or might not improve performance, but to know if it will help you'll need to examine the disks' specification sheets and study the disk controller(s) at your disposal. In many cases you'll get optimal performance by spreading Linux across two or more disks in a RAID or striped LVM setup.

Moves such as you suggest are certainly possible, but there are a hundred things that can go wrong. Undertake this task only if you have adequate backups!!!! I'm afraid that I don't have a link to a suitable tutorial, although I'm sure something like that must exist somewhere on the Web (and maybe on this very site). It's not a trivial task to undertake, or even to write about, so I can't simply whip up some instructions for you in five minutes. It will involve using any of dozens of data-copying tools, perhaps using a partition resizing tool, and probably re-installing your boot loader.

I recommend that you first learn more about your disk hardware to be sure that such a change will actually provide you with a real benefit. Certainly you've presented no evidence that this will be the case, so my best recommendation, given what I know of your situation, is to leave it alone -- there's wisdom to the saying don't fix what ain't broken.


With Stacer, you can make a system diagnosis to check your CPU, memory, and disk usage, wipe cache, start-up apps, and uninstall apps. It contains a dashboard with general system information, system cleaner, startup app, and services manager, and an uninstaller.
To install stacer go to https://github.com/oguzhaninan/Stacer/releases and download the deb package.


How can I make a local repository of Ubuntu MAAS PXE Images?

maas-import-pxe-files downloads operating system images, prepares them for use by MAAS nodes, and makes them available for nodes to boot over the network through TFTP, iSCSI, and SMB as appropriate.

Source: http://maas.ubuntu.com/docs1.7/man/maas-import-pxe-files.8.html

About doing this manually, I don't if there is a simple way to do it.


Build data.tar.gz instead of data.tar.xz inside deb

I had the same problem while using newly build packages on an older server (hardy) which I couldn't update. The dpkg-source isn't responsible for creating a .deb package. It is only used to create the source package.

In fact dpkg-deb creates the packages witch is normally called by dh_builddeb in debian/rules. You can add change this command to dh_builddeb -- -Zgzip or call dpkg-deb -Zgzip directly.

If the command dh_builddeb isn't listed explicitly in the debian/rules file
you can add the following lines to make it work:

override_dh_builddeb:
        dh_builddeb -- -Zgzip

Note that before the dh_builddeb option there is only one tab, not multiple spaces as this is a Makefile.


Can anyone name a WiMax USB dongle that works with 10.04?

I've managed to get ZTE AX225 WiMax USB Modem to work in both ubuntu 10.04 and 10.10
I used the Sprint4GDeveloperPackage, I added the AX225 modem's vendor and product IDs to the source code and compiled.
I used the usb_modeswich with a eject command to switch the usb device from mass storage to wimax modem.

Compiled the CM from the package (needed OpenSSL source, was not included) and used the
wimaxd deamon and wimaxc client to connect using a conf file wimaxd.conf which I got its data from my CM on windows machine.


You need to use a slightly different looking search box:

Source: instructions here

So it needs to look like:

The version I am using that seems to work is 7.1.2.2041, sourced from here.

To install the latest version, run this to remove any current versions, download, and then install the 32bit version*:

sudo apt-get remove google-earth*
wget http://dl.google.com/dl/earth/client/current/google-earth-stable_current_i386.deb
sudo gdebi google-earth-stable_current_*.deb

Note by doing this you are agreeing to Google's agreement thing here - also, if you want to get the 64bit version use this link:

http://dl.google.com/dl/earth/client/current/google-earth-stable_current_amd64.deb

instead of this link for the 32bit version:

http://dl.google.com/dl/earth/client/current/google-earth-stable_current_i386.deb

Works in Ubuntu 13.10.

*In the above instructions gdebi is used instead of dpkg as it can resolve dependencies better - you can install it with sudo apt-get install gdebi, or use dpkg -i in place of gdebi


HD5450 "This driver is actived but currently not in use"

drivers needs to be loaded in kernel, so u need to restart that server, i guess u did?

this question was discussed here already, maybe that helps:

Driver not in use