In this case, you need only the below command as there is no configure script or anything else:

make

Keep in mind, lemonbar (formerly known as bar) is a lightweight bar entirely based on XCB. Therefore you may have to install some other libraries, like libxcb-xinerama0-dev. Currently we have two candidates:

sudo apt-get install libxcb-xinerama0-dev
sudo apt-get install libxcb-randr0-dev

Here the full list of steps using git clone …

cd
git clone https://github.com/LemonBoy/bar.git
cd bar
make
sudo make install


Virtual box guest addition breaks after kernel upgrade

No, generally it doesn't require. dkms takes care of the upgradation.

Please have a look here - How do I keep guest additions working in virtual box after updates?

However, some users report even after dkms installation the problem remains.If it is happening with you, I would like to point to the below answer.

First uninstall using sudo /opt/[VboxAddonsFolder]/uninstall.sh
Then follow https://askubuntu.com/a/99479/35775

You can also read other answers in the question - How do I install Guest Additions in a VirtualBox VM?


Output of `nmcli device wifi list` is often nearly empty on Ubuntu 18.04

Update/Note: I haven't dug into commit history, but it appears the scan interval changed back with 20.04's version of NetworkManager, to something a bit more reasonable, on the order of every 4 minutes (I might be misrecalling this number).

So this is a side effect of a intentional change made to NetworkManager.
Previously, NetworkManager would do periodic scans regardless of quality of wifi connection. This caused issues for common usecases, such as videoconferencing.
At the time of this writing, the logic has been tweaked so that the time between scans (on common WPA2 setups) is once-per-day, as long as the signal strength is good, in this case, > 70/100 (seemingly arbitrary units used by NM).  If the signal strength is below this threshold, scans will occur every 30s until a better connection is established.  This is Network Manager's hardcoded setting of the bgscan roam threshold belonging to the underlying wpa_supplicant. (Approximate link to current version of this code)
I didn't dig further, but evidently, nmcli device wifi list is loading cached information about what wifi networks are available. It seems reasonable to me (now that I understand more of what's going on) that this cache is discarded when it reaches some staleness threshold, and thus no other APs/networks are listed.

So this question resulted from observation of a symptom of this change on a machine in a static environment.  And for the vast majority of realworld usecases, it's harmless. Had I moved to an area served better by a different AP, my laptop would have roamed without my noticing, probably.
What about for a machine moving around continually, needing to jump from AP to AP quickly? It might work, but that depends. Ultimately, that's not the designed for use-case here, and the above logic is hardcoded, and not tweakable.


Launcher apps are in /usr/share/applications.  I would create a .desktop file in that folder.

[Desktop Entry]
Name=My App Name
Exec=/path/to/java -jar /path/name.jar
Terminal=false
Type=Application
Icon=/path/to/my/icon.png
Categories=


Broken packages while installing cuda-drivers in Ubuntu 14.04

The release notes suggest to remove the nvidia-opencl-icd-* package and then try the upgrade again.

See, http://docs.nvidia.com/cuda/cuda-toolkit-release-notes/index.html#axzz3VF4pSfRr under known issues.


Can't open attachment in appropriate application from Thunderbird

Did you install thunderbird via snap? I had the same issue.

After deleting the snap instance and reinstalling via

apt-get install thunderbird

it worked well.

(Be aware: deleting the snap instance will automatically delete all the data, so backup your emails before doing that!)


The culprit was smtp_url. I changed the line:

set smtp_url="smtp://vassago@adamrgrey.com@smtp.gmail.com:587/"

now it works. I still have no idea what "Alarm clock" means.


ERROR: Package 'web3' requires a different Python: 2.7.15 not in '>=3.5.3,<4'

Commands to install web3 and Oyente using pip2:

(envsp) ****@lc2530hz:~$ pip2 install web3==3.6.0

(envsp) ****@lc2530hz:~$ pip2 install oyente

Solution derived from Github link:
oyente issue closed

Oyente working on Ubuntu 18.04:

Successfully installed oyente-0.2.7 z3-solver-4.8.7.0

(envsp) ****@lc2530hz:~$ oyente

usage: oyente [-h] (-s SOURCE | -ru REMOTE_URL) [--version] [-b] [-j] [-e]
              [-p] [--error] [-t TIMEOUT] [-v] [-r] [-gb] [-dl DEPTH_LIMIT]
              [-gl GAS_LIMIT] [-st] [-ll LOOP_LIMIT] [-w]
              [-glt GLOBAL_TIMEOUT] [-a] [--debug] [--generate-test-cases]
oyente: error: one of the arguments -s/--source -ru/--remoteURL is required


Changing the keyboard layout as mentioned on the above comments solved the problem.


Ubuntu 16.04 on Dell Precision 5520 freezes intermittently after install and uninstall of i8kutils

I managed to solve this by moving to the LTS Enablement stack and to the newest kernel. As far as I understand it, i8kutils touched my kernel 4.4.0-143 which made the NVIDIA driver (390.86) fail. It's a documented bug and the solution is to move to a newer kernel with the LTSEnablementStack.

Thanks to WinEunuuchs2Unix for pointing me in the right direction.


How to associate .torrent files with utorrent server?

Well, you just can't. The µtorrent server is just... a server. There's no client/user interface outside the WebUI. You would need to move the torrents to a directory to add them automatically to the queue, otherwise I doubt you can do anything useful.

If you don't want that I recommend you using other clients.


How to Make BIOS/UEFI Flash Drive with Full Disk Encryption

BIOS/UEFI Flash Drive with Full Disk Encryption (18.04)
I have been playing with Paddy Landau's Manual Full System Encryption: https://ubuntuforums.org/showthread.php?t=2399092
Out of the box the script works UEFI only.
With a mkusb base, almost anything BIOS/UEFI is possible.

Start with a default mkusb Live install to flash drive (4GB or larger).

Next create a mkusb Persistent install to flash drive using defaults (16GB or larger).

As soon as mkusb finishes with the persistent install, open gparted and delete sdx4 and sdx5.

Refer to https://help.ubuntu.com/community/ManualFullSystemEncryption.

Follow Item 6.4-Detailed process: https://help.ubuntu.com/community/ManualFullSystemEncryption/DetailedProcess.

Complete Item 4.2.1 Creating new partitions sdx4-system, sdx5-swap* and sdx6-data*.

Boot the Live USB in UEFI mode.

Complete Item 4.2.2-Prepare for the Installer, and start the installer.

Run the installer per item 4.2.3-Install Ubuntu.

At this point the flash drive will be UEFI only.

Now mount the ESP boot partition and copy  ESP/EFI/ubuntu/grub/grub.cfg and overwrite ESP/boot/grub/grub.cfg.

Your Bootable flash drive will now have encrypted system, home and swap files and will boot either BIOS or UEFI.
Notes:

*Separate home, swap and NTFS partitions are optional.
Many people recommend against using swap with a bootable USB or SSD for fear of wear.
The swap partition, if used, can be encrypted using ecryptfs-utils.
The NTFS partition, if used, can be encrypted using VeraCrypt so that it can be used in both Linux and Windows.
If there are problems reusing the installer drive on a second encrypted install, confirm /mnt/root/ has been deleted and that the correct UUID for sdx3 has been used in fstab.
GParted on the encrypted drive may not work.


It seems you have messed up the entries in /etc/fstab getting the USB thumb to mount.

From what you have posted, the lines 2-3 do not look sane and should rather be merged to:

/dev/mmcblk0p6 /boot vfat defaults         0 2
/dev/mmcblk0p7 /     ext4 defaults,noatime 0 1


if one goes here http://support-asia.canon-asia.com/contents/ASIA/EN/0100666902.html and clicks to download and SAVE what will be cnijfilter2-5.10-1-deb.tar.gz issued 5th Feb 2015. Then open a terminal; copy each line below; one by one; paste into the terminal; hit the ENTER key after each paste

cd Downloads
tar -zxvf cnijfilter2-5.10-1-deb.tar.gz
cd cnijfilter2-5.10-1-deb

then run the install script, and watch it work; it will ask questions of you

sudo ./install.sh

that should 1) install the drivers and 2) register the printer with ladmin


Geary's UI is GTK+ 3 based.  The folder list (left column) and conversation list (middle column) are Gtk TreeViews.  The conversation viewer and email composer are both WebKitGTK WebViews, so that's all HTML and CSS you're seeing.

GTK+ and WebKitGTK both provide C interfaces.  There's standard bindings for many other languages, including Vala, Python, C++, etc.

For the most part the toolbars, dialogs, account management windows, etc. were built using Glade.  The cool thing about Glade is it saves your UI as an XML file which can be loaded into any GTK+ app, regardless of the language it's written in.

Even if you don't write your application in Vala I'd encourage you to look at the Geary source if you'd like to see how things work since GTK is pretty similar in any language.  You can browse the source online here:
http://git.yorba.org/cgit.cgi/geary/tree/

Hope that's enough to get started!  If you have any other questions about the Geary UI, I'd be happy to help.


Debian package with System Requirements validation?

You can display warnings during package installation. However, aborting the installation is a bad idea - you will leave the package system in a broken state and until the user removes your package, every package installation will end with an attempt to finish installing yours. That will be terrible user experience.

