To boot straight to the command line you need to modify GRUB.

Edit grub config file sudo nano /etc/default/grub
Change the option GRUB_CMDLINE_LINUX_DEFAULT="quiet splash" to read GRUB_CMDLINE_LINUX_DEFAULT="text"
Save the file and exit CTRL+X, press Y and then ENTER
Type sudo update-grub from the terminal to update the GRUB bootloader with your new configuration.
Reboot and you should be presented with a terminal instead of X.
Type startx to load the default shell.


Nothing is wrong.
Your sda3 is a part of LVM volume group. 200GB of that volume group is assigned to a logical volume which is mounted as your /. You can expand logical volume using unused space in a volume group.
Have a look at output of these commands
sudo pvs, sudo vgs, sudo lvs. pvs will show you that sda3 belongs to a VG ubuntu-vg. vgs will show those 690GB available and 200 GB allocated for that VG. And lvs will show you have a logical volume ubuntu-lv allocated from VG ubuntu-vg.
df is showing actual filesystem allocation on your ubuntu-lv logical volume.


Can I get "--no-install-recommends" behavior with a setting in the Debian "control" file?

To accomplish the same thing on our Trusty LTS servers, I put these in /etc/apt/apt.conf

APT::Install-Recommends "0";

Similarly, for "suggested" packages

APT::Install-Suggests "0";


Package System is broken - I need to fix... can't add or remove apps

Dan,

I had Package Catalog error. My problem was similar but not the same as yours, package error, typo error in terminal causing typo error in PPA, ending in update manager and ubuntu software center could not be operated. Asked to report, but no way out to fix.

Then I found this link and finally succeeded to repair the damage. Now update manager and software center is up and running again:

http://www.liberiangeek.net/2012/04/fix-duplicate-sources-list-entry-errors-in-ubuntu-12-04-precise-pangolin/

Basically we learned there to use terminal, sudo, which is powerful; how to list and edit damaged or erroneous text.

