How to connect HP printer with PC via Wi-Fi?

Depending on which router you have you should log into it and set an IP address/MAC address combination.

This will usually be a menu option in the DHCP settings.

Log in to your Router (usually) with the address 192.168.1.1 in your browser), enter the username and password for the router (often admin and admin respectively) and add the static IP address you require and MAC address association (MAC address often given on the status page of the printer) and save to exit the program.

That will then set your printer to always use that IP address on the WiFi network.


How can I copy only odd numbered lines from one file to another?

You could use sed:

sed '2~2d' file > new-file

This starts from the second line, matches every 2nd line after that, and deletes the matched lines from the stream. The remaining odd-numbered lines are redirected to a new file.


I suddenly cannot connect to my server via all service (PuTTY, Ftp, Vesta and Phpmyadmin )

Have you enabled the services you want to use? Try

sudo ufw allow ssh
sudo ufw allow http
sudo ufw allow ftp

The SSH line would let you login from PuTTy again.


USB Webcam microphone not working until re-plugged

SOLUTION:
I was looking through the output of the:
pacmd list-sources

and noticed that my * index: 1 device had state: SUSPENDED ( * - indicates that the device is the default one)
There is a solution for such situation described on the wiki.archlinux
So I opened /etc/pulse/default.pa
and commented out the line:
load-module module-suspend-on-idle

restarted pulseaudio:
pulseaudio -k

and now in the output of the:
pacmd list-sources

* index 1 device has state: IDLE (and the state changes to RUNNING - when it's used by an application for ex. guvcview)
So that's the solution.
As well I'd also like to mention that I previously experienced the situation when the mic of this device wouldn't record audio at all. And the solution was to choose "Analogue Stereo Output" in the Buit-In Audio section on the Configuration tab of the Volume Control app (pavucontrol). This way I got rid of the conflict - when the system didn't know what source to use - the built-in mic or the external one.


OK. Just to make sure I'm understanding correctly. You are able to login, but the resolutions are wrong.

If that is the case, let's start with the simple things first. In the upper right hand corner you should see a "gear" icon. Click on it, then select 'System Settings' > Display.
From here select 'Detect Monitor'. After that, attempt to adjust your monitor settings.
(Caveat, I know this seems really simple, but some solutions are.)

If that didn't work. Return to the 'System Settings' window and select 'Hardware'.
From here, see what Video drivers are being offered. One of them is probably selected, and has a green bubble beside it. Select another driver, if available. Your best recourse may be to deselect the currently selected driver to see if it will use the Nuveau driver(or other default driver) instead. The Nuveau driver is non proprietary, and works well on most nVidia cards I've dealt with, but it doesn't support 3D rendering on serveral nVidia cards. I'm not as familiar with ATI cards, but a similar process should yield similar results.

Hope this is helpful. Please respond if helps/doesn't help or if I'm not understanding the situation properly.


Screen Brightness wont change Ubuntu 18.04 Intel

Fixed with echo 4 | sudo tee -a  /sys/class/backlight/intel_backlight/brightness
Odd since my backlight file/folder wasnt there before, but it's working great for me.


What does successively pressing the Ctrl key twice do?

That's just the "show mouse" highlight.

Settings -> Mouse and Touchpad -> Show position of pointer when the Control key is pressed.


mount -o remount,rw /
mount /usr
/usr/bin/passwd root

reboot

where

you need to mount / with rw to mount /usr
you need /usr for passwd command.


How do I reset my unity configuration on 15.04?

I had the same problem. This question is rather old, but still, here is the solution that worked for me:

To reset the the configuration run this:

dconf reset -f /org/compiz/

Than, to reset unity run:

setsid unity

Source:

http://ubuntuhandbook.org/index.php/2014/04/reset-unity-and-compiz-settings-in-ubuntu-14-04/

If you are wondering as I was, this is what setsid is doing: http://linux.die.net/man/2/setsid


It depends. The two most popular options are tarballs and zip files, but they both are lacking:

.tar tape archives are a very popular option for most Linux users. It preserves UNIX file permissions (which is important for a backup) and hard links. It's supported out-of-the box on every Linux distro I've tested, as well as some Windows programs like 7-zip. However, tar has several limitations and drawbacks for the back-up use-case, as explained by the Duplicity developers. It can be very slow: even to get a list of filenames stored in the archive, the entire archive must be read. It also doesn't handle detailed meta-data that some newer filesystems have.
.zip zip files acts as both an archive and a compression format. For speed, you can disable compression completely. Zip files are better than tape archives in that they store a type of table of contents, allowing programs to quickly jump to the specific file they need to extract. It also stores checksums for the contents of each file, to allow for easy file corruption detection. Zip files are extremely popular, unfortunately, they are not suitable for Linux back-ups because they do not store simple file permissions.

Here are two more options that are, sadly, also lacking:

.7z 7z compressed archives have some excellent features such as encryption and support for very large files. Unfortunately, it does not store UNIX file permissions, so it is not suitable for Linux back-ups.
.ar classic UNIX archives are the predecessor to tar archives, and suffer from the same limitations as tar archives.

In my opinion, there is no completely robust back-up archive format for Linux back-ups, none that are sufficiently well-known to warrant my trust, any way.

One way to overcome the limitations of each of these formats is to combine them: for example, archive each file individually in a tar archive, and then archive all of these tarballs in one zip file.

If you want a really robust back-up, you should probably look into these solutions instead:

back-up directly on to an external hard disk, with the same file system on both source and destination. This ensures that you will store each file's permissions and metadata exactly as intended. (As an aside, the owners and group owners of files are stored using their userid and groupid numbers, not their names.)
Use full-disk imaging and cloning software, like CloneZilla. You can't retrieve one file from one of these back-ups, but you can be absolutely sure that you have saved everything you possibly can.

And remember, always remember: you can only be confident of your back-ups if you have attempted to restore them. If the worst came to worst and your source hard-drive was completely destroyed, could you restore everything you need to restore to a new hard-drive? Would it work as you expect? Try restoring your back-up to a new hard-disk and try running from that hard-disk for a couple of days. If you notice anything missing, you know your back-up wasn't thorough enough.

Also think about where you are keeping your back-ups. You need at least some back-ups that are not in same building as the source disks to protect yourself from theft or fire. Some options for this are the cloud, or a friend's house.


Problem with Partitioning when installing Ubuntu 12.04

You can use any live CD of ubuntu to fixed the problem when get a window for installing ubuntu there select

  install now

and may open partition editor like GParted software! and right now edit your hardisk.


Ubuntustudio is not loading even after its succesfull installation

you must re install grub, the easiest way is to log into a live Ubuntu, then mount your insalled ubuntu partition lets say it is mounted at /media/ubuntu, then go to terminal and do:

sudo grub-install --boot-directory=/media/ubuntu sda


I was able to overcome this problem by making a backup locally to an external hard drive. After making this backup I was able to backup remotely without any problems.


I can't install the snap version of GIMP

"install-snap" change in progress means that it's installing. It's a graphical bug of gnome-software.


Figured it out.

Image by Alin Andrey, WebUpd8

It is problem with your xorg-edgers packages ...

xorg-edgers precise ppa

Thus. I have not idea why your packages was downgraded, or some package that tried to be updated have dependencies to updated package. Possible way it is:

  Check your Software Sources.

  If it needed install ppa-purge:
   sudo apt-get install ppa-purge

  Refer to this link for how-to-use ppa-purge:
   Install PPA-Purge With Multi-Arch Support In
   Ubuntu

  Thus, first need to fix your Software Sources that to provide automatic updates.


How to install qtbase-abi-5-9-5 in Ubuntu 19.10?

qtbase-abi-5-9-5 is a virtual package used only in Ubuntu 18.04, it references the libqt5core5a package (see here) which is available in all currently supported releases, including 19.10:

sudo apt install libqt5core5a

Note that I was not able to find that with the search function on packages.ubuntu.com itself, but used a startpage search instead.

If the program tests for a package called qtbase-abi-5-9-5 instead of the qt5 library from the above package I’d just fake the package with equivs, see this answer and the steps here.


yes, this is normal
no, this does not impact on speed.

These are merely different desktop methods. The idea is for you to pick the one you like most and use that.
If you want to see what takes performance log in and type top on command line. It will list all processes with the one using the most at the "top".
Me using Budgie:
top - 15:06:14 up  6:05,  1 user,  load average: 0,51, 0,46, 0,42
Tasks: 376 total,   1 running, 375 sleeping,   0 stopped,   0 zombie
%Cpu(s):  2,7 us,  1,6 sy,  0,0 ni, 93,3 id,  2,4 wa,  0,0 hi,  0,0 si,  0,0 st
MiB Mem :  15815,5 total,   8713,1 free,   2401,1 used,   4701,3 buff/cache
MiB Swap:   2048,0 total,   2048,0 free,      0,0 used.  12507,3 avail Mem

    PID USER      PR  NI    VIRT    RES    SHR S  %CPU  %MEM     TIME+ COMMAND
  34256 rinzwind  20   0  988292  74872  45692 S  16,6   0,5   0:32.74 transmi+
   1023 root      20   0  661740 118256  74548 S   7,6   0,7  15:02.35 Xorg
   1392 rinzwind  20   0 1117264 130644  76704 S   7,3   0,8   5:46.60 budgie-+
  15191 rinzwind  20   0  511868  72552  57348 S   6,6   0,4   0:02.44 tilix
  14357 rinzwind  20   0 9063296 275888 165316 S   3,0   1,7   0:25.00 chrome
    502 root     -51   0       0      0      0 S   2,3   0,0   0:06.85 irq/146+
    503 root     -51   0       0      0      0 S   1,3   0,0   0:02.82 irq/147+
    500 root     -51   0       0      0      0 S   1,0   0,0   0:06.34 irq/144+

with Transmission, Tilix and chrome as programs active that I am using.


In nautilus you can not hide a certain file extension.

File extensions can be deceiving!

But I wrote a for loop in shell for you:

for file in *.xxx; do mv $file .${file%%}; done

This will hide all files with .xxx extension in your current working directory.


How do I change screen resolution in Dosbox through Wine?

I know this tread is a little old, but I just ran into this problem myself and solved it.

In the install folder that wine uses to run the game, there is a DOSBOX.CONF file (mine read dosboxDK.conf, where DK was the initials of the game). If you edit this as you would the normal dosbox.conf you will get the results you want.


Which version of Ubuntu Make should I use - from APT or from Snap?

As it was noted by @Thufir in the comment below the answer to the aforementioned question   -
Official Ubuntu Make Wiki page says that Snap package is not working in 17.10:

  Installing Ubuntu Make

  You can install the snap package (not working at the moment on 17.10)

$ snap install ubuntu-make

Moreover as we have already discovered - it does not work in Ubuntu 18.04 LTS too.
I reported issue 554 to the GitHub ubuntu/ubuntu-make bug-tracker about this problem.

So one should remove Snap version of Ubuntu Make with

sudo snap remove ubuntu-make

and then install version from repository

sudo apt-get install ubuntu-make

and afterwards install the application with umake command.


ssh fails because port 22 doesn't work with AT&T Uverse

Well, I figured it out.  I needed only to install openssh-server on the destination machine.  This completely solved the problem.

Also, I found out that if you want to use non-standard ports, you must tell ssh-server to listen with sudo /usr/sbin/sshd -p <port>.  I set it up on two machines so I had to specify an arbitrary port on the second machine as 22 was used by the first.  Also, the command must be executed with an absolute path for some reason.


Libre office Calc freezes wile working on a sheet in xlsx format

It seems like the issue was the auto save feature in office that periodically saved the file which made the whole system freeze for the duration of the save. Disabling the auto save feature completely solved the issue.


How do I add QtDeclarative to the pkg-config list

After more research, it would appear that the difference is that I have installed QT 5 in order to do development, and QtDeclarative has been subsumed into other components for QT 5.  The HsQML library is apparently designed for older versions of QT.  So the answer is that I should not be adding QtDeclarative to pkg-config at all, but should instead be looking to port HsQML to QT 5.


You can simply download synfig studio by typing this to your command line:
    $sudo apt-get update
    $sudo apt-get install synfigstudio


Anacron running running my daily task each hour

A better approach for me is to drop an executable script in /etc/cron.daily/ and you have no more worries.


How to enable Canonical Livepatch Services on official Ubuntu flavors such as Ubuntu MATE?

Here we have two problems:

Livepatch is not available for this system
Gnome Online Accounts is required to enable Livepatch

To solve the problems we need to install Livepatch as Snap and to install GNOME Online Accounts as deb-package with:

snap install canonical-livepatch
sudo apt-get install gnome-online-accounts gnome-control-center --no-install-recommends

and reboot.

On next opening of Software & Updates the Livepatch will welcome us to Sign in:

but the corresponding part of GNOME Control Center will not open on MATE session.

To open it we need to pass environmental variable to GNOME Control Center:

env XDG_CURRENT_DESKTOP=GNOME gnome-control-center online-accounts

and setup Ubuntu One account from here.

Then open Software & Updates (software-properties-gtk) again, navigate to Livepatch tab and click on Sign In... button, confirm your account and use Livepatch:

Note: it is free for 3 machines, buy more from corresponding Canonical Livepatch Service.


Unnecessary language packs installed during setup

This issue has been addressed at least here:

  The disk image approach not only allows the "try Ubuntu" feature but it is also faster to copy the image and uninstall the parts that aren't needed than to install over 1000 packages.

The person who posted that is quite involved in Ubuntu matters and has an Ask Ubuntu account as well.

The reason given also may explain why, when we choose a minimal install option, all packages are first installed and then packages like LibreOffice, etc are removed.


How do assign a new folder for scripts that Autokey recognizes?

Open the AutoKey interface.
Select Folder from the 'New' drop-down
Navigate to where the folder you want is and highlight it. Don't go into it.
Click ok
Add scripts as needed.


Setting file access permissions for an executable

Easy: Run the application in the guest session.  When you log out, everything the application always wanted to do but you were afraid to let it do will be gone!  ;-)