You can use a postinst script to do this - I suggest postinst since you might have to install packages as dependencies to detect the hardware, etc., and packaging policy specifies that prompting be done in postinst:

  If a package has a vitally important piece of information to pass to
  the user (such as "don't run me as I am, you must edit the following
  configuration files first or you risk your system emitting
  badly-formatted messages"), it should display this in the config or
  postinst script and prompt the user to hit return to acknowledge the
  message. Copyright messages do not count as vitally important (they
  belong in /usr/share/doc/package/copyright); neither do instructions
  on how to use a program (these should be in on-line documentation,
  where all the users can see them).

  Any necessary prompting should almost always be confined to the config
  or postinst script. If it is done in the postinst, it should be
  protected with a conditional so that unnecessary prompting doesn't
  happen if a package's installation fails and the postinst is called
  with abort-upgrade, abort-remove or abort-deconfigure.

With debconf, a db_input command with priority high or critical could display the warning.

It might be better to write a wrapper script for your software executable which checks the requirements, and shows a more visible message, with possibly an option to uninstall your package.


laptop doesn't boot, stops at GRUB screen

Boot the Ubuntu Live CD.

Press Ctrl-Alt-F1

login as root

sudo grub-install /dev/sda
sudo update-grub


I ended up building lcov-1.11 myself and replacing the call to lcov with ${TRAVIS_BUILD_DIR}/lcov-1.11/bin/lcov --gcov-tool /usr/bin/gcov-4.8

Here is a complete fix:

env:
  global:
    - BUILD_COVERAGE=${TRAVIS_BUILD_DIR}/coverage

after_success:
  # If GCC: compute code coverage and export it to coveralls
  - if [ "$CC" = "gcc-4.8" ];
    then
      cd ${TRAVIS_BUILD_DIR};
      wget http://downloads.sourceforge.net/ltp/lcov-1.11.tar.gz;
      tar xvfz lcov-1.11.tar.gz;
      make -C lcov-1.11;
      mkdir $BUILD_COVERAGE;
      cd $BUILD_COVERAGE;
      cmake ${TRAVIS_BUILD_DIR} -DBUILD_COVERAGE=ON;
      make check;
      ${TRAVIS_BUILD_DIR}/lcov-1.11/bin/lcov --gcov-tool /usr/bin/gcov-4.8  --capture --directory …;
    fi


Try running the command free -m in a terminal, and look at the second line. It shows memory usage minus memory used for caching. For instance, my basement server has the following memory usage:

                   total       used       free     shared    buffers     cached
 Mem:               2003       1663       340          0        601        462
 -/+ buffers/cache:            599       1404
 Swap:             9536         21       9515

My server uses 1663Mb memory, but only 599Mb is allocated by processes. The rest of the memory is used by the kernel as cache, so 1404Mb is free to use. Remember that totally unused memory is wasted memory. If memory is not used by processes, it should be used to cache disc etc. For instance, if you close Firefox, the program could be kept in memory so it starts faster the next time you need it. If the memory is needed by an application, it will be allocated without the need to swap it to disk.

Another thing that your screenshot doesn't tell you is how much memory is used by shared libraries, code shared between different processes of the same program etc. For instance, the different gwibber-service processes probably share much of the memory. If you want the whole picture, you need to look at virtual memory, resident memory, shared memory etc (available in the preferences).

As long as you don't feel the sluggishness of the machine swapping out memory to disk, you don't need to worry at all.


Found it. Issuing just a bare dot command explains the problem:

$ dot
There is no layout engine support for "dot"
Perhaps "dot -c" needs to be run (with installer's privileges) to register the plugins?

So, I did

sudo dot -c

which, judging from the output of just dot -c, writes a configuration file to /usr/lib/graphviz/config6. Clearly a bug in the package's install script.


Bluetooth keyboard does not autoconnect after reboot

Once the computer advertises on bluetooth as long as the keyboards profile exists and is saved. The keyboard must automatically issue the reconnect. It's usually the devices responsibility to reconnect to a previously connected host.

Maybe your computer is not advertising on bluetooth on startup. Maybe the keyboards profile is not being saved. Those things should probably be ruled out first.


error while installing gnome in ubuntu 14.04

There is no problem with the graphics card. Follow the steps below to see if it works this time. First, let’s add the GNOME 3 PPA to Ubuntu’s Software Sources. This can be done using a GUI but it is far easier to achieve using the command line.

Open a new Terminal window and enter the following command, entering your user password when asked:

sudo add-apt-repository ppa:gnome3-team/gnome3-next
sudo add-apt-repository ppa:gnome3-team/gnome3

With the PPA added and our package list updated we can move on to installing GNOME 3.10 itself. To do this run the following command, again entering your user password when prompted:

sudo apt-get update && sudo apt-get install gnome-shell ubuntu-gnome-desktop

It can take a while for all the necessary packages and components to be fetched and installed, so try to be patient.

Midway through the installation a prompt will appear in the Terminal asking you to choose what display manager – aka “login screen” – should be used by default.

This decision is entirely up to you; both Ubuntu’s Unity Greeter and the GNOME Display Manager let you easily switch between desktop sessions (handy if you want to keep Unity or another desktop around) but only GDM offers GNOME-specific features such as lock-screen notifications.

When you’re ready to decide make your selection using the up/down arrow keys and hit ‘Enter/Return’ to confirm. The installation will then proceed.

If it does not work, run sudo apt-get -f install, then try the above commands again.

In case it does not work, install Ubuntu GNOME instead of Ubuntu. It is actually Ubuntu itself but with GNOME instead of Unity. It is also officially supported by Canonical. Note that this will erase all data from your existing Ubuntu installation. The link to download is below.

Get Ubuntu GNOME


Software Center is not opening, and sudo apt-get update is not working

You can try removing it and re-using apt-get update.

Do the following

sudo rm /etc/apt/sources.list.d/medibuntu.list


Dragon NaturallySpeaking 11 installer on wine gets stuck

The installer is still stuck where it was but I can see it appear under the Wine menu and from there I can run it. So, I just killed all the wine related processes and all looks good now.


Why are files duplicated in my home folder and desktop?

Your user-dirs.dirs folder is messed up, but it's easy to fix it. Open the terminal and run:

nano ~/.config/user-dirs.dirs

If you don't want to use nano you can use your favorite text editor, e.g. gedit.

In user-dirs.dirs you should have some entries similar to the following:

XDG_DESKTOP_DIR="$HOME/Desktop"
XDG_DOWNLOAD_DIR="$HOME/Downloads"
XDG_TEMPLATES_DIR="$HOME/Templates"
XDG_PUBLICSHARE_DIR="$HOME/Public"
XDG_DOCUMENTS_DIR="$HOME/Documents"
XDG_MUSIC_DIR="$HOME/Music"
XDG_PICTURES_DIR="$HOME/Pictures"
XDG_VIDEOS_DIR="$HOME/Videos"

I suppose that in your case your XDG_DESKTOP_DIR entry is just XDG_DESKTOP_DIR="$HOME/". This means that it points to your home directory and that's why you have your home directory "duplicated" on your Desktop. Probably the rest of the entries are messed up too.

Change this entry, along with the rest of them, so they point to the correct locations, as shown above. Save the file and restart your computer for the changes to take effect.

Edit

You have to create the Desktop directory first, since you don't have one. To create it run:

mkdir ~/Desktop


you are using gnome-tweak tool....,following this step

1. Shell Extensions -> user theme Extension --> enable(on)
2. alt + f2 -> "r" -> enter

Backing to gnome-tweak, you go to the Theme. You will see a workable function of shell-theme.


I re-installed ubuntu 14.04 and it won't boot

Try pressing CtrlAltF1

Then run the following commands:

sudo service lightdm stop
sudo service lightdm start


Juju on AWS t1.micro (or other) reserved instances

t1.micros are really not very performant, especially with Juju .7 as it needs zookeeper on the node and that brings in Java and so on.  This makes it pretty much unusable on t1.micros, and is the reason you're having problems.

The good news is that for Juju 2.x we're working on containers so that Juju will deploy inside an LXC container on an instance. A nice bonus of this is that we'll finally have the ability to run more than one charm/service on the same instance.

That means that you'd reserve just one small instance for $61 that would run everything. On top of that Juju 2.x has a much lower overhead than .7. This works out to ~$5 a month, not counting bandwidth, that's not a bad deal!

The downside is that this feature is not ready, but the flipside is that there's an entire team working on this feature right now and it's due to land over the next month or so.

This is probably not a solution to your current problem, but if you could wait just a little while longer we're getting there.

Here's some things to follow up on:

https://lists.ubuntu.com/archives/juju-dev/2013-June/001104.html
https://lists.ubuntu.com/archives/juju-dev/2013-June/001112.html


How do I logout in Ubuntu 17.10 with wayland?

Click on your username in the top-right corner, there should be a logout option.

Alternatively, click on "Activities" (or press super) and search for "log out" (or the equivalent word in your system language, e.g. "abmelden" in German). A "Log out" icon should appear which should log you out.


How do I mount the documents folder on a different partition?

During Ubuntu setup you can change the mount longs of folders. Backup all information on your Ubuntu partition, and boot to the install disc. When prompted for where to put Ubuntu, choose "Something Else" to bring up the advanced partition editor. Set the mount point for / where your current ubuntu install is. Then select the storage drive and set the mount point to /home/username/Documents, /home/username/Pictures, etc, replacing username with your username.


http://localhost not working but https://localhost working?

It may work if you enter the exact IP address instead of the hostname (e.g. 192.168.1.5)

Either that, or port 80 (for HTTP) is not configured/is blocked while port 443 (for HTTPS) works

If needed you can find a list of commonly used ports here


How to make postgresql user access file system?

Yes the user Postgress is like the root user of postgress, handling the daily chores of postgress, dont mess with it!

Your first postgres-job is to make urself a postgres-user, and you use that account to create your databases, and access the filesystem.


How to Fix
Changing Permissions.

Right click on the file
Go to Permissions tab
Under all Access entries, choose Read and Write

If that doesn't Work
Launch your file manager as Super User.

Type in a Terminal sudo nautilus
Assuming you are using Nautilus as your file manager, if this doesn't work, try sudo dolphin

Change Permissions.

Navigate to the Permissions tab
Under all of the Access entries, click Read and Write

There you have it!  Good Luck!


How to use Transmission BitTorrent Client with proxy?

I think it was removed long ago for the issues it had. Probably you should install something else like Deluge


Alcatel X215 3G no longer works in 12.04 (no /dev/ttyUSB*)

I followed the instructions below and got X220L work after restart.

ALCATEL Modem compatibility on UB 12.04


After update to 18.04 applications constantly freeze

I had same behavior as described here (fresh installation of Ubuntu 18.04 on a new computer). I feared some hardware issue between the cpu (AMD Threadripper), the mainboard (ASUS x399) and the video driver (tried with Nvidia GTX 250, GTX 550Ti and GTX 750 Ti, nothing changed).

Then, today I updated Chrome to the last stable version, 68.0. All freezes and hangups are now gone. Hope this can help someone.


After 19.10 upgrade I have an extra frozen cursor

Did you try to change the interface at logging screen? Does the cursor still appear whatever interface you select ?

(I don't have Ubuntu 19 but 18.04 LTS but I guess changing interface should work the same (?))


Found  this ... and managed to sort it...

# Determine wireless device model (manufacturer 14e4 for Broadcom):
lspci -vvnn | grep 14e4

# Install Broadcom STA driver for BCM43227:
sudo apt-get update
sudo apt-get install --reinstall linux-headers-generic build-essential dkms bcmwl-kernel-source
sudo modprobe -r b43 ssb wl brcmfmac brcmsmac bcma
sudo modprobe wl

# Connect (press Fn+F3 to enable wifi if necessary first):
sudo ifconfig wlan0 up
sudo iwlist wlan0 scanning
sudo iwconfig wlan0 essid MYSSID key s:MyWifiPwd
sudo dhclient wlan0

# Troubleshooting commands:
iwconfig
nm-tool
rfkill list
sudo lshw -C network


How do I list commands a package provides?

The following little loop will handle this with installed packages.

$ for f in $(dpkg -L login); do [[ $(type -P "${f##*/}") == "$f" ]] && echo ${f##*/}; done
nologin
lastlog
newgrp
faillog
su
login
sg

How it works:

dpkg -L package generates a list of all the files in a package which we iterate through.
We strip off the directory name with a little bashism: ${f##*/} and
Using the bash-builtin type -P command we see if that command is both in the path and that its path equals the file we started with.
We finish by pumping out the shortened command.
[[ condition ]] && command is just a bash shorthand for an if..then statement.

It's important to note that not all packages contain the commands you would expect them to. Apache is split out over multiple packages (with -common and -bin subpackages) and the vlc command isn't in the vlc package, it's in vlc-nox. There are many examples like that.

This can be adapted per Gilles's idea, doing a string match instead of actually checking, but keeping it all in one bash process (and still using the whole path).

for f in $(dpkg -L login); do [[ $f =~ ^${PATH//:/|} ]] && echo ${f##*/}; done

The major difference here is the [[$f =~ ^${PATH//:/|} ]]. That's an in-Bash regex search. The ${PATH//:/|} part is taking the contents of $PATH and is hacking them into a dirty little regex. The condition should check the string begins with part of the path.


How to add an 'apt' linked application into Firefox?

Open Firefox and type about:config in the address-bar and press enter. ("Accept the risk" if needed.)
Right click anywhere and select New > Boolean.
Enter network.protocol-handler.expose.apt for preference name and select false for value.
Restart Firefox.
Try opening an apt:// link. It should show a pop-up, select AptUrl, and check the option to remember it.

Source


13.10 Can't Adjust Dell Laptop Backlight

Try this in a terminal:

echo 4000 | sudo tee /sys/class/backlight/intel_backlight/brightness

4000 is the full brightness, and 0 is no brightness (screen completely dark), so you can choose any value in between as you like. Note that the path to the brigtness may be different on your computer, so adjust accordingly.

This works for me on Dell Studio 1558, Ubuntu 13.10 64 bit. Also you'll have to do this every-time you have to change brightness. It will reset when you restart the computer.

Good luck!


What is the searchable program name of the "Files" application?

Here's the solution to the mystery:
When you click on File -> About, it doesn't show you the name of the file manager.  It shows you the word "Files".
To find out the name of the program you follow the directions in this Ask Ubuntu answer:

Find out which programs show up with the name "Files" when run
We need to look into all *.desktop files for the name. There, we find the command in the Exec line:
locate -b '.desktop' | xargs grep -ls '^Name.*=Files$' | xargs grep '^Exec.*'

lists desktop file names and commands for the GUI program Files


How to set GNOME as my default desktop environment?

(This answer was tested with Ubuntu 14.04. It is probably not useful for newer Ubuntu editions)

I do not know about ligthDM (@muru confirm that lightDM behave the same), but if you use gdm as display manager the default session is simply the last one you choose (at least, it was --- I hope they didn't change this; can't test now because I removed all desktops minus the gnome-shell one).

To install gdm (which, by the way, is the best thing to do if you want gnome-shell --- I had problems with gnome-shell + lightDM), simply

sudo apt-get install gdm

If you have it already installed, just

sudo dpkg-reconfigure gdm

will ask you which display manager to use.

Then when you login, you choose Gnome as the desktop you want, and the subsequent login that will be the default.


Is there any way to set a greeting message in ubuntu?

You could pop up a simple zenity dialog on login with the content of your quote.
Put the following code into a script then add that script to your "Startup Applications"
zenity --info --text=$quote --title="A Quote"

Using fortune
Install the fortune-mod package (sudo apt-get install fortune-mod) then you can integrate the fortune command into your script like this:
zenity --info --text="$(fortune literature)" --title="A Quote" --no-wrap

You can just add that command to your Startup Applications without putting it in a script.
The literature option is used to specify that you want a quote specifically, otherwise it will give you jokes, riddles and other 'fortunes'.
Note: some of the fortunes are quite long, use --text="$(fortune -s literature)" instead of --text="$(fortune literature)" in the command above to print short quotes only.
Screenshot below:

Fortune also has many different options to customize the type of quotes you'll get (literature, riddles, etc.) See the fortune man page for more information. To use those options, just change fortune in the command above to fortune SOME_OPTION.
Credits to FreudianSlip for the fortune command


How do I keep track of the cursor on multiple monitors?

I feel like I remember another way, but: in terminal

sudo apt-get install compizconfig-settings-manager compiz-plugins

then open ccsm using

ccsm

and enable show mouse, click super+k produces a circular star animation.


Looks like you have to to disable font hinting, either through GNOME/KDE settings or by putting the following in ~/.fonts.conf (create the file if it doesn't exist):

<match target="font">
  <edit name="hinting" mode="assign">
    <bool>false</bool>
  </edit>
</match>

This is configurable because some people prefer crispier look reminiscent of Windows XP.


Ubuntu uses lightdm instead of gdm by default, unless you have installed Ubuntu Gnome.

You should probably look into how you can achieve the same things in lightdm.

Or you can install GDM if you want to use that.


Try to open energy manager in gnome-control-center and set all the options. In my case, behavior for critically low battery was in blank. Setting it to "close" makes power indicator to appear in both the panel and the popup-menu. Good luck!


Unable to get ubuntu running normally on a Sager Clevo

Definitely stick with 18.04.  Did you hashcheck the downloaded iso?  Did you do a media-check after creating the install media?  Nvidia video usually requires a "nomodeset" on grub line starting with "linux" (type e to edit the grub commands, add the nomodeset at the "quiet splash" words.  If that boots, run

sudo apt-get update

and then in the Software and Updates program (type in the launcher search to find that) under the additional drivers tab, select the Nvidia driver which says "tested" or the most current one.  Reboot and things should be better. I assume the wireless will just work under 18.04, if the install media is OK.


To get the lstdc++ flag to work, you'll need to install a C++ compiler. Try this:

sudo apt-get install g++


I have found the solution for the destroyed audio in running programs.

Lutris has a "reset PulseAudio" option under System-Configuration which seems to be the culprit.

I hope this helps someone else using lutris + any voice programs in background


I actually figured this out in a very simple way.

I connected a 2nd HDMI cable from the tower to the 2nd HDMI port on the screen. Ubuntu recognises the extra connection as a 2nd screen and extends the desktop.

Remoting in with TeamViewer then gives me the option to switch between 2 monitors.


Boot hangs after "Checking battery state..."

I'm not sure, but try going into /etc/X11/xorg.conf and changing the device driver to vesa. (vesa is a generic video driver that works with most video cards)


In answering your related question I discovered that /etc/samba/smb.conf isn't modified when you setup a locale share as in that question. The reason this doesn't persist is that when the samba daemons start they look to /etc/samba/smb.conf for information on what shares to expose. Since this doesn't appear to be modified when selecting a folder to share via the GUI, the change doesn't persist. Whether this is a bug or a feature depends on your perspective.

To setup a permanent share you'll need to edit /etc/samba/smb.conf

Here's an example that you can modify to fit your requirements:

[global]
    workgroup = METRAN
    encrypt passwords = yes
    wins support = yes
    log level = 1
    max log size = 1000
    read only = no
[homes]
    browsable = no
    map archive = yes
[printers]
    path = /var/tmp
    printable = yes
    min print space = 2000
[test]
    browsable = yes
    read only = yes
    path = /usr/local/samba/tmp

For further documentation on Samba see https://www.samba.org/samba/docs/

Sources:

https://askubuntu.com/a/888857/225694

https://www.samba.org/samba/docs/


Why can't I Install 64 bit Ubuntu inside Microsoft Virtual PC?

tl;dr: Use VirtualBox. Don't use VPC.

Virtual PC 2007 is quite old and no longer under development. It is unlikely that any bugfixes have been put in recently. It also doesn't officially support Linux. Since I don't know the nature of your error or if there is even a fix, I recommend you use Virtualbox as it is still being updated and has great Linux support. Moreover, it is free and open-source, which helps with bugfixes and security. It is very similar:

Download and install it
Open the program.
Click on New at the top.
Set the RAM to at least 512MB if possible. 1 or more GB is recommended.
Make the disk dynamic and at least 100GB. It uses about 1.8 GB on your host drive once installed and only uses more space on the host as you use space on the guest. Be sure to use the VDI option.
Finish up and right click the virtual machine in the menu and click "Settings"
Under System->Acceleration, turn on both the VT-x/AMD-V and the nested paging options.
Click OK and start the VM.
In the first run wizard, point the VM to the ISO file you downloaded for Ubuntu.
Boot up and install as usual. You have no risk of damaging your Windows partitions.

If you are unable to use AMD-V, or Intel Virtualization technology, turn it on in your BIOS(You probably will have one or the other, not both), and see this answer. Note that some BIOSes and processors do not support virtualization.


There are three steps to what you're running:

add-apt-repository adds a PPA to your list of sources, (importing the GPG public key of the PPA automatically), so that Ubuntu knows to look for updates from that PPA as well as from the official Ubuntu sources. Usually this is used by developers to provide updates more quickly than in the official Ubuntu repositories.

apt-get update tells APT to update its database of what packages can be installed and where to install them from. In this case, apt-get will see your newly-added PPA and discover that ppa:maco.m/ruby has the newest version of rubygems that it knows about, so it will make a note to install rubygems from the PPA next time someone asks to install it.

apt-get install causes apt-get to find the package in its database and download and install the indicated file. In this case, it will find the rubygems package, download it from ppa:maco.m/ruby, and install it.

If you were to simply run apt-get install rubygems, you would get a less-recent version (or perhaps nothing at all, depending on whether rubygems is also in the Ubuntu repositories or only in the PPA).
In general, the format ppa:a/b will expand to https://launchpad.net/~a/+archive/b, where you can view the files and download them individually. In your case, that would be https://launchpad.net/~maco.m/+archive/ruby.


Nouveau or Intel - what's my system using?

Although the question being off-topic until Ubuntu 16.04 will be released in April, you are asking something that is a general topic. You are using the intel graphics, the NVIDIA card is not in use. Currently installed are intel and nouveau drivers, what you describe is normal and NOT a bug.

The reason is that you are having hybrid graphics, the integrated intel graphics and the dedicated NVIDIA GEFORCE GTX 960M graphics. You only can use the NVIDIA graphics when you install the proprietary NVIDIA drivers and nvidia-prime, which provides NVIDIA Optimus support. Then you can switch between both graphics from NVIDIA X Server Settings (PRIME Profiles) application.

Here you find the information on how to properly install the NVIDIA drivers for your adapter :

Installation of the proprietary NVIDIA drivers for NVIDIA GEFORCE 9M series graphics


Ubuntu 18.04 LTS: too early for operation error

Adjust the time and time zone, otherwise an error will be reported:

error: too early for operation, device not yet seeded or device model not
acknowledged

To adjust, run:

apt install ntpdate
sudo ntpdate ntp.sjtu.edu.cn    #(NTP server address of Shanghai Jiaotong University Network Center）
timedatectl set-timezone Asia/Shanghai

You can choose the ntp server and timezone near you.

Doing a sudo apt purge snapd followed by a sudo apt install snapd solves this issue in both cases.


How to sync to a specific folder in Google Drive

I'm a bit confused by what you mean by "only a specific folder is treated as my root folder in Google Drive i.e., only files and folders contained within the specified Google Drive folder are synced".

Do you want:

a) my_directory = your google drive root, as I read the first part of your sentence or

b) my_directory = a folder named my_directory in google drive, how I read the second part.

This is how I achieve b) (in my case, my_directory is in ~/grive):

cd $HOME/grive
grive -s my_directory

I only had to use -a the first time btw.


Please note, you can set any password using root account, there rules accepted for users that trying to change it's own password.

To set password expiration and other parameters for all new users you should check /etc/login.defs file.

Actually your rules looks like correct, I think you just try to set password using root, but superuser (root) should have full access to system and it's not rational to prevent that user to do something.


Dell Inspiron 3542 b40 i5 8gb ram 1TBHD not shutting off

Similar question in Manjaro Forum by a Manjaro user tokakaro says updating BIOS fixes the problem:

  Shutdown is working now in my Laptop with Manjaro.

  I researched in the last days and I found a new update for my BIOS. I
  made a bootable USB with FreeDOS for update from A10 to A11 and fix
  my problem again... (before A00 to A10)

  Dell links (both at the same day... the reason why I didn't update
  before):

  System BIOS A10 since 27 Jan 201613
  System BIOS A11 since 27 Jan 201622


install opencv-2.4 in beagleboard zm rev c (12.04)

Open a terminal and enter the following commands to add the ppa:yjwong/opencv2 to your sources:

sudo apt-add-repository ppa:yjwong/opencv2
sudo apt-get update

Now to install the libopencv-dev package (version 2.4.8) on your 12.04 system:

sudo apt-get install libopencv-dev

To check the installed version:

$ dpkg-query -W libopencv-dev
libopencv-dev   2.4.8+dfsg1-2ubuntu1ppa1~precise1


VirtualBox 5 is unable to create a host-only adapter on Ubuntu 16.04

It turns out that the solution to the networking problem is a separate module that must be signed to allow this specific function.  As stated in the signing solution here:  https://askubuntu.com/a/768310/254069

VBoxManage hostonlyif create needs the following modules to also be accessible (modprobe):

openssl req -new -x509 -newkey rsa:2048 -keyout MOK.priv -outform DER -out MOK.der -nodes -days 36500 -subj "/CN=MOK Signing/"

sudo /usr/src/linux-headers-$(uname -r)/scripts/sign-file sha256 ./MOK.priv ./MOK.der $(modinfo -n vboxdrv)
sudo /usr/src/linux-headers-$(uname -r)/scripts/sign-file sha256 ./MOK.priv ./MOK.der $(modinfo -n vboxnetflt)
sudo /usr/src/linux-headers-$(uname -r)/scripts/sign-file sha256 ./MOK.priv ./MOK.der $(modinfo -n vboxnetadp)
sudo /usr/src/linux-headers-$(uname -r)/scripts/sign-file sha256 ./MOK.priv ./MOK.der $(modinfo -n vboxpci)

sudo mokutil --import MOK.der

Restart and "Enroll MOK"

$ VBoxManage hostonlyif create
0%...10%...20%...30%...40%...50%...60%...70%...80%...90%...100%
Interface 'vboxnet1' was successfully created


If you want the Linux kernel, you can get this from the Linux Kernel Archive: https://www.kernel.org/
Here you will find the kernel code for all the Linux distributions. You can download them, compile them (it does take time!) and load new kernels.
You can look at this link, https://wiki.ubuntu.com/Kernel/BuildYourOwnKernel which will tell you how to rebuild your kernel from source and lead you to where Canonical stores its source code.


GTX 580 Your system is running in low graphics mode

I had a similar problem and have tried almost everything suggested in this forum. After searching the log I found:

Failed to open DRM device

I searched and found this bug report.

The solution of Gavin (#44) worked for me. Reason seems to be that my system (SSD, i7) is booting too fast for the udev device driver.  Lightdm is trying to start before UDEV reports the graphics devices as being ready. As your system also boots from ssd this solution may help.

Inserting the line into /etc/init/lightdm.conf as shown in the bug report did the job for me.

Good luck,
Max


That is the documented behavior. Specifically, from man 5 crontab:

   Note: The day of a command's execution can be specified by two fields —
   day of month, and day of week.  If both fields  are  restricted  (i.e.,
   aren't  *),  the command will be run when either field matches the cur‐
   rent time.  For example,
   ``30 4 1,15 * 5'' would cause a command to be run at 4:30 am on the 1st
   and  15th  of  each month, plus every Friday. One can, however, achieve
   the desired result by adding a test to the command (see the last  exam‐
   ple in EXAMPLE CRON FILE below).


FileZilla is the de-facto standard when it comes to an FTP client. It is extremely powerful while remaining very easy to use. You mentioned the user interface, and you're really not going to find much better then FileZilla as far as that. However, here are the top ten most popular alternatives:

1. Nautilus

Don't forget the FTP client that comes with Ubuntu! It integrates very nicely with Ubuntu, and is very easy to use. You don't have to install any additional software. However, it lacks many of the powerful features that a full-featured FTP client, like FileZilla has.

To use it, go to File > Connect to Server with the desktop selected.

2. gFTP

Another option is to use gFTP, a FTP client with a nice graphical interface that is different from FileZilla's, but only slightly. It can be installed through the Ubuntu Software Center or through sudo apt-get install gftp.

3. Kasablanca

Kasablanca is a GUI FTP client intended for use in KDE, but it will work in Unity too. The interface is very simple and it lacks some of the advanced features of more sophisticated FTP clients. It can be downloaded here.

4. FireFTP

If you prefer a Firefox add-on, FireFTP is a great one that will allow you to transfer files from within the browser. Download it here.

5. KFTPgrabber

A FTP client for the K Desktop Environment (KDE). It can be downloaded at kftp.org.

6. GNOME Commander

GNOME Commander is an FTP client with a very unique interface that supports themes and customization. It can be installed through the Ubuntu Software Center or sudo apt-get install gnome-commander.

7. Sitecopy

Sitecopy is a unique FTP client in that it automatically synches a directory on your computer with a directory on an FTP site automatically in the background. Details at the project's website, which can be found here. Sorry, but I couldn't find a screenshot for this one.

8. Filerunner

Filerunner is an FTP client with a very basic interface. It can be installed through the Ubuntu Software Center or through sudo apt-get install filerunner.

9. Konqueror

Konqueror, a web browser for KDE, can access FTP sites when you type ftp://username@server.com/ into the address bar. it can be installed through the Ubuntu Software Center or through sudo apt-get install konqueror.

10. net2ftp

net2ftp is an online FTP client which lets you upload files from the web browser without having to install any additional software. It can be accessed through net2ftp.com.

Hope that helped. Please let me know if I left any clients out that you think should be included.


Can Ubuntu be installed on a Samsung Galaxy Nexus Verizon 4g phone

According to the page, only the codenames maguro is supported.  You can find out what your device codename is by using this app from the Play store.

It is not entirely mandatory that the phone be GSM, just that the OS images that you receive will be specifically for GSM and if you flash it onto your non-GSM phone, it might not work entirely.

You can flash an unofficial ROM that someone created for their non-GSM GNex, but it might not work and may not be a straightforward process.  It is worth reading through the thread if you decide to go down this route.  You should familiarize yourself with Nandroid, ClockworkMod and the commandline for this - in case the results aren't what you want, you will need to flash your original OS back or flash an alternate like CyanogenMod.

I have submitted a change to the wiki page indicating 'GSM/HSPA+', pending approval.


Permission denied for many directories with Rsync

We'll need a bit more details.
When are permissions denied and what do you want to achieve?

If I presumed right and it's denied when you try to upload files I would presume you can allow permissions to an RSync group to prevent it.


This version at moonlight site is beta, but it worked for me.

http://www.go-mono.com/moonlight/download.aspx

And it shall work according to Mozilla

http://support.mozilla.com/en-US/kb/Using%20the%20Silverlight%20plugin%20with%20Firefox


Maybe your CMOS battery is getting empty (the battery on the motherboard itself).

You can hit F1 (or DEL according to you motherboard) at the first seconds during pc starup to enter BIOS.

in the BIOS you can check the hardware clock.

Just let the computer run and check if the time stays correct (during this time you can't use your computer)

If the hardware clock is not running correctly, you can replace the battery.
http://www.computerhope.com/issues/ch000239.htm


Hybrid Graphics problem - Discrete graphic card doesn't work

Using mesa this should work, but i do recommend to upgrade to the latest ubuntu release or use the updated oibaf drivers PPA and probably also update the kernel using the latest from here, but both mesa and the kernel have improved a lot in the last few years for the 3D support and fixed many problems

Finally check this for the direct usage of each GPU


Ubuntu 16.04 and newer versions have python3.5 instead of python3.4, see these search results on packages.ubuntu.com.

Therefore I suggest you try your command again, replacing all occurrences of 3.4 with 3.5:

sudo apt install -f --reinstall python3 python3.5 python3-minimal python3.5-minimal libpython3.5-minimal


installed TRAC and SVN on ubuntu server 12.04LTS - login not working, and no svn connection

I figured it out myself.

changed this:

<Location /trac/[[:alnum]]+/login">
  AuthType Basic
  AuthName "Subversion Repository"
  AuthUserFile /etc/apache2/passwords
  Require valid-user
</Location>

to this:

<Location /trac/">
  AuthType Basic
  AuthName "Subversion Repository"
  AuthUserFile /etc/apache2/passwords
  Require valid-user
</Location>


How can I repair grub? (How to get Ubuntu back after installing Windows?)

When you install Windows, Windows assumes it is the only operating system (OS) on the machine, or at least it does not account for Linux. So it replaces GRUB with its own boot loader. What you have to do is replace the Windows boot loader with GRUB. I've seen various instructions for replacing GRUB by mucking around with GRUB commands or some such, but to me the easiest way is to simply chroot into your install and run update-grub. chroot is great because it allows you to work on your actual install, instead of trying to redirect things here and there. It is really clean.

Here's how:

Boot from the live CD or live USB, in "Try Ubuntu" mode.
Determine the partition number of your main partition. sudo fdisk -l, sudo blkid or GParted (which should already be installed, by default, on the live session) can help you here. I'm going to assume in this answer that it's /dev/sda2, but make sure you use the correct partition number for your system!

If your main partition is in an LVM, the device will instead be located in /dev/mapper/, most likely, /dev/mapper/{volume}--{os}-root where {volume} is the LVM volume name and {os} is the operating system. Execute ls /dev/mapper for the exact name.
Mount your partition:

sudo mount /dev/sda2 /mnt  #Replace sda2 with the partition from step 2

If you have a separate /boot, /var or /usr partitions, repeat steps 2 and 3 to mount these partitions to /mnt/boot, /mnt/var and /mnt/usr respectively. For example,

sudo mount /dev/sdXW /mnt/boot
sudo mount /dev/sdXY /mnt/var
sudo mount /dev/sdXZ /mnt/usr

replacing sdXW, sdXY, and sdXZ with the respective partition numbers.
Bind mount some other necessary stuff:

for i in /sys /proc /run /dev; do sudo mount --bind "$i" "/mnt$i"; done

If Ubuntu is installed in EFI mode (see this answer if you're unsure), use sudo fdisk -l | grep -i efi or GParted to find your EFI partition. It will have a label of EFI. Mount this partition, replacing sdXY with the actual partition number for your system:

sudo mount /dev/sdXY /mnt/boot/efi

chroot into your Ubuntu install:

sudo chroot /mnt

At this point, you're in your install, not the live session, and running as root. Update grub:

update-grub

If you get errors or if going up to step 7 didn't fix your problem, go to step 8. (Otherwise, it is optional.)
Depending on your situation, you might have to reinstall grub:

grub-install /dev/sda
update-grub # In order to find and add windows to grub menu.

If Ubuntu is installed in EFI mode, and EFI partition UUID has changed, you may need to update it in /etc/fstab. Compare it:

blkid | grep -i efi
grep -i efi /etc/fstab

If current EFI partition UUID (from blkid) differs from the one in /etc/fstab, update /etc/fstab with current UUID.
If everything worked without errors, then you're all set:

exit
sudo reboot

At this point, you should be able to boot normally.

If you cannot boot normally, and didn't do step 8 because there were no error messages, try again with step 8.

Sometimes giving GRUB2 the correct configuration for your partitions is not enough, and you must actually install it (or reinstall it) to the Master Boot Record, which step 8 does. Experience helping users in chat has shown that step 8 is sometimes necessary even when no error messages are shown.


Boltctl does not show my thunderbolt3 devices on Lenovo Thinkpad 25

I had the same problem. What helped was using the correct port on the laptop (see here. Basically, there are two ports in which the connectors fits, one is the power hub for the charger (close to the escape key), and one is slightly more to the front (with a lightning logo). Connecting the dock with this port, made everything work.

Hope this helps


You can get both ath9k and rtl8187 in backports-3.15 with:

cd ~/Desktop/backports-3.15.1-1  <--or wherever you extracted it
make clean
make defconfig-wifi
make -j4
sudo make install

Backports currently won't compile on the latest Ubuntu kernels so I suggest that, for now, you stick with 13.10. https://bugs.launchpad.net/ubuntu/+source/linux/+bug/1342703

You will have compiled the drivers for your currently running kernel only. When a later linux-image is installed, after the requested reboot, re-compile as above.


Is it possible to run an application as superuser within boot without input?

Since Ubuntu uses Upstart, you need to write a custom job for Upstart: http://upstart.ubuntu.com/getting-started.html

Processes started during the boot sequence have superuser privileges, so you don't need to bother with sudo, passwords and stuff.


Hibernation has been disabled by default. Please follow instructions here: How to enable hibernation?


Is it possible to do an unattended/silent lamp installation?

Yes but you need to create the installation script yourself.

Example that installs Apache 2, PHP 5, MySQL, the Java JDK, NetBeans, and C++. Where PASSWORD needs to be your MySQL password (found that here):

#!/bin/sh

apt-get update
apt-get -y install apache2
apt-get -y install php5 libapache2-mod-php5
/etc/init.d/apache2 restart

echo mysql-server-5.1 mysql-server/root_password password PASSWORD | debconf-set-selections
echo mysql-server-5.1 mysql-server/root_password_again password PASSWORD | debconf-set-selections
apt-get install -y mysql-server

echo '' >/var/www/phpinfo.php
apt-get -y install openjdk-6-jdk openjdk-6-jre
apt-get -y install libnb-platform12-java
apt-get -y install libnb-platform12-java-doc
mget http://download.netbeans.org/netbeans/7.1.2/final/bundles/netbeans-7.1.2\
-ml-linux.sh

#Clean out /tmp...
sudo rm -rf /tmp/*
cd /tmp

#Update this line to reflect newer versions of Netbeans or replace 'javase with 'javaee' or add jee manually via
#Netbeans 'plugins as needed.
wget http://download.netbeans.org/netbeans/7.1.2/final/bundles/netbeans-7.1.2-\

ml-linux.sh
sh /tmp/netbeans-7.1.2-ml-linux.sh --silent

#Add Netbeans launcher to your PATH. Doing so allows you to run 'netbeans' command from the terminal
ln -s /usr/local/netbeans-7.1.2/bin/netbeans /usr/local/bin/

#C++
apt-get -y install build-essential
apt-get -y install synaptic

exit 0

If there is more in this script than you need (like C++, netbeans) just remove the apt-get lines. Also might need to change version numbers to the latest stable versions.


Are there any offline blogging tools available?

Thingamablog is an easy to use and powerful cross platform blogging tool. And when I say "easy to use" I am serious. It can be used to create localhost blogs or put them on your web server with ease. It is as powerful as wordpress, blogger, and it allow you to customize your themes with ease using html.

Unfortunately there is no more official support nor new releases but I can confirm that you can run it in at least 12.04 and probably further.

My current blog and the official Thingamablog website are yet made in Thingamablog. My blog (for demo purposes) can be reached clicking here.

A screenshot of thingamablog working in my 12.04 LTS is placed here. Additional information can be reached in the official website at http://www.thingamablog.com/

Good luck!


In order to fix the issue with booting, please try the following,

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

sudo apt-get update

sudo apt-get install boot-repair

Once you are done with the above restart the machine and check.


Ubuntu Phone no support for pop3, ical or webdav?

You can install "dekko" from the store, it's an email client
https://appstore.bhdouglass.com/app/dekko.dekkoproject

There is also a calendar application and you can sync google calendar
https://appstore.bhdouglass.com/app/com.ubuntu.calendar

Support for other types of accounts is going to come but not being worked on yet...


How to fix colours in the Software Centre?

Open up a terminal and type the following command:

gksudo gedit /usr/share/software-center/ui/gtk3/css/softwarecenter.css

The first two lines should look like this:

@define-color light-aubergine #DED7DB;
@define-color super-light-aubergine #F4F1F3;

Copy and paste those two lines right below then comment out the originals, by enclosing them between /* and */. Change the two HTML color codes (#DED7DB and #F4F1F3) to your preferred dark colors so that dark text will show up.
Save and close Gedit. Launch Ubuntu Software Center to check out the results.

As an example, the first lines of css file now look like this:

@define-color light-aubergine #CD4634;
@define-color super-light-aubergine #CD4635;

This colour scheme is Numix orange.


Your filesystem was not cleanly unmounted. Probably the computer was powered off suddenly or you have problems in the hard drive.
You can boot your system with a rescue disk or a Ubuntu Live and fsck the drive to find errors.
In order to recover is important to know if you had the drive encrypted or not, and if you have empty space. Some times you may just fix the problem by making a bit of free space if you ran out of.
If the problem was in the boot you could use:
https://help.ubuntu.com/community/Boot-Repair


How can I force a connection to a specific WiFi network using nmcli?

How about nmcli connection up $NAME ifname $IFACE?

nmcli device wifi connect creates a new connection, also it expects as argument an SSID, not a connection (name).


Failed to connect to https://changelogs.ubuntu.com/meta-release-development. Check your Internet connection or proxy settings

It seems like there is an issue about certificates:
result of meta-release download: <urlopen error [SSL: CERTIFICATE_VERIFY_FAILED] certificate verify failed (_ssl.c:841)>

As a workaround, I edited the file /usr/lib/python3/dist-packages/UpdateManager/Core/MetaRelease.py and added these lines to the beginning:
import ssl
ssl._create_default_https_context = ssl._create_unverified_context


Is related to this bug:

https://bugs.launchpad.net/ubuntu/+source/unity-control-center/+bug/1440157

The workaround:

Downnload

https://launchpad.net/ubuntu/+archive/primary/+files/libtimezonemap-data_0.4.4_all.deb
Download

a) if 64bits:

https://launchpad.net/ubuntu/+archive/primary/+files/libtimezonemap1_0.4.4_amd64.deb

b) if 32bits:

https://launchpad.net/ubuntu/+archive/primary/+files/libtimezonemap1_0.4.4_i386.deb
Install the two packages:

a) 64bits

sudo dpkg -i libtimezonemap1_0.4.4_amd64.deb libtimezonemap-data_0.4.4_all.deb

b)32bits

sudo dpkg -i libtimezonemap1_0.4.4_i386.deb libtimezonemap-data_0.4.4_all.deb


There are a few programs I want to install.. both of which are a .tar.gz and a .tar.bz2 file. When I double click on them, they just open in the archive manager...How do I install them?

In Ubuntu, you usually install packages from the Software Center. You can also install another package manager called Synaptic which gives you access to a much wider variety of programs.

.tar.gz or .tar.bz2 "programs" are very often source code, which you must compile in order to get a usable program. I don't recommend you do this if you are new to Ubuntu.

Sometimes, generic Linux programs (i.e. not for Ubuntu, but any flavor of Linux) are also distributed as archives. For your examples, you can simply click on Extract in Archive Manager, and extract them to your home directory. To run them, go to your Home Folder, double-click on the Program Folder, and click on the program. For uTorrent, that's utserver; you should be able to tell which one it is for the other one (I didn't download it because it's a large file).

32-bit programs will NOT work on 64-bit Ubuntu by default. You need to do the following first:

Open Terminal, with Ctrl-Alt-T
Type sudo apt-get install ia32-libs -y
Enter your password
Wait for installation to complete, then type exit to quit the Terminal
Now try running your programs.


xorg.conf to get current "Section "Device" content

Usually you want need to set the xorg.conf file yourself since settings are automatically determined.

Most options can be guessed from the Xorg log at /var/log/Xorg.0.log (0 is the display number). If you've an i5 or i7 processor, you're likely using the intel driver (the log will have a line with "(II) intel: Driver for Intel Integrated Graphics Chipsets: ...").

If you still want to proceed generating the /etc/X11/xorg.conf file, you need to run Xorg -configure as root without an active X server. Disabling the X server will make you loose your graphical session, so make sure that you've saved all work and logged out. When ready, switch to a virtual console by pressing Ctrl + Alt + F1 and login the text console. First, stop the desktop manager: sudo stop gdm or if you're not using GNOME but KDE: sudo stop kdm. After that, you can run sudo Xorg -configure. After that, you can run sudo start gdm or sudo start kdm to get back to the graphical session. If not, (re)move the generated /etc/X11/xorg.conf file.


Import Filezilla sites from a windows computer

The issue is apparently a numeric version problem, as suggested by @GordThompson. The version available in the repo for 15.04 is too old.

I downloaded the new version (3.21.0) from filezilla-project.org's sourceforge link. It was a gzip file that contained a directory called "Filezilla 3" that contained a "bin" and "share" directory. I extracted them inside my downloads directory,  opened thunar as root with pkexec thunar copied /bin & /share then pasted them into /usr, accepting any overwrite requests.

I opened filezilla, imported my Filezilla.xml file and all seems to work fine!


Internet connection lost for browser but still there for transmission

From what you say it seems there might be a problem with the DNS servers.

Transmission continues to work because once it got the address (through DNS) it won't need the DNS servers again and DNS works for a few minutes which is enough.

So:

Right-click the network icon and select Connection information and take note of the IP addresses of the DNS servers.

Then wait until the browser doesn't work anymore, open a terminal and ping 10.10.10.10. Change the address with the one of your DNS servers.

This won't solve your problem but should confirm it is a DNS issue.


Error with "nokuntusp" package when trying to install packages

it is simple...

sudo dpkg --remove --force-remove-reinstreq nokuntusp

run above command in terminal.
It will not asks u to "package nokuntusp needs to be reinstalled".

And synaptic package manager will starts to work.


Type cat /proc/version_signature and you'll probably see that it is:

Ubuntu 3.13.0-32.57-generic 3.13.11.4

You can also use cat /etc/issue to check the Ubuntu Version:

Ubuntu 14.04.1 LTS \n \l


When you run vnstat -u you will need to use sudo

so do the below command with sudo

 sudo vnstat -u  -i ppp0

If all goes ok it should create a database.

Now configure /etc/vnstat.conf to monitor ppp0 interface

Interface "ppp0"

and then restart vnstat

/etc/init.d/vnstat restart


You must drag and drop the languages in the list into the preference order you desire. Applications will then use the topmost language in the list which they do support.

Note that the English element is the default language supported by every package. Therefore all languages in the list below this element are disabled and ignored.

So what you have to do is to either drag your Hindi (or whatever that language is, I don't know) language elements up, or the English one down.

As @Gunnar Hjalmarsson pointed out in his comments, it is not allowed to put any non-English languages between your highest enabled country-specific English language element and the default English element, because that would make few sense. See the comments for his more detailed explanation.


If your DVD is not rewritable (and it looks like that is the case), it won't be possible to delete anything in it. I suggest you to buy a USB Flash Drive, since these have become very cheap nowadays and have a lot more space than regular DVDs.


I think the FS format is in exFAT - a filesystem that I think Ubuntu doesn't agree with all too well (though Windows doesn't mind it). Try placing the format of the SD card as NTFS; I haven't had any NTFS problems with Ubuntu (though I was using 12.04).


How to download newly uploaded videos from a youtube channel?

There's already a script for that: youtube-dl can download videos from youtube.com or other video platforms.

Installation

The program is provided via the repositories and can be installed from there, however as youtube often change things and the program gets ongoing updates in this special case I recommend installing the latest version from github with these commands instead:

sudo apt remove youtube-dl # uninstall the repo version
sudo wget https://yt-dl.org/latest/youtube-dl -O /usr/local/bin/youtube-dl # download
sudo chmod a+x /usr/local/bin/youtube-dl # make it executable
hash -r # hash

If you installed the program this way you're able to update it using:

sudo youtube-dl -U

Usage

Here are some video selection options that could be useful for you:

--playlist-start NUMBER
          Playlist video to start at (default is 1)
--playlist-end NUMBER
          Playlist video to end at (default is last)
--date DATE
          Download only videos uploaded in this date
--dateafter DATE
          Download only videos uploaded on or after this date (i.e.  inclusive)

Examples

Download today's videos including resume of partially downloaded files:

youtube-dl --date now -- 'PLFs4vir_WsTyXrrpFstD64Qj95vpy-yo1'

for www.youtube.com/watch?list=PLFs4vir_WsTyXrrpFstD64Qj95vpy-yo1, while the full link also works

Download all videos from the last seven days using the URL list in file:

youtube-dl --dateafter now-7days -a file

Download all videos from the last month using the URL list in file, but don't touch any already downloaded videos located in the directory:

youtube-dl --dateafter now-1month -a file -w

See man youtube-dl for much more.


Set or determine the UID range for guest accounts

There is a configuration entry in your LightDM configuration (more about the configuration of lightdm, see below):
guest-account-script=

Per default, the script /usr/sbin/guest-account is used. In this script you can find the line
adduser --system --no-create-home --home / --gecos $(gettext "Guest") --group --shell /bin/bash $USER

which means, the guest account is added as a system user. To change the behavior you have to change the line and to replace the ID with another value, but not greater than 499.
adduser --system --uid ID --no-create-home --home / --gecos $(gettext "Guest") --group --shell /bin/bash $USER
Or you could write your own script ;)

More about the configuration files here.

System provided configuration is stored in /usr/share/lightdm/lightdm.conf.d/*.conf and is not user editable. System administrators can override this configuration in /etc/lightdm/lightdm.conf.d/*.conf and /etc/lightdm/lightdm.conf. Files are read in the above order and combined together to make the LightDM configuration.
For example, if you want to override the system configured default session (provided in /usr/share/lightdm/lightdm.conf.d/50-ubuntu.conf) you should make a file /etc/lightdm/lightdm.conf.d/50-myconfig.conf …


There is an API for aNobii and here is software using that API.
But that is about it ... to use this on Ubuntu you still need a script/GUI and I have not found anything but this. So the answer for now is: No.

Another approach for books without an e: aNobii can use the barcode on the back of a book. So get a barcode reader, attach it to your system and scan books while you are on the website. Of course you can also do this with your phone but that is off topic unless it is a Ubuntu phone :+)


Installation problems while using VirtualBox on Windows XP

To quickly remove the installation .iso from virtual box we can select the host CD drive from the "Devices"-menu in Virtual Box Manager:

Alternatively we can also remove the .iso file in the virtual machine's settings.

For a complete guide on how to install Ubuntu in a virtual machine see:

How to install Ubuntu on VirtualBox?


5.1 surround sound with three 3.5mm jacks

First, you should define in ALSA that you have 6 channels. You can refer to this post. Basically, you launch alsamixer and you define (for the right soundcard) the number of channels to 6. Then you store the configuration in order to be reloaded on reboot:

sudo alsactl store

Then pulseaudio should be configure (pulse is the sound layer that will be used by apps and talks directly to ALSA.). You should define the number of channels in /etc/pulse/daemon.conf, like said in this documentation:

default-sample-channels = 6

Also, to enable the remixing of low frequencies in your subwoofer, you should activate this in your sound card by editing the same file /etc/pulse/daemon.conf:

enable-lfe-remixing = yes

Then, you maybe need to reboot, or kill and relaunch pulseaudio:

pulseaudio -k
pulseaudio -D

Then, pavucontrol may help you, as replied in this question. In the configuration tab, you should see different profiles for your sound card, for example "Suround analogiq 4.1" that means that you want to use 4 channels and 1 subwoofer.


"command not found" when using arithmetic expansion in bash shell

You have to add echo command before all of your commands,
$ echo $[1+2]
3

You don't have to put directly $[1+2] on terminal, because bash computes $[1+2] and again parses the same, so command not found error occurs.
For Example
$ var="sudo apt-get update"
$ $var

Ign http://archive.canonical.com saucy InRelease
Ign http://ppa.launchpad.net saucy InRelease
Ign http://ubuntu.inode.at saucy InRelease
Ign http://extras.ubuntu.com saucy InRelease
29% [Waiting for headers] [Waiting for headers] [Waiting for headers]

In the above example, sudo apt-get update command was assigned to a variable var.On running $var, first bash expands it and again parses the expanded one.


You should create a new ntfs partition in which to install win 8, then if you start the installation from a bootable CD/DVD it should ask for the partition in which you want it installed. This goes in 2 steps, first you shrink you ubuntu partition, and then you create a new ntfs partition in the new free space. These two steps can be done from ubuntu with the tool 'gparted' which is in the repositories, is easy-to-use and well-documented.


NVidia: Better performance with nouveau drivers than with proprietary drivers?

You said that you have an Asus UX430UQ which means it has an integrated GPU as well as a dedicated GPU. What I think is happening when you install the proprietary drivers, it is using the integrated GPU instead of the dedicated GPU.

In your NVIDIA X Server Settings, you should have a window that looks like this which will let you change which GPU you use:

I believe you would need to log out and back in in order for the change to take effect.


How to recover from The command could not be located because '/usr/bin' is not included in the PATH environment variable. error?

vi is in
/usr/bin/vi
try /usr/bin/vi ~/.bashrc


phpmyadmin not working, browser shows a blankpage

If you want set the user access then

sudo chmod 755 -R /var/www/phpmyadmin/

will be fine.

about 755

7- user: He can do Read,Write,Execute
5- Group Uers: read & execute( cant modify)
5: other : Read & execute ( cant modify)


How to show just a progress bar during a preseeded installation?

I found something interesting. You can decide what to show and what to not show in some UI property files. At last, I have found the path. Is in usr/share/ubiquity/gtk/. You just have to set some parameters in the screen you want to use. For example I needed to deactivate labels so i have set all GtkLabels in visible=False.

Hope this information helps others! Kind regards.

PS: This "no text" mode should exists in ubuntu in some place. Maybe an improvement to next versions. Bye


Intel Centrino Wireless-N 2230 wifi gets disconnected after some time

I had a similar issue upon upgrade as well recently - might not be the exact same as yours (I have a HP laptop with a Realtek wireless), but I found that using an older kernel version fixed it for now... so during boot, hold down ESC and select a 3.5.x kernel and see if that helps...


How to mount read-only NTFS-Partition (without installed Ubuntu ?!)

You can mount the partition to e.g. /mnt by this command in terminal:

sudo mount -o ro /dev/sda2 /mnt

You will see the contents of the partition in /mnt directory and you will be able to copy it somewhere.


How to easily remove installed software?

1. If you know the application package name
From terminal, use one of the following commands:
sudo apt-get remove package_name

remove is identical to install except that packages are removed instead of installed. Note that removing a package leaves its configuration files on the system. If a plus sign is appended to the package name (with no intervening space), the identified package will be installed instead of removed.
Source: man apt-get

apt-get purge package_name

purge is identical to remove except that packages are removed and purged (any configuration files are deleted too).
Source: man apt-get

You can also use:

aptitude with the same arguments as of apt-get.
Ubuntu Software Center:

2. If you know how to open the respective application from GUI

Find application package name using this method:

How can we get the command line of a running application?

Go to the step 1.

3. If you forgot the application/package name and you don't know where to find it
Ubuntu Software Center is very useful in this sense. It knows about any application installed on your system: provided by Ubuntu, from Canonical partners, from purchase, from PPAs, from .deb files, etc. To find them:

Click Installed tab and search there your application:

Click History tab, then Installations and search there your application/package:


After a while resting it, I decided to try again. First post says again to install ffmpeg package. Instead of trying installing it by apt, I tried ffmpeg -version. This showed me an error that libva.so.1 was not found. libva.so.2 was available. Making a symbolic link named libva.so.1 (to libva.so) and doing this for couple other libraries worked for me.


Accidentally deleted files on Windows 7 partition when upgrading to Ubuntu 16.04

First of all, do not do anything that will write to the hard drive - you will potentially lose data permanently that way.

There's a good article here that might help you out:

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

However, there's no guarantee of getting data back, but it is possible that you can get at least some.


Audio Equalizer Software in Ubuntu 16.04

This list is roughly sorted from simple to professional and of course far from being complete.
Alsaequal

Alsaequal is an equalizer plugin for the (usually preinstalled) command-line audio mixer alsamixer as well as amixer.
Installation
sudo apt install libasound2-plugin-equal

Start
alsamixer -D equal
amixer -D equal

To change to the equalizer in the running program, press F6, choose enter device name... and enter “equal”.
Configuration
You can find configuration tipps on wiki.archlinux.org, e. g. how to save and load custom presets.

PulseAudio Equalizer

Installation
Ubuntu 14.04 Trusty and 16.04 Xenial
Follow these instructions on webupd8.org.
Ubuntu 18.04 and later
sudo apt install pulseaudio-equalizer

Start
qpaeq

If you encounter an error and are told to make sure you have the pulseaudio dbus module loaded follow the instructions in this answer.

JackEQ

Installation
sudo apt install jackeq

Requirements
JackEQ needs a configured and running JACK Audio Connection Kit, a howto is provided by this article on libremusicproduction.com.

JAMin

JAMin is the JACK Audio Connection Kit (JACK) Audio Mastering interface (…) designed to perform professional audio mastering of stereo input streams. source
Installation
sudo apt install jamin

Requirements
JAMin needs a configured and running JACK, a howto is provided by this article on libremusicproduction.com.

JACK Rack with LADSPA effects

JACK Rack is a sound studio rack where you can store and combine LADSPA effect plugins. A collection of plugins is contained in the ubuntustudio-audio-plugins package. More on ladspa.org.
Installation
sudo apt install jack-rack

Requirements
JACK Rack needs a configured and running JACK, a howto is provided by this article on libremusicproduction.com.

Advanced audio software – normally using the JACK Audio Connection Kit – of course also comes with equalizing features. As I feel like this goes beyond the scope of this question, here's just a short list with links.

Kwave: sudo apt install kwave
MusE: sudo apt install muse
Audacity: sudo apt install audacity
LMMS: sudo apt install lmms
Rosegarden: sudo apt install rosegarden
Ardour: sudo apt install ardour, needs plugins for equalizing features
Qtractor: sudo apt install qtractor
Renoise
ocenaudio

Further information about audio software can be found on the German Ubuntu wiki wiki.ubuntuusers.de.


How do I save terminal output to a external file on another computer?

Assuming that the computer where you want the output file written can connect to the other computer using ssh, the following command should do what you need

ssh njj.chickenkiller.com "while [ true ]; do  cat /proc/net/wireless; sleep 1; done" >results_file

I've used a loop rather than the watch command because if you use ssh you cant create a terminal output.
The results are stored in results_file.


As you want only the last modification time (month and date) of the .log files in the current directory you can simply use the -r option of date. There is no need for any regex or other superfluous commands.

You can use this shell one-liner :

for i in *.log; do echo "$i: $(date '+%b-%d' -r "$i")"; done

For example i am finding the month and date of last modification of all .txt files in the current directory :

$ for i in *.txt; do echo "$i: $(date '+%b-%d' -r "$i")"; done
file.txt: Feb-12
new.txt: Jul-23

The main command involved here is :

date '+%b-%d' -r file.txt

$ date '+%b-%d' -r file.txt
Feb-12

If you want to do the operation recursively, use find :

find . -type f -name '*.txt' -printf '%p: ' -exec date '+%b-%d' -r {} \;

Example :

$ find . -type f -name '*.txt' -printf '%p: ' -exec date '+%b-%d' -r {} \;
./foo/list.txt: Jul-16
./new.txt: Jul-15
./file.txt: Jul-23

EDIT :

For the sake of answering the original regex way :

$ ls -l *.txt | grep -Po '.*[[:digit:]]+ \K[[:alpha:]]{3} [[:digit:]]{2}'
Jul 23
Jul 15

grep -Po indicates we will use PCRE and only take the matched portion
.*[[:digit:]]+ matches upto our desired portion and \K discards the match
[[:alpha:]]{3} [[:digit:]]{2} matches three alphabetic characters (month) followed by a space and two digits (date).


How to make a playlist from a directory of mp3 files?

cd to the directory and

ls -1 *.mp3 > playlist.m3u

It turns out that there exists a fairly universal format called m3u format, and it can be as simple as a list of filenames separated by newlines.

After my wife had moved the mp3 files she wanted onto an empty thumb drive, I opened a terminal, browsed to the media directory, and typed the following and hit enter:

ls -1 *.mp3 > playlist.m3u

I then opened the file for her in gedit and let her copy and paste the lines around as much as she wanted to get them into her desired order.

When she was done, she saved the file, double-clicked it in a folder browser, and RhythmBox opened it. She clicked play, and it played, and I was a hero.


Choose Different Screen Layouts with Latest NVIDIA Driver Dual 4K Setup

Your issue might be the HDMI cable. I have a similar setup (ASUS NX500 running Ubuntu 15.10 with NVIDIA 352.41, and my external monitor is an ASUS PB287Q (same as yours)). The only difference is that I'm running the external monitor from the display port, and I get excellent performance out of the external display. When I first bought the ASUS PB287Q and connected it using HDMI I had major lag issues (30 fps external) but that was under Windows 8.1... I switched to display port and it fixed it in windows. When I upgraded to Ubuntu 15.10 from Windows I never had any issues with performance of the external display.


Disable adding newly installed applications to the launcher?

Yes. In Ubuntu Software Centers menu bar, you'll find Show > New applications in Launcher. If you uncheck that, new installs will not be added to your launcher automatically.


Why does Rhythmbox lose link to music folder located in NTFS partition?

Opened Rhythmbox. From Edit>Preferences>Music clicked the Browse button. At the bottom-left corner of the pop-up menu clicked the + button and located the Music folder and added it to the list. "Watch my library file" checked. After shutting down and restarting the machine, launched Rhythmbox again and the songs are there now!


How to access a website not using the port number?

There are default ports for most services.  For classic http, that would be port 80.  You can find a comprehensive list in /etc/services.  So, configure your web server to listen to port 80, and you won't need to specify it any more.

Do note, that ports below 1000, need root privilege.

Edit: I missed the fact that you run pure Node.js.  You can most likely configure it to listen to port 80 too, but you will run into the above privilege issue.  Most production sites will have a webserver like apache or ngnix who will forward the request from port 80, to localhost port 8888 for you.  You can obviously also do that on your development platform.  If you want to keep it lightweight, use lighttpd and set it as a reverse proxy.  (First solution coming to mind, there might be even easier ones)


Delete these two lines (they're at the bottom of the sources list):

 deb http://archive.ubuntu.com/ubuntu saucy universe multiverse
 # deb-src http://archive.ubuntu.com/ubuntu/ saucy universe multiverse

Run sudo apt-get update and you shouldn't have any errors.

I'm honestly not sure how you managed to get a repository for 13.10 on a newly installed 16.04 machine, but that'll get rid of it.

However your main concern is that mingw32 can't be installed on Xenial 64bit. Its alternative for 64 bit mingw-w64 can be installed installed instead. Both provide the same libraries targeting Windows. Run the following command to install:

sudo apt-get install mingw-w64


How to save a file being streamed using Real Time Streaming Protocol?

Open the VLC media player.

Go to the :

Media> Convert/Save..

Here Paste the URL.

Then click on the Convert/Save button.

You can also save it with command line:

vlc [STREAM URL] --sout=file/ps:[FILE NAME].MP4

Tt should be :

vlc rtsp://a1966.v1252936.c125293.g.vq.akamaistream.net/7/1966/125293/v0001/mp4.od.origin.zdf.de.gl-systemhaus.de/dach/zdf/13/12/131231_buniatishvili_kuk_1456k_p13v11.mp4 --sout=file/ps:aa.mpg


Pipelight stopped working in Google Chrome

Chrome has dropped support of NPAPI plugins and only supports PPAPI plugins. Since pipelight is (likely) a NPAPI plugin, it cannot be used in Chrome.


How to Fix "Read-only file system" error when I run something as sudo and try to make a folder/file?

This worked for me:

First, run this command:

fsck -n -f

Then reboot the machine


How to deactivate the "network disconnected" popup?

In 12.04, you should be able to toggle that behaviour via the gconf database entry for nm-applet, using the gconftool  (or gconftool-2) command

gconftool --set /apps/nm-applet/disable-disconnected-notifications --type bool true

You will likely want to disable the corresponding connected notification as well

gconftool --set /apps/nm-applet/disable-connected-notifications --type bool true

You can check the current settings using

gconftool -a /apps/nm-applet

For those seeking an answer for later versions of Ubuntu, @Jos has confirmed that in 14.04 the settings have  been migrated to the main dconf database at /org/gnome/nm-applet and can be toggled using the GUI dconf-editor tool. Modification via the CLI should be possible using gsettings.


In case you don't already know it, the easiest way to run your old Fortran program in Ubuntu 14.04 is to simply install gfortran-4.4. In Ubuntu 14.04 open the terminal and type:

sudo apt-get install gfortran-4.4

Description: GNU Fortran 95 compiler
This is the GNU Fortran compiler, which compiles Fortran 95 on platforms supported by the gcc compiler. It uses the gcc backend to generate optimized code.


How to improve GUI and font appearance of programs installed under CrossOver?

Enabling font smoothing is essential. It works for Wine proper, but also for Crossover, which is based on Wine.

wget http://files.polosatus.ru/winefontssmoothing_en.sh

bash winefontssmoothing_en.sh

select third option in terminal - with the arrows, then use tab key to select ok and 'enter'

This works mainly for the fonts, but I see that sometimes it affects also the graphical parts (e.g. in Office2007.)

Go to Menu - Crossover - Run a Windows command, and, after selecting the corresponding 'bottle', enter 'regedit'.

(This has to be done for each specific 'bottle' (which I guess is the equivalent of a wineprefix). Each program may have its own bottle which contains its own separate drive_c and windows folders. Customizations for a certain 'bottle' would have effect only for the programs installed in that bottle. 'Bottles' and the rest of CrossOver is installed in ~/.cxoffice.)

Navigate to and click on HKEY_CURRENT_CONFIG\Software\Fonts.

Double-click on the LogPixels value.

Change the base to "Decimal" and enter your desired font size. I use 96, but the best way is  through cautious trial and error. Close the Registry Editor when you're done.

(SOURCE)

To install MSstyles/themes:

In the Main Menu - CrossOver - Manage Bottles.

To make settings for a certain program/bottle, select the bottle and then, under 'Control Panel' tab, select 'Wine configuration' and double click (or 'Launch this item').

The familiar Wine configuration window appears, and its settings can be used to improve appearance of CrossOver applications, including installation of a MSstyle/theme.

Changing other settings on the way (like the display) or installing new features may have a negative effect or may reset the changes described above: so it may be necessary to make again the setting from the first two steps if needed. (Trial and error is the way to go.) In case the fonts go blurry don't hesitate to run again in terminal bash winefontssmoothing_en.sh and select the third option as seen in the image: 'Subpixel smoothing (ClearType) RGB'.


Revert to the Ubuntu version

At some point in time you really have installed some PPA version of Rhythmbox, but you have deleted the PPA from the sources. Because the version currently installed is marked newer as the one Ubuntu is offering in the main repositories it is still running the PPA version. And because new dependencies have to be satisfied from the old PPA, you are getting conflicts.

To resolve this, try to revert to the Ubuntu version of the package as shown in the apt-cache policy output:

sudo apt-get install rhythmbox=2.98-0ubuntu5

and hopefully apt-get will suggest a solution to downgrade the other packages as well.


How to change location where logs are stored?

sudo /etc/init.d/rsyslog stop
sudo mv /var/log /mnt/d2/
sudo ln -s /mnt/d2/log /var/log
sudo /etc/init.d/rsyslog start

You might want to go ahead and reboot the machine, while you're at it, just in case you have something other than rsyslogd busily trying to write to logs under /var/log - those won't recover until they're restarted as well, which just bouncing the whole box will accomplish nicely.

What we're doing here is, instead of trying to reconfigure everything that might possibly want to write to /var/log, instead just gently redirecting things going there to your other disk.  You can still cd /var/log or less /var/log/syslog or whatever and have it work just fine, this way, and any new programs that try to log to directories under /var/log directly rather than working through rsyslogd will also still work as expected.


Install Windows Alongside Ubuntu 14.04 on Second hard Drive

The easiest way to do what you want given your resources of two hard drives and one USB stick, where one hard drive has Ubuntu already installed:

Erase the USB stick and prepare it as an Windows installation USB.
Turn off the computer and unplug it.
Open the computer and disconnect the Ubuntu hard drive.
Put the new hard drive in its bay and connect all the wires.
Install Windows as if you have just one hard drive, the second one.
Turn off the computer and unplug it again.
Reconnect the Ubuntu hard drive. Keep the Windows hard drive connected as well.
Start the computer and get into its BIOS.
Make sure the Ubuntu hard drive is the first in the list of drive to
boot from, save BIOS settings and reboot the computer.
The computer will boot directly to Ubuntu. This is normal.
In Ubuntu open a terminal by pressing
 Ctrl+Alt+T and enter:

sudo update-grub

This will add the option to choose between Ubuntu and Windows in the GRUB screen. The GRUB screen will show every time you start/ restart the computer.

Hope this helps


Adding white space to a shutter screen shot

After you have clicked on edit, in the edit window you see small square handles around the picture. Drag these handles to create a canvas around the picture. You can also drag the picture within the canvas to position it. Right click on the canvas to choose the background color. After that you can annotate your screenshot.


How to remove right-side workspaces panel in gnome-shell?

I am using Ubuntu 18.04, however with the vanilla gnome session. If I set workspaces to "static" and numbe of workspaces to 1 in Gnome Tweaks, the workspaces indeed are gone as you indicate.

That it does not work for you may be related to the fact that you are logged in to the customized Ubuntu session.

You can install gnome-session to have the choice for a plain Gnome Shell session on login. That is what I run. For your information, vanilla-gnome-desktop is a session that takes it one step further. It mimics the former Ubuntu Gnome edition with a full default Gnome environment, including all Gnome apps such as Photos, Documents, and the Gnome browser Web.


You have to allow Apache to access the root folder of your LAMP files:
See https://stackoverflow.com/questions/9110179/adding-virtualhost-fails-access-forbidden-error-403-xampp-windows-7

Edit the conf file in /etc/apache2/sites-available/yourconffile.conf

Enter following:

<VirtualHost localhost:80>
 DocumentRoot "/path/to/your/rootfolder"
        <Directory "/path/to/your/rootfolder">
            # AllowOverride All      # Deprecated
        # Order Allow,Deny       # Deprecated
        # Allow from all         # Deprecated
        # --New way of doing it
        Require all granted
    </Directory>
</VirtualHost>


Keyboard stops working after source switch

I've had this problem with Pycharm when I first installed Unity and did some customs, am still not sure if the problem occurred from Unity

Here is what you want to do:

Install  DConf Editor & Lunch it.
Go to Desktop Then ibus
General
Now check the box next to use-global-engine and
use-system-keyboard-layout

Edit: Make sure to match the keyboard input method:

System Settings > Language Support
At the bottom part find "Keyboard input method system"
Choose iBus, Or you can try all of them. (Required reboot)
After making the change, you need to restart for the settings to
take effect.


Qualcomm Atheros QCA61x4 wireless network adapter

I was able to get my Qualcomm Atheros 61x4 running on a ubuntu 15.04 clean install. Actually not for the Lenovo model but for an Acer Aspire VN7 Nitro 791G These are the steps I accomplished:

install kernel sources: apt-get install linux-headers-(uname -r)
downloaded the athk master sources from kvalo: git clone https://github.com/kvalo/ath.git
downloaded the backports tree: "git clone
git://git.kernel.org/pub/scm/linux/kernel/git/backports/backports.git"
built the new backport tree according to the instructions found on linux-wireless: https://wireless.wiki.kernel.org/en/users/drivers/ath10k/backports
downloaded the firmware from sumdog and copied it to /lib/firmware/ath10k/QCA6174/hw2.1/ :

(Sorry I am not allowed to post more than two links)

"wget github.com/sumdog/ath10k-firmware/raw/5faf5bb7c7413f9bbde54cca6fff58e/ath10k/QCA6174/hw2.1/board.bin"

and

"wget github.com/sumdog/ath10k-firmware/raw/5faf5bb7c7413f9bbde54cca6fff58e/ath10k/QCA6174/hw2.1/firmware-4.bin"

created athk10 config file as described in this post before:
sudo echo "options ath10k_core skip_otp=y" > /etc/modprobe.d/ath10k.conf
copied firmware-4.bin to firmware-5.bin as dmesg claimed about not finding firmware-5.bin

Hope this helps.


Grep strings in a subgroup of lines in txt file

Can be done in Python fairly easily:

$ cat input.txt | ./find_strings.py PF13304.1 PF13401.1
AAA_21               PF13304.1  x_00004
AAA_22               PF13401.1  x_00004
AAA_21               PF13304.1  x_00005
AAA_22               PF13401.1  x_00005
AAA_21               PF13304.1  x_00006
AAA_22               PF13401.1  x_00007

Contents of find_strings.py:

#!/usr/bin/env python
import sys
strings=sys.argv[1:]
for line in sys.stdin:
    for string in strings:
         if string in line:
             print line.strip()

The way this words is that we redirect contents of input file to script's stdin stream, read the stream line by line, and for each line we make a lookup in the list of arguments that we provide on command-line. Fairly simple approach


Use alt as Ctrl and win as alt (keep alt)

I found an amazing answer to this here:  How do I swap Escape and Caps Lock.

The answer was to install Tweak. It worked like a charm for me in swapping Caps Lock with Control.

I tried the setxkbmap route and couldn't get it to work, but Tweak worked fine.

BTW, if you are like me, you'll also want to know that the command below will fix your options in setxkbmap that are now probably all screwed up (not that it seems to have an impact):

setxkbmap -option ''


Difference docker repository vs Ubuntu package

Versions might be the same now but you can expect it to be a game of catch-up

Depending on what docker releases and how complex porting those features are into  Ubuntu ecosystem you will surely end up with a release being older
at some point using the Ubuntu docker version

What version you end up using depends on whats best for your needs.

Ubuntu: More stable
Docker: New features faster


You have hybrid graphics. Both adapters are powered all the time and that is way battery life is low. Nvidia adapter is new. So you need to install drivers. Run in terminal

sudo add-apt-repository ppa:xorg-edgers/ppa
sudo apt-get update
sudo apt-get install nvidia-352 nvidia-prime
sudo add-apt-repository -r ppa:xorg-edgers/ppa

and reboot.

If the driver installs OK, you will be able to switch Intel and Nvidia adapters in Nvidia Settings program. And power consumption must be much lower in Intel.

In your current state Nvidia adapter is always powered but not used by the system because opensource driver does not support it. So it is just waste of power.


18.04 LTS install failure with 'Couldn't get size' error

One of your drive has a partition for a different OS which the installation routine cannot erase or shrink; you must take care of that yourself.

Please decide if you wish to boot from the 1 TB NVMe M.2 module or the 500 GB SATA-III drive. The former is faster.

Instead of choosing Install Ubuntu from the boot menu of GRUB please choose Try Ubuntu before you install it. Ubuntu will then continue to boot.

When it completes booting, look at lower left, click on the 3x3 square of dots which shows available apps and choose Disks.  All drives are listed on the left, and the drive you select will show detail about it at the right.

If you wish to preserve all or part of what's on the drive you want to install Ubuntu on and boot from, stop and exit from the Disks app and come back here for further instructions.

However, if you intend to have Ubuntu as the only operating system on this drive, erase all the partitions on it by clicking on each partition in turn and clicking on the - button before moving to the next partition.

When all have been erased, then close the Disks app. Then, follow these instructions to install Ubuntu.


How to change Unity's default login screen to allow users to type in their logins and passwords?

Using LightDM

Edit the the /etc/lightdm/lightdm.conf using this command

gksu gedit /etc/lightdm/lightdm.conf

And add these two lines to the [SeatDefaults] section

greeter-hide-users=true
allow-guest=false

Taken From: http://www.puppychau.com/archives/130


How do you install the VirtIO HDD drivers for KVM on Windows 7?

You have to use the correct drivers for your OS or, as you've discovered, it won't work. The driver ISO that you're using is old. The current drivers are located at https://fedoraproject.org/wiki/Windows_Virtio_Drivers. They're signed by Red Hat so that they'll install on Windows without complaint.

You'll need the viostor driver.


I ran into this same issue myself. The problem is the --enable-symbol-prefix flag when configuring GraphicsMagick. The Gmagick extension must not be able to find the symbols because the --enable-symbol-prefix "enables prefixing library symbols with 'Gm'" (from the documentation).

Here is a script I wrote to install GraphicsMagick from source - https://gist.github.com/bhdouglass/7851749.


How do I check for a status bit on a running process?

You can use the is-active unit command of systemctl which “[r]eturns an exit code 0 if at least one [unit] is active, or non-zero otherwise”:

if systemctl is-active --quiet apache2; then
  echo running
else
  echo not running
fi

If you’d rather use a parameter there’s $? holding the exit code of the last command, you can simply test for it being 0:

systemctl is-active --quiet apache2
if [ $? -eq 0 ]; then
  echo running
else
  echo not running
fi

Further reading

The “proper” way to test if a service is running in a script
man systemctl/COMMANDS


Aha!  Not sure if this is remotely useful for anyone else but I got it working...

Clean install - no 3rd party drivers
Verified external monitor was working (quadro card not showing up as gpu, using intel)
Manually selected the latest driver from Nvidia in driver settings
I was prompted with MOK setup! (this is new)
Rebooted and selected 'enroll' keys
Tada!

The link I referenced got me most of the way there but manually uninstalling all the nvidia after the fact didn't work for me (100% user error)  Clean install seems to have done the trick!


iPhone does not unmount properly when unplugged

I've found a way to automate this.  The issue was that gvfs-mount -l still showed a mount (afc://<iPhone_serial_number>/) even after the iPhone had been unplugged.  It was this mount that triggered the Unable to mount iPhone message when the iPhone was plugged back in.  This mount was provided by the gvfsd-afc gvfs backend. Killing gvfsd-afc removes the mount.

To make udev do this automatically when the iPhone is unplugged, create a file /etc/udev/rules.d/99-iphone-umount.rules and add the following:

SUBSYSTEM=="usb", ACTION=="remove", ENV{ID_MODEL}=="iPhone", RUN+="/usr/bin/killall -s SIGINT /usr/lib/gvfs/gvfsd-afc"

Then run sudo udevadm control --reload-rules to get udev to load the new rule.


Can not install xchat on Ubuntu 16.04lts

It seems that package is named xchat-gnome (packages.ubuntu.com helps).


Use Wget to download a file from my Ubuntu One Account/ Online Storage

Use wget's --content-disposition option:

$ wget -nv --content-disposition http://ubuntuone.com/p/14bm/
2011-07-15 17:31:47 URL:http://ubuntuone.com/p/14bm/ [143/143] -> "wget-u1-test-doc.txt" [1]


This sounds like a bug in aten.

If you encounter a bug in any of the codes supplied here, think you have found a mistake or, after reading the relevant manual, can't find the information you're looking for, please email support@projectaten.net with details of the problem / issue, and I will try to help as best I can.

Source: http://www.projectaten.org/


Wireless Interface Not Found on a MacBook 4,1

I finally found the solution here, although it too is posted for working for the MacBook Pro 8,2 series.

sudo add-apt-repository ppa:mpodroid/mactel
sudo apt-get update
sudo apt-get install b43-fwcutter firmware-b43-installer

Then install the linux-backports-modules-cw-3.2-oneiric-generic or, if you have the pae kernel installed, the linux-backports-modules-cw-3.2-oneiric-generic-pae package.

Edit the /etc/modprobe.d/blacklist.conf and add the line:

blacklist ndiswrapper

Create or edit the file /etc/pm/config.d/modules and make sure the wireless modules (b43 and bcma) are blacklisted:

SUSPEND_MODULES="b43 bcma"

Reboot and the wireless should work.