Due to the way web pages are composed these days (with a premium on appearance rather than on function and with the rather thoughtless use of background images to convey information), accessibility for those with special requirements is often an issue. There are accessibility extensions available at the Chrome Web Store that should, in all probability, work with Chromium, and that may help but there's always the chance that there'll be problems with certain pages. You'll have to be aware of that possibility.

Two extensions may be considered:
Change Colors and PlainClothes


print error: commandtops crashed on signal 11

Stopping cups, uninstalling it and reinstalling it solved my problem.


Wifi usb adapter atheros 9170 chipset not working on Ubuntu 13.04

I am quite suspicious that the wireless switch or key combination is at fault here. Please see:

  *-network DISABLED

Let's blacklist the driver for the internal device and switch the wireless back on:

sudo -i
echo "blacklist iwl4965" >> /etc/modprobe.d/blacklist.conf
exit

Now turn the switch back to enable wireless, reboot and tell us if the USB is working.


You've a lot unused kernels. Remove all but the last kernels with:

sudo apt-get purge linux-image-{3.0.0-12,2.6.3{1-21,2-25,8-{1[012],8}}}

This is shorthand for:

sudo apt-get purge linux-image-3.0.0-12 linux-image-2.6.31-21 linux-image-2.6.32-25 linux-image-2.6.38-10 linux-image-2.6.38-11 linux-image-2.6.38-12 linux-image-2.6.38-8

Removing the linux-image-x.x.x-x package will also remove linux-image-x.x.x-x-generic.

The headers are installed into /usr/src and are used when building out-tree kernel modules (like the proprietary nvidia driver and virtualbox). Most users should remove these header packages if the matching kernel package (linux-image-*) is not installed.

To list all installed kernels, run:

dpkg -l linux-image-\* | grep ^ii

One command to show all kernels and headers that can be removed, excluding the current running kernel:

kernelver=$(uname -r | sed -r 's/-[a-z]+//')
dpkg -l linux-{image,headers}-"[0-9]*" | awk '/ii/{print $2}' | grep -ve $kernelver

It selects all packages named starting with linux-headers-<some number> or linux-image-<some number>, prints the package names for installed packages and then excludes the current loaded/running kernel (not necessarily the latest kernel!). This fits in the recommendation of testing a newer kernel before removing older, known-to-work kernels.

So, after upgrading kernels and rebooting to test it, you can remove all other kernels with:

sudo apt-get purge $(dpkg -l linux-{image,headers}-"[0-9]*" | awk '/ii/{print $2}' | grep -ve "$(uname -r | sed -r 's/-[a-z]+//')")


Why does my laptop boot only on battery, but not on charge?

This won't directly help you, but with Linux I learned that the laptop not olny knows the battery charge level, but  whether the ac adapter is powered up and plugged in.  Now on my laptop, which died on me, there was a big amp drain that caused the battery to run low even with the adapter plugged in.  That meant the draw was too much for the adapter and it could not maintain the -19.5 vdc level it was rated at.  It finally fried that adapter and the upgraded adapter I got for it.  The repair shop could not find the problem, so I am out for the repairs and the price of a suitable repllacement.  Be glad you don;t have those problems.

I can suggest trying a different LiveCD and install, even to a USB drive.  That way you can eliminate the possibility of a software glitch in the Linux build or layered software,  Go with an older LiveCD in case it is in the kernel upgrade.  This is called easter-egging, and what it really is is making change to elimate possibilites untul you nail down the cause, Then if ir is software related, post it to answer your own question, and maybe open a bug report on what you learned from your efforts.


Ubuntu-Lubuntu on a Intel i7-4500, 8GB RAM

I only install Lubuntu if Ubuntu fails.  Most of the time this is on very old hardware or on very small screens or other hand-me-down hardware.

So on your system, I would definitely  install Ubuntu 14.04.1 LTS.

If you've never seen any: Lubuntu looks like Windows 95 and Ubuntu Looks like Windows 11! :-)


Ubuntu Desktop 17.04 Random Reboot because of VirtualBox

I would begin by insuring that the foundation is sound by booting from verified good live media . Check the SMART status of the host drive and run a memtest.

The reason we do the above first is that if the hardware is malfunctioning any repairs we attempt on the filesystem using the same hardware are likely to fail and can't be trusted.

If no errors are found proceed to actually repair the filesystem in question. The fsck command you ran reports the errors but doesn;t actually make any attempt to repair the filesystem. The orphaned inode mentioned is explained well here.