In my case, the whole problem was caused by typo error in PPA. So with the guidance of above website, I was able in terminal to locate the erroneous text in PPA (since the Update Manager at least told me, which line which address was wrong. Opened up gedit and delete it. Than it was fixed. I was trying hud.

In your case, it is more complicated. Since new gimp may have done more damage. You may have to remove PPA in Update Manger Setting. Read carefully from any error report from your system, then locate and edit it if possible.

Until there is a better help, I hope my answer can help you.

Good luck.

Toni


How to detect USB flash drive is unplugged

I don't know much about nodeJS (I am a C++ guy) but you can check the presence of drive in /dev/ folder.

When I plugged in my pen drive, I get file /dev/sdc. If I unplugged it then  /dev/sdc vanishes .

Here is some more info about How to check if a file exists in a shell script


Select Recovery mode during boot then Drop to root shell prompt.

From there, run (I assume rohan is your login name)

mount -o rw,remount /  #remount / filesystem in read-write mode
passwd rohan

Then enter your password and press Ctrl+D. Now you should be able to login.


After bringing up openbox, "aplay -l" requires sudo. Help

Ok. Finally fixed the problem.

It appears openbox removes user acl from /dev/snd/*.

Before I start openbox, if I run the following command, I see my username with "rw" permissions.

$ sudo getfacl /dev/snd/*

However, if I run the same command from openbox terminal, my username is not listed at all.

Fortunately, group "audio" is listed in both cases with "rw" permissions.

You just add your username to "audio" group and restart openbox. You are good to go.

$ sudo usermod -a -G audio peter

Hope you find this useful.

Regards,
Peter


You can use the at command (not installed by default on Ubuntu 20.04). It allows you to execute a command at a specific time. You could for example have a Zenity dialog pop up to serve as an alarm.


What is happening? I/O error, dev sda, sector 545868115

You need to check and see if your disks are indeed failing. There are command line tools for monitoring SMART data (which is data that the hd reports about it's own health).

sudo apt-get install smartmontools gsmartcontrol

Gsmartcontrol is a gui version of the same tool, and is very easy to use. Select the disk and run a short or long test in addition to viewing any errors the hd is reporting.

To run via the the command line, do the following

sudo smartctl -i /dev/sda

Make sure SMART is turned on. If not,

sudo smartctl -s on /dev/sda

Finally, run

sudo smartctl -a /dev/sda

or if it's a serial ata drive.

sudo smartctl -a -d ata /dev/sda

See this link for more info about smartmontools.
http://sourceforge.net/apps/trac/smartmontools/wiki/TocDoc


Just after some quick research, it seems to be a gnome-shell feature as you listed your shell as Xfce so I looked at why I had it and my current shell and then what was different about your Ubuntu setup and came down to the shell.
"shutdown delay is part of gnome-shell, the timeout is hard-coded somewhere."
Try checking for:
/etc/acpi/powerbtn.sh

Important part:
# If the current X console user is running a power management daemon that
# handles suspend/resume requests, let them handle policy This is effectively
# the same as 'acpi-support's '/usr/share/acpi-support/policy-funcs' file.

[ -r /usr/share/acpi-support/power-funcs ] && getXconsole
PMS="gnome-settings-daemon kpowersave xfce4-power-manager"
PMS="$PMS guidance-power-manager.py dalston-power-applet"
PMS="$PMS mate-settings-daemon"
PMS="$PMS unity-settings-daemon"
Your might have more options (I checked 16.04.4 server ) It has several options in the
to test for different desktops. Assuming you are using systemd: systemd-login uses
/etc/systemd/logind.conf for its settings.

[Login]
#NAutoVTs=6
#ReserveVT=6
#KillUserProcesses=no
#KillOnlyUsers=
#KillExcludeUsers=root
#InhibitDelayMaxSec=5
#HandlePowerKey=poweroff
#HandleSuspendKey=suspend
#HandleHibernateKey=hibernate
#HandleLidSwitch=suspend
#HandleLidSwitchDocked=ignore
#PowerKeyIgnoreInhibited=no
#SuspendKeyIgnoreInhibited=no
#HibernateKeyIgnoreInhibited=no
#LidSwitchIgnoreInhibited=yes
#HoldoffTimeoutSec=30s
#IdleAction=ignore
#IdleActionSec=30min
#RuntimeDirectorySize=10%
#RemoveIPC=yes
#UserTasksMax=12288

So I would expect this one:
InhibitDelayMaxSec=

Specifies the maximum time a system shutdown or
sleep request is delayed due to an inhibitor lock of type "delay"
being active before the inhibitor is ignored and the operation
executes anyway. Defaults to 5.
Hope this helps.


How can I make GRUB boot by default instead of Windows Boot Manger

From Ubuntu run

efibootmgr -v

to see all the entries in the boot order.
Then use efibootmgr with the -o switch to reorder them the way you want, with Ubuntu first.  See more detail in the man page:

man efibootmgr


mv: cannot move 'DVWA-master' to '/var/www/html/DVWA-master': Permission denied

The meaning of the error is:

The user which execute the mv command doesn't have write permission to the folder /var/www/html

If you need to move a file or a folder to the /var/www/html/ folder, and you have sudo permissions, you'll be able to do it using:

sudo mv DVWA-master /var/www/html


No there really are not advantages unless you want to have fancy desktop effects like the cube as shown here, your computer will use a lot less resources with 3d effects turned off.

HD video is just a better quality picture for the pleasure of your viewing but if you do not care about better picture quality then there is no advantage to HD video, it is actually hard to tell the difference on my monitor between the two.


Universal Access has a "large text" option.  Additionally, there's a universal keyboard shortcut that inflates or deflates text in most applications.

Hold CTRL and scroll up/down or hold CTRL and press + or -.


It does not make perfect sense because you have said, "supposed to do," as though it is your job. Are you setting up a real mail server within a virtual machine? I take the  clues to mean that you need the virtual server to have a mail system, but that the virtual server is not a full-time "real" SMTP server. (Otherwise you would know already, I guess wildly.)

With that in mind, you would need the "Internet with smarthost" option. Essentially, the big reason is that well-configured SMTP servers around the world all use anti-spam measures; and, among these measures is the rejection of all SMTP connections that come from known pools of dynamic addresses (that spammers love to use). Therefore, you need to use another SMTP server for outgoing mail.

If you want to stick with Postfix for this, it is easy to do: just search for Ubuntu articles related to setting up Postfix as a smarthost. However, if you have no particular affinity for one system over another, there is a package designed just for this: ssmtp. So, if you want to give it a spin, then just install ssmtp.

(Caution: the action below will remove postfix or sendmail.)

sudo apt-get install ssmtp

Then edit the ssmtp configuration file:

sudo -e /etc/ssmtp/ssmtp.conf

I do not know details of an SMTP server available to you, so I will give a GMail example:

Root=your_email@gmail.com
Mailhub=smtp.gmail.com:465
RewriteDomain=gmail.com
AuthUser=your_gmail_username # me@gmail.com
AuthPass=your_gmail_password
FromLineOverride=Yes
UseTLS=Yes

Now your system will send mail the way you want. You can use localhost as a mail server in your GUI applications for the outgoing SMTP server. But what about the CLI? Use the mail software:

sudo apt-get install heirloom-mailx

Now you can also use mail from the command line with something like:

mail < filename.ascii someone@somewhere.com -s "My File"

Or, if you use mail to compose a message you type (mail someone@somewhere.com), then finish off the mail message with a single period on a blank line. A better CLI mail client is mutt or pine.

Is this the angle you needed? If so, was it successful?


You can create a new .desktop file. Let's call it Computer.desktop
Now, use Gedit or some editor and enter the following in the file:

[Desktop Entry]
Name=Computer
Comment=Access and organize files
Keywords=folder;manager;explore;disk;filesystem;
Exec=nautilus --new-window /
Icon=system
Terminal=false
Type=Application
StartupNotify=true
OnlyShowIn=GNOME;Unity;
Categories=GNOME;GTK;Utility;
MimeType=inode/directory;application/x-gnome-saved-search;
Actions=Window;

Save the file. Now right click on the file, choose Properties->Permissions
Check the box to Allow executing the file as a program. And you have yourself a launcher for Computer.
If you want to change the location where the window starts, just change the / on line to the location where you want it to open.


Assuming you're trying to change serveradmin's name to node1admin, use this instead:

usermod -l node1admin -m -d /home/node1admin serveradmin

In particular, the name of the user account you're operating on should be last, as the general syntax for usermod is:

usermod [options] LOGIN


How do I get gnome-do to run terminal/bash commands?

You need the GNOME Terminal plugin.

Follow the link for a description of how to use it.


I am still unclear on why I experienced this issue, but it seems a missing grub /boot/grub/menu.lst file was causing apt / dpkg updates to fail.  So I created an empty file.

sudo touch /boot/grub/menu.lst
sudo update-grub2

All good.  Then proceed with updating the system:

sudo apt update
sudo apt upgrade
sudo apt autoremove --purge

Along the way, there will be a warning that the current menu.lst file is different than the package maintainer's version.  Select the option to install the package maintainer's version, and then the rest of the update and cleanup completes successfully.  Will see how the next kernel upgrade goes, but problem is solved for now.

Thank you to all who contributed suggestions and help!


Error: "unable to locate package network-manager-vpnc-gui"

The correct package candidates for the application vpnc are network-manager-vpnc & vpnc. And from the question it also seemed like you need a gui so, the package for that will be network-manager-vpnc-gnome.

To install your desired application, type in the command:

sudo apt-get update; sudo apt-get install vpnc network-manager-vpnc network-manager-vpnc-gnome


LXD to create/use a Windows 2008 R2 or better server

I'm unable to find anything about running windows in an LXC container.  However, there is a windows client for managing LXD, which might be what you're seeing?

  The goal of LXC is to create an environment as close as possible to a
  standard Linux installation but without the need for a separate
  kernel.

For this reason, I don't think you're going to see any Windows containers running on LXC/LXD, ever.  It goes against the idea of a lightweight, use the resources direct, mentality that LXC stands for.


Airlink101 model #AWLL6075 finds network but drops packets in Ubuntu 12.10

Based on the information provided IMHO it's RF interference.
This may be similar although the brand of wifi is different.
See if this link helps you and let us know!Rtl8187 wireless card drops signal within seconds


The answer is in the notice: Manage keyring files in trusted.gpg.d instead
So
cd /etc/apt/trusted.gpg.d/
rm {file}

where {file} needs to be replaced by the filename (7D8D08F6?) you want removed.


empathy resets my google account after restart

Try the following steps:

Close Empathy (completely exit)
Open "Passwords and Encryption Keys", a.k.a. Seahorse
Delete the stored passwords for my Gtalk account. For some reason there were two entries, one of which had the current password and the other had the old password. Neither was editable; you should view and delete them.
Close Seahorse and reopen Empathy
Enter your password in Empathy when asked


How to enter BIOS on UEFI capable Lenovo Z50? (Novo button)

This isn't really an Ubuntu related question though.

According to the manual on page 7 (actually 13 in the document):

  Shut down the computer.
  Press the Novo button and then select BIOS Setup.

On this model it is a small button near the power connector:


Windows use own title bars and global title bar is still here

In order to remove both the PPA And the packages it may have installed, you first need PPA-purge in order to do so, to install PPA-purge:

  sudo apt-get install ppa-purge

After you installed it, you'll need to get the PPA name(s) you added and run:

  sudo ppa-purge ppa/name

In the case of "Gnome3 Team" PPA, it would be like this:

  sudo ppa-purge ppa:gnome3-team/gnome3


How to change the time server in ubuntu 12.04 LTS without installing the `ntp` package

There are two main ways to set the current time via NTP: ntpdate is a command-line tool that, when run, fetches the current time from an NTP server and sets the system time accordingly. ntpd is the NTP daemon which runs in the background and continuously adjusts the time slightly.

For servers, production environments and such, ntpd is better. However, for normal desktop PCs and end users, ntpdate is perfectly fine. In fact, when you install Ubuntu Desktop, it comes with ntpdate preinstalled, but not ntpd.

When you select "Automatically from the Internet" in your Ubuntu system settings as shown in your screenshot above, what happens is that at each boot Ubuntu will fetch the current time using ntpdate from ntp.ubuntu.com. If you want to change that server, you can edit the value of NTPSERVERS in /etc/default/ntpdate.

The alternative is to install ntpd (in package ntp), and configure that via /etc/ntp.conf. This is explained here in more detail:

https://help.ubuntu.com/lts/serverguide/NTP.html

However, if you do not want to install any additional packages and simply change the default server for ntpdate which comes pre-installed with Ubuntu, simply edit /etc/default/ntpdate.


My understanding is that you see differences, because the ICC profile you checked, is a correction profile. I use one I found on the Net, to fix my poorly calibrated DELL Inspiron LCD screen. Without it, I have issue with unnoticeable contrast. As the profile correct/fix the colors, the to/from sRGB tabs, shows different results.

The sRGB profile, is more and more the default profile, that is, it is assumed to be the profile of most of machines (computers, smart‑phone, etc) and even the default profile for images without a profile specified (and if the profile specified is sRGB, then no color correction should be applied before rendering to the screen which is supposed to be sRGB).

As output to screen is supposed to be to sRGB (hence, no RGB correction if it also is from sRGB), if instead of any profile, you open an sRGB profile, you will most likely see no or very little differences in both pictures.

You may check it downloading the profile provided here: sRGB Appearance profile (color.org). If you open-it with the color profile installer (don't worry, it will not install it unless you ask it to), click the “Show details” button then go to the to/from sRGB tabs, you will see both images are near to be the same (I can only see little differences on the water on the left).

In short, unless the profile you are inspecting, is a version of an sRGB profile (there are multiple versions), you will see a difference.


Your swap partition is not being used because it is not correctly announced in your configuration file /etc/fstab. Your swap file is /dev/sda3 with UUID "9c1fc3a8-ef4a-451a-9e8f-7f07dc18db8d". The reference to it in your fstab file is broken, because it still lists the UUID before the change.

To solve the issue, edit your fstab file. I provide instructions that may or may not be too detailed for you depending on your experience.

Open your /etc/fstab configuration file as root for editing:

sudo nano /etc/fstab

In the line for swap, replace the existing UUID by the correct one, i.e., the one provided by the sudo blkid command.
Replace:

UUID=f4bb47fb-7475-44ba-9e20-b8f931b22c9b none    swap    sw     0       0

by

UUID=9c1fc3a8-ef4a-451a-9e8f-7f07dc18db8d none   swap    sw     0       0

(only the UUID number is being changed here.
Save the file and exit. Press Ctrl+S (this saves) then Ctrl+X (this exits nano)

You can quickly check if all is good without rebooting:

sudo mount -a

This re-executes the fstab file. There shouldbe no output from this command. Any output indicates an error. If there is no output, verify whether your swap is active

free -m

or

swapon -s


where can i download geforce gt425m driver?

You can try to run jockey (just type jockey in terminal) to see if it will work.


Changes on Virtual Host Definition have no effect - Apache2

The browser you used has correctly interpreted a Redirect Permanent and thus automatically redirects from http://mysite.example.com to https://mysite.example.com . In Firefox, you can clean this cache by removing all the history for mysite.example.com.

As you can't connect to your https-enabled website: is port 443 (HTTPS) open on the firewall? Is Apache listening on that port (it should normally do that by default)?


Dell Latitude e6400 on Ubuntu 14.04 not working after resume from suspend

Finally I've fixed the issue by installing proprietary NVIDIA driver. Just had to select from

System Setings > Software & Updates > Additional Drivers > Use NVIDIA binary driver - version 331.38 from nvidia-331 (proprietary, tested)

So, resume from suspend on my DELL E6400 is working as expected.


You will need to remove "fresh" (and the PPA you used if you used a PPA) and then install the "stable" (or "still") version. If you use the normal installation methods.

"Stable" also has a different version than the version used in Ubuntu. We use the stable version as released when Ubuntu features got frozen; so a few days/weeks before the final release.

If you install both from source you can switch. Easy setup:

put each of the Libreoffices into their own directory in /opt/
For instance ...

/opt/libreoffice-fresh/
/opt/libreoffice-stable/

(Add a versionnumber to the directory if you want more than these 2)
Create a symlink from the executable to

/opt/libreoffice

and use that to start Libreoffice (ie. add this to your PATH or connect it to your normal libreoffice executable.
Switching between the 2 is as simple as pointing the symlink to the other version.

As an alternative: Libreoffice also comes in snap versions. That way you can install 1 using "snap" and the other through the normal channel.

  Running the LibreOffice version installed as snap

  After installing, the version of LibreOffice installed via snap can be started with the command:

/snap/bin/libreoffice

  Omitting the full path likely starts the version of LibreOffice installed by the distribution instead, if there is one.

Renaming the snap directory would allow for installing more than 1.


Making mirror://mirrors.ubuntu.com highly available

Personally I think that the best way to select the best Ubuntu repositories mirrors is to use the GUI method:

Now, to improve the situation described in the question, you need to set some rules somehow. These rules must to act on mirrors.ubuntu.com. I can suggest some rules as follow:

make a list of best/preferred mirrors; there are a lot of mirrors as you can see here, here or here
if you found a good mirror, add it to the list
if a mirror was down or broken sometimes, it means that is not a good mirror and you should remove it from the list
you can use netselect, apt-spy or apt-fast
and others, depending on your requirements.

Next, to see how you can work around, I can give you a method described step by step with three bash scripts examples. First script use the mirrors from the country you are in at the moment instead of mirrors.ubuntu.com/mirrors.txt (for each country there is a text file with mirrors asociated; see http://mirrors.ubuntu.com/):

In a terminal run mkdir -p bin - this command will make a bin directory in your home folder if you don't already have it.
After run gedit ~/bin/change_sources.sh - this will create the new file change_sources.sh in gedit.
Copy and paste one of the next scripts in the new created file:

#!/bin/bash

export DISPLAY=:0

if ! [ "`ping -c 1 google.com`" ]; then
    notify-send "No internet connection"
    exit 0
fi

ip=$(curl -s 'http://ipecho.net/plain')
country=$(curl -s 'http://geoiplookup.net/geoapi.php?output=countrycode' \
    | awk '{ print toupper($2) }')
release=$(lsb_release -sc)

file="/etc/apt/sources.list"
old_file="/etc/apt/sources.list.old"

line=$(head -n 1 $file)
new_line="## Ubuntu Repos for $ip"

if [ "$line" == "$new_line" ] ; then
    exit 0
fi

cp -f $file $old_file

printf "$new_line
deb mirror://mirrors.ubuntu.com/$country.txt $release main restricted universe multiverse
deb mirror://mirrors.ubuntu.com/$country.txt $release-updates main restricted universe multiverse
deb mirror://mirrors.ubuntu.com/$country.txt $release-backports main restricted universe multiverse
deb mirror://mirrors.ubuntu.com/$country.txt $release-security main restricted universe multiverse
" > $file

notify-send "$file has been changed" "The old file has been put in $old_file"

exit 0

or, something similar to what can be found at http://repogen.simplylinux.ch/:

#!/bin/bash

export DISPLAY=:0

if ! [ "`ping -c 1 google.com`" ]; then
    notify-send "No internet connection"
    exit 0
fi

ip=$(curl -s 'http://ipecho.net/plain')
country=$(curl -s 'http://geoiplookup.net/geoapi.php?output=countrycode' \
    | awk '{ print tolower($2) }')
release=$(lsb_release -sc)

file="/etc/apt/sources.list"
old_file="/etc/apt/sources.list.old"

line=$(head -n 1 $file)
new_line="## Ubuntu Main Repos for $ip"

if [ "$line" == "$new_line" ] ; then
    exit 0
fi

cp -f $file $old_file

printf "$new_line
deb http://$country.archive.ubuntu.com/ubuntu/ $release main restricted universe  multiverse
deb-src http://$country.archive.ubuntu.com/ubuntu/ $release main restricted universe multiverse

## Ubuntu Update Repos for $ip
deb http://$country.archive.ubuntu.com/ubuntu/ $release-security main restricted universe multiverse
deb http://$country.archive.ubuntu.com/ubuntu/ $release-updates main restricted universe multiverse
deb-src http://$country.archive.ubuntu.com/ubuntu/ $release-security main restricted universe multiverse
deb-src http://$country.archive.ubuntu.com/ubuntu/ $release-updates main restricted universe multiverse
" > $file

notify-send "$file has been changed" "The old file has been put in $old_file"

exit 0

or, a script using netselect (download from here, install instructions here) as izx explained verry nice in this answer:

#!/bin/bash

export DISPLAY=:0

if ! [ "`ping -c 1 google.com`" ]; then
    notify-send "No internet connection"
    exit 0
fi

url=$(netselect \
    `wget -q -O- https://launchpad.net/ubuntu/+archivemirrors \
        | grep -P -B8 "statusUP|statusSIX" \
        | grep -o -P "(f|ht)tp.*\"" \
        | tr '"\n' '  '` \
    | awk '{print $2}')
release=$(lsb_release -sc)

if [ "$url" == "" ] ; then
    exit 0
fi

file="/etc/apt/sources.list"
old_file="/etc/apt/sources.list.old"

cp -f $file $old_file

printf "## Ubuntu Best Repos
deb http://extras.ubuntu.com/ubuntu $release main
deb-src http://extras.ubuntu.com/ubuntu $release main
deb $url $release main universe restricted multiverse
deb http://security.ubuntu.com/ubuntu/ $release-security restricted universe main multiverse
deb $url $release-updates restricted universe main multiverse
" > $file

notify-send "$file has been changed" "The old file has been put in $old_file"

exit 0

Save the file and close it.
Go back into terminal and run: chmod +x ~/bin/change_sources.sh - to grant execute access for the script.
Just for test, to run your new script, type in terminal ~/bin/change_sources.sh. It will give you an error, because you don't have the right to edit /etc/apt/sources.list. So, use sudo ~/bin/change_sources.sh
Edit the root user's crontab file using sudo crontab -e command and add the following line:

@hourly /home/$USER/bin/change_sources.sh
#change $USER with your user name

I have set the cron job for every hour, but you can change as you wish or as you think is better. See http://en.wikipedia.org/wiki/Cron in this sense.
Save the file and check the new crontab entry with sudo crontab -l.

  NOTE: To revert the changes made by this script, delete the cron job
  and follow the indications from the picture above or use next command in terminal:

cp -f /etc/apt/sources.list.bak /etc/apt/sources.list

From now, the file will be dynamically changed after it finds a change of the IP address.

It may not be the best solution, but, in my opinion, a good solution can be given in this way like in the scripts above.


What are the meaning of Ubuntu code-names?

They don't carry any particular meaning. They came about as a joke between Mark Shuttleworth ( founder of Canonical, the company behind Ubuntu ) and Robert Collins, as suggested on Ubuntu Wiki here:

  So, what's with the "Funky Fairy" naming system? Many sensible people
  have wondered why we chose this naming scheme. It came about as a joke
  on a ferry between Circular Quay and somewhere else, in Sydney,
  Australia:

   lifeless: how long before we make a first release?
   sabdfl: it would need to be punchy. six months max.
   lifeless: six months! thats not a lot of time for polish.
   sabdfl: so we'll have to nickname it the warty warthog release.

  And voila, the name stuck. The first
  mailing list for the Ubuntu team was called "warthogs", and we used to
  hang out on #warthogs on irc.freenode.net. For subsequent releases we
  wanted to stick with the "hog" names, so we had Hoary Hedgehog, and
  Grumpy Groundhog. But "Grumpy" just didn't sound right, for a release
  that was looking really good, and had fantastic community
  participation. So we looked around and came up with "Breezy Badger".
  We will still use "Grumpy Groundhog", but those plans are still a
  surprise to be announced... For those of you who think the chosen
  names could be improved, you might be relieved to know that the
  "Breezy Badger" was originally going to be the "Bendy Badger" (I still
  think that rocked). There were others... For all of our sanity we are
  going to try to keep these names alphabetical after Breezy. We might
  skip a few letters, and we'll have to wrap eventually. But the naming
  convention is here for a while longer, at least. The possibilities are
  endless. Gregarious Gnu? Antsy Aardvark? Phlegmatic Pheasant? You send
  'em, we'll consider 'em.

NOTE: lifeless is Robert Collins. sabdfl is Mark Shuttleworth.


Unexpectedly lost keyboard - mouse works fine

I mistakenly enabled long key strokes.  Turned that off in the CP, and am now able to type.


How can I open programms e.g. Skype minimized with a command line?

To open skype in the command line:

nohup skype &

To open it minimized:

In Settings - General check the box that is labeled "Start Skype minimized in the system tray." That should get it to open minimized. (It does in gnome 3 at least)


Can not open Chrome neither via Terminal nor GUI on Ubuntu 18.04

Run google chrome as user:
~$ google-chrome

Or as the error message say, use  --no-sandbox option as root:
~# google-chrome --no-sandbox


can I use wine, is there a wine for mac, or similar

Wine requires a computer that has an x86 processor, like all Intel-based Macs have. You can't run Wine on an Apple iBook G4. PowerPC processors like your Apple iBook G4 has are incompatible with code compiled for x86 (Intel and AMD) processors.


Is it possible to tell Chromium to always "keep" PDFs?

Exit chromium
gedit ~/.config/chromium/Default/Preferences
Locate a section that looks like:

"download": {
  "directory_upgrade": true,
  "extensions_to_open": "",
  "prompt_for_download": false
},

Change the extensions_to_open setting from "" to pdf. If there are already other extensions, use a colon to separate pdf from the existing entries (i.e. foo:bar:pdf).
Save the configuration file.

Source
Untested; will delete if it is no longer a valid method (it's from 2011).


What harm can a cold reboot cause into your computer?

When a computer is shut off or loses power unexpectedly, it has no chance to finish writing data on its drives, that was only about to be written there. This can leave files and file systems in an inconsistent state.

File System Integrity

Modern file systems like ext4 (the default in Ubuntu), NTFS (default in Windows), and HPFS+ (default in OS X) can (almost) fully mitigate the risk of file system corruption, by writing a journal onto the disk, that lets them revert or complete the partial changes leading to inconsistencies. There's one popular file system still in wide use without this capability: FAT32 (or even FAT16 and FAT12).

At each boot Ubuntu verifies automatically, that there are no half-finished actions written to journals of file system mounted during boot (with an entry in /etc/fstab), and fixes all such journal entries. File systems mounted manually at a later time cannot be mounted normally, if they contain such journal entries, until they are fixed.

File Integrity

What a file system journal doesn't (normally) protect against, is applications writing incomplete data, because they were interrupted at shut-off. While the file system can be restored to consistency, such an application may have partially overwritten a file or multiple files, so they now contain half of the previous and half of the new state, which typically leaves them unusable or flawed. This is especially problematic, if such a file has an important role in the operating system or an essential program. In such a case one must often resort to a minimal recovery environment or a live DVD/USB medium to re-install the packages with the affected file.

To detect file corruption in less critical, less noticeable packages, you can have the system verify their integrity on a regular basis with debsums.


Grub install fails on Fresh 18.04 alternate server Raid 1 installation

Its solved. I needed to set up a little 100MB grub-bios partition by installing on both drives.


could not connect to server: No such file or directory in PostgreSQL

According to pg_lsclusters, your PostgreSQL instances 9.3/main and 11/main are not started. That explains the "could not connect to server" error.

postgresql.service and postgresql@9.3-main.service are systemd unit files and your problem seems to be that they're missing when systemctl needs them.
Note that systemctl does not get installed by default on Ubuntu 14.04, as it's the last version that doesn't use systemd (see Is Ubuntu 14.04 using systemd?) . But somehow systemd got installed on your system.

With systemd, normally the postgres service files should be automatically created by /lib/systemd/system-generators/postgresql-generator, provided by the postgresql-common package, and end up as *.service unit files in /lib/systemd/system/.

I cannot guess why that part didn't work or ceased to work on your system.

How to start PostgreSQL manually

The pg_ctlcluster command works independently of systemd or upstart.
You should be able to start the PostgreSQL instances with:

$ sudo pg_ctlcluster 9.3 main start
$ sudo pg_ctlcluster 11 main start


KDE's widgets are part of the KDE Plasma Desktop... which is a huge chunk of KDE. It can be done (you just install plasma-desktop and plasma-scriptengines and run plasma-desktop at start-up) but that is going to override your existing desktop.

I honestly can't say if the end result is something you'll like, but it's the only way I know how to do what you want.


How can I recovery my Ubuntu after I delete a directory using rm -rf by mistake?

You have a line in your ~/.profile file that is attempting to read files that you've deleted. Just open ~/.profile and delete the offending lines and you will be able to log in.

The error message is telling you that the problem is on lines 30 and 33 of ~/.profile, which try to read /home/lizihao/torch/install/bin/torch-activate. So just delete those two lines.


How can I start a separate instance (not profile) of Chromium, with its own icon?

What worked (cobbled together from the various answers and comments - thanks!) was to create a .desktop file in ~/.local/share/applications with a few tweaks:

[Desktop Entry]
Version=1.0
Name=Chromium Browser 2
GenericName=Web Browser 2
Comment=Chromium Alternate
Exec=/usr/lib/chromium-browser/chromium-browser --user-data-dir=/home/dandv/Chr2 --class="Chr2"
Terminal=false
X-MultipleArgs=false
Type=Application
Icon=/home/dandv/chromium-browser-2.png
Categories=Network;WebBrowser;
MimeType=text/html;text/xml;application/xhtml_xml;x-scheme-handler/http;x-scheme-handler/https;
StartupNotify=true
Actions=NewWindow;Incognito;TempProfile;
X-AppInstall-Package=chromium-browser
StartupWMClass=Chr2

Make sure to replace /home/dandv/ with your home directory. Using ~ did not work.

The tweaks I applied to the .desktop file were:

Add --class="SomethingLikeChr2" to the Exec= line
Add StartupWMClass=SomethingLikeChr2 to the [Desktop Entry] (use the same unique value as above; apparently this is what makes a separate window, that won't get lumped in with existing Chromium windows
Add --user-data-dir=... to the Exec line, due to this Chromium bug.

Result


why my bash script only outputs one line on echoing awk variable

You're not using the $i variable inside the loop

for i in "${addresses[@]}"; do
# ..^
    echo $addresses, disable, , , >import.csv
# .......^^^ should be: echo $i, ...
done

For an array variable, when you print the variable without specifying an index, bash seems to give you just the first element.

$ x=( one two three )
$ echo $x
one


Cannot get Google Earth to run in Ubuntu 12.04

Single answer can not help you much , Ubuntu Community has provided a very good section

https://help.ubuntu.com/community/GoogleEarth#Troubleshooting


Help Connecting Ubuntu Server 14.04 VM/postgres to postgreSQL workbench on localhost?

You have to edit the file under

sudo vim /etc/postgresql/9.3/main/pg_hba.conf

And Press SHIFT+G  Now change md5 to trust in the below line

host    all             all             127.0.0.1/32            md5

to

host    all             all             127.0.0.1/32            trust

If you need to listen from any IP address we have to edit the file under

sudo vim /etc/postgresql/9.3/main/postgresql.conf

And search for localhost and uncomment the below line

listen_addresses = 'localhost'

And change * localhost to *

listen_addresses = '*'

If you need login postgres User you have to do the below settings

Edit the file

sudo vim /etc/postgresql/9.3/main/pg_hba.conf

Press SHIFT + G to reach the bottom of the file

And change the md5 to trust

local   all             postgres                                md5

to

local   all             postgres                                trust

Then save the changes and exit by wq!

Then restart the server using

sudo service postgresql restart

Note:> Here i'am using PostgreSQL version 9.3, In you environment it may change according to you choose the version.


How do I install resource packs on minecraft 1.8.8?

That sounds like an odd problem.

Simply press the Alt+F2 keys on your keyboard, and type nautilus ~/.minecraft/resourcepacks. The ResourcePack folder should open right up.

Drag and drop your resource pack right in to the folder. You should be able to use them in-game from then on.

As for your problem with the file opening in Chrome, that sounds like Chrome taking over the folder control.

All you need to do is open a terminal and type sudo nano /usr/share/applications/defaults.list

From there, press Ctrl+W and type directory.

Change google-chrome.desktop to nautilus.desktop and reboot.

But Chrome wont provide you the rich features provided by Nautilus.


A compositing window manager is a type of window manager. A window manager is software that draws a graphical user interface on a computer display – it positions windows, draws additional elements on windows (such as borders and title bars), and controls how windows interact with each other, and with the rest of the desktop environment.

Compositing window managers may perform additional processing on buffered windows, applying 2D and 3D animated effects such as alpha compositing, fading, scaling, rotation, duplication, bending and contortion, shuffling, blurring, redirecting applications, and translating windows into one of a number of displays and virtual desktops. Computer graphics technology allows for visual effects to be rendered in real time such as drop shadows, live previews, and complex animation. Since, technically, the screen is double buffered, it does not flicker during updates.


Yes and no.
In order to understand the vagaries here, you need to understand the relationship between the inode table, and data written to disk.
Windows shortcuts are path data contained in regular files. Think of them like text files which only contain a URI for a file. From Wikipedia:

Shortcuts are treated like ordinary files by the file system and by software programs that are not aware of them. Only software programs that understand shortcuts (such as the Windows shell and file browsers) treat them as references to other files.
Another difference are the capabilities of the mechanism:
Microsoft Windows shortcuts normally refer to a destination by an absolute path (starting from the root directory), whereas POSIX symbolic links can refer to destinations via either an absolute or a relative path. The latter is useful if both the location and destination of the symbolic link share a common path prefix, but that prefix is not yet known when the symbolic link is created (e.g., in an archive file that can be unpacked anywhere).
Microsoft Windows application shortcuts contain additional metadata that can be associated with the destination, whereas POSIX symbolic links are just strings that will be interpreted as absolute or relative pathnames.

Windows Vista, 7 and 8 also support symbolic links natively under NTFS
POSIX-Compliant symbolic links are not files. Instead, they are entries into the inode table which are automatically resolved by the file system. Any software program, upon accessing a symbolic link, will see the target instead, whether the program is aware of symbolic links or not.


Secure boot screen pops up. How do I get past it?


System Monitor and free don't say the same

Both. System Monitor consider buffers and cahced memory as free.

Cached – Here things get a little more confusing. This number does not include the Free portion of memory. And yet imight see that it is larger than the Available area of memory. That’s because Cached includes cache pages on both the “standby list” and what is called the “modified list.” Cache pages on the modified list have been altered in memory. No process has specifically asked for this data to be in memory, it is merely there as a consequence of caching. Therefore it can be written to disk at any time (not to the page file, but to its original file location) and reused. However, since this involves I/O, it is not considered to be “Available” memory.


How to resolve error while running an executable .bin file?

Turned out to be a corrupted downloaded '.bin' file.
I had to download the file again 3 times until it finally run.


Ubuntu 20.04 freezes on Dual Boot Laptop

Probably the driver thing. The next time that occurs you can connect and login to your laptop using mobile phone or other device via ssh service on Ubuntu, and try to find out what has happened according to dmesg logs.


You generally need a PPD, Ubuntu 12.04 has a nice printer interface and will find network printers, it will then try to find an appropriate PPD, if it fails then try the manufactures website they may supply it. Else as a last resort you can try a PPD meant for a similar printer as it may work.

OKay because ubuntu does not identify your printer then your only hope other than getting the appropiate ppd off the printer manufacturer is to add a printer using the printer wizard, Most network printers accept print jobs on port 9100, so choose the AppSocket/HP JetDirect protocol, enter you printers IP, and hit next.

Then choose a really generic printer HP LaserJet4 if its there and see if it works


Simple script bug - adding PUBKEY for apt-get

You can extract the key and run apt-key on it with:

grep -o 'NO_PUBKEY.*' apt-get-update.txt | while read -r _ key; do
    sudo apt-key adv --keyserver keyserver.ubuntu.com --recv-keys "$key"
    break
done


How to choose to open with Software Center application from the browser?

This is the location of Ubuntu Software Center:

/usr/bin/software-center

(I've got it very quickly using this answer).


Just open a command line and run:

sudo dpkg --configure -a

For once , Linux actually gives you a helpful error message.


Need help with bumblebee --------Cannot access secondary GPU - error: Could not load GPU driver

Try this

sudo apt-get purge nvidia*
sudo reboot

sudo add-apt-repository ppa:graphics-drivers/ppa
sudo apt-get update
sudo apt-get install nvidia-358
sudo reboot


Which version of the firmware you're using is actually dependent on the version of the driver in the kernel. So while -9 isn't a firmware version, per se, it does correspond with a driver in a later kernel. (In other words, just use the firmware version that corresponds with your kernel version, eh!)

For more info, see: http://wireless.kernel.org/en/users/Drivers/iwlwifi#Firmware


Need help creating shortcuts on the desktop in ubuntu

"Make Link" is what you are looking for. Right-click on file/folder from nautilus and click on 'Make Link'. Which will creates symbolic links then you can move link to desktop.

Nautilus:

Thunar file-manager has inbuilt such facilities:-

To install thunar type following command: (make sure enable main repository and sudo apt-get update):

sudo apt-get install thunar

Using command-line(terminal):

You can create symbolic link using ln command as follows:

ln -s "<Source>" "<Target>"

Example:

ln -s /media/pandya/Ext4/14.04_Trusty-Tahr/Pkgs  ~/Desktop

where /media/pandya/Ext4/14.04_Trusty-Tahr/Pkgs is source and ~/Desktop is target

Visit man ls for more details.

For creating launcher install sudo apt-get install gnome-panel and refer to: This Q/A.


Try to use the full path, so omething like /usr/bin/mutt. Also check the user cron is running as and the users that are allowed to use mutt.


Trying to install Ubuntu: Shrinking the Windows Partiton

What Windows version are you running? I assume Vista or 7?

You should really do a chkdsk before messing with the volume. Press Start, type cmd. Click with the right mousebutton on the found cmd.exe and choose "Run as administrator".

Now type "chkdsk c: /f" (without quotes) and press enter.

Now, it'll ask "Chkdsk cannot run because the volume is in use [...] next time the system restarts? (Y/N)". Answer Yes. Now reboot into Windows again to have the disk checked and fixed if needed.

After this is done, AND you have made backups of your valueable data, you can boot into Ubuntu again. When booted into the desktop environment, start 'gparted' to get a nice partition manager to shrink the Windows partition. When that is done, you can Install Ubuntu hopefully without any problem.


How do I backup files using LFTP from the remote server to the local

on your server (there the original files you want to backup are) you need a ftp server running, then you can just type:
lftp sftp://user:password@host  -e "get remote-file.name; bye"
(see get a file to or from a remote server via command line or script on your client (on which you installed lftp)....


I can't run WPS Office 11 in Ubuntu Disco

After going from solution to solution, wasting both hours and bandwidth. Here is the final solution that works in 2020 for me in Ubuntu 18-04 Bionic

Setup and install FlatHub

Flathub is a build and distribution service for Flatpak applications. Its goal is to act as a central hub for making desktop applications available to users.
Use this link for instructions https://flatpak.org/setup/

When setup is complete, install WPS-Office (Latest 11.1.0.9080) from the FlatHub store.

flatpak install flathub com.wps.Office
flatpak run com.wps.Office

Hope this works out for you, not sure what to do if it doesn't

Below are methods that don't work

Downloading from Snap Store - Verison is old (v 10.1.0.6757)
The .deb package from WPS website doesn't work as it is missing some critical packages and crashes constantly.
The package available at the Software Center in Ubuntu is old (v 10.1.0.6757) with the same snap package as its source.


juju server relation hook files are not running?

Have you related them by running juju add-relation <service1> <service2> ?

Or in the GUI by clicking the Create relation button.

You can read a lot more on creating relationships here https://jujucharms.com/docs/stable/charms-relations In fact your best bet would be to read the docs from start to finish, lots of great information in there.


vpnc has stopped working with Cisco VPN gateway Ubuntu 13.04

Looks like there must be a bug in libgcrypt11=1.5.0-3ubuntu2.2. After rolling back to libgcrypt11=1.5.0-3ubuntu2.1 things are working again...

sudo apt-get install libgcrypt11=1.5.0-3ubuntu2.1

I've filed a bug report on launchpad.


Overheating problems causing Ubuntu 13.10 to power off.

What happened: Overheating can be caused by several factors.

You might be running CPU/GPU intensive programs that are very demanding on the hardware.
There might be poor ventilation at your workspace.
Worse case scenario, it might be a hardware problem that's causing this.

I took the liberty of looking up your laptop's specs, the specific model you're using does not have dedicated graphics. So that eliminates the possible cause of graphics card problems.

What you can do: Here's just some possible methods to solve your crisis.

Install TLP, it's a wonderful program for increasing your laptop's power efficiency, which in turns increases the battery life and lowers the operating temperature. Copy/paste the following lines into the terminal while you're on Ubuntu. Search up 'Terminal' in the dash or press Ctrl + Alt + T.

sudo add-apt-repository ppa:linrunner/tlp (adds the ppa so you can get future updates)

sudo apt-get update (gets the latest version)

sudo apt-get install tlp tlp-rdw smartmontools ethtool (installs TLP)

sudo tlp start (starts TLP right away after its installed)
Make sure your workspace is well ventilated, put your laptop over a surface that lets heat spread out faster.
Buy a cooling fan pad to put under your laptop.
If none of those worked to relive the heat problem, then its either caused by a problem with software or hardware, you should seek professional help from where you bought your laptop.


There are drivers for EasyCAP devices here, but since there are so many EasyCAP clones it might be difficult to know you're buying one that is supported by that driver.

I ended up getting a Pinnacle Dazzle DVC101. Plugged it in, started tvtime, and it worked right away. Sound doesn't appear to be working right now, but since I don't need it I won't bother trying to figure out why.


Are you using a Nvidia graphics card? If yes, did you install the proprietary drivers on your Ubuntu desktop?

To my knowledge, the proprietary Nvidia driver doesn't play well with Xen. If you indeed run your Ubuntu dom0 with an Nvidia card, I suggest you try the following:

Boot into your (non-Xen) Ubuntu desktop.
Remove the proprietary Nvidia driver and install the open-source Nouveau driver (if you previously blacklisted the Nouveau driver, remove the blacklist entry).
Logout/login to see that the Nouveau driver works.
Reboot into Xen - you should now have your Ubuntu desktop.


Installing 32bit wireless driver on amd64

I believe that your system uses a broadcom wireless card, and the drivers are available, although not accessible at the moment.  There is a lengthy set of instructions at https://help.ubuntu.com/community/WifiDocs/Driver/bcm43xx which can guide you through the process of downloading appropriate files and getting them installed on your computer


Solution was to simply remove package upstart.
If you encounter same situation, be sure to do following before removing upstart:

check that upstart isn't actually used (you can check name of executable for init process)
backup your system


How to connect to a printer WiFi printer that doesn't have internet?

Since you mentioned "want to connect to the printer wifi network", wireless printers are not meant to initiate any network. Instead, you are supposed to set them up for an existing wirless network (offered by some router) and send jobs to the printer while being connected to the same network.


How do I run a script every time a DVD is inserted

Insert a dvd and when this screen
pops up

Select open with other application
You will then see this window

browse to your script and add and
select it then tick the always perform this action tick box

You can change this back later by opening nautilus preferences and changing the media handling preference.

Hope this helps.


You can't install Ubuntu 14.04 using wubi because they aren't compatible.  You need to create a Bootable USB stick with the Ubuntu ISO.


Firefox crashes after nvidia and cuda update on 14.04

I finally did a clean install of ubuntu 14 and just changed to Chrome and everything seems to work ok now with only chrome getting a bit slow when flash is on a webpage.


Assigning a static IP on Ubuntu 18.04, on wifi i.e. wlp2s0

In Ubuntu desktop click the wifi/volume/power at the top right.
Select your WiFi network and select "Wi-Fi Settings"
Select the gear icon in the new window that pops up next to the network.
Go to IPv4 or IPv6 tabs as required.
Change from Automatic (DHCP) to Manual.
Enter the IP address, Subnet Mask (usually 255.255.255.0 but may be different for your circumstance), and Gateway.
You can also set your DNS servers here if you don't want to use those provided from your ISP.
Repeat for each network.

If this solved your problem please mark it as the answer.


Hopefully you've managed to solve the issue or the issue solved itself via an update. If not then this problem certainly does need to be reported to the xorg bug tracker. Make sure to include the xorg.log dmesg log files (available in /var/log ) and the output from lspci -nn

You can also simply run the command to report the problem and collect all the information required:

ubuntu-bug xorg

You can find some lovely information about how to track the issue and what information will be very helpful here: https://wiki.ubuntu.com/X/Troubleshooting/Freeze


How to connect to a cable Internet service automatically in Ubuntu?

Mark that bookmarked page as your homepage, and set your browser to remember username and password. This way, the browser will automatically load your credentials every time you open it. Then set yet another homepage with your favourite search engine (Google, Yahoo, Yandex, etc), so the browser will open 2 homepages in two different tabs every time you open 'the internet'.

You should check your router settings: type the router address in a browser, and check out those settings. I'm sure you can store ISP name and password there. Someone or something must have had your router reset (maybe power outage, power overcharge, nasty cousin, etc)

If this: http://www.netgear.com/support/product/WNA3100.aspx?cid=gwmng#1915 is your product, then check this wizard: http://kb.netgear.com/app/answers/detail/a_id/23438.


What package provides asm/errno.h for x32 ABI?

To resolve this issue support for the x32 ABI in gcc must be enabled.

The gcc-multilib package will provide that via a /usr/include/linux/asm symlink. For reference this was seen in a debian bug where the above info was provided. https://bugs.debian.org/cgi-bin/bugreport.cgi?bug=871946


XFCE: Hiding an application from the taskbar

A way to do it without Devil's Pie (2):

Do:
xprop | grep "CLASS"
and click on the window you want to remove from taskbar.

This will return something like WM_CLASS(STRING) = "name", "name"

Make a program startup script or run once, depending on your preference:
wmctrl -x -r name.name -b add,skip_taskbar

Sources:

https://forum.xfce.org/viewtopic.php?id=6755
https://bbs.archlinux.org/viewtopic.php?id=133254
Google


Wifi is not Working in my Asus Laptop on ubuntu 14.10

Download this to desktop https://www.kernel.org/pub/linux/kernel/projects/backports/stable/v3.18.1/backports-3.18.1-1.tar.xz
Right click and select extract here
Then

sudo apt-get update
sudo apt-get install linux-headers-generic build-essential

cd ~/Desktop/backports-3.18-1
make defconfig-iwlwifi
make
sudo make install

After a reboot it should work if you have the firmware, you can do this to check ls /lib/firmware/ | grep iwlwifi-7260

I would expect one of the next kernel updates to fix this in 14.10 as on recently has the 14.04 kernel been patched to fix issues with the (rev cb) card


how to remove the hamburger menu firefox v83.0

you could try to add userChrome.css this CSS Rules
It's from https://support.mozilla.org/en-US/questions/998356
@namespace url(http://www.mozilla.org/keymaster/gatekeeper/there.is.only.xul);

#PanelUI-menu-button {display: none;}

To Enable userChrome.css you could access it here
https://www.userchrome.org/how-create-userchrome-css.html
It consist of 4 step :
(1) Open your currently active profile folder
(2) Create a new folder named chrome
(3) Create a new text file inside the chrome folder named userChrome.css
(4) Set Firefox to look for userChrome.css at startup (updated 5/24/2019)
I did that to disable megabar and hamburger menu, and yes It works well on 84.0.2 64bit windows 10 20H2
BONUS : Disable MegaBar Generator (https://www.userchrome.org/megabar-styling-firefox-address-bar.html)
It's all other people works so I just want to make sure I just repost it here.
You could comment below if it's not working. let me help you.


How can I link two directories so that edits in one directory are reflected in the other directory?

You'll need to use a soft link, as you cannot make a hard link with a directory. The syntax for this is ln -s /var/www/Foo WebStorm_Projects.


Clementine current song as empathy status

It has been suggested that this Stack Overflow Question answers the subject:

import dbus
session_bus = dbus.SessionBus()
player = session_bus.get_object('org.mpris.clementine', '/Player')
iface = dbus.Interface(player, dbus_interface='org.freedesktop.MediaPlayer')
metadata = iface.GetMetadata()
status = "♫ ".decode('utf8')+metadata["title"]+' - '+metadata["album"]+" ♫".decode('utf8')
print status
from gi.repository import TelepathyGLib as Tp
from gi.repository import GObject
loop = GObject.MainLoop()
am = Tp.AccountManager.dup()
am.prepare_async(None, lambda *args: loop.quit(), None)
loop.run()
am.set_all_requested_presences(Tp.ConnectionPresenceType.AVAILABLE,
'available', status)


Wine on Ubuntu - Copy to clipboard needs 2 CTRL-Cs

Confirmed bug here I also have this problem with ubuntu 20.04 and wine 5.0.


Problems with hostmane: unrecognized service

Each line in hosts should carry a unique IP. I believe replacing the two lines containing 127.0.0.1 with a single

127.0.0.1 localhost.localdomain localhost RMK

will do the trick. That is, if you can sudo... If not, you need to boot a recovery system, mount your Ubuntu partition, and edit hosts from there.

The manpage of hostname is somewhat outdated for Ubuntu releases using upstart or systemd.

Instead of an init script /etc/init.d/hostname.sh, you can find e.g. an upstart config file /etc/init/hostname.conf. Query the service with init status hostname.


Ubuntu disconnecting my user when settings page open

After some searching analyzing my kernel log, I discovered that's happening because some kind of incompatibility with my current video card driver. So, I just ran sudo apt install nvidia-384 and it worked well.


Why can I not synchronize anything except Files?

You can also use Ubuntu One to synchronise contacts, bookmarks and Tomboy notes.  If you don't have the required packages installed, the Ubuntu One control panel should prompt you to install them.

Also note that the bookmark synchronisation only really works reliably in Natty at the moment.  We are working on making this new synchronisation code available in prior releases.


How to set Google Chrome as default web browser in Lubuntu 20.04

To make google-chrome-stable the default web browser, you should follow the below steps:

Press Lubuntu start on the taskbar > Preferences > Alternative Configurator
Then you should see below window:

Click on the second option, the Google Chrome
leave the sudo password
Click on Auto button to make it as default web browser.


after upgrade to 12.04 wifi alone does not work, but wifi AND LAN together do!

Another issue I had seemed very much related; "Waiting for full network configuration" followed by "waiting 60 more seconds ..." during every boot. When I followed the advice from bug #916890 to comment out this line in /etc/network/interfaces:

iface eth0 inet dhcp

both problems were resolved.


I have bought the same laptop ( Asus Zenbok  ux302LG with nvidia secondary board).

It has been a nightmare but finally I have the nvidia board working under Ubuntu, while still keeping Windows alive in a dual boot mode.

This is what I did:

1 Enable BIOS->CSM (comptability module)

In Windows, shrink any partition you prefer and make free space and/or prepare a partition for ubuntu.

2 Boot with a Ubuntu 14.04  Live usb pen drive. Select the Install Ubuntu line and press E to edit boot options, and add the "nomodeset" kernel option. Then boot the installer

3 When asked for installation options, select Something Else and chose the free partition that you have created in step 1, and make sure you select to install the boot loader in that partition, not in the whole disk or other places.

Also stablish a wifi connection to do upgrades on the fly.

4 When finishing the installation, go to BIOS and select Ubuntu loader as  the first boot option. Save changes and exit and you will appear in the ubuntu grub menu (you will also see that windows is still on offer,  and it still works BTW). Edit the Ubuntu boot line and add the nomodeset option again (last time you need it)

5 ubuntu will boot and login in graphics mode, but still at low resolution and no access to nvidia board whatever you do (I tried both nvidia-prime and bumblebee a lot of times). Do not try any of them yet, just go to next step:

6 Install the  64bits  kernel of the day (I used  3.16.0-994-generic ) and also its linux headers. I used the standard software installation tool for that. It is easy and you can find a lot of tutorials about it on google, so I will not bother with more details. This is a key step, as recent kernels seem to solve several critical problems with this laptop.

7 After installing the kernel then reboot (but do not add the nomodeset option anymore! ). Now it will login in a nice fullHD layout for the first time. You will also notice that the keyboard backlight is working fine. But no nvidia acceleration yet.

8 Now install Bumblebee, primus, and nvidia driver:

In the software installation application, enable the Universe and Multiverse repositories

Then:

sudo apt-get install bumblebee bumblebee-nvidia primus nvidia-331

(for more details, I followed this link How to set up nVidia Optimus/Bumblebee in 14.04 )

9 Do a reboot after installing them. This is important.

10 Now you can Use primusrun to run your application. ( optirun does not work for me, but primusrun works perfectly in this laptop )

For example, type:  primusrun firefox  (it will show some warnings in the console, but it works)

A last tip:  The loaders of many applications (the names that you use to call them in the command line or icon metadata ) are sometimes just a script that will call the application binary later inside the script. In these cases, primusrun will not work from the outside of the script. If you see that the loader is  is a text file (script)  you will have to edit that file and add primusrun to the line where the actual binary application is called. This was confusing me initially.

Thats all, good luck and hope it helps.

Javier


It is possible that your sensitivity is too high. Try opening your Mouse Preferences and lowering your acceleration and sensitivity options.


When you type srf2obj, the shell checks to see if srf2obj is an alias, a shell function, or (this is what you want to happen) an executable file in one of the directories in your $PATH, or, if you specify a path to the file (/home/walt/bin/foo, ./srf2obj) it will try that.

If ls -l srf2obj shows that it is executable, try typing ./srf2obj. If not, make it executable via chmod +x srf2obj. If you are going to do this a lot, consider adding this directory to your $PATH.

Or, you could invoke the interpreter directly, thusly: gawk srf2obj


Using find to search for files containing a word

Just to make sure it was a typo, I see your command has fckd instead of fsck.

Typically how I would do it is:

find / -iname '*fsck*'

I wouldn't be surprised if the command took quite a while to complete but it should show results as it sees them.

The main thing is, you need the pattern to be a glob like you'd use with 'ls'.

Putting the pattern in single quotes makes it so that your shell doesn't try to expand *fsck* into a list of matching files in your current directory prior to running the find command.  For example, if you had no files that matched *fsck* in your current directory the command run would end up being:

find / -iname

Or if you had 3 files [ fsck.a fsck.b fsck.c ] in your current directory the command run would end up being

find / -iname fsck.a fsck.b fsck.c

By escaping or quoting the *fsck* the command ends up as you would expect it:

find / -iname *fsck*

I believe you can also escape the *'s with \*fsck\*.

Hope that helps.


Well, sort of solved. Here's what I did:
1. reinstall nvidia-355 driver and let it run to completion. Takes a while. This made it possible to do "startx", so the login window was now visible, but I was in a login loop, couldn't get in.
2. Install Mate desktop. (not sure that was relevant)
3. Unistall Plymouth. This prompted a whole new packages to be installed, but I said yes. A script asked if I wanted to use gdm, lightdm or something new called ssdm. I chose ssdm.
Finally! a new login screen allowed me to select a number of desktop systems, such as gnome, plasma, metacity, failsafe... and mate. If I choose mate (the last installed) I can login (YES!) but for all other choices I end up in the loop. Hope this helps someone.


nmap showing open ports despite port close

Iptables operates on incoming or outgoing packets by matching the packet against the set of rules of Iptables. It does not have to do anything with whether a port is open or not.

If the ssh traffic is blocked via the following rule in iptables,

-A INPUT -i eth0 -p tcp --dport 22 -j DROP

then when a packet arrives destined for port 22 will be dropped by the kernel but your computer may actually listening on port 22 because SSH daemon is running on port 22.

To close a port you need to stop the service listening on that port. For example to close port 22, the following will do:

sudo service ssh stop


Update manager for 14.04 tries to load updates 15.04

Open the file sources.list

sudo nano /etc/apt/sources.list

And add a # at the beginning of the line, like this:

# deb cdrom:[Ubuntu-GNOME 15.04 _Vivid Vervet_ - Alpha amd64 (20150316)]/ vivid main multiverse restricted universe


You can convert an Ubuntu Desktop installation to Ubuntu Studio by installing the necessary packages:

sudo apt-get install ubuntustudio-desktop ubuntustudio-audio ubuntustudio-video ubuntustudio-graphics linux-lowlatency

More information is available in the Ubuntu documentation.


Can not access anonymous Printer Windows 7

You will still need to authenticate with the username "GUEST" and an empty password.

Also, you may need to install smbclient and specify the correct workgroup in /etc/samba/smb.conf. If the workgroup doesn't match, the authentication fails.


Yes, having the files as a .dmg rather than a .img is the problem. You converted your file to a be named "ubuntu-12.10-desktop-amd64.img.dmg" which is a .dmg file because it's last in line, even though .img is in the name.

Step 8 in the guide you're using says: "sudo dd if=/path/to/downloaded.img of=/dev/rdiskN bs=1m" Notice "downloaded.img" and how it's not "downloaded.img.dmg" like you have it. Make sure you typed everything in step 3 correctly, it should be "sudo hdiutil convert -format UDRW -o /Users/Trev_Carlson/Downloads/ubuntu-12.10-desktop-amd64.img /Users/Trev_Carlson/Downloads/ubuntu-12.10-desktop-amd64.iso"

If that's still not working, I would suggest looking at this guide from the help.ubuntu.com page instead:
Step 4 in the guide says "Note: OS X tends to put the .dmg ending on the output file automatically." What this step is saying that OS X tries to make it a .dmg file unless you force it to make it a .img file instead.


What is the function of "kill -1 -9" command?

I suspect the command you really learned of was

kill -9 -1

According to man kill, the format of the kill command is

kill [options] <pid> [...]

so -9 is an option and -1 is a PID or process identifier. As noted in the man page,

                                                               A PID of -1
   is special; it indicates all processes except the kill  process  itself
   and init.

while for an explanation of the signal values, you can either run man 7 signal or get a synopsis from the kill command itself with the -l option:

$ kill -l
 1) SIGHUP       2) SIGINT       3) SIGQUIT      4) SIGILL       5) SIGTRAP
 6) SIGABRT      7) SIGBUS       8) SIGFPE       9) SIGKILL     10) SIGUSR1
11) SIGSEGV     12) SIGUSR2     13) SIGPIPE     14) SIGALRM     15) SIGTERM
16) SIGSTKFLT   17) SIGCHLD     18) SIGCONT     19) SIGSTOP     20) SIGTSTP
21) SIGTTIN     22) SIGTTOU     23) SIGURG      24) SIGXCPU     25) SIGXFSZ
26) SIGVTALRM   27) SIGPROF     28) SIGWINCH    29) SIGIO       30) SIGPWR
31) SIGSYS      34) SIGRTMIN    35) SIGRTMIN+1  36) SIGRTMIN+2  37) SIGRTMIN+3
38) SIGRTMIN+4  39) SIGRTMIN+5  40) SIGRTMIN+6  41) SIGRTMIN+7  42) SIGRTMIN+8
43) SIGRTMIN+9  44) SIGRTMIN+10 45) SIGRTMIN+11 46) SIGRTMIN+12 47) SIGRTMIN+13
48) SIGRTMIN+14 49) SIGRTMIN+15 50) SIGRTMAX-14 51) SIGRTMAX-13 52) SIGRTMAX-12
53) SIGRTMAX-11 54) SIGRTMAX-10 55) SIGRTMAX-9  56) SIGRTMAX-8  57) SIGRTMAX-7
58) SIGRTMAX-6  59) SIGRTMAX-5  60) SIGRTMAX-4  61) SIGRTMAX-3  62) SIGRTMAX-2
63) SIGRTMAX-1  64) SIGRTMAX

So, as noted in the EXAMPLES section

EXAMPLES
       kill -9 -1
              Kill all processes you can kill.

The "you can" here is an oblique reference to privileges - in practice, ordinary users will not be able to kill processes that they do not own.

The actual command given in your question would attempt to send signal 1 (SIGHUP) to process -9 (which is not a valid PID) so will just return an error:

$ kill -1 -9
-bash: kill: (-9) - No such process


Install Tomcat Server 8 on Eclipse Luna running on Ubuntu 14.04

I found out there is an easy way of doing that. You can follow this blog post which is providing a step by step guide to do it : Install Apache Tomcat on Ubuntu

Step 1:
Open the Eclipse.

Step 2:
Goto Windows → Preferences in the menu bar and select the Runtime Environments under the Server.

Step 3:
Click on the 'Add' button.

Step 4:
Select your Apache Tomcat version under the 'Apache' root and click 'Next'.

Step 5:
Browse and select the Tomcat installation directory.

Step 6:
Click on the 'Finish' button

Step 7:
Click on the 'OK' button to close the Preferences dialog.


Bash (the terminal) is basically saying it cannot find the file adb in your working directory. ./ means "the directory I'm in". By typing ./adb you try to excecute the file adb that is in your current working directory.

What I think you might want to do is this:

adb install '/home/drmohammed/workspace/android/android-sdk-linux/platform-tools/mobogenie_1028.apk'

This excecutes the installed program adb.


Can the Ubuntu Certification help professionally?

Note: The current state of any Canonical-provided "Ubuntu Certification" is unknown. Please read the below question/answer in detail for more information:

  Is there such a thing as a Ubuntu Certified Engineer?

As this brief syllabus shows, the Ubuntu Certified Professional course was based on the standard Linux Professional Institute LPIC-1 certification.

Also known as the "Junior Level Linux Certification", the requirements for UCP/LPIC-1 include:

  Install and configure Ubuntu desktop systems
  Perform routine administration tasks: boot and shut down the system,
  manage user accounts and file systems, and maintain system security
  Configure network connectivity and key network services
  Work productively at the Linux command line

If you do not possess a certification that includes such a skillset, then yes, the Ubuntu Certification (or LPIC-1) may possibly help you in applying for positions as an entry-level Ubuntu/Linux System Administrator.

Afterwards, you should look at the more advanced LPIC-2 and LPIC-3 certifications to be able to apply to jobs beyond "entry-level".


VAIO laptop's wireless indicator blinking when connected to access point

I have Vaio vgnsr190 with Ubuntu 11.10 on it. When i switch on the wireless key (and it is also the Bluetooth key) the wireless indicator does not blink, but when i turn off Bluetooth (not with physical key) the wireless indicator starts to blinks.

I think it is not problem or error. It just show that you are connected to network.


Setup encrypted LVM on ubuntu 18.04 server edition

I figured out the solution.

I was using ubuntu-18.04.1-live-server-amd64.iso which does not have this option. Encryption option is present in ubuntu-18.04.1-server-amd64.iso

The installers for live-server and server are entirely different.


Can I install Visual Studio Code on Ubuntu 32 bit?

It's possible now, Microsoft released  Linux 32bit version


How can I enable ATI open source drivers?

This document explains how to install
  and use the open-source radeonhd
  drivers on Ubuntu. This shouldn't be
  necessary... unless you're having
  problems with the open-source
  "ati/radeon" driver that comes
  pre-installed with Ubuntu.pre-installed with Ubuntu.

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

EDIT: As JanC pointed out, you shouldn't install the RadeonHD driver if the pre-installed driver works.


Your operating system is not using an Nvidia or AMD proprietary graphics driver, so your system is currently running in software rendering mode. If there was a proprietary graphics driver compatible with your computer's hardware available from the default Ubuntu repositories, then ubuntu-drivers devices would have listed it.

For more information read the answers to How to download all required Ubuntu drivers.


Command substitution using grep'ed and sed'ed tail -f output as argument source into 'at' command

Unless ufw reload and ufw insert output a set of commands that reloads the firewall, piping it to at wouldn't be what you want.

Did you mean:

echo ufw insert 1 deny from $(tail -n+1 -F /var/log/ufw.log |
   grep -v --line-buffered '0.0.0.0' |
   sed -e 's/BLOCK/&/g' -e 's/.*SRC\=//g' -e 's/\ DST.*//g') | at now +3 minute
echo ufw reload | at now +3 minute

Or, combined:

at now +3 minute <<EOF
ufw insert 1 deny from $(tail -n+1 -F /var/log/ufw.log | grep -v --line-buffered '0.0.0.0' | sed -e 's/BLOCK/&/g' -e 's/.*SRC\=//g' -e 's/\ DST.*//g')
ufw reload
EOF


Access denied for user 'root'@'localhost' (using password NO)

You did not provide a password. I would assume you need one.

mysqldump -u {user} -p {database} > {export.sql}

where you will get asked for your password. And are you sure it is root? You admin user would be my username for mysql ;)


