I tried to install the 64-bit-version, which doesn't seem to be able
  to boot because of my old BIOS, which does not allow "efi" boot

The 14.04 image will boot without EFI. You could also try the "amd64+mac" image which is BIOS only (no EFI).

  Now I reinstalled 14.04 32 bit, but still get a grub rescue prompt
  when trying to boot

Boot from a livecd and do:

mount /dev/sda5 /mnt
grub-install --boot-directory=/mnt /dev/sda
reboot


As one of the upstreams of TestDrive, I can confirm that the issue was server-side rather than with TestDrive! It is fixed now though.

A bug report was filed against this issue. I hope this information helps. If there's any further syncing issues or any other one, please don't hesitate to file bugs!


Does updating to 17.10 from 17.04 removes all my softwares?

It would only touch/upgrade packages and dependencies which are part of official 17.10 repositories. Other software should not be removed. However, there may be compatibility issues due to some changes in the latest version, so I suggest you check the Release Notes.


Run the following commands:

sudo apt-get purge ubuntuone-client* python-ubuntuone-storage*

Also, delete all the related folders:

rm -rf ~/.local/share/ubuntuone ~/.cache/ubuntuone ~/.config/ubuntuone ~/Ubuntu\ One


"Warning, had trouble writing out superblocks" when creating partition. Is my disk FUBAR?

@heynnema hit the nail in the comment. Can confirm it worked for me.

The solution is to format it as different partition type (in my case NTFS). Notice you need to apply changes after that. Than delete NTFS partition and format it as ext4.


Got it.

sudo  rm -rf /var/spool/mail/alex/

and

sudo rm -rf /var/spool/mail/root/

after that

sudo  exim4 -qff -v

is working and I get all my frozen emails.


After upgrading to 12.04 LTS it returns incorrect password

Maybe the keyboard layout changed? Try the following:

write your password in the login field so that you can see what you are typing
when correct, copy and paste it into the password field
enter your username in the login field
submit and see what happens

You could also try to login on the console by pressing Ctrl-Alt-F1.


It depends on the application. Two common frameworks are used for a lot of apps: Qt and Gtk. They each have several versions and each version gets its own settings.

Evince uses Gtk-3, so I needed to download and extract a Gtk-3.0 theme into ~/.themes and set gtk-theme-name = Mojave-dark in ~/.config/gtk-3.0/settings.ini.

There's a similar story for Qt apps like Okular. Some themes have been ported to both frameworks, so you can get a consistent look by downloading the same theme for both.

You can find out which framework an app uses by looking at the apps's dependencies. For example, apt-cache depends evince shows (among other things), Depends: libgtk-3-0.

More info - https://bbs.archlinux.org/viewtopic.php?pid=940041


Dependency issues while trying to upgrade 12.04.2 to the 12.04.3 HWE stack

This appears to be a known issue. The bug report includes a workaround similar to the one proposed in Bao Bui's answer:

  After some trial and error the apt-get command that eventually worked
  for me is:

sudo apt-get install -V libglapi-mesa-lts-raring libgl1-mesa-glx-lts-raring xserver-xorg-lts-raring xserver-xorg-input-all-lts-raring xserver-xorg-video-all-lts-raring libgl1-mesa-dri-lts-raring x11-xserver-utils-lts-raring libglapi-mesa-lts-raring:i386 libgl1-mesa-dri-lts-raring:i386 libgl1-mesa-glx-lts-raring:i386

  Make sure to carefully check the suggested changes before proceeding
  to ensure that no essential packages are removed!

I can confirm that this solution worked for me.

On a related note: Just a small warning for anyone planning to upgrade using the HWE. This upgrade was far from smooth for me. Aside from all the dependency issues described in this Q&A, I had to manually install Raring packages to get my WLAN (broadcom) to work. Similar issues might arise if you have hardware that's running using proprietary drivers (installed via the "Additional Drivers" dialog).

So be wary when installing these hardware enablement stacks. It's a a feature that obviously still needs a lot of work.


Found it (partially).

On http://live.gnome.org/LibGWeather/ForecastsAndRadar is says that http://weather.noaa.gov/ is the primary source of data.

I visited that site to see what weather data was available for my country. The city that I wanted to add was 'De Bilt', where the Royal Netherlands Meteorological Institute is situated and which happens to be the closest weather station to me. That station is not listed on http://weather.noaa.gov/weather/NL_cc.html, where all the weather stations available on the NOAA website for the Netherlands are listed.

Now figuring out a way how to add De Bilt anyway. So if anyone still has an answer to that, I would be very glad with that!


The problem is well described here by virtualenv maintainer: https://github.com/pypa/virtualenv/issues/737#issuecomment-319078189

I will quote his comment here:

  The problem (as I understand it) is that virtualenv implements its own
  version of site.py that doesn't track the core Python version
  perfectly (that's the issue behind #355, referenced above - if you
  follow that link, and the link to the various issues linked from
  there, you'll get the background).

  Fixing this isn't as simple as "sync up to the core site.py", because
  we need to support multiple Python versions, and site.py has changed
  between them.


I used to apt-get install ubuntu-desktop on my Ubuntu server. Can I apt-get install ubuntu-server on my Ubuntu desktop?

ubuntu-desktop is a meta package for installing a desktop environment (ubuntu), not the whole ubuntu system (desktop version).

I don't know about a meta package for LAMP, but I'm quite sure that "ubuntu server" refers to a whole system, not to a package, as you can see in the Ubuntu releases' download page.


Seek and destroy a hanging ssh/sftp session

question is quite old, but I still using 16.04.
Maybe someone else still searching this.
To seek process:
sudo ps -ax | grep sftp

11806 ?        Sl     0:00 /usr/lib/gvfs/gvfsd-sftp --spawner :1.17 /org/gtk/gvfs/exec_spaw/8
11817 pts/6    Ss+    0:00 /usr/bin/ssh -oForwardX11 no -oForwardAgent no -oPermitLocalCommand no -oClearAllForwardings yes -oProtocol 2 -oNoHostAuthenticationForLocalhost yes -l myusername -s mysite.org sftp
11821 pts/7    Ss+    0:00 /usr/bin/ssh -oForwardX11 no -oForwardAgent no -oPermitLocalCommand no -oClearAllForwardings yes -oProtocol 2 -oNoHostAuthenticationForLocalhost yes -l myusername -s mysite.org sftp
11825 pts/10   S+     0:00 grep --color=auto sftp

To destroy:
# 11817 - is the pid of ssh process
kill -9 11817


I want to install selenium webdriver in my Ubuntu 16.04 system for python

Selenium is available from the default Ubuntu repositories in Ubuntu 16.04 and later. To install selenium open the terminal and type:

sudo apt install python-selenium # for Python 2.x

and/or

sudo apt install python3-selenium # for Python 3.x

Then type python to start the Python interpreter and from selenium import webdriver should work like this:

$ python
>>> from selenium import webdriver

Assuming that the path ~/.local/bin is in your execution PATH, here's how to install the Firefox webdriver, called geckodriver:

wget https://github.com/mozilla/geckodriver/releases/download/v0.20.1/geckodriver-v0.20.1-linux64.tar.gz
tar xvfz geckodriver-v0.20.1-linux64.tar.gz
mv geckodriver ~/.local/bin


You can put the command into ~/.gnomerc,
it will be executed on login
(It will be executed on Unity as well).

rc.local is executed before X startup,
so the command is executed but it has no effect.


You can try downloading driver from xorg edgers ppa(https://launchpad.net/~xorg-edgers/+archive/ppa).

Add the ppa

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

upgrade your system

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

Reinstall bumblebee.

If that doesn't solve your problem,

what is the error when you run optirun? include in your question.

A note : did you created this question yesterday? https://askubuntu.com/q/350922/35775 Don't create duplicate each day with different id that doesn't help here to get good answers.


OP solved:

  I solved it by removing and installing the drivers again.


MOK manager utility won't show up on reboot on Ubuntu 16.04 (dual boot)

At last, I solved this problem by reordering the booting order with the help from the mokutil author lcp, following this post fix this issue:
https://github.com/lcp/mokutil/issues/11#issuecomment-356159399

1. Check whether MOK files exist.

   $ sudo -i
   # cd /sys/firmware/efi/efivars
   # ls Mok*
   MokAuth-605dab50-e046-4300-abb6-3dd810dd8b23
   MokNew-605dab50-e046-4300-abb6-3dd810dd8b23
   MokSB-605dab50-e046-4300-abb6-3dd810dd8b23

2. Check the order of the boot.

   # efibootmgr -v
   BootCurrent: 0000
   Timeout: 2 seconds
   BootOrder: 0000,0001,0002
   Boot0000* ubuntu HD(1,GPT,dabc2835-8f96-4429-ba98-3abadcfcaa57,0x800,0x82000)/File(\EFI\UBUNTU\GRUBX64.EFI)
   Boot0001* Windows Boot Manager   HD(1,GPT,dabc2835-8f96-4429-ba98-3abadcfcaa57,0x800,0x82000)/File(\EFI\MICROSOFT\BOOT\BOOTMGFW.EFI)WINDOWS.........x...B.C.D.O.B.J.E.C.T.=.{.9.d.e.a.8.6.2.c.-.5.c.d.d.-.4.e.7.0.-.a.c.c.1.-.f.3.2.b.3.4.4.d.4.7.9.5.}...d................
   Boot0002* ubuntu HD(1,GPT,dabc2835-8f96-4429-ba98-3abadcfcaa57,0x800,0x82000)/File(\EFI\UBUNTU\SHIMX64.EFI)..BO

3. Reorder the boots.

So in the previous printout, for instance, we need to swap the Boot0000* with Boot0002*.

# efibootmgr -o 0002,0001,0000
# efibootmgr -v
BootCurrent: 0002
Timeout: 2 seconds
BootOrder: 0002,0001,0000
Boot0000* ubuntu    HD(1,GPT,dabc2835-8f96-4429-ba98-3abadcfcaa57,0x800,0x82000)/File(\EFI\UBUNTU\GRUBX64.EFI)
Boot0001* Windows Boot Manager  HD(1,GPT,dabc2835-8f96-4429-ba98-3abadcfcaa57,0x800,0x82000)/File(\EFI\MICROSOFT\BOOT\BOOTMGFW.EFI)WINDOWS.........x...B.C.D.O.B.J.E.C.T.=.{.9.d.e.a.8.6.2.c.-.5.c.d.d.-.4.e.7.0.-.a.c.c.1.-.f.3.2.b.3.4.4.d.4.7.9.5.}...d................
Boot0002* ubuntu    HD(1,GPT,dabc2835-8f96-4429-ba98-3abadcfcaa57,0x800,0x82000)/File(\EFI\UBUNTU\SHIMX64.EFI)..BO

4. Now reboot. And the Mok manager should shows up on boot.

Hope this can help others.


I found the solution myself. I created an additional NIC in both the VMs and configured the ip of the new network interfaces. Should I leave my question so that others can benifit or should I vote to delete?


Will there be possibility in Unity to change default file manager?

You can already change the default file manager in GNOME, although the setting is hidden.

Press Alt+F2 then enter gconf-editor.

You then need to edit the /desktop/gnome/applications/component_viewer/exec key to the command for the new file manager.


Solved with careful Gentoo recompile & update-grub.


This is coming rather late, but I believe options are comma separated. Try

sudo mount.cifs //192.168.0.13/Data /mnt/TC -o user=htpc,pass=xxxx,sec=ntlm

with lower case and the comma.

Note:

In sudo mount.cifs //192.168.0.13/Data, use Data or the name you've given to your timecapsule. This depends on whether you've activated the separation between disk and users.
If you've used characters like ! or ^ in your password, then you'll need to put the whole option within quotes, like so: -o 'user=htpc,pass=xxxx,sec=ntlm'
Use sec=ntlm or sec=ntlmv2 depending of your version of timecapsule


For Wine to work on a 64 bit machine, you need to enable support for i386 architecture. To do this, follow these steps:

  Check that the only file in the below folder is multiarch using:-

ls /etc/dpkg/dpkg.cfg.d/

  See if the output is multiarch. If the output is multiarch then run
  below:-

sudo sh -c "echo 'foreign-architecture i386' > /etc/dpkg/dpkg.cfg.d/multiarch"

  NOTE:- First, check the output of uname -m, if it is already i386,
  then no-need to follow above steps, i.e, i386 is enabled by default.

Above is quoted from my answer here.

Follow the above steps and then do:

sudo apt-get install wine1.6


Please read the output you got:

  The programm 'curl' is currently not installed. You can install it by typing:
  sudo apt install curl

just run

sudo apt update

to update the available packages list and than run

sudo apt install curl

as suggested to install curl.


There are lots of them. Empathy is installed by default and supports loads of protocols, including XMPP, which Google and Facebook also uses. So you don't have to install that. You do need a server, however, and there are several of those as well, like ejabberd. (Jabber and XMPP) are two names for the same thing, although XMPP is the official one now). There are many browser clients available, written in HTML/CSS/JavaScript, Flash and Java.

I suppose you'd simply configure the XMPP server to pick an available support person on a round robin fashion and forward the chat to them.

References:

How can I enable the "Share Desktop" feature in Empathy?


sed '/^$/d' and grep -Ev '^$' failed to remove blank lines

Presumably you want to remove not only empty lines, but also lines with only whitespace characters. For that, use:

sed '/^\s*$/d'   # or respectively
grep -v '^\s*$'

The sed expression deletes every line with any number (*) of whitespace characters (\s) in it. grep -v outputs any line which does not match the expression.

Example usage

$ sed '/^\s*$/d' <draft3.py
            hi = len(a)
        if lo < 0:
            raise ValueError('low must be non-negative')
        if lo == hi:
            return None
        mid = (lo + hi) // 2
        if x == a[mid]:
            return x
        if x > a[mid]:
            lo = mid + 1
            return self.bi_search(a, x, lo, hi)
        if x < a[mid]:
            hi = mid
            return self.bi_search(a, x, lo, hi)


Text editor like Adobe Dreamweaver for Ubuntu 13.04

Use Brackets

http://brackets.io/

Please go to this link and download deb file. http://download.brackets.io/

Then go to the folder that you download deb file, using cd command.

dpkg -i brackets-sprint-30-LINUX64.deb

(You may have to change brackets-sprint-30-LINUX64.deb part according to the file you download.)

Under Programming category you can find Brackets. This was developed by Adobe as I know


First to check your hardware.  Run MemTest86 at least 24 hours to make sure your memory is not root cause.

Due to sendmail-mta hangs, my experience is due to DNS issue (by gethostent) or YP/NIS issue (if you have installed nis).

Try this command to see whether you have installed nis.

dpkg -l nis

If yes, try to remove it by apt-get remove nis if you don't need nis service.  Otherwise, you might need to check YP/NIS settings. (like nisdomainname to see your YP/NIS domain is properly set, and ypwhich to see if NIS client is working)

Try this commands to see whether it's gethostent issue:

# to see if it's very slow when system is abnornormal.
ping www.google.com

If you have root permission, you might want to use strace to debug sendmail-mta to verify which syscall blocks your process, and it would help a lot.


Can't install nvidia drivers, multiple methods tried, all failed, have reinstalled Ubuntu multiple times

OK, I'm no expert, but these are the steps that worked for me and my Nvidia drivers. I'm using 12.04, but the process should be pretty much the same. I used this page
, but modified the instructions a bit.

1)Install the latest Linux headers with

sudo apt-get install build-essential linux-headers-`uname -r`

For me, those headers gave me problems, so I used 3.4.0-030400-generic instead of uname -r. Just make sure to use Synaptic to get rid of the ones you don't use.

2)For me, I completely uninstalled every other driver on the system instead of just disabling them. If you don't want to do that, follow the instructions on the page I linked.

