Reinstalling Broken PostgreSQL 9.1 on Ubuntu 14.04

The root of the problem appears to be that I was trying to use Synaptic Package Manager to do the install. Running the following commands:

sudo apt purge postgresql-9.1
sudo apt-get install postgresql-9.1
sudo pg_createcluster -d /path/to/existing/data 9.1 main

cleared up the installation problem.


What is the difference between boot loader and bootstrap loader?

I think the reason for a bootstrap has been left out from the answer above.. though there is a lot of good info here.

A bootstrap is designed NEVER to change and with minimal functionality. It may have the ability to choose between boot images or update a boot image, but it will lack all the drivers and support that a boot loader might have. A boot loader will usually setup almost all the hardware in a system prior to booting the OS, and may perform diagnostics, and ultimately update and boot the OS. The boot loader in many ways it can be like a mini OS where the bootstrap is completely minimalist and designed never to change.


Jetbrains appears not to install their .desktop files in the normal locations as I discovered. One would expect them to be found here /usr/share/applicatiosn but rather I found several locations where these files are stored.

If you instruct Jetbrains software to install desktop for all users then the location is:

/usr/local/share/applications

If you instructed it to just install for you alone then the location is:

/home/$USER/.local/share/applications

Now I also found it here:

/home/$USER/.gnome/apps

That being said one can search for them using the command:

sudo find / -type f -iname "jetbrains-*"


Getting flash 10.2 GPU acceleration working

After a bit of research I can answer my own question. The full way to get flash using the an nvidia ion gpu on ubuntu 10.10:

Install the new flash 10.2 beta:

wget http://download.macromedia.com/pub/labs/flashplayer10/flashplayer10_2_p2_32bit_linux_111710.tar.gz
tar zxvf flashplayer10_2_p2_32bit_linux_111710.tar.gz
sudo cp libflashplayer.so /usr/lib/flashplugin-installer/

You may need to also replace flash in other locations if you have installed in multiple places (try using 'locate libflashplayer.so' for a complete list)

Then for gpu support you also need (this was the bit I was missing):

sudo apt-get install libvdpau1

If you also want it working in chrome try:

Can you use the new beta Adobe Flash 10.2 in Google Chrome
http://lifehacker.com/5705588/how-to-get-the-flash-102-beta-working-in-google-chrome

To verify it is working go to a high-def you-tube video and play it. While it is playing right click and select - video info. You should see "Accelerated Video Rendering" if it has worked.

These instructions worked on my acer revo with a nvidia ion gpu.

Also on my blog with more links: http://decodify.blogspot.com/2010/12/getting-flash-102-beta-gpu-acceleration.html


I got similar letter from abuse@hetzner.de yestoday. It have text from "attacked" administrator as your letter.

I checked my server - all Ok. Nothing illegal activity.

I think somebody wants to joke with Hetzner abuse support. Or want to down some servers.


First remove the installer slide show from the live CD before Installing:

Software center > All files > search for "ubiquity-slideshow" > Click on button "Remove"

  wait until button "Install" comes up (may take a while).

After this: Installer will work now.


Is Ubuntu GNOME 14.04.1 and Ubuntu 14.0.4.1 same thing?

These both only differ in term of desktop environment.

Ubuntu Gnome (formerly Ubuntu GNOME Remix) is official flavor of Ubuntu, featuring the GNOME desktop environment.
It  is a mostly pure GNOME desktop experience built from the Ubuntu repositories.

But when we say Ubuntu, it generally means Ubuntu with Unity desktop.


can't install ubuntu 12.04.5 LTS "Precise Pangolin" - Release i386

Probably your installation source is corrupt. Have you checksummed your ISO file?


Try to install the flashplugin.

Open a terminal (Ctrl + Alt + T) and type the following command.

sudo apt-get install flashplugin-installer


Can move unallocated space to my linux partition , urgent

This should strait forward: Delete the swap partition on /dev/sda7 and then resize the ext4 on /dev/sda8.

There is one important step before that: The live CD auto mounts the swap space, so you need to disable swap before you can remove the partition:

$ sudo swapoff

An then you can remove the swap space. If you have enough memory, you don't need it anyway. With only 2GB you will need a swap partition. So after deleting the swap partition and resizing/moving /dev/sda8, boot Windows and shrink /dev/sda5. Than you can create a new swap partition. Ubuntu doesn't care were it is.

Also shrinking the /dev/sda5 partition might be a good idear anyway, since it would solve all your problems.


I have just what you need. Here my post http://ubuntuforums.org/showthread.php?p=12292058#post12292058

it works 100%


How to install Oracle 12C on Ubuntu 16.04

go to root and do

xhost +

in the same terminal window,

su - oracle
./runInstaller


The quick way to get rid of eth0:1 is to enter:

sudo ifconfig eth0:1 down

(If you are logged in via the IP address associated with eth0:1, your connection will drop at that point and you will have to log in again.)

eth0:1 may come back after a reboot. Check /etc/network/interfaces to see if it defined in there.


Acess http://www.etymonline.com/ from terminal?

It really depends on how far you want to go. Do you want to just fetch the web page for a word and view it on your browser? use wget like so: wget http://etymonline.com/index.php?&search=cabbage (notice substitution of search term). Do you want to then parse the web page and show only the text in the terminal? then it gets more complicated and you need to start looking at a concept called "screen scraping". By then, you're really looking at having to program this yourself, so in order to get adequate guidance you'd need to tell us about your profile, whether you're comfortable programming, which languages you know, and so on.

I guess a basic question is, why do you want to do this in the terminal and not on a browser?


seems to be modules were missed install them with xfsprogs

sudo aptitude install xfsprogs


Currently there are very few Irish translations for the phone.

http://projects.davidplanella.org/stats/wily/ga

As long as that's the case, it won't happen, of course. You may want to ask the Irish translation team about the plans with respect to phone translations. Possibly you are interested in joining the team and help out. ;)


does hp deskjet ink advantage 1515 all in one scanner works with ubuntu 12.04

You need to review HPLIP support.

http://hplipopensource.com/hplip-web/downloads.html

http://hplipopensource.com/hplip-web/models/deskjet_aio/deskjet_1510_series.html


How to turn wireless and bluetooth on without FN key

I'm using a virtual machine, so I dunno about the wireless. But for bluetooth, there should be a bluetooth symbol in the top right corner of the screen, near the clock. You can click that, and it'll open a small window with options for enabling/disabling bluetooth, as well as making your device discoverable/undiscoverable.


What you are looking for is the Ubuntu Packaging Guide:

  Welcome to the Ubuntu Packaging and Development Guide! This is the
  official place for learning all about Ubuntu Development and
  packaging.

Section 6. Packaging New Software provides the details on building a package; Section 7. Security and Stable Release Updates dives into security issues; Section 11. Backporting software updates takes care of back-ports. There is much more, it won't hurt if you read it all before starting.

The Wiki entry on HelpingUbuntu advises the procurement of a MOTU mentor.


You'd need to start a live CD, access your installation and install the kernel again.

Look at this answer about how to access your installation via chroot. Ignore step 6 and do this instead:

apt-get install linux-generic linux-headers-generic


Nvidia GT218 repository drivers don't work

You could try upgrading the Nvidia blob drivers to the newest release.  You can find the PPA at the:

X-Swat PPA


wine1.7 has not yet been packaged into the stable release of ubuntu, so you won't find wine1.7 in your system if you don't have wine ppa's enabled. To get wine1.7 using the ppa, open a terminal using Ctrl+Alt+t and then enter the following:

sudo add-apt-repository ppa:ubuntu-wine/ppa

and then update the package list using:

sudo apt-get update

then you will find wine1.7 and wine1.7-dev to be installable using:

sudo apt-get install wine

Note that this will upgrade wine if it is already installed, otherwise install.

The list of packages that are available for installation on a default ubuntu, without ppa's can be seen here.


How do I force X to use the vesa driver?

Try blacklisting the nouveau driver by adding the line blacklist nouveau to the file /etc/modprobe.d/blacklist.conf(you will need root privilege). This will prevent that driver from loading. Also comment any line like blacklist vesafb by replacing it with #blacklist vesafb in the file /etc/modprobe.d/blacklist-framebuffer.conf


Run this command in your terminal
$ sudo rm /dev/rfkill  and see if that gives you a connection so you can download the additional drivers.


How to make LBP-1120 Canon printer work?

In time this answer became very long and cluttered as far as Ubuntu 12.04 - 13.10 are concerned. Below is an answer that presents the same solution but is much clearer.

Considering 12.04

It should work in the same way as for 12.10 below.

But trying that in the 12.04 Ubuntu-based eOS Luna, I was not able to make it work. In fact my answers here for 12.04 and 12.10 stopped working after a while in Xubuntu and Lubuntu too, but I let those here because they seem useful to others that voted this up.

I have a new solution (tested in eOS and with 2.6 driver) - presented here.

Considering 12.10, 13.04

I have followed the steps from Ubuntu Documentation page and the driver manual that comes with the driver:

(v.2.4 is not available anymore at that link. I have uploaded it here. 2,5 version here.)