I would then manually run fsck repairs on the filesystem with the command sudo fsck -y /dev/sda1 as based on your question /dev/sda1 is the partition that you are having difficulty with (if it's a different block device, adjust that accordingly.

If you are able to accomplish all this without the system rebooting when booted from live media, but still have the same issue when booted from /dev/sda1 [edit] the results into your post, drop me a comment and I'll expand and revise this answer as necessary.

Sources:

Experience.


https://launchpad.net/ubuntu/+source/4digits/1.1.4-1build1 shows it is not yet supported for 20.04 'Focal Fossa'.  If it's essential, you can step back to version 18.04.4 where it is available, and wait until it is ported to the new release, or contact the developer directly to ask why.


You could try different snap channels as described here.

For example, you could use lastly updated version:

sudo snap install gimp --edge

But be catious:

  edge: for users wanting to closely track development.

  Edge releases often include a moving stream of changes without QA or
  review promises and are typically built automatically by a CI process
  from an arbitrary source code snapshot. Often the CI will only publish
  after some sort of automatic QA passed, and code reviews remain a good
  practice, but these are project specific. Assume edge releases may
  break often.

You could also try --stable, --candidate, --beta in the future, when they will be updated.


Windows 10 unable to see samba share but Lubuntu can

Edit the Windows host file

Rightclick the My Computer icon and use Map Netdrive

Use this format:
\\[Name you put in the host file]\[share name]


Samsung SCX 4321 scanner not recognizing

Here's what I did for a Samsung scanner under 18.04. Worked for me - but unsure whether it will still work under 19.xx.

Samsung scanner driver is not packaged as part of Ubuntu 18.04. Driver is required for scanner to be available to scanning applications (e.g. Simple Scan). Some kind folks did re-package the Samsung driver. Sounds good so far.

BUT: Driver is unmaintained & may fail under re-worked Ubuntu 19.xx printer subsystem.

Download driver hosted here: https://www.bchemnet.com/suldr/suld.html
Extract archive
Open console & navigate to root of extracted folder
Run:

    sudo ./install-scanner.sh

Page through & accept EULA. Should see messages like:

    **** Registering SANE backend …
    **** Restarting udev …
    **** Scan driver has been installed successfully.
    **** Install finished.

Should now be able to run SimpleScan with Samsung CLX-3300.

Not tried under 19.xx. Hope this helps.


Ubuntu 18.10 external monitor with intel graphics

The short version:
Your laptop's HDMI port is wirred to the nVidia card in Hardware.  No software solution can change this, you need to resort to a mini-DP --> HDMI hardware convertor to make this work.
TL;DR:
From: Aero 15X v8 annoyances:

Second issue has to do with Nvidia optimus and essentially requires me
to relog or restart the pc when I disconnect from an external display
to keep the battery from draining running on the gtx 1070. Assuming I
boot the PC without any external displays connected, non-game
applications will utilize the onboard gpu as expected. If I boot the
PC with an external display connected however, everything (web
browsers, even windows shell) will use the dedicated gtx 1070. This
also applies to any applications started when connecting an external
monitor after booting. None of the applications will switch to the
integrated gpu after disconnecting the monitor and nothing short of a
relog/restart will solve the issue.
I've tried forcing global settings in Nvidia control panel to the
integrated gpu, updated all drivers but all to no avail.
Any advice would be greatly appreciated.

In the answers section this is discovered:

This is not the case with the Aero 15 however. It seems that the
display outputs are wired to the GTX 1070 which forces all
applications that were started on any display connected to the
HDMI/mDP port to be rendered with the GTX 1070.
I tested this by having the laptop's screen enabled while connected
via mDP to an external monitor. If the built-in screen is set as
primary, applications launched will run on the iGPU. When the external
monitor is set as primary, all applications started will run on the
1070.

Note: My Alienware AW17R3 has the external HDMI port hardwired to the nVidia Geforce GTX970M GPU as well and I cannot use the Intel iGPU to drive the Laptops HDMI external port. The Intel iGPU will only drive the builtin display and Thunderbolt 3 USB-C port which has a DPI-->HDMI adapter ($25) to another external monitor.


Sure, the syntax is:

ln -s ../../origFolder/Filename newSymLink

If you want to ensure that the link is relative use ln -sr

man ln

-r, --relative - create symbolic links relative to link location
-s, --symbolic - make symbolic links instead of hard links


One-click: Open terminal, run commands, keep using the terminal

You need to specify what the terminal to do after executing the command source bin/activate. You want an active bash session so you need to run bash. In addition there is a mes with the quotes. So the script could be:

#!/usr/bin/env bash
konsole --noclose --workdir /my/work/dir/ -e 'bash -c "source bin/activate; exec bash"' &

& at the end is added in order to keep the main terminal usable, in case you are executing that script from other terminal window.
the exec command could be omitted, and you can use only bash.

Here are few answers of similar questions, dedicated to gnome-terminal:

how can I open a extra console and run a program in it with one command?
Open a new terminal and source scripts
How to open one (or more) gnome-terminal window with few tabs, each with different profile, when start/reboot the computer?


Ubuntu 12.10 no login screen after update (vmware workstation 9)

Try to see if you can get further by temporarily disabling 3D video accel for this VM. This worked for me in VMware Fusion 5.

I had a problem actually running Gnome Shell. I still use LightDM, so I could get to the login screen but could not actually login to Gnome Shell.

It also worked for this guy in VMware Player: http://www.itadmintools.com/2013/03/gnome-shell-just-broke-on-ubuntu-1210.html

This is obviously not a fix but it does provide another data point.

Incidentally, 3D accel works fine with the latest Ubuntu update in Unity. The issue seems to be specific to Gnome Shell.

(I would rather leave a comment than an answer, but I don't have that option.)


How do I get the two external monitors connected to my laptop to stop mirroring each other?

The specifications on the link which you provided for your splitter says:

  "provides an inexpensive solution for displaying a mirror image on 2
  monitors at the same time"

What you want is not possible with this equipment.


IBM Keyboard Features on Ubuntu How to Fix?

Sorry for posting this as an answer but the comments don't give enough space and mark-up to properly test whether these keys work or not.  If it works, I'll delete this answer and we'll go hunting for what is wrong in software.

Remember that Ctrl+Alt+F7 is your friend! That is the key combination to press to get back here so you can read the rest of the message...

OK?  Got that?  Have it on a Post-It note?

Good! Now press Ctrl+Alt+F1 and you will se a terminal (a real terminal, not gnome-terminal or xterm that you've used until now...)

Log in by typing your user name and password (no stars or password will be echoed, this is 1970s technology after all) and once you're logged in type the following command:

showkey --scancodes

Now lightly press and release the Esc the Volume, Play, and all the other keys you want to test...  Then do what you do best for 10 seconds...

If every single key you typed, gave an output on your screen, you're in luck: yes, these can be defined; you should write down the output on a Post-It and leave a comment below with the output...  (no copy-paste back in the '70s!!!  And now that I think of it: no Post-Its either!)


12.04 & Nvidia problem: WHICH card series WORK?

In 10.04 the following drivers were available:

nvidia-96 - GPUs ranging from GeForce series 2 (except for GeForce2 GTS/GeForce2 Pro, GeForce2 Ti and GeForce2 Ultra) to Geforce series 7 are supported
nvidia-173 - GPUs ranging from GeForce series 5 to Geforce series 9 are supported
nvidia-current (195) - GPUs such as GeForce series 6 or newer are supported

The compatibility notes are directly from the package description (should be 3rd paragraph) and haven't changed much in 12.04. It is worth noting that nvidia-current moved from 180 over to 185 and from there to 195 during the 10.04 life cycle.

Using nvidia-current might have worked very well in 10.04. But you have to understand how Nvidia maintains their proprietary drivers. This is not limited to Linux/Unix drivers and applies to Windows in a similar fashion and AMD/ATI is no different there.

For Linux, Nvidia maintains 3 versions of drivers: One for very old cards (2000-2005, I know that this is not exact, but let's try to keep it as simple as possible) with a very limited set of features, one for rather newer cards (2005-2010) with more features and one with support for the latest cards (2010 onward) and all features they provide. This is done to reduce the maintenance effort as much as possible. If implementing support for a new series or feature breaks support for older cards or makes them unstable, then this is a sacrifice to be made and users of those cards have to switch to an older but still maintained/compatible driver series.

Also you need to know a bit more about the particular chip. Wikipedia says it is a chip from 2007, however Geforce Series 7 was released in 2006 and most low end designs are based on the previous series or even earlier. So actually were talking about a low cost design from 2005 or 2004.

My advice in your case: Remove all old drivers and install the nvida-173 driver, it should be sufficient to run Compiz (I did that back in 2008 with 08.04, version back than was 140 or 160), however the chip may not be fast enough to run Unity, you could try to disable blur in CCSM, if that doesn't help you have to use Unity 2D.


How to disable networking from command line without sudo?

You can use nmcli to perform such operation:

nmcli nm enable false

nmcli man pages:

          enable [true|false]
                 Get networking-enabled status or enable/disable
                 networking by NetworkManager.  All interfaces managed by
                 NetworkManager are deactivated when networking has been
                 disabled.
                 Reference to D-Bus:
                 interface: org.freedesktop.NetworkManager
                 method:    Enable
                 arguments: TRUE or FALSE


Laptop Ubuntu 16.04 has loss of power during OS startup sequence

I had an issue somewhat similar due to a corrupted XServer. Can you logon text only (No XServer) without the issue? I think you can press the Super/Windows button and Function key 5 to get a console. Could be something to look at. Take Care.


How can I change the non-overlay scroll bar width in Lubuntu 13.04?

In what follows, I'm assuming you have the default theme: /usr/share/themes/Lubuntu-default.

You haven't specified the programs for which you want wider scrollbars. By default, it's fair to say that Lubuntu mostly has gtk2 and gtk3 apps.

For gtk2 apps, open a terminal and run sudo nano /usr/share/themes/Lubuntu-default/gtk-2.0/scrollbar.rc (or use gksudo if you prefer a GUI-based text editor).
Near the top of this file, you should see:

style "scrollbar"
{
    GtkRange::slider-width = 8
    GtkRange::stepper-size = 0
    GtkCheckButtonClass::indicator-size = 14
    GtkRadioButtonClass::indicator-size = 14

Change

GtkRange::slider-width = 8

to

GtkRange::slider-width = 12

(or to whatever is suitable) . Save the file and exit.

Now, click on the Main menu button to get a dropdown and, in this dropdown, click on Preferences and then on Customize Look and Feel.  Here, in the Widgets tab, select and apply some other theme and then immediately revert to Lubuntu-default. Don't forget to click Apply each time.

There's one small problem here. If you make the scrollbar too wide, the "thumb" takes on a hollow appearance. I could be wrong here but that maybe because Lubuntu-default relies on images to draw the scrollbar rather than CSS. The images are located in /usr/share/themes/Lubuntu-default/gtk-2.0/images/ and will need to be modified by trial and error.

For gtk3 apps such as Evince (Document Viewer), you need to edit /usr/share/themes/Lubuntu-default/gtk-3.0/gtk-widgets.css. As before but way down in the file, look for this section:

/**************
 * Scrollbars *
 **************/

.scrollbar {
    -GtkRange-slider-width:     9;
    -GtkRange-stepper-size:     0;
    -GtkRange-stepper-spacing:  0;
    -GtkRange-trough-border:    0;

Change

-GtkRange-slider-width:     9;

to

-GtkRange-slider-width:     12;

or whatever you wish. Switch themes back and forth to get the change to take effect.

Now, you may still see some programs that have narrow scrollbars. I'll deal with just one example, that of the Chromium browser. To fix the scrollbar width in this browser, edit ~/.config/chromium/Default/User StyleSheets/Custom.css. (Note the space in User Stylesheets!). If you haven't done anything before, this file may be empty. In any case, add the following code:

::-webkit-scrollbar {
    width: 12px; /* increases width of scrollbar*/
}
::-webkit-scrollbar-thumb {
    background-color: #444 !important; /*change color to suit you*/
}

Save the file and exit. In this case you don't have to switch themes. The changes will be seen in Chromium immediately.

Notes:

There are some web pages, mostly related to Google, that don't follow the scrollbar width we set :(
There may be some other programs that aren't covered by what is given here!
Other themes may have different ways of dealing with scrollbars.
I prefer to copy over themes from usr/share/themes to ~/.themes and to give them a slightly different name. That way, the changes are user-specific and don't need sudo and, by virtue of renaming, the system and user themes will be distinct in Customize Look and Feel .


Laptop Internal Mic not working Ubuntu 12.04

Install pavucontrol package and try to enable it there.


Make a folder accessible only by a single program

You can create a new account just for the password manager, set permissions on the directory so only it can access it, and then set the password manager to be owned by said new account with the setuid bit enabled. However, this still isn't nearly as secure as encryption, and note that the root user will be able to bypass this.


Ubuntu 16.04 - Unity doesn't load - no Launcher or Dash appears

Assuming you can access the terminal, have you considered downloading and switching to another desktop environment? Recently I had a very similar problem with compiz/unity and the only solution was switching to GNOME 3. If you don't really care that much about the GUI, maybe that's the way to go.

So you can access your account and you can log into other accounts without any problem. I'm just guessing but maybe it's worth a try.

sudo apt-get install ubuntu-gnome-desktop

By the way, It can be a great moment to getting to know GNOME because the next LTS Ubuntu release will have it as default, from what I've heard.


Is there a simple way to add an url as launcher on Ubuntu Touch?

There is a way to do this, although not very userfriendly.
You can copy /usr/share/applications/webbrowser-app.desktop to ~/.local/share/applications, rename it and add the url of your site like this:

Exec=webbrowser-app %u

to

Exec=webbrowser-app %u http://askubuntu.com

You can also change the Name and the Icon of the shortcut.


How to replace my desktop with a full-size web-browser window?

After replacing the desktop with a browser instance you will not be able to run additional applications - at least not the way you presumably like them to. In that case you should just leave your Xsession the way it was configured.

Let me suggest you add the following command to your autostart applications:

xdg-open <url>

This will open the given URL in your default browser. Of course you will have to configure this browser to always start in fullscreen if this was needed.

In case you run Firefox you may also create a specific profile for you user and run it with the following command in autostart applications:

firefox -profile "<profile_path>"


Problem when trying to install a service for running Virtualbox VMs headless

As I thought the whole problem was caused by my home partition being encrypted.

I ended up following this question to remove encryption.

My advice is that, unless you know what you are doing, don't encrypt your home partition at Ubuntu's installation. If you do, be aware that unless you have logged in, everything under your home directory will be locked to other users (including root).


How do I set up FTP automount with a timeout?

You can try to use Autofs. Here is a good documentation/tutorial about it : Autofs - Community Help Wiki
And here you'll find how to use it with FTP : Autofs | FTP and SSH (with FUSE) - ArchWiki
the Timeout setting at the master file level is the timeout before automatic disconnection after a period of inactivity.
Warning : FTP is very light to be used like a regular File System. You can have some bad performance due to the FTP protocol design. If you can do it, prefer ssh/scp with certificate authentication.
Best regards,


In my opinion the fastest way is to mount via cifs. Run the following command (by making necessary changes):

mount -t cifs //se.rv.er.IP/video /ubuntu_path -o rw,user=xxx,password=yyy

If you don't have cifs installed; you may do so by running the following command:

sudo apt-get install cifs


Your boggle actually lies with GtkSourceView and the file /usr/share/gtksourceview-3.0/language-specs/ruby.lang. At least I think it's that version. You might want /usr/share/gtksourceview-2.0/language-specs/ruby.lang if changing 3.0 does nothing.

Anyway, you'll need to hack around in there to fix the syntax. And I suggest you push the change up to the gtksourceview maintainers so other people can benefit.

Or look at the following: https://github.com/janlelis/rubybuntu-language-specs

They seem to have updated the specs and they provide instructions for installing it in a 2.0 environment (should be simple enough to adapt).


LibreOffice Math not working... how to start troubleshooting?

I have found the following solution:

Please try this:

close LibreOffice
rename ~/.libreoffice and ~/.openoffice.org if you find them
rename ~/.config/libreoffice
restart LibreOffice : it should create a new clean profile without any old
data from OOo and previous version of LO
try LO-Math again


Minecraft goes black on 12.04 and EEE901

Download the latest copy of LWJGL from here http://lwjgl.org/download.php and extract it

Copy the following to ~/.minecraft/bin

jinput.jar
lwjgl.jar
lwjgl_util.jar

And the following to ~/.minecraft/bin/natives

libjinput-linux.so
libjinput-linux64.so
liblwjgl.so
liblwjgl64.so
libopenal.so
libopenal64.so

Then restart Minecraft

Make sure you overwrite the files that Minecraft downloads, they are out of date.


Ubuntu 13.10 - Black screen after logging in after installing nVidia drivers

Like the first answer removing the xorg.conf file will reset your "driver-setup".

But I've had this problem or one very similar myself. The problem lay in Optimus, a nvidia technology that allows the user to switch back and forth between integrated and nvidia graphics in order to safe power.

Now I'm assuming now that you've got optimus, if not that you can ignore this solution.
You can install a program called Bumblebee that installs and manages your graphical drivers including Optimus.

to install (make sure to purge your current-nvidia settings before!!):

 sudo apt-get install bumblebee bumblebee-nvidia

then reboot

sudo shutdown -r now

then after crossing your finger and a succesfull login. You can run programs using nvidia graphics using the optirun command:

optirun yourprogramnamehere

there you have it Optimus working and running.


How can I determine the PHP version MediaWiki is using?

To get what version used, create and open in browser php file with this content

<? phpinfo();

To install xml for 7.2:

sudo apt-get install php7.2-xml


Is there any problem to always enable ssh server on ubuntu?

If you're asking if the service will stop running by itself once the last connection has been closed, the answer is no, it won't. But that doesn't necessarily mean you should stop the service; in most uses cases, you would keep it running.

It's not generally necessary to stop sshd (the OpenSSH service) when there are no connections, and people don't usually do that. Or, to be more precise: so long as it was reasonable to run sshd in the first place, it is typically reasonable to run it even when no one is connected, so long as doing so is actually helping you in some way. Typically, that help takes the form of much-increased convenience, because you don't always know when someone will need to connect, and there may not always be someone physically present to start the service.

Accepting SSH connections has security implications. For example, if someone has a weak password (or a password of any strength that is used somewhere else, where there is then a data breach) and password-based authentication is enabled, then someone unauthorized could gain access to your machine. That's one example, but there are other scenarios, such as the occasional security vulnerability that is found in OpenSSH.

The longer an SSH server is accessible, the more likely something will go wrong. But the likelihood is very low in the first place, at least so long as you follow good security practices. Assuming it was a sound decision to run your SSH server at all, it is probably also fine to keep it running, provided that doing so provides value to you.

If nobody needs to be able to SSH into the machine for quite a while, then you might consider disabling the service, or even uninstalling the openssh-server package. If there's no reason to run an SSH server, don't run it. But the pattern of forcing legitimate users to (for example) call you to arrange for you to go to the machine and enable the SSH server is not likely to be a good trade-off, from a security perspective or otherwise.

Don't run the server if it doesn't provide any value to you (or doesn't anymore). If it only has to be used on a LAN or WAN, rather than being accessible directly from the public Internet, then configure your router or firewall accordingly. Use a supported release of Ubuntu (for users who find this by searching the web: of whatever OS you're running) and make sure to keep it up to date; at minimum, this means installing security updates as they become available. Don't give people who have no business using the machine accounts on it, and implement reasonable measures for physical security. Instruct users about basic security practices including the use of good passwords, and strongly consider disabling password-based authentication for SSH (thereby requiring key-based authentication which is generally more secure).


can not upgrade xorg after update to ubuntu 17.04

Had similar issue after do-release-upgrade from 16.04 to 17.04:

sudo apt-get install xserver-xorg-video-all

fixed it. It asked me to remove some 16.04 components of ubuntu-mate-desktop, I confirmed with 'y' and it worked fine.


You have blacklisted the r8169 module by installing r8168-dkms.

This can be fixed by

sudo apt-get purge r8168-dkms
sudo rm /etc/modprobe.d/r8168-dkms.conf

The second command may give no file found error, but it is OK.


Desktop effects could not be enabled on an Asus UL50vg

This was fixed by the user by changing IDE mode from Enhanced to Compatible in the system BIOS.


It sounds like your palm is touching the mousepad when you type. I'm not sure if this works in ubuntu or not, but you could try syndaemon -i 0.5 -t -K -R

syndaemon # a program that monitors keyboard activity

-i # how many seconds to wait after last keyboard click

-t # only disable tapping and scrolling

-K # ignore modifier keys and modifier+key combos

-R #use XRecord extension for detecting keyboard activity ...


Texmaker internal pdf viewer deforms document

From the research I 've done trying to fix the problem it appears that the upgrade from qt4 to qt5 (which is used to build the package if I get it right) is not working that well. There is a bug report in Ubuntu website about it. (This is what's called regression right?). So I uninstalled again (with dpkg -P) [got some unity executable crash reports from ubuntu for some reason, after every boot]. Then I went to texmaker website and downloaded version 4.5 for Ubuntu 14.04. It needed to install qt4 as dependency and then installed properly. It even made the reboot error go away.

As for texmaker pdf's are displaying properly now. Even shortcuts are working - they weren't working as well but hadn't put that here.

TLDR: Uninstall and install texmaker version that uses qt4 to build because the newer one isn't working properly.


grep to return Nth and Mth lines before and after the match

If:

cat file

a
b
c
d
e
f match
g
h
i match
j
k
l
m
n
o

Then:

awk '
    {line[NR] = $0}
    /match/ {matched[NR]}
    END {
        for (nr in matched)
            for (n=nr-5; n<=nr+5; n+=5)
                print line[n]
    }
' file

a
f match
k
d
i match
n


The script presented here worked for me. It changes the device name of the IR camera and creates a symlink in its place that points to the standard camera. I added it to my crontab as a @reboot, and it works like a charm.


reset or completely remove an installation/htop

htop stores its settings under ~/.config/. Personal settings stored under $HOME are never removed when you remove a package. To reset these settings, just remove the configuration file:

rm -fv ~/.config/htop/htoprc


WireGuard ppa with 18.04 and kernel 5.3.0-53-generic?

Since, wireguard-dkms has been updated. The version 1.0.20200506-1~18.04 fix this problem. Now, it works with kernel 5.3.0-53, but it did not work anymore with the 5.3-051 version...


Having set up a DCHP server, what do I need to do for the rest of my network?

If your DHCP configuration on the Raspberry Pi is ok and you don't need any other feature, you shouldn't need anything else. But you have to make sure the Raspberry Pi gives the proper default gw address to the clients, as well as a primary and a secondary DNS server (again the router for the primary, I suppose and I suggest a Google Public DNS server or any other OpenDNS server for the secondary).

This is my old DHCPd configuration, maybe you can find it useful.

subnet 192.168.10.0 netmask 255.255.255.0
{
    range 192.168.10.100 192.168.10.200;
    default-lease-time 86400;
    max-lease-time 86400;
    option subnet-mask 255.255.255.0;
    option broadcast-address 192.168.10.255;
    option routers 192.168.10.1;
    option domain-name-servers 192.168.10.115;
    option domain-name-servers 8.8.8.8;
}


Can't switch compliance level in Eclipse

Fixed! I uninstalled and reinstalled Java and changed the location of my JVM to /usr/lib/jvm/java-1.7.0-openjdk-i386. The solution was much simpler than I thought. Now I feel very silly.


Different ways to completely remove a package ? Am I getting this right?

sudo apt-get autoremove --purge

This will remove orphan packages + the files that came with it.

sudo apt-get purge --autoremove pkg

This will purge pkg and then runs apt-get autoremove


Install ubuntu on 128GB SSD or 3TB SATA disk?

I'd put everything except /home, /tmp and /var on the SSD. The other folders are only written to when installing or updating software, yet they keep nearly all the files required to start programs (binaries, libraries, configuration files). Therefore putting them on the SSD will yield greatly improved performance, while the low amount of writes will keep the wear on the SSD low. Also, mount all filesystems on the SSD with the noatime mount option to reduce write access (which would put unnecessary wear on the SSD and is much slower than read, causing worse performance). If you think you don't need a filesystem journal, use a non-journalling filesystem like ext2 on the SSD.

My partition layout suggestion:

/boot: 2 GB on SSD, ext2
/: rest of SSD, ext2 should be safe, but if you want faster disk checks, use ext4 or xfs. Corruption is highly unlikely, since only few writes are performed
/tmp: tmpfs, 16 GB (you'll need swap of at least that size), OR, if you want to burn blu-rays: 200 GB on HDD
swap: 32 GB on HDD (since /tmp is tmpfs, and you might also want hibernate). If you use a non-ramdrive /tmp, swap can be smaller, but at least the size of the RAM.
/var: 5 GB on HDD (should never get that big, just to be on the safe side...)
/home: rest of HDD

Since WINE is installing prefixes per default in the home folder, you then have plenty of space for games. Nevertheless, you can of course in addition create a folder on the SSD that is owned by your user (for instance in /opt), to which you can install your games by setting the WINEPREFIX environment variable. It is anyhow good practice to install each game in a different WINEPREFIX.


I could have put in comment, don't have enough rep.
If you exactly want what you say, I may not be able to help.
You can still give geeky look to your booting process by using

xdiagnose

search it in dash.
There can tick

display boot messages

And in workaround sections, tick

disable bootloader graphics
disable VESA framebuffer driver
diable PAT memory

You can hover over tick-boxes to see the benefits, overall you will get much stable experience and improved booting.


Uninstalled aplications still show launcher icons under installed aplications?

Right click on the top left Ubuntu icon (next to Applications) and select 'Edit Menus'

In the box that opens simply remove the tick from the icon you no longer wish to be displayed.


Install doesn't work anymore - Could it be the UEFI?

You've either got multiple problems with multiple independent causes (keyboard weirdness, video driver issues, failed installations) or all your problems are related. Occam's Razor says the latter is more likely. Such diverse symptoms can be caused by hardware problems such as bad RAM, a bad CPU, or even a malfunctioning power supply. Thus, I recommend you run some hardware diagnostics, such as memtest86, on your computer. With any luck, one of these tools will identify a problem and you'll be able to fix it.


How can I remove two partitions on my USB?

The possibilities I can think of are:

You are doing something very wrong. It is telling that you mention /dev/sdb and /dev/sdc. Those are normally different devices entirely, meaning that one of those is not your USB stick. Partitions would be e.g. /dev/sdb0 and /dev/sdb1. So make sure you are dealing with the devices you think you are. You may wish to take a look at the output of dmesg for some information about which device is which (e.g. dmesg | grep sdb and dmesg | grep sdc before and after inserting your stick).
You are not root, but you need to be, or at least you need to be logged in as some user that has write access to those /dev nodes.
If these partitions are part of the out-of-the-box configuration, often manufacturers will create a special partition for their own software and, via special programming in the controller, will not let you remove these partitions. Cruzer, for example, is particularly bad with this in my experience. In this case, there is nothing you can do.
If your USB stick has a write protect switch (relatively rare these days), turn it off. However, if you can currently write files to the existing partitions without issue, then that rules out this problem.
If your USB stick has failed or is about to fail, many manufacturers add code to the firmware to kick the stick into permanent read-only mode when failure is imminent. If this is the case, there is nothing you can do. However, if you can currently write files to the stick without issue, then that also rules out this problem.

Of all the possible causes, those 5 are the most common. I believe 1 or 3 would be the most likely causes in your case.


Why does `file -i` determines file encoding as ASCII, however it is UTF-8 actually in git repository

So, since there is no BOM generated during file creation - there is no way to distinguish ASCII and UTF-8. So in terms of correct prediction of file encoding - it is better to answer ASCII, than UTF-8 (if both contains only latin characters), since UTF-8 involves more char-codes.

Therefore file -i doing all the best.

Thanks fedonkadifeli for the help.


Window focus gets "stuck" - cannot click outside of window

Fixed my own issue! Turns out a good night's rest and some breakfast does a lot to help your troubleshooting abilities (what a surprise.) As mentioned in my comment, the problem was with my rat 7 mouse. Followed the third post on this forum page and everything was fine.


ubuntuphone does not connect to ubuntu desktop

Install the latest version of libmtp

sudo add-apt-repository ppa:fossfreedom/libmtp
sudo apt-get update
sudo apt full-upgrade

This should make it so your phone is at least recognized. To access your data, you'll have to unlock your homescreen on the phone.


wifi unavailable(wireless) on acer aspire 4750z

According to official Acer documentation you may need to press Fn+F3 to enable wireless:


How to play audio from different applications on different output devices?

Routing sound to different sinks with PulseAudio

Yes this is possible, but you need more than one soundcard (PulseAudio calls these sinks) for this to work. Don't worry, if you have something like a headset that is connected via Bluetooth or USB, then this also counts as another soundcard.

Using the PulseAudio GUI

While you can configure PulseAudio from the terminal with pacmd (manpage), you don't need to! There is a GUI application called PulseAudio Volume Control that offers this functionality.

Using plugins for applications

If you are already using VLC, you should check that vlc-plugin-pulse is installed. You can then switch between soundcards from within VLC via menu entries Audio > Audio devices.


Do files/directories belong to a user AND a group?

as mentioned above there are 3 sections to the permissions for an example which may be easier to understand here is how it is broken down

say root is the owner/user of the file
say video is the group
and then as mentioned there is the world/other section which covers anyone that doesn't fit in the first two.

Now if the file has permissions like

Read/Write for root

Read for the group video with user1 as a member of that group

and none for world/other

Then the root user would have full read write control over the file.
Any user in the video group (user1) would have read permissions but would not have access to modify the file.
Anyone else would not even be able to view the contents of the file.

as mentioned sudo chmod can be used to change the permissions of a file. Usage of chmod is too large to explain here but a simple breakdown is like this:

u is for user,
g is for group,
and o is for others.

r is for read permission,
w is for write permission,
x is for execute permission.

so if you wanted to set a file so that the user/owner of the file can have full access and you wanted the group to have read and be able to execute the file (such as a script) and you wanted everyone else only be able to execute the file the command would be:

sudo chmod u+rwx, g+rx, o+x /path/filename

to remove a permission you just use a minus instead of the plus... so if you decided that you didn't want "world/other" to be able to execute that file you would just use

sudo chmod o-x /path/filename

You will also see numbers used at times and I would actually have to look those up but basically I know that 7 is full permissions so if you did:

sudo chmod 777 /path/filename

it would set the permissions to read write execute for user (first seven) group (second 7) and world/other (third 7).

There is also a recursive code (-R note the capitalization it must be uppercase) .. if you wanted to change all the files in one directory and its sub-directories (be careful with this command because if you type the wrong path you can set permissions for files you may not want to touch) but it would look something like this:

sudo chmod -R 777 /home/user/blah

this would change the permissions for the folder blah, all the files and all its sub-directories and files to have full read/write/execute for anyone.

Hope this gives you a better understanding of chmod and permissions. If you need more you can just do a search on chmod commands and you should find the information you need


I fear that my hard drive may be about to break

This question has been answered here:

/dev/sda1: clean, 220240/30269440 file, 2971359/121076736 blocks

The top voted answer in that post explains it perfectly.


You may have hit this issue. In that case you can generate a Belgian locale, e.g.:

sudo locale-gen fr_BE.UTF-8

Then you should be able to click French and find some Belgian layout options in the sub menu which opens.


Setting up MAAS on 14.04LTS Region + Cluster on same server DHCP not working

This stumped me for a bit since it sure looked like eth1 wasn't connected into the right network but I saw all the cables connected.  The answer is that I actually hadn't screwed up my network/route setup but that I didn't realize that the udev rules for NIC mapping was different from what I had assumed it actually was.  My server's NetMgmt port is actually shares a physical connector between Service Processor and Server.  I've recalled and am reinstalling MAAS and things are going much better.


What are the differences between gnome, gnome-shell and gnome-core?

This is just an issue of metapackages. The Debian world (and I believe the RedHat one as well) has collected certain programs that are used together into easy-to-install metapackages. So, the package gnome is actually a shortcut for installing all sorts of goodies:

  aisleriot, alacarte, avahi-daemon, cheese, cups-pk-helper, desktop-base, evolution, evolution-plugins, file-roller, gedit, gedit-plugins, gimp, gnome-applets, gnome-color-manager, gnome-core, gnome-documents, gnome-games, gnome-media, gnome-nettool, gnome-orca, gnome-shell-extensions, gnome-tweak-tool, gstreamer1.0-libav, gstreamer1.0-plugins-ugly, hamster-applet, inkscape, libgtk2-perl, libreoffice-calc, libreoffice-gnome, libreoffice-impress, libreoffice-writer, nautilus-sendto, network-manager-gnome, rhythmbox, rhythmbox-plugin-cdrecorder, rhythmbox-plugins, rygel-playbin, rygel-preferences, rygel-tracker, seahorse, shotwell, simple-scan, sound-juicer, telepathy-gabble, telepathy-rakia, telepathy-salut, tomboy, totem, totem-plugins, tracker-gui, transmission-gtk, vinagre, xdg-user-dirs-gtk, browser-plugin-gnash, gdebi, nautilus-sendto-empathy, telepathy-idle, dia-gnome, gnome-boxes, gnucash, libreoffice-evolution, planner

This is the full Gnome desktop and is not needed to run the Gnome desktop environment. So, while you have gnome-shell installed, you don't have all the associated applications like games and email client etc that come with the full desktop environment.

This is not a problem and it does not hinder you from using Gnome in any way.

gnome-core is also a meta package, it will install the official "core" modules of the Gnome desktop:

  at-spi2-core, baobab, brasero, caribou, caribou-antler, dconf-gsettings-backend, dconf-tools, empathy, eog, evince, evolution-data-server, firefox, or, fonts-cantarell, gconf2, gdm, gkbd-capplet, glib-networking, gnome-backgrounds, gnome-bluetooth, gnome-calculator, gnome-contacts, gnome-control-center, gnome-dictionary, gnome-disk-utility, gnome-font-viewer, gnome-icon-theme, gnome-icon-theme-extras, gnome-icon-theme-symbolic, gnome-keyring, gnome-menus, gnome-online-accounts, gnome-packagekit, gnome-panel, gnome-power-manager, gnome-screensaver, gnome-screenshot, gnome-session, gnome-settings-daemon, gnome-shell, gnome-sushi, gnome-system-log, gnome-system-monitor, gnome-terminal, gnome-themes-standard, gnome-user-guide, gnome-user-share, gsettings-desktop-schemas, gstreamer1.0-plugins-base, gstreamer1.0-plugins-good, gstreamer1.0-pulseaudio, gtk2-engines, gucharmap, gvfs-backends, gvfs-bin, libatk-adaptor, libcanberra-pulse, libcaribou-gtk-module, libcaribou-gtk3-module, libgtk-3-common, libpam-gnome-keyring, metacity, mousetweaks, nautilus, notification-daemon, pulseaudio, sound-theme-freedesktop, tracker-gui, vino, yelp, zenity, network-manager-gnome, gnome,

Note that the gnome metapackage also installs the gnome-core metapackage. In any case, the main point here is that metapackages are not needed. You can install each of their component packages manually so lacking one or more metapackages does not imply that anything is actually missing from your system.


How to launch Android Studio using Terminal

cd into the directory where you unzipped the android studio installer zip file. The folder is named android-studio. It could be in your ~/Downloads folder if you downloaded it from the internet. Now cd into the bin folder and run the studio.sh file

./studio.sh


Switched from Win to Ubuntu 12.04 and CD & DVD Drives aren't recognizing media

to find out if the recorder was recognized, type dmesg | grep "sr0" in a terminal. You should get a response similar to:

[    1.649270] sr0: scsi3-mmc drive: 40x/40x writer dvd-ram cd/rw xa/form2 cdda tray
[    1.649445] sr 0:0:0:0: Attached scsi CD-ROM sr0

check mounted non-blank media:
To be sure there it is not mounted execute this in a terminal: mount | grep "/dev/sr"
If the response is blank there is no non-blank media mounted in your media drive. Blank media is not showing up here.

Note:
your drive might be called sr1 or sr2 if you have several; in that case replace sr0 with sr1 in that case (or simply sr to catch them all).


you have two thing

remove the modem manger
or remove the D-BUS file from /usr/share/dbus-1/system-services/org.freedesktop.ModemManager.service
this file wich run the modem manger every two min
you can copy it to another place if you don't want to lose it


Use -c and give a number of pings to send to each host:

fping -c 10 192.168.1.1 192.168.1.2  ...

What does -c do?

  -c n Number of request packets to send to each target.  In this mode, a
        line is displayed for each received response (this can suppressed
        with -q or -Q).  Also, statistics about responses for each target
        are displayed when all requests have been sent (or when
        interrupted).

Example:

$ fping -c 5 192.168.1.1 192.168.1.50
192.168.1.1  : [0], 84 bytes, 1.56 ms (1.56 avg, 0% loss)
192.168.1.50 : [0], 84 bytes, 2.01 ms (2.01 avg, 0% loss)
192.168.1.1  : [1], 84 bytes, 1.39 ms (1.47 avg, 0% loss)
192.168.1.50 : [1], 84 bytes, 4.69 ms (3.35 avg, 0% loss)
192.168.1.1  : [2], 84 bytes, 2.06 ms (1.67 avg, 0% loss)
192.168.1.50 : [2], 84 bytes, 2.79 ms (3.16 avg, 0% loss)
192.168.1.1  : [3], 84 bytes, 1.97 ms (1.74 avg, 0% loss)
192.168.1.50 : [3], 84 bytes, 32.6 ms (10.5 avg, 0% loss)
192.168.1.1  : [4], 84 bytes, 1.41 ms (1.67 avg, 0% loss)
192.168.1.50 : [4], 84 bytes, 8.74 ms (10.1 avg, 0% loss)

192.168.1.1  : xmt/rcv/%loss = 5/5/0%, min/avg/max = 1.39/1.67/2.06
192.168.1.50 : xmt/rcv/%loss = 5/5/0%, min/avg/max = 2.01/10.1/32.6

The numbers in the summary line show you the response times you want. If you only want the summary and not the ping-by-ping report, use -q -c. If you want to then process the result with a script (i.e. you want something easy to parse), use -C instead, it will give you just the numbers separated by spaces.

I learned about this very easily by doing man fping. Remember, man is your friend :)


Move /opt to a different, already existing drive

I second moving /home, but it's possible to do what you want.

If I understand correctly, you have two drives, one with ubuntu (and possibly some windows stuff) and one with the windows user files.  What you would need to do is shrink the windows partition (while I have done this successfully many times, resizing partitions may lead to data loss, so back up your data), and that will free up room on that drive.  You can use a program like GParted to resize partitions.  Once done, you can take the leftover space and make a new partition (also done with GParted).  Then you'll need to copy the contents of /usr/local and /opt over to the new partition (I usually do this part by inserting a live cd and mounting everything and copying).  Finally, you'll need to edit /etc/fstab and tell it where to mount /usr/local and /opt.

The link given above on the steps to move /home are the same, so you can follow that guide for moving /usr/local and /opt.  What you will need to do is resize the windows partition first.


Converting panasonic .MTS video into high quality mpeg videos?

This site has a great tutorial on how to do it, and includes a helpful bash script that joins the MTS files before starting, as apparently not doing so can cause problems.

If you want to experiment before jumping into his instructions, you can try the following command. This creates an x264 AVI, you can easily change the output format by changing the libx264 part below to mpeg4.

ffmpeg -i your_file.MTS -acodec copy -vcodec libx264 -crf 21 -r 30000/1001 -deinterlace -vpre lossless_medium -y -threads 0 output_file.avi


Ubuntu on Dell Latitude 5401 not recognizing wifi card

I have written a script to fix that.

You have to install the 5.1 kernel or higher and than download the correct WiFi driver and place it in /lib/firmware.


systemd user service not found after reboot

You have the same problem than https://unix.stackexchange.com/q/417162/116970

I would suggest that you add a After= and a Requires= line on your syncthing.service in the [Unit] section so that syncthing is run after the home folder is mounted.

More spefically, you coud try:

[Unit]
Description=Syncthing - Open Source Continuous File Synchronization
Documentation=man:syncthing(1)
After=home-yourusername.mount
Requires=home-yourusername.mount

...

and replace yourusername with your user name


OpenVPN, client cannot connect anywhere and connection drops immediately

Ok, figured it out. Just added the autolocal to this line in the server:

push "redirect-gateway autolocal def1 bypass-dhcp"

Thanks to this answer: https://serverfault.com/a/827497/446984


Keyboard works fine, but no mouse after computer wakes up from sleep

We had the same problem with the touchpad on Lenovo Extreme and Carbon on Bionic (Ubuntu 18.04).  I was having to run sudo rmmod psmouse && sudo modprobe psmouse.  I never figured out why, but the mouse driver gets hung after returning from suspend.  This underlying driver is the same as a regular mouse.

Touchpad not working after suspending laptop


You should take a look on k3b

sudo apt-get install k3b

When you start burning click on filesystem tab

By default this will support ISO 9660 file system but yo can configure more by clicking the custom button


AR9285 Wireless network problem Ubuntu 13.04

Here is what helped me.  It is not perfect, but works.

Follow the instructions in this threat http://ubuntuforums.org/showthread.php?t=1286503&page=5

When you reboot, the wifi does not work.  Now, what you do is suspend the laptop and resume.  Surprisingly, the network is on when it resumes.  I have been using this, and for now I can get by, as a suspend-resume cycle only takes about a minute.


You are correct. Third party packages should therefore only extend the current path, not limit it.


First, the search function in dconf-editor searches only among those things which are directly visible on screen or reachable by scrolling (note that the search field looks just like the one in other applications like Nautilus).

I know of no other graphical tool you could use. So you probably need to use the command line tool dconf (also from the package dconf-tools).

Specifically for search recursively through the whole database (including keys and values) I would use this command:

dconf dump / | grep SEARCH-TERM

dump basically gives you the whole database in an "Windows-Ini-File"-like format. For browsing through the database, use dconf list /PATH.

As you've mentioned gsettings, the equivalent search command there is:

gsettings list-recursively | grep SEARCH-TERM

However, this may not be what you want (for a search for unity, this gives completely different results for me). Not sure what database is used here.

Edit: After reading this question, I noticed that dconf shows you only the settings which are actually set in the database, not all possible settings like dconf-editor. Apparently you can use gsettings list-schemas to give you all possible settings.


Unity tweak tool - make the Launcher fully transparent?

Maybe a bug. Maybe it’s because CCSM (CompizConfig Settings Manager) uses Opacity instead, so when you set Transparency OFF, probably it sets the Opacity equal to 0; thus it’s transparent. So if you want to make it totally transparent, you should move the slider position once and then put it on the tranparency 100% and also choose black for custom color, otherwise, it won’t be fully transparent. Here’s some screenshots:

Transparency 100% with a wallpaper-based color: it’s not transparent!

Transparency 100% with white: it’s not transparent but rather shiny!

Transparency 100% with black: it’s really transparent, but COF icon has a black background.

Transparency OFF with black: the same result as transparency 100%. Turning the transparency off means 100% tranparency (Opacity OFF)!

Notes:

If you make the Launcher transparent, you may also want to change Icon backgrounds to All applications.
The default value (correct position) for Launcher transparency is on the line about the middle of the range (40%).


How to check if my privacy has been compromised or to protect against such compromise

It is actually easier to protect your privacy than to determine if your privacy has been compromised when you did nothing to protect it. Think of it as being akin to trying to determine if somebody has photographed you. Your body is reflecting photons all the time, and it is trivial to catch some of them and form a picture. Here is a similar problem, your computer sends (and receives) traffic, and if somebody can look at it, you will never know, unless you know what they use to look at you.

Protecting your privacy is the route that you should be taking. Depending on your need you can do the following:

Minor threat: Install a HTTPS Everywhere plugin, which attempts to use HTTPS if it is available. Monitor that you do not send or receive information through means that do not involve encryption. You can also install something like GPG for your emails, this will make it significantly harder to attack you. For communication via an instant messanger you can set up an Off the Record plugin for pidgin, it will allow you to check that you are talking to a person that you think you are talking to, and also to make it harder to intercept your communication.

Average threat: Set up and use VPN, make sure that it is a good VPN service and do not browse without using it. You will run into problems with some sites (stupidly) blocking everybody who is using VPN. But that is life.

High threat: Install something like TOR browser, use that instead of your regular proxy browsing. You will find that your connection is slow, and even more sites will be unavailable or work only partially.

Very high threat: For anything that is even partially sensitive use only real anonymous/psedonymous networks. Forget about connecting to a regular WWW for the most part. Set up and run a Freenet node. It will be slow, but within that network you can be somewhat sure that if you do not accidentally just say your name, you are somewhat safe.

Risk of death: Either disconnect from the Internet all together, or use Freenet, turn off Opennet, allow only connections to people that you know in real life and trust not to spy on you. This will mean that you will need to actually exchange node references, do that via encrypted channel or by physically handing them a USB stick with a reference.

In addition to all of this, you should also keep in mind that physical security of your machine is very important. Consider using encryption, if you are a single user of your machine you need at the very least whole disk encryption provided by LUKS+cryptsetup. If you have several other people who have login privileges on your machine, you will need a separate encryption of your home directory. Both of these approaches can be enabled when you are installing the system.


Nvidia drivers macbook pro retina (10,1) 14.04

I had the same problem on Mint. Try installing the newest nvidia driver version by doing:

sudo add-apt-repository ppa:xorg-edgers/ppa

sudo apt-get update

sudo apt-get install nvidia-340

It looks like nvidia-drivers 331-338 (or at least some of them) are not working on Macs with Ubuntu/Mint correctly.

If it doesn't work you may also need to blacklist the nouveau drivers:

sudo gedit /etc/default/grub

Add to GRUB_CMDLINE_LINUX_DEFAULT

nouveau.blacklist=1 quiet splash

Update:

sudo update-grub2 //or grub depends on your version

Reboot.

If you get a blackscreen again you might want to boot up in safe mode or add the nomodeset parameter in the kernel boot parameters

press e in the grub boot menu

Add to GRUB_CMDLINE_LINUX_DEFAULT

nomodeset

Boot.

The problems you will have with the Nvidia Drivers are:

heating issues
higher battery drain
high fan speed

These are related to Optimus/gpuswitching not working on macs with linux.

You can try http://manpages.ubuntu.com/manpages/utopic/man1/macfanctld.1.html to adjust your fans to your needs.


How to install PHP 5.2.x on ubuntu 14.04?

Install PHP 5.2.17 on Ubuntu 14.04

Based on:

http://www.rasyid.net/2014/10/07/using-multiple-php-inside-one-ubuntu-machine/

Add PostgreSQL Apt Repository (provides postgresql-server-dev-9.4)

apt-get install -y wget
echo "deb http://apt.postgresql.org/pub/repos/apt/ trusty-pgdg main" > /etc/apt/sources.list.d/pgdg.list
wget --quiet -O - https://www.postgresql.org/media/keys/ACCC4CF8.asc | sudo apt-key add -

Install dependencies

apt-get update
apt-get install -y gcc make build-essential \
    libxml2-dev libcurl4-openssl-dev libpcre3-dev libbz2-dev libjpeg-    dev \
    libpng12-dev libfreetype6-dev libt1-dev libmcrypt-dev libmhash-dev \
    freetds-dev libmysqlclient-dev unixodbc-dev postgresql-server-dev-9.4 \
    libxslt1-dev

Required to prevent an issue when compiling freetype support

mkdir -pv /usr/include/freetype2/freetype
ln -sf /usr/include/freetype2/freetype.h /usr/include/freetype2/freetype/freetype.h

Download PHP sources

wget -c -t 3 -O ./php-5.2.17.tar.gz http://museum.php.net/php5/php-5.2.17.tar.gz
tar xvfz php-5.2.17.tar.gz
cd php-5.2.17

Patch PHP

wget -c -t 3 -O ./libxml29_compat.patch https://mail.gnome.org/archives/xml/2012-August/txtbgxGXAvz4N.txt
patch -p0 -b < libxml29_compat.patch

wget -c -t 3 -O ./debian_patches_disable_SSLv2_for_openssl_1_0_0.patch https://bugs.php.net/patch-display.php\?bug_id\=54736\&patch\=debian_patches_disable_SSLv2_for_openssl_1_0_0.patch\&revision=1305414559\&download\=1
patch -p1 -b < debian_patches_disable_SSLv2_for_openssl_1_0_0.patch

wget -c -t 3 -O - http://php-fpm.org/downloads/php-5.2.17-fpm-0.5.14.diff.gz | gunzip > ./php-5.2.17-fpm-0.5.14.patch
patch -p1 < php-5.2.17-fpm-0.5.14.patch

Compile and install

./configure \
    --prefix=/usr/share/php52 \
    --datadir=/usr/share/php52 \
    --mandir=/usr/share/man \
    --bindir=/usr/bin/php52 \
    --with-libdir=lib/x86_64-linux-gnu \
    --includedir=/usr/include \
    --with-config-file-path=$PHP_HOME/etc \
    --with-config-file-scan-dir=$PHP_HOME/etc/conf.d \
    --disable-debug \
    --with-regex=php \
    --disable-rpath \
    --disable-static \
    --disable-posix \
    --with-pic \
    --with-layout=GNU \
    --with-pear=/usr/share/php \
    --enable-calendar \
    --enable-sysvsem \
    --enable-sysvshm \
    --enable-sysvmsg \
    --enable-bcmath \
    --with-bz2 \
    --enable-ctype \
    --without-gdbm \
    --with-iconv \
    --enable-exif \
    --enable-ftp \
    --enable-cli \
    --with-gettext \
    --enable-mbstring \
    --with-pcre-regex \
    --enable-shmop \
    --enable-sockets \
    --enable-wddx \
    --enable-fastcgi \
    --enable-force-cgi-redirect \
    --enable-fpm \
    --with-mcrypt \
    --with-zlib \
    --enable-pdo \
    --with-curl \
    --enable-inline-optimization \
    --enable-xml \
    --enable-pcntl \
    --enable-mbregex \
    --with-mhash \
    --with-xsl \
    --enable-zip \
    --with-gd \
    --with-pdo-mysql \
    --with-jpeg-dir=/usr/lib \
    --with-png-dir=/usr/lib \
    --with-mysql \
    --with-openssl \
    --with-mysqli \
    --with-kerberos \
    --enable-dbase \
    --with-mysqli=/usr/bin/mysql_config \
    --enable-gd-native-ttf \
    --with-t1lib=/usr \
    --with-freetype-dir=/usr \
    --with-ldap \
    --with-kerberos=/usr \
    --with-unixODBC=shared,/usr \
    --with-imap-ssl \
    --with-mssql \
    --without-sqlite \
    --with-sqlite \
    --without-pdo-sqlite \
    --with-pgsql \
    --with-pdo-pgsql \
    --enable-soap \
    --with-pdo-sqlite

make
make install


alias/function with command line arguments

Along the lines of your original attempt, you could adjust that function to the following:

function runserver() {
    python manage.py runserver 10.211.55.4:$PORT
}

and then call it like so:

PORT=3000 runserver


Is it possible to get Netflix working with HTML5

According to Muktware, Netflix Adds HTML5 Playback, Support Coming For Linux.  So not as of yet, but it will be available in the near future.  For that time being you can use some workarounds that include running the entire browser in Wine, or running a Silverlight plugin in Wine and make it compatible with the browser.


Corrupted MBR, MBR repair does not recognise

I don't think anything was wrong with your MBR or your drive when the newly created partitions showed up as raw. I'm afraid I don't know why it sometimes can't be selected by the drop down menu in gparted. Some background may help you understand what should be happening, however.

First: the MBR. For an external drive the MBR is only a container for the primary partition table. That table takes up most of the last 64 bytes of the MBR, which is itself the first 512 bytes of data on the drive.

For a bootable drive the MBR contains code to load the beginning of grub, or to load the beginning of the first bootable partition (e.g. Windows or DOS). The latter is usually pretty interchangeable and you can use the Windows utilities to replace a vanilla one for that matter. If the drive needs something special there, however, it could use a special manufacturer provided MBR. For recent drives that's probably pretty unusual.

When you used gparted you specified a type for each partition. You should make sure that those are correct.

The partitions are raw until you create file systems on them. They can be Ext 3, for Unix, or NTFS or a version of FAT for Windows. For Ubuntu this is usually done by the Ubuntu installer. gparted wrote a new primary partition table at the end of the external disks MBR, and maybe wrote some other partition information elsewhere if you defined any external partitions. The Ubuntu installer will fill the partitions you tell it to with the file systems you tell it to create, wiping out any data there. Then they will no longer be raw (though the swap one will be).

When installing Ubuntu the system will also want to install GRUB2 to produce a boot window to select what system to boot. By default this goes on the primary disk (the one the system boots from). This changes the code in the first part of the MBR on that drive and installs Grub2 on some (usually) free space between the MBR and the end of the first track. (The MBR is the first sector of the first track of a drive).

Grub could also be installed on the MBR on secondary disk if you can tell your BIOS to boot from there.

It can also be installed into partitions on the secondary disk. If you do that you need to be sure the code in the MBR is good, the one installed by Windows would work fine. The partition with Grub installed would have to be marked as the bootable one.

When you are booting Windows, Grub finds the partition it is on and then loads the first sector of its partition, just like the original MBR did. When booting a Linux kernel Grub actually loads the whole kernel and starts it up.

Since the primary partition table takes up most of the last 64 of the last 66 bytes of the MBR you can't simply use a sector copy to replace it without wiping out your partition table. If you've done that, however, you should be able to use gparted to recreate it. gparted shouldn't wipe out the code part of the MBR in any case.


Connecting windows 10pc to Ubuntu 14.04.04 Samba Server

Are you sure you can contact the server VIA the VPN?

Have you tried pinging it by IP address and by hostname? (To get the Internal IP address of your server go to your command line and type ipconfig)

if you can ping via IP address and not by hostname you will need to map the drive as such \XXX.XXX.XXX.XXX\Sharename (Replacing the X's with your internal IP address)

If you dont wish to map by IP address every time you will need to edit your windows 10 Host File to include the name of your server, confirm this has worked correctly by pinging the hostname in CMD.


It is possible modemmanger does not support sms or ussd for this modem. another way to check ussd and sms is to use picocom by giving AT commands.

install picocom:

sudo apt install picocom

to be able to issue the AT commands you would have to disable the internet connection to free the modem

next find out the various ports of the modem:
ls /dev/ttyU*

usually you would be presented with three ports;

dialogue port (ie 1st port) is /dev/ttyUSB0
audio  port (ie 2nd port) is /dev/ttyUSB1   (audio and microphone if supported)
sms & internet aka data  port (ie 3rd port) is /dev/ttyUSB3

start picocom on the dialogue port:

sudo picocom -c /dev/ttyUSB0
the -c means local echo on, making AT commands visible as you type

now check USSD:

AT+CUSD=1,"*333#"

sometimes the response may be in unreadable characters. to correct that, before
issuing the ussd command, you would have to set the modem to gsm mode with

AT+CSCS="GSM"

followed by the ussd command


Will Ubuntu and Kubuntu both be upgraded?

Yes, a system upgrade will upgrade all packages including KDE and Gnome, no matter whether you're using Ubuntu or Kubuntu.


Desktop icons keep rearranging whenever I refresh the desktop or boot the system

Open a terminal and enter the following commands:

cd ~/.local/share/gvfs-metadata
sudo chown $USER home
chmod 755 home

This allows your desktop software to change/save the icon configuration.
(Thanks to the community for correcting spelling and syntax errors.)


VirtualBox "Kernel driver not installed" error despite running /sbin/vboxconfig

same problem with me,
abort it if you not use vagrant.

the output when i run vagrant up:

The provider 'virtualbox' that was requested to back the machine
'default' is reporting that it isn't usable on this system. The
reason is shown below:

VirtualBox is complaining that the kernel module is not loaded. Please
run `VBoxManage --version` or open the VirtualBox GUI to see the error
message which should contain instructions on how to fix this error.

output VBoxManage --version:

WARNING: The vboxdrv kernel module is not loaded. Either there is no module
         available for the current kernel (3.19.0-47-generic) or it failed to
         load. Please recompile the kernel module and install it by

           sudo /sbin/rcvboxdrv setup

         You will not be able to start VMs until this problem is fixed.
5.0.14r105127

output sudo /sbin/rcvboxdrv setup:

Bad argument setup

My problem solved after run this command sudo /usr/lib/virtualbox/vboxdrv.sh setup

$ sudo /usr/lib/virtualbox/vboxdrv.sh setup
Stopping VirtualBox kernel modules ...done.
Recompiling VirtualBox kernel modules ...done.
Starting VirtualBox kernel modules ...done.
$ VBoxManage --version
5.0.14r105127


Problem Opening Programs and Where is what I intall?

When installing new software you should use either the Ubuntu Software Center or sudo apt-get install <applicationNameHere>.  If you are downloading tars or zips, you are going to have a harder time finding/running them.

As for Java and Minecraft, run the following command from the Terminal:

java -version

Does it return your current version of Java?  Or does it reply with command not found?  It should return output similar to this:

$ java -version
java version "1.7.0_45"
Java(TM) SE Runtime Environment (build 1.7.0_45-b18)
Java HotSpot(TM) 64-Bit Server VM (build 24.45-b08, mixed mode)

If it returns command not found then you will need to follow the steps listed in this question to install Java: How do I install Java?

Once you have done that and are getting correct output from running a java -version, then you can download Minecraft from here: https://s3.amazonaws.com/Minecraft.Download/launcher/Minecraft.jar

Minecraft (for Linux) comes delivered in a Java ARchive or JAR file.  You can run this using Java.  First, copy Minecraft.jar from your ~/Downloads directory to another location.  I created a "minecraft" directory under my home directory for this purpose:

cd ~
mkdir minecraft
cd minecraft
mv ../Downloads/Minecraft.jar .

To run Minecraft, (in the future) just change to that directory and invoke it with Java:

cd ~/minecraft
java -jar Minecraft.jar

Remember, Ubuntu (Linux) is case-sensitive, so make sure you don't alter the case of any of these commands.  You can also do other things like give Minecraft (Java) more memory, or create a clickable desktop icon, but this should be enough to get you started.


Which group do I need to add a user to to give them access to editing network connections?

Here's one way to do it by narrowing the scope of sudo users and commands.

Create a new sudoers file by any name:

sudo visudo -f /etc/sudoers.d/network-config

Add the contents of the file (with real usernames and any real additional commands of course)...

User_Alias NET_CFG_USERS = username1, username2, username3
Cmnd_Alias NET_CFG_CMNDS = /usr/bin/nm-connection-editor, command2, command3
NET_CFG_USERS ALL = (root) NET_CFG_CMNDS

Save & quit. Now the named users can open a terminal to change settings, using their own password:

sudo nm-connection-editor

Success?

Some notes: It is critical that you use visudo and no other method for this, or else sudo may break. Please consider reading that post first to make sure you avoid the problem. In short, sudo appears to have been programmed not to work at all if the permissions of a sudoers file is not 0440. The visudo command creates files with the right permissions. Whereas, were you to do this:

sudo -e /etc/sudoers.d/network-config

you could temporarily wind up without administrative access.


How to see which graphics card is loaded on start or install

What does your /etc/X11/xorg.congf look like and what does this produce:

fglrxinfo

If you haven't added the additional proprietary driver for your card, its easy to check by running the following commands in terminal

sudo su
cat /sys/kernel/debug/vgaswitcheroo/switch

the fglrx proprietary driver takes this away. so if you install a fresh system etc, see the output. It gives an output like-

0:IGD:+:Pwr:0000:00:02.0

1:DIS: :Off:0000:01:00.0

IGD = integrated graphics, DIS = discrete graphics, on an HP it might show both as powered, and the '+' sign will show which one is in use.


Error while installing Shutter on Ubuntu 12.04!

I had this problem with Shutter some time ago, the reason is that you got broken dependencies.
Run this in Terminal:

sudo apt-get autoremove
sudo apt-get install -f

You can also use some Tweaks from time to time to clean your apt cache, configs, etc. For example Ubuntu Tweak, that what I used when this happend. After this I advice you to use Synaptic or Ubuntu Software Center to install Shutter.


When Ubuntu is used on a tablet will it function like a computer?

As far as I'm informed, yes. They will function closely the same.

I can't imagine, not being able to use Open Office. This I will almost guarantee.


Your key problem is this:

  trying to overwrite '/usr/lib/x86_64-linux-gnu/libGLESv1_CM.so.1',
  which is also in package nvidia-340 340.106-0ubuntu3

This happens occasionally.  You must choose between libgles1 and nvidia-340 340.106-0ubuntu3.  apt remove one of them and then complete the install.

Being as this is the nvidia package, you may see an effect on your desktop but with failsafe X, you shouldn't end up with no GUI at all.  It will just look strange until you reinstall the nvidia drivers.

Once you have resolved the conflict and done an apt update you may be able to get them both installed, but that depends on whether these packages are truly compatible on the one system, and that can also depend on where you got them from.

More dangerous solution

If it's really the only way, delete the file /usr/lib/x86_64-linux-gnu/libGLESv1_CM.so.1 and attempt a apt -f install.   Beware, though, that this means that your system will be in an untested state, and you should, at the very least, run a system checksum test to ensure every file is where it should be.


Where does Desktop Telegram save sent pictures?

It usually saves pictures here: ~/Downloads/Telegram Desktop/Pictures


Wifi is not activated, but by restarting network-manager

I found a workaround by removing the network-manager with

     sudo apt-get remove network-manager

after having installed wicd, of course. Then, I added wicd to the startup applications and it works now. Only on the first recovery from suspension do I have to refresh and reconnect the desired network, but it works.


Ended up being bad sectors on the HDD. Drive was dead.


Upgrade from 12.04 to 14.04. Kernel not upgraded

I found a link to a problem like this in another post:  I would stress that prior to attempting the upgrades, you should back up your data.

The post suggested that perhaps the linux meta-package had been removed, and that the solution is to re-install this package.

sudo apt-get install linux linux-generic
sudo apt-get update
sudo apt-get dist-upgrade

The original answer goes on to discuss that prior kernels will still be present on your system, and could be accessed through the grub menu.


Can I first install a package on Ubuntu, then add its PPA?

In general: yes. The software will get updated if the PPA has a -higher- version number.

Technically you could add a PPA that holds a lower version and it would not install that but install the normal/current one from the official repositories if you do not use apt-get and use the pkg=version method.


Help! I broke apt-get with partial install of ubuntu-restricted-extras

Here's a good article on what to do when apt-get breaks. http://www.linux.com/archive/feed/48910

Basically, try to re-install with -f flag (to force) the offending package.  If that doesn't work try remove, then with -f flag.

Also - a good practice that doesn't seem to be actively encouraged by the Ubuntu installer is to have /home and / on different partitions, so that you can freely reinstall the core OS without affecting most of your settings, which makes recovering from fatal issues easier.  Great tip when you're still learning.


You don't need to plug in a bootable USB when using the Additional Drivers utility. All you need is a working internet connection in case you want to install a driver. In case you can't connect to the internet following the instructions in How can I install software or packages without Internet (offline)? and My WiFi adapter is not working at all, how to troubleshoot?.


Tried factory resetting computer, crashed

No it has nothing to do with Wubi. Wubi installs Ubuntu as a software in windows 7. If your factory reset is done and still its saying BOOTMGR missing then you can  use a windows 7 repair disc or windows 7 live usb or live cd

boot from any of the above windows disc and go to repair but not to use startup repair instead repair using windows command prompt

type the following two commands in cmd exactly

Bootrec/fixmbr 'press enter'

Bootrec/fixboot 'press enter'

now reboot u can see windows boot loader again.

or

if you can get windows repair disc or os disc or live usb then use factory reset again it may solve your problem


Ubuntu 14.04: Folding at Home crashed with SIGSEV in strlen()

Folding@Home is extremely vector-intensive and you need a GPU to do anything reasonable nowadays...  Look for another @Home project to give your CPU cycles to (something that doesn't need a GPU)...

Sorry to be the harbinger of bad news...

If you insist on using F@H, set the gpu-usage setting to 0.  If you don't know how to do that, head over to the Folding@Home Support forum because this is now really getting off-topic on Ask Ubuntu!


How to start application from command line without blocking but move the focus on it?

You can do it with wmctrl . Install it with sudo apt-get install wmctrl.

Manual: [wmctrl manpage]

Example:

wmctrl -a chrome

Switches to the desktop containing the chrome window, raises it, and gives focus.

So after starting your program, run wmctrl -a bcompare.

As for your request, this is a not-so-elegant-way to check if the command is available, and if not it, try to install the package. (Consider it a bad hack, I think it should be a different question to answer this properly. For starters: it should have queried the package database.)

package="wmctrl"
required_command="wmctrl"
installed=`type -p $required_command`
if [ "$installed" == "" ]
then
    sudo apt-get install "$package"
fi


I'd suggest that you take a look at the OpenStack Dashboard - Horizon; this provides tenants with Web based access to an OpenStack cloud for managing instances etc...


How to mark an option for install during burg install (non-graphical install)

For record purposes,this is the burg wiki page containing detailed instructions about how to install it on Ubuntu:
http://code.google.com/p/burg/wiki/InstallUbuntu


Read man gpsd. It says, in part:

Client applications will communicate with gpsd via a TCP/IP port, 2947
by default). Both IPv4 and IPv6 connections are supported and a client
may connect via either.


There appear to be a few bugs about this, though none that is getting much action:

https://gitlab.gnome.org/GNOME/mutter/-/issues/1505
https://gitlab.gnome.org/GNOME/gnome-settings-daemon/-/issues/555
https://bugs.launchpad.net/ubuntu/+source/gnome-settings-daemon/+bug/1899509
https://github.com/pop-os/gnome-control-center/issues/120
https://www.reddit.com/r/System76/comments/j3ozik/pop_2004_updates_from_today_break_mouse_settings/

Looks like tomorrow will be a month that we've all been dealing with this.
:(


How to copy and paste all text recovered in Terminal with `strings` command?

strings will print only the printable characters in a file. To get what you want you just need to save the output of strings to another file and then read the new file in the usual manner. Here is the way:

strings foo.doc > bar.doc

Now bar.doc will contain the strings having printable characters from foo.doc.


is there a way to figure out how the disk space is getting used

It's because you execute the command on your /home folder, so the du only recognizes disk usage within /home, you have to specify the whole root partition. Try something like:

sudo du -sch * /

Will list total size of / (root) directory, now you should be able to see where the 141 GB remaining size.


If the "Something Else" partitioning option is showing the disk as completely unpartitioned, then chances are you've run into a libparted bug that causes tools that use that library (such as the Ubuntu installer) to think the disk is empty when in fact the partition table is not to libparted's liking. This problem can often (but not always) be fixed by my FixParts program, which is part of the gdisk or gptfdisk (I don't recall which offhand) package in Ubuntu. See this page for more on this problem.


ls -p | grep -v /

Using ls -p tells ls to append a slash to entries which are a directory, and using grep -v / tells grep to return only lines not containing a slash.


Battery unknown, stays at 0% but holds battery fine

From the comments...
The Power Manager controls all power in/out of the computer. Sometimes it gets confused.
Shutdown the computer if it's running, unplug the laptop from AC power, hold down the POWER button for one minute. This should reset the Power Manager. Replug AC and check the battery again. You may need to charge the battery again for it to read correctly.
Update #1:
Also updated the BIOS to version N2HET57W (1.40).


404 Not found error when I type sudo apt-get update

That's correct and the reason is: No packages for Trusty in this PPA. Remove the PPA. Open a terminal and run:

find /etc/apt -type f -name '*.list' -exec sudo sed -i '/gwibber-daily/d' {} \;
sudo apt-get update

The package gwibber is in the Trusty Universe repositories. To enable the repository:

sudo apt-add-repository universe
sudo apt-get update


Run sudo apt-get install libdpkg-perl=1.17.5ubuntu5 to downgrade libdpkg-perl.

You somehow installed a newer version of the package than what is in the repositories, which is causing problems with other packages.


Unable to connect to webserver from outside

Try to add forwarding for 8888 port to yourmachine:80 and check it from the internet.
I had problems with forwarding if the router has web interface on the 80 port.


How to share data Internet connection of Android Galaxy A01 with Ubuntu?

On the phone go to Settings -> Connections -> Mobile Networks -> Access Point Names -> select SIM you want -> click on the access point name you use, edit APN type: add ",dun" at the end. Mine looks like "default,dun".

Tap the menu button on top right and tap Save. It should restart the data connection.

Try to use hotspot. If it doesn't work then continue.

Delete all other access point names on the phone.

Try to use hotspot. If it doesn't work then continue.

Enable developer mode on the phone.

Install adb on the Ubuntu (sudo apt install adb).

Connect the phone via USB to the PC.

Run adb shell in the PC. The phone will ask to allow debugger connection. May need to confirm several times before getting into the shell.

In the shell run the command: settings put global tether_dun_required 0

Try to use hotspot. If it doesn't work then continue.

Restart the phone.

On the phone in the APN settings verify again that there is "dun" in the APN type.

Source from Google support forums "Nexus 5(android 5.1) creates hotspot but no internet access"


How to reinstall gnome classic clock in 16.04

Check clock settings and make sure you mark up show a clock in the menu bar option.

If it not editable or responsive then follow this steps .

First make sure your Ubuntu is Upgraded

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

then reinstall gnome-control-center

sudo apt-get install --reinstall gnome-control-center

then restart the task bar service by

sudo killall unity-panel-service


failure in making bootable win 10 64 bit with woeusb

Take care of two thing and try again.

A USB drive with at least 6 GB of space.
Format it in NTFS.


How does one install Canon MG series printer / scanner

Canon printers all seem to share the same debian driver. I test this with the Canon MG7520 printer on Ubuntu 14.04.

Printer Installation Steps

Download the debian driver found here on Canon's Website:

http://support-asia.canon-asia.com/contents/ASIA/EN/0100626502.html

Extract the tar.gz file and then run the install.sh file:

tar -xvf cnijfilter2-5.00-1-deb.tar.gz
cd cnijfilter2-5.00-1-deb
./install.sh

Installing the scanner

The scanner can be found here:
http://support-ph.canon-asia.com/contents/PH/EN/0100627102.html

Repeat the same steps:

Download the tar file
Extract
run ./install.sh file

After installing the scanner run:

scangearmp2 to start the scanner software. It'll scan for your scanner.

Sources:

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


how to install KDE on Ubuntu ? I tried to install kubuntu, but installations failed 2 times

I am assuming from you question that you tried to install Kubunutu as an operating system, that failed so you installed vanilla Ubuntu and now want to install KDE?

That should be as simple as:

sudo apt-get install kubuntu-desktop

you can replace kubuntu-desktop with kde-full for extras or kde-plasma-desktop for the bare minimum. For more detail see here.


syntax error near unexpected token newline' doctype html ' while installing zpanel

The <!DOCTYPE html> line is a DOCTYPE declaration for HTML documents, so it looks like you are fetching a web page instead of the script. Either open the script link in your browser and copy-paste the script source manually into a text file and save it as "10_1_1.sh" in your terminal's working directory, or try to use curl in place of wget (in either cases you can then follow the other instructions):

curl -o 10_1_1.sh https://raw.github.com/zpanel/installers/master/install/Ubuntu-12_04/10_1_1.sh


eth0 and wlan0 missing from ifconfig (Ubuntu 16.04)

I suspect the linux-image-extra did not get installed with a kernel update.
Try sudo apt-get install --reinstall linux-image-extra-$(uname -r)
Then reboot


Wifi cannot reconnect in any way after long time sleep/suspend/hibernate

I recently had this problem with Elementary OS. I tried everything under the Google sun, but the only thing that solved my problem was to do a very hard turning off and on by reinstalling the OS.

I understand that this is not thy type of answer you were looking for, but it is a potentially valid solution, if all else fails. I believe that there is a prolific variety of Q&A on this very problem through the Internet. I encourage you to look through these and to report the results here.


If you plan to use it exclusively on Linux, stick with a Unix file system, such as XFS or EXT4.

If you need to use it cross-platform you should probably go with either NTFS or ExFAT.

Native file systems (e.g. XFS, EXT4) have better tools available for Linux, for recovery and maintenance, and probably a more complete implementation.


Ctrl -C, Ctrl -V not working in different keyboard layout

As said above this is a known bug, however there is a simple fix shown here:

https://gist.github.com/d3zorg/3f71ee24b1a0a288ce27

sudo add-apt-repository ppa:attente/java-non-latin-shortcuts
sudo apt-get update
sudo apt-get upgrade
restart unity-settings-daemon


ImageMagick cannot be detected by moviepy?

I have the same problem and I also try both answer of pauljohn32 but it does not work. However, I have solved the problem.

First of all, I install libmagick++-dev by using sudo apt install libmagick++-dev. Secondly, I follow the suggestion from reddit. Specifically, I open policy.xml of ImageMagick by using command: sudo vim /etc/ImageMagick-6/policy.xml and then comment the @ policy by change from <policy domain="path" rights="none" pattern="@*" /> to <!--<policy domain="path" rights="none" pattern="@*" /> -->.

I hope it works for your case


Terminal asks for password but does not let me enter anything (15.04)

When at the Terminal and it asks you for a password, it seems that you're not writing, but actually you are.

Try to write your password again and press Enter


Nvidia driver 430 crashes KUBUNTU 18.04 LTS

Using 16.04 LTS here, running nvidia binary driver 384.130 without problems.

Before switching driver, uninstall any separately downloaded nvidia driver.
You might need to run the uninstall from the recovery console and Reboot.

Find and open "System settings" (In the left side panel on 16.04)
then goto "Software and updates" and find the /Additional drivers\ -tab.

Select the proprietary driver, I'd recommend to try a version that reads "tested".

For running GPU stuff, you might need to install "cuda" also...
Open a shell (CTRL-SHIFT+T) then type sudo apt-get install nvidia-cuda- and hit TAB a couple times(?) to find a version compatible to the driver above (continue typing after the items are shown to select one). There might be only one... (nvidia-cuda-toolkit is what I see in 16.04)


Has anyone been able to get Ubuntu 12.10 to run on a LT4004U netbook?

As of now the only solution I know is to avoid Ubuntu 12.10 and install Ubuntu 12.04 or anything else (recent). I wouldn't expect big news for at least a couple of weeks.
I searched a lot and with some work it seems that you can make it work with the vesa driver, which IMHO is unacceptable.


Your fullname (or display name) may be in the form firstname-space-initial-period but your Unix username (as required at the commandline login prompt) will be a single word like john or smithj or janesmith99

If you can't remember what username you used when you set up the account (and you can't open an application such as the Nautilus file manager that would enable you to figure it out - by default, the username will be the same as the final component of the pathname of your home directory), then you can reboot into recovery mode and check for your username in the /etc/passwd file - either by using

less /etc/passwd

to display the whole file, or for example using a command like

awk -F: '/FirstName/ {print $1}' /etc/passwd

where FirstName is replaced by your actual first name (or any other distinguising part of your fullname that you are certain you used) to match and print the relevant entry.

You should then be able to reboot, select the CtrlAltF1 virtual terminal once more, and try again with the recovered username.


Ubuntu/Xubuntu install crashes when trying to add partition

[SOLVED]

It was a problem with the specific hard drive I was using. I put in a another one and it works perfectly fine.


I think the error is to run all commands together (Like a single command).
Please try to run first...

sudo add-apt-repository ppa:ubuntu-x-swat/x-updates

Then hit Enter to add the repository, and finally run the...

sudo apt-get update && sudo apt-get install *Pkg to install*

The && will execute commands in series, and only if the first things return success.

Kind Regards.


Ubuntu keeps restarting while installing alongside win 8 option

Yeah.. Finally done with the installation.

The ISO file was having problem. I have downloaded from the Ubuntu site only.

The wubi.exe in the installation file was corrupt and was showing as unable to find the correct image in the logs.

Hence the file (wubi.exe) was re-downloaded from the below link

http://ftp.ticklers.org/releases.ubuntu.org/releases//precise/wubi.exe

and then copied to the USB and the installation worked like a charm.


Accessing tty1 through 6 takes unreasonably long

This sounds very much like either/both a kernel and an xorg-server issue.

One potential solution is to install the 3.16 Utopic + latest xorg-server stack.

To do this you could follow the community recommended installation instructions:

https://wiki.ubuntu.com/Kernel/LTSEnablementStack

In summary:

sudo apt-get install --install-recommends linux-generic-lts-utopic xserver-xorg-lts-utopic libgl1-mesa-glx-lts-utopic

However, I have noted in my blog you should simulate this installation first and check carefully the packages that would be removed.

sudo apt-get -s install --install-recommends linux-generic-lts-utopic xserver-xorg-lts-utopic libgl1-mesa-glx-lts-utopic

Once you are happy that no vital packages will be removed, remove the -s parameter to install the Hardware Enablement Stack


You can't delete the account on your own, but you can ask the Ubuntu One support to do it for you, here.

Before asking them, you should read this entry on the FAQ that mentions all the details involved in deleting an account. Make sure you understand what accounts, websites, files and services will no longer be accessible for you, and if you still want to delete it, write to the support team mentioning that you don't mind losing access to everything attached to the account. Make sure you send your message from the email address of the account you want to delete.


Cant use apt because of gnome-settings-daemon

i fixed it.
it was a problem with my repositories -- i had added the kali repository for the tools, and it was trying to install kali's gnome over ubuntu's gnome. it is all good!


db.changeVersion doesn't work as expected

I resolved my problem writing this function, that permits to upgrade from any version of the DB to the last version without problems.

/* We need this function because db.version is in the .ini file, that is update only by Javascript Garbage Collection.
 * So, we have to upgrade from actual version to the last version using only once db.changeVersion.
 * To avoid to have a lot of switch and spaghetti-code, this function allow to add new db version without modify old sql
 *
 * IMPORTANT: NUMBER OF VERSION HAVE TO BE INT (e.g. 0.1, not 0.1.1)
 */
function upgradeDB() {
    // This is the array with all the sql code, insert your update at the last
    var sqlcode = [
        'CREATE TABLE IF NOT EXISTS Calculations(id INTEGER PRIMARY KEY, calc TEXT)',
        'ALTER TABLE Calculations ADD insertDate INTEGER NOT NULL DEFAULT 0'
    ]

    // This is the last version of the DB, remember to update when you insert a new version
    var lastVersion = "0.2";

    // Hack for change old numeration with new one
    if (db.version == "0.1.1") {
        db.changeVersion("0.1.1", "0.2");
        console.log("Fixed DB!");
    }

    // So, let's start the version change...
    db.changeVersion(db.version, lastVersion,
        function(tx) {
            if (db.version < 0.1) {
                tx.executeSql(sqlcode[0]);
                console.log('Database upgraded to 0.1');
            }
            if (db.version < 0.2) {
                tx.executeSql(sqlcode[1]);
                console.log('Database upgraded to 0.2');
            }

            /* This is the structure of the update:
             * n is the number of version that sql update to
             * m is the number of the sql element in the array. Remember that the number of the first element of array is 0 ;)
            if (db.version < n) {
                tx.executeSql(sqlcode[m]);
                console.log('Database upgraded to n');
            }
            */
        }); // Finish db.changeVersion
}


How do I fix this problem with grub after installing Ubuntu server?

You need to install grub2. For doing that you need a LiveCD of Ubuntu. Then:

1- Boot with your LiveCD.

2- Open a terminal.

3- Determine the partition where your Ubuntu is. (let's say it's sda6)

sudo fdisk -l

4- Mount the drive with

sudo mount /dev/sda6 /mnt/

5- Intall grub as root with

sudo grub-install /dev/sda --root-directory=/mnt

6- Reboot your system.


Unable to access any kind of Terminal( terminal, uxterm, xterm, Guake terminal...) on my PC

Troubleshooting option #1

Open file manager, enable viewing hidden files, remove .bashrc and .profile or move them to another location other than your home directory.

Troubleshooting option #2

Access terminal via AltF2 and run gnome-terminal -e dash, which will open gnome-terminal with  Debian Amquist Shell (dash) instead of Bourne Again Shell (bash).

Troubleshooting option #3

When booting a computer, get to OS selection screen (commonly know as grub, you may need to press Shift button several times before computer shows purple screen). From there select Advanced options for Ubuntu -> Ubuntu with kernel 3.xx (recovery ) -> root shell

You will need to remount file system with mount / -o remount,rw to be able to make any changes to files on the disk.

Troubleshooting option #4

Go to System Settings -> User Accounts. Create another admin user. Log in as that new admin user and open terminal. Navigate to your  home folder, run sudo chown newusername:newusername .bashrc .profile. Once you delete those files or edit them, run chown and change ownership back to your old username.


Windows 7 does not work after Linux installation?

Boot into Ubuntu and check if the Windows Partition is still there on your hard drive and that it can be viewed.
Use your Windows Disc to boot.
Select the "Repair this Computer" option.
Select the option to use command prompt.
Issue the following command:

bootrec /fixmbr

MAKE A BACKUP of your important files first.
you will then be able to boot into Windows only.
To restore GRUB follow the answer to this question.


How can I add Ubuntu to a windows domain?

I'm not sure, but you also need to edit /etc/nsswitch.conf and change "host" line like this:

hosts:    wins files mdns4_minimal [NOTFOUND=return] dns mdns4

At least, it helped me


sudo dpkg --configure -a fixes apt-get file lockdown. Subsequent package install results in package removal interrupted earlier

This answers your actual question, but I don't think it's what you want.

From man dpkg

   --configure package...|-a|--pending
          Configure a package which has been unpacked but not yet configured.
          If -a or --pending is given instead of package, all
          unpacked but unconfigured packages are configured.

ie. the command continued what you ^C aborted earlier.

ps:  I find the reference man pages really helpful, along with tools such as apropos to find the page you need, or info etc they provide answers quick in my opinion


Is the rewrite module activated for nginx in the Wordpress juju

I added the following to the /etc/nginx/sites-available/wordpress which seems to have fixed the issue.

# Wordpress permalinks
if (!-e $request_filename) {
 rewrite ^(.*)$ /index.php?q=$1 last;
 break;
}

Is this a good way to do it or does the charm have to be modified to include this?