3)Press Ctrl+Alt+F1 to get into text-only mode, or whatever you call it.

4) This is what differs from the guide I linked. I just used the command sudo lightdm stop and it worked fine.

5) Run the command sudo sh /name/of/directory/NVIDIA* depending on where you save the driver file. You can hit tab to auto-complete the name of the driver file. It will walk you through the installation.

6) Do a sudo reboot and you should be good to go!


Is there a PROPRIETARY driver (NVIDIA or ATI) that actually works with 12.10?

Install the linux sources and headers. These are required to build the driver.

sudo apt-get install linux-source linux-headers-3.5.0-17-generic

Then unistall any nvidia drivers you have installed. Then reinstall the nvidia driver

sudo apt-get install nvidia-current

Then restart the computer

sudo shutdown -r now

It should now boot up using the nvidia drivers.


screen crash (not black screen) after suspending my HP Laptop on Ubuntu 18.04

I figured it out by myself. I had a swap partition which was cousing both the Ctrl+Alt+F1-12 problems and the recovery from suspension colorful screen crash. I reinstalled Ubuntu 18.04 LTS, deleted the swap partition in the installation and it now works.

I've got to say I've gotten pretty desperate. I chatted with Nvidia about their drivers, I tried to upgrade the proprietary drivers from 390 to 396 and somehow screwed up everything (nividia-settings wouldn't open up). I have even come close to install windows in order to update the BIOS and the motherboard chipset to see if it helped. Glad to know it was this, no idea why though...

Thanks for the help anyways! Go FOSS.


The basic (and standard) USB drive with Ubuntu is a live-only drive. The files that you create will be stored in RAM, but will disappear at shutdown and reboot.

There are two alternatives, a persistent live system with a casper-rw file or partition or an installed system (installed like installed into an internal drive). It is possible to install application programs, to tweak the system and to save files in a way that survives shutdown and reboot in such systems (in USB drives).

See this link and links from it.


Ubuntu 18.04 stuck at purple loading screen after new update

This issue can have two reasons:

1- your system has Nvidia graphics card and its driver is not installed.

for this you should follow these steps:

When you start your system you can see the grub menu that has options like Ubuntu, Advanced options for ubuntu and ...( I have a Asus laptop that i must press Esc to see the grub menu) select Ubuntu but don't press Enter press E instead.

You will see boot parameters for Ubuntu. in this step we are going to use an open source graphics instead of Nvidia temporarily to install the right graphics driver. in the line which starts with linux add this at the end of the line: nauveau.modeset=0 after ... quiet splash like this: quiet splash nauveau.modeset=0

now you can press F10 to continue booting and you should see the login page and it won't be stuck. (don't do the second reasons solution if you logged in successfully. follow the final step)

2- your display manager has a problem.

When you upgrade to 18.04, Ubuntu uses gdm as a default display manager that has more code complexity than lightdm. so you should change it to lightdm (even if your Ubuntu uses lightdm do it anyway because maybe lightdm is broken)

go to recovery mode and bring up the shell(with networking enabled) as root now type these commands:

 sudo apt-get update
 sudo apt-get install --reinstall lightdm
 sudo dpkg-reconfigure lightdm

select lightdm as default display manager and reboot you should see the login page.

I recommend you to do both solutions at the same time if you are not sure which to use.

Final Step

now after logging in you should install the right version of Nvidia graphics on your system.
type the following commands:

sudo apt-get purge nvidia*
sudo ubuntu-drivers devices

now you can see the drivers available for you Nvidia graphic card install the recommended version like this (the version can be different on your system but mine is 390):

sudo apt-get install nvidia-390

Warning: don't add any PPA for Nvidia

after installation is complete reboot your system normally and it must work.


Ubuntu One saved after hard drive wiped?

Yes. The short answer and maybe the only one is "Yes".

But... We must consider that the backup on your Ubuntu One cloud will be limited to the storage space available for your account. Usually 5GB unless you upgraded your account. So, if your U1 folder and the additional synced folders exceeds that amount, the files won't be backed up.

Good luck!


How do I install T4U archer wireless adapter driver without internet?

First, determine what dependencies the make package has. (Offhand, I can't think of what they might be, but here are a few suggestions how to identify them.)
Do you have the medium you installed from (e.g., USB stick, CD-ROM?). If so, mount that device, & use one of the solutions suggested here.
Not sure which will work for you in the end, but unfortunately some solutions only come thru trial & error.


"updated" graphics card driver won't boot Ubuntu 14.04

On screen login: Alt+Ctrl+F1

your login and your password
sudo apt-get remove --purge fglrx*
sudo dpkg-reconfigure xserver-xorg
Alt+Ctrl+F7


Any solution to write equations while filling pdf?

Xournalpp has a function to add latex formulas, but it can not fill forms.


How to customize vertical panel in cinnamon menu?

The area is known as the Favorites menu.
In order to re-arrange the applications it's as simple as dragging and dropping them into whatever order you want. (As you would do to icons on the desktop.)
To remove a certain application simply drag and drop it into the main application list and it will be removed from the favorites section.
To add an application to the favorites section you need to right-click the desired application in the application list and choose the option Add to favorites. (As per the image.)


The first problem is in your brace expansion {}, which is done by the shell and rsync is just using the result.

You have made the brace expansion an no-op by introducing a space between the directory names, so to rsync the --exclude option has become:

--exclude {/mnt/dati/Film/,

so rsync will exclude the file (or directory) {/mnt/dati/Film/, (presumable there is no such) and the /mnt/dati/Scout/} has become a source file to copy for rsync and there no such file/directory, hence the error message.

To solve this brace expansion issue, you need to remove the space between the directory names:

{/mnt/dati/Film/,/mnt/dati/Scout/} ....

Or better just use the common part once:

/mnt/dati/{Film/,Scout/} ....

But this does not solve the problem with rsync because --exclude takes a pattern like:

--exclude='foo*bar'

or

--exclude 'foo*bar'

so in this case too, the directory /mnt/dati/Scout/ will still be taken as a source directory to copy from.

To solve this problem too you can use multiple --exclude:

rsync -av --exclude=/mnt/dati/Film/ --exclude=/mnt/dati/Scout/ ....

Or save the patterns in a file and use:

rsync -av --exclude-from=/file/with/patterns ....


Eager to move up from Mint 19 to ubuntu Maté

Welcome to askubuntu. :)

On mint, you can Right-click the ISO file and select Make Bootable USB Stick, or launch Menu ‣ Accessories ‣ USB Image Writer. (see https://linuxmint-installation-guide.readthedocs.io/en/latest/burn.html)

If you want, you can also buy pre-written usb sticks for mate ubuntu on https://www.osdisc.com/products/ubuntumate?affiliate=ubuntumate

To create a USB stick on ubuntu, you can type usb-creator-gtk into a terminal.


setting dual boot on a system with window 8 and ubuntu installed on different patitions

I agree with Avishek, you first need to install Windows then Ubuntu, i would recommend you to do a clean install and partition you disk in windows.

The partition you which you want to save your data files, make sure you change it to logical else there will be a problem when you install Ubuntu, the problem here is that when you install windows it actually creates two partition one named "reserved system partition" and other is your "C:" drive, both will be primary partition and Ubuntu root directory and swap area partitions will also be Primary partitions. If your using MS-DOS Partition table you cannot have more then 4 primary partitions, so its always good to make a logical partition.

So, you will have 4 Primary partition with 1 Extended partition(Logical).

Now Install Ubuntu normally, set Swap area and enjoy your Dual Boot System.


I'd like to prevent maximize from covering one third of the screen

Maximumize may be useful for that case instead of Maximize. Which is included in the CompizConfig Settings Manager and will "Maximumize windows (resize them to fit the available screenspace)"

In your case, Maximumize will fit the window's size in order to use the maximum available screen space in the active work space and this way, windows in screen containing the pidgin, conky, and other window-like applications will be dodged by the Maximumized window. I am not sure if this will act the same with docklets but you give it a try and please let us know.

Good luck!

BTW: You may need to set your own key bindings in order to make this work. I used [Alt]+M and it works fine for me.


How to Remove the bootloader and automativally start ubuntu 14.04

Open the grub file by:

sudo gedit /etc/default/grub
and change the following line:

GRUB_HIDDEN_TIMEOUT_QUIET=false to:

GRUB_HIDDEN_TIMEOUT_QUIET=true
Save and exit
Run sudo update-grub


How to mount remote pen drive on my system using terminal

1) connect to computer B from computer via ssh root@X.X.X.X:

2) search for the dev entry point into the computer B system as following :