Installing the common and the capt deb (v.2.4) [step 2 and 3 in manual]
Entering the terminal as root
Step 4: ["Restart CUPS.
For rpm packages:
Enter the following command:

/etc/init.d/cups restart

For deb packages:
Enter the following command:

/etc/init.d/cupsys restart

NOTE
Do not register the printer using the "lpadmin" command before restarting CUPS.
Depending on the distribution you are using, the "For deb packages" command may not be entered. In this case, enter the "For rpm packages" command."]

It was my case: So, I had to run :

/etc/init.d/cups restart

(i got a terminal message saying that i could just as well use
    service cups restart)

got this result:

cups stop/waiting
cups start/running, process 2758

Step 5 in the manual ("Register the printer (PPD) with the print spooler.") is amended by the Ubuntu documentation page

["making sure that you change this line accordingly:
sudo /usr/sbin/lpadmin -p LBP5000 -m CNCUPSLBP5000CAPTK.ppd -v ccp://localhost:59787 -E
The manual says ccp://localhost:59687 but Ubuntu by default is using 59787. This will give you a headache if you do not change it.
 (The file /etc/ccpd.conf defines UI_Port 59787 and PDATA_Port 59687. So, both these ports need to be open in the firewall setting.)"]

Accordingly, I had to enter

sudo /usr/sbin/lpadmin -p LBP1120 -m CNCUPSLBP1120CAPTK.ppd -v ccp://localhost:59787 -E

Ubuntu documentation says: "* Note: Ubuntu 12.04 has again blacklisted the usblp module which creates the /dev/usb/lp0 device link. To solve this problem do this
sudo nano /etc/modprobe.d/blacklist-cups-usblp.conf

Then comment the file to look like this, canons driver does not talk to the printer through cups:

# cups talks to the raw USB devices, so we need to blacklist usblp to avoid
# grabbing them
# blacklist usblp

So, as I am lost using nano, i tried

sudo gedit /etc/modprobe.d/blacklist-cups-usblp.conf

and added the above (blacklist-cups-usblp.conf was an empy file and i just pasted those lines)

(At this point, verify in main menu, under System/Printers, that the name of the printer recorded there is exactly LBP1120).

Step 6. "Register the printer in the ccpd daemon setup file."

sudo /usr/sbin/ccpdadmin -p LBP1120 -o /dev/usb/lp0

You should get something similar to this:

CUPS_ConfigPath = /etc/cups/
 LOG Path        = None
 UI Port         = 59787

 Entry Num  : Spooler   : Backend   : FIFO path     : Device Path   : Status
 ----------------------------------------------------------------------------
     [0]    : LBP1120   : ccp       : //localhost:59787     : /dev/usb/lp0 : Modified

Step 7 in manual:

"Start ccpd daemon.
Enter the following command.

sudo /etc/init.d/ccpd start

NOTE
It would be convenient to set ccpd daemon to start automatically when Linux starts up."

After that, entering sudo /etc/init.d/ccpd status to see if I can see the 2 numbers (familiar from installation in previous versions): yes, there were 2 numbers. But no printing until logging out and connecting the printer after logging in.

I guess these rules have to be considered if printing doesn't work:

connect/start printer after login
/etc/init.d/ccpd status to see the 2 numbers
sudo /etc/init.d/ccpd start to Start ccpd daemon

What will most probably happen is that you will need to restart ccpd daemon after each reboot in order to print: unless you set ccpd daemon to start automatically when Linux starts up - as the manual suggest. To do that add the following command to the startup-applications (as in the answers under here):

sudo update-rc.d ccpd defaults

NOTE: On 12.10 this method worked for me on one computer, but failed on another. On 13.04 it didn't work at all. I succeeded to autostart ccpd deamon on 13.04 by adding sudo /etc/init.d/ccpd start to the startup-applications.

To see status by just double clicking an executable script file, make this executable:

#!/bin/bash

gnome-terminal -e "/etc/init.d/ccpd status"

Considering 13.10

Idem, but I had to install the portreserve package for this method to work.

Considering installation in Ubuntu 10.10

This really works!

The Ubuntu Documentation website mentions that this printer was tested with Ubuntu 10.10. Although I currently use 12.10, I thought giving it a try.
So, I have installed 10.10 as persistent live usb and followed the procedures under "Package Repository (before 11.10)".

Finally I was successful - following these steps:

Add the PPA to your system and install the packages:

sudo add-apt-repository ppa:michael-gruz/canon
sudo apt-get update
sudo apt-get install cndrvcups-capt cndrvcups-common

System->Administration->Printing add printer. Choose "Add printer". Do not choose USB Printer found by Ubuntu here. Select "CAPT Printer". You should see "ccp" in URI. Change it so URI should become "ccp:/var/ccpd/fifo0". Click "next", find your model and add your printer. Choose English variant if you see Japanese and English variants.

Instead of GUI actions, you may try this:

sudo /usr/sbin/lpadmin -p LBP1120 -m CNCUPSLBP1120CAPTK.ppd -v ccp://localhost:59787 -E

Then:

sudo /etc/init.d/ccpd restart
sudo /etc/init.d/ccpd status

You should get 2 numbers there, but I got just one.

So, in this case:

Check in /etc/ccpd.conf
(gksudo gedit /etc/ccpd.conf)
that you have this:

<Printer  LBP1120>
DevicePath  /dev/usb/lp0
</Printer>

To get it:

sudo /usr/sbin/ccpdadmin -p LBP1120 -o /dev/usb/lp0

Also, in /etc/udev/rules.d/85-canon-capt.rules you should have this:

KERNEL=="lp*", SUBSYSTEMS=="usb", ACTION=="add", SYSFS{idVendor}=="04a9", RUN+="/bin/bash /etc/init.d/ccpd start"
KERNEL=="lp*", SUBSYSTEMS=="usb", ACTION=="remove", RUN+="/bin/bash /etc/init.d/ccpd stop"

(to add it

gksudo gedit /etc/udev/rules.d/85-canon-capt.rules)

and then enable rules:

sudo udevadm control --reload-rules

Then try again:

sudo /etc/init.d/ccpd restart
sudo /etc/init.d/ccpd status

If you get the two numbers, try to print. And then restart computer.

Test the 2 numbers stuff

sudo /etc/init.d/ccpd status

If you run into problems try turning your printer off, restart your computer and only turn your printer on, after you have logged in.

Considering installation in 11.10

I went back to the Ubuntu official documentation website on the LBP Canon driver package and after reinstalling version 2.3 of the driver from debian packages (using Gdebi), I followed the instructions from the section "Adding a printer" - without success. That despite the fact that I got the "two numbers" mentioned there (I quote: "You should see two numbers at the end. If you do, you are lucky :) etc").

I continued then with the commands under "Starting/stopping on USB add/Remove" but could not obtain the diagnostics cited there, nor print a test page as specified at that stage. When I followed commands under "Restart and Verify" I did not get "the two numbers" but just one.

I added the commands from the "Troubleshooting" section (in fact I stumbled over those here) - although I hadn't noticed the Status monitor reports error: I just didn't knew what to do anymore. That is:

lsmod | grep usblp
sudo modprobe usblp
ls -l /dev/usb/lp0
sudo /etc/init.d/ccpd restart

Well, that did the trick!

Upon plugging in my USB printer I got the message that the printer was seen by the system and then I was able to print perfectly.

But, according to the following note ("Note: As of Ubuntu 11.10 (Oneiric Ocelot), usblp has been deprecated and will not be automatically loaded when you connect your USB printer") after restarting my computer cannot print.
This is related seemingly to the bug #842823. At the address where the bug is discussed by Till Kamppeter I found and followed these instructions and been able to print a test page - but NOTHING ELSE.
And the adventure continues: those instructions WORKED when I followed them again  after following again the stages "Starting/stopping on USB add/Remove", "Restart and Verify" and "Status Monitor" from the official Ubuntu documentation page.

But I fear it is still a temporary solution.

EDIT: For me this was a solution just as far as it's the best i could achieve but would not work after reboot and it's cumbersome to use. I keep it just for reference. If others find it useful or amendable, please edit this to make it work.


Why is Lubuntu 12.04 so slow to start up and shut down on my Mac Powerbook G4?

Yes, Lubuntu is supposed to be much faster than Ubuntu, but it's just slower. Now one actually knows why it's slower, although people think the problem is the following:

The desktop that Lubuntu's  LXDE desktop is based on, tries to start certain services, but are replaced with LXDE's services. It's this replacement that slows Lubuntu down.

That is what other people think the speed issue is caused by.


What are the different innerworking functions between a live CD and full install?

When you run linux off a usb dirve, your overall overall speed is often limited not by your cpu, but by your disks I/O. How quickly the data can transfer on and off your USB. Becos the data transfer rate over a USB 2.0 is limited, you see. So, in that context, a liveCD version has several advantages over a full install on a USB.

Firstly, a liveCD stores its data in compressed loop files, typically using squashfs. And becos the data is compressed, it can be transferred off the USB more quickly. Whereas with a full install, the data is uncompressed.

Secondly, benchmarks for data transfer off a USB show that large files transfer much faster than a lot of small files. With the LiveCD format, the data is stored in one or more large cloop files, which is ideal. But with the full install version, there are many smaller files. And that can result in a slower data transfer rate.

Thirdly, a liveCD linux uses a union filesystem like AUFS. It is a virtual file system, sometimes known as a stackable filesystem. It is designed such that write cycles to the USB are minimized, certainly much less that for the full install version on a USB. This helps becos a) data writes to a USB take x2 longer than reads, and b) excessive writing to your usb will wear it out sooner.


phpstorm and new ubuntu/java update overheating

This should not be possible provide your system is well maintained. The  i7-2630QM CPU has Thermal Monitoring Technologies. this being the case, If the CPU is truly overheating (Max temp 100C) then the CPU must be faulty as it's designed to downclock and continue working if it gets hot.

Thermal Monitoring Technologies protect the processor package and the system from thermal failure through several thermal management features. An on-die Digital Thermal Sensor (DTS) detects the core's temperature, and the thermal management features reduce package power consumption and thereby temperature when required in order to remain within normal operating limits

EDIT:

Since you are using the intel_pstate driver and it doesn't appear to be working properly for you you could try disabling it and using acpi frequency control instead as described in this answer. You could also install the indicator-cpufreq package and adjust clock rates manually. Note that changing to acpi frequency control will typically provide more choices for indicator-cpufreq than the intel-pstate driver.

If your system isn't well maintained, it could be packed with dust, the cooling fan may be failing or have failed. (None of us work well when we can't breathe.)  If this is the problem you'll find some options here


Beautiful Samba Folder sharing in Gnome / Nautilus don't work

No, it's more complicated than that.  The answer to this question shows how to set it up the way you want.


How do I create a customized CD that doesn't display any installation screens?

You can decide many of the answers to the installer questions in advance, using preseeding. If the answer is decided in advance, the installer should not prompt the user for input.

If you are working from a live image, to include additional software, you may include additional software in the squashfs.


Install Jupiter and jupiter-support-eee. This is a frontend to the acpi power states and works by undervolting the CPU and Mainboard. It will reduce power consumption at the price of preformance of course.

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

reduce the backlight as far as possible. This may sound obvious, but helps a lot!
disable bluetooth https://askubuntu.com/a/2568/34029
check that the hda-intel power saving mode is active. The current generation onboard audio (often called "High Definition" or HDA) has power savings capabilities that are supported via the ALSA drivers

To check if power save is enabled for the HDA controllers, use:

# cat /sys/module/snd_hda_intel/parameters/power_save
10

Power saving is enabled if the value that this shows is greater than zero. Some more tweaks for the HDA-intel module:

sudo sh -c 'echo Y > /sys/module/snd_hda_intel/parameters/power_save_controller'
sudo sh -c 'echo 1 > /sys/module/snd_hda_intel/parameters/power_save'

USB auto power/suspend

sudo sh -c 'for i in /sys/bus/usb/devices/*/power/level; do echo auto > $i; done'
sudo sh -c 'for i in /sys/bus/usb/devices/*/power/autosuspend; do echo 1 > $i; done'

PCI auto power/suspend

sudo sh -c 'for i in /sys/bus/pci/devices/*/power/control; do echo auto > $i; done'

Set SATA link Power management to min_power

sudo sh -c 'for i in /sys/class/scsi_host/host*/link_power_management_policy; do echo min_power > $i; done'

blacklist the brcmsmac wifi driver because it does not support power saving. the proprietary wl driver from broadcom does.

gksudo gedit /etc/modprobe.d/blacklist.conf

Add these lines at the end of the file to prevent the kernel drivers from loading

blacklist bcma
blacklist brcmsmac
blacklist brcmutil

Now install the proprietary driver via the "Restricted Drivers manager" or from the terminal

sudo apt-get install bcmwl-kernel-source

and reload the wlan drivers or reboot. To enable power saving with:

sudo iwconfig eth1 power on

set timeout to 500ms

sudo iwconfig eth1 power timeout 500ms

Reduce adapter power to 5

sudo iwconfig eth1 txpower 5

Use powertop to see which programs are doing unneeded background processing https://askubuntu.com/a/98367/34029
Fan: the fanspeed is set by the bios. I really suggest not to mess with it because you can cause hardware damage if you misconfigure it. If you want to change this anyway see http://www.tjansson.dk/?p=325