How do I create a bootable live usb that uses ext4 opposed to iso-9660, squashfs and casper

Full Install to USB - BIOS/UEFI
Mkusb makes a great base for a USB drive able to boot from both BIOS and UEFI, https://help.ubuntu.com/community/mkusb :

Use mkusb to make a Live system on the Installer USB, (2GB or larger).

Use mkusb to make a Persistent system on the Target USB, (8GB or larger), using default settings with up to 25GB persistence, (remaining NTFS partition is used as Windows accessible data partition).

As soon as mkusb finishes, open GParted and delete sdx4, the ISO9660 partition and expand sdx5 into the recovered space, sdx being the device name of the Target drive.

Create a extra ext4 partition sdx6 for /home if desired.

Unplug or remove HDD before proceeding further, (optional but recommended, highly recommended if it is running in UEFI mode).

Boot Installer drive, select Try.

Insert Target drive

Start Install Ubuntu...

Select "Something else".

Select sdx5, (on the target drive), and click Change.

Select Use as: ext4, Format and Mount point: /.

Don't touch any other partitions (unless adding a /home partition to sdx6).

Select sdx5 as Device for boot loader installation.

Complete installation.

Boot the target drive and run sudo update-grub to add all drives to boot menu.

Copy grub.cfg from sdx5/boot/grub and paste to sdx3/boot/grub, overwriting the existing grub.cfg file.