2.1) lsusb or dmesg | grep -s "SCSI device" or grep  SCSI /var/log/messages

with this, you will find the device entry point which will be used to mount the device.

3) create a mount point mkdir -p /mnt/myusb

4) mount -t vfat -o rw,users /dev/sda1 /mnt/myusb

(here, -t vfat is used to tell system that to mount vfat filesystem, with read/write permissions, and /dev/sda1 is the device entry point and /mnt/myusb is the directory where you will find the mounted device.)


Can't run Ubuntu core app from IDE on the device

After some chat with Ubuntu touch team I'm posting the fix. It turns out that Ubuntu SDK is outdated on Ubuntu 14.04, it must be updated like this:

sudo add-apt-repository ppa:ubuntu-sdk-team/tools-development
sudo apt-get update
sudo apt-get upgrade

Then, edit /usr/share/qtcreator/ubuntu/scripts/qtc_device_applaunch.py as a super user and remove the following lines:

    else:
        print("Sdk-Launcher> Uninstalling already installed package (--force-install)")
        success = subprocess.call(["pkcon","remove",package_name+";"+package_version+";"+package_arch+";local:click","-p"],stdout=subprocess.DEVNULL)
        if success != 0:
            print("Sdk-Launcher> Uninstalling the application failed",flush=True)
            sys.exit(1)

After that I needed to alter the 'Exec' line in dropping-letters.desktop to this:

Exec=qmlscene dropping-letters.qml

Piece of cake, isn't it? :-P


It seems a python error. Try to change start script
$ sudo vi /usr/bin/duplicity
and change the first from:
#! /usr/bin/python
to
#! /usr/bin/python2


Theme and icons look old after upgrade to 14.04 - AMD GPU issues?

Someone with Kubuntu had a similar problem and it turns out the solution works with Unity also:

KDE Theme broken after 13.10 → 14.04 upgrade

Original source from the Arch forums:
https://bbs.archlinux.org/viewtopic.php?id=137257

Long story short I just removed ~/.config/Trolltech.conf and restarted. Now my desktop is looking great!


Yes. It is a known bug and people are working on it; https://bugs.launchpad.net/unity/+bug/819721. It seems to have been fixed, and you can expect to get an update after things have been properly tested. Unity 4.26 should not have this issue.


What are the implications of installing WINE while booting from a liveDVD?

If I install WINE will my Linux be like a Windows in the sense that I will be infected as easily as visiting a shady website

Yes. Even more so if you use MSIE inside WINE. With 1 remark: you can get infected with rootkits and other malware intended to infect Linux. It has a very very low probability but it is possible.

  or that my Linux will auto-execute viruses that are made for Windows?

No. Linux can not execute scripts made for Windows. It can execute scripts that are made to run on Linux.

  I  observed that Linux in LiveDVD is always in super user mode or at least doesn't require passwords for tasks. How can I change that to either require a password or to exit super user mode? Or if it's a liveDVD then will it remain that way?

The live session is intended to test your system for hardware compatibility  and a general idea how Ubuntu works, install Ubuntu or do admin tasks to repair your system. It is not for general usage. All bets are of when you want to use WINE inside a live session.

What you want is a "persistent live Ubuntu USB" ( How to make a persistent live Ubuntu USB with more than 4GB )

  Finally if I install WINE and decide to play the game, will it break the NTFS drive the game was installed on in a Windows machine? I know it will probably break the game so I made another copy of it but both are on an NTFS drive.

All bets are of when it comes to Windows related software. That includes WINE but also SAMBA. Even with a normal installation those should be avoided.


Rename file using regex (Linux Command line)

You must have a look at rename command. It accepts regex patterns.

Usage:

rename [options] [Perl regex search/replace expression] [files]

From man rename:

-v, --verbose
       Verbose: print names of files successfully renamed.
-n, --no-act
       No Action: show what files would have been renamed.

EDIT:

The appropriate regex for your file names is _\d{4}-\d{2}-\d{2}_\d{2}-\d{2}. So you can find this in file names and then replace it with nothing as below:

rename -v -n 's/_\d{4}-\d{2}-\d{2}_\d{2}-\d{2}//' *.sql.gz

I didn't test above command, but it must work.


Do I need internet connection to use ppa ondrej?

An internet connection is required when adding a PPA so the key file can be downloaded, then installed. Then the PPA is activated.  After the PPA is active, you can download and install the PHP version you want.

Hope this helps!


Is the Ubuntu Edge phone going to come out in the United States?

No, it will never come out anywhere. https://en.wikipedia.org/wiki/Ubuntu_Edge  revealed it fell 64% short of its funding goal, confirmed by http://arstechnica.com/information-technology/2013/08/ubuntu-edge-is-dead-long-live-ubuntu-phones/


Just move the folder to the data partition and create a symlink in its old place pointing to the new location. Something like this:

mv ~/Steam /mnt/Data/Steam
ln -s /mnt/Data/Steam ~/Steam

In Steam's case, there are a few extra files that you should move:

cd ~/.local/share
mv Steam/ /mnt/Data/Local-Steam
ln -s /mnt/Data/Local-Steam Steam


I would have thought that if a program was capable of running on the Ubuntu operating system then it should run on any platform that is running Ubuntu wether it be PC or Mac or Raspberry Pi ?

No. Well not exactly no. It can run but you need to find the source and compile it for that platform. And it might need editing source files to get it to work as intended.

  Am I wrong in this assumption?

Yes, it is called architecture and there are 2 main: amd64 (or x64 or 64-bit) and arm. We used to also have i386 (or x86 or 32 bit) but that got phased out (a few others are MIPS, Power ISA (IBM), SPARC (SUN), Itanium (HP) but those are not really found on consumer hardware). Newer Ubuntu can no longer be installed on 32-bit platforms though 32-bit software can run on a 64-bit machine.

  but I must also check it will run with a particular processor

Inside the OS itself installation of software is done for that type of architecture unless you tell it to pick another architecture. Personal downloads though should be with the architecture in mind. arm software does not run on amd and amd software does not run on arm.

  and not assume like in windows I can run any programs that is designed to run on that particular version of windows regardless of the processor that’s is runing the windows operating system Clarity on this issue would be welcomed

Not true. It is the hardware that is important. An amd64 machine will not run arm software regardless of the operating system. To run such software you need to download the source and then compile that for the architecture you need.

  I have a Raspberry Pi 4 running Ubuntu 20.04 operating system

You need ARM for that.

Interesting read:

  Q: Why do you use ARM processors and not an x86 processor like Intel? Why not partner with AMD? Ryzen on Raspberry!

  A: It's an interesting idea, primarily because it would allow us to run "regular" Windows. But that's less useful than it once was, and the power/price/performance/area advantages of the ARM architecture are pretty convincing.


Every time I open the software center I get "failed to execute child process"

try purging software center:
CTRL + ALT + T:
sudo apt-get purge software-center
sudo apt-get install software-center


You might want to format your complete disk to NTFS format. Windows isn't very keen on anything else when it comes to installing it on your hard drive. With completely formatting it in NTFS (fx. with Gparted when in a Live CD session), you are also deleting GRUB. You should be able to boot into the Windows installer after that.


EOG (Image Viewer) fails to open gif files with incorrect png extension - how can I solve this?

If you use (from command line or within a script... if you need the script just ask ;) ) the command file thisimage.png, it will tell you what image format you actually have.... Then you can rename accordingly...

This is a sample of what I get with a file with incorrect file extension .png which is really a jpg file:

user@computer:$ file logo.png
logo.png: JPEG image data, JFIF standard 1.01

Edit: Oh, ok, I was lazy before... Here's an script that will rename actual gif files that are named with .png extension to their correct extension .gif:

#!/bin/bash
for NAME in $(ls *.png); do

if [ "$(file $NAME|grep GIF)" ]; then

echo "Renaming ${NAME} to ${NAME%.*}.gif"
mv ${NAME} ${NAME%.*}.gif

fi

done


Install (side-by-side with windows) & uninstall ubuntu

When you install Ubuntu, it should give you an option to install side by side. To delete, you just need to delete the partition that Ubuntu is installed on and then. If you are using MBR and not GPT, you also need to fix your boot loader. Before you install, make sure you have a recovery CD for Windows in case you break anything.


What about this? I don't know why you have to iterate each file and why you can't just copy the lot... But this should work slightly better than by parsing ls's output.