When following this tips you can get the laptop down to 670-700 mAh resulting in ~ 6,5 hours of runtime on battery.


libboost_system.so.1.58.0: cannot open shared object file: No such file or directory

You have installed a software that is not supported by Ubuntu. Obviously the software (which you did not mention) needs some older libraries. So you've got those possible solutions:

Recompile and link the software with the current libraries.
Try to find a snap package that includes all the dependencies
Find a version that is compatible with Ubuntu 20.04 - e.g in a ppa

What you shouldn't do: Do not try to install the needed libboost_system 1.58.0 (which your software needs),as it may break you system. And it probably wont work, since its dependencies are also missing.


Cannot boot my Windows after installing Ubuntu 18.04

The "good stuff" in boot repair report is often found at the bottom. Such is the case in your situation:

Found Windows 10 on /dev/sda1
Windows is hibernated, refused to mount.
The disk contains an unclean file system (0, 0).
Metadata kept in Windows cache, refused to mount.
Falling back to read-only mount because the NTFS partition is in an
unsafe state. Please resume and shutdown Windows fully (no hibernation
or fast restarting.)
Unhide GRUB boot menu in sda7/boot/grub/grub.cfg

See this Q&A: Ubuntu 16.04 + Windows 10 Hibernated = no OS


I used to have problems like this whenever I upgraded my Ubuntu installation. The truth is an upgrade will never match a fresh installation at least not in my experience.To solve this problem I use advanced partitioning when installing Ubuntu. Home directory onto a separate partition you can follow the guides https://www.tecmint.com/move-home-directory-to-new-partition-disk-in-linux/ and Move home folder to second drive. This allows me to do a fresh installation whenever I want with minimum interuptions


How do I boot a virtual machine from my downloaded .iso file?

Before starting the virtual machine:

In the VirtualBox main window click on your virtual machine in the left column.  Then click Settings at the top of the window.
Click Storage in the left hand column.
On the Storage page, click on the CD icon in the center column (it should say Empty beside it).  An new icon of a CD will appear at the right of the window.
Click on the icon of the CD over on the right side (the one with an arrow pointing down).
Click on "Choose a virtual CD/DVD blah blah blah" in the menu that drops down.
Navigate to where you downloaded the installer.iso file.  Click on this file and click Open at the bottom of this window.  The file name you chose should then appear beside the icon of the CD in the center column.
Click OK at the bottom of the storage page and start the virtual machine.  It should boot off the .iso just as if it were a physical one.


You should follow this howto on getting Go-MTP installed:
http://www.webupd8.org/2012/12/how-to-mount-android-40-ubuntu-go-mtpfs.html


How to suppress pam_unix(sshd:session): session closed for user

You can configure rsyslogd to discard messages mentioning the gitlab user. Create a file in /etc/rsyslog.d/ (say, 10-filter-git.conf), containing:

if $syslogfacility-text startswith 'auth' and $msg contains 'gitlab' and  not ($msg contains 'failure') then ~

This is an expression-based filter that:

matches messages coming from facilities whose name begin with auth. Typically, the entries in auth.log are from the auth and authpriv facilities.
matches messages containing gitlab - use your username here.
matches messages not containing failure - I assume you'd still want to keep an eye out for authentication failures.
~ discards messages sent to it.

Then restart rsyslogd:

service rsyslog restart

Now normal messages about the gitlab user shouldn't appear in auth.log.


What is the install routine for Common Lisp / SLIME/SBCL?

This is for 14.04.03 LTS. In a terminal (CtrlAltT), I would type:

# Note: the first part of the command line up to the "$ " is my prompt,
# and not what I typed. I apologize for this if you know your a** from your
# elbow.

w3@aardvark:~(130)$ apt-cache search slime

cl-swank - Superior LISP Interaction Mode for Emacs (Lisp-side server)
common-lisp-controller - Common Lisp source and compiler manager
sbcl-source - Source code files for SBCL
slime - Superior LISP Interaction Mode for Emacs
slimevolley - unrealistic 2D volleyball simulation
slimevolley-data - unrealistic 2D volleyball simulation - data files
stumpwm - tiling, keyboard driven Common Lisp window manager

# remove "--dry-run" to really install

w3@aardvark:~(0)$ sudo apt-get --dry-run install slime
[sudo] password for w3:

# Your system's list of "additional" packages may vary. I have installed
# packages previously, and you may have, as well

Reading package lists... Done
Building dependency tree
Reading state information... Done
The following extra packages will be installed:
  cl-asdf cl-swank common-lisp-controller realpath
Suggested packages:
  sbcl darcs
The following NEW packages will be installed:
  cl-asdf cl-swank common-lisp-controller realpath slime
0 upgraded, 5 newly installed, 0 to remove and 4 not upgraded.
Inst cl-asdf (2:3.0.3-1 Ubuntu:14.04/trusty [all])
Inst cl-swank (1:20130626-1 Ubuntu:14.04/trusty [all])
Inst realpath (1.19 Ubuntu:14.04/trusty [amd64])
Inst common-lisp-controller (7.10 Ubuntu:14.04/trusty [all])
Inst slime (1:20130626-1 Ubuntu:14.04/trusty [all])
Conf cl-asdf (2:3.0.3-1 Ubuntu:14.04/trusty [all])
Conf cl-swank (1:20130626-1 Ubuntu:14.04/trusty [all])
Conf realpath (1.19 Ubuntu:14.04/trusty [amd64])
Conf common-lisp-controller (7.10 Ubuntu:14.04/trusty [all])
Conf slime (1:20130626-1 Ubuntu:14.04/trusty [all])

# Without "--dry-run" above, this would have installed slime
# and the following command would have listed the files in the slime package

w3@aardvark:~(0)$ dpkg -L slime
dpkg-query: package 'slime' is not installed
Use dpkg --info (= dpkg-deb --info) to examine archive files,
and dpkg --contents (= dpkg-deb --contents) to list their contents.
w3@aardvark:~(1)$


You can not run it natively. If you want to stick with Ubuntu and not depend on Windows Inkscape would be the best alternative. If you must use Corel Draw ...

Dual booting is always an option.
The best method from within Ubuntu would be to install VirtualBox, install Windows inside a VirtualBox and install Corel Draw inside Windows. There is a very good and very lenghty tutorial on how to do this on ubuntuforums.org. This would be my advice since you can then also install all kinds of other software you might need that is Windows only.
Wine most times is a viable option but for Corel Draw it seems to be a gamble. WineHQ shows a lot of garbage ratings and 1 platinum. Without some knowledge on how Wine works and how you can troubleshoot problems adds an extra difficulty. Plus if you want to use extra other software you would face that problem again.


Yes.  First off, I use a 3 partition HDD.  50 gb both allocated to Windows and Ubuntu.  Ubuntu in the ext4 Jorunal file system and Windows in the NTFS file system.  My data part uses an NTFS File system so it can be read by Windows.  In order to do this, you should make a live usb.

Once you are running in your live usb in either ubuntu or windows.  At which point you will format your HDD as NTFS.  Once that is done make a folder and copy your music to the HDD.

At this point you can now safely install Windows then Install Ubuntu.  Windows will always mount anything it see, where as Ubuntu will recongize it, but clicking the HDD icon once on the Unity Taskbar will mount it.

As a reminder Windows by default will never see the Z drive Ubuntu uses.  So if you need files from Ubuntu make certain you copy them or download them to your Data Drive.  Ubuntu wil see Windows however.


Can I install maverick's sound menu in lucid?

Unfortunately no, among other upgrades found in maverick sound menu relies on MPRIS support in your music player, which is only found in maverick.


Twinview on Gnome when monitor is unplugged

This usually works out of the box on Ubuntu, but there could be a problem with this specific hardware. In this case executing xrandr --auto from the terminal should disable the disconnected monitor.


How can you change the GTK Theme and Window Decorations separately in Unity?

You can try to change the Window theme and the GTK theme separately using the gsettings command, Ubuntu Tweak or gnome-tweak-tool.

Gsettings
There are two schemas, for the gtk theme is org.gnome.desktop.interface & for the window theme is org.gnome.desktop.wm.preferences.
In this example I will set the gtk-theme to Ambiance and the Window-theme to Radiance.
1) Open a Terminal window Ctrl+Alt+T and type:

gsettings set org.gnome.desktop.interface gtk-theme Ambiance
gsettings set org.gnome.desktop.wm.preferences theme Radiance

The result in Nautilus:

Ubuntu-Tweak
To install ubuntu-tweak you can add this ppa.
1) Open a Terminal window Ctrl+Alt+T and type:

sudo add-apt-repository ppa:tualatrix/ppa
sudo apt-get update
sudo apt-get install ubuntu-tweak

2) Open the Ubuntu-Tweak and go to Tweaks -> Theme.

Gnome-Tweak-Tool
To install the gnome-tweak-tool
1) Open a Terminal window Ctrl+Alt+T and type:

sudo apt-get install gnome-tweak-tool

2) Open the gnome-tweak-tool application and go to Theme.

NOTE: In this application the window-theme is named as Current Theme.
Hope this helps.


Simply try to repair your boot  (grub) with boot-repair CD.  You will find all the explications here. https://help.ubuntu.com/community/Boot-Repair


You have to simply install missed wine package by:
sudo apt-add-repository universe
sudo apt-get update
sudo apt-get install wine

and then restart Q4Wine application.

The problem is a bit unpredicted as q4wine deb-package should install wine by itself as dependency (recommendation).


Ubuntu 12.10 desktop/interface not showing on VirtualBox VM after login screen

Accepted Answer
You could alternatively install gnome classic in order to get a functional desktop:
sudo apt-get install gnome-session-fallback
Reboot the pc and select "Gnome Classic (No Effects)" from the session list.

Original Answer

open a terminal and type
sudo apt-get install compizconfig-settings-manager
after installing type: ccsm
hopefully a window will open. tick "Unity".


How do I check whether partitions on my SSD are properly aligned?

Parted has an align-check build in.

parted /dev/sda
align-check opt n

n is the partition you want to check.


CUDA-Theano-Keras setting. MissingSectionHeaderError: File contains no section headers. file: '/home/marija/.theanorc'

On 12. Configure theano to use GPU by default it asks to copy some string with quotation marks. Unfortunately, if you take a closer look, that webpage displays some fancy quotation marks, which are not recognised by terminal as ones. Compare "something" and “something”. Executing this command you simply added these and changed the meaning (look at the last line of your Traceback -> ' “ .... “ ' ).

What you want instead is this line (or paste from that site, but correct quotetions):

echo -e "\n[global]\nfloatX=float32\ndevice=gpu\n[mode]=FAST_RUN\n\n[nvcc]\nfastmath=True\n\n[cuda]\nroot=/usr/local/cuda" >> ~/.theanorc


Forgot to add swap memory during installation

Can i work whitout swap?

It depends on your RAM size.If your RAM size is too low, you have to create swap otherwise you won't.

See this page for how much swap space do you really need, according to you RAM size.

  How can i add it to my excisting install?

You can create a new swap partition using Gparted Utility.And don't forget to create a new fstab entry for your created swap partition.See this page for how to create swap partition and add it to the existing Ubuntu installation.


This extension is "xml", not "dom".

sudo apt-get install php-xml

or

sudo apt-get install php7.2-xml