Do not install any propriety drivers, (ie Nvidia), on pre-18.04 installs.


How do I change my monitor's resolution when using a KVM?

Hardcoding an xorg.conf is the most traditional solution to dealing with this problem.  What is causing your xorg.conf to get overwritten?

You didn't mention what graphics hardware or video driver you're using, but if it is a KMS enabled driver, you may need to turn KMS off.


Has the service stopped or is it waiting ?

<service-name> stop/waiting means that <service-name> has been stopped and is now in the state of waiting. Analogous to that, a message like <service-name> start/running tells you that the <service-name> has been started and is now in the state of running.


Cat all files in a directory, with a specific file at the beginning an end...?

With the extglob option in bash you can do just that:

$ shopt -s extglob
$ cat file2.js !(file[23].js) file3.js > /var/www/output.js


Want to install Ubuntu 14.04 onto a secondary partition on a secondary drive

It's easy, just choose "something else" when you get to the part of the installation where it asks if you want to install ubuntu "along side" or use the whole hard drive.

Then, you can right click on the existing partition. Will have the option to resize the partition. Resize the partition to 54 GB less than the original partition size.

Then, right click on unallocated space and select to create a new partition. Make this partition only 50 GB of the 54 available unallocated GB of space. Choose "ext4" type and set the mount point to "/".

