How to install: Onboard Intel GPU (-> x-server), Dedicated Nvidia GPU (-> cuda computations only)

Finally got it working: I had to reinstall Ubuntu (couldn't make it work otherwise). In the fresh installation I first add the following lines to /etc/modprobe.d/blacklist.conf

blacklist nouveau
blacklist lbm-nouveau
alias nouveau off
alias lbm-nouveau off
options nouveau modeset=0

-> reboot

then

# Switch off X-Server
[Ctrl + Alt + F1 ]
sudo service gdm stop # "gdm" for gnome / "ligthdm" for unity
sudo ./NVIDIA-Linux-x86_64-430.40.run --no-open-gl-files --no-drm

during installation:

-> update xorg.conf?: "no"

Reboot after installation.

The important part is here the --no-open-gl-files --no-drm options. Especially drm (direct rendering manager) apparently is guilty of using the Nvidia GPU's memory.


Short answer: Yes, no and yes.

Slightly longer: Ubuntu One provides only a storage cloud, no editing tools.

I just realized that you probably didn't add your notebook as a device to UbuntuOne and so no automatical syncing will take place at all. So that would need to be done first.

Then if you edit the file on your notebook and save it it should get automatically synced back to UbuntuOne and then to your other system. (This doesn't apply for a smartphone, UbuntuOne Files for Android provide only downloading the files).


I recommend you head over to vpnbook website and download all the  certificate bundles they offer in the openvpn section and use the following command whenever you want to connect to any of the downloaded bundles openvpn --config (name of bundle).ovpn. When prompted to enter username and password use the details given on the website.


Edit your .bashrc file by

gedit .bashrc

Add these line at the last of the file

JAVA_HOME=/usr/lib/jvm/jdk1.7.0

(this path may change according to your system)

(this you copy as it is)

PATH=$PATH:$HOME/bin:$JAVA_HOME/bin
export JAVA_HOME
export JRE_HOME
export PATH

then logout and login


Why can't I choose output sound for each application?

You could try PulseAudio Volume Control (pavucontrol ).
sudo apt-get install pavucontrol

Then select output device like so.


Trying to recover files from a Windows 7 machine using Ubuntu

There's two menus in which you can select to run Ubuntu off the LiveCD, one during boot to the CD and one whilst you're inside the OS and the installer is visible.

I've had issues where the first menu was not displayed during the boot of the CD in which I had to press one of the f10 - f12 keys to bring up the language selection -> boot options menu. I did this as the cd was booting, just as I saw the Ubuntu disc loading screen.

If this does not work for you, could you please post more information on what you DO see from the installer once you're booted.


Netbeans under ubuntu 19 fails to compile with jdk11, compiles but can't run with jdk8

I am having the same issue with JDK 11, so I can't help too much with that, but I did figure out how to fix the issue with JDK 8. Go into Project Properties > Build > Compiling, and uncheck "Compile on Save".


How to prevent execution of "sudo rm -rf --no-preserve-root / " command?

Welcome to Security Whack-A-Mole, the game where you try to enumerate ALL the ways you can get hurt, and try to wrap each one in bubble wrap. You can never win.

Rather, learn to use Unix/Linux tools, understand what your system does, and don't run scripts (or anything) you don't understand (that comes from an untrusted-for-system-upgrades source).

Your question is equivalent to "I can shoot myself in the foot, thusly. Why don't guns not automatically deflect their aim away from me?"


What kind of support will Unity provide for Nvidia cards?

The idea is if your driver supports 3D you will get Unity, if your driver or hardware does not you will get a standard GNOME 2.x desktop.

Unity itself will be built using Compiz technology which gives us the ability to have a fallback mode for 2D, this is why we can become highly performant, which we couldn't do with Mutter as it required 3D accelleration. More information will be made on the blueprint.

RAOF's answer also has more information.


What does the hyphen "-" mean in "tar xzf -"?

Some commands accept - in place of a filename, either:

To write to standard output instead of to a named file. This is what the - argument passed to wget after -O is doing.
To read from standard input instead of from a named file. This is what the - argument passed to tar after xzf.

The command you showed downloads an archive file with wget and unpacks it with tar. To achieve this, the output of wget is piped (|) to the input of tar. This is why wget writes to standard output instead of a file and tar reads from standard input instead of a file.


Docky Bookmarks AND Mounted Drives Plugins won't work

killall docky, then go to ~/.conf/gtk-3.0/ copy bookmarks to ~. Rename it to .gtk-bookmarks
Start docky with bookmarks showing and working.

killall docky
cp ~/.config/gtk-3.0/bookmarks ~/.gtk-bookmarks


See this post.

The command prompt should be in PS1, you can set it by running this command:

PS1='${debian_chroot:+($debian_chroot)}\u@\h:\w\$'

If you want this to be the default when you open a new terminal, you can put it to your ~/.profile or in /etc/bash.bashrc (global for all users).

To check your current prompt, just echo it:

wolfgang@wolfgang-desktop:~$ echo $PS1
\[\e]0;\u@\h: \w\a\]${debian_chroot:+($debian_chroot)}\u@\h:\w\$


Usual keyboard shortcuts changed after installing Unity in Ubuntu 18.04

Some of the shortcuts is impossible to change with built-in system settings GUI. Most other system-wide shortcuts could be changed through dconf as described here.

Open Terminal (Alt+Ctrl+T by default)
sudo apt-get install dconf-editor
dconf-editor
Navigate to desktop.ibus.panel.emoji hotkey
Further toggle Use default value and change the shortcut to [] as in the image below:


Try

$ sudo apt-get install libcppunit-dev

There's a libcppunit-doc too, and a libcppunit-1.12-1 - could be that you need that instead?

I looked up packages for Ubuntu 12.04 with cppunit in the name at http://packages.ubuntu.com/:

Ubuntu Packages - Search "cppunit" for Precise


How to remove or hide the GRUB boot menu?

To not see the GRUB menu while booting:

Open the /etc/default/grub file using from terminal entering: gksu gedit /etc/default/grub
Change GRUB_TIMEOUT=10 to GRUB_TIMEOUT=0
Save the file and quit the text editor.
Run: sudo update-grub
Reboot.

This will remove the time that you need to wait for the GRUB menu to disappear.
IMPORTANT: If then you need to change to Recovery mode in some instance just press ESC when Linux starts. That is between when the BIOS finishes loading all necessary stuff and the Operating System starts. Then the GRUB menu will appear giving you the change to select the recovery mode.


users disappear from options menu when given uids under 1000

You can change the userid with sudo usermod -u <new id> <username>.

Btw: to hide users from log in screen: How to hide users from the GDM login screen?


Xmonad windows flashing on other workspaces

Turns out this is an issue with Chrome - see https://code.google.com/p/chromium/issues/detail?id=370022.

The quick fix is using xcompmgr to enable compositing, e.g. by adding xcompmgr -a & to your .Xsession (or similar session initialization script).


How to run Windows Steam games from Linux Steam (with WINE)?

So, I know this is an old question, but there seems to be a way to do this. Sort of.

EDIT: So, having downloaded 1 game, it doesn't seem to be working. Launching the game does nothing. No errors.. just nada. So, YMMV.

It involves, tricking the client into thinking it can be installed by creating an appmanifest in the right folder. Luckily, since Steam is put together well and is tolerant of errors, you can just copy some other manifest, change a few fields, and it will automatically fix the file and start downloading the game.

For future reference in case the link breaks:

Right-click on your desired game in Steam. Click "Create Desktop Shortcut".
Open the shortcut up as text and locate the gameid. It will be on the Exec line. For example, "Exec=steam steam://rungameid/204880" means the gameid is 204880. (Bonus points for finding which game this is! :P)
Now we make a new manifest. (Oh, and if you have Steam open still, you can go ahead and close it.) Most likely, you'll go to ~/.local/share/Steam/SteamApps/. There will be several "appmanifest_xxxxxx.acf files (of variable length). These represent your installed games. Pick one (so far, it seems any one will work). Copy it and save it as appmanifest_gameid.acf (obviously replacing gameid with what it was). Now open it up and change the appID, GameID, name, and second name fields. Save it.
Re-open Steam.
??? (Steam corrects our wrong file. Although, I've noticed some of the old properties remain which may come back to bite me/you/us.)
Profit! (it starts downloading)

And, as of writing, this is as far as I've gotten. My game is still downloading and I thought I'd share as I stumbled across this QA when I was looking for the same answer :)


Went with battery disconnect, issue didn't persist through reboot.


unity,  seeing all instances of same open application windows on all virtual desktop

Doesn't work for me but it could be a very nice feature!
For me it is only working when I have two applications in the same virtual desktop!

You should take a look at the question below if you want to obtain a similar behaviour:

How to switch and list windows (possibly of the same application) in Unity?


Sounds like your EXPECT stanza is incorrect or not there. Upstart is tracking the wrong pid. See the cookbook for instructions on how to use EXPECT. Note the warning about how important that section is to understand.

Note that if your application is too forky (meaning it forks more than twice) for Upstart to track its pid, you may be able to track it yourself. The app may have a mechanism to write a pid file, or you may be able to capture it with start-stop-daemon. See this answer for an example, specifically the pg_agent.conf file.

Edit:

Note, if Upstart can't track your app's pid, you won't be able to use the RESPAWN stanza. In this case Upstart may not suit your needs. Perhaps a competing product like forever will. Don't know.


Where are unauthorized sudo attempts reported to?

It is reported in that file in ubuntu. It quite easy to change that. Just add this line in your /etc/sudoers file. Use sudo visudo to edit the file.

Defaults    logfile=/var/log/sudo.log

You can change the file name to whatever you think is appropriate.


how to install grub on installed ubuntu disk?

Try boot-repair by booting into ubuntu from live USB.

Install boot repair --> For this, open a terminal and do the following:

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

sudo apt-get update

sudo apt-get install -y boot-repair

Run boot-repair -->

sudo boot-repair

Click on "Recommended repair". Write on a paper the new URL that will appear.

Reboot your PC


How do I save to a file and simultaneously view terminal output?

Use a tee command. It is meant exactly for this.
python3 script.py | tee output.txt

It can also be done in more complicated way. Run your original command in the background and simultaneusly view the contents of file output.txt in the foreground. I sometimes prefer to do it that way, especially for long-running processes, since I can at any time abort viewing of the output file and return to it anytime later:
python3 script.py > output.txt &
tail -f output.txt

(you can Ctrl-C in the tail command at any time, and run again the command later).


Edit the blacklist:

sudo vi /etc/modprobe.d/blacklist.conf

And add the faulty module there (at the end):

blacklist acer_wmi

reboot and voilà


New machine build - Not able to boot from USB

It was the power supply.  We hooked up a separate PSU to the system and it started right up.
I guess that's a lesson in what happens when you cheap out on the PSU.
Thanks for all of the thoughtful comments - very much appreciated!


VBox on 14.04: Kernel driver not installed (rc=-1908)

The fix for 14.04 is indeed different, but not that different:

sudo apt-get install linux-headers-generic build-essential dkms
sudo apt-get remove --purge virtualbox-dkms
sudo apt-get install virtualbox-dkms

The install virtualbox-dkms command was actually failing applying the 13.10 fix. By fully purging the package things got back to normal.

Update [17-01-2015]: In the latest iteration of this bug a restart to the system is required between the apt-get remove command and the second apt-get install.

Update [07-02-2016]: This fix is reportedly functional on Ubuntu 15.10.

Update [29-09-2016]: This fix is also functional on Ubuntu 16.04.


From my limited experience gaming on Intel drivers, I would guess the thing you installed last time was the libtxc-dxtn-s2tc packages. These packages provide an open-source implementation of the GL_EXT_texture_compression_s3tc OpenGL feature that a lot of games require.

Install them and try again. You might need a reboot after installing the packages.


"Intel(R) Graphics Installer for Linux" for Ubuntu 14.10

A version of the driver update software was finally released which supports Ubuntu 14.10. It can be installed from here: Linux GraphicsIntel(R) - Graphics Installer for Linux* 1.0.8


Find and remove a system-wide keyboard shortcut

According to this bug thread, one of the recent versions of ibus was either added in 14.04 or added a new key binding for switching input methods. Luckily, removing the binding is trivial.

Run ibus-setup from the command line
Click ... to the far right of Next input method
Click Delete
Click OK
Click Close

  Note to future self: Never dismiss the most obvious search query—"ubuntu 14.04 ctrl-space"—without trying it first!


PC crashed. Can I install Ubuntu onto my PC via my Android smartphone?

Yes, but you need a rooted device!

The app drive Droid will do the rest (on most phones, not all are compatible)!

Here's a link to the app on the play store: https://play.google.com/store/apps/details?id=com.softwarebakery.drivedroid


The package lib32gcc1 is an amd64 (64 bit) package only. You're running i386 (32 bit) as can be seen from the output of apt-cache policy openssh-server in your question.

Now, either:

Install libgcc1 which is already 32-bit on your system:

sudo apt-get install libgcc1

Install the 64-bit version of Ubuntu instead.


Bash history search using arrows, in Guake

As "steeldriver" suggested, the problem is that the shell interpreter used by the embedded Guake terminal was not set up as "bash" (which is the one that is affected by .inputrc. As "AlexP" mentioned, Guake is simply displaying (emulating) a terminal, and changes to "bash" should be global across all emulators.

Thus, to enable history search in Guake, I simply had to change the shell used in Guake. This is done in Preferences, under the "Shell" tab:

A related answer (albeit not for Guake) can be found here.


The current stable version of Opera browser is:

opera-stable_30.0.1835.88

The current beta version is:

opera-beta_31.0.1889.50

And the developer version is:

opera-developer_32.0.1910.0

To add Opera repository:

sudo sh -c 'echo "deb http://deb.opera.com/opera-stable/ stable non-free" >> /etc/apt/sources.list.d/opera.list'
wget -O - http://deb.opera.com/archive.key | sudo apt-key add -
sudo apt-get update

The packages in repository:

  opera-beta
  opera-developer
  opera-next
  opera
  opera-stable

To install opera_12.16.1860 (32bit/64bit):

sudo apt-get install opera

To install opera-next_12.16.1860 (32bit/64bit)

sudo apt-get install opera-next

To install Opera browser-stable (64bit)

sudo apt-get install opera-stable

To install beta version (64bit):

sudo apt-get install opera-beta

To install developer version (32bit/64bit):

sudo apt-get install opera-developer


The OP posted:

  Solution:

sudo nautilus

  Go into .local/share and delete the Trash folder. Make a new folder
  and name it Trash, then go into terminal and do this:

cd ~/.local/share
sudo chown username:username Trash

  where username is your own username.

  I have no idea why it doesn't work unless you remake the trash folder,
  but this way worked for me. Good luck if anyone else gets this bug!


Asus Strix GTX970 Unable to get 1920x1080 Resolution Ubuntu 14.04

One thing you can try is to install the NVIDIA drivers from nvidia.com

Download the driver from http://www.geforce.com/drivers
Go to your downloads folder, right click on NVIDIA-Linux-x86_64-355.11.run, and select Properties. Click on the Permissions tab and place a check mark in Allow executing file as program.
Open up Terminal (Ctrl+Alt+T).
In Terminal type the following to edit the blacklist.conf file inorder to blacklist drivers that will interfere with installing the NVIDIA Drivers:

sudo nano /etc/modprobe.d/blacklist.conf

At the end of the blacklist.conf file add the following lines:

blacklist nouveau
blacklist nvidiafb
blacklist rivafb
blacklist rivatv
blacklist vga16fb

Press Ctrl+O to save the file. Followed by the Enter key to confirm.
Press Ctrl+X to exit Nano and return back to the Terminal.
Next, we need to remove any NVIDIA drivers already on the system by typing the following command in Terminal:

sudo apt-get remove --purge nvidia*

Restart Ubuntu and return to the login screen.
Press Ctrl+Alt+F1 to switch to a virtual console.
Enter your user name and password to log in. Note that when typing in a password, you will not get an indicator on the screen like asterisks.
Stop the display manager running in Ubuntu by typing the following command:

sudo service lightdm stop

Type the following command to install the NVIDIA Drivers:

sudo ~/Downloads/NVIDIA-Linux-x86_64-355.11.run

From here, press Tab followed by Enter to accept the license. And then did the same to select 'Yes' and 'OK' all the way to the end. I also let the installation run the nvidia-xconfig to update my X configuration file.
Once everything is installed, reboot Ubuntu by typing the following command:

sudo shutdown -r now

Your PC will reboot with the new drivers installed, and hopefully you get the full 1080p resolution.


Why do so many GNOME packages depend on evolution-data-server?

That is because many applications can depend on evolution. They have export to evolution, import, or use it as backend. Evolution is Gnome's default PIM data storage center. Unfortunately, for binary distro, that mean that evolution library must be present, or some of such applications will crash. Everything depending on everything is one of the main flaws of binary package distro, like Ubuntu, when compared to source-based, like Gentoo. In Gentoo the problem is addresed differently.
Don't try to delete it anyways, cause if it works now, it may be will not after some updates. Are you really so confined in space? Just delete it from menu and forget. By the way, default clock widget in right corner used to depend on evolution too.


The program make does the making of the kernel module, make install is actually not required here as the follow on step in the answer succeeds in copying the file to the right place with the line:

sudo cp firmware/*  /lib/firmware

The copy (cp) is the installation, make doesn't have a configuration file telling it how to do it for you, which it normally would.


Should I be worried about these scan results form rkhunter?

there is no need to worry. because rkhunter keeps the database of eveyfile during it's installation and compares the file with it's database for changes...and if the file has changed it gives warning. and i am not sure what group you created or any program during installation created,,,
be sure to look
sudo gedit /var/log/rkhunter.log
and look for the changes
and mostly the script changes in group and passwd files are whitelisted which means if you change the password of the user it shows warning which is false postive


Getting details about a package before installing it?

The fastest way is using a terminal and apt-cache and a little bit trust ;)

apt-cache show mc

Package: mc
Priority: optional
Section: universe/utils
Installed-Size: 1434
Maintainer: Ubuntu Developers <ubuntu-devel-discuss@lists.ubuntu.com>
Original-Maintainer: Debian MC Packaging Group <pkg-mc-devel@lists.alioth.debian.org>
Architecture: amd64
Version: 3:4.8.13-3
Provides: mcedit
Depends: e2fslibs (>= 1.37), libc6 (>= 2.15), libglib2.0-0 (>= 2.35.9), libgpm2 (>= 1.20.4), libslang2 (>= 2.2.4), libssh2-1 (>= 1.2.5), mc-data (= 3:4.8.13-3)
Recommends: mime-support, perl, unzip
Suggests: arj, bzip2, catdvi | texlive-binaries, dbview, djvulibre-bin, file, genisoimage, gv, imagemagick, links | w3m | lynx, odt2txt, poppler-utils, python, python-boto, python-tz, xpdf | pdf-viewer, zip
Filename: pool/universe/m/mc/mc_4.8.13-3_amd64.deb
Size: 464160
MD5sum: 8bb8f947d50bcba2f68d2b66a66963c1
SHA1: c61ad7e5581ee46619069c0435c54be5e1fc34c7
SHA256: 21557289003bd195ff5a0212a00365067c5d15f0f9767556512c09da96a012d5
Description-en: Midnight Commander - a powerful file manager
 GNU Midnight Commander is a text-mode full-screen file manager. It
 uses a two panel interface and a subshell for command execution. It
 includes an internal editor with syntax highlighting and an internal
 viewer with support for binary files. Also included is Virtual
 Filesystem (VFS), that allows files on remote systems (e.g. FTP, SSH
 servers) and files inside archives to be manipulated like real files.
Description-md5: 252a5c5aeeb7425db45357d4ab8aa55f
Homepage: http://www.midnight-commander.org
Bugs: https://bugs.launchpad.net/ubuntu/+filebug
Origin: Ubuntu

an other possibility is aptitude, but usually you have to install them first:

sudo apt-get install aptitude

And show the package information with aptitude show aptitude

Package: aptitude
State: installed
Automatically installed: no
Multi-Arch: foreign
Version: 0.6.11-1ubuntu3
Priority: optional
Section: admin
Maintainer: Ubuntu Developers <ubuntu-devel-discuss@lists.ubuntu.com>
Architecture: amd64
Uncompressed Size: 4.990 k
Depends: aptitude-common (= 0.6.11-1ubuntu3), libapt-pkg4.12 (>= 0.9.16), libboost-iostreams1.55.0, libc6 (>= 2.14), libcwidget3, libgcc1 (>= 1:4.1.1), libncursesw5 (>= 5.6+20070908), libsigc++-2.0-0c2a (>= 2.2.0), libsqlite3-0 (>=
         3.6.5), libstdc++6 (>= 4.9), libtinfo5, libxapian22
Recommends: aptitude-doc-en | aptitude-doc, sensible-utils, libparse-debianchangelog-perl
Suggests: tasksel, debtags, apt-xapian-index
Conflicts: aptitude
Provides: aptitude
Provided by: aptitude
Description: terminal-based package manager
 aptitude is a package manager with a number of useful features, including: a mutt-like syntax for matching packages in a flexible manner, dselect-like persistence of user actions, the ability to retrieve and display the Debian
 changelog of most packages, and a command-line mode similar to that of apt-get.

 aptitude is also Y2K-compliant, non-fattening, naturally cleansing, and housebroken.
Homepage: http://aptitude.alioth.debian.org/


Will laptop Dell Inspiron 15 7000 gaming 7567 work with Ubuntu?

Looking at the specs, you shouldn't have any problem.

  Dell Inspiron 15 7000 Series Gaming Edition 7567 15.6-Inch Full HD
  Screen Laptop - Intel Core i5-7300HQ, 1 TB Hybrid HDD, 8GB DDR4
  Memory, NVIDIA GTX 1050 4GB Graphics, Windows 10

This specs is very similar to my Yoga 720 with GTX 1050 except that the Yoga has NVMe store and this one has a hybrid drive. I have no issue running Ubuntu 16.04 and 18.04 on mine.

If you plan to do dual boot with UEFI installation, make sure the drive is configured as AHCI, then in Windows shink the drive to allow space for Ubuntu installation. You can then use both the Linux grub2 and windows EFI boot manager to boot both OSes.


Cannot open /var/log/sysstat/sa20: No such file or directory

Open /etc/default/sysstat using your favorite file editor and change ENABLED="false" to ENABLED="true"

vi /etc/default/sysstat
----
# Should sadc collect system activity informations? Valid values
# are "true" and "false". Please do not put other values, they
# will be overwritten by debconf!
ENABLED="true"
----

Restart sysstat: sudo service sysstat restart

and now here you are!


Pressing capslock will launch thunderbird

Try making a new plain text file called .Xmodmap and put it in your home directory (don't forget the leading dot). In it, paste this:

  keycode 163 = Caps_Lock

Save and close the file, then enter this in a terminal:

xmodmap ~/.Xmodmap

The first code should remap the Caps Lock key to the correct operation, the second should enable it so you see the desired change immediately.

Note that the .Xmodmap file you create at the beginning has to be at the root of your Home directory, and it will be a hidden file. Press Ctrl + H to see hidden files if you lose track of where it went.

If it works correctly now you are all done, you can close any open text files or terminal windows. The next time you boot up Ubuntu should see your custom .Xmodmap file and default to using it automatically. If something didn't work, please edit your question so I (or someone else) can give you some more help.


BCM4352 Wireless network card issues with lubuntu 14.04 LTS

There is a dell laptop that has drivers for this card. Link to thread here.

What I did:

1) First download and extract the .tar.gz file from here.

2) Then in debs/main/ folder install (double click in GUI or use dpkg -i in cmd) linux-headers-3.5.0-30.51~precise1_all.deb (the 12.1MB one).

3) Next go back to the debs/ folder and install the bt-dw1550-firware_0.1_all.deb

4) Install bcmwl kernel source by: sudo aptitude install bcmwl-kernel-source

5) Finally restart and WiFi should be working like normal

Not managed to get the integrated bluetooth to work only just this second got WiFi to work and came across this thread as I was searching for help. If anyone finds a way to get bluetooth to work please do tell! :)


Unable to boot from hard drive after installing Ubuntu

Well that sounds bad but you would need to do three things to make sure.

With the LiveCD run the Memtest option in the main LiveCD boot menu. This app will test to make sure your memory is OK. More information about it in Can I use Ubuntu to diagnose hard drive or RAM problems in Windows?
Next, if you can boot to the LiveCD Desktop (Run Ubuntu without installing it). You can run the Disk utility to check the SMART of the hard drive.
If the 2 options above are OK we then download from another PC another ISO image and burn it in another CD/DVD with write check. With this new burned CD/DVD we will install Ubuntu from scratch again.

This are the 3 cases where I got the dreaded Fixing recursive fault but reboot is needed error. The first time I got this, I tried to install Ubuntu 3 o 4 more times before giving up. Most of the time is a faulty burned CD image. Followed by bad memory. Lastly a faulty HDD.


First you should use a live system to partition the disk with Gparted (it is included in Ubuntu live) and create a NTFS partition.
Remember to reserve the first partition to Windows (some versions of it don't recognize NTFS partitions if there's something else before them).

Then you should install Windows in that partition and, in the end, you have to recover GRUB, as described here: https://help.ubuntu.com/community/RecoveringUbuntuAfterInstallingWindows


After upgrading to 19.04, what should i do with all PPA's that has been disabled for some reason?

Personal Package Archives (PPA) are used to install packages which are not in official repositories of Ubuntu or they contain an old version of the package. So, using a PPA solely depends on the needs of a user, like which packages he need.

Since Disco released a while ago, so all PPAs are not ready. You need to verify by going to PPA's page and check if they have ported packages for Disco as well (looks like  a tedious task). If you use other distributions' PPA, it might create inconsistency, dependency problems or even break your system.

In the screenshot you attached in the question, most PPAs are for Source Code. If want Source Code, you can enable them. I'll say it is safe to enable repositories you need that mentions "Disco".

PPA basically contains three parts: URI, distribution and component. In most of the cases URI and components remain same but distribution changes. If you want to modify all 3rd party PPAs in one go for Disco, run:

sudo sed 's/cosmic/disco/g' /etc/apt/sources.list.d/*.list

After that you can enable all repositories (if you need them). If you get some errors like "Release file not found", it means PPA isn't ready for Disco yet. So, it's better to let it be disabled.

Additional Info: It seems you are using webupd8team's PPA for Oracle's JDK. But this PPA has been discontinued as of April 16, 2019 (reference). So it's better to delete it.


Why are there Mac installation CDs for Ubuntu, but not Xubuntu?

Although Xubuntu is an official flavor of Ubuntu, it is community-supported rather than managed directly by Canonical.

Projects such as Xubuntu are independent community-based projects and do not necessarily follow everything that Canonical does with the mainline release.

The simple reason for not creating images for Macs is that it is not part of the project's goals, plus they are unlikely to have the resources or volunteers needed to create such images.

This is not the only area where the community-supported flavors differ the Unity release. For example, Xubuntu 14.04 is an LTS release, but it will be supported for only 3 years rather than 5 years. Similarly, in Lubuntu 12.04 is not an LTS release at all.


My computer boots into black screen after hard shutdown

Boot from a live usb

Go to terminal and type

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

Now try normal login. Hopefully everything will work fine now.


Use 'aqemu', can be found in Ubuntu Repositories. It saves kvm configs to /home/${user}/.aqemu/


How can I use inches instead of centimetres for page size in Libreoffice?

In LibreOffice Writer select Tools -> Options -> LibreOffice Writer -> General and change the Measurement unit to Inch. The navigation to change the Measurement unit is similar in LibreOffice Calc and LibreOffice Impress, etc.

Save the open document to make the change in the Measurement unit permanent.

When you select File -> Print -> Options tab it looks like this.


Intel 8265/67 Wifi card not working after fresh lubuntu/xubuntu installation,

The issue is probably that your Wi-Fi driver is not in the version of the Linux kernel you are on.
Try installing the latest updates (of course, you will need to use a Wi-Fi card that works on your Linux kernel version, or connect to your router via Ethernet, to do this).
If that doesn't work, try updating to a mainline (not officially provided by your distro yet) Linux kernel (again, you will need to use a Wi-Fi card that works on your Linux kernel version, or connect to your router via Ethernet, to do this). I made a YouTube video that shows you the easiest way to do this. Click here to watch.
If that still doesn't solve your problem, you can either look for a Linux driver for your Wi-Fi card, or simply wait for a Linux kernel version that supports your Wi-Fi card. In the latter case, you will probably want to use a Wi-Fi card that is supported by Linux, or connect to your router via Ethernet, while you're waiting.


Mate, dual screen, Windows list not displaying second screen apps

It is not a perfect solution, but I found this on another forum and it works for me.  Create a new panel on the 2nd screen (Right click the panel and select New Panel then uncheck the expand box.  You can then drag the panel to the 2nd monitor.)  and another Windows List to the new panel and it will display the windows on the screen.


xhr requests hang on wikipedia and quore

The solution turned out to be setting for the MTU which specifies the amount of data in internet packet. By default ubuntu uses a setting of 1500 for Eathernet packets. My router had a setting of 1492 for PPP and I needed to set the MTU to 1484 allowing some space bytes added by the various layers.

Some links which helped

http://www.microhowto.info/howto/change_the_mtu_of_a_network_interface.html

http://www.cyberciti.biz/faq/centos-rhel-redhat-fedora-debian-linux-mtu-size/


Remap a single key press while keeping default shortcut

The workaround is to install the package xcape and configure the keys as required.
sudo apt install xcape

Description: Configure modifier keys to act as other keys when pressed
and released xcape allows you to use a modifier key as another key
when pressed and released on its own. Note that it is slightly slower
than pressing the original key, because the pressed event does not
occur until the key is released. The default behaviour is to generate
the Escape key when Left Control is pressed and released on its own.

once xcape is installed run the below command to make Left Alt work as Left Super
xcape -e 'Alt_L=Super_L'
then test it, If yes.. add the command to startup application preferences..
xcape is bit laggy or in good words it requires milliseconds time to work..
so when you press and release Alt_L key, it acts as Super_L and when you Press Alt_L and dont release, Alt+Tab or Alt+` or any combo with Alt_L will work..
read manual page
man xcape


Windows wont boot after installing Ubuntu on 2nd harddrive

Ubuntu had installed the bootloader on the same SSD as Windows 10 for some reason, even though Ubuntu was installed on a separate disk. Installing a clean installation of Ubuntu in Legacy mode while Windows 10 was installed in UEFI mode solved the problem.


How to install specific chromium version in ubuntu 16.04

https://chromium.googlesource.com/chromium/src/+/master/docs/linux/build_instructions.md provides the procedure.
Install depot_tools by cloning the depot_tools repository:
git clone https://chromium.googlesource.com/chromium/tools/depot_tools.git

Add depot_tools to the end of your PATH (you will probably want to put this in your ~/.bashrc or ~/.zshrc). Assuming you cloned depot_tools to /path/to/depot_tools:
export PATH="$PATH:/path/to/depot_tools"
When cloning depot_tools to your home directory do not use ~ on PATH, otherwise gclient runhooks will fail to run. Rather, you should use either $HOME or the absolute path:
export PATH="$PATH:${HOME}/depot_tools"

Get the code for 72.0.3626.121 with
mkdir ~/chromium && cd ~/chromium && fetch --nohooks --no-history chromium

install additional build dependencies with
./build/install-build-deps.sh

run the hooks with
gclient runhooks

set up the build with
gn gen out/Default

paying attention to modifications for faster builds if you wish, then build Chromium with
autoninja -C out/Default chrome


All files and folders becomes "Read only"

When system, detects a Hard Disk error, it automatically get into 'read only' mode to protect its files. So first of all try to check your disk and fix any bad sectors, then check the conditions of your disk (e.g SMART), to see if you need to replace it.

Check this resource, it may be helpful

Check your hard disk for problems


Bootable USB drive not working, unable to access BIOS, HP Envy h8-1413c

Although not a full answer, a solution I have is to simply use a burned DVD copy instead of trying to use a USB if you are just trying to perform a LiveCD boot or Install. This method will not work if you want to run Ubuntu from USB to "carry it with you" as I do.

Using a DVD I was able to boot into and install Ubuntu on my computer with no issues, however I still don't have a true fix for the USB problem, this is no longer a concern for me and I appreciate all the help thus far.

To burn the .ISO to a DVD in Windows 8.1, all you have to do is right-click and burn.


Help with installing Cheese from package (12.04 LTS)

Well, the latest package INSTALL file indicates that you simply need to `./configure; make; make install' to get it working. Here's a step by step how to install it:

Download the package
Unpack it
In the unpacked destination with terminal execute:

./configure

then

make

then

make install

this should install cheese :)


If command to look at specific lines and value in files

Those are some a pretty hardcore requirements!
If you can cope with just matching anything bigger than 0.09, this should work:

find -name '*QC.fastq.log' -exec sh -c 'sed -n 3p {} && grep -q \(0.0 || echo "DO SOMETHING"' \;

For any file that matches the glob
Get the third line with sed
If that DOESN'T (||) match (0.0 (that will only ever be under 0.1),
Run the command.


How can I remove the top panel in Unity?

Not a complete answer, but you'll need to disable Global Menu first :

sudo -s
echo "export UBUNTU_MENUPROXY=" > /etc/X11/Xsession.d/81ubuntumenuproxy

Then restart your computer.  If you want the Global Menus restored, simply remove that file (sudo rm /etc/X11/Xsession.d/81ubuntumenuproxy).

After that, if you can delete the top panel somehow, at least you'll keep most of your functionality.  You'll need some kind of replacement for some of the indicators, like network-manager and the session menu.


From man dd, with many more options avalable:

bs=BYTES
         read and write up to BYTES bytes at a time

You'd usually use Mega Bytes, for example bs=4M or bs=4096.
&& sync is there to flush buffers after dd is finished.


Trying to install no-ip, but getting error

The only issue I see, unless I'm blatantly missing something, is that you're running with the wrong permissions. Instead, try:

sudo apt-get install build-essential
sudo checkinstall
cd /usr/local/src/
sudo wget http://www.no-ip.com/client/linux/noip-duc-linux.tar.gz
tar xf noip-duc-linux.tar.gz
dir
cd  noip-2.1.9-1/
sudo checkinstall

Running with root permissions should at least narrow down the issue, get you on the right track. I checked the info listing for checkinstall, it recommends that in most cases, you use it with root privileges.


Does Ubuntu automatically release memory allocated by a C program as the program terminates?

Yes.

The kernel will release all the resources allocated by a program upon the program's termination.

This is done after the do_exit() function defined in kernel/exit.c has terminated its execution; the do_exit() function execution itself might be triggered by a number of events, most commonly by an explicit exit() syscall called by the program during its regular computation or by an implicit exit() syscall called by the program upon its termination (as the C compiler places an exit() syscall after main()'s return). Other reasons include the reception of an unhandable / not ignorable signal or exception.

The do_exit() function itself performs a number of tasks. After it has terminated its execution, the program's allocated resources are released by the kernel and returned to the system for further uses.

Source


How can I make Yakuake/Guake to show the right margin vertical line?

The best way to do what I asked is by using a transparent image in the background, which shows only a vertical line at the very point where I wish to have the "marker", as shown in this screenshot:

Please note that I am using a transparent image on a semi-transparent black background Guake terminal, that's why we can also see the desktop's background image.

The background image is this:

And as you can see, there's nothing but the vertical line, which -when placed properly in the background- will give the optical illusion of having such a right margin "marker" thus solving my problem.

Of course you will have to do two or three attempts in order to properly point the vertical line in your desired place, whose task can be achieved by using your favorite image editor, The GIMP is a great choice.

Now I reproduce here the steps I did in order to get this background image.

Steps:

First of all, we need to fill our terminal with characters, in order
to be able to count to the place we wish to mark. Have in
consideration that, based on your font name and font size, the
results will vary.
Now let's take a screenshot of our whole desktop, in which we have
-of course- our terminal as we are used to work with. I always have it fullscreen so that's not a problem for me.
Then we'll open the screenshot in GIMP (or your favorite images
editor) and create the vertical line on a new empty layer, at the
very point we need it. After which we'll remove the background and
save it as a transparent png image file.
We'll follow our terminal's settings instructions in order to place
the transparent image in the background, after which we'll see the
results as shown before.

That's it. Now we have a right margin marker which will allow us to see how far our text results are going from within the terminal itself.

If somebody has a better approach to do this. Please let us know! Thank you very much and...

Good luck!


Solution for me (running Xubuntu 14.04) was to provide a .service file in/usr/share/dbus-1/services.

First I deleted all the example files and scripts, and created a new file. (This was on a fresh install of AutoKey.)
Then I created an empty file org.autokey.Service under /usr/share/dbus-1/services
In the org.autokey.Service file I put the following text:

[D-BUS Service]
Name=org.autokey.Service
Exec=/usr/bin/autokey</code>

Then I killed AutoKey via the taskmanager (AK already hang), and restarted AutoKey
Tested it, and it works. No more blank lines. Text gets replaced like it should.

(I did not test the script functionality of AutoKey)


Ubuntu can see network work group but can't see Ubuntu from windows

My Windows 10 machine could not see my Ubuntu box until I disabled the Ubuntu firewall (sudo ufw disable).  Then, in the Windows 10 search box, I entered \\ubuntu-machine-name and that worked.  (Before accessing the Internet on your Ubuntu box, enable the Ubuntu firewall (sudo ufw enable)).


Where are Adwaita, HighContrast and HighContrastInverse GTK themes located in Ubuntu 18.04

GTK+ includes the Adwaita and HighContrast themes

From https://wiki.gnome.org/HowDoI/CustomStyle and https://gitlab.gnome.org/GNOME/gtk/tree/master/gtk/theme

Basically, Adwaita and the High Contrast theme are now part of GTK+ (the GIMP Toolkit) and no longer provided as separate themes as Ambiance or Radiance are.

In a comment to this answer ,there is a mention of gnome-themes-extra with a link to https://packages.ubuntu.com/bionic/amd64/gnome-themes-extra/filelist

The referenced package list has:

/usr/lib/x86_64-linux-gnu/gtk-2.0/2.10.0/engines/libadwaita.so
/usr/share/doc/gnome-themes-extra/NEWS.gz
/usr/share/doc/gnome-themes-extra/README.md
/usr/share/doc/gnome-themes-extra/changelog.Debian.gz
/usr/share/doc/gnome-themes-extra/copyright

In other words, this package does provide Adwaita, but only for gtk2 applications.

apt show gnome-themes-extra has:

Description: Adwaita GTK+ 2 theme — engine
 This is the version of Adwaita, the standard GNOME theme, for the
 GTK+ 2.x toolkit.
 .
 The GTK+ 3.x version is already included in libgtk-3-0.
 .
 This package contains the Adwaita theme engine.

In short,there's no way to remove Adwaita or High Contrast themes without removing libgtk-3-0 itself which will take out a host of applications depending on libgtk-3-0.

You can simulate what will happen by using -s for ensuring a simulation. Because it's a simulation, there's no need for sudo:

apt purge -s libgtk-3-0

The exact output will depend on what you have on your system.


Sounds like you may have downloaded the server version instead of the desktop.  Check the file name and make sure it has desktop in the name, something like this - ubuntu-14.04.1-desktop.iso.


Why is my desktop suddenly using my home folder?

$XDG_CONFIG_HOME/user-dirs.dirs was determining that my desktop should be $HOME instead of $HOME/Desktop.

The rest of my folders were also set to $HOME, which is why they were gone, which I didn't even realize until now.

Not sure how it happened, but changing these values back fixed the problem.


ubuntu-make didn't install in specified location

I think I figured it out. Apparently umake currently doesn't recognise quotes in input directories. I found android studio in my home folder in a directory named quote (~\'\...) LOL XD

...so till things get fixed let's not enter directories withen quotes. *reports to launchpad* XD


Ubuntu Server 18.04 and OpenSSH 8.2 - when?

There is good change that next LTS Ubuntu will get openssh 8.2 by default. Debian has it in the next main release the SID unstable route and therefore it's included the proposed channel if you install 20.04 LTS in your computer.


How to use 'Update file and folder names' in Banshee

It removes empty folder but pay attention: if the folder contains non-music files (like .m3u, .txt, subfolders with various stuffs, etc...) these file are not moved and the folder is not deleted.

So the first time you put a folder in music library you may have some ghost folders.


No OpenVPN configuration files were found in /etc/openvpn

The above output means there is no server.conf or client.conf in /etc/openvpn directory.
You have to manually copy config file and edit it.
ex:

sudo cp /usr/share/doc/openvpn/examples/sample-config-files/server.conf.gz /etc/openvpn/

check here
https://help.ubuntu.com/11.10/serverguide/openvpn.html


I have that Windows feature with my Satellite too. My Dell has a little applet for Windows called QuickSet. Neither manufacturer made anything similar for Linux that I know of.

If you are interested you can press Ctrl+Alt+T to open a Terminal window. Then type:

acpi_listen

Now use your Fn+F3 to turn brightness up and then Fn+F2 to turn brightness down. The terminal will look similar to this:

XXXX@dell:~$ acpi_listen
video/brightnessup BRTUP 00000086 00000000
 PNP0C14:00 000000d0 00000000
video/brightnessdown BRTDN 00000087 00000000
 PNP0C14:00 000000d0 00000000

By listening to these events you can trigger actions that run scripts can pop a window up on your screen or many other things. For example, I developed event -> action scripts for lid-close (to go to sleep) and lid-open (to change sound back to TV when waking up).

So to answer your question no mfg solution in Linux that I know of but, quite easy to write your nifty things in Ubuntu / Linux if you spend a little time. If you don't mind a touch of bias doing the same in Windows would be a lot more difficult.

Now that you made it this far press Ctrl+C to end the acpi_listen program and then type exit to close the Terminal.


Boot into gparted live usb (https://gparted.org/liveusb.php) or insert Ubuntu iso usb that has gparted installed.

Using gparted, ensure the 22GB partition and the 512MB are unmounted - (appears these are the ones you want deleted). Select 22 GB partition and select delete. Repeat this action for the 512 MB partition.

Select the apply button in the top pane of gparted. Gparted will prompt you that operations are complete.

Reboot your device. Using Disk Management tool, extend the partitions to create one large partition. If by chance DM won't extend the partition, use gparted in a live session again to extend the partition.

Have fun


hosts file will work well and there is no need to build a DNS server only for that in my opinion.

Another way you could consider is making an alias for the webserver virtualhost using an internal name (hostname, hostname.local or hostname.internal.domain, depending on how is your LAN configured) that can be resolved locally without DNS server. This way local machines will be able to access it directly, without using the external IP / router path.

Comments after clarification in original question:

If you want to use the same URL on both networks (3G and wifi), using an internal name different of the external one is ruled out as it will be a different URL.

What you may be able to do is to change the hosts file based on the connection you use: One hosts file for wifi (converting the URL to internal IP of the server) and one for 3G (converting to external IP). You can do this with automatic scripts on a computer (running Linux at least) but I have no idea on a smartphone.

When you use some.webadress.com:40080 with the wifi connection, your router doesn't route internal traffic using external addresses. This is one of the purpose of a LAN, to be isolated from public network.

I suppose you made the forward in iptables using the input interface and not the destination IP as it is probably dynamic but if you have a fixed public IP, if you use the destination IP + port (your public IP) instead of the input interface + port for the rule, it should work the way you want I think. Anyways, you can try it temporarily using the IP you have at the moment of the test.
If your IP is dynamic, you have to use the interface as input for the iptables forwarding rule so you may try to forward to the internal IP of the webserver when it comes on the internal interface too instead of only the external one.
Another option you could try is using the port and source 0.0.0.0/0.0.0.0 to forward using iptables.


Unable to install Ubuntu (and other Linux distro)

The problem might be with your GPU. By default, Nouveau drivers are installed for Nvidia GPUs and they might cause problems completing boot even during installation.

Switch on and enter GRUB (the bootloader).

select the option "try Ubuntu" but do not click or press enter.
Press e to edit the entry.
Come to the line that includes quiet splash, delete it and write
nomodeset

Then press Ctrl+x to boot.

If it works you need to do it once again
    after you install Ubuntu. (After doing that you can choose proprietary
    Nvidia driver and get rid of this problem.)


Such device names are not persistent, udev makes no guarantees that they will be the same. The Arch Wiki says:

  Because udev loads all modules asynchronously, they are initialized in a different order. This can result in devices randomly switching names. A udev rule can be added to use static device names.

You should use labels or UUIDs instead.

First, get the UUID:

sudo blkid -o export /path/to/device | grep UUID

Then use:

UUID=... /path/to/mount/point type ...

For example:

$ sudo blkid -o export /dev/sda3 | grep UUID
UUID=d3504dc2-8f01-48f1-be05-d265110e2e73

And the corresponding entry would be:

UUID=d3504dc2-8f01-48f1-be05-d265110e2e73 /   ext4    errors=remount-ro 0       1


I had exactly the same problem this morning. It seems to be a problem with the new Subiquity installer. I have downloaded the alternative installer disc (http://cdimage.ubuntu.com/releases/18.04/release/) which uses the old installer and this has installed 18.04 Server without a problem


Update

Since some days there is a Wily repository

wget http://download.opensuse.org/repositories/home:Horst3180/xUbuntu_15.10/Release.key
sudo apt-key add - < Release.key

sudo sh -c "echo 'deb http://download.opensuse.org/repositories/home:/Horst3180/xUbuntu_15.10/ /' >> /etc/apt/sources.list.d/arc-theme.list"
sudo apt-get update
sudo apt-get install arc-theme

Funny question, but ... okay ...

wget http://download.opensuse.org/repositories/home:Horst3180/xUbuntu_15.04/Release.key
sudo apt-key add - < Release.key

sudo sh -c "echo 'deb http://download.opensuse.org/repositories/home:/Horst3180/xUbuntu_15.04/ /' >> /etc/apt/sources.list.d/arc-theme.list"
sudo apt-get update
sudo apt-get install arc-theme

And no, there is no Wily repository.

The requirements:

Gnome/GTK 3.14, 3.16 or 3.18
The gnome-themes-standard package
The murrine engine

For more details read the README.md.


Open HP Device Manager > Setup, then choose Network/Ethernet/Wireless network. Then, click Advanced Options.

Choose Manual Discovery and type the IP Address.
After that, click Next.

Then, your computer should detect the HP Printer.


unable to locate any package while installing from terminal

After a fresh install, you always need to perform a sudo apt-get update to update your packages list using the /etc/apt/sources.list and /etc/apt/sources.list.d/* files.

This updates the package list and helps apt know from where each package mention in sudo apt-get install <package_name> should be fetched.

So before you do a sudo apt-get install <package_name> on fresh default installation(default in the sense it is not a remastered installation- which may or may not necessarily require an update), you need to do a sudo apt-get update.


ssh: connect to host myremotehost.com port 22: Connection refused

Just to share.
(might be with different configuration)

In my case, I found that that error can happen because I have not install openssh-server in the other machine.

After I install openssh-server in the other machine, the problem:

ssh: connect to host 192.168.XXX.XXX port 22: Connection refused

is solved.


INSTALLING UBUNTU 12.04 fro already downloaded file (installing with pendrive)

You can download ubootnetin and turn a USB drive into a bootable install media.  Then, go into your BIOS settings and set it to boot from USB,  With the USB plugged in, boot the system and install.  I do not know if you have used Linux before, but once you install Ubuntu, you will be using the Grub bootloader to boot into Windows.  Keep that in mind and save your Ubuntu install media so you can use it as a rescue disk should Windows overwrite the MBR as it is sometimes wont to do.


Dependency problems prevent configuration of linux signed image

The latest Ubuntu base software update seems to have fixed the issue.


This is a known issue
Here is a quick answer to boot into installer or live desktop,
When you see boot: prompt just press tab and you will see some options,
e.g.: install, live-install, memtest, hd ,..etc.
Type the option you want and hit enter then you are good to go.


How do I clean up this partitioning mess?

You installed Ubuntu in legacy/CSM mode in a GPT drive. The "bios_grub" partition is then necessary to boot. Nothing wrong there and if you delete it your Ubuntu won't boot.


Keyboard shortcut on Mint Cinnamon 19: CTRL + SHIFT + pgup/pgdown.


I want to change my administrator password but am receiving an error"manipulation token authentication error"

In recent versions of Ubuntu, the filesystem is mounted as read-only, so you need to enter the follow command to get it to remount as read-write, which will allow you to make changes :

mount -o rw,remount /

Not doing this will cause that error.


Open a terminal, and to give the executive flag, do this :

chmod +x a.sh

where a.sh is the file that you want to be executable.

To change read, or write permission, do this:

chmod -r a.sh # make it non-readable
chmod +r a.sh # make it readable
chmod -w a.sh # make it non-writeable
chmod +w a.sh # make it writeable

As every file belongs to a user and belongs to a group, you can be specific to user, group or everybody prefixing the permission option with the letters u, g and o respectively. So you could:

chmod g+w a.sh # make it writeable by the group a.sh belongs
chmod o-w a.sh # make it non-writeable by others than the user and the group a.sh belongs
chmod g+w,o-w a.sh # The same as the two lines before, but in one line

For more options, check man chmod


Disable auto-opening nautilus window after auto-mount

The simplest option is to open a terminal with Ctrl+Alt+T, and type:

gsettings set org.gnome.desktop.media-handling automount-open false


You need to use Google Chrome, which I assume you did not try. You may have tried the open-source browser Chromium, but that doesn't have flash etc. that Google Chrome has, which is needed for CNN Go. You can install Google Chrome using these excellent instructionsn:

How to install Google Chrome


When a Bluetooth audio device auto-connects volume settings won't work until I manually select it

You could add load-module module-switch-on-connect to your file /etc/pulse/default.pa

On my Ubuntu 12.04 system, I added this line before the lines that set the volume restore:

load-module module-switch-on-connect

### Automatically restore the volume of streams and devices
load-module module-device-restore
load-module module-stream-restore
load-module module-card-restore

When this takes effect, (pulseaudio -k to restart), I can connect to a bluetooth audio sink, and the audio stream switches to the right output and the volume keys directly trigger on the bluetooth sink.


Is there a way to make Lubuntu 18.10 look like Lubuntu 18.04?

Since Lubuntu changes its desktop from LXDE to LXQt there have been changes in icons of the panel and PCmanFM, the file manager. I am not an experienced user but I am wondering why a change in technology also has to come with changes in the look and feel of the desktop environment.

It's because it was a complete rewrite of the desktop. It wasn't just a single underlying technology change; the whole release should be considered a new feature.

The Lubuntu theme, Box, was starting to bitrot. There's no way currently to get that theme back, because not only would it require reworking for LXQt, it needs maintenance.

Sorry; if you enjoyed the old Lubuntu, it's still supported for the next 2.5 years.


Cairo dock, white border lines on all icons

Completely remove Cairo dock, just press Ctrl+Alt+T on your keyboard to open Terminal. When it opens, run the command(s) below:

  sudo apt-get purge cairo-dock cairo-dock-plug-ins && sudo apt-get autoremove

And to install:

   sudo add-apt-repository ppa:cairo-dock-team/ppa
   sudo apt-get update
   sudo apt-get install cairo-dock cairo-dock-plug-ins


Touchpad causes huge amount of interrupts and high power usage

I'm encountering the same issue on my laptop for a few years. I noticed it because the CPU was draining the battery/triggering the fan when idle.
The workaround I have used until now was to enter in sleep mode (s3) a few seconds and after the resume, the problem was gone. I was doing that after every reboot but this fix doesn't work anymore.
Initially, I thought that was a problem with the Intel P-State scheduler until I found your question here.
The new workaround for me now is to unload the kernel module.
rmmod intel_lpss_pci

suspend to ram, wait a few seconds, resume, reload the kernel module
modprobe intel_lpss_pci

That's getting more and more convoluted, I wish this could be really fixed...


Let me combine comments and some piece of info from Internet and write answer. Matchbox-keyboard configuration is buggy, but it was possible to create a suitable config file only with arrows, some navigation keys and small height. Example of configuration see there. Place it in file

~/.cache/libertine-container/my-container/rootfs/home/phablet/.matchbox/keyboard.xml

Screenshot of usage:

At first we should start app (like Evince or Firfox), where we want to use navigation arrows. After that we should run matchbox-keyboard from terminal as Bjarne described:

DISPLAY=:0.0 libertine-container-manager exec -c "matchbox-keyboard" --id my-container

Right now I don't know how to create single launch file (.desktop) to run the matchbox-keyboard. And only one window with matchbox-keyboard is supported now.


after installing ubuntu 12.10 the desktop does not display correctly

on vmware player
Do "Edit virtual Machine settings"
On "Hardware tab" go to "Display"
Clear "Accelerate 3D graphics"


pendrive in Ubuntu 14.04LTS giving Error message

USB Flash Memory drives do fail, so I would make a complete backup of all your locally created content, then reformat it without the QuickFormat option, and then restore its apps and data. If the flash drive survives that, it's OK for now; if not, you have a copy of your data to save elsewhere.


Why I am getting error when I am trying to use virtualenvwrapper.

I tried to follow the tutorial as well, but it still fails, then had to do it another way:

# pip install virtualenv
# pip install virtualenvwrapper

After doing so, which command worked indicating where the executable is:

which virtualenvwrapper.sh
/usr/local/bin/virtualenvwrapper.sh

As I understand it in a publication, the virtualenv must be installed via sudo without the --user option.


How do I get the Ubuntu Dock off the secondary monitor?

In Ubuntu 20.04 Focal Fossa, there's a simple setting you can configure in Appearance -> Dock -> Show on:


You can remove fwupd to disabe this feature with:
sudo apt remove fwupd


How to get PamUSB working again in Ubuntu 15.10

I have the same problem so I tried to compile from source, which works straight away after you install libxml-2, dbus-1 and pam development files.

However I get an ugly error when I try to add a device:

# pamusb-conf --add-device=pamusb-key

Traceback (most recent call last):
  File "/usr/bin/pamusb-conf", line 254, in
    '/org/freedesktop/UDisks')

File "/usr/lib/python2.7/dist-packages/dbus/bus.py", line 241, in get_object
    follow_name_owner_changes=follow_name_owner_changes)

File "/usr/lib/python2.7/dist-packages/dbus/proxies.py", line 248, in init
    self._named_service = conn.activate_name_owner(bus_name)

File "/usr/lib/python2.7/dist-packages/dbus/bus.py", line 180, in activate_name_owner
    self.start_service_by_name(bus_name)

File "/usr/lib/python2.7/dist-packages/dbus/bus.py", line 278, in start_service_by_name
    'su', (bus_name, flags)))

File "/usr/lib/python2.7/dist-packages/dbus/connection.py", line 651, in call_blocking
    message, timeout)

dbus.exceptions.DBusException: org.freedesktop.DBus.Error.ServiceUnknown: The name org.freedesktop.UDisks was not provided by any .service files

I tried to install some python modules (python-dbus, python-pam, python-udiskie, and so on...) but had no luck, but maybe the error will mean something to you, I hope :)

-
Edit

if you install the following launchpad version:

https://launchpad.net/~garhuy/+archive/ubuntu/pamusb

you can avoid compiling from source; however, the error appears to be the missing udisks-1, which you can download from the vivid repository (probably the whole pamsub will work but I didn't try, I am using the compiled version):

The sources.list line to enable the vivid repo:

deb http://nl.archive.ubuntu.com/ubuntu/ vivid main universe

It works for me, good luck


I deleted my ubuntu partition (win8 dual boot) without first resetting my uefi boot settings. How can I recover my laptop from grub2.02?

The problem is caused by the fact that a part of the GRUB boot loader remains installed on the computer, and is being launched by default. Unfortunately, the way Ubuntu sets up GRUB causes it to rely on files located on the Ubuntu partition, and since you've deleted that partition, those files effectively no longer exist.

There are several possible solutions to this problem:

You may be able to launch your firmware setup utility and use it to delete the Ubuntu entry or re-order the entries so that the Windows entry comes first. Unfortunately, the details of how to enter the firmware setup utility vary from one machine to another. Most use Del or a function key early in the boot process, but details vary. Some make this very hard. Furthermore, the details of how to modify the boot order vary from one to another. Thus, you'll just have to poke around or ask on a manufacturer forum to learn how to do it this way.
There is a way to exit from GRUB, but I don't recall the precise command -- try exit, quit, or synonyms of that. Exiting from GRUB should cause the next boot loader in the NVRAM list to launch. This will probably be the Windows boot loader, so you should be able to get into Windows in this way. This won't solve the problem permanently, but can be a step to a solution.
The firmware's built-in boot manager should be able to bypass GRUB. As with the firmware setup utility, this is accessed by a system-specific keypress -- usually Esc or a function key.
If you can boot to Windows by exiting GRUB or by using the firmware's own boot manager, you can launch an Administrator Command Prompt window (by right-clicking the Command Prompt icon and selecting "Run as Administrator" from the options). Typing bcdedit /set {bootmgr} path \EFI\Microsoft\boot\bootmgfw.efi should then reset the Windows boot loader as the default.
If you can boot Windows, you can try using the third-party EasyUEFI tool to adjust your boot priority list. Move the Windows option to the top of the list.
You can boot a Linux emergency disk (such as an Ubuntu installer) and use efibootmgr to set the default boot loader and/or delete the Ubuntu entry. Type sudo efibootmgr, then use sudo efibootmgr -o ####,####,#### to set the boot order. For instance, if Windows is Boot0003, you'd type sudo efibootmgr -o 0003 (and optionally add others in a comma-delimited list) to set Windows first.
You can boot to any OS, mount the EFI System Partition, and delete GRUB, which resides in EFI/ubuntu -- delete that entire directory, in fact.

In a Linux emergency disk, you'll need to figure out which partition your ESP is by using gdisk, parted, or some other tool. It's usually the first or second partition on the disk, and it always uses the FAT filesystem. In gdisk, it's got a type code of EF00; and in parted, it has its "boot flag" set. Mount it with mount, as in sudo mount /dev/sda1 /mnt.
In Windows, typing mountvol S: /S in an Administrator Command Prompt window should mount the ESP at S: -- but only from within that window, so you'll need to use text-mode commands to delete the directory.


New installation: Win10 / Ubuntu Studio 16.04 dual boot and multiple partitions

actually there are only 4 primary partitions that can be created for any hdd (because of this u have unused space).

Now,take full backup(i know its hard but this will save you alot) then "clean"(windows command) it so that you can create primary partitions where you can dual boot, first windows then ubuntu.

One more thing to notice here is if your machine has two drive then one will be the primary drive and there you should install(/) of ubuntu (i.e. grub boot loader replaces windows) helps you in showing boot menu.


I cant upgrade the Ubuntu distro version from terminal

The apt-get upgrade command doesn't update the Ubuntu distro version. The function of this command is update the installed packages.

You can get more information with the man command using it previous the command that you want to know what do:

$ man apt-get

  ....
  upgrade
    Used to install the newest versions of all packages currently installed on the
    system from the sources enumerated in /etc/apt/sources.list. Packages currently
    installed with new versions available are retrieved and upgraded; under no
    circumstances are currently installed packages removed, nor are packages that
    are not already installed retrieved and installed. New versions of currently
    installed packages that cannot be upgraded without changing the install status
    of another package will be left at their current version. An update must be
    performed first so that apt-get knows that new versions of packages are available.
  ....

To upgrade to a new distribution, you run sudo do-release-upgrade.


Yep.  Sure will. I have to spend thirty characters saying "yes" here.  So, "yes". :)


How do I get my ipod to conect using libmobiledevice

I'm not sure which release you are using, so my answer might not be correct in every detail. In addition, there are already some helpful hints in answers to this question: How to install libimobiledevice?

To sum up all steps needed, especially under releases newer than maverick:

Do the following under your own risk

sudo add-apt-repository ppa:pmcenery/ppa

You shouild then get/got a waring like this:

You are about to add the following PPA to your system:

More info: https://launchpad.net/~pmcenery/+archive/ppa
Press [ENTER] to continue or ctrl-c to cancel adding it

Press enter and then continue with

sudo mv /etc/apt/sources.list.d/pmcenery-ppa-precise.list /etc/apt/sources.list.d/pmcenery-ppa-maverick.list

Now open the file and change all entries from "oneiric" to "maverick":

sudo gedit /etc/apt/sources.list.d/pmcenery-ppa-maverick.list

In the end, this should be in your /etc/apt/sources.list.d/pmcenery-ppa-maverick.list:

deb http://ppa.launchpad.net/pmcenery/ppa/ubuntu maverick main
deb-src http://ppa.launchpad.net/pmcenery/ppa/ubuntu maverick main

You should now be able to install libimobiledevice1:

sudo apt-get update
sudo apt-get install libimobiledevice1


Right click of touchpad is not working in Ubuntu 18.04

Yeah this is the issue in Ubuntu! Right now i too cant able to find the way to make it work but as you have a laptop, try Double finger tap its working fine for me and also comfortable than clicking!


SOLVED

So, after approximately another 4 hours of thinking and searching around the net, I deduced that the issue was due to the driver which I selected to install and I was right.

The Nvidia driver that I had was from Software & Updates>>Additional Drivers ,of course, the newest version.

The reason Steam worked 5 days before my post, was that I don't know how but I installed some outdated driver from a .run file, so I basically just recreated the process using the newest Nvidia drivers from their official website, here's what you have to do if you are having the same problem (don't worry, I'm an Ubuntu casual, it will be very easy to follow, also after the first 2 steps you won't be able to see your desktop, so prepare a paper and a pen, and write down these steps before doing anything):

Uninstall whatever Nvidia driver you have currently installed, then download drivers that were made EXACTLY for your Nvidia card and linux operating (32-bit or 64-bit) system from the official Nvidia website.
P.S. if you want the same exact steps as mine, keep the downloaded .run file in Downloads, also, write down its name on your paper, for example, mine was: NVIDIA-Linux-x86_64-352.63.run
Press CTRL+ALT+F2 (the black screen that appears is what's supposed to happen, don't worry)
Type in your log-in info (The user name in lowercase letters, for example, mine was: benas. Then when asked, type the password)
Write sudo service lightdm stop or sudo stop lightdm whichever seems to be working for you. You'll know that it is working if you get no response from the terminal"
Write sudo init 3
Write sudo -i or sudo su root You'll know that it's working just by looking at the very left of the line, were you are supposed to type the commands, it should say root before your name.
Write cd /home/yourusername(in my case was just: benas)/Downloads (Or it can be any directory where you put the .run file, just navigate to it)
Write sh The-downloaded-file-name-here.run (As mentioned earlier, in my case was: NVIDIA-Linux-x86_64-352.63.run)
Press yes and I accept where nescessary, what I also told the installer to do, was to install the 32 bit libraries when it asked me if I wanted, I don't know if that has any impact but you can do it aswell, just to be safe.
Type reboot when the installer finishes, after this, Steam should load and play games normally.

This all complicating installation method was requiered for me, because I would get the: you appear to be running an x server problem, which this method seemed to solve.

P.S. The only downside of the driver from official Nvidia site is that I'm no longer able to select my Intel HD Graphics card, other than that, everything's fine.


Setting up LVM and deleting partition volume

You don't need lvm for this.  Blow away sda3 and and sda4 to get back to your old setup, and just move sda2 to the right ( unmount sda5 first ), then you can grow sda1 into the unallocated space.


You should be able to activate the NVIDIA Driver in the Additional Drivers Window available when you login as Ubuntu Classic and navigate to System > Administrator > Additional Drivers


cannot disable scroll lock in libreoffice-calc (using a dell xps)

Just for the record, I could solve it uninstalling calc and removing the config folder, like this:
sudo apt purge libreoffice-*

rm -fr ~/.config/libreoffice/

sudo apt install libreoffice-calc

I guess there must be a better solution, but I'll leave it here until a better answer pops up


Why does the font look so weird in terminal?

Open terminal > Edit > Preferences > Font. There should be a custom font box that is unchecked. Check the box that says custom font optional > select a custom font and font size in terminal.

Preferences in terminal:

Custom font enabled:

Text in terminal fixed and is back to normal:


Keyboard shortcuts not working anymore in xfce

This looks like it could be bug #1292290 -
Window manager keybindings don't work after reboot. A workaround is mentioned there:

  I found a workaround: clear before reassign!

  To make a shortcut to work ok, select an action you want to reassign
  and click 'Clear' button until it will really empty. Sometime if there
  is some (hidden?) duplicates, you will still see some shortcut (the same
  or different), even you clicked 'Clear' button. In this case just
  click the button again. Since the action shortcut is really empty,
  just assign your custom one as usual, and it will work ok :)

and

  Someone on #xubuntu or #ubuntustudio (can't remember) mentioned a
  workaround for this:

  You simply have to delete the current key mapping twice before setting
  a new one. Then the new mapping will be stored in the config.


You can try Synapse:

  Synapse is a semantic launcher written in Vala that you can use to start applications as well as find and access relevant documents and files by making use of the Zeitgeist engine.

Features:

  Applications – searches your desktop files

  Banshee – allows you to play/enqueue music files in Banshee
  Commands – runs any command (ie. “sudo apt-get update”)
  Devhelp – search documentation using Devhelp
  Dictionary – find definitions of words
  Directory search – allows opening of commonly used directories
  Gnome session – log out, shut down, restart
  Hybrid search – complete Zeitgeist results by searching for similar files
  Rhytmbox – play/enqueue music files in Rhythmbox
  UPower – suspend & hibernate your computer
  Zeitgeist – search anything logged by Zeitgeist

With a keyboard shortcut you can launch it and start searching for whatever you want :

See for more info : OMG! UBUNTU!


How to remove directory with all of its contents?

If you don't want to empty the directory first, you can use

rm -r

to recursively remove directories and their content.

Please note also that this is already explained in the documentation.

  rmdir: The rmdir command will delete an empty directory. To delete a directory and all of its contents recursively, use rm -r instead.

Since you are not an expert, I suggest that you read carefully that documentation page before using more the terminal, before you do some damage to your files!


I suggest you reinstall Ubuntu with crouton. You can get an insallation tutorial here: http://lifehacker.com/how-to-install-linux-on-a-chromebook-and-unlock-its-ful-509039343


Installing libraries for arm64 on ubuntu bionic x64

In /etc/apt/sources.list you have to add [arch=amd64] in front of the amd64 sources
(Or your host's system arch if it's something else)
Example:

deb [arch=amd64] http://de2.archive.ubuntu.com/ubuntu/ bionic main restricted
deb-src [arch=amd64] http://de.archive.ubuntu.com/ubuntu/ bionic main restricted


I have started an Ubuntu Touch FAQ in order to have some answers to frequent questions available:

please look here: On which devices does this Developer Preview run?

and here: Can you make it run on my device xyz as well?


I assume the root account is not enabled (as it is by default), so only sudo -i is applicable for a user to become root. My suggestion is the following script that uses the commands who -u and pgrep -at <tty parsed from who -u> to find which user on which tty have executed the command sudo -i.

#!/bin/bash
LANG=C who -u | while read -a line; do  # Output the whole line: echo "${line[@]}"
        IS_ROOT="$(pgrep -at "${line[1]}" | grep 'sudo -i')"
        [[ ! -z "${IS_ROOT}" ]] && printf '%-7s ( PID %-6s at %s on TTY %-7s) is ROOT: %s %s\n' "${line[0]}" "${line[5]}" "${line[4]}" "${line[1]}" "$IS_ROOT"
done | sed '/grep sudo -i/d' | sort -k13 -k6

Explanation:

who -u shows the users logged on with the PIDs of their sessions. Probably LANG=C is not mandatory - it is placed to guarantee identical time/date format on machines with different locale's settings.
The loop while will do the commands while there is stream on the stdin.
The command read -a will read the input stream line by line and will assign these lines as an array to the "variable" $line. We could output the whole line by a command as: echo "${line[@]}". So ${line[1]} means the second variable of the array $line (the first is 0). In the current case ${line[1]} is the TTY from the output of who -u.
Here is a simple script that will output a "table" with the relations betwen the array elements and their values:

line=( $(LANG=C who -u | head -1) ); for i in {0..6}; do printf '%-11s' "${line[$i]}"; done; echo; for i in {0..6}; do printf '${line[%s]} ' "$i"; done; echo

guest      tty7       2018-01-03 09:52      old        1847       (:0)
${line[0]} ${line[1]} ${line[2]} ${line[3]} ${line[4]} ${line[5]} ${line[6]}

The output of the command pgrep -at "${line[1]}" | grep 'sudo -i' will be signed as value $() to the variable $IS_ROOT.
The command pgrep -at "TTY" will output the PIDs of all processes on certain TTY - option -t --terminal, and the option -a --list-name will list the PIDs and processes names.
The expression [[ ! -z "${IS_ROOT}" ]] && could be read in this way: if [ the variable "${IS_ROOT}" is not ! empty -z then && or else ||.
The printf command is used to format the output (reference):

printf '%s some text %s` "$var1" "$var2"

Finally sed '/grep sudo -i/d' will delete the unattended line (that contains our command grep 'sudo -i') from the output of while and sort -k13 -k6 will sort the output by columns 13 and 6.

Call the script find-root, make it executable (chmod +x find-root) and execute it.

Here is a simple output:

$ ./find-root
spas    ( PID 14035  at 12:54 on TTY pts/20 ) is ROOT: 23518 sudo -i
spas    ( PID 14035  at 12:36 on TTY pts/4  ) is ROOT: 23589 sudo -i
guest   ( PID 23575  at 15:00 on TTY pts/4  ) is ROOT: 23589 sudo -i
guest   ( PID 24321  at 15:30 on TTY tty1   ) is ROOT: 24386 sudo -i

Here is a demonstration (in a mutt session) how the script works (in its previous version):

Place the script in /usr/local/bin to make it available as shell command. To do that, copy and execute the following lines as single command:

cat << EOF | sudo tee /usr/local/bin/find-root && sudo chmod +x /usr/local/bin/find-root
#!/bin/bash
LANG=C who -u | while read -a line; do
        IS_ROOT="\$(pgrep -at "\${line[1]}" | grep 'sudo -i')"
        [[ ! -z "\${IS_ROOT}" ]] && printf '%-7s ( PID %-6s at %s on TTY %-7s) is ROOT: %s %s\n' "\${line[0]}" "\${line[5]}" "\${line[4]}" "\${line[1]}" "\$IS_ROOT"
done | sed '/grep sudo -i/d' | sort -k13 -k6
EOF

Explanation:

The command cat << EOF will output the next lines unless the string EOF is encountered. Note the backslashes \$ that will escape the special character $ and it will be outputted literally within cat.
This output will be piped | to the stdin of the command tee (executed by sudo) that will write the file /usr/local/bin/find-root.
If the previous command is successful && the command suddo chmod +x will be executed.

See also:

How do I get the list of the active login sessions?
How do I list logged-in users without duplicates?
Why is it bad to log in as root?
How to enable root login?


Is there a way to use the "primary toolbar" with QT or Java?

I am not aware of similar support in Qt. You could always manually color it to the same color.


Try to install the development packages required to build qtractor.

Open a Terminal (Ctrl+Alt+t) and type:

sudo apt-get install build-essential libqt4-dev libjack-dev libsndfile1-dev libasound2-dev

On 14.04 I managed to properly configure qtractor, see my logs.


Unmet dependencies means that the package you are trying to install requires a specific package but apt can not find it.

In your case php5-xmlpc needs php5-common ver 5.6.4+dfsg-4ubuntu6.4, but apt wants to install ver 5.6.11+dfsg-1ubuntu3.4

You can use your package manager or aptitude to look at available packages.
Install the version needed and mark it as "hold". Or install a newer version of php xmlpc

you can get 5.6.4 here: https://launchpad.net/ubuntu/vivid/amd64/php5-common/5.6.4+dfsg-4ubuntu6


Completely uninstall and reinstall OpenJDK

You cannot remove OpenJDK 7 because it is not installed. If you are trying to remove OpenJDK 6, try sudo apt-get remove openjdk-6-jdk, or sudo apt-get remove default-jdk.

apt-cache search only shows you available packages, not the packages you have installed. For that, try sudo dpkg --list; sudo dpkg --list | grep -i jdk will show you any JDK-related packages installed on your system.


Long boot delay on Ubuntu loading/splash screen following regular dist-upgrade on clean SSD install (18.04)

This is a kernel related regression, the launchpad bug is: https://bugs.launchpad.net/ubuntu/+bug/1779827

As a workaround, press keys and/or move the mouse at boot.

In a nutshell services that use /dev/urandom or getrandom() now block until enough entropy is available. In the past much less entropy was required for /dev/urandom.

The latest status from https://bugs.launchpad.net/ubuntu/+source/linux/+bug/1779961/comments/5 is that:

  The meta-packages have been rolled back and the fix  is in progress of
  being applied and uploaded.

The snapd team also looked into this and worked with bson upstream to ensure no /dev/unrandom is needed to startup (https://github.com/snapcore/snapd/pull/5464)

So this problem should be fixed via either a kernel or a snapd update soon.


This has been asked before, try the answer to this question: Best tool to recover removed files
Flagging for moderation as duplicate


Can't remove Flatpak software application

You want to remove gnome-software-center, which is the regular deb version of the software center.
sudo apt remove gnome-software-center

To revert to the default software center of Ubuntu 20.04, install snap-store back:
snap install snap-store


oracle 11g enterprise edition installation: cannot execute binary file: Exec format error

Follow this guide for installing Oracle 11g in Ubuntu. Works flawlessly.

1) Download Oracle Database Express Edition

Download Oracle Database Express Edition 11g Release 2 for Linux x64.

2). Follow pre-install instructions:

a) Open terminal in which you downloaded the file and unzip using the command:

unzip oracle-xe-11.2.0-1.0.x86_64.rpm.zip

b) Install required packages using the command:

sudo apt-get install alien libaio1 unixodbc

c) Convert RPM package format to DEB package format (that is used by Ubuntu) using the command:

sudo alien --scripts -d oracle-xe-11.2.0-1.0.x86_64.rpm

d) Create the required chkconfig script using the command:

sudo pico /sbin/chkconfig

The pico text editor is started and the commands are shown at the bottom of the screen. Now copy and paste the following into the file and save:

#!/bin/bash
# Oracle 11gR2 XE installer chkconfig hack for Ubuntu
file=/etc/init.d/oracle-xe
if [[ ! `tail -n1 $file | grep INIT` ]]; then
echo >> $file
echo '### BEGIN INIT INFO' >> $file
echo '# Provides: OracleXE' >> $file
echo '# Required-Start: $remote_fs $syslog' >> $file
echo '# Required-Stop: $remote_fs $syslog' >> $file
echo '# Default-Start: 2 3 4 5' >> $file
echo '# Default-Stop: 0 1 6' >> $file
echo '# Short-Description: Oracle 11g Express Edition' >> $file
echo '### END INIT INFO' >> $file
fi
update-rc.d oracle-xe defaults 80 01

e) Change the permission of the chkconfig file using the command:

sudo mod 755 /sbin/chkconfig

f) Set kernel parameters. Oracle 11gR2 XE requires additional kernel parameters which you need to set using the command:

sudo pico /etc/sysctl.d/60-oracle.conf

Copy the following into the file and save:

# Oracle 11g XE kernel parameters
fs.file-max=6815744
net.ipv4.ip_local_port_range=9000 65000
kernel.sem=250 32000 100 128
kernel.shmmax=536870912

g) Verify the change using the command:

sudo cat /etc/sysctl.d/60-oracle.conf

h) You should see what you entered earlier. Now load the kernel parameters:

sudo service procps start

i) Verify the new parameters are loaded using:

sudo sysctl -q fs.file-max

j) You should see the file-max value that you entered earlier.
Set up /dev/shm mount point for Oracle. Create the following file using the command:

sudo pico /etc/rc2.d/S01shm_load

k) Copy the following into the file and save.

#!/bin/sh
case "$1" in
start) mkdir /var/lock/subsys 2>/dev/null
       touch /var/lock/subsys/listener
       rm /dev/shm 2>/dev/null
       mkdir /dev/shm 2>/dev/null
       mount -t tmpfs shmfs -o size=2048m /dev/shm ;;
*) echo error
   exit 1 ;;
esac

l) Change the permissions of the file using the command:

sudo chmod 755 /etc/rc2.d/S01shm_load

m) Execute the following commands:

sudo ln -s /usr/bin/awk /bin/awk
sudo mkdir /var/lock/subsys
sudo touch /var/lock/subsys/listener

n) Install the oracle DBMS using the command:

sudo dpkg --install oracle-xe_11.2.0-2_amd64.deb

o) Configure Oracle using the command:

sudo /etc/init.d/oracle-xe configure

Enter the following information:
A valid HTTP port for the Oracle Application Express (the default is 8080)
A valid port for the Oracle database listener (the default is 1521)
A password for the SYS and SYSTEM administrative user accounts
Confirm password for SYS and SYSTEM administrative user accounts
Whether you want the database to start automatically when the computer starts (next reboot).

p) Setup environment variables by editing your .bashrc file:

pico ~/.bashrc

Add the following lines to the end of the file:

export ORACLE_HOME=/u01/app/oracle/product/11.2.0/xe
export ORACLE_SID=XE
export NLS_LANG=`$ORACLE_HOME/bin/nls_lang.sh`
export ORACLE_BASE=/u01/app/oracle
export LD_LIBRARY_PATH=$ORACLE_HOME/lib:$LD_LIBRARY_PATH
export PATH=$ORACLE_HOME/bin:$PATH

q) Load the changes by executing your profile:

. ~/.profile

r) Start the Oracle 11gR2 XE:

sudo service oracle-xe start

s) Add user YOURUSERNAME to group dba using the command

sudo usermod -a -G dba YOURUSERNAME

t) Start the Oracle XE 11gR2 server using the command:

sudo service oracle-xe start

u) Start command line shell as the system admin using the command:

sqlplus sys as sysdba

Enter the password that you gave while configuring Oracle earlier. You will now be placed in a SQL environment that only understands SQL commands.

Create a regular user account in Oracle using the SQL command:

create user USERNAME identified by PASSWORD;

Replace USERNAME and PASSWORD with the username and password of your choice. Please remember this username and password. If you had error executing the above with a message about resetlogs, then execute the following SQL command and try again:

alter database open resetlogs

Grant privileges to the user account using the SQL command:

grant connect, resource to USERNAME;

Replace USERNAME and PASSWORD with the username and password of your choice. Please remember this username and password.
Exit the sysadmin shell using the SQL command:
exit;
Start the command line shell as a regular user using the command:

sqlplus

You will be prompted for a username and password. Once authenticated, you will be able to type in the standard SQL commands


Chkrootkit says "Searching for Linux/Ebury - Operation Windigo ssh... Possible Linux/Ebury - Operation Windigo installetd", should I be worried?

The problem you have is that in Wily, the command "ssh -G" doesn't output the "Illegal Operation" string at the top, but it still does show the command help, so I think you are fine. All my Wily installs are reporting the same issue. It's a detection flaw. chkrootkit needs to be updated to change it's suspicion detection mechanism.


Cannot connect to internet in VMWare WorkStation 10.0 - Ubuntu 12.04

If you set a static IP address in /etc/network/interfaces, you are also responsible to set up DNS nameservers. I suggest you try:

# The loopback network interface
auto lo
iface lo inet loopback

# The primary network interface
auto eth0
iface eth0 inet static
address 192.168.171.132
netmask 255.255.255.0
gateway 192.168.171.1
dns-nameservers 8.8.8.8 192.168.171.1

Then get the system to re-read the file and use the changes:

sudo ifdown eth0 && sudo ifup eth0

Check:

ping -c3 www.google.com


Duplicate identical entries in lightdm on 17.10

Same here, after install enlightenment I got it duplicate in lightdm.
The installation put .desktop files in

/usr/share/wayland-sessions

and

/usr/share/xsessions

Since I do not use Wayland, I just move the .desktop files to .backup

cd /usr/share/wayland-sessions/
for f in *.desktop; do  mv -- "$f" "${f%.desktop}.backup"; done

That's my case. If you are using Wayland rename the .desktop files in xsessions.

Check what type of session you are using, after a successful login type:

loginctl

to get the session ID.

To get the Type (x11 or wayland):

loginctl show-session "SESSION-ID" -p Type

eg:

$ loginctl show-session c2 -p Type
Type=x11


you probably forgot to configure phpmyadmin.

Run in terminal

sudo dpkg-reconfigure phpmyadmin

Also you have to follow these steps too

sudo gedit /etc/apache2/apache2.conf

Then add followong line somewhre

Include /etc/phpmyadmin/apache.conf

Then

/etc/init.d/apache2 restart


The purple screen you mention indicates that you've probably booted GRUB 2, but something has gone wrong in loading the kernel or in its early stages of execution. You might be able to find out what's going wrong by changing the boot options to produce a traditional text-mode startup display, but to do that you'll need to get a GRUB menu rather than have it start Linux automatically. IIRC, you can do this by holding the Shift key as GRUB comes up, but I'm a bit foggy on that. This won't solve your problem per se, but it may help you to better diagnose it.

Some other ideas, which are all more shot-in-the-dark type attempts at repair:

You can try using the Ubuntu Boot Repair tool, which can fix some boot problems automatically. Be aware, though, that it takes over the Windows boot loader's slot, which can cause confusion or problems down the road.
You can disable Secure Boot. This might help because Ubuntu's Secure Boot support is so new and appears to still contain bugs. It's conceivable, but far from certain, that your problems are related to Secure Boot, so disabling it might help.
You can try installing rEFInd. I recommend doing this from your legacy/BIOS-mode install of Ubuntu. Using rEFInd will require either disabling Secure Boot or installing another version of shim, which is a bit tedious. Using rEFInd gives you two possible ways to recover:

rEFInd can boot a Linux kernel using its own built-in EFI stub loader, which might work better than the way GRUB launches it. Even if it doesn't, you can press the Insert key when you select the Ubuntu (or Linux penguin) icon to get a submenu of options, one of which produces the verbose text-mode boot messages I described earlier.
If you edit refind.conf, uncomment the scanfor line, and add hdbios to the list of options, rEFInd might give you a BIOS-mode boot option that will enable you to boot Linux in BIOS mode (via a BIOS-mode GRUB) even while Windows boots in EFI mode. This isn't 100% optimal, but it might be good enough.


USB modem does not connect as ethernet on hub

i solved the problem with usb_modeswitch
/etc/usb_modeswitch.d/alcatel.conf;
DefaultVendor=  0x1bbb
DefaultProduct= 0xf000

TargetVendor=   0x1bbb
TargetProduct=  0x0017

MessageContent="55534243123456788000000080000606f50402527000000000000000000000"
#MessageContent="55534243123456780000000000000600000000000000000000000000000000"

after run ;
sudo usb_modeswitch -v 1bbb -p f000 -c /etc/usb_modeswitch.d/alcatel.conf


Installing Windows on Ubuntu only by iso file without burn disc or USB

You can mount an ISO file in Ubuntu by using this command in terminal:

sudo mount -o loop /location/of/iso/image.iso /media/iso

You can then access the files in the ISO like as if they were files in your filesystem.

In order to run .exe files, you need to install wine with:

sudo apt-get install wine

Wine will execute Windows executables within Ubuntu.  But I wouldn't try installing an operating system if that's your intention.

To execute .exe files, you can run wine filename.exe in terminal, or right-click in a file manager and select "Open with Wine", or "Execute with Wine" from the menu.


High cpu usage when scrolling or moving windows Gnome in 18.04

I have an RX580, so I was in the same boat as you. The problem was that Ubuntu had some Nvidia drivers that it was using. When it couldn't find an Nvidia card, it fell back to software rendering. Here is how I solved it:

Select the PPA that you want. (Default Ubuntu, Padoka, Oibaf, ect. I'm currently using the default.)
In the Terminal, type: sudo rm /etc/X11/Xsession.d/50_check_unity_support This will remove the 50_check_unity_support file, just in case. (https://bugs.launchpad.net/ubuntu/+source/nux/+bug/1767468)
Finally, type: sudo apt-get remove libnvidia-gl-390 It should install libegl-mesa0 as well as remove libnvidia-gl-390. If libegl-mesa0 does not install, install it by typing: sudo apt-get install libegl-mesa0
Reboot.

Tell me if this helps!


Configuring Wacom Tablet buttons and options

Here's a short overview of what I used to set up my Wacom tablet in Ubuntu. (cfr. also this blog post of mine on setting up a Wacom tablet in Ubuntu).
1. Device names
xsetwacom --list devices

gives you the names of your devices.
In my case the result is:
Wacom Intuos Pro M Pen stylus    id: 14 type: STYLUS
Wacom Intuos Pro M Pen eraser    id: 15 type: ERASER
Wacom Intuos Pro M Pen cursor    id: 16 type: CURSOR
Wacom Intuos Pro M Pen pad       id: 17 type: PAD
Wacom Intuos Pro M Finger touch  id: 18 type: TOUCH

2. Parameters
xsetwacom --list parameters

gives you a long list of parameters you can use, with a brief explanation of what they mean. The parameter "Button" for instance will be used to assign a key to a button (or "express key" as Wacom calls it).
3. Modifiers
xsetwacom  --list modifiers

gives you the list of modifiers (keys really) you can set the parameters to. The modifier "PgDn" for instance will be used to set a button ("express key") to act as if you press the "PageDown" button on your keyboard.
4. Mapping buttons
With this knowledge, you can construct the following type of commands:
xsetwacom set "Wacom Intuos Pro M Pen pad" Button 2 key "b"

The above example would set "button 2" to the key "b".
You can find the numbers of the buttons as follows.
The mappings for all supported tablets can be found in the /usr/share/libwacom/ directory. There are text files in the main directory that use a *.tablet extension naming convention. The buttons for the Intuos Pro are designated with alphabetical labels where A=Button 1, B=Button 2, etc.
The subdirectory located in /usr/share/libwacom/layouts/ contains vector image files that display a graphical depictions of the tablets and the button assignments. These *.svg files should be opened with Inkscape or another application capable of displaying scalable vector graphics files.
Note that these commands will have to be entered at every new login.
More info on xsetwacom on the linuxwacom wiki.


Ubuntu 14.04 KVM - error: internal error: process exited while connecting to monitor: qemu-system-x86_64:

Turning the computer off and on again (I hadn't rebooted since installing kvm) changed the error message to:

error: internal error: process exited while connecting to monitor: qemu-system-x86_64

When Googling that error, I found this post which recommended adding the following to

user = "root"
group = "root"

to the /etc/libvirt/qemu.conf file. Be sure to include the quotes.

After another reboot, I was able to run virsh create [guest-id].xml successfully.


Cannot eject hdd from files tab even when forced through cmd

Only removable drives connected trough e.g. USB can be "ejected". After ejecting, they are not "seen" anymore by the OS, unless you plug them out then back in again.
This is different from an internal disk, like your disk attached through you card. These remain visible to the system. At most, you can disconnect, i.e., "unmount" the file system such that that is closed and not accessible. It is also normal that an additional internal volume, be it a different partition, or a partition on another drive, that is not announced in the configuration file /etc/fstab, is shown as a drive in the left panel of the file manager. That allows you to connect to it, i.e. mount it, by clicking the icon.


Trouble with Asus N-13 USB wireless adapter

I also had a similar problem on Ubuntu 12.04

I followed the instructions on the link you provided to build a new driver but I could still not get the Asus usb-N13 to work.

I ran lsmod in the terminal and noticed the driver module "rtl8192cu" wasn't loaded. This is the driver for revision b1 of the N13.

I added the module to the startup list using

  sudo gedit /etc/modules

I added the name of the driver module to the end of the list, in this case, rt8192cu, and saved.

After a reboot the module was loaded and all worked well!

Sorry in advance for perhaps not writing the best post, this is my first one ever.  I'm a construction worker, not a linux expert!  I was just so excited to get it working I wanted to share and maybe help someone else out!

I haven't tried this method on 12.10 or 13.04 so I don't know if it will apply, but I had the same problem when I tried to run 13.04 on a live disk.


You have to add that line in your .xsessionrc file. To do this, use the following command:

echo "xinput set-button-map 12 1 0 3 4 5 6 7" >> ~/.xsessionrc


Lubuntu is by design a light-weight desktop environment with no compositor installed.

Flash I think requires some-sort of compositor to be present.

Suggestion would be to install the lightweight compositor such as xcompmgr and test this to see if Flash works correctly.

to install

sudo apt-get install xcompmgr

Then to test - open a terminal and run

nohup xcompmgr &

The nohup and & is important to run xcompmgr in the background including after the terminal has closed.

to run the xcompmgr from login

If xcompmgr works then you may wish to consider running this from login.

To do this first create the autostart folder if it doesnt already exist:

mkdir -p ~/.config/autostart

Then create a xcompmgr desktop file

lxshortcut -o ~/.config/autostart/xcompmgr.desktop

logout and login.

N.B. this picture shows what the xcompmgr.desktop file contains as well how to confirm xcompmgr is running.