Depend's on Ubuntu version and used repos.


How do I hide the panels in fallback mode using the command line?

As an alternative to gsettings you can use dconf from the command line as well.

For example

dconf write /org/gnome/gnome-panel/layout/toplevels/bottom-panel/auto-hide true

This will write the value TRUE to the auto-hide key.

If you need to see the keys in a path then use the list parameter

For example:

dconf list /org/gnome/gnome-panel/layout/toplevels/top-panel/

Remember to start with a / and end with a / for paths.


Have you tried reinstalling grub? check this link out
https://help.ubuntu.com/community/Grub2/Installing


This is what helped in the end: I removed lightdm and installed GDM. After reboot, it worked:

When the HDD stops loading and the black screen appears, type CTRL+ALT+F1
Type your username and password in the terminal prompt. If you can't even see it, like I couldn't, type your username, press ETNER, then type the password, press ENTER.
Start XORG by typing startx
When the desktop appears, open terminal using CTRL+ALT+T
Remove lightdm using sudo apt-get remove lightdm
Wait for it to finish, then install GDM using sudo apt-get install gdm
After it's done, use sudo reboot to restart the computer and GDM should be working

Does anyone know what caused this out of the blue and will I be able to use lightdm again?


Encrypted System Partition Failed to Load on Ubuntu 17.04

Since you've recently had other/similar problems, it's important for me to say we'll need to check the firmware in your SSD. You'll need to go to the manufacturer's web site to see if there are updates.

Let's first perform a file system check. There's at least 3 different ways to do this. We'll try the easy way first, and then try others if need be. Let me say that LVM and encryption make this job somewhat difficult, and I'm not an expert on either. That said...

Step #1:

Since you're at the (initramfs) prompt...

type "exit"
note the name of the hard disk called out...
in your case, it'll probably be something like "/dev/mapper/ubuntu--vg-root"
type "fsck -f /dev/mapper/ubuntu--vg-root"

Then try and reboot your system.

Step #2:

Since you're at the (initramfs) prompt...

type "exit"
type "fsck -f /dev/sda5"

Then try and reboot your system.

Update #1:

Mounted the encrypted Ubuntu partition and backed up user files, and then reinstalled Ubuntu.


How to manipulate files in external hard drive using terminal?

You can access it via /media/[username]/[crazy characters]

[username] is your username logged in
[crazy characters] is random things, mine was "7856-2D7D"


I can't install softwares after failed removal of Python 3 (python3-pkg-resources)

After many hours of searching, tweaking and all other kind of things I have found a solution to this problem

All the below steps are done without rebooting

First I removed all the four broken packages using synaptic programme manager(mark as removal).
Then I updated my system using these commands

sudo apt-get update
sudo apt-get -f upgrade
sudo apt-get -f install
sudo dpkg --configure -a
sudo apt-get install ubuntu-desktop
sudo apt-get install build-essential
sudo apt-get install build-essential checkinstall
sudo apt-get autoclean
sudo apt-get clean

The above codes I repeated many times (not in the same order) still I got satisfied and will also recommend other packages to install depending on your problem.

Now after a fresh reboot I am able to install softwares and other packages

sudo apt-get install unity-tweak-tool


You need to have internet for jockey to install wireless driver so make sure you have wired internet first.

If You want to go manual route try:

sudo apt-get install bcmwl-kernel-source

And see if your wireless works or not else try:

sudo apt-get purge bcmwl-kernel-source && sudo apt-get install firmware-b43-installer

If the first process doesnot work.


I have GNOME Boxes installed and running on Ubuntu 12.10 Quantal Quetzal (actually Ubuntu Gnome Remix with the GNOME3 PPA activated).

According to launchpad, you can find the package gnome-boxes in the universe repository which is activated by default. Check if it's still the case, resynchronize the package index files, upgrade and try installing GNOME Boxes again :

sudo apt-get update
sudo apt-get upgrade
sudo apt-get install gnome-boxes

If it doesn't work, maybe you can add the GNOME3 PPA and try installing it again since it seems to be the only difference between our configurations :

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

This PPA offers packages that were not included by default in Ubuntu. Be careful not to upgrade and to remove it after, if you don't want it.

Rémi.


Apt-get on a virtual server with no internet

apt-get looks in /etc/apt/sources.list for the list of locations where to get packages.
(and possibly any files in /etc/apt/sources.list.d)

you added the cdrom location with the apt-cdrom command, but it seems you forgot to remove the default internetlocations
-> make sure you have commented out all the internet locations


Ubuntu desktop suddenly points to home folder

If gconf doesn't work, open your home directory and press Ctrl+H to show hidden files. Look in .config for user-dirs.dirs and be sure it resembles this:

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


How do I change keyboard keys configuration on Ubuntu 20.04?

An advanced option like this is not available in the pre-installed Settings application, you need to use (GNOME) Tweaks. First install it by running the following command in Terminal (you would have to enable the universe repo first if it's disabled):

sudo apt install gnome-tweaks

Then launch it and you would find the option under Keyboard & Mouse > Additional Layout Options:


Icons disappear after saving file Ubuntu 20.04 LTS

It seems there is a bug in Gnome. I found two different reports:
https://bugs.launchpad.net/ubuntu/+source/gnome-shell-extension-desktop-icons/+bug/1883174
https://bugs.launchpad.net/ubuntu/+source/gnome-shell-extension-desktop-icons/+bug/1816205
I have both symptoms here. Saving a file in desktop sometimes just flashes the icons but sometimes makes most of them to disappear - but not all of them. And I'm pretty sure the ones that stay on screen are always the same.
There was a proposed fix on 2020.12.07 but I haven't tested it. Will wait.


pyenv error installing Python 3.6.7 or 2.7.8 in Ubuntu 18.04.2 LTS

I think what happened is a path issue between your python version and your pyenv python version.

You must have hardcoded the python version through an alias or something into the .bashrc file.

Just :

uninstall pyenv
go into the bashrc file and remove python alias
install pyenv again


How to install packages that is already downloaded?

If what you've downloaded is .deb file, then what you do, just press Ctrl+Alt+T on your keyboard to open Terminal. When it opens, navigate to the folder where the file was downloaded, most likely the Downloads folder, and run the commands below.

sudo dpkg -i <filename.deb>


When you allocate the memory, it merely gets reserved. You need to put something in it before it actually gets used. If you put something in it, then you should observe the VM RAM usage increase. You may want to slow things down with some sleeps in your program to give yourself time to observe things as it proceeds.

There was an interesting question about using all the memory available just the other day.


Typically, sleep is the GNU sleep program. This program calls the GNU function xnanosleep, which in turn calls the Linux nanosleep system call. And:

nanosleep()  suspends  the execution of the calling thread until either
at least the time specified in *req has elapsed, or the delivery  of  a
signal  that triggers the invocation of a handler in the calling thread
or that terminates the process.

So the process is, by definition, not running (whatever maybe the priority), but suspended.

Testing this out:

sleep 10 & ps aux | grep $!
[1] 25682
muru  25682  0.0  0.0   7196   620 pts/13   SN   04:10   0:00 sleep 10

The process state is SN:

   S    interruptible sleep (waiting for an event to complete)
   N    low-priority (nice to other users)

Ignore the N, I'd guess that's how it was when it started out. So the effective state of sleep is interruptible sleep.


how to change password of an enrypted ubuntu user account?

To fix this, simply run:

ecryptfs-rewrap-passphrase /home/.ecryptfs/$USER/.ecryptfs/wrapped-passphrase

It will prompt you for your old passphrase, then allow you to enter a new one. Then, you will be able to log in normally.

Found on: https://askubuntu.com/a/439290/254032


It looks like a program called Hijri Applet.  Since you don't know how it happened, you can remove it using Ubuntu Software Center.


Any way to grab a numeric value from a file and add it?

Using awk:
$ su -c hackbench -pTl 4000| awk '{print $NF}'
13.353

Awk splits each input line into fields.  $NF is the last field on the line.
Using grep:
$ su -c hackbench -pTl 4000| grep -oE '[[:digit:]+-.]+$'
13.353

-o tells grep to print only the matched content.  [:digit:]+-.]+$ matches the number at the end of the line.
Using sed:
$ su -c hackbench -pTl 4000| sed 's/.* //'
13.353

s/.* // removes all content on the line up to and including the last space.  Only the final number remains.
Using bash:
$ readarray -d' ' arr < <(su -c hackbench -pTl 4000); echo "${arr[-1]}"
13.353

This reads the output of the hackbench command into array arr.  ${arr[-1]} prints the last element of the array.  (This requires a recent version of bash.)
Adding
Bash does not understand floating point numbers.  So, one must use awk or bc or another tool.  For example:
$ time=10
$ time=$(echo "$time + ${arr[-1]}" | bc -l)
$ echo "$time"
23.353

As an aside, it is best practice to use lower or mixed-case names for shell variable names in your work.  This is because the system uses upper-case names for its variables and you don't want to accidentally overwrite one of them.


Make sure Ubuntu Dock is installed by running the following command in Terminal

sudo apt install gnome-shell-extension-ubuntu-dock

and then re-login.

Note that if you enable the 'Auto-hide the Dock' option in Ubuntu Dock settings, then the dock would be hidden until mouseover to dodge windows. To make the dock visible all the time launch Settings application and in the 'Dock' section disable 'Auto-hide the Dock'.


Help with dual booting Windows 8.1 Professional and Ubuntu 13.10

Well, it looks like the Ubuntu installer is unable to detect / read the partition table used by windows.

Boot with LiveCD and check what

sudo parted /dev/sda print

gives you (original post).

I have an MBR partition table, so for me it states "Partition Table: msdos".

UPDATE: Hmm, your problem seems very similar to this question.
According to "Lenovo Y500 User Guide", the default boot mode on your laptop is UEFI. However, check which boot mode you are using before applying any fixes.

Also linking this question since it contains a great deal of info about dual booting.


Sharing IPv6 from SixXS to local KVM guests

The simplest way is to setup radvd to announce your subnet on the local interface.  IPv6 capable clients should auto-configure.

Be sure you setup a firewall otherwise your devices will be exposed to the Internet.  My article on Implementing IPv6 6to4 should help.

Clients which should not be reachable from the Internet will be slightly more secure if you enable IPv6 privacy which will add new addresses periodically, and remove the old address when it is safe to do so.

For local services IPv6 works well with zero configuration services like Bonjor, avahi, and the like.


You can find the softwares available in the official repositories here.