Finally, right click on the remaining 4 GB of space and set the type to "linux swap" or "swap space".

Proceed with the installation.


Cannot find export button in rhythmbox to rip audio cd

Bring up the menu from your screenshot.

Click on "View" then check "Select source toolbar"

Four buttons should appear along the top, one of which is "Extract"


Your /boot is full, look

/dev/sda1  236M  236M     0 100% /boot

That is tiny, you might want to expand this later, but to clear some space now, you can run

sudo apt-get autoremove

This should remove any old kernels and any useless packages (thanks @dan in comments for suggesting autoremove)
on use

You could also build a purge command for this, but I don't know what kernels you have, so some thing like

sudo apt-get purge linux-image-2.6.32-22-generic

Replacing linux-image-2.6.32-22-generic with the kernel to remove, see all installed kernels with

dpkg --list | grep linux-image

or you can open nautilus as root

gksu nautilus

Browse to /boot and remove any old kernels in here, DO NOT remove the one you are using, to find the current kernel you are using run

uname -a


Ubuntu 14.04: very slow UI in Oracle VirtualBox

Enable 3D acceleration from virtual machine setting worked! I haven't tried that because in 12.04 I didn't have that selected so I thought it should work without it.


Run

sudo apt-get update

and than again :

sudo apt-get install skype