for usb_key in /media/*;
do
    cp -Ra /home/daniele/USB/MASTER/* $usb_key
    umount /media/$usb_key
done;

#alert me that the work is done
totem /home/daniele/USB/0016.mp3 &
exit

Just to explain what's happening, for breaks on all spaces when parsing external input (as it was with your code). You can see that in operation by going to a directory with spaced files in and running:

for file in `ls -1`; do echo $file; done

In my TV directory, I see output like:

The
Big
Bang
Theory
The
Cleveland
Show
The

I think there is a way to change the break sequences but it's just easier to use bash's native file-finding syntax. Or use find ... -exec ... which is very powerful itself.


Can't find or run spotify after `snap install spotify`

Check your $PATH variable by executing in a Terminal: echo $PATH

The output should be very similar to this:

/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin:/usr/games:/usr/local/games:/snap/bin:/usr/share/rvm/bin

You have to verify if /snap/bin is included in this $PATH, otherwise you have to add it manually, here is how to do it: How do I modify my PATH so that the changes are available in every Terminal session.

If this doesn't work, try deleting and installing again the snap, the required commands are:

Execute sudo snap list to verify if Spotify is installed.
Use sudo snap remove spotify to delete it.
Use sudo snap install spotify to re-install it again.

After installing it you can run the command which spotify to see if it is recognized now.

Hope it helps, good luck!


Issues adding Ubuntu 14.04 to Windows Server 2012 AD domain

after 4 days of battling with various settings to get winbind to work, I found this: https://help.ubuntu.com/lts/serverguide/sssd-ad.html

5 minutes and the host was logging onto the domain.


Problem In Installing Netbeans IDE in Ubuntu 18.04

The error No such file or directory occurs when the file/directory mentioned in the command given does not exist in the location.

Assuming you downloaded the file to the default Downloads folder then you need to go to that folder first:

cd Downloads

Then issue the command you want, chmod +x netbeans-8.2-javaee-linux.sh


dd will NOT recognise my sdcard ie "no such file or directory" it is seen by all other routes gparted,df,lsusb,blkid,,,so on

You're using

dd if=/dev/zero of=$/dev/sdb1 bs=1M count=1

/dev/sdb1 is a path, just like /dev/zero. You're using $/dev/sdb1, which should be just /dev/sdb1.

So you should use:

dd if=/dev/zero of=/dev/sdb1 bs=1M count=1

Also, this way you're only filling the first partition with zeros. If you you want to write zeros to the whole drive you should use /dev/sdb instead of  /dev/sdb1.


Any compelling reasons to perform a "do-release-upgrade"?

You should not have both the Ubuntu package, and a custom compiled version of a program installed at the same time.  Either use the Ubuntu package, or build and install it yourself; do not do both.  When you have both installed they will conflict with one another as you have seen.

You can not choose to upgrade to new versions in the newer release; you only get upgrades in the old release, which are limited to security fixes.  If you are satisfied with that, then no, there is no need to upgrade until the old release reaches end of life.  This is the reason to stick with an LTS release: it is supported much longer so you won't have to upgrade after less than 18 months.


I found the solution. Google Earth is now running, but I'm getting this error when I try to search for a location: invalid url. To get Google Earth to work I went back to www.google.com/earth/ and picked my 32-bit .deb installation file, there's also a 64-bit .deb file. Then I noticed the "Advanced" tab above and clicked it. There is a choice for an older version 7.0 instead of 7.1, so I downloaded it. Instead of a .deb file it's a .bin file.

I then tried over and over again to find the right application to open it. After several non-working choices and much frustration I tried again and chose to run with "gedit". It took forever, but it loaded it and it's working. I had to look and click on "bin" and then open. I hope this helps you!


How to set Dejavu as default font for all applications in my lxde?

To input lxappearnce in console,to select font from the poping window.


Ubuntu 15.04 nvidia 346.59 external monitor display - windows stretched; click offset is off

I've had the same problem for months and even downgraded to 14.04.2 to see if that would help with Nvidia 331-updates. After a bit of research I found a bug on launchpad and the [fix] (https://bugs.launchpad.net/ubuntu/+source/xorg/+bug/1382462/comments/35) suggested here sorted it for me at last (Asus N56VM with Nvidia 630M/Intel). Phew!

  [Install] CompizConfig Settings Manager, go to "General Options", then
  "Display Settings" and do the following:

  Uncheck "Detect Outputs"
  In the Outputs array, set the resolutions of each of your screens. The numbers after the resolution "1920x1080+0+0" are the offset. It's
  important to add this offset according to your needs. I have two full
  HD screens, so I added the following configuration: 1920x1080+0+0
  1920x1080+1920+0

  The second output has an offset of 1920, because it is on the right
  side of the first output, which has a width of 1920.


Why doesn't compiz show the outline when I use the grid?

I have upgraded to 11.10 and the problem is now gone. It appears to have been a localized problem with my Compiz installation.


I had a similar problem with my HP Envy running Ubuntu 16.04.  I installed Xorg all video:

sudo apt install xserver-xorg-video-all

This fixed the problem for me.  I tried downloading the video driver specific to my chip set, but I received the same error at start up.


Is my Ubuntu installation full? An app said my disk was full on Xubuntu 18.04

Finally it seems to have worked.  I basically followed the article Partition Home Moving

I was able to create an ext4 partition on my 2nd harddrive ~180 Gb of space and use it for my /home directory and presumably programs will use that space.  The Xubuntu OS will continue to use the original 15 Gb ext4 partition on the boot drive.

It was not immediately apparent that it worked from my graphical Desktop info.  The solution Question & answers are here: Failed to move /home directory to a new partition?


Ok so I found a solution but not quite an answer, a work around.

The transmission Qt Client for windows has this feature but of course is not the web client.

https://transmissionbt.com/


UPDATE: If the package libtorrent-rasterbar6 is already installed, try reinsalling it.

sudo apt-get install --reinstall libtorrent-rasterbar6

First install libtorrent-rasterbar6:

sudo apt-get install libtorrent-rasterbar6

Then install python-libtorrent:

sudo apt-get install python-libtorrent

And then install deluge:

sudo apt-get install deluge

Note: If you find any other dependencies at any stage, install them first.


How do I add English-UK thesaurus and other locales to LibreOffice?

Here's what worked for me. I found most of these steps in this blog post, credit to the author for figuring this out.

Download the spelling/hyphen/thesaurus dictionaries you want from LibreOffice's extensions download page.
Install them in LibreOffice Tools -> Extension Manager -> Add and then close LibreOffice.
sudo apt-get install libmythes-1.2-0 hunspell
sudo apt-get install mythes-en-us hunspell-en-us
cd /usr/share/mythes/
sudo ln -s th_en_US_v2.idx th_en_GB_v2.idx
sudo ln -s th_en_US_v2.dat th_en_GB_v2.dat
Open LibreOffice Writer and go to Tools -> Options -> Language Settings -> Writing Aids.
Verify the new thesaurus is selected, then from Writer test it by pressing Ctrl + F7 to bring up the thesaurus dialogue.


Download/upload speed indicator applet for 14.04

Indicator multiload has that and much more

sudo apt-get install indicator-multiload

to start it up:

indicator-multiload &

You can set it to print a graph for each category, you can set it to display text, or you can set it to display both.

Categories include: CPU, memory, netspeed, swap, load, and disk IO speed.


How to search all snap packages for filename?

I have reported two relevant bugs in 2018:

bug 1748628 - snap should provide functionality to show files, which are included into non-installed snap (analog of apt-file list)
bug 1748633 - snap should provide functionality to find non-installed snap which contain known file (analog of apt-file search)

and both are marked as WishList so this functionality is not yet implemented.
Theoretically the command-not-found may help finding relevant snap name with known executable, but I do not know yet how to automate it.


In a virtual machine, Windows 10 needs the host (your computer) processor to support Intel VT-x/AMD-v. AMD-v is always enabled, but Intel VT-x is usually disabled, so you probably have an Intel processor. Try going into your BIOS (the startup screen should say something like Press [some key] to enter Setup, press that key) and look for an option like “Intel Virtualization Technology,” “Intel VT-x,” “Virtualization Extensions,” “Vanderpool,” or something like that and enable it. Hopefully that should solve the problem. More information: How to Enable Intel VT-x in Your Computer’s BIOS or UEFI Firmware at the How-To Geek


Does every Ubuntu question answer apply to it's derivatives? (Xubuntu, Lubuntu, Kubuntu)

Calling the different flavors of Ubuntu derivatives explains it all in a nutshell. They are all the same under the hood except for whatever packages are bundled with each desktop environment. Packages in the default Ubuntu repositories can usually be installed on any Ubuntu derivative.


1) Not really, no. You can theoretically use the lowest level compression at build-time of the debs, but the Ubuntu builders don't do this. The slow part is probably not the decompression, but the unpacking of files and writing them to disk. Several things can affect disk I/O times here, including BIOS settings, drive rotational speed, and drive type. You could theoretically have the data archive inside the deb be data.tar though it would still have slight compression (or inflation), and wouldn't help with the speed of writing to disk.

2) See 1).

3) Yes, it would, if you were to take a binary deb and replace the data.tar.gz inside it, the size, timestamp, etc… would change. To be able to do something, you'd need to do it at build time of the deb package.

On the other hand, as I said, the speed issue is probably writing to disk. You can check your BIOS to change some settings for the disk. If your using a SATA disk, and your BIOS is set to communicate with it as IDE/ATAPI, then read/write speed is going to be extremely slow. Change the setting to AHCI if avaialble. Another common issue is disk RPM if you're not using an SSD. You didn't specify what size or RPM disk you are using, but a 2.5" 4500-5400 RPM disk is going to be slower than a 3.5" disk that does anywhere between 7200-15000 RPM. And a SATA I (1.5Gbps) disk is going to be slower than a SATA II (3.0 Gbps) or III (6.0 Gbps) disk. Disk cache size also plays an important role here. You also didn't say which Atom you had, or how much RAM, but they aren't as slow as one might think. They aren't a top shelf i7, but the amount of compression used in deb packages is not generally a problem for them.


11.10 external display on ATI configuration

Your ATI card is listed as supported by the close source ATI driver (Catalyst)

To install it run

sudo apt-get install fglrx fglrx-amdcccle

And reboot.

For additional details see

http://wiki.cchtml.com/index.php/Hardware

http://wiki.cchtml.com/index.php/Ubuntu_Oneiric_Installation_Guide


Kill off apache processes when memory usage hits 90%

#!/bin/sh
TOTAL=`cat /proc/meminfo | grep MemTotal: | awk '{print $2}'`
USEDMEM=`cat /proc/meminfo | grep Active: | awk '{print $2}'`
LOG=/var/log/apache-free.log
LIMIT=90
DATA=`date +%Y-%m-%d" "%H:%M:%S`

if [ "$USEDMEM" -gt 0 ]
 then
    USEDMEMPER=$(($USEDMEM * 100 / $TOTAL))
    USEDMEMPERLOG=$USEDMEMPER
    if [ $USEDMEMPER -lt $LIMIT ]; then
                echo "$DATA | Memory: $USEDMEMPER%, (limit: $LIMIT%) | Do not restart!"
    else
                echo "$DATA | Memory limit reached ($LIMIT%): $USEDMEMPERLOG% | Restarting apache..."
                # restart apache
                sudo service apache2 restart
                TOTAL=`cat /proc/meminfo | grep MemTotal: | awk '{print $2}'`
                USEDMEM=`cat /proc/meminfo | grep Active: | awk '{print $2}'`
                USEDMEMPER=$(($USEDMEM * 100 / $TOTAL))
                echo "$DATA | Memory limit reached ($LIMIT%): $USEDMEMPERLOG% | Memory after restart: $USEDMEMPER%" >> $LOG
                tail -1 $LOG
    fi
fi

Save this code as apache-free.sh file and set as executable and add permissions

chmod +X apache-free.sh
chmod 755 apache-free.sh

add a crontab schedule, to run every 1 minute (feel free to redefine this time)

crontab -e

*/1 * * * * cd /dir/of/script && sh apache-free.sh

This script saves a log file in /var/log/apache-free.log with some informations about execution and memory saves.

** Remember: It's only a bandaid! It's necessary detect the real problem with your server.

I hope helps you!


Well this is a rather strange question since the answer has too many variables. The "normal" time should be between 5 to 15 minutes. I say normal when I talk about computers with 2GB RAM and a CPU around a Core 2 Duo. Normal in this time of technology. But some variables that will change the time it takes to install (Since the download depends on the connection) are:

CPU You are using - Slow CPU, slower install. Not much slower, but slow nevertheless.
Memory you have - This one affects A LOT how long it takes. The less memory, the more it takes. 512MB or more is good.
Hard Drive - Does not affect as much as CPU or RAM but it affects anyway. If you have like a Quantum Fireball 4GB Hard drive Pata 5400RPM (Like in THIS year!!) then that is going to take more than for example a Hitachi 1TB F3 7200RPM Sata2 64MB Cache + French Fries.
Motherboard - This puppy is up with how much RAM affects the install. If you have some horrible motherboard (The cheap ones you get in a happy meal) it might look like ages. If you have some pure Intel, Asus, MSI, etc.. motherboard that is known to give power when needed then you are good.
Installation Unit - Are you using a Pen Drive to install it, an ISO right from the windows Daemon Tools. a CD/DVD from a good or bad/old cd-rom/dvd-rom drive, are you doing it from the network... you get my point. This also affects the speed and overall time.

For cases I had a slow install that took me 35 minutes on a Pentium 3. The fastest was on a Core i7 from a friend who I invited to Linux and that took 3 minutes (I went to the bathroom and when I got back it was done).

Also remember that what options you select in the install. It is not the same to install Ubuntu selecting all 3rd party hardware drivers, packages, etc.., and updates than to not select them at all. Installing ubuntu with everything selected will take a lot of time, not the 35 minutes I mentioned but more than an hour.

So like I said, a lot of variables.


Visual Studio Code on Ubuntu 12.04 32bit

I recommend you to completely remove both Atom and Visual Studio Code(even the configuration files) because they both run on Electron framework and it seems that there is some problem with it. Also remove the installers you used to install them. Then install Node.js in your system. Then download installer(.deb packages) of Visual Studio Code(32-bit) and install it. To install Atom(32-bit), go to the link given below and follow the instructions there :-
How I can create a 32-bit version of Atom?
Hope it works !
If it still doesn't work, file an issue at Electron GitHub


Not all updates can be installed, partial upgrade proposed

This situation is nothing to worry about. It happens mainly when there are several updates in a row and you should see it solved without any extra work within a day.

It is almost never useful to "Run a partial upgrade" - better wait.

sudo apt-get dist-upgrade, sudo apt-get upgrade or sudo apt-get update do not upgrade the system to the next version - the names are rather misleading, they come from how they were used in Debian-systems.


Switch command output language from native language to english

export LC_ALL=C is enough. All subsequent command output will be in English.

More information: What does "LC_ALL=C" do?

If you want to revert to the native language, unset the LC_ALL variable:

unset LC_ALL


I asume that you might have to update the firmware as I have tried it without updating the firmware and it does not work for me out of the box with radeon.dpm=1 as boot parameter. I have the Radeon HD 4225 card and my notebook heats up like mad. Powertop shows a consumption of 20 Watts in idle. I didn't update the firmeware as I could not find appropriate files.


Ubuntu 14.04 stuck at login after update

Have you tried pressing:
 Ctrl + Alt + F1

you should be able to fix it if you can access the terminal. Try running this in the terminal:

sudo apt-get install unity

Followed by:

sudo reboot

This helped me when i had a similar issue.


How to get Wireless working with Ubuntu 11 Server?

Ok, now I think I can answer my own question...

I needed

wireless-tools network-manager-gnome

then running nm-applet and it will do the rest ... I think thats all ...


How do I install the latest NVIDIA drivers from the .run file?

Make sure that no proprietary drivers are installed. If they are, un-activate them - otherwise, they WILL cause problems.

This is the procedure I use:

Press Ctrl + Alt + F1.
Login
cd to the location of the file (only if it is in a location other than your $HOME directory)
Thereafter, run the following commands:

sudo su
sudo service lightdm stop ## if you are using 11.04 replace `lightdm` with `gdm`
chmod +x NVIDIA-Linux-x86_64-285.05.09.run
sudo sh NVIDIA-Linux-x86_64-285.05.09.run

The installer will then complain about Nouveau needing to be disabled. It will do so, then you will need to restart your PC. You will then have to redo the above mentioned procedure again to restart the installation.

If you have another driver installed, this installer will uninstall it for you.

Works every time for me.

See also:

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


How can I chmod 777 all subfolders of /var/www?

This is bad practice, but hopefully you are just using this for development, or you have another good reason. You can specify the permissions when you create a directory using the -m option:

mkdir -m 777 dirname

Or you can set the permissions recursively.

sudo chmod -R 777 /var/www

Before using either of these, really consider if you want your filesystem to be so accessible.

Edit:
As mentioned by Rinzwind here is a better way of accomplishing what you want.

Check what group owns your /var/www directory and add your user to that group.

sudo adduser yourusername group

The group is probably www-data.

Then you will be OK with setting your permissions to 775.


PhotoRec extension customization is taking parts not defined in the signature

I am currently working through a similar issue that required me to create my own .sig file. The best sources I have found are:

Add your own extension to PhotoRec
Autopsy User Documentation  4.1

In the first article it mentions using hexdump which is apart of "bsdmainutils" package. Use that to extract the hex representation of the file for a better match.

Ex: (I had to recover some MySQL DB files)

hexdump -C mysql-recovery/some-one-might-get-fired.myd | head

it will dump