gksu gedit /etc/*release

change it in your risk ,it may crash your system


GNOME 2 will not be available in 11.10 as the entire stack (including GTK) has been upgraded to 3.x.

Though a new project has been made to reintroduce GNOME 2 to newer OSs called 'Mate' (Pronounced mah-te) and it's available now as an official distro...


Try:

sudo -s
tsocks update-manager -d

This still won't show the upgrade, but there's nothing funny going on with command line parameters. There must be a problem with using socks and update-manager.

See bug https://bugs.launchpad.net/ubuntu/+source/update-manager/+bug/897686

I suspect upgrading this way might have been intentionally disabled because it fails later on, in the middle of the upgrade, which is bad.

I suggest to download the 12.10 ISO and upgrade using it, ie an offline upgrade.


It depends on how you partitioned your hard drive. But, if /var was not given its own partition, reinstalling Ubuntu will wipe /var.

Not only would you need to backup /var/www, but you would also need to backup /var/lib/mysql, where your MySQL database lives.


How do I hide the icons on the top panel?

I know you can remove the keyboard icon by going to System Settings | Text Entry , then unchecking show current input source in the menu bar (checkbox in the bottom left).

As for mail, see scouser73's answer.


How do I install an SSH private key generated by PuTTYgen?

By coincidence, I just had to do this.  You do need to convert the keys to OpenSSH format.  The command for doing that is:

ssh-keygen -i -f puttygen_key > openssh_key

then you can copy the contents of openssh_key in to .ssh/authorized_keys just as with a normal SSH key.

The -i option is the one that tells ssh-keygen to do the conversion.  The -f option tells it where to find the key to convert.

This works for unencrypted keys.  The public key is unencrypted, but the private one is probably encrypted.  I'm not sure if it there's a way to unencrypt the private key, convert it, and then recrypt it.  It may well be easier to use new keys as the other answer suggests (and I'd recommend using ssh-agent though that's orthogonal to the current issue).


wmctrl tool provides command line access to window manager (not installed by default, the package is named wmctrl). The -a flag permits a user to Activate the window by switching to its desktop and raising it.
(Note that you can find the window name with -f option)

$ wmctrl -l
0x01600007 -1 hostname Desktop
0x04200002  0 hostname mouse - What do I do when Minecraft in fullscreen loses focus? - Ask Ubuntu - Google Chrome
0x03200007  0 hostname Terminal
0x03e00015  0 hostname Minecraft 1.10.2
$ wmctrl -a "Minecraft 1.10"

Thus a complete recipe could be

Switch to virtual console Ctrl+Alt+F1
Login
DISPLAY=:0 wmctrl -a "Minecraft 1.10"
Switch to x server console Ctrl+Alt+F7 (or F8)

See this other answer for more details on wmctrl.


Under Sound Preferences, please post the "Hardware Tab" in order to check your profile, which should use at least an output + an input being in use. Otherwise, your hardware is not using the input profile which can be chosen right there.

This answer may be changed after your posting in order to give you further details. Here is a sample. Thank you.

Edit

Here is the conversation in the general chat room.


I have finally found a fix to my problem thanks to @jrg. The following fixed my issue

rvm use --create 1.9.3@xiki; gem install xiki; which xiki

and then finally xiki. That worked perfectly!

Hope it fixes anyone else's problems :).


bashrc script not accepting space in directory name

Use this in .bashrc :

export xyz="/home/faizal/DEV/ADT workspace/xyz"

Use this to access it :

cd "$xyz"


`root` owns some files in `/home/user` should I be concerned?

No, nothing in your home directory should be owned by root.  This happens when you run things with sudo (or gksudo).  Better change the ownership (and group) back to yourself.  Don't delete them (although that probably wouldn't be a problem).


Run sudo apt-get install grsync. It will fail, but show you the required package dependencies missing on your system. On my box, it shows:

The following NEW packages will be installed:
grsync libgtk2.0-0
Go to http://packages.ubuntu.com/precise/grsync and download the missing dependencies.
Copy the downloaded *.deb files to /var/cache/apt/archives/.
Run sudo apt-get install grsync again. Now it should pick files from cache and won't require an internet connection to install grsync.


Failed to install sqlite3 for Asterisk 11

You are having a DNS issue, the name resolution is failing. Either you do not have set a valid name server address or your name server is having problem resulting in name resolution failure.

You can run the following command to temporarily set Google's free name server as the DNS server but it is highly recommended that you use your ISP provided DNS server address.

printf "\nnameserver 8.8.8.8" | sudo tee -a /etc/resolv.conf

This will add "nameserver 8.8.8.8" to /etc/resov.conf. This is temporary i.e. will not survive a reboot, you can follow this to permanently set DNS server address(es).


Do I have to be careful if installing ubuntu on hdd with Win 8?

you can also read this thread : http://ubuntuforums.org/showthread.php?t=2055842

Thanks


Is there any LaTeX integration for EMail editors?

I do not know of any such integration, but I know the answer to your second question: Google Charts API.

Create an URL like the following:

http://chart.apis.google.com/chart?cht=tx&chf=bg,s,FFFFFF00&chco=AACCFF&chl=i\hbar\frac{\partial}{\partial t} \Psi(\mathbf{r},\,t) = \hat H \Psi(\mathbf{r},t) clickable link to this URL

...and there you have it, a PNG rendering of the LaTeX code you just wrote in it.


gParted shows I/O error while creating a NTFS partition

You might try using the latest version of GParted Live (currently 0.19.1-4).  The error appears to be in the mkntfs command which is part of the ntfs-3g package.


hadoop fs -ls /usr/local is dealing my Hadoop installation folder as file

Absolutely not. It is just showing the directories inside '/usr/local', which is rightly 'hadoop'. That is the functionality of ls command, which is to show all files and/or directories inside a given path(in your case /usr/local). So, I believe it is showing correct.


You need to define and export libc.so library path.
LD_LIBRARY_PATH=$LD_LIBRARY_PATH:<location of libc.so>
export LD_LIBRARY_PATH

Try to run application after that.


You are writing to a file in a loop with this command:

echo "$serial"|sha256sum > Token.csv

However each time you loop you are erasing the file and writing a new entry. What you want to do is append (add to) the file each time you loop with this command:

echo "$serial"|sha256sum >> Token.csv

A single > tells bash to erase the file Token.csv and write the contents. A double >> tells bash to add to the end of the file.

The bash script would now look like this:

#!/bin/bash
epoch=$(date -d "`date`" +"%s")
StringCsv="/home/Desktop/TokenGenScript/SerialNos.csv"
StringToken=b5242a2d7973c1aca3723c834ba0d239

> Token.csv # Empty file from last run

while IFS=$'\n' read -r line || [ -n "$line" ]
do
 j=$line
 serial=${j}:${epoch}:${StringToken}
 echo "$serial"|sha256sum >> Token.csv # Append new record to end
done < "$StringCsv"

There are two ways to create a new empty file > Token.csv as used above and touch Token.csv. However only > Token.csv will empty an existing file. See:

What is the difference between touch file and > file?


Bypassing root authentication by pressing the ENTER key for 70 seconds

This CVE-2016-4484 issue was reported a while back which allowed any debian or redhat based distro to be hacked just by pressing the enter key for 60-70 secs.

The issue is similar to many other similar way you can gain access to login shell during boot process which is why they marked it low priority here https://bugs.launchpad.net/ubuntu/+source/cryptsetup/+bug/1660701

I think the vulnerability is patched as the hacker gave an detailed description of his work and where the vulnerability is exactly so you don't have to worry.
I think they released a patch but i'm not sure as i don't quite remember but as long as the issue is concerned its way below critical to be start panicking about as there are more similar bugs out there.


how to be warned if terminal has sudo privileges and also show how much time is left?

[I still would like to know if there is a better answear.]

I found a way that works, and the prompt will be kept on a single line:

at the end of your ~/.bashrc add this:

function FUNCsudoOn() {
    if sudo -n uptime 2>/dev/null 1>/dev/null; then
        echo -ne "\E[0m\E[93m\E[41m\E[1m\E[5m SUDO \E[0m";
        #echo #without newline, the terminal seems to bugout with lines that are too big... discomment this if you find any problems...
    fi;
}
function FUNCpromptCommand () {
    FUNCsudoOn
}
export PROMPT_COMMAND=FUNCpromptCommand
#export PS1="\`FUNCsudoOn\`$PS1" #this also works, use instead of PROMPT_COMMAND

EDIT: I found that sudo -n uptime will update the sudo timeout, so everytime you hit the Enter key, that sudo time will be updated... That makes knowing the remaining time useless, as it will always be the configured one, defaulting to 15min...

and to find the best colors formatting for you taste you can use ScriptEchoColor with --escapedchars option like:

echoc --escapedchars "@{nRlyo} SUDO " #that outputs below...
echo -e "\E[0m\E[93m\E[41m\E[1m\E[5m SUDO \E[0m"

to just stop the blinking remove \E[5m like in \E[0m\E[93m\E[41m\E[1m SUDO \E[0m


Use the -o flag:

  -o, --only-matching
                Print only the matched (non-empty) parts of a matching line, with each such part on a separate output line.

For example grep -ro "TODO" chapters/*.tex | wc -l


Can you put a window on a list of virtual desktops, rather than just one or all of them?

KDE 4.6 has a great feature called "activities" that allows you to assign applications to virtual workspaces.  This seems like a good blog explaining activities in more detail: http://bsmith1012.blogspot.com/2011/02/changes-in-kde-46-activities.html
As far as I know, it is not possible to do what you want with GNOME.


How to get an old kernel version that is not anymore in official webpage

Firstly, I would like to know why you hate AUR. It is important for an open source community to allow for user-create packages that can be installed as easily as official packages. It's usually a beginners mistake to mess up user accounts and not be able to run yaourt from root.

Now, if you want a specific kernel version, all you need to do is get it from here - http://kernel.ubuntu.com/~kernel-ppa/mainline/v3.13-trusty/. You'll have files like this:

linux-headers-xxxxxx-generic-xxxxxx_amd64.deb

linux-headers-xxxxxx_all.deb

linux-image-xxxxxx-generic-xxxxxx_amd64.deb

Move all of them to a folder. Go to that folder and then run:

sudo dpkg -i *.deb

That should solve your problem.

To avoid/skip kernel updates, you can follow this: http://hollysydney.com/article/prevent-ubuntu-upgrading-kernel.

Hope this helps!


I use gnuplot to output png but cannot open the png pictures

set terminal emf means you're creating an EMF file. That you have set the filename to use .png doesn't mean that it will magically become a PNG file. If you want to make PNG files with gnuplot, use set terminal png.


How to open .doc files containing XML code in LibreOffice?

LibraOffice Calc allows you to open XML files by loading it using:

-> Data -> XML Source

More info can be found here


Troubleshoot Ubuntu 20.04 display freezing

I have the same problem with gnome sometimes when I do something.
Try to switch to text mode and back to graphical mode (CTRL+ALT+F3 and then CTRL+ALT+F2).
Sometimes gnome just hangs for me, espacially when I use VirtualBox or Copy Paste stuff.


How to connect my Wireless Epson WF-2540 to my laptop that is running Ubuntu 14.04 LTS OS

It is extremely unlikely that you will be able to use the proprietary tools and drivers included on the installation CD, as these are meant for Windows.

Instead, you should simply install the printer from within Ubuntu. See:

How do I install my printer with Ubuntu?
Ubuntu help on Printers
If you have a print server


Error after upgrade to 11.04 from 10.10 - Does not mount volumes correctly

First guess is that there is an incorrect entry in /etc/fstab.
Another possibility (hope not) is that something is wrong with one or more partitions or the drive / controller.

Suggestions:
-boot from liveCD/liveUSB and check integrity of partitions (using gparted for example)
-mount your root partition and take a look at /etc/fstab for anything wrong (you might try using /dev/sd? instead of UUID?)
-worst case scenario, there is a repair install option from the liveCD/liveUSB


run bash script from linux partition, locate does not work

It seems that the locate command works in the main partition but NOT in  /dev/sdb1.

See /etc/updatedb.conf.

It will likely look like this:

PRUNE_BIND_MOUNTS="yes"
# PRUNENAMES=".git .bzr .hg .svn"
PRUNEPATHS="/tmp /var/spool /media /home/.ecryptfs /var/lib/schroot"
PRUNEFS="NFS nfs nfs4 rpc_pipefs afs binfmt_misc proc smbfs autofs iso9660 ncpfs
 coda devpts ftpfs devfs mfs shfs sysfs cifs lustre tmpfs usbfs udf fuse.gluster
fs fuse.sshfs curlftpfs ecryptfs fusesmb devtmpfs"

That is was locate does scan and what it skips in case you want to add something to the database. But this

main_script.sh: line 31: /my/dir/secondary_script.sh: No such file o directory

should be a problem in your script. locate does not show errors if it can not find a file.


GCC 7.3 and 8.2 (ubuntu18.04) problem with sqrt() call

GCC is generating strictly compliant floating point math calculations with the code you compiled (I suspect with -O2 or -O3). I guess you were expecting it to compile it down to something like the following (in gas format assembler):

f:
.LFB9:
        .cfi_startproc
        sqrtss  %xmm0, %xmm0
        ret
        .cfi_endproc
.LFE9:

You need to disable the strict math conformance rules by using -ffast-math to generate the faster "optimized" code. Note that this option enables the

-fno-math-errno
-funsafe-math-optimizations
-ffinite-math-only
-fno-rounding-math
-fno-signaling-nans
-fcx-limited-range
-fexcess-precision=fast

GCC options, so beware of loss of precision and loss of math errors.


Strange problem with libreoffice impress hanging on 16.04

Yeah, same very very irritating problem for me.

As suggested by Jesse McNichol in the bug, removing GTK packages seems to have solved it, albeit by travelling back in time to a Win95 GUI

sudo apt-get remove libreoffice-gtk*

Hopefully though at some point the bug will actually get fixed.


Remove all boot media. This should cause to display "no device to boot to" or a similar message and forces a full POST rather than fastboot sequence after reboot. You can access UEFI setup at POST and disable secureboot that way. Do not forget to remount all your boot media.


Can Ubuntu run on a Microsoft Surface with Windows RT?

Since on the RT tablet I would say no, since Microsoft requires secure keys in order to boot up it. It would probably on a standard Windows 8 tablet though, since the secure boot is an optional thing for OEM's, unlike the mandatory one for the Surface.

Here is a similar question

http://www.reddit.com/r/linux/comments/1229uw/question_linux_on_a_windows_surface_tablet/


Unable to do group video call and group screen share using Skype 4.3

Skype does not support those features right now on Linux.  I emailed Microsoft a couple weeks ago, on this very issue, and they have said that Linux Skype does not support those features at this time.

There are numerous Skype community forum threads on this, and it appears that those features are available on Windows but not Linux.

As of October 23rd, 2015, when I last tested this, group video calling (aka "Video Conference Calls") are not supported still.  Group voice communications are still possible, but not video communications in a group chat on Skype.  Screen sharing is also not supported still either.


How to move the Script I created to another directory and run it from there by double click?

A script essentially is a simple text file. You can copy it anywhere in the same way as you copy regular files.

If you want to copy using the terminal, you use the cpcommand as in
cp "/home/user/downloads/my scripts/script.sh" "/home/user/scripts/"

"/home/user/scripts/" in this example is the destination folder. It must exist for the cp command to proceed. If it does not exist, create the folder first.

`mkdir /home/user/scripts/'

You are mentioning /usr/bin This is a system folder, which would be a suitable folder for placing custom executable files that should be available for all users. You only can copy files into system folders if you have administrator (in Linux also known as 'super user' or 'root') rights. In that case, you can precede the command with sudo, i.e., "act as super user", as in

sudo cp "/home/user/downloads/my scripts/script.sh" "/usr/bin"

The sudo command will request your login password. If your account has root privileges, the command will be executed after you successfully entered your password.

That said, only change system files if you are absolutely sure what you want to achieve. If you want to use your custom scripts only for your self, it is a much better approach to create a "bin" folder in your own home folder. Whenever you open a terminal, Ubuntu automatically will include your private bin folder in the program path. As a result, you, but only you, will be able to execute the script simply by typing its name in the terminal. This eliminates any risk of you breaking the system by working in system folders.


Can't perform slow (full) format on a SATA drive

Long formats are long dead.  If your aim is to wipe data off of the disk then I would suggest to use the shred command.

You would pass it the device name of the disk for eg:

sudo shred /dev/sdb


Did you try to check if you was affected by this volume muted bug ?

It happens when you play the game PathWind or Machines vs Machines, and mute the in-game volume. It will also mute the system volume whitch is a bug. This bug is now tracked at the link above.

Steps to fix it:

Simply launch the game PathWind on the phone, and check the setting of the game, in sound, and unmute. Should fix it.

Other known reason

If you are on the devel-proposed channel, you might be affected by this bug.


How do I remove a previously installed app/software on Ubuntu 16.04

To see the commands that you have previously typed at the command line, type;

history

To search your history for commands that installed a program;

history | grep install

(Your history is not infinite, so it depends how long ago you installed the programs if it is still in your history)

To uninstall a program from the command line type;

sudo apt-get remove <program>

If you also want to remove any associated config;

sudo apt-get purge <program>

I don't use the software centre, but it should simply be a matter of highlighting the program you installed and clicking uninstall (or delete).

I do use synaptic. It's a package manager GUI, without the bells and whistles of software centre. You install it with;

sudo apt-get install synaptic

This GUI lists all available packages and allows you to manipulate them as you see fit. (Install, remove, upgrade etc). You can sort the columns,  so in your case you would sort by what's installed.


Installing Google Chrome Remote Desktop messed up my box

This is what I did to fix the same issue. This way you don't have to restart your machine:

sudo rm -rf ~/.config/chrome-remote-desktop
killall pulseaudio
pulseaudio --start
gnome-shell --replace

It was also affecting my Gnome Apps. I was mad because I spent hours thinking it was because of my Yubikey since it's a U2F/FIDO2 Security Key. So I made sure to be forceful. I hope this is a cure-all for some folks until Google can make some fixes, I sent a feedback report to them about this.


Image Magick can do this.

Basic example to create a PSD file with hello world in text.

convert label:"hello world" example.psd

See http://www.imagemagick.org/Usage/text/  for all the available options.


While it is generally considered to be a bad practice, because any user can remove or modify any other users data, it is not such a great risk in itself; or, better said, it all depends on the context. On a machine with a limited number of trusted users this is not really a problem, as long as the script is not world accessible (like a web cgi) or runs as root.

However, there are many ways such a need can be avoided, and if you post some details (why must the script use 777?), we can consider a better solution. One semi-solution is to set the +t bit; that way, any user can write in the directory, but only that user can then remove or modify the created files.


Just installed ubuntu gnome 3 15.04, on a new Yoga 3 14 but the hardware for the wifi is disabled and I can't turn it on with the wifi switch?

The module ideapad-laptop is supposed to correctly translate key presses into action; in your case, enable and disable wireless. In several models, including the Yoga, it is faulty. You can blacklist the module until a fix is pushed out. In a terminal:

sudo -i
modprobe -r ideapad-laptop
echo "blacklist ideapad-laptop"  >>  /etc/modprobe.d/blacklist.conf
exit

You should be all set.


How to install Ubuntu on a small partition with the highest security settings

Maybe this will help you: Privacy in Ubuntu 12.10: Full Disk Encryption


Cannot update because of Missing packages (12.04 LTS)

Your problem is that you're using cinnamon for your desktop environment (or that you have it installed/ppa is there) but, because the developer stopped using that ppa for 14.04 there is nothing there that apt sees as compatible.

To fix, do this:

Open a terminal
Type the following:

sudo add-apt-repository --remove ppa:gwendal-lebihan-dev/cinnamon-stable

sudo apt-get update

And then try again to update.


I found the solution in this forum :
When you attach your USB key to your laptop:

run sudo -i (so that you won't type your password all the time)

run df -Th(to see where your USB stick is mounted)

unmount your USB stick

run dosfsck on the device you saw from your previous command.
Example: dosfsck /dev/sdc1

remove and reattach your USB stick

Problem should be solved now.


Kubuntu Energy Saving event on power button pressed not working

Found the answer myself. It's a bug. More info here:

https://bugs.launchpad.net/ubuntu/+source/kde-workspace/+bug/1124149

What worked for me was to edit powerbutton.sh

sudo nano /etc/acpi/powerbtn.sh

and change the last line

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

to

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


What webcam can I buy that works out of the box with Ubuntu?

According to the webcam page on the wiki, there is a list on the Linux UVC page that keeps track of compatible cameras.

Personally I've had great support with Logitech cameras. They have a page that shows which models work with Linux out of the box.


UBUNTU 14.04 cheese booth not detect webcam

Open Preferences, and change these resolutions to the lowest.

2.Now restart cheese.

3.The webcam should work. Keep increasing the resolution until it stops working again.For many webcams, this limit is 640x480.


Libre office Calc - tables, numbers and formulas?

You can use the frequency()function to find the frequency of any number or a range of numbers in a table.
LibreOffice help contains an example on how to use the function.


notify-send not working on 14.04, but volume and brightness notifications do

FWIW, I checked against my install of Ubuntu 14.04 (64 bit) and have the same dpkg... output that you have, plus a couple of others from other apps being installed.

Try notify-send "summary" "body" and also try with the --urgency=critical to see if that has any effect. The latter is effective when notify-send is being suppressed because a video is playing.

Otherwise, perhaps install a 3rd party indicator which has notifications and see if that works.

Found the following from a comment at this question:

Try purging notification-daemon: sudo apt-get purge notification-daemon then try apt-get autoremove.  Make sure notify-osd is installed: sudo apt-get install --reinstall notify-osd and restart.


Cannot access PPA... please check your internet connection

To install Kapow, you need to download the 32bit version, or the 64bit version.

Once downloaded ( probably the Downloads folder), just press Ctrl+Alt+T on your keyboard to open Terminal. When it opens, navigate to the download location, and run the command(s) below:

sudo dpkg -i <package_name>

Once the installation is done, search for Kapow in Dash, and click on it.


For example:

sudo apt-get install amqp-tools
amqp-delete-queue -q name_from_queue

In this link you have more options:
https://stackoverflow.com/questions/5313027/rabbitmq-how-do-i-delete-all-messages-from-a-single-queue


Is there any way to make the window resizing less sensitive?

The problem is the border size of the windows. The default theme in Ubuntu has a very narrow border. You can change the windows border theme in "System, Preferences, Appearance". However, I haven't found a theme I like better than the default, so I've taken to using a shortcut I saw posted somewhere else. You can also resize a window by holding down the Alt key and using your middle mouse button. There's some dead space in the middle of the window using this method. Just be near the edge you want to resize, and it will work. Then you don't have to grab the single pixel of the border. ;-)


Installing Ubuntu on MacBook Pro 11.2/11.3

I have not found anything on the web related to 11.2 or 11.3. 11.1 is the closest I got and is also late 2013. Assuming no regressions this is the best you get:

  Has anyone successfully installed Ubuntu on the new MacBook Pro (late-2013)?

See below; last blockquote.

  If not, what issues have you had?

Doesn't work:

Speakers
iSight
Suspend / Resume (resumes to black screen)

Source: conan.jen@ubuntuforums.org.

This fixes sound for some.

  If so, did you use a tutorial, which one?

  Downloaded 13.10 NON-MAC iso.
  Put it onto flash drive via unetbootin.
  Boot up with option held at startup, and select the usb drive.
  Upon installer bootup, went into advanced section and deleted all partitions.
  Created an efi boot partition at 200mb. Installer should auto set the mount point
  on that partition to /boot/efi, but make sure.
  Created a normal ext4 partition mounted to /, for the system installation point.
  Continued on setup.

Source: conan.jen@ubuntuforums.org.

  Thank you Conan for your lead! I have successfully installed Ubuntu
  13.10 on a MacBookPro11,1 (Retina, 13-inch, Late 2013). The installation went smoothly but I could not boot into Ubuntu. After
  hours of trying, I finally figured it out. The following are what I
  did (same steps as Conan's except Step 5):

  Download 13.10 NON-MAC iso and put it onto flash drive via Startup Disk Creator (or unetbootin).
  Boot up with OPTION key held, and select the EFI icon to boot the flash drive.
  Enter live mode (i.e. "Try Ubuntu").
  Install. Wipe out existing partitions and create new ones: i) 200MiB efi, bootable, mounted to /boot/efi; ii) 20GiB ext4, mounted to
  /; iii) 8GiB swap; iv) rest ext4, mounted to /home.
  After installation, fix the EFI boot order (The EFI BootOrder was 0080 but ubuntu was listed as Boot0000*).

sudo apt-get install efibootmgr sudo efibootmgr ## display boot order information
sudo efibootmgr -o 0 ## set boot order to 0000 first
sudo restart -r now

  Edit grub configuration file /etc/default/grub (one line):

GRUB_CMDLINE_LINUX="libata.force=noncq" and then 'sudo update-grub'

  Install kernel 3.12. Thanks, kjano!
  Fix speakers (following https://bugs.launchpad.net/ubuntu/+bug/1247475). Thanks, kjano!

  (There is no need of rEFIt or rEFInd or boot-repair. I wasted hours
  trying various options of boot-repair to no avail.)

Source: lichun1668@ubuntuforums.org


How to disable sleep/hibernation key (or entirely) on Kubuntu?

I have recently faced the same issue with keyboard. It has 'Power' and 'Sleep' buttons near F12 key, which I use to toggle yakuake.

I have disabled these buttons via KDE system settings (in Kubuntu 18.04) in Shortcuts > Global Shortcuts > Power Management. Then just changed Global shortcut for 'Power Off', 'Suspend' and 'Hibernate' actions.

I think, the settings path can slightly differ in other version of KDE, or Kubuntu.


Radeon HD 6290 terrible performance on a certified laptop

update your drivers from the command line CTRL+ALT+T

install the ATI drivers in the terminal with the following command
sudo apt-get install fglrx fglrx-amdcccle

You may also need to reinstall the updates again:
sudo apt-get install fglrx-updates fglrx-amdcccle-updates

It can be a pain I know from experience. Sometimes I have had to go back the beginning by cleaning out fglrx (sudo apt-get purge fglrx*) and starting afresh.


x11vnc under Ubuntu 16.10 - wrong keyboard mapping when accessing from Windows 7

I solved the exact same problem for my Ubuntu 16.04LTS server that I connect to via VNC by using setxkbmap xx. (Adjust xx to your language. So in your case 'de')

This, however resets on reboot so you need to go to System > Preferences > Startup Applications and add a new startup programm. You can choose whatever you like for name and comment. In the command section type in setxkbmap xx (again replace xx with your language code).

The command is now executed at startup and will set your keylayout.


How to change the order on my dual booting distros

Better method is to repeat last boot selection

The reason I say this is because sometimes when you are running Windows it will wake up at 3 am, mysteriously update, reboot, finish updating and go back to sleep. If your default was Ubuntu but periodically boot into Windows and put your system to sleep the Windows updates could start but never finish.

Another reason to repeat the last boot selection is you might be working in Kubuntu for a week, then working in Mate for a week. It's easier if Grub just remembered your last boot selection and you don't have to keep overriding every boot.

Another reason to repeat the last boot selection is if you are overriding the kernel for a few days or weeks in the Advanced Options menu. Even more so if like me you have 20+ kernels (each with three options regular, safe and repair mode) could mean a lot of arrow keys.

How to get Grub to repeat last boot selection

This is fairly straight forward. Using sudo powers edit /etc/default/grub and change the following:

#GRUB_DEFAULT=0 # Rather than option #1, we'll always default to last boot choice.
GRUB_DEFAULT=saved
GRUB_SAVEDEFAULT=true

The first line you will be commenting out and right below that insert the next two lines.

Save the file and type in the terminal:

sudo update-grub

If you still want your original request

You can set the default boot selection by menu entry number where 0 is the first entry:

As above edit /etc/default/grub but this time use:

GRUB_DEFAULT=0

Remove the # at the beginning of the line to transform it from a comment into a command. Use 0 for menu first entry, 1 for second menu entry, etc.

See the link above for more details on setting a sub-menu entry as the default boot selection in Grub.


Ok, so finally after almost a week of research, I found an explanation to what was happening with my computer, after being able to use the computer for about 3 minutes before freezing, by using the log viewer, I was able to find the message: amd-vi completion-wait loop timed out, turns out that the issue was with the graphics driver seems to be specific to amd open drivers and iommu which can corrupt the EXT4 partition and because of it I was being sent over the grub recovery menu after doing a hard reset, in order to solve the issue is required to modify GRUB menu, to do this you have to be fast before the computer freezes you need to open a terminal and use any text editor to modify GRUB in my case I used nano

sudo nano /etc/default/grub

Once the file is open, we need to modify the following line from

GRUB_LINUX_CMD_LINE=""

to

GRUB_LINUX_CMD_LINE="iommu=soft"

once that is taken care of we simply save. if using nano would be Ctrl+O to save and to exit Ctrl+X.

Then we have to update grub

sudo update-grub

Finally reboot and after rebooting the problem should be resolved. Seems to be a common issue on Dell Inspiron and HP laptops with AMD APU's ,and AMD graphics cards. I hope this information is useful to others and as a side note depending on the version of linux you may have the GRUB option may also appear as follows. Keep in mind the solution is the same just add iommu=soft

GRUB_CMDLINE_LINUX=""

GRUB_CMDLINE_LINUX="iommu=soft"


The solution proposed by @sverker is good, but I suggest you change the configuration of transmission so that it changes the umask with which are written the downloaded files. The configuration is stored in

  ~/.config/transmission/settings.json

Find and change the "umask" value. Note that the json format uses decimal notation, so take a look at the table and find a value for the new umask (ex: 22)

Umask   Created Files       Created Directories
-------------------------------------------------------------
000     666 (rw-rw-rw-)     777     (rwxrwxrwx)
002     664 (rw-rw-r--)     775     (rwxrwxr-x)
022     644 (rw-r--r--)     755     (rwxr-xr-x)
027     640 (rw-r-----)     750     (rwxr-x---)
077     600 (rw-------)     700     (rwx------)
277     400 (r--------)     500     (r-x------)

then in a terminal:

#echo $((8#022))
18

Finally change the umask value to 18


Will Upgrading from Ubuntu 17.10 to Kubuntu 18.04 Erase my Data?

Updating Kubuntu to 18.04 will not destroy your data or settings. In fact if you have installed the kde-desktop package you are already using Kubuntu. However, as with every update it is prudent to take a backup before updating.


There's no such feature to enable in Ubuntu. See this wishlist bug report about the feature request (it's from 2005...).


PyGTK 2 GTK 2 alternative to STYLE_CLASS_PRIMARY_TOOLBAR


The solution I've found is to download Debian's version of this package:

https://packages.debian.org/en/sid/all/ttf-mscorefonts-installer/download

Then the fonts install without any problems! Hooray, and curse Ubuntu for failing to create a functional package when they could've just copied Debian's version and had it work!


Retrieving status code when using pipelines

The solution is to set 'pipefail' option before running the command.

http://www.gnu.org/software/bash/manual/bashref.html

  If pipefail is enabled, the pipeline's return status is the value of
  the last (rightmost) command to exit with a non-zero status, or zero
  if all commands exit successfully.

So now my script looks like the following:

set -o pipefail
cd SomeDir && (sh -c "$CMD_STR") 2>&1 | some_filtering | sed -u -e ....
exit $?


system76 drivers information and updates

I am a system76 owner. The sys76 driver installs a ppa in your repositories, so as long as you update your system it should also be updated (I believe we are now in version 3.0.x). If you downloaded the deb file from their website and installed it then you have the drivers running. In case of doubt you can always open them and click in restore defaults, which will bring the drivers to the same config as to when you bought your machine.This is also the procedure when you perform a fresh ubuntu install or upgrade in your system.

You can open your dash and type system76. If you see a black sys76 logo then you have the drivers installed.

Other than that syst76 drivers works just fine and are transparent to the user. They only had a small incompatibility with Ubuntu tweak, but I reported the bug to UTweak devs and they fixed it.

enjoy your sys76 beauty !!


Java program keeps writing to disk when laptop is running on battery

JabRef is a reference management software that uses BibTeX as its native format. JabRef provides an easy-to-use interface for editing BibTeX files, for importing data from online scientific databases, and for managing and searching BibTeX files.

I have no idea why it is writing to file. However, this comamnd:

find . -type d -name .svn -prune -o -cmin -0.083 -type f -print

will find all files modified in the last 5 seconds. Try running that to see what's changing?

(Browser cache files show up there, so make sure you don't use any other applications just before you run it).


No. Those APUs are not even from the same family. The A6-5400B is a Trinity family processor, and the A8-6500B is a Richland one. It is very likely that they need different drivers.


How to open a new tab with new terminator process?

Ctrl+Shift+E and Ctrl+Shift+O are helpful shortcuts in terminator.
They open a new instance adjacent to the one you have, but without it being another window.

Use Ctrl+Shift+W to close it.


How to install docker community on Ubuntu 20.04 LTS?

Update: As of 3 AM on May 15, the official Docker repository is available for Ubuntu Focal, so you can follow the installation guide on your Ubuntu to get Docker up and running.

Another option is to install Ubuntu-provided version of Docker:

sudo apt install docker.io

Long ago there were significant backlashes against this because the package docker.io from upstream (Debian) was too old - this is no longer the case. For Focal, docker.io is currently (Apr 24, 2020) at 19.03.8-0ubuntu1, which is satisfactorily new for the majority of Docker workloads.

Don't install docker by mistake - it used to be the system tray application, which has since been replaced by gnome-shell-extension-ubuntu-dock. The docker package can be safely removed had you installed it accidentally.


Current Situation

The ARB was a session topic (Tues 6th Sept) in the recent Ubuntu App-Developers Week (5th-9th Sept).

Summarising the IRC classroom (transcribed as the lesson unfolded hence the brevity and that it reflects the order of the lesson!):

In future, just like paid for applications, free/libre apps will be submitted through the MyApps portal (see blueprint below)
The ARB is a 4 community member group responsible to allow small standalone apps into a stable distro (i.e. has been released)
Board offers assistance for packaging and ensures apps meets standard ubuntu packaging rules.
Two apps have gone through the process - 'News' and 'Suspended Sentence' - both made available to Maverick (10.10)
Confirmed that Launchpad will be dropped in favour of the MyApps portal.
Ways to get free/libre apps into ubuntu - through debian and sync to ubuntu before feature freeze, via a backport or through the ARB
Ways to get paid for apps into ubuntu - Canonical partner apps (case be case basis) or via Purchase Apps through Software Center
If submitted via ARB - you are the maintainer and are responsible for submitting for every new release of Ubuntu.  Hence the preference for packages from upstream since they are automatically sync'd.
ARB accepted apps are added to extras.ubuntu.com repository
If there is a critical bug or security issue in an ARB package a board member will attempt to fix on a best effort basis - then contact the maintainer.  Where the maintainer is not responsive - app will be removed and an empty package is pushed.
ARB members recognise the length review process.  Looking to use Arkose to containerise apps - similar to Android app with a list of actions that an app is allowed to perform.  Should allow faster review without having to do a full code-review (this is the key reason for the current length delay).  It is also the reason cannot accept complex apps or apps written in certain languages
Also looking to produce a debhelper script to automatically package a app to meet ARB rules.
Long-term - submission via MyApps as tarball of source code with a build recipe.  This will generate a Arkose or Apparmor profile etc.  ARB process should be then reviewed in hours (rather than as now weeks) before being pushed to Software Center.

ARB Blueprint

The Oneiric ARB blueprint was raised in May this year and is targeted for Oneiric.

The review tag-line is
"We want to socialize how people can get their apps in Ubuntu, and we want to review how well the ARB is working.

Which things work well?
Which are the areas that need improvement?"

Some progress has been made in achieving the blue-print's goals:

New app-review mailing list (app-review-board@lists.ubuntu.com)
checklist of steps for uploading apps to the live extras repository
Progress towards talking towards stakeholders on how to simplify the process on merging and incorporating changes
Preparing and article for publishing on Ubuntu Planet
New beta web-page for developers to guide through the process of submitting (although currently for commercial developers)

As the notes in the blue-print indicate - Canonical's own developers need "motivating" to get the ARB process working.  There is talk of recruiting someone to primarily to move the process forward.

Time-frame

So to answer the question - the ARB is working for Commercial developers (just), with plans for the ARB to be fully working within Oneiric timeframes.

You could however speculate, given the number of outstanding items in the blueprint - maybe 12.04 would be a more safer bet.


How do I prepare my music for syncing with a cloud service?

Testing with Google Music, I realized that it's all about the ID3 tag. Whatever you put there, Google uses it. it doesn't matter what the name of your files are, it's all about the ID3.
Even if you have songs where the Artist and Album Artist are different, Google will display both correctly without any confusion.
I suggest that you organize your music exactly the way you want it. It seems that Google is following the ID3 standard pretty good, so as long as you also follow that standard your fine.

I also have a similar structure and I'm pretty obsessed on how my music should be organized, not only file names, but also the metadata.

I use two programs to achieve this: for a few changes to a few files, use kid3-qt. It doesn't have any dependencies on kde and it's the best ID3 tag software in Ubuntu.
You have many options to tag your data from the file name or vice-versa. You can see all the ID3 tags (because software as easytag hide the ones they don't know).
You can even select the version of ID3 and text encoding, so you're whole collection is standard.
I used ID3v2.4 with UTF8.
You can install kid3-qt here: http://apt.ubuntu.com/p/kid3-qt

For your case, I recommend using a script and use eyeD3 for it. It uses python and has amazing capabilities, and can access almost any tag in ID3.
You can use eyeD3 directly from the command-line but I find it more powerful when you create a script with python.
You can install eyeD3 by clicking here: http://apt.ubuntu.com/p/eyed3

The webpage has sample python scripts on how to use it in a script.
I'm posting an example script that puts all the artist, album, track# and title in the ID3 following the format of your music directory.
It saves the tag in ID3v2.4 with UTF8 encoding
You should run the script in your root music folder (/shared/music/).

#! /usr/bin/python
import fnmatch
import os
import eyeD3

audiofile = eyeD3.Tag()

for root, dirnames, filenames in os.walk('.'):

    # Linking of ID3 tags and fixing Images
    for file in fnmatch.filter(filenames, '*.mp3'):

        # Splits the directory name
        dirSplit = root.split('/')
        fileSplit = file.split(' ',1)

        # Linking of tags
        audiofile.link(root + "/" + file, eyeD3.ID3_V2)

        audiofile.setTextEncoding(eyeD3.UTF_8_ENCODING)

        print fileSplit[0]

        # Setting the Artist, album, number and title
        audiofile.setArtist(dirSplit[1])
        audiofile.setAlbum(dirSplit[2])
        audiofile.setTrackNum([fileSplit[0]])
        audiofile.setTitle(fileSplit[1])

        audiofile.do_tdtg = 0     # set to not use the TDTG frame
        audiofile.update(eyeD3.ID3_V2_4,0)

You can use this script as a starting point and maybe read the full filename and directory and use it to tag each one of your file exactly the way you want.
If you're not as obsessive as I am with metadata, kid3-qt with the option to set the metadata as the file structure (and you can set the structure exactly how you want it) will work perfectly.
BTW, you can also use eyeD3 to batch remove ID3V1.1 which I find it extremely annoying since it's such an old standard that lacks many features and people and devices should stop using it completely.


Open terminal and download this file:

wget http://dl.dropbox.com/u/11876059/DPO_RT3290_LinuxSTA_V2600_20120508.tar.gz

Now extract the file:

tar -xvf DPO_RT3290_LinuxSTA_V2600_20120508.tar.gz

Enter the directory:

cd ~/DPO_RT3290_LinuxSTA_V2600_20120508

Now make and install the file:

make
sudo make install

Last step is to activate the driver

sudo modprobe rt3290sta

A reboot may be required after install is complete.


Take a look here. This does not look very promising - so possibly there are no drivers.


how to copy only pdf from folders and subfolders?

You can use cp with bash's globstar enabled (see this U&L question on recursive globs):

shopt -s globstar
cp some/folder/**/*.pdf target/folder