problem with dualboot windows 10 and ubuntu

Your laptop has a UEFI BIOS which is being run in legacy mode. It looks like it's now being run in full UEFI mode, or at least Ubuntu is booting up with grub using an ESP (EFI System Partition) it made on installation. Windows is now reliant on that ESP to boot. But your disk is formatted as an MBR (dos disk) and with Windows installed on such disks it cannot boot from an ESP or work in UEFI mode. Read this.

Ideally you should convert your disk from MBR to GPT. Windows will then be recognised and work in UEFI mode and boot from the ESP, although you may still need to do another LU boot-repair. Normally you lose everything on that disk on GPT conversion as it is wiped. But there is software that can perform this task for free without loss of data (so they claim). But you need to boot to Windows to download and run it. As it now seems the Windows System partition has been altered by Grub to an ESP you won't be able to do that directly without further work to restore the original Windows Boot Manager files, destroying the grub efi files as well. You can do this by booting Windows from a flash drive if you already have one, (or download W10 ISO in Ubuntu and make one and test it) then use its repair option.  If this doesn't work the best route is back up your data, and start from scratch, re-installing W10, changing your BIOS to UEFI mode first before you start. Windows will convert your disk to GPT during installation.


No sound in Ubuntu 16.04 LTS in VirtualBox?

This may help to fix the error:

In Ubuntu first click on the unity launcher option to show this menu:
Unity Launcher Menu
Type in 'Settings'
Click on the "Sound" option
Click on the relevant device once as shown in this picture: Sound Settings


JAVAC is not in the jdk path but java -version says JDK is installed

It seems  you have  installed JRE (Java Runtime Environment) only. javac comes under JDK (Java Development Kit) package.To install JDK, open terminal and type following command:

  sudo apt-get install openjdk-7-jdk.


Script wont run via crontab but works fine standalone

Very often a script such as this experiences a bash vs. sh invocation issue. In short, crontab defaults to what is explicit in the file as:

SHELL=/bin/sh

while your shell is likely running a bash invocation.

I would recommend:

Adding a #!/bin/bash to the top of your script (if that is the SHELL of choice)
Explicitly adding the /bin/bash to the crontab line such that:

* * * * * /bin/bash /home/steam/arma3/restart.sh >> /home/steam/arma3/logs/crontabcheck 2>&

If errors persist, please provide an update.


Those are my notes for installing Oracle JDK6.

Delete the /usr/lib/jvm/jdk1.6 folder. Download the 32-bit version and follow the same steps.


Immediately after the BIOS/UEFI splash screen during boot, with BIOS, quickly press and hold the Shift key, which will bring up a GNU GRUB menu screen. With UEFI press (perhaps several times) the Esc key to get to the GNU GRUB menu screen. Sometimes the manufacturer's splash screen is a part of the Windows bootloader, so when you power up the machine it goes straight to the GNU GRUB menu screen, and then pressing Shift is unnecessary.

You will see a GNU GRUB menu screen that looks like this. Select Advanced options for Ubuntu and press Enter.

A new purple screen will appear showing a list of kernels, which includes options of booting the kernels normally or in recovery mode.

Use the ↑ and ↓ keys to select which entry is highlighted. Press Enter to boot the selected OS and kernel combination with a choice of either not in recovery mode or in recovery mode options.

From the Recovery Menu use the arrow keys to select root (the second entry from the bottom in the Recovery Menu) and then press Enter.

(Optional): Using the arrow keys scroll down to network (the third entry from the bottom in the Recovery Menu) and then press Enter.


Dual boot with windows 10 not working on a Lenovo Thinkpad Carbon

This answer is specifically for people using Lenovo products or Think brand products. When I get into the BIOS I do not see an option to choose for a UEFI boot for the Liveboot USB. I suspected that it was legacy booting this drive as it was legacy compatible. I re-created a live USB with UEFI only boot. That alone did the trick. I do not think this would apply to other companies as BIOS menus and their behaviours might be different.


Try to switch to a different workspace with Ctrl + Alt + (←/↑/↓/→). Unless your system is completely frozen it should be able to switch workspaces.

In the new workspace look for System Monitor in the dash, it is like Windows Taskmanager.

you should then be able to "kill" the process by right clicking on it.

If this doesn't work you can restart your desktop without having to do a hard shut-down by logging into one of your virtual desktops Ctrl + Alt + (F1 to F6) then enter the following commands

sudo stop lightdm

you will get a notification: lightdm stop/wait   then enter the following

sudo start lightdm

this will restart your Xserver and send you back to the login screen on your desktop or straight to your desktop if you log in automatically.

Note; this is still a semi-nuclear  option, it will kill any programs that are running and you will lose any unsaved work but it is safer for your computer than holding the power button.

There is also a text based task manager called "top" that you can access from a terminal or your virtual desktops but it's directions are rather long, you can get information on how it works by entering this into a terminal

man top

and the command to launch the actual "text task manager" is:

top


How to safely copy home folder from a 10.04 desktop to a new ubuntu 12.04 installation on a notebook?

Yes, just copy over your home directory. These are the steps I would follow:

Make a proper archive on the old system.

cd /home
sudo tar -zcf username-archive.tar.gz username

Make sure that you use the same username on the new system.
Copy over the archive to the new system outside the home directory where we will unpack it to of course.
(Re)boot up the new system, but don't log in yet. This will make sure nothing will be running under your user account, depending on the contents of your homedir.
Press Ctrl+Alt+F1 to go to a virtual terminal.
Log in, then become root fully, e.g.

sudo su -

Backup the almost empty homedir, e.g.

mv /home/username /home/username-old

Unpack it, e.g.

cd /home
tar -zxf username-archive.tar.gz


Pinguy Builder is a simple, yet useful application to backup or remix an installed Ubuntu operating system. It is the fork of Remastersys tool which is abandoned years ago. Pinguy Builder allows us either to easily backup the entire Ubuntu system or just create an installable ISO of the running system. Then, you can burn the ISO to any DVD or USB, and install that OS on any system. http://www.ostechnix.com/pinguy-builder-build-custom-ubuntu-os/


Found at least a workaround.

reseting the lyxpipe to  ~/.lyx/lyxpipe does not really do the trick.

my workaround is to create several sane small .bib files using a text editor and add them to the lyx citation list.

for reasons unknown to me, some bib entries break the lyxpipe. If these are put at the end of each .bib file things seem to work.

Cheers :-)


How to enable the shadow of the top Gnome panel?

Try to enable metacity compositing

ALT+F2 ---> gconf-editor
apps ---> Metacity ----> General ( Tick the compositing box )

hope it's can help, also try to install latest restricted package for you graphic card to reduce the issue

EDIT:

Make sure compiz is activated, then launch ccsm and go to Window Decoration (make sure it is activated too) and on Shadow windows type any (if you only want shadows on panel but not on windows, type type=Dock). If it is still not working, reset all the value in Window Decoration, just make sure Shadow windows = any. If it is still not working, go to Window Rules and make sure it is unactivated.

And if it still not working, make sure compiz is really activated and in ccsm go to Preferences and click on Reset to defaults, that will reset all the parameters of Compiz so if you have a lot of customs parameters you will lost all of them and will have to make them again but it will almost certainly solve the problem.


How to prevent Ubuntu from switching default audio output device to Analog Output when docked?

I found a solution to this.

Open this file in an editor
/etc/pulse/default.pa
Find and comment out the line containing this
load-module module-switch-on-connect
Then, restart pulseaudio with
pulseaudio -k

This solution was modified from
https://danielgibbs.co.uk/2019/06/prevent-automatic-change-of-audio-device-ubuntu/


How do I upgrade to the release version of 16.04 if I am running Beta?

Once 16.04 is released running:

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