00000000  03 0a b4 00 5d ca f4 ef  f9 ff f7 ef 46 af 51 fc  |....].......F.Q.|
00000010  ff 03 08 79 e2 fa 81 b6  ff ff ff 4b 85 53 fd f6  |...y.......K.S..|
00000020  ff ff dd bb fa f1 3c 00  dc ff ac ff 7f fb 7f bd  |......<.........|
00000030  f8 01 7f 7a ff ff 5b fe  7f 63 00 0c 8f fe db fb  |...z..[..c......|
00000040  ff 07 31 10 ec dd 33 09  00 00 01 31 00 00 00 03  |..1...3....1....|

I take only the first line but in some cases (see link 1) you might need a portion of the second line or other cases you will have to skip the first lines completely to find a pattern further down to properly identify the file.

For example an .idb file has the following header but with idb files the first rows are different from what I gather. So I need an offset to get to the portion of the file that has a signature that is the same across multiple idb files.

hexdump -s 0 -C mysql-recovery/users.ibd | head

00000000  c7 60 ef 59 00 00 00 00  00 00 00 00 00 00 00 00  |.`.Y............|
00000010  00 00 1b 32 0c 91 bd 99  00 08 00 00 00 00 00 00  |...2............|
00000020  00 00 00 00 01 11 00 00  01 11 00 00 00 00 00 00  |................|
00000030  14 00 00 00 12 40 00 00  00 00 00 00 00 38 00 00  |.....@.......8..|
00000040  00 01 00 00 00 00 0b b6  00 00 00 00 0b b6 00 00  |................|
00000050  00 03 00 00 00 00 01 16  00 00 00 00 00 9e 00 00  |................|
00000060  00 00 ff ff ff ff 00 00  ff ff ff ff 00 00 00 00  |................|
00000070  00 00 00 00 00 0b 00 00  00 00 ff ff ff ff 00 00  |................|
00000080  ff ff ff ff 00 00 00 00  00 01 00 00 00 02 00 26  |...............&|
00000090  00 00 00 02 00 26 00 00  00 00 00 00 00 00 00 00  |.....&..........|

The last two lines here are what I need based on comparisons that I have made looking at other .idb files. Count each pair of numbers as one and that is your offset. To test I run

hexdump -s 128 -C mysql-recovery/users.ibd | head

00000080  ff ff ff ff 00 00 00 00  00 01 00 00 00 02 00 26  |...............&|
00000090  00 00 00 02 00 26 00 00  00 00 00 00 00 00 00 00  |.....&..........|
000000a0  00 00 00 c6 ff ff ff ff  00 00 00 00 00 02 aa aa  |................|
000000b0  ea ff ff ab ff bf ff bf  ff ef ff ff fb fe 00 00  |................|
000000c0  00 00 00 00 00 00 00 00  00 00 01 16 00 00 00 00  |................|
000000d0  00 9e 00 00 00 02 bf ff  fa fb ff bf ef ef bf ab  |................|
000000e0  bf be fe ff ef fe 00 00  00 00 00 00 00 02 00 00  |................|
000000f0  00 00 02 ce 00 00 00 00  09 5e 00 00 00 04 aa aa  |.........^......|
00000100  aa aa aa aa aa aa aa ab  aa ba aa aa aa aa 00 00  |................|
00000110  00 00 00 00 00 00 ff ff  ff ff 00 00 00 00 00 00  |................|

My .photorec.sig file looks like this for .myd and .idb file types.

myd 0 0x030ab4005dcaf4eff9fff7ef46af51fc
idb 128 0xffffffff000000000001000000020026

The recovered file still needs to be tested but this is how I added a custom sig for the file type. I hope this helps others and please make corrections and I will edit the post.


How to check when the Ubuntu server was rebooted?

You can use last to see login information. To know about system reboot, enter in a terminal,

last | grep reboot


Will it still be possible to play Flash games after support is dropped?

One doesn't really need wine or "in browser flash" to run flash (.swf) files.
A project named FlashPlayerStandalone allows us to run flash files directly using flashplayer binary.
To run any swf file, you just have to run ./flashplayer mygame.swf in terminal.
You can download the binary from here.
Direct link: https://fpdownload.macromedia.com/pub/flashplayer/updaters/32/flash_player_sa_linux.x86_64.tar.gz
You can keep backup of binaries locally or on cloud in case they are discontinued and removed in future.


Dropbox no longer works under Ubuntu 13.10

I had the same problem. My solution was: Uninstall the existing Dropbox client from the Ubuntu Software Center and install the client version from the Dropbox website ( https://www.dropbox.com/install ).


Python's ImportError: No module named repository

I must admit one thing: I like to toy with python a lot, because I use python a lot, and as a consequence (as we are human) our toying can break things.

So I came to this problem by simply wanting to install new piece of software on my Ubuntu (14.04 probably irrelevant for this cause). I start 'Ubunty Software Center' and nothing happens.

Upon an investigation as to where this piece starts I learn it can be called from the command line as:

$ software-center
Traceback (most recent call last):
  File "/usr/bin/software-center", line 25, in <module>
    from gi.repository import Gtk, GObject
ImportError: No module named repository

Gee. I am in similar shoes as you are. How the heck I endup in this situation to break a system tool? Of course needless to say that I have numerous different python (both 2 and 3 and then some other) installations so what software center expects to run?

$ more /usr/bin/software-center
#! /usr/bin/python
# Copyright (C) 2009-2011 Canonical
#
# Authors:
#  Michael Vogt
la la la...

ok it is /usr/bin/python then. Let's see:

$ /usr/bin/python --version
Python 2.7.12

to be honest I expected some lower version, but this is fine (hopefully). So why I cannot find gi.repository?

$ /usr/bin/python
Python 2.7.12 (default, Jan  9 2017, 12:16:27)
[GCC 4.8.4] on linux2
Type "help", "copyright", "credits" or "license" for more information.
>>> import gi.repository
Traceback (most recent call last):
  File "<stdin>", line 1, in <module>
ImportError: No module named repository
>>> import gi
>>> import gi.repository
Traceback (most recent call last):
  File "<stdin>", line 1, in <module>
ImportError: No module named repository

Gi loads, but has no repository. This is the puzzle that took me around many questions and answers on stack overflow. Lot of hints here and there, installed this, installed that, tried this & that, including reinstalling modules even default python using apt-get and reinstalling left and right this and that module. But the problem was stubborn, it kept insisting on not finding the repository no matter what I have tried of various recipes in different answers.

In short - NOTHING of that WORKED.

I took a break to think how to approach the problem. After a while I come to a question:

How do I know which library I am actually loading? Import in Python is very well (however somewhat superficially) documented. It lacks deeper documentation that can actually help you to hack around. Was contemplating to fix the issue via PYTHONPATH. But then...

By stroke of luck I find following fine piece of writing. Cannot thank enough for this article as it gave essential hints where to look for the problem. Read it carefully!

https://leemendelowitz.github.io/blog/how-does-python-find-packages.html

Lee, you are my hero!

Following hints from Lee's article I look into which paths are examined:

>>> import sys
>>> print '\n'.join(sys.path)

/usr/local/lib/python2.7/dist-packages/gi-1.2-py2.7.egg
/usr/lib/python2.7/dist-packages
/usr/lib/python2.7
/usr/lib/python2.7/plat-x86_64-linux-gnu
/usr/lib/python2.7/lib-tk
/usr/lib/python2.7/lib-old
/usr/lib/python2.7/lib-dynload
... la la la ...

hey, what the /usr/local/lib/python2.7/dist-packages/gi-1.2-py2.7.egg does in this list? Aren't it supposed to load libraries from /usr/lib/python2.7/ not /usr/local/lib/python2.7/ that's totally different Python installation and version ?!?! I must have messed something at some stage.

Knowing from other hints that 'gi' is not normally installed via pip (but via apt-get install python-gi) and I remember that among other things I have installed gi in order to solve this problem (which was unsucessful at a time). Its not that reading of other hints and ideas did not help - they added nibbles here and there and shed some light to a problem.

I had an idea: What if I simply deinstall that 'gi'. Perhaps paths would come back to normal. However I have to make sure that I am hitting right pip (not one from command line). To ensure that (exit() from python) run pip module instead of pip itself (what does pip do to find things? this is still unanswered.)

$ sudo /usr/bin/python -m pip uninstall gi
Uninstalling gi:
  /usr/local/lib/python2.7/dist-packages/gi-1.2-py2.7.egg
Proceed (y/n)? y
  Successfully uninstalled gi

Nice. Even if python tries to load gi, it will not find it in /usr/local/lib/python2.7/dist-packages/

as a result:

$ /usr/bin/python
Python 2.7.12 (default, Jan  9 2017, 12:16:27)
[GCC 4.8.4] on linux2
Type "help", "copyright", "credits" or "license" for more information.
>>> import sys
>>> print '\n'.join(sys.path)

/usr/lib/python2.7/dist-packages
/usr/lib/python2.7
/usr/lib/python2.7/plat-x86_64-linux-gnu
/usr/lib/python2.7/lib-tk
/usr/lib/python2.7/lib-old
/usr/lib/python2.7/lib-dynload
/home/user/.local/lib/python2.7/site-packages
/usr/local/lib/python2.7/dist-packages
/usr/lib/python2.7/dist-packages/PILcompat
/usr/lib/python2.7/dist-packages/gst-0.10
/usr/lib/python2.7/dist-packages/gtk-2.0
/usr/lib/pymodules/python2.7
/usr/lib/python2.7/dist-packages/ubuntu-sso-client
/usr/lib/python2.7/dist-packages/wx-2.8-gtk2-unicode

How nice :). Lets try now:

$ software-center

Voila! It's working!!! Yeee!!!

Now, moral of the story:

It is not always what you did not install (because you believe its missing), but something that you have installed extra and it shall be better to be removed.

Hope this helps someone.


GRUB shows up after installing upstart-sysv in Ubuntu 16.04

Nevermind, I did a sudo apt-get purge upstart-sysv command, and sudo update-initramfs -u after. It solved my problem. Hmmmm... Weird.


Once you log in to the command line, check the logs in /var/log. Specifically, check Xorg.0.log, although any recently-updated log might be helpful.


Can't run genymotion, because "AMD-V is disabled"

It is saying what is the problem. All you have to do is enable AMD-V in the BIOS. It is mostly disabled in BIOS. So, reboot the desktop and enter the bios menu. The traditional way is keep on pressing "Del" key on the keyboard and you'll be seeing the BIOS screen. If it doesn't work, try F12 or F2 etc.

Once you are in the BIOS setup, look for Advanced BIOS settings or something which relates to that phrase. You'll find something related to "Virtualization" there. Just move the arrow keys downwards and enable it. After that press F10 to save and exit setup.


How do you disable touchpad in Ubuntu 14.04LTS?

Open a terminal with CTRL + ALT + T then;

copy and paste this synclient TouchpadOff=1 and hit enter.

to enable the touchpad again, copy and paste this synclient TouchpadOff=0 and hit enter.


Alt-Tab shows two application switchers on Unity

Answer taken from an edit by the OP to their question:

  I solved this problem by disabling application switcher in CCSM (Compizconfig settings manager).

CCSM can be installed by the following command:

$ sudo apt-get install compizconfig-settings-manager

edit for better understanding: To get rid of the switcher-icons in the foreground and only keep the standard application-switcher-icons that come with a standard ubuntu installation, disable static application switcher within CCSM. Let the keybindings solely control the functions within the "switcher" submenu of ubuntu-unity-plugin of CCSM.


Software Updater - Ubuntu 18.04. How to prevent from update anything

You missed another command that upgrade the system package, is it apt-get dist-upgrade.

So to simply put it up, you ran these command to upgrade Ubuntu package:

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

There is also apt full-upgrade that function the same as apt-get dist-upgrade, this command only exist on apt tool that available from 14.04 onwards.

Note: apt-get update command does not install new versions of software. It updates the list of packages and their version, this information then used as reference for package dependencies, version, etc.


Problems, connecting Android ICS to Ubuntu using MTP

Please note the Terence Egan Blog where you took the instructions from is a copy of an OMG Ubuntu article.

He has missed an important step to restart your PC before running the Echo commands  I suggest you try and reinstall from the original OMG Ubuntu source.  Click on this link


Figured it out. Apparently I need to include the -i flag to actually edit the file. So I am using -ri instead of -r now and it works.

Hope this helps someone out there. Found the answer from heemayl, of course. You rock.


Linking stuff goes at end, try that:

gcc $(pkg-config --cflags dbus-1 dbus-glib-1) -o dbus-ping-pong dbus-ping-pong.c $(pkg-config --libs dbus-1 dbus-glib-1)

By the way, after compiling successfully using that command, I launched the program und i've got that:

  Error: The name com.example.DBus.Echo was not provided by any .service
  files

Do you know how might we use that program?

PS: I've used $( ... ) rather than backticks because it didn't pass the form correctly.

PS2: I've found the solution at my own question:

Create the file "/usr/share/dbus-1/services/com.example.DBus.Echo.service" with the following content:

[D-BUS Service]
Name=com.example.DBus.Echo
Exec=/home/telecom/bachelordbus/dbus-ping-pong/dbus-ping-pong server
User=root

Thank you, Eliah, for the explanations.


Try running sudo service pulseaudio restart. Also try restarting if you haven't already done so.


Very bad FPS on DOTA 2 with Ubuntu 13.10 using HD7770

Fixed this one by myself.

Upgraded from 13.10 to 14.04.
Made sure that Radeon dynamic power management (dpm) is enabled in grub file (see Radeon Driver)
used the Open Source Graphics Driver from the Oibaf ppa

And that's it. Everything works like a charm.


How to dual boot Lubuntu alongside Tails OS on a pendrive

Ventoy
Ventoy, https://www.ventoy.net/en/isolist.html can be installed to a USB drive in seconds. There are both Windows and Ubuntu versions.
Once installed you only need to drop an ISO file onto the USB and it becomes bootable.
Both Tails and Lubuntu are OS that work as multiboots in Ventoy.
Most Debian based operating systems can also be made persistent.


Ubuntu 18 install - grub error : invalid buffer alignment

I had a similar issue trying to install Debian 10. It turned out that the supplier had formatted the disk as NTFS. I booted from a live CD, ran GParted to remove teh NTFS partition, and create the ext4 and lvm partitions that I wanted. The install then proceeded OK.


How to restore windows 7 from boot on grub2

You damaged Windows, but it is easily repairable from Windows repairCD or flash drive if you have one.

When you installed Windows, was the other drive the boot drive in BIOS? Windows installs its boot partition, typically 100MB and hidden in Windows to the drive that is the boot drive in BIOS. And that partition has boot flag (active partition) so Windows knows which partition to boot from.

But you do not have to have separate Windows boot partition. But you are missing bootmgr and the BCD. If you run Windows repairs on your Windows NTFS partition that should add those. Be sure to first set Windows drive as BIOS boot drive or Windows repairs may put a new boot partition into sdb, and since it does not see Linux partitions and rewrites partition table will destroy Linux on sdb.

Grub does not use boot flag, but some BIOS will not let you boot without boot flag on a primary partition. I would suggest moving boot flag from sdb5 to sdb1, but that is not related and may not be required.

After you fix Windows, reset BIOS to boot from sdb. Boot into Ubuntu and run this and it will add Windows to grub menu. And if any issues you can directly boot Windows on sda from BIOS or one time boot key.

sudo update-grub


How to get a working gcc 4.9 on an ARM system

Apparently the ./configure script was wrong and made clashing definitions into some of the generated header files or incorrectly set some of the HAVE_* macros.

This indicates configuration problems. You should check the documentation in the INSTALL directory to find out what options you need to specify to make it compile.

Building cross compilers can be tricky.


First off it is NEVER recommended to run any operating system on an ANY external drive. That being said I have had a similar problem. If your external drive is a HDD meaning it has a spinning disk then the problem is that your bios wants to boot something faster then you external drive can spin up. To fix this go into BIOS and most likely a boot tab and look for something that says Harddisk Delay and set it to something higher. This will delay the boot process and allow time for your external drive to spin up allowing bios to detect it.


Try typing kdiff in a terminal and let it auto-complete by pressing TAB, and press enter. If nothing happens, press TAB twice to see your options. Usually when you install a package like this, the binary for that package has a similar name to the package itself. Not always, but it's a good place to start.

If you want to create a shortcut on your desktop, all you really need to know is what command launches the application. Right click, create a shortcut, fill in the name of the shortcut and what command to run. This is roughly how it's done in XFCE anyway. Usually icons are available automatically, sometimes you need to find them manually (or even download them yourself).


Dual Screen misery, unable to install nvidia without crashing unity and turning machine into brick

Did you activate your discrete card in the BIOS ? Some computer require this before installing the driver.

Although not exactly related to your question about nvidia driver I will answer to this one

Am i better off upgrading to 13.04?

The answer is yes. And right after upgrading to 13.04 you should immediately upgrade to 13.10, Ubuntu 12.10 will be supported until april 2014 but 13.04 until january. If you want your machine to be upgradable up to 14.04 that's what I would do.

ref : http://en.wikipedia.org/wiki/List_of_Ubuntu_releases#Version_timeline


Do updates run in the background on Ubuntu 13.04?

I don't it solve ur problem or not.... But there is some file that will help you.

  cat /etc/update-manager/release-upgrades

See there is entry at last .. Prompt.. Read this file and set as you like it.

Another directory that will help full.

  cd /etc/apt/apt.conf.d/

It contains all information regarding ur updates and upgrades.


An application that resembles Lion's save windows when logging out

This is not exactly what you're asking for, but since it's a virtual machine, you could save the state of the machine instead of shutting down so that it will be in exactly the same state when you start it next.


How can I fix "E:The package linux-modules-5.4.0-56-generic needs to be reinstalled, but I can't find an archive for it."?

This package has been removed from the repositories.
Run
sudo apt remove linux-modules-5.4.0-56-generic

But make sure you have another kernel installed.


Normally, When you run Eclipse from a downloaded version, it should create a correct .desktop file in ~/.local/share/applications on first run.

In this case, for some reason, some lines were messed up:

The Exec= -line should simply show the path to your executable.
The Name= -line obviously went (terribly) wrong as well

How to fix

Just replace:

The line starting with Exec= by:

Exec=/path/to/your/eclipse_executable

(most likely, looking at your Path= -line, it should be: Exec=/home/nakulkumar/Downloads/eclipse/eclipse)
The line starting with Name= by:

Name=Java - Eclipse

As a comparison, this is the .desktop file Eclipse created on my system:

[Desktop Entry]
Encoding=UTF-8
Version=1.0
Type=Application
Name=Java - Eclipse
Icon=eclipse
Path=/home/jacob/eclipse
Exec=/home/jacob/eclipse/eclipse
StartupNotify=false
StartupWMClass=Eclipse
OnlyShowIn=Unity;
X-UnityGenerated=true


Prevent folder deletion for the owner of a folder

I found the answer to my question. I chowned the folders that I didn't want to be deleted to root:root, and then chmodded these folders using 'the sticky bit' (1775 instead of 0775). This way everybody can add files and folders over ftp as they please, but they could not remove the folders that I protected with the sticky bit since you'd have to be a file or folder owner to do that.


AppArmor and ModSecurity gives me Apache2 fail

It says it cannot open the directory /etc/modsecurity; you may try to add explicit filesystem and/or AppArmor permissions for the directory itself, not only for the files inside.


If you haven't resolved this I would go ahead and just re-flash your Jetson with the latest version of Jetpack. This will completely restore your jetson back to a factory state (except it will be running the latest version of Ubuntu L4T of course).

I have done this several times with my TX2 and it always works great. Here are some notes from the last time I had to flash mine:

JETSON TX2 FLASH JETPACK

power off

hold POWER BTN for 5 seconds

connect usb

micro-B plug recovery port -> host

putty serial connection (optional)

Serial line: COM5
Speed: 115200

enter recovery mode

hold REC
press POWER BTN
press RST
release REC after 2 seconds

verify recovery mode

$ lsusb
Bus 001 Device 003: ID 0955:7c18 NVidia Corp.

download and run latest jetpack

https://developer.nvidia.com/embedded/jetpack

$ chmod +x JetPack-L4T-3.3-linux-x64_b39.run
$ ./JetPack-L4T-3.3-linux-x64_b39.run


Some suspicious software making request to nmcheck.gnome.org

nmcheck.gnome.org is not malware. It is the gnome network manager connectivity check (for captive portals/hotspots). Click the link and you will see a single text file with a text in it. It should be "NetworkManager is online".

Check /etc/NetworkManager/NetworkManager.conf. There probably is a section with this in it:

[Connectivity]
uri=http://nmcheck.gnome.org/check_network_status.txt


What is sudo nautilus ? What does it do ? When do i use it?

nautilus is a file manager in Ubuntu.

sudo is declaring that you are a root (it is something like an adminstrator in Windows).

So, when you type the command sudo nautilus , you are entering the file manager as a root. Being root gives you some extra abilities that normal user doesn't have.


How to make an ubuntu 16.04 crash manually?

You could move initrd and vmlinuz.

First create a linux bootable cd or USB (google it)

mkdir ~/.lol
find /boot -maxdepth 1 -type f -exec xargs mv {} ~/.lol/

Reboot and cry.

To fix you could boot from the linux bootable disk or usb and find the hard disk and move the files back into path/to/sda/boot/*


cannot use emacs in kde konsole - Output has been suspended by pressing Ctrl+S. Please press Ctrl+Q to resume

Sorry, just minutes after posting this, I found the answer here:
https://github.com/ivanov/vim-ipython/issues/8
to quote Vladimiroff from the post:
"in Konsole you can disable this feature, by going to
Settings -> Configure Profile -> Choose current profile -> Edit Profile ->
Advanced Tab
and disable 'Enable flow control using Ctrl+S and Ctrl+Q'"

I did this, and I can confirm that emacs with Ctrl S now works on the remote machine (in its profile).


I need help with Intel PRO/Wireless 3945ABG [Golan]

Here is a link to someone with the same problem and the solution that worked: Ubuntu Forums

Copy/paste of the relevant answer:

sudo rm /etc/modprobe.d/ipwraw

sudo rm /etc/modprobe.d/iwl3945

sudo rm  /etc/modprobe.d/iwlwifi.conf

sudo gedit /etc/modprobe.d/iwl3945.conf

Add a single line:
Code:
options iwl3945 swcrypto=0


Don't have sudo privileges in juju nodes when using Landscape

You can juju ssh into landscape-server/0 without the long sudo line, that will get you into that node as "ubuntu" which can sudo to any other user without a password, including landscape.

Put the files where you want in landscape-server/0, make sure the landscape user can access them, then become the landscape user and set JUJU_HOME. Then you can juju scp them into any node in the inner cloud environment.

The landscape user doesn't have a shell by default, that's why that long sudo line you found runs the bash command in the end.


Grub menu appearing Black instead of purple Ubuntu 16.04

Add # before GRUB_TERMINAL=console and before GRUB_GFXMODE=640X480.
After adding # symbols , save the file & close.

Open Terminal and run sudo update-grub.
Once updated, close the terminal and reboot the system to see the change.


Openshot Video Editor shuts down my system while exporting a project to HDYoutube (Ubuntu 11.10)

You need to provide more info.  Does the system instantly power off, or does it shutdown as if you used the UI to shut it down?

You said, "attempting restart to[o] early makes it shut down again," so I'm going to hazard a guess that your system is overheating.  See if running another app that pegs your CPU at 100% for that period of time causes the same behavior.

You probably just need to clean the dust out of the system to restore airflow.


Application showing installed but still not showing up in dashboard

All program do not have a graphical interface. It does not make sense to have a launchers for programs like that.

gcc is one of these programs.

You can invoke them from the terminal. Start the terminal and start the program from there.


How to specify additional search domains for resolver in 16.04 GUI network settings when using DHCP?

In Ubuntu GNOME 16.04, you are correct that the ability to edit or add additional search domains is unavailable, but this is only true for the 'default' network editing system that you see.  This 'newer' one was put in place, according to Jeremy Bicha in the #ubuntu-gnome IRC chat channel on Freenode, because the default editor in Settings should be easier to use for most end-users:

jbicha: sorry it's hidden by default because most people don't need two network GUIs and the one in the Settings app should be easier to use for most people

And of course you can't see search domains in the default editor:

However, the original network editing GUI is still available.  Just run nm-connection-editor.  This will launch the same, good-old Network Manager editing window that you expect to see.  That has the ability to do search domains.  (Thanks to the #ubuntu-gnome IRC channel on Freenode for this!)

This procedure/answer also works in 18.04 and 20.04 as well (tested myself).


Creating a Unity Launcher icon for PyCharm

Pycharm offers you to create a .desktop file on first run
When you start PyCharm for the first time, you will be offered the opportunity to set up desktop integration:

As you can see, you can tick: Create desktop entry (integrate in sytem menu)
This will (or would :)) create a .desktop file, jetbrains-pycharm-ce.desktop, in either /usr/share/applictions or ~/.local/share/applications, depending on if you chose For all users or not.
What if you missed the message?
If you missed the message, you can simply temporarily rename the folder:
~/.PyCharm40

...and restart PyCharm, since the absence of this folder will make PyCharm assume you run it for the first time. Then, after things are done, you can simply remove the newly created ~/.PyCharm40 folder and rename the original folder.
From then on, you can simply run Pycharm from its own launcher.

Note
Although the message in the window says: You can use File | Settings to configure any of these settings later, I found a lot of settings options, but not the one to create a "Desktop Entry". It looks like the method above is the only option :)


Wrong distro and logo in GNOME control center

You have to download the source:

apt-get source gnome-control-center and gnome-control-center-data

Go into the source/panel directory.
Replace UbuntuLogo.png and check inside config files inside that directory. Don't forget info.gresource.xml because if you miss one reference to the correct new icon it won't work. Two other locations within sources requiring renaming: debian/rules and debian/patches/56_use_ubuntu_info_branding.patch.

Bottom line source only solution. Easy to do however:

Uncomment out sources in /etc/apt/sources.list, and then:

apt-get install checkinstall
apt-get build-dep gnome-control-center-data gnome-control-center
./configure # (inside main directory)
make
sudo checkinstall # (answer questions script asks)


Unity on Both Screens with Dual Monitors

You can change this in the Displays dialog. Launch Displays (either from System Settings > Displays or by typing Displays in to Dash).

From there select which monitor you'd like Unity to appear on:


64bit ubuntu 12.04 python cannot run an existing python file

This is a fairly traditional permissions problem.
You should make your file executable before you try and run it. Just do chmod +x /home/nan/google_appengine/goagent/local/proxy.py. That gives this file the permission to be executable (x).
Do not run these local script using sudo if you ask me. Unless you are 100% sure they can do nothing bad to your system.
Correction
Hmm. I just read through your question again and your proxy.py already has executable permissions... So this cannot be the problem. Apologies. All suggestions welcome.


I can reproduce your error. You created a paradox.

client max protocol = NT1

Samba disables NT1 on the server side of your install yet you specify the maximum protocol the client can use to NT1. Ain't gonna happen.
I'm almost certain you meant to add this in smb.conf:
client min protocol = NT1

If I do that and restart smbd: sudo service smbd restart I can create the share without the error message.


1080p Screen resolution problem after 10.04 to 12.04 update

I activated the Nvidia experimental drivers in Ubuntu 12.04 while in Unity 2D, then restarted and logged into Unity 3D and everything worked fine. Every time I tried activating it from Unity 3D it failed. I have a Nvidia 6150SE driver.


I don't know if this would be something that might do the job for you.  I use Yumi, and I have created a bootable USB with 6 different Linux distributions, Windows 7, and 4 others utilities, and antivirus apps.  Take a look at it, it might do exactly what you need.


How does Ubuntu know that I  have a folder icon customized?

Ubuntu stores directory information such as what icon to display in a user specific hidden folder. The folder is ~/.local/share/gvfs-metadata. Home directory settings are stored in ~/.local/share/gvfs-metadata/home. If you change some other settings on other partitions, they are stored also in this folder with a file name using partition UUID.

To Experiment with this, first move the folder in the Home directory and restart nautilus.

Move the gvfs-metadata folder to home

mv ~/.local/share/gvfs-metadata ~

Restart nautilus by pressing ALT+F2 and typing nautilus -q. Then again bring the dash command with the previous keyboard shortcut and type nautilus. You will see that, any customized icon is reset to default.
Now again move the gvfs-metadata to it's previous location

mv ~/gvfs-metadata ~/.local/share/

Again, restart nautilus by doing nautilus -q command and open your home folder to see that, the customized icon is now back!


After regular update from Ubuntu 14.04 wireless network is not working

A wrong driver is installed, it blacklisted the correct one.

If the firmware is installed, you can enable Wi-Fi by

sudo modprobe b43

You also need to remove the wrong driver by

sudo apt purge bcmwl-kernel-source


For a long time, systems like websites were built as so called monoliths. There was one, sometimes very large, piece of software. Today, many systems are a combination of multiple, sometimes of many smaller independent services (the keyword here is microservices). In a shop website for example, there could be one service handling the front-end interface, another service handling the communication with payment services like credit card companies, yet another service handling the stock-keeping of products and so forth.

To work together properly, those individual services need to "talk" to each other. One way for them to do that is using a message broker. That's a service of its own that basically relies messages back and forth between the individual services. That may be in some kind of queue, that may be in a publisher / subscriber model or with some other kind of architecture.

RabbitMQ is such a message broker. Why it is installed on your server and who is sending messages to whome with it, is something we can only guess.


Can't center dialog window above main window when using Glade (Quickly)

When choosing the Center on Parent position, you must also let the dialog know which window is the parent ofcourse. This can either be done in Glade, but only if the parent window is inside the same Glade-file. Or by calling this method:

gtk.Window.set_transient_for(parentwindow)


The best way to stop it, is to do this

Open another terminal or another SSH session and then do

ps -eaf | grep -in mysqld

This is what I got from my machine

150:root      5816 31671  0 10:36 pts/4    00:00:00 sudo mysqld
152:mysql     5839  5816  0 10:36 pts/4    00:00:00 mysqld
156:1000      6446  6278  0 10:36 pts/5    00:00:00 grep --color=auto -in mysqld`

Now do

sudo kill -9 5839

Instead of 5839, provide the number which find in your ps -eaf output corresponding to mysqld. This will stop the already running mysqld daemon process.

Now, to start MySql, do it this way

sudo mysqld &

This will start MySql daemon in the background.

EDIT: The mysqld daemon runs an infinite loop, serving incoming requests. When we start it in the foreground, it doesnt respond because it will serve requests through the port only. It will simply ignore all the keyboard inputs. Thats the reason why your terminal doesn't respond to you.


Can I install Ubuntu 14.04.1 alongside Windows 8.1 on a Lenovo y510p?

you should really look up into Ubuntu installation procedure. Why would you install Ubuntu alongside Windows if you already have a separate partition for it? You should use something else option.

It is possible to install both OS on Lenovo computer. I did it on my Y580 laptop.

Well, you provided not so many informations. Was Windows pre-installed? How many partitions do you have (active/primary)? Can you format your partition before trying to install Ubuntu?

I have just updated this post, but I think you should really look into Ubuntu installation procedure. Watch some explanatory video.


Will Thunderbird become the default mail client in the near future?

Thunderbird is now the default email client, starting with 11.10 Oneirc Ocelot.

This was discussed briefly at the Ubuntu Developer Summit. Here's the blueprint with notes and here is the summary from the Thunderbird Unity mailing list:

  Currently the etherpad from the
  session [0] lists these high-level
  requirements:

  styling improvements
  CD space
  e-d-s/calendar integration
  upgrade reliability (enigmail + binary extensions)

This decision should be made sometime around the Alpha period of 11.10.


Add the following lines to ~/.gtkrc-2.0. Change the hexadecimal color ff0000 to whatever you like.

style "default"
{
    base[SELECTED]  = "#ff0000"
}
class "GtkWidget"           style "default"


The dpkg database is locked by another process. The problem either dissolves by itself after some time, or you can see which process is blocking the database.

ps xa | grep apt

Close all software package manager and try it again. Or wait some time and kill the processes.

Example

$ ps xa | grep apt
 6088 ?        S      0:00 /bin/sh /usr/bin/synaptic-pkexec
 6090 ?        S      0:03 /usr/sbin/synaptic

Therefore

sudo kill 6090


Your system (10.04) is very out of date and no longer in support - for example, the hakermania launchpad supports only precise, not lucid.  You will probably need to update to 12.04 LTS or 14.04.  There is a good set of instructions for upgrading at How do I upgrade to a newer version of Ubuntu?


OK, so after checking what this module does I have decided to just disable it, since I will probably not need it anyway.
The solution was to add blacklist mei_me at the end of /etc/modprobe.d/blacklist.conf file:

# Intel VPRO remote access technology driver
blacklist mei_me


I would not recommend to upgrade if you're satisfied with your current 14.04 LTS system. Also you can make an Ubuntu LiveUSB (or LiveDVD) to test the new release and then make a decision.


How to make unity hide applications from the launcher if they're running on other desktops/workspaces?

No, that's not possible. The launcher shows all running apps and doesn't provide a way to hide some.


How can install Cuda GeForce GT 555m drivers on Ubuntu 12.04 VirtualBox guest?

What you are trying to do may not be possible with a standard version of VirtualBox. The issue would be that VirtualBox does not virtualize the GPU. There's hope though. Search the web for VirtualBox PCI passthrough.


Power off bluetooth: the LED indicator is still ON, is the radio module turned off?

By any chance did you install ubuntu ( unity first) and then kde from the repo? If you did, unity has a bluetooth service that locks the device and breaks kde's bluedevil. If you want to keep both kde and unity/gnome, I recommend using blueman as your bluetooth manager while in kde, cause bluedevil will not work.
If you want a proper kde desktop, I suggest install a fresh kubuntu otherwise they have some conflicts nowadays.


This is just a poor error message, which indicates that g++-4.5 is not installed. I needed to install g++-4.5

sudo apt-get install g++-4.5

(which I thought I had, but I must have installed gcc-4.5 instead).


Error when installing oracle-java7-installer

Well looks like this is an old question but no one has answered it yet so...  better late than never I guess.  I've been ripping my hair out over this too.  Like you most boards just tell me too use open-jdk.  what most people don't seem to understand that open-jdk and jdk-7 are not one to one mappings of each other and many tools relied upon by developers simply don't work with open-jdk.  ANYWAY...

I found a solution which solved the problem for me.  Hopefully it will work for you.

sudo rm /var/lib/dpkg/info/oracle-java7-installer*

sudo apt-get purge oracle-java7-installer

sudo rm /etc/apt/sources.list.d/*java*

sudo apt-get update

sudo add-apt-repository ppa:webupd8team/java

sudo apt-get update

sudo apt-get install oracle-java7-installer


Plymouth Don't Show On Starting Just Show on shutDown

'i did all the things' and 'i use every way' is not explaining what you did. Maybe you can reinstall Plymouth, ($ sudo apt-get install --reinstall Plymouth) or check another theme. Which program did you use to install the theme or did you so by hand? maybe you can find your answer here: How do I change the plymouth bootscreen?.


If you can get a CD (download from Internet and burn), I would boot from the CD and format your disk. What I did was make one partition (12 GB) for the Ubuntu system (called "/") and the rest of the disk (aside from a small swap partition) as my /home partition. This allows me, in case of disaster, to format "/" and leave all my personal data in tact.


My Kmail does not load mails from gmx.de anymore

I solved it. Stupid one actually: My home folder /home/me/ (or rather the partition) was too full. Emptying it did the trick. I did not notice, because my mail is actually stored on a different partitione so that wasn't it. But Kmail was not able to write stuff regarding the downloaded mails into its meta-data storage.

If someone is able to elaborate on - where kmail stores what where - with good links or more details, I would be glad about it.


Referanceing venet0:0 and venet0:1 in iptables on OpenVZ

You cannot specify an aliased interface name with iptables, only an actual interface name. The trick is to add the destination IP address as an additional condition. Also you do not need the -m tcp part. So if you wanted to accept traffic to port 80 on both aliased interfaces, the rules would be:

-A INPUT -i venet0 -d xx.xx.xx.xx -p tcp --dport 80 -j ACCEPT
-A INPUT -i venet0 -d xy.xy.xy.xy -p tcp --dport 80 -j ACCEPT


scp is executed internally just as ssh command and transferred files are not logged. You have only authentication logs in /var/log/auth.log or somewhere like this.


Changes made by dconf-tools are lost when logging off

Confirmed.  This bug in unity causes the ~/.config/dconf/user file to be overwritten with the default version.

No workaround is available.

Update:  Changes are no longer overwritten.


How can I change GNOME Terminal profile name in command line? (from 'Unnamed' to 'Default')

get the available profile names with below command
gsettings get org.gnome.Terminal.ProfilesList list

to know the Default Profile, run below command
gsettings get org.gnome.Terminal.ProfilesList default

to get the Default Profle name, run the below command from above output
gsettings get org.gnome.Terminal.Legacy.Profile:/org/gnome/terminal/legacy/profiles:/:b1dcc9dd-5262-4d8d-a863-c897e6d979b9/ visible-name

to rename the above, run below command
gsettings set org.gnome.Terminal.Legacy.Profile:/org/gnome/terminal/legacy/profiles:/:b1dcc9dd-5262-4d8d-a863-c897e6d979b9/ visible-name 'Default'

Like wise, if you have more than one Profile.. from the list command get the ids and you can change any profile name.

Edit
To simplify, you can have below script saved and run when you need it.
#!/bin/bash

id=$(gsettings get org.gnome.Terminal.ProfilesList default | tr -d "'")
gsettings set org.gnome.Terminal.Legacy.Profile:/org/gnome/terminal/legacy/profiles:/:$id/ visible-name 'Default'


Port 80 is already in use by lighttpd web server.(netstat -an | grep :80)

Stop lighttpd:

/etc/init.d/lighttpd stop

or

service lighttpd stop

see if lighttpd process is running or not:

ps -ef |grep "lighttpd"

if yes, Kill manually

kill -9 Process_ID

start apache2

/etc/init.d/apache2 start

or

service apache2 start


No internet access even though the wireless indicator shows 100%

You haven't indicated which brand your wifi adapter is. Have you check if there's a more uptodate driver for your wifi adapter? Does this also happen if you try it on another platform like windows?


Minimize all windows
Right-Click on the desktop of any monitor and click "Add Panel" > "Default Panel".
Right-Click on the new panel, check "Edit Panel", click "Screen Edge" and drag&drop to your desired place on any of your screens.


How to have a forward slash in a file name?

Is it possible to name or rename a file so that it has /s in its name [...]?

No, it's not, for obvious reasons.

E.g. consider you have a directory containing:

a directory named "foo" containing a file named "bar"
a file named "foo/bar"

/path/to/foo/bar # file named "bar" in the directory named "foo"
/path/to/foo/bar # file named "foo/bar"

Referencing either of the two would be ambiguous.

If you're curious as to where the limitation is imposed, that's at the kernel level, in order to comply with the filesystem's specifications.

In general, any character can be used in a filename aside from / (unicode 002f) and \0 (unicode 0000), and filenames such as . and .. are disallowed as well.


why don't you use Debian package management system - dpkg?

Simply remove old kernels with this commands:

# dpkg -P linux-image-3.2.0-{35,36,37,38}*


Common SDK for Ubuntu Touch an "Classic"?

I happen to love Python as well :)

The application development story on Ubuntu is essentially now based on the Ubuntu SDK, which enables developers to write apps that can seamlessly run across devices and form factors.

While we still have Quickly content on developer.ubuntu.com, we are in the process of shuffling content around to make the app developer site to focus solely on the Ubuntu SDK.