smbd dumps core under Ubuntu 20.10 zfs sharesmb

You haven't given any information really so suggest posting some logs and it would be easier to help you. One thing to check possibly acl_tdb and acl_xattr are unsupported on zfs. Supported method of managing acls is through the zfsacl VFS module. This is just a guess and i don't know if this has changed over time. I had this problem with my setup a while back.


Why does installing jre1.7.0 give me no alternatives?

I think my friend gave me the wrong version of Ubuntu. Using the 64bit jre now gives me:

java version "1.7.0_17"
Java(TM) SE Runtime Environment (build 1.7.0_17-b02)
Java HotSpot(TM) 64-Bit Server VM (build 23.7-b01, mixed mode)


Try this in the terminal:

  sudo apt-get update

  sudo apt-cache search ia32

there you will see how the package is named. ia32-libs is a transitional package. There is another one called ia32-libs-multiarch

so you can try to install them:

  sudo apt-get install ia32-libs-multiarch


To find out the kernel module

dmesg | grep eth0

This gives me

[    4.655121] sky2 0000:07:00.0: eth0: addr 00:23:54:7c:a9:fa

Meaning that sky2 is the kernel module used for eth0.

Then you could blacklist the module by

echo 'blacklist sky2' > /etc/modprobe.d/blacklist-sky2.conf
update-initramfs -k all -u