Or, find:

find some/folder -iname '*.pdf' -exec cp -t target/folder {} +


Why is apt-get update not picking up recent versions of the package I need?

To make sure that you are as up-to-date as you can be you should run:

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

But if you still do not get the versions of the packages you need, then you will just have to face the fact that the developers of those packages didn't make them available for your version of Ubuntu and that you should upgrade (do-release-upgrade) to a later version in order to receive those versions. You could also find the source code for the relevant versions and then manually compile from source.


Look through a file and print text from specific lines

Here's a sed approach:

$ sed -nE '1s/.{11}(.{8}).*/\1/p; 3s/.{3}(.{4}).*/\1/p' file
Ethernet
t6 a

Explanation

The -n suppresses normal output (normal is to print every input line) so that it only prints when told to. The -E enables extended regular expressions.

The sed script has two commands, both using the substitution operator (s/original/replacement/). The 1s/.{11}(.{8}).*/\1/p will only run on the 1st line (that's what the 1s does), and will match the 1st 11 characters of the line (.{11}), then it captures the next 8 ((.{8}), the parentheses are a "capture group") and then everything else until the end of the line (.*). All this is replaced with whatever was in the capture group (\1; if there were a second capture group, it would be \2 etc.). Finally, the p at the end (s/foo/bar/p) causes the line to be printed after the substitution has been made. This results in only the target 8 characters being output.

The second command is the same general idea except that it will only run on the 3rd line (3s) and will keep the 4 characters starting from the 4th.

You could also do the same thing with perl:

$ perl -ne 'if($.==1){s/.{11}(.{8}).*/\1/}
            elsif($.==3){s/.{3}(.{4}).*/\1/}
            else{next}; print; ' file
Ethernet
t6 a

Explanation

The -ne means "read the input file line by line and apply the script given by -e to each line. The script is the same basic idea as before. The $. variable holds the current line number so we check if the line number is either 1 or 3 and, if so, run the substitution, else skip. Therefore the print will only be run for those two lines since all others will be skipped.

Of course, this is Perl, so TIMTOWTDI:

$ perl -F"" -lane '$. == 1 && print @F[11..19]; $.==3 && print @F[3..6]' file
Ethernet
t6 a

Explanation

Here, the -a means "split each input line on the character given by -F and save as the array @F. Since the character given is empty, this will save each character of the input line as an element in @F. Then, we print elements 11-19 (arrays start counting at 0) for the 1st line and 3-7 for the 3rd.


Failed to use ICMP under wine3.11 (staging)

Having a similar error when running wine ping.exe www.google.ca, what worked for me :

Set cap has to be on the file, not on the symlink: sudo setcap cap_net_raw+epi /opt/wine-stable/bin/wine-preloader
sudo ln -s /opt/wine-stable/lib/libwine.so.1 /usr/lib/libwine.so.1

This got wine ping.exe www.google.ca to work, but not my install of Among Us :-(


Switch to workspace left/right/above/below keyboard shortcuts do not work

The compiz plugin responsible for viewport switching is Desktop Wall . You can check if it is enabled with  this command in terminal :

dconf read /org/compiz/profiles/unity/plugins/core/active-plugins | grep --color -i "wall"

If you don't have the word wall highlighted there, you will need to have it enabled. It can be done via dconf however , I recommend installing CompizConfig Settings Manager ( with sudo apt-get install compizconfig-settings-manager ) and making sure Desktop Wall plugin is checked:


Fixed by changing localip from 192.168.1.0 to 192.168.1.50 (my servers ip) in /etc/pptpd.conf


part of the screen (Desktop) is black [Pic inside] (happens with 17.10s on Atom n270 laptops)

Moving this to an answer.

Bug report: https://bugs.launchpad.net/ubuntu/+source/linux/+bug/1724639

Symptom

Upgrading Ubuntu to Linux 4.13 Kernel or higher that have an Intel based chipset may result in portions of the screen not being drawn properly (around 80%), leaving garbled or black portions that are not readable. Oddly, mouse cursor is drawn properly on all parts of the screen.

Work Around

Access the system via Command Line to make change (via root) to /etc/default/grub file.

If possible, connect via SSH. If not, hold down Left Shift key during boot to enter GRUB menu, select alternate kernel to load (in my case 4.10).

Run:

sudo cp /etc/default/grub /etc/default/grub.old

This creates a backup of your grub file.

Edit grub as root, I use nano.

sudo nano /etc/default/grub

Look for or add the following line:

GRUB_GFXPAYLOAD_LINUX=text

I also uncommented and updated the GFX Mode (will vary on your device):

GRUB_GFXMODE=800x600,1024x600

Save changes and perform an update to grub:

sudo update-grub

You can now reboot and the desktop should load with proper settings, being completely visible.

GRUB Boot Commands

If you cannot SSH, nor can you select an alternate kernel, there is another option. In the GRUB boot menu, press e to edit the commands. Add the following command to end of the command list:

set gfxpayload=text

Ubuntu should boot and you can then edit the grub file as instructed above.