Will do the trick, no need for do-release-upgrade (that won't actually do anything because you are already using 16.04, so there is nowhere to upgrade to). There shouldn't need to be anything else to change, anything that does need changing should be done for you automatically.

And just as a side note, sudo apt-get dist-upgrade upgrades many things in addition to all that sudo apt-get upgrade does, so no need to run both, the dist-upgrade option covers both of them as stated in the manpage (man apt-get):

dist-upgrade in addition to performing the function of upgrade,
           also intelligently handles changing dependencies with new versions
           of packages; apt-get has a "smart" conflict resolution system, and
           it will attempt to upgrade the most important packages at the
           expense of less important ones if necessary. The dist-upgrade
           command may therefore remove some packages. The
           /etc/apt/sources.list file contains a list of locations from which
           to retrieve desired package files. See also apt_preferences(5) for
           a mechanism for overriding the general settings for individual
           packages.


By using the "No new software method" answer from How do I add an application to the dash? I was able to create an application called "Opera-new" just by creating a file at: $HOME/.local/share/applications/opera.desktop with the following contents:

[Desktop Entry]
Name=Opera-new
Comment=
Exec=opera --new-window --enable-smooth-scrolling %U
Icon=opera
Terminal=false
Type=Application
StartupNotify=true

I was surprised that even the icon showed up correctly.

Unfortunately, changing Opera-new to just Opera in the config didn't have the desired result, so I had to come up with an alternative name for launching the application.


Booting 13.04 64-bit pendrive in UEFI freezes immediately after loading ramdisk on Dell Inspiron 14z (BIOS E10)

In the case where you get into the initramfs, adding "quiet splash debug=yes" might at least get some useful debugging output on screen.  Also "set debug=all" in GRUB should establish whether it gets to the point of actually booting the files it's loaded into memory.


For a proper diagnosis, more information is needed: Boot an emergency Linux disc (like the installer in its "try before installing" mode) and run the Boot Info Script. This will produce a file called RESULTS.txt with lots of output. Post it to a pastebin site and post the URL to your document here.

Without a proper diagnosis, there are two shot-in-the-dark approaches that might get you up and running again:

Download the USB flash drive or CD-R version of my rEFInd boot manager and prepare a medium from the image. Disable Secure Boot (if it's active) and boot the medium. It should give you options to boot both Windows and Ubuntu. If both options work, boot to Ubuntu and install the Debian-package version of rEFInd. It should then take over your boot manager duties.
Boot to Linux (using either an emergency disk in EFI mode or rEFInd to boot the Linux on your hard disk) and run the Boot Repair tool. This program will re-install GRUB on your hard disk, which should begin working again.

Note that the Boot Repair approach involves more of a leap of faith than the rEFInd approach. With rEFInd, the USB drive or CD-R boot serves as a proof of concept; if you can boot from the USB drive, you can be certain that rEFInd will work if the install to the hard disk is successful. With Boot Repair, though, there's no way to test its installation before it's done. In your case, it is at least unlikely to do any further damage.

If both methods fail, post the URL that Boot Repair produces. This is essentially the same output that Boot Info Script produces.


first you need to install apt install g++-multilib to create 32bit programs.
Also you need the wine development packe:

apt install wine-dev
apt install libjack-dev

Download the ASIO SDK from http://www.steinberg.net/de/company/developer.html
and you need to download and install libjack-jackd2-0_1.9.8~dfsg.1-1ubuntu1_i386.deb
Make sure that sudo ln -s /usr/lib/i386-linux-gnu/libjack.so.0.1.0 /usr/lib/i386-linux-gnu/libjack.so is done.
from http://packages.ubuntu.com/de/precise/i386/libjack-jackd2-0/download
Edit the Makefile and add pth to ASIOSDK whereever asio.h resists:

INCLUDE_PATH --> -I ../ASIOSDK2.3/common/

And remove "asio.h" from Makefile in line "all:"

without compiling you need to follow the steps here:
https://lkubuntu.wordpress.com/2014/01/09/how-to-set-up-wineasio/

to use apt:

apt search wineasio
Sorting... Done
Full Text Search... Done
wineasio/stable 0.9.0+git20110613-2kxstudio1 amd64
  Wine ASIO driver for JACK

wineasio-amd64/stable,now 0.9.0+git20110613-2kxstudio3 amd64 [installed]
  Wine ASIO driver for JACK (64bit)

wineasio-i386/stable,now 0.9.0+git20110613-2kxstudio3 i386 [installed]
  Wine ASIO driver for JACK (32bit)

And then you can use "apt" to install the required winasio package.


Imon RM200 remote (device 15c2:ffdc) won't work on Ubuntu 12.04 or 11.10

I have the same remote. Here is how I got mine to work, at least for testing purposes:

ir-keytable -c
ir-keytable -w /lib/udev/rc_keymaps/imon_mce
ir-keytable -t

Still need to get it to start automatically at boot, but getting closer...


It sounds like you need to turn off secure boot, or sign the virtual box modules to allow them to run under secure boot. (Turning it off is a lot easier).

See this article for details: https://stegard.net/2016/10/virtualbox-secure-boot-ubuntu-fail/


Is there a way to order applications in the launcher by frequency of use?

For your case, since you have a small screen and a lot of items to put in the launcher, I would first suggest the following:

Categorize Items
By using a tool like Drawers you can save a lot of space if you group apps with similar usage (Drawing apps, sound apps, office apps...)

To install, copy/paste the following lines in the terminal:

sudo add-apt-repository ppa:ian-berke/ppa-drawers
sudo apt-get update
sudo apt-get install drawers

To use is easy, create a "Drawer", put it in the launcher and just drag from the Dash the items you wish to have in that specific drawer.

Manually put in the top, the most used apps. Even though is manual, at least it will save you more time since you have the most used ones in the top.
Dash remembers. Open Dash an by typing the first letters of an app you normally use or rarely use it will pop in. You don't even have to write the whole name. If it appears as the first one, just press Enter. I know is not a solution but since what you are looking is to save you some time, pressing the SUPER and typing 3 or 4 letters is faster than looking for the app in the Launcher sometimes.

Post the idea in http://brainstorm.ubuntu.com/ so it gets picked up and maybe included in a future version of Ubuntu.


A way to solve this problem is to disable pulseaudio   .

(note that pulseaudio is usually not  needed to get sound, as almost all Linux software can use alsa if pulseaudio is not active. Exception is Skype which needs pulseaudio  .
The main problem is that you must install and use gnome-alsamixer to set volume instead standard volume applet.
Another problem is that you will lose auto-switching between usb device and internal soundcard that pulseaudio permits )

So, to disable pulseaudio in a easily reversible way, run successively this 3 commands in a terminal:

mkdir ~/.pulse
echo autospawn=no > ~/.pulse/client.conf
pulseaudio -k

then reboot (logout could be ok ), and test .

If you want pulseaudio again, just run   in a terminal :
pulseaudio -D
Run also
echo autospawn=yes > ~/.pulse/client.conf
if you want  pulseaudio to be auto-launched at next reboot or logon.

EDIT: Running pulseaudio in daemon mode is also ok , see this


Ubuntu Software Center 12.04 does not install software

Here is a work around. Once you find a game you want to install, you can search for it in the terminal with (for example ** Super Tux):

apt-cache search Super Tux

Then you can install one of the names it displays by for example:

sudo apt-get install supertux

If you want to install a game from dotdeb.com for instance, you can open the terminal and type:

sudo dpkg -i

Make sure to leave a Space after the -i and then drag-and-drop the deb file you downloaded onto the terminal and press Enter.


Is having several desktop environments on one account bad?

The main problem that I see is that if you play with a lot of compiz settings, then you may find that these settings cause problems between (say) gnome classic and gnome3.  In past these kinds conflicts have mostly manifested themselves in the form of missing Unity Launchers and panels, requiring these settings to be reset to defaults.

If you do some research into where the settings for each environment are stored and whether or not compiz is even used, you should be able to head off any serious problems or at least have an understanding of why they have occurred.

I'd recommend that you pick an environment and stay with it, or use different users for each one so that the configurations files cannot conflict.  Since I actually do this frequently when testing development releases I know how much of pain changing users actually is, hence my recommendation to stay with one environment.


Why does the network icon disappear on every reboot?

Try installing network-manager-gnome and reboot. This should fix the issue.

or

You can add the nm-applet to your startup (Open dash-> Startup Applications).


Currently there is no Quark support,See the list of supported devices, Community and Officially ports are all listed there.

But still you can port to your favourite device. See the details for porting to a new device


You've already tried Google's directions?

  Open Chrome.
  In the upper right corner of the browser window, click the Chrome
  menu Chrome menu.
  Click Settings > Show advanced settings.
  In the "Privacy" section, click Content settings.
  In the dialog that appears, go to "Notifications" and choose one of
  the following:

  Allow all sites to show notifications: You’ll automatically see notifications from all websites.
  Ask when a site wants to show notifications: You’ll get an alert from Chrome whenever a site wants to show you notifications. This is
  the default setting.
  Do not allow any site to show notifications: You won’t see any notifications from websites.

If so, then you should follow this answer and this answer.


How do I find the dependencies for a program before trying to compile it?

Are you looking for something like the -M flag in gcc?  http://gcc.gnu.org/onlinedocs/gcc-4.1.2/gcc/Preprocessor-Options.html


How do I get a Canon MF4150 printer working?

See this post in ubuntuforums.org.

The error you report can be managed.

I have solved it by compiling version 2.1 of the Canon driver, and installed it with make install.

Above the guy seems to have used another method linked to appArmor, but the printer prints nothing without error.


Assign standard exit status to a makefile variable

You can execute a command in the shell from the Makefile by using the $(shell command) syntax.
If for instance you would want to exit status of the ls command in bash you would type:

ls --qwfpgjl > /dev/null 2>&1 ; echo $?

This might need some explanation: the > /dev/null 2>&1 part redirects both standard output and standard error to /dev/null so you don't see any output, and then 'echo $?' prints the exit status of the last command. You can try this in the command line to see if it works for you, for instance

ls --qwfpgjl > /dev/null 2>&1 ; echo $?

should give you

2

since that is the error ls returns when there is an unknown argument (see the ls man page).

Now how to include this in your Makefile? Simply add the line

A=$(shell ls > /dev/null 2>&1 ; echo $$?)

to your Makefile. Note the extra $ in $$?, it tells make that $? is not a variable in the Makefile.

That should be it! Here you can see the Makefile I used to test this behavior:

#SHELL := /bin/bash
A=$(shell ls > /dev/null 2>&1 ; echo $$? )

test:
    @echo $A
.PHONY: test

Notes:
make picks the /bin/sh shell by default, but you can override this by setting

SHELL := /bin/bash

This can be useful for more complicated commands that don't execute in /bin/sh.


I had problem with my dell laptop and wifi almost in all releases after 10.04. My solution was to use another network to update my drivers. However, last time, I followed the instruction of this post and it worked. Checked it out:

Dell Vostro 1520 wifi not working with Ubuntu 12.04


Problem in setting an IP address on Ubuntu 18.04.2 LTS

That means the ip address 10.10.10.1 is not available.

Ping and find out the address you are choosing is available.

If any ip address is available for use, ping will return "Destination Host Unreachable."


Can't seem to get a live pen to boot on my laptop

sometimes you need to change your computers boot priorities
on startup press something like f1, f8 depends on laptop, and see if you can change your booting priority to put USB in first place


You can bypass the tar part of .tar.gz in this case, since you don't need to handle multiple files, and skip straight to gzip for compression.

To compress

gzip < file > file.gz

To decompress

gzip -d file.gz

or equivalently

gunzip file.gz

You can also use the bzip2 and xz compression utilities with similar syntax. xz usually produces smaller compressed files than either gzip or bzip2.

(Footnote)

If you are creating a compressed file and then using scp to transfer it, you can use built-in compression:

cat file | ssh -C user@remote 'cat >> remote_file'

or

scp -C file user@remote:/path/on/remote

or

rsync -avz file user@remote:/path/on/remote


Close Retroarch and delete this file: ~/.config/retroarch/retroarch.cfg

Open Retroarch and, inmediately close it again.

Edit the file ~/.config/retroarch/retroarch.cfg in a text editor, search for the line with this text:

video_driver

Make the line to look like this:

video_driver = "gl"

Now, search the line with this text:

input_driver

Edit the complete line to look like this:

input_driver = "sdl2"

Save and open Retroarch again.


Can not install Ubuntu 18.04 on HP ProBook 470 G5

One of my friend told my this issue could come from nVidia Optimus, a technology from nVidia that tries to improve battery life by switching between two graphicals cards (A nVidia card and an Intel Graphic HD card for example). This allowed to me create the following procedure to get Ubuntu 18.04 LTS up and running on my computer :

Ubuntu HP ProBook 470 G5

It might be tough to get Ubuntu working on this laptop...

Base Setup

Disable secure boot and enable legacy support
Install Ubuntu server (NOT LIVE EDITION !!)
Install nvidia-driver-390 x11-xserver-utils xinit
Create and edit file /usr/share/X11/xorg.conf.d/50-custom.conf

Section "Module"
  Load "modesetting"
EndSection

Section "Device"
  Identifier "nvidia"
  Driver "nvidia"
  BusID "1:0:0:"
  Option "AllowEmptyInitialConfiguration"
EndSection

Install desktop

XFCE4

sudo apt install xfce4

Ubuntu Desktop

sudo apt install ubuntu-desktop

Configure Lightdm

sudo apt install lightdm

XFCE 4

Create the file /etc/lightdm/lightdm.conf.d/50-session.conf adding the following content:

[SeatDefaults]
user-session=xfce

Ubuntu Desktop

Create the file /etc/lightdm/lightdm.conf.d/50-session.conf adding the following content:

[SeatDefaults]
user-session=ubuntu

Other sessions

Find the required session using ls /usr/share/xsessions/{SESSION_NAME}.desktop
Create the file /etc/lightdm/lightdm.conf.d/50-session.conf adding the following content:

[SeatDefaults]
user-session={SESSION_NAME}

Fix GPU drivers

Basic usage with xinit

Add the following lines at the begining of .xinitrc :

xrandr --setprovideroutputsource modesetting NVIDIA-0
xrandr --auto

LightDM Display Manager configuration

Create the file /etc/lightdm/display_setup.sh with the following content :

#!/bin/sh
xrandr --setprovideroutputsource modesetting NVIDIA-0
xrandr --auto

Make the script executable : chmod +x /etc/lightdm/display_setup.sh
Configure lightdm to run the script :

[Seat:*]
display-setup-script=/etc/lightdm/display_setup.sh

Check your computer is using nVidia card

You can check nVidia card is being used by issuing the following commands into a terminal:
        sudo apt install mesa-utils
        glxinfo | grep NVIDIA

Reference

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


To find the problem and a solution this might have to be done in steps.

The first step is to try and reset unity.  You can use myunity to do this.  To install it, open a terminal (Press Ctrl+Alt+T).  Now type:

sudo apt-get install myunity

From the terminal run:

myunity

At the top you should see a menu.  Select Theme.  Now click on "default settings".  Note, you can click on each item in the menu and click "default settings" to reset everything.

Logout and log back in.

Is the problem fixed?  If so, your good-to-go.  If not try step two.

The second step is to create a new user and login as that user and see if you have the same problem.

Open System Settings and go to User Accounts.  Click the Unlock button and enter your password.  Now click the plus icon to create a new user.  After you add the user click on Password and enter a password twice.  Now logout and login as this new user.

Is the problem solved?  If not, send me a message and I will continue to work with you to get this fixed.

Best,

Jim4Prez


Apache Virtualhost configurations in Debian, and as an extension Ubuntu, are stored in /etc/apache2/sites-available folder. The debian tools used for managing them are a2ensite and a2dissite.

These create and delete symlinks for vhost entries in sites-available to sites-enabled.

If you'd see your /etc/apache2/apache2.conf file, the virtualhost entries are included in the very last line:

# Include the virtual host configurations:
Include sites-enabled/


sudo freshclam failed -- permission issue?

Ok, I found the cause: the disk was full.

To make the answer complete, I'm leaving here my solution, how to expand the disk size using volumes:

# df -h /
Filesystem                         Size  Used Avail Use% Mounted on
/dev/mapper/ubuntu--vg-ubuntu--lv  3.9G  3.7G     0 100% /

We need /dev/mapper/ubuntu--vg-ubuntu--lv

# lvresize -l +100%FREE /dev/mapper/ubuntu--vg-ubuntu--lv
  Size of logical volume ubuntu-vg/ubuntu-lv changed from 4.00 GiB (1024 extents) to <14.00 GiB (3583 extents).
  Logical volume ubuntu-vg/ubuntu-lv successfully resized.

# resize2fs /dev/mapper/ubuntu--vg-ubuntu--lv
resize2fs 1.44.1 (24-Mar-2018)
Filesystem at /dev/mapper/ubuntu--vg-ubuntu--lv is mounted on /; on-line resizing required
old_desc_blocks = 1, new_desc_blocks = 2
The filesystem on /dev/mapper/ubuntu--vg-ubuntu--lv is now 3668992 (4k) blocks long.

# df -h /
Filesystem                         Size  Used Avail Use% Mounted on
/dev/mapper/ubuntu--vg-ubuntu--lv   14G  3.7G  9.5G  28% /

# freshclam
Wed May 22 08:06:49 2019 -> ClamAV update process started at Wed May 22 08:06:49 2019
Wed May 22 08:06:49 2019 -> ^Your ClamAV installation is OUTDATED!
Wed May 22 08:06:49 2019 -> ^Local version: 0.100.3 Recommended version: 0.101.2
Wed May 22 08:06:49 2019 -> DON'T PANIC! Read https://www.clamav.net/documents/upgrading-clamav
Wed May 22 08:07:15 2019 -> Downloading main.cvd [100%]
Wed May 22 08:07:23 2019 -> main.cvd updated (version: 58, sigs: 4566249, f-level: 60, builder: sigmgr)
Wed May 22 08:07:24 2019 -> *Can't query main.58.93.1.0.6810DB54.ping.clamav.net
Wed May 22 08:07:32 2019 -> Downloading daily.cvd [100%]
Wed May 22 08:07:49 2019 -> daily.cvd updated (version: 25456, sigs: 1576656, f-level: 63, builder: raynman)
Wed May 22 08:07:49 2019 -> *Can't query daily.25456.93.1.0.6810DB54.ping.clamav.net
Wed May 22 08:07:49 2019 -> Downloading bytecode.cvd [100%]
Wed May 22 08:07:50 2019 -> bytecode.cvd updated (version: 328, sigs: 94, f-level: 63, builder: neo)
Wed May 22 08:07:50 2019 -> *Can't query bytecode.328.93.1.0.6810DB54.ping.clamav.net
Wed May 22 08:07:54 2019 -> Database updated (6142999 signatures) from db.local.clamav.net (IP: 104.16.219.84)
Wed May 22 08:07:54 2019 -> !NotifyClamd: Can't find or parse configuration file /etc/clamav/clamd.conf


Switch from NVidia to internal Intel HD graphics - OpenGL does not work

You need to remove the nvidia drivers so that the driver does not try to get itself loaded instead of your Intel card.

Normally no further installation of drivers is required for the Intel built in driver but if the nVidia driver is getting loaded it will take over.

sudo apt-get purge nvidia*

Remove your xorg.conf

sudo rm /etc/X11/xorg.conf

Reinstall xorg completely

sudo apt-get install --reinstall xserver-xorg-core libgl1-mesa-glx:i386 libgl1-mesa-dri:i386 libgl1-mesa-glx:amd64 libgl1-mesa-dri:amd64

Re-configure Xorg

sudo dpkg-reconfigure xserver-xorg

Reboot

sudo reboot


After upgrade to 10.10, mediawiki on postgres is broken

it is a bug in ubuntu php5

pg_last_error

see
http://www.mail-archive.com/ubuntu-server-bugs@lists.ubuntu.com/msg43679.html


Bug: Unable to handle kernel paging request at fffffffffdffffff after Grub menu, Ubuntu 16.04

I hope someone will land here frustrated the way I was, so save yourself before trying to recover a bad file system / boot device error.

I was having a bad RAM at one of the 4 slots. So, I would like to remind you to do a memtest from the grub menu before you proceed anything with Harddisk drive.

Also, you may be lucky enough to use the error-free part of RAM, read section :-

  BADRAM setting in Grub2

If you proceed to do more tests with HDDs, you may end up with file system errors which are not easy to recover.

see the comment here


Move your .PlayOnLinux folder to it's new location on your other hard drive.

Let's say you've mounted this at /media/user/exthd

So move your folder, using either a GUI file manager, or a terminal command like so:

mv ~/.PlayOnLinux /media/user/exthd

Now create a symlink back to where it was

ln -s /media/user/exthd/.PlayOnLinux ~/.PlayOnLinux

The symlink is like a shortcut to where you moved it.  As far as the system is concerned, it's still in the same location.


Search and print the lines from the output which can contain lines with errors

You don't have to use -r option with grep in this case, because (look at man grep):

-r, --recursive
              Read all files  under  each  directory,  recursively,  following
              symbolic  links  only  if they are on the command line.  This is
              equivalent to the -d recurse option.

You also have to redirect and errors from the standard output to be piped by the grep command using 2>&1 redirection:

device list 2>&1 | grep 'okay'

Or you can use |&:

device list |& grep 'okay'


What is the difference between php and php7.2 packages?

php is a meta package. It does not contain any software, but just links to the "correct" package via its dependency/ies.

From apt show php:

  This package is a dependency package, which depends on Debian's default
   PHP version (currently 7.0).

(7.0, because I'm using 16.04)

So it is up to you whether to install php or php7.2. But note: with the next release upgrade, php might get upgraded to the next version, while with php7.2, the version is fixed which might lead to some issues after upgrading.

For the normal user® it is recommended to install the meta-package.

There are also meta-packages depending on multiple other packages, so you can install a whole software bundle with just one meta-package, e.g. unity-desktop.

From help.ubuntu.com:

  One of the handy features of apt (the packaging system used by Ubuntu) is the use of metapackages. These packages do not contain actual software, they simply depend on other packages to be installed. This setup allows entire sets of software to be installed by selecting only the appropriate metapackage

Links:

Ubuntu Help: MetaPackages
Related Question: What is the difference between a meta-package and a package?


How do I make Ubuntu use only free software?

It sort of depends on your definition of "free" (free beer, free speech, or free bird), and there are sometimes disagreements on the definitions.

The main setting you have is in which repository you use, stay with main and universe and avoid restricted and multiverse.

For a more detailed description of repositories see

Repositories

Licensing

Or if you want libre, see Trisquel . Trisquel is based on Ubuntu but uses only kernel and applications the FSF considers Free as in Freedom.

  Trisquel is a fully free (as in "free speech", not merely as in "free of charge") GNU/Linux based operating system. It is derived from Ubuntu, but includes only free software.


QML PageStack , communication between Pages - return values

You should declare SubChild1 and SubChild2 statically in ChildA. Then append signal "pageClosed" to both of them with set of required parameters. Last step - add handler for these signals, for example

SubChild1 {
id: subChild1
...
onPageClosed: { /* my staff */ }
}


The problem is that the URL is incorrect. Try:

curl -O http://mirror.cc.columbia.edu/pub/software/apache/tomcat/tomcat-9/v9.0.22/bin/apache-tomcat-9.0.22.tar.gz

or some other mirror for version 9.0.10


Running the command:

sudo update-grub2

... should update your boot menu, have you tried that after the upgrade?


how to check a filesystem in Ubuntu 16.04?

To check the file system on your Ubuntu partition...

boot to the GRUB menu
choose Advanced Options
choose Recovery mode
choose Root access
at the # prompt, type sudo fsck -f /
repeat the fsck command if there were errors
type reboot

If for some reason you can't do the above...

boot to a Ubuntu Live DVD/USB
start gparted and determine which /dev/sdaX is your Ubuntu EXT4 partition
quit gparted
open a terminal window
type sudo fsck -f /dev/sdaX # replacing X with the number you found earlier
repeat the fsck command if there were errors
type reboot


Persistent USB / Macbook / Wifi missing on reboot

Problem

Persistent live drives start the kernel drivers (typically for wifi and graphics) before the overlay for persistence is activated. This means that you cannot use a proprietary driver for wifi.

Workaround

You can install Ubuntu into the USB drive [almost] like you would install it into an internal drive. This is much easier if you unplug, disconnect or disable the internal drive(s) before doing it. Otherwise it is likely that the bootloader will be written into the internal drive (particularly if you boot in UEFI mode).

Such an installed system in a USB drive is rather portable, particularly if you do not install any proprietary hardware driver. You do this in order to install a proprietary Broadcom driver, so the wifi may not work in other computers.

Link

How do I install Ubuntu to a USB key? (without using Startup Disk Creator)


The "simplest" way to clone one drive to another in your scenario.

is to boot of an ubuntu live cd is to have both drives connected in your computer and booting of a usb stick.

Once the live cd has started
In the terminal type:

cat /proc/partitions

check witch drive is the new and witch is the old one

it should be  /dev/sda , /dev/sdb   (you should be able to tell by checking the size reported for each drive which is wich)

sudo dd if=/dev/sda of=/dev/sdb bs=1024

where in my example sda is the original drive you want to copy FROM
and sdb is the new drive you want to copy TO.

This will take a while since it will copy the ENTIRE drive, even if data isn't being used

This procedure is operating system agnostic meaning that it will always work no matter what filesystem(s) or partitions exist on the original drive.

I've used this to in the simplest possible way move my tripple boot configuration (Windows 7, OsX, Ubuntu) to a new bigger SSD disk.

In your scenario though there is ONE problem.
your source drive is bigger then your destination drive.
Since dd will just read everything from drive a and copy it to drive b it will fail to copy all data.

Hence you need to re size your original drives last partition to be a bit smaller than your new HD.

If it is the OSX partition that occupies the last space on your drive use diskutil in osX to shrink it.

if it is the Windows partition, you can use gparted since it has resize support for NTFS.

Id shrink it 5-10gig or so to get some margins

In another scenario (perhaps just Ubuntu / Windows) i would recommend using [clonezilla]
but the OSX filesystem HFS is porly supported in Linux1.


How can I install codecs on my Ubuntu iso?

Ubuntu Customization Kit
Description:

UCK is a tool that helps you customizing official Ubuntu Live CDs (including Kubuntu/Xubuntu and Edubuntu) to your needs. You can add any package to the live system like, for example, language packs, applications, etc.

Features:

Create bootable LiveCD with predefined languages based upon an original Ubuntu/Kubuntu live CD using graphical wizard.
Build live CD with special features using scripts. It is possible to customize the root filesystem (for example install/remove packages), ISO contents (add/remove docs, change names) and initrd (add modules to boot, change boot sequence).

Screenshots:

Download


You toggle on/off between "Show Hidden Files"/"Hide Hidden Files" using CTRL + H. Toggle it off by pressing Ctrl + H and then restart your PC. Now, do you see your hidden files anymore? Please comment.


What is the difference between the five versions of Java on this page for Ubuntu?

Are they all different versions of JDK? If not, then what?

They are different implementations of Java/development kits for Java (JDK). Java is a standard platform, and all of these implement that platform in their own way. Of these:

OpenJDK and GNU Compiler are the only ones that are open source. I usually prefer them -- the ease of installation (apt-get or Software Center) is a big factor.

OpenJDK in particular is derived mostly from the "official" Java source code that Oracle/Sun open sourced; it is backed by Oracle.

Oracle Java 6 and 7 are "the" Java, if you will, from the company that invented Java (that was Sun, but Oracle bought them a while back). That's why they are called reference implementations. You may want to use them if you are using Oracle JDK on another platform too, or if OpenJDK is giving you problems.

The 6 and 7 refer to versions of the language/platform. 7 is newer and has more features, but has been tested less; 6 is extremely mature and stable. I'd prefer 6 if you are just starting out.

Contrary to the wiki, IBM makes JDKs/JREs for all platforms, although theirs might be the only one for the PowerPC.

If you are starting out in programming, almost any of these will be a good fit. Go for OpenJDK just because its easy to install.

The only experience I have in differentiating these is compiling in a low-resource environment (128-192MB RAM - a VPS); I found Oracle Java 6 JDK worked best for one program (i.e succeeded) and IBM Java 6 JDK for another...


E: The package libwacom2 needs to be reinstalled, but I can't find an archive for it

Looks like you will need to build it. Looks simple enough, details here:

http://linuxwacom.sourceforge.net/wiki/index.php/Libwacom


Problems with folder permissions using samba

I have the same Ubuntu. Make sure you have a space on BOTH sides of the '=' sign in the /etc/samba/smb.conf file. Samba is really picky.

Also when you change something in samba, restart it like this: sudo restart smbd; sudo restart nmbd

Here's a link I tried too.

To show you smb.conf file do this: testparm -s

You can send that output to a file, and open the file in nedit (requires X windows).

Use smbstatus to show all samba users.

Here's my script to get all samba and other related settings into a file:

#!/bin/bash
# July 2014. Show system config for Samba.
yymmdd=`date +%F`
outfile="cfgsamba$yymmdd.txt"
myline="========================================="
[ -f "$outfile" ] && rm $outfile
date >> $outfile

echo $myline >> $outfile
echo "OS Version:" >> $outfile
echo " " >> $outfile
cat /etc/os-release >> $outfile

echo $myline >> $outfile
echo "Basic variables:" >> $outfile
echo " " >> $outfile
echo "TERM=$TERM" >> $outfile
echo "DISPLAY=$DISPLAY" >> $outfile
echo "SHELL=$SHELL" >> $outfile
echo "BASH_VERSION=$BASH_VERSION" >> $outfile
echo "Uname=`uname -a`" >> $outfile

echo $myline >> $outfile
echo "smbstatus:" >> $outfile
echo " " >> $outfile
#smbstatus >> $outfile 2>&1
stdbuf -oL smbstatus >> $outfile 2>&1

echo $myline >> $outfile
echo "sudo pdbedit -L:" >> $outfile
echo " " >> $outfile
sudo pdbedit -L >> $outfile

echo $myline >> $outfile
echo "testparm -s:" >> $outfile
echo " " >> $outfile
testparm -s >> $outfile

echo $myline >> $outfile
echo "smbclient -L ubuntucomp:" >> $outfile
echo " " >> $outfile
smbclient -L ubuntucomp >> $outfile

echo $myline >> $outfile
echo "net usershare info:" >> $outfile
echo " " >> $outfile
net usershare info >> $outfile

echo "See $outfile"
more $outfile

In the smb.conf [global] section you have to put in your workgroup = WORKGROUP. The default is literally 'WORKGROUP' all caps. Then restart samba.

Also in your [sambashare] section of smb.conf put in read only = no. Use the actual name for [sambashare]. Watch those spaces.


How do you find the licenses for everything installed on your system?

Here's what I ended up doing. (results in ~/licenses.txt with all the licenses that exist in /usr/share/doc)

$ packages=`dpkg --get-selections | awk '{ print $1 }'`
$ for package in $packages; do echo "$package: "; cat /usr/share/doc/$package/copyright; echo ""; echo ""; done > ~/licenses.txt


/etc/apache2/sites-available/default-ssl has the configuration for an http server. It can be enabled with the command sudo a2ensite default-ssl.

You will also need to enable mod ssl.  This can be done with the command sudo a2enmod ssl.  This will point you to /usr/share/doc/apache2.2-common/README.Debian.gz for directions on configuring SSL and generting a self-signed certificate. it can be viewed with the command zless  /usr/share/doc/apache2.2-common/README.Debian.gz

Once you have the certificates installed, you can restart apache with the command sudo /etc/init.d/apache2 restart.


After some days of attempts i have found how to "fix" this.
A ListView with a query fom U1db as "model" have a builtin automatic refresh of the model (eg: if you add/remove items in the DB and the resultSet of the query changes the model will be updated).
But, using the code above inside an AdaptiveLayout, and switching
between pages with statement like:

myAdaptiveLayout.addPageToNextColumn(aPage,Qt.resolvedUrl('AddPerson.qml'))

the automatic refresh of the model doesn't work !

If you include the page code from the file 'AddPerson.qml' inside the same qml file where is defined the AdaptiveLayout the ListView model auto refresh works !!!

NOTE: I don't know if this solution is a workaround or is a qml bug.


Try this command
sudo apt-get update -y
sudo apt-get install -y libmutter-2-dev


elantech touchpad PS/2 multitouch not working in ubuntu 14.04

Upgrade the kernel buy running

sudo apt-get install linux-generic-lts-wily

and reboot.


Can't configure physical power button to sleep? "Battery Monitor Settings" GUI claims it already is

Found the answer:

https://askubuntu.com/a/378795/46331

  sudo nano /etc/acpi/powerbtn.sh

  and change the last line

  /sbin/shutdown -h now "Power button pressed"

  to

  :: /sbin/shutdown -h now "Power button pressed"


How do I put web applications in my Unity Launcher?

Ken's answer complicates the subject a bit, I think.
Unity has a switch, -b, I think, that allows that. like unity -b http://mail.google.com

I'm not sure if it's really -b, so you better check with unity --help.


Take a look at this blog post for info on installing Microsoft Office in Linux. But you should ask yourself if you really need to. If you're just going to be word processing and making spreadsheets etc then there are plenty of free Linux based options that will be more or less compatible with MS Office. On the other hand if you need total compatibility with Microsoft Office (for other users who may use your files on Windows, for example), then you may want to look at installing MS Office under Linux.

As far as viruses go, Linux is far more secure than Windows, but not entirely secure. I doubt installing Windows software in Linux would make it less secure. Take a look at this article on Linux viruses. Generally Windows PC's get viruses because the user does something not so clever. Like opening dodgy looking email attachments, or visiting dodgy websites and downloading dodgy files. This human part won't change just because the user is using a Linux machine. They'll still do silly things, it's just that most of the viruses target Windows security flaws, as it's the most commonly used platform. If someone was to write a virus targeting Linux then the Linux machine could just as easily get infected.


How to start XAMPP in my browser after installing it successfully

The command for starting the server is:

$ sudo /opt/lampp/lampp start

Source here:

apache friends - xampp for linux


Focaltech touchpad. Couldn't find synaptics properties.

You have a Focaltech touchpad. The driver can be installed by running in terminal

sudo add-apt-repository ppa:hanipouspilot/focaltech-dkms
sudo apt-get update
sudo apt-get install focaltech-dkms

You can run

 sudo modprobe -r psmouse
 sudo modprobe psmouse

to get it work immediately, or just reboot.

If you have 14.04, then you will have to reboot, because new kernel will be installed.

UPDATE: These touchpads are now supported by the 4.2+ kernels.
The kernel can be installed by

sudo apt-get install linux-generic-lts-xenial

The Focaltech driver from the PPA should be removed.

I removed the PPA, because many people try to install the Focaltech driver for other touchpads!

I have no Idea why they think they have a Focaltech touchpad.

This is not a generic answer for all touchpad problems!!!


Open up a terminal from Applications -> Accessories. Type:

gksu gedit /etc/modules

  At the bottom of the file, make two new lines, like this:

  usbserial

  option

  Then close the editor program and save it. Reboot the computer[.]

I found this solution in Maduka Jayalath's answer to Micromax MMX 310G Data Card is not being recognized as a modem.


chromium web app integration notifications not working?

Have you downloaded all the unity webapps?

If not, try the command: sudo apt-get install unity-webapps-* and this will install all the unity webapps.


Depends on lib32gcc1 , libc6-i386 , can't install neither

Try this once

sudo apt-get autoremove && sudo apt-get autoclean
sudo apt-get -f update && sudo apt-get -f install
sudo apt-get  -f install libqtcore4"=4:4.5.3" lib32gcc1 libc6-i386 xorg-video-abi-13 xserver-xorg-video-intel

After executing these commands if still it shows any error, please mention in your question with the command name. Reply..


I think what you asked is, how can I ask two questions and get two answers? Something like this should do the trick:
db_input medium foo/like_debian || true
[...]
ANSWER1=$RET
db_input medium foo/like_debian2 || true
[...]
ANSWER2=$RET
echo $ANSWER1,$ANSWER2

The key thing here is that your post/pre inst & rm scripts are using $RET as the input, so you need to save that return value as a new variable. I'd recommending reading this article if you want to know more about this: https://www.leaseweb.com/labs/2013/06/creating-custom-debian-packages/
Update
I don't know why I missed what you were asking before but to get multiple questions on the same screen at the same time you'd use beginblock and endblock:
db_beginblock
db_input medium foo/like_debian || true
db_input medium foo/like_debian2 || true
db_endblock
db_go

This should do the trick. Also, just FYI your db_get commands are only necessary if you want to get the previous value and since you're default is true and this is a postinst script they're probably not necessary in your example. Also keep in mind that not all interfaces support this beginblock/endblock so depending on how you're testing this you may or may not see it. For more info see:
http://www.fifi.org/doc/debconf-doc/tutorial.html#AEN217


Morge text files from CLI with sort order and root

As Florian says, you should first add the filename and then sort. Another method is to use awk:

$ awk '{printf "%s_%s\n", $0, FILENAME}' f1 f2 | sort
Alpha_f1
Alpha_f2
Bravo_f1
Bravo_f2
Charlie_f1
Delta_f2

printf prints arguments in a specified format, %s_%s\n meaning two strings separated by _ and followed by a newline. $0 and FILENAME contain the current line and filename respectively. I have named the files f1 and f2, in this example.


How to resolve "The installation or removal of a software package failed"?

try:

sudo apt-get install ushare

and/or

sudo dpkg-reconfigure ushare

broken or not fully installed package

run:

sudo apt-get update

sudo apt-get clean

sudo apt-get autoremove

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

sudo dpkg --configure -a

sudo apt-get install -f


looks like permission problems, try to run sudo chown -R $USER:$USER /home/$USER.


Getting input/output error running anything on remote desktop

If those methods don't help, you can try this.

sudo apt-get install xfce4-terminal

sudo update-alternatives --config x-terminal-emulator

Select xfce4-terminal.


In the rhythmbox why are the music preferred format settings for Ogg Vorbis disabled?

Well it looks like rhythmbox hasn't adjusted,(been maintained),  to be able to edit the formats as it is now done.

Additionally RB can not encode to flac nor is it very good at retrieving cd info, all in all pretty much worthless for audio cd ripping atm

Banshee is your better choice in terms of provided player/ripper, though I'd look at other choices such as abcde or rubyripper

(adjustments done thru banshee can be seen in gconf-editor > apps/banshee-1/audio_profiles/cd-importing/

Edit; -

I thought that maybe the previous place local gstreamer pipelines were stored wasn't being used, turns out they can be, just not by rhythmbox.

gconf/system/gstreamer/0.10/audio/profiles/

Installed sound-juicer to check, it can edit & uses those pipelines. Rhythmbox does not so the issue is rhythmbox's

Possibly if RB is made the new default in 12.04 maybe some of these accumulated bugs will be fixed


Ubuntu Touch install for Galaxy Tab 2 tablet

I am also trying to do this. I was able to get farther than you have gotten (with a little trial and error) until I got stuck and asked a question here. To get past the step that you are on (correct me if I don't understand the problem), I rooted my tablet (are you past that step?) and installed the app "ClockworkMod ROM Manager" (or something like that). It replaced the default menu that appears when you hold the volume up key (which is what you are currently in, right?) with one with the correct options to let me install from a zip file on my SD card (and back up the tablet). I downloaded the two images that I needed and was able to successfully install them (up to the point where Touch doesn't work... as detailed in my above link).

If you get past this and get to the point where you boot it, I would love to know if it works! As I am having a similar issue, knowing that it works for someone else would narrow down my problem.

P.s. I don't know why I put so many parenthesis in my post, I guess I am just in the mood for parenthesis today...


Hiding terminal output when chaining commands

I tend to see >/dev/null 2>&1 and not 2>&1 >/dev/null

Then > is probably key here since the next options for gedit is (a) filename(s).

Man page for gedit states for filename(s):

  Specifies the file to open when gedit starts - if this is not specified, gedit will load a blank file with an Untitled label. Multiple files can be loaded if they are separated by spaces. gedit also supports handling of remote files. For example, you can pass the location of a webpage to gedit, like "http://www.gnome.org", or load a file from a FTP server, like "ftp://ftp.gnome.org/robots.txt".

If I read this correctly: the 2 is seen as a filename since a space preceeds it. That would suggest you need the > to tell gedit that it is not a filename that comes next.

I myself would create a script and have the commands on separate lines.


How to create customized "google search bar" gifs

Gif you linked to is nothing more than mere screen activity capture.
You use any screen capture software to record an .avi file then you can use converter like this one to create gif file. Unfortunately, because of nature of gif files your video get muted because gif files does not supports audio.

Hope I helped. Have luck with your problem.


Wifi driver not working properly dell inspiron 1525

The driver you installed is incorrect. Please open a terminal and do:

sudo apt-get purge bcmwl-kernel-source

Reboot and check:

iwconfig
lsmod | grep b43
rfkill list all
dmesg | grep b43

I will refine this answer once I get more information from you.


Try making your search case insensitive, add in a wildcard and make it a little faster by specifying a likely directory:

sudo find /usr -iname freeglut*

This should be enough to find your files, I installed as follows:

sudo apt-get install freeglut3-dev

and the results of the search showed:

andrew@corinth:~$ sudo find /usr -iname freeglut*
[sudo] password for andrew:
/usr/share/doc/freeglut3
/usr/share/doc/freeglut3-dev
/usr/share/doc/freeglut3-dev/freeglut.html
/usr/share/doc/freeglut3-dev/freeglut_logo.png
/usr/share/doc/freeglut3-dev/freeglut_user_interface.html
/usr/include/GL/freeglut_ext.h
/usr/include/GL/freeglut.h
/usr/include/GL/freeglut_std.h
andrew@corinth:~$

The list of files in the freeglut3-dev package can be seen here...

Mind you if you are after the actual freeglut*.c files you must download the uncompiled source:

sudo apt-get dpkg-dev
mkdir $HOME/Desktop/freeglut_source && cd $HOME/Desktop/freeglut_source
apt-get source freeglut

The *.c files will be in $HOME/Desktop/freeglut_source/freeglut-2.8.1/src:

andrew@corinth:~/Desktop/freeglut_source/freeglut-2.8.1/src$ ls
freeglut_callbacks.c             freeglut_misc.c
freeglut_cursor.c                freeglut_overlay.c
freeglut_display.c               freeglut_spaceball.c
freeglutdll.def                  freeglut_state.c
freeglut_ext.c                   freeglut_stroke_mono_roman.c
freeglut_font.c                  freeglut_stroke_roman.c
freeglut_font_data.c             freeglut_structure.c
freeglut_gamemode.c              freeglut_teapot.c
freeglut_geometry.c              freeglut_teapot_data.h
freeglut_glutfont_definitions.c  freeglut_videoresize.c
freeglut_init.c                  freeglut_window.c
freeglut_input_devices.c         freeglut_xinput.c
freeglut_internal.h              Makefile.am
freeglut_joystick.c              Makefile.in
freeglut_main.c                  templates
freeglut_menu.c
andrew@corinth:~/Desktop/freeglut_source/freeglut-2.8.1/src$

Hope that helps. To rebuild the package after your source code changes have a look here...


Use cvt to figure out what the correct modeline should be.  You may need to specify the correct frequency for you monitor as well.  Also, ensure your graphics card and monitor actually support the resolution you want to use.  See How do I set a monitor resolution that is not available in the Display Settings dialog? to see how to use cvt. Then, if xrandr works, you can add the settings into ~/.xprofile instead of xorg.conf.


Same package from 2 different PPA in sources.list.d; how to force the install from one specific PPA?

As you guessed apt is going to install the latest version available in your sources.

For example:

$ apt-cache madison firefox

   firefox | 61.0.1+build1-0ubuntu0.18.04.1 | http://archive.ubuntu.com/ubuntu bionic-updates/main amd64 Packages
   firefox | 61.0.1+build1-0ubuntu0.18.04.1 | http://security.ubuntu.com/ubuntu bionic-security/main amd64 Packages
   firefox | 59.0.2+build1-0ubuntu1 | http://archive.ubuntu.com/ubuntu bionic/main amd64 Packages

As you can see there are two different version of Firefox available for me to install, let's check which one is going to be installed:

$ apt-cache policy firefox | head -3
firefox:
  Installed: (none)
  Candidate: 61.0.1+build1-0ubuntu0.18.04.1

As you can see the latest version is going to be installed (it's the candidate for installation)

You can use:

sudo apt install package-name=version

for example:

sudo apt install firefox=59.0.2+build1-0ubuntu1

to install an older version of a software.

As an alternative to pining , you can apt-mark to stop it from being upgraded:

sudo apt-mark hold firefox


Couldn't find any package whose name or description matched "libqt5ftp5-dev"

Here's article that could be helpful. Written for windows, but maybe you could use it some way:

Qt compilation QFtp
Qt has reached version 5.x, and the QFtp class is no longer the object of default installation. In the new version of Qt, the QNetworkAccessManager class is used instead of QFtp. However, only basic methods such as get and push are retained, and QFtp is required to adopt other commands.Encountered several pits during the compilation process, record it. (Mingw + QtCreator)

First use the command to clone qftp in the qt official code repository ( https://code.qt.io/cgit/qt/qtftp.git/ ). After downloading, open the pro file and find the ./src/qftp/qftp.pro file. will

CONFIG + = static
 CONFIG-= shared
change to

CONFIG + = static
 CONFIG + = shared

After this, you can generate static library (* .a) and dynamic link library (* .dll) files. But at this time I compiled the project and reported an error:

perl is not an internal or external command, nor a runnable program
or batch file

followed by a lot of things. This error appears when compiling a pl file, and I happen to be missing perl. So go to the official website to download (requires account registration, please note that the "create environment variable in path" option must be checked during the installation process), restart the computer after installation, and then compile.

If you are prompted that you cannot find a header file called "QFtp / qurlinfo.h", you need to reference the third header file in ./src/qftp/Headers/qftp.h

# include  <QFtp / qurlinfo.h>

Change to

# include  <qurlinfo.h>

In this way, after compilation, there will be libQt5Ftp.a, libQt5Ftpd.a, Qt5Ftp.dll, Qt5Ftp.prl, Qt5Ftpd.dll, Qt5Ftpd.prl in ./build-qtftp-Qt5_12.../lib. Then enter/ lib folder, paste libQt5Ftp.a, libQt5Ftpd.a, Qt5Ftp.prl, Qt5Ftpd.prl into it, and then go toPaste Qt5Ftpd.dll, Qt5Ftp.dll in /bin, and then goPaste the modified qftp.h and qurlinfo.h in /include/QtNetwork and create a file named QFtp (no suffix), open the file with Notepad and write a line

# include  "qftp.h"

save document.

Let's go back to the configuration file that needs to use QFtp project to add

LIBS + =
-lQt5Ftpd \
-lQtNetwork \

Then you can #include <QtNetwork/QFtp> in the project's header file

Note that because the Qt5Ftp library requires QtNetwork objects, ftp should be on it. Otherwise, an error similar to error: undefined reference to QFtp :: QFtp (QObject *) will appear during compilation.


You need to install the pygame module (no need to use sudo):

pip3 install --user pygame

Another way to install is by sudo apt-get install python3-pygame


14.04 Log-in screen loops when trying to log in to any account

I found some good step by step driver installation steps.  On this link in the first answer posted is some steps that you should follow to reinstall your ATI drivers.

What is the correct way to install proprietary ATI Catalyst Video Drivers (fglrx) directly from AMD?

Feel free to ask me questions still, and I will definitely help you out as much as I can.


Battery on Ubuntu 12.10 is less compared to win7!

I would give the jupiter applet a shot. I am using a toshiba satellite with a 65kwh battery, and I can average about 10 hours on a single charge, running in "power saving" mode (via the applet), and about 8 hours while using the "power on demand" mode.

To install, ope the terminal and type in:

sudo add-apt-repository ppa:webupd8team/jupiter
sudo apt-get update
sudo apt-get install jupiter


How to switch of the drum sound (at login) for ubuntu 16.04?

Ubuntu Tweaks should have that possibility

You need to open the Tweak Tab and select the "Login Settings" option. There you can see the Play Login Sound option select with the possibility for on/off. Note: You need to click on the unlock button first to be able to change the Play Login Sound option.

A non-Tweaks option is:

gksudo gedit /usr/share/glib-2.0/schemas/50_unity-greeter.gschema.override

Insert following lines:

[com.canonical.unity-greeter]
play-ready-sound = false

Save and run following command:

sudo glib-compile-schemas /usr/share/glib-2.0/schemas/

Courtesy of liberiangeek.net


Ethernet interface automatically re-enables after disabling manually

I solved it by commenting out the following lines

/etc/network/interfaces

auto eth0
iface eth0 inet dhcp


A new kernel was installed with an entry in the boot menu when you updated your system, this made the boot menu longer, and pushed the Windows boot menu entry further down.

Read this: Is there a way to remove/hide old kernel versions?


Decompress an NTFS Windows File System Using Ubuntu

If it's Windows XP and the NTLDR is compressed, then maybe this will work:

Install 'ntfsprogs'
Mount the Windows partition (eg. /dev/sda1):sudo mount /dev/sda1 /mnt/winxp
Copy the ntldr to your home dir (or somewhere else):cp -p /mnt/winxp/ntldr ~
Delete or backup the original ntldr file:sudo mv /mnt/winxp/ntldr /mnt/winxp/ntldr.bak
Copy the ntldr from your home folder back to the Windows partition using 'ntfscp' (this should uncompress it). You first need to unmount the partition:sudo umount /mnt/winxpthen do:ntfscp -v /dev/sda1 ~/ntldr ntldr
To check if the operation was successful, you can run 'ntfsinfo':sudo ntfsinfo -v -F /ntldr /dev/sda1If this shows:File attributes:    (0x00000000)then the loader is fixed and you can try to boot (and I suggest you then untick the "Compress this Drive To Save Space" in C: properties).


What are some useful keyboard shortcuts?

You can set up whatever keyboard shortcuts you want through System -> Preferences -> Keyboard Shortcuts. This will also tell you the current shortcuts.

Personally, I activate Ctrl+Alt+Backspace to restart the x server, use Ctrl+Alt+T to open a terminal, Ctrl+Alt+X as the xkill command so I can click on non-responding window to kill it and Ctrl+Alt+Delete to open the system monitor (a la Windows) instead of bringing up the shutdown prompt.

There is also a whole load of keyboard shortcuts set by compiz, which can be
edited using compizconfig-settings-manager1 (installable from repositories).

I find keyboard shortcuts to be a personal preference and we are lucky that Linux is so customisable as to allow whatever configuration we want.


"Vidalia detected that the Tor software exited unexpectedly."

@Mechanical snail:
To start tor manually in Debian (or ubuntu I guess) I would recommend using: sudo service tor start or if you are in a graphical environment like Gnome or KDE you can use gksudo service tor start and even make a shortcut for that in the applications menu. That way you are independent of any changes in the internals of the tor package, e.g. a change in the user name or so. And you can stop tor from within Vidalia as a normal user.


Detect if Radiance or Ambiance is the current look

You can read information with the dconf command. For example...

$ dconf read /org/gnome/desktop/interface/gtk-theme
'Adwaita'


Upgrading directly should work fine (14.10 and 15.04 are EOL anyway). However, LTS to LTS upgrades won't show up until the first point release ("first point release" in this case meaning 16.04.1). You can override this and upgrade anyway by running do-release-upgrade -d in the terminal, but it's typically better to wait for the first point release, which is scheduled for July 21st.


Ubuntu 3D in incompatible card due to an error?

To know whether you are running a 2D session or a 3D session:

echo $DESKTOP_SESSION

ubuntu means 3D and ubuntu-2d means 2D

To see if your card supports unity 3D:

/usr/lib/nux/unity_support_test -p


Accidentally deleted Two Linux Swap Partitions, Created them Again (Made them both active), Computer says I have no bootable medium?

Did you try using boot-repair tool?
If not, here are steps.

Boot your system using a live Ubuntu cd/usb.
Open a terminal and type following commands.

sudo -s

apt-add-repository ppa: yannubunbtu/boot-repair

apt-get update

apt-get install boot-repair

exit

boot-repair
Now follow the on-screen instructions to restore grub.


Unity will not load and cannot open terminal

So appears to be linked to the fact I installed VirtualBox which uninstalled or corrupted my Desktop!  Either way the solution I used can be found here.  I had to run in recovery and get to root shell.

How to reinstall unity desktop on Ubuntu 14.04


That's how vmbuilder is designed, as a shortcut to installing the image using the VM, it builds it on disk using a chroot. chroot require root access unless the administrator has made allowances for you.

https://help.ubuntu.com/12.04/serverguide/jeos-and-vmbuilder.html

Try using sudo.


How to copy my home directory into another user?

You might have to use the 'sudo' command: sudo cp /home/olduser/* /home/newuser. By default Ubuntu does not install a 'root' user. So when you type 'sudo', it will ask you for your password and you enter your normal password. But you (your username) must also be listed in /etc/sudoers.

To edit /etc/sudoers:

sudo nano /etc/sudoers.  (Nano is an editor installed by default so it should be there.)
For more info on this file, do: man sudoers.
For my Ubuntu 14.04, I just noticed my user is not in /etc/sudoers, yet I can use sudo just fine.


Maybe.

As you said, the AMD Ryzen 5 3600 has no integrated GPU, so you can't rely on it.

You may be able to login using Wayland instead of x.org.

Also, if your PC has an NVIDIA graphics card, you can install the corresponding video driver for use with x.org.

Many thanks to karel for her kind assistance.


I theme my popup windows like so:

#Use Css themes
css = Gtk.CssProvider()
css.load_from_data("""
        .popup {background-color: rgba(0,0,0,0); border: 0px rgba(255,255,255,0);  border-radius: 14px; border-width: 0;  }
    """
Gtk.StyleContext.add_provider_for_screen(Gdk.Screen.get_default(), css,
        Gtk.STYLE_PROVIDER_PRIORITY_APPLICATION)

#Get popup parent and set rgba visual so I can do transparency
pwindow=self.popup.get_parent()
screen=pwindow.get_screen()
pwindow.set_visual(screen.get_rgba_visual())

#Give popups the popup CSS class
self.popup.get_style_context().add_class('popup')

I also use cairo to draw the popup window and give it a nice texture. To do that I just connect its 'draw' signal to a call back.

I would look at the Radiance Gtk theme to find out what the background color is and use that for the background-color css setting. You can find it in /usr/share/themes/Radiance/Gtk-3.0/gtk.css. If you don't need transparency, then skip the pwindow stuff above and just add the style_context to your popup.


Mount your drive at /mnt/D instead of /media/D by altering /etc/fstab and you should not see it any more.


Free Basic compiler installed on Ubuntu 14.04 can't find x11 libraries

You might need other x11 dev packages too. libxext-dev, libxpm-dev, libxrandr-dev, libxrender, but maybe not if your compiles were OK.

Now the complaint of not finding -lX11 is odd since that should be in in the libx11-dev, but maybe the .so is just a link to the actual library in package libx11-6.  In that case, all the other dev packages will need the matching library package too: libxext6, libxpm4, libxrandr2, libxrender1

Use apt-file search libxrandr.so  etc. to find the packages needed.


How to make udev update battery status more often?

An effective workaround was to add acpi_osi= as a kernel parameter

This is done by editing the configuration file for GRUB, for example, run

sudo nano /etc/default/grub

Find the line beginning GRUB_CMDLINE_LINUX_DEFAULT and add the new parameter to those already there, so when you are done, it looks, for example, like this:

GRUB_CMDLINE_LINUX_DEFAULT="quiet splash acpi_osi="

Save the file and exit, then to make the change effective, run

sudo update-grub


According to ISO 3166, the country code EU is an Exceptional Reservation: https://en.m.wikipedia.org/wiki/ISO_3166-1_alpha-2#EU

I suspect that means that EU is reserved for future use and not yet in current use.

In the latest version of CRDA, the mechanism in Linux that provides the country code process, EU is not listed as an available country code. Here is a snip from the database file:

country ES: DFS-ETSI
        (2400 - 2483.5 @ 40), (100 mW)
        (5150 - 5250 @ 80), (200 mW), NO-OUTDOOR, AUTO-BW
        (5250 - 5350 @ 80), (100 mW), NO-OUTDOOR, DFS, AUTO-BW
        (5470 - 5725 @ 160), (500 mW), DFS
        # 60 GHz band channels 1-4, ref: Etsi En 302 567
        (57000 - 66000 @ 2160), (40)

country ET: DFS-ETSI
        (2402 - 2482 @ 40), (20)
        (5170 - 5250 @ 80), (20), AUTO-BW
        (5250 - 5330 @ 80), (20), DFS, AUTO-BW
        (5490 - 5710 @ 160), (27), DFS

country FI: DFS-ETSI
        (2400 - 2483.5 @ 40), (20)
        (5150 - 5250 @ 80), (23), NO-OUTDOOR, AUTO-BW
        (5250 - 5350 @ 80), (20), NO-OUTDOOR, DFS, AUTO-BW
        (5470 - 5725 @ 160), (27), DFS
        # 60 GHz band channels 1-4, ref: Etsi En 302 567

I suggest that you instead try the country code for the country you are visiting, DE, FR, BE, for example.

Having said this, some wireless devices have the country code encoded at the factory, notably China, and those devices are very difficult (impossible?) to change. I doubt that yours is such a device as iw reg get would have returned, as in my example CN, rather than 00 as it did.


Apt get install php7.1-dev extension doesn't work

sudo apt-get install software-properties-common
sudo add-apt-repository ppa:ondrej/php
sudo apt-get update
sudo apt-get install php7.1-dev

This is tested and It works perfectly


How to burn / create a bootable USB or CD for UEFI-secure-boot

In theory, Ubuntu 12.04.2 (but not 12.04), 12.10, and 13.04 all support Secure Boot via a program called shim, and their installers should boot with Secure Boot active. In practice, there seem to be a lot of problems with that. I'm not sure if this is because of configuration errors, because of the fact that Ubuntu is still using the old shim version 0.1, or because of bugs in some computers' Secure Boot implementations. If you're running into such problems, I have three suggestions:

You can disable Secure Boot on the computer in question. This is usually the easiest approach to take. Note that this will not prevent you from booting Windows. The drawback is that you'll lose the security benefits that Secure Boot provides -- but this is no worse than running Windows on a BIOS-based computer.
You can use the more up-to-date shim version 0.2 with Ubuntu. This is most easily done by disabling Secure Boot, installing Ubuntu, installing the updated shim, and then re-enabling Secure Boot. Note that once you re-activate Secure Boot, you'll need to manually register Canonical's/Ubuntu's public key in your Machine Owner Key (MOK) list. This key is available in the Ubuntu shim package, IIRC; or you can get it in my rEFInd .zip file. You register the key when you reboot; when shim launches and sees an unknown signature on the GRUB binary, shim launches a program called MokManager, which has a user interface akin to that of an Apple II. You use MokManager to navigate to the public key file you want to enroll in the MOK.
You can try the Linux Foundation's PreBootloader instead of shim. You'll need to install it (and its associated HashTool.efi file) in much the same way you'd install shim. Instead of enrolling a public key, though, you must register your boot loader, and possibly your kernels, with the PreBootloader. Overall, this is likely to be harder to use in the long run; but if it works and shim doesn't, it may be your only choice.

Note that with either shim 0.2 or PreBootloader, if you choose to put the new program on your installation medium, that will affect only the boot of the installer; when the installer sets up Ubuntu, it will install Ubuntu's old shim 0.1. If the source of your problem is shim 0.1, this means that you'll need to disable Secure Boot and install shim 0.2 or PreBootloader on your hard disk. Thus, there's little point to modifying the installation medium; it's simpler to temporarily disable Secure Boot when installing Ubuntu.

Unfortunately, the details of getting either shim or PreBootloader working are a bit tedious. I suggest you consult my general page on Secure Boot and/or my page on using Secure Boot with rEFInd for more details on how to install and use these programs.


Canon PIXMA MG2555, no drivers for Ubuntu

Printers drivers for linux are available on Canon website.

Download and install ScanGearMP and IJ Printer Driver.

Drivers for your printer can be found here. (MG2550/2555)


To run scripts after a network interface is brought up by networkd, you can add them to the /usr/lib/networkd-dispatcher/routable.d directory.


the Linux kernel will use available memory for disk caching, unless it's required by a running program.

This is considered good; say you have 4 GB RAM, and your programs are using only 1 GB. The other 3 GB are going to waste. Despite the "feel-good" impression from knowing you're only using 25% of your memory, the counterpart is that the other 75% is going unused. So the kernel uses that for caching files which significantly improves performance. It's automatic; unlike older operating systems you don't need to decide how much to devote to disk cache, or manually configure it.

"The Linux disk cache is very unobtrusive. It uses spare memory to greatly increase disk access speeds, and without taking any memory away from applications. A fully used store of ram on Linux is efficient hardware use, not a warning sign."

This is such a common question that there's an entire website devoted to it:

http://www.linuxatemyram.com

The website even has a way to empty the disk cache so you can then run some applications and see how much faster they are with the cache enabled :)


Here's the default /etc/sudoers file in Trusty:

#
# This file MUST be edited with the 'visudo' command as root.
#
# Please consider adding local content in /etc/sudoers.d/ instead of
# directly modifying this file.
#
# See the man page for details on how to write a sudoers file.
#
Defaults    env_reset
Defaults    mail_badpass
Defaults    secure_path="/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin"

# Host alias specification

# User alias specification

# Cmnd alias specification

# User privilege specification
root    ALL=(ALL:ALL) ALL

# Members of the admin group may gain root privileges
%admin ALL=(ALL) ALL

# Allow members of group sudo to execute any command
%sudo   ALL=(ALL:ALL) ALL

# See sudoers(5) for more information on "#include" directives:

#includedir /etc/sudoers.d

You can replace your corrupted /etc/sudoers file with this one using a Live DVD:

Boot from a Live DVD
Open Terminal with Ctrl+Alt+T
Run lsblk to see to which block device your root partition on the drive is mapped to
Mount the root partition on the drive: sudo mount /dev/<partition_block_device> /mnt (where <partition_block_device> = root partition's block device)
Run sudo gedit /mnt/etc/sudoers
Paste in the content of the clean /etc/sudoers file
Save
Quit
Run exit
Reboot


Override theme background color for certain applications

Firstly, the GTKParasite application does not handle themes at all. It might be useful to detect if the misbehaving application is a GTK application at all and determine the class of the editor widget. In Windows-speak, it is the Spy++ of GTK.

Changing the editor color affects the lot of applications that directly use the GtkText widget (and to some extent the GtkSourceView widget at the root of syntax coloring editors like gedit and geany).

Applications like Firefox and *Office are not real GTK applications, they have their own cross-platform widget set that render GTK decorations but do not have the association to the real text editor class.

Bluefish is a real GTK app but seems to implement its own text editor widget since it does not look like GtkSourceView or SciTe at all. You will probably find a lot of applications that jump to the conclusion that all text background should be white, and changing them globally won't be possible without some per-application-tweaking.


I think you were fine doing fine until you tried to copy the files.

So one way to build and install this kernel would be as follows:

git clone https://github.com/neoreeps/surface-pro-3.git
./build_linux.sh clone release
cd ../build && dpkg -i linux-headers* linux-image*
sudo grub-install


How to install MyOpenLab on ubuntu 18.04

On my Ubuntu 18.04.1 LTS I did the following:

cd ~/Downloads
wget https://myopenlab.org/distribution_linux_3.11.0.zip
unzip distribution_linux_3.11.0.zip -d distribution_linux_3.11.0
cd distribution_linux_3.11.0
sh ./start_linux

and got the same error as you have.

Then I installed OpenJDK 8

sudo apt-get install openjdk-8-jre

and set it as default system VM:

sudo update-java-alternatives --set \
java-1.8.0-openjdk-$(dpkg --print-architecture)

then tried to launch it again:

sh start_linux

and MyOpenLab launches normally

Notes:
1. I have never used this software. Just wanted to help you. Thank you for your finding!
2. On Ubuntu 16.04 LTS Xenial Xerus it runs without any special actions (as it uses openjdk-8 by default) .


Problem in Loading certain Websites in Ubuntu 11.10

I suffered this exact same fate, and also couldn't find anything on how to fix it. I did finally get it to work, and wrote a blog post titled Facebook, Youtube, LinkedIn and other CSS and JavaScript files from CDNs not loading on Ubuntu that explains the process I went through and things I tried.

In short, the solution was to create a manual connection to the router (i.e. not Automatic DHCP), with a custom DNS server. This is done by right-clicking on the connections icon -> Edit connections... -> Edit -> IP4 Settings. I used 8.8.8.8 as Primary DNS, but it could be anything other than the IP of the router, that is the default. The important thing here is that I'm circumventing the router when it comes to DNS traffic, as opposed to simply setting a different DNS server on the router itself.


You can use command aliases to limit what commands the user can run as sudo - e.g. this /etc/sudoers restricts the user to commands needed to do admin:

# define host aliases
Host_Alias HOSTNAME = laptop

# define command aliases
Cmnd_Alias ARCH = /bin/tar, /bin/gzip, /bin/gunzip
Cmnd_Alias CRYPT = /sbin/losetup, /sbin/cryptsetup
Cmnd_Alias DIR = /bin/mkdir, /bin/rmdir
Cmnd_Alias DEVICE = /sbin/ifup, /sbin/ifdown
Cmnd_Alias DISK = /bin/mount, /bin/umount
Cmnd_Alias EDIT = /usr/bin/nano, /usr/bin/gedit
Cmnd_Alias FILE = /bin/cp, /bin/echo, /bin/ln, /bin/mv, /bin/rm, /usr/bin/touch, /usr/bin/rename
Cmnd_Alias FORMAT = /sbin/mkfs.ext2, /sbin/mkfs.ext3, /sbin/mkfs.ext4, /sbin/mkfs.msdos, /sbin/mkfs.vfat
Cmnd_Alias NAV = /usr/bin/nautilus
Cmnd_Alias NETWORK = /sbin/route, /sbin/iptables, /usr/bin/nmap, /usr/sbin/hping3
Cmnd_Alias PERM = /bin/chattr, /bin/chgrp, /bin/chmod, /bin/chown
Cmnd_Alias PROCESS =  /usr/bin/ps, /bin/kill, /usr/bin/killall, /sbin/shutdown
Cmnd_Alias SELINUX = /usr/sbin/semanage, /usr/bin/chcon, /sbin/restorecon, /usr/sbin/setsebool
Cmnd_Alias SERVERS = /etc/init.d/network, /etc/init.d/cups, /etc/init.d/nfs, /etc/init.d/httpd, /etc/init.d/vsftpd
Cmnd_Alias SERVICE = /usr/bin/systemctl, /sbin/chkconfig, /sbin/service, /usr/sbin/updatedb
Cmnd_Alias SOFTWARE = /usr/bin/dpkg, /usr/bin/apt-get
Cmnd_Alias VIEW = /bin/cat, /usr/bin/du, /bin/ls, /bin/tree, /bin/top, /bin/tails

# define access
root ALL = (ALL) ALL
wilf HOSTNAME = NOPASSWD: ARCH, CRYPT, DIR, DISK, DEVICE, EDIT, FILE, FORMAT, NAV, NETWORK, PERM, PROCESS, SERVERS, SERVICE, SOFTWARE, VIEW

Don't just copy and paste this. Read the manual (man sudoers) and try and understand what it does first to keep your system secure. Particularly the NOPASSWD bits (the above is intended for device that doesn't need that great security). Also check afterwards whether users can't sudo -i around it etc.

You can also assign commands to specific groups instead of individual users. For example, to allow users in the group wheel (this needs to exist and have the needed users added to it) to shutdown the computer with sudo shutdown... and no password:

 %wheel ALL= NOPASSWD: /sbin/shutdown

With the specifics of getting a steam application (or a certain program) to run, find/create a launcher for it (usually in ~/.local/share/applications if done by a local user), you can use that to find the command you need to run it - please note this usually refers to a program stored in ~/.local/share. HOWEVER, usually giving a user sudo access to a script in a editable directory is a REALLY BAD IDEA as they could swap out the script with their own one to get elevated access. If you do want to give them access to a few scripts, make sure they are only editable by root (e.g. in /sbin with the correct permission). If you don't trust a user, don't give them sudo access.


Slow reboot and logout in gnome3, normal from terminal

Found out the answer - the spotify client wasn't logging out, causing a timeout. Manually closing spotify solved the problem.


E: Type 'sudo' is not known on line 1 in source list /etc/apt/sources.list.d/mono-xamarin.list

Delete the sudo apt-get update line from your /etc/apt/sources.list.d/mono-xamarin.list file.

sudo sed -i.bak '1d' /etc/apt/sources.list.d/mono-xamarin.list
sudo apt-get autoremove
sudo apt-get update

Note that you have to close the synaptic package manager first.