Reboot the machine. To remove the blacklist just do

rm /etc/modprobe.d/blacklist-sky2.conf
update-initramfs -k all -u


Even I  do have the same problem. I am using Acer V5-571 with Atheros drivers. Recently I managed to get it done using r8168 driver and blacklisting r8169 driver. After doing so LAN wont be connected till login, but after login it will be detected. But after few updates it stopped working. It seems the problem is with drivers.


Note: I am installing the trial version only.

I've downloaded the MONyog trial version here (file name MONyog-5.5.8-0.x86_64.tar.gz) and moved it directly into my Home directory (~).

These are the commands I used:

# extract the archive:
~$ tar -xf MONyog-5.5.8-0.x86_64.tar.gz

# navigate to the extracted folder and look at its contents:
~$ cd /home/ubuntu/MONyog
~/MONyog$ ls

bin           data    MONyog.ini  MONyog.lua  preferences.config  res
Counters.def  MONyog  MONyog.log  MONyog.mib  README              Udo.def

~/MONyog$ cd bin

~/MONyog/bin$ ls
MONyog  MONyog-bin

# try running the executable:
~/MONyog/bin$ ./MONyog
Usage: ./MONyog {start|stop|restart|reload|status}

~/MONyog/bin$ ./MONyog start
MONyog is already running...

Check its web interface in your browser:

http://localhost:5555/
http://localhost:5555/mlogin.html


CMake tells you that you're missing the Qt5QuickConfig.cmake file, that is part of the qtdeclarative5-dev package (found using packages.ubuntu.com).

Compiling vlc-qt requieres some more packages which can be installed using:

sudo apt-get install qtdeclarative5-dev libvlccore-dev libvlc-dev


Can't remove ubuntu dock after upgrading to 18.04

The big dock on the left. In other versions you could escape unity launcher by going to gnome Gnome tweaks are not showing it as an extension, even though it looks a lot like the dash to dock.

Tweaks -> Extensions ->Dock

you can find autohide here


Themes are contained in a .zip archive.

Open the Options window: Tools -> Options (see picture 1)
Press the Import button (see picture 1)
Press the Browse button and select the theme file (a .zip archive).
Tick the checkbox to select all settings (just Fonts & Colors will be fine as well, those are the themes) (see picture 2)
Press OK and accept the confirmation dialog
After restarting, go to Options again and select the theme at Fonts & Colors, Profile (see picture 1)


Can't shrink the Process Name column in System Monitor

Here's how I solved it.

Make the window full screen.

Mouse over the stripe at the bottom of the window and you'll get a slider as seen below:

Slide it to the right so you can access the other column headers . Then grab the spot between the process and the next column (default user) your pointer will turn into a double arrow pointing both right and left. hold down the leftt button and slide the double arrow pointer to the left bringing the other headers over as seen here:

Your end result should look similar to the below and you can resize the window back to normal:


How do I disable touchpad tap to click on Ubuntu 16.04?

Restarting pmouse solved my problem (as suggested by @Pilot6 ):

On terminal:

sudo modprobe -r psmouse
sudo modprobe psmouse

Then the touchpad options will appear on "mouse and touchpad"


On Ubuntu Server 12.04, how do I make a shell script that replaces underscores with spaces recursively?

Consider using the find command (see man find).  That will go through all subdirectories and can run a command file on each file name using the -exec {} option.


error while installing samba 4.6.5 on ubuntu 16.04 samba/bin/asn1_compile: not found

I googled for the error then tried this solution and it worked with me:

root@dc01:/home/ubuntu/4/samba# make

and the compiling started and finished successfully.

then tried the install command install only but this is not working, so tried again:

root@dc01:/home/ubuntu/4/samba# make install

and it worked after the isolated compiling process
and this is the resault:

'install' finished successfully (2m37.689s)

And below "How to Create a Network Share Via Samba Via CLI" may you need it.

https://help.ubuntu.com/community/How%20to%20Create%20a%20Network%20Share%20Via%20Samba%20Via%20CLI%20%28Command-line%20interface/Linux%20Terminal%29%20-%20Uncomplicated%2C%20Simple%20and%20Brief%20Way%21


Hp cs10 wireless mouse (keyboard combo, but keyboard working ) not working on Ubuntu 18.04

If the lamp is flashing when not in use then the battery is most likely very weak. Try changing the batteries. At least that has been my many years of personal experience.


Why are there two versions of boost and which does Ubuntu use?

Well I seem to have discovered part of the answer in writing the question.

The web-interface to the package browser will allow you to find a particular release's libraries.

Still confused about the boost package versioning though!


I found the fix here.

Turns out that for cron to work with the script the full path to rclone is required.  So changing:

rclone
to
/usr/bin/rclone

In my script works fine.


Ubuntu SDK: Provide your application identifier in $APP_ID environment variable

You're probably getting this warning because you're developing your application on a desktop.

QML applications using Ubuntu components need this for identifying themselves throughout the system, see ApplicationId.

To get rid of this warning, just prefix your qmlscene command like this:

   APP_ID=foo qmlscene ./foo.qml

Resources:

Ubuntu.Components.MainView
ApplicationConfinement


Window borders missing - gtk-window-decorator segmentation fault

Solution: I tried many methods to bring it to normal and finally the following worked.
I removed the folders

~/.gconf2
~/.gnome2
~/.compiz-1

And restarted X (Ctrl+Alt+Bksp) .

Now window title bars are working as usual .

But if I try to customize my themes, it goes back to being problematic

I am happy with the default - Adwaita theme with Ubuntu-Mono-Dark icons.

Hope this would help someone in the future.

Thanks for all who gave me valuable suggestions..


npm issue while trying to npm install dependencies

I solved the problem by installing gyp with:

pip install git+https://chromium.googlesource.com/external/gyp --user


Display contents of one folder in another

This question seems to be what you are looking for:

Can I make a folder display the contents of several other folders (like a Windows "Library" folder)?

Maybe you could take some of the answers to that question and use them to put the files you need on your desktop.


I cannot install deb files with the software centre. What are the immediate workarounds?

As you mention, this is a bug which affects lots of people. Add that it affects you on the launchpad page if you wish.

So first - how to install things?

Method 1 - alternative GUI

GDebi is a package installer like the software centre, except it only handles DEB files - it's not an app store.

You can install GDebi with the software centre as it is in the repositories, or with sudo apt-get install gdebi.

Next, download your DEB file.

Then, to install the package, open GDebi and click File -> Open and navigate to the downloaded DEB file.

It can take a while to add the open the package - it took around 10 seconds for me.

Then check everything is OK, and click install.

It will finish, and the program will be installed.

Method 2 - command line

While apt-get cannot install from a DEB file, all apt-get does is download the file and then call dpkg. We can do those tasks ourselves really simply.

First, we download the file.

Then we open a terminal and navigate to our download location.

And run the command:

sudo dpkg -i FileName.deb

replacing FileName with the name of the file.

Finally, run this:

sudo apt-get install -f

This "fixes" everything - it resolves all dependencies etc.


Purge the package desktop-base:

sudo apt-get purge desktop-base

Then update the grub config file:

sudo update-grub


I managed to solve it, and here is what worked for me:

Follow the pre-installation actions
Follow the instructions for installing a local runfile
Follow the post-installation actions

In my case, I had already added

export LD_LIBRARY_PATH=/usr/local/cuda-10.1/lib64\
                         ${LD_LIBRARY_PATH:+:${LD_LIBRARY_PATH}}

to my bashrc. However, what I didn't realize was that this path name contained the wrong CUDA version number, as I'm not using the latest CUDA version. This is what made TensorFlow unable to find CUDA on my system.


Xubuntu - Apps Become Unresponsive Intermittently

It seems that this problem has been known for quite some time.  I found the following bug threads on Ubuntu:

https://bugs.launchpad.net/ubuntu/+source/rdesktop/+bug/217868
https://bugs.launchpad.net/ubuntu/+source/rdesktop/+bug/218308

In my case, killing the cisco vpn agent solved the problem.  If the agent was running, with or without an established connection, the freezes would occur.  Having killed the agent, it has been running over 24 hours without an issue.

Thu Nov 07 - 11:00 $ ps aux | grep vpn
root     12972  0.0  0.0  41420  2716 ?        S    11:00   0:00 /opt/cisco/vpn/bin/vpnagentd

I would add that these two pieces of software had worked fine for many months before this issue arose.


Copying file path from GUI to the command line

As of Files (nautilus) 3.32, the clipboard operation has changed to accommodate the Gnome Shell "Desktop Icons" extension. As a result, copying a file will fill the clipboard with
x-special/nautilus-clipboard
copy
file:///home/user/Documents/299867.jpg

rather than, like before, just the path name:
/home/user/Documents/299867.jpg

Power users thus can no longer conveniently copy paste the pathname from Files to a terminal or editor, or a File - Open/Save dialog.
The issue has been filed with Gnome. You can work around by installing either a Nautilus Python extension or a Nautilus script.
Nautilus Python extension
+ Nicely integrated
+ Quick right-click mouse access
- No hotkey
If just using the mouse to copy the path is OK for you, it is sufficient to install the python extension nautilus-copypath. It provides you with a right-click menu item to copy the path, but does not provide the ability to achieve that with a hotkey.
Nautilus script
+ Hotkey access
- Two clicks required
- Less "integrated"
Power users prefer to keep their hands on the keyboard, though. While Python extensions are neatly integrated, there is no easy way (that I discovered) to assign them a keyboard shortcut or at least a menu accelerator key. In contrast, one can easily assign a hotkey to a nautilus script. The drawback is that one more click is required to select the entry with the mouse. To have both optimal keyboard access and optimal mouse access, you can always install both the script and the Python extension.
1. Create a nautilus scripts folder. If not yet available, create a nautilus scripts folder under .local/share/nautilus. To see the hidden .local folder in Files, select "Show hidden files" (or press Ctrl+h). Any executable scripts you put in that folder will appear in a "Scripts" menu that will appear in your right-click menu of Files.
2. Create a script to copy the file path. Open your text editor, paste following text
#!/bin/bash
echo -n "$NAUTILUS_SCRIPT_SELECTED_FILE_PATHS" | perl -pe 'chomp if eof' | xsel -b -i

The perl construct is there to remove the last hard return.
Save the text file in the nautilus scripts folder (.local/share/nautilus/scripts) with the name Copy Path. You can choose any file name, but be aware that the file name is what will appear as entry under your Scripts menu. Close your editor.
3. Make the script executable. Right-click the script file in Files, select "Properties" (or just press Alt+Enter with the file selected) and on the "Permissions" tab, check "Execute:".
4. Add a hotkey for the function. With your text editor, open, or create if it does not yet exist, a file .config/nautilus/scripts-accels (i.e., a file named script-accels in the folder nautilus under the hidden folder .config. Add a line to define the hotkey you want to use to copy the pathname. I use Ctrl+Shift+c, so I added a line as:
<Control><Shift>c Copy Path

Close that file. You need to fully restart Files for the script to become available.
5. Make sure xsel is installed. xsel is a command line tool to manipulate the contents of the clipboard. It is not installed by default, so you may need to install it for the nautilus script to work: sudo apt install xsel.


suspend does not work on ubuntu 16.04 LTS

You better look at contents of /var/log again. Impossible you don't have log file there.  Permissions are restricted, though. On my system, I have an empty file pm-suspend.log but then pm-suspend.log.1 etc have data.

The problem you have is widespread, we've been discussing it on many threads.

Upgraded Ubuntu 16.04 sometimes fails to sleep

sh: echo: I/O error on pm-suspend Ubuntu 14.04

https://answers.launchpad.net/ubuntu/+question/249560

The way to get past this in the short term is to open terminal and kill the zombie suspend job. Run "ps -aux | grep suspend".  It will show a job owned by root, pm-suspend, that is failed. It is not closing out/finishing its work, that is why suspend doesn't work. Then in same terminal run "sudo kill -9 nnnnnn", replacing the n's by the number of the pm-suspend job.  Hit enter, the device will suspend. Session will be bad when you resume, consider log out.

We should close this question as a duplicate, I suppose I mean to say.

Admittedly, there is no comprehensive solution and understanding this is difficult/terrible. But no reason for this thread.


Xubuntu 16.04 - second monitor disabled after display sleep

Have you tried upgrade your Xubuntu 16.04 to 18.04? I remmember that in 16.XX version I had errors with monitors. In last version I don't have this problem... I hope it help you!


Glade

If you want a wysiwyg GUI designer, Glade is your best bet:

first, install glade from the software centre
create your GUI, save it as, say, myapp.glade

Go to the signals tab and set up your callback, such as on_window1_destroy
In your python program, tell GTK to load the UI definitions

import gtk

class MyApp (object):

    def __init__(self):
        self.builder = gtk.Builder()
        self.builder.add_from_file("myapp.glade")
        self.builder.connect_signals(self)

    def run(self):
        self.builder.get_object("window1").show_all()
        gtk.main()

    def on_window1_destroy(self, *args):
        gtk.main_quit()

MyApp().run()

After getting everything set up, you can dive straight into the Glade tutorial (as Jeremy Kerr mentioned in his answer). Start by learning about the different lay–out options and signals.

Quickly

When you feel comfortable with glade, you can start using it via Quickly, which is a set of programs to make the common tasks in developing software very easy. It takes care of translations, storing configuration, packaging, launchpad integration including PPAs, and lots more:

sudo apt-get install quickly
quickly create ubuntu-application hello-world
cd hello-world/

Quickly now creates a huge project with everything you need already set up. A gui, the translation files, configuration via desktopcouch, and so on.

You'll see quickly sets up a few windows (the main App, configuration, and an about dialogue) for you. To start editing your GUI:

run quickly design

To get to the app's code, run quickly edit
Go to the HelloWorldWindow.py file
Now start adding signal handlers and logic.

Finally, to run your application, type quickly run.

At this point, you can get into the PyGTK documentation in order to learn about the signals, their handlers' signatures, the different widgets' methods and so on.

 PyGTK 2.0 Reference Manual
 PyGObject Reference Manual
Quickly Widgets (not required)

See also, some related questions:

What IDE to use for Python?
Best Visual-Studio Like tool for Linux Development
Creating GUI with Python in Linux
What is a good text editor for developing code on?


I need to compile backprots-20131206 into ath10k device driver

The compat-20131206 package compiles a driver ath10k_pci, not ath10k. According to its modinfo, it depends on ath10k_core, compat and mac80211, all of which are also compiled by the package.

filename:       /home/chili/backports-20131206/drivers/net/wireless/ath/ath10k/ath10k_pci.ko
firmware:       ath10k/QCA988X/hw2.0/board.bin
firmware:       ath10k/QCA988X/hw2.0/otp.bin
firmware:       ath10k/QCA988X/hw2.0/firmware.bin
license:        Dual BSD/GPL
description:    Driver support for Atheros QCA988X PCIe devices
author:         Qualcomm Atheros
version:        backported from Linux (next-20131206-0-gc0a1029) using backports     backports-20131206-0-g0cca7ab
srcversion:     273EBCA0AF429B384C6AD53
alias:          pci:v0000168Cd0000003Csv*sd*bc*sc*i*
depends:        ath10k_core,compat,mac80211
vermagic:       3.12.4-031204-generic SMP mod_unload modversions
parm:           ath10k_target_ps:Enable ath10k Target (SoC) PS option (uint)

Note that firmware is also required by the compiled driver. https://github.com/kvalo/ath10k-firmware