Well, I used

sudo apt-get install ia32-libs

and it didn't seem to work, but when I ran steam, it started up.
I have no idea how trying to install a package that it said didn't exist worked, but apparently it does.


Installing latest cmake on Ubuntu 18.04.3 LTS run via WSL: OpenSSL error

I ran into the same problem last year. My solution was this:

run the following in your WSL terminal

sudo apt-get update
sudo apt-get install apt-transport-https ca-certificates gnupg software-properties-common wget

After that is finished

wget -O - https://apt.kitware.com/keys/kitware-archive-latest.asc 2>/dev/null | sudo apt-key add -

Next add the updated repository by typing in the following

sudo apt-add-repository 'deb https://apt.kitware.com/ubuntu/ bionic main'
sudo apt-get update

Finally

sudo apt-get install cmake

And it should be updated to the latest version.

Note: if the above doesn't work, be very careful when trying the below steps. It is not elegant, it is not clean, but it does work.

If this does not work. Go to https://cmake.org/download/ and download the Latest Ubuntu version. If you have a folder where you maintain all your projects I suggest downloading the file into your top most directory where your projects are.

For example all my projects are in a folder called "Github" so I would download the file into my "Github" Folder. If there is not a top level directory create a cmake folder in the C drive or what ever drive you save your projects to.

Next after its finished downloading Extract the file (through winrar/winzip/7zip/ or terminal) into that same directory. Once extracted cd into the folder (cmake-{version number}) and do the following commands.

cmake .
make
make install

This will make the latest version of cmake and then install the required components. It can take a while to have everything build and installed.

Once that is done you are going to want to locate the /bin/ folder inside your cmake folder. Make sure a file called "cmake" is in this folder. Copy the path of this directory and type the following

sudo nano ~/.bash_aliases

You can use vi or vim or whatever text editor you want from within the terminal.
At the end of the file type the following

alias cmake="{PATH to /bin/ folder}/cmake"

Make sure if you copied the path from windows explorer you replace \ with /
save the file and exit.

Restart your terminal and type

cmake --version

It should show up with whichever version you just downloaded.

Congrats you now have the updated version of cmake.


How to kill all processes apart from specific one

Give a try to this command:

ps ax | grep "java" | egrep -v "eclipse" | cut -b1-06 | xargs -t kill

this will search for all processes containing java and execluding eclipse then kill them


Can I safely remove software sources added by software-center?

When I asked this question, I was afraid something weird would happen if I deleted the sources, that would require bothersome manual fixing and stuff.
Later I tried to add a PPA from command line twice, and got garbage lines in the corresponding .list file (located in /etc/apt/sources.list.d/), and I imagined something similar could happen with the sources added automatically when you buy software from the software centre, having disabled or deleted the source. Now I'm (mostly) done with my exams, and have found time to experiment with this myself.

The result of installing bought software again, after having removed it, and disabled the source, is that it just creates an identical source upon installing the software again (The identical source of course being enabled, contrary to the one that was already there). Upon this I drew the following conclusion:
It is safe to remove software sources for software bought in the software centre completely.

I double checked this by removing (instead of just disabling) the two sources I had (one enabled, and one disabled) after my second installation of some software I bought previously, and then installed it again. Worked flawlessly.

I tested this with both 0$ and > 0$ software in the Software Centre.


deb packages have some hooks defined, where scripts can be executed while the package is installed, uninstalled etc. It seems that in your case one such script fails, so the whole installation fails:

 /usr/lib/ruby/vendor_ruby/bundler/resolver.rb:194:in `block in initialize':
    undefined method `add_root_vertex' for Molinillo::DependencyGraph:[]:Molinillo::DependencyGraph (NoMethodError)

So Bundler can't find a method in a library it would like to call. Judging from this issue at Bundler's Github repo, you might be using an outdated version of Bundler. So maybe upgrading Bundler would help. How exactly you need to do that depends on how you installed Ruby including Bundler (package system, RVM, rbenv, ...)


Try changing the WINE version of PlayOnLinux:

  Install the version(s) you want to use: Tools > Manage Wine versions
  Change the version used for a virtual drive: Configure button > (select virtual drive) > General tab > Wine version

Source: https://www.playonlinux.com/en/topic-11075.html


How do I connect my NetXtreme BCM5755M Gigabit Ethernet PCI Express in y Dell latitude d630?

Last week, I installed a Broadcom BCM5755M WLAN card onto my Dell Latitude D630, along with a 320 Gb hard drive and the 64-bit version of Trusty.  I don't remember having to reinstall the b43 drivers, but I am able to connect to wireless networks.  I would like to figure out how to get wireless-N download speeds, though.


Format a partition stil working after 2 weeks

Do you mean that your machine has been trying to format a 185GB for 2 weeks none stop? If this is the case GParted has crashed as any formating program should do this job in a few hours at most. Swtcich of your system & try again. If you get the same problem, you should investigate:
1- Run some tests on your hard disk (Here are 2 free toolkits that will help you:
A- Hiren's boot CD, http://www.hirensbootcd.org/download/
B- Ultimate boot CD, http://www.majorgeeks.com/files/details/ultimate_boot_cd_(ubcd).html)
2- Read GParted help on memory requirements, etc.
3- Seek help from GParted's manufacturers, if needed.
Good luck.


This version of ureadahead has been around since at least the start of 2015 and I doubt it was written with systemd in mind. I don't know what bumped the minor versions but last commits are from 2010. They probably included some of the merge requests since your version is reporting cpu count.

The dev is now working for Google.

Your best bet at this point would be to keep it disabled. If looking to shave off a couple seconds off boot, remove wpa_supplicant if not needed.


Replacing a string with quotes selectively using sed

Use an address. The quotes are not a problem if you single quote your sed expression

$ sed '/"foo"/ s/false/true/' file
"bar":  false
"foo":  true

If you really need to match the whole pattern, fine:

$ sed '/"foo": *false/ s/false/true/' file
"bar":  false
"foo":  true

* matches any number of the preceding character (space).

You can use \s to also match tabs (any horizontal whitespace):

sed '/"foo":\s*false/ s/false/true/' file

Add the -i option after testing to modify the original file.


Cannot remove or purge mysql-server after upgrading to 20.04

To solve the following error:
dpkg: Error processing mysql-server-8.0 (--configure) package:
 the thread installed mysql-server-8.0 script post-installation package
 returned error status 1
There were errors in processing:
 mysql-server-8.0
E: Sub-process /usr/bin/dpkg returned an error code (1)

Create a /var/lib/dpkg/info/mysql-server-8.0.postrm with the following content:
#!/bin/bash
/bin/true

Then run:
sudo dpkg --configure -a
sudo apt update
sudo apt upgrade


It is definitely possible as a recent demo video shows. See David Barth's email announcement from June 30, 2015.

Not sure though, what is necessary to use or activate this feature in a Webapp. It may be that you need to set a security policy in the .apparmor file of your project. My bq Aquaris E5 shows a push-notification-client policy that is available for selection.

Update: David Barth explains on the ubuntu-phone mailing list that "Push notifications for webapps is not supported yet" (Fri, 14 Aug 2015).

There's "web notifications v2" and "push messaging" (i.e. real push notifications), either one developed in a separate branch. Looks like there is some "Ubuntu end-point" that your server needs to send messages to, which will then show up on clients registered on Ubuntu Touch mobile devices.

  If you control both ends, ie you develop the webapp frontend, and manage
  the server as well, then you will be able to receive client registrations,
  route messages down to the Ubuntu end-point and to the individual devices
  and end-users.

How to use the "Ubuntu Push Server API" (as part of the push notification framework) is described at the bottom of the Push Notifications Server Guide.


What does lubuntu-defaults-settings actually do?

No that would not reset your settings to defualt. Lubuntu comes with this package installed and does not remove it when you change say the screensaver settings or the configuration of lxpanel. Remember because you need sudo to add and remove packages so an child without sudo permissons for say your child changes config would not have this happen to remove it. The most likely result is it will say lubuntu-default-settings is already the most recent release.

Lubuntu-default-settings is really a package to install the default config files for lubuntu. Well as a tester it is important to make sure this is right as updating this package even will not update existing users as they all have config files copied to their home directories.


Execute shell on a relative path on ubuntu launcher

The post @FedonKadifeli has suggested helped me.

The possible solution can be:

Exec=sh -e -c "exec \\"\\$(dirname \\"\\$0\\")/.sh/server.sh\\";$SHELL" %k

Explaining the command:

The snippet below will get the dir name of who is executing that, therefore the launcher dir name

$(dirname \\"\\$0\\")

So appending the desired path, will make this execute relative path.


Run Task Manager In Xubuntu as Superuser

Never use sudo to start graphical applications. (More infos)

This should work:

gksudo xfce4-taskmanager

But the root xfce4-taskmanager shows only the root processes...
Perhaps this is a better solution to set your priorities:

Change niceness (priority) of a running process

The priority of a process will be lost if you close the process. But you can start any process with a certain priority: Do all apps start with a normal priority on the system monitor?


wifi card not recognizable at ubuntu 14.04 3.19.0-61-lowlatency

You have an obsolete kernel that does not support this wireless adapter. You can upgrade your kernel to 4.4 and get the support.

Connect to the internet by wire or some other way and run

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

and reboot. This will upgrade your lowlatency kernel.

You may also need to install firmware for this adapter if it does not work. Post the output of dmesg | grep iwl if this is the case.


trying to overwrite '/usr/bin/inspect', which is also in package libboost1.53-tools-dev 1.53.0-6+exp3ubuntu8

Run the following commands on terminal,

sudo dpkg -P libboost1.53-tools-dev
sudo apt-get -f install


Just zero out the drive and create a new partition table.

Zeroing the Drive:

sudo dd if=/dev/zero of=/dev/mmcblk0

To create a new parition table, simply use GParted or a similar tool.


All the problem was due to "Display Port 1.2" in Monitor Settings.
Changing back to "Display Port 1.1" resolved problem.
The resolution is in the list in gnome display settings.

It was really hard to diagnose that.


Chrome browser font problem after update in Xubuntu 14.04

Looks like the font you were using was deleted during an update.

Could you try setting deja vu sans as the font in Chrome Settings and see the result?


How do I add a custom color to this script?

May be this is what You want:

#!/bin/bash

PROGNAME=${0##*/}

# colors:
BLUE='\033[94m'
GREEN="\e[0;32m"
RED='\033[91m'
BLACK='\033[0m'

# program:
echo -e "${RED}${PROGNAME}: ${GREEN}Done.${BLACK}"

Edit:

Minimal working example with expect:

#!/usr/bin/expect -f

# colors:
# BLUE='\033[94m'
# GREEN="\e[0;32m"
# RED='\033[91m'
# BLACK='\033[0m'

# we need byte code. Let's get one for the blue:
# python -c "print ''.join([r'\x%x' % ord(c) for c in \"\033[94m\"])"
# gives: \x1b\x5b\x39\x34\x6d
set blue "\x1b\x5b\x39\x34\x6d"

# program:
send "${blue}hello world\n"

Edit 2:

Oh, I solved it:

#!/usr/bin/expect -f

spawn -noecho bash
send "PROMPT_BLUE=`tput setf 1`\nPS1='\[\$PROMPT_BLUE\]'\n"
expect "$ "
send "put what ever you want here"
interact
exit

makes all text blue.


Japanese keyboard layout is the selection that the system understands how many keys are there and where are they bound to.
You should better to select one you actually using.

To type Japanese characters, first you need to install Japanese language pack. System settings >> Language Support then install fcitx for an input method and Mozc for its engine.

sudo apt install language-pack-ja fcitx-mozc --install-suggests

Then you go back to Language Support and select fcitx for Keyboard input method. (You may need to logout/login or restart at here or next step)

Open fcitx setting

add "Mozc" Input Method tab
check Use System Tray Icon on at the Appearance tab
choose your favourite hotkey(shortcut) between US <> JP and set at    Global Config tab (I prefer to add Super_R as Hankaku-Zenkaku)

If you see the keyboard icon next to the clock indicator. It's done in a half way, now click on the icon (or open System setting Mozc setup (i.e. Mozc setting)

There are many things to do but you can just choose first two on the general tab, first column

Romaji, if you prefer phonic input e.g だ for typing 'd' 'a'
Kana, if you prefer type directly Hiragana from your Japanese keyboard

This is an instruction about it, Iv think you need to be flexible to get it through sometimes I forgot important things.

Best Regards,


What team do I need to talk to about deleting a page on help.ubuntu.com?

You can't just delete a page, it needs to be tagged for deletion so the documentation team can review it.

Information on deleting pages:

https://help.ubuntu.com/community/WikiGuide/DeletingAndRenaming

Simply putting this tag on top of the page you want deleted puts it in the editor queue to be reviewed:

<<Include(Tag/Deletion)>>


Stuck into Ubuntu 20.04. Dual booting Windows 10 shows blank screen

Try this... In a terminal:

sudo grub_mkconfig

Reboot and try win...
Below you will find part of the terminal's "info grub" output... my research reference.
Good luck!!

6.1 Simple configuration handling
The program 'grub-mkconfig' (*note Invoking grub-mkconfig::) generates
'grub.cfg' files suitable for most cases.  It is suitable for use when
upgrading a distribution, and will discover available kernels and
attempt to generate menu entries for them.
'grub-mkconfig' does have some limitations.  While adding extra
custom menu entries to the end of the list can be done by editing
'/etc/grub.d/40_custom' or creating '/boot/grub/custom.cfg', changing
the order of menu entries or changing their titles may require making
complex changes to shell scripts stored in '/etc/grub.d/'.  This may be
improved in the future.  In the meantime, those who feel that it would
be easier to write 'grub.cfg' directly are encouraged to do so (*note
Booting::, and *note Shell-like scripting::), and to disable any system
provided by their distribution to automatically run 'grub-mkconfig'.
The file '/etc/default/grub' controls the operation of
'grub-mkconfig'.  It is sourced by a shell script, and so must be valid
POSIX shell input; normally, it will just be a sequence of 'KEY=value'
lines, but if the value contains spaces or other special characters then
it must be quoted.  For example:
end_______


Unable to connect FileZilla to ubuntu ec2

Please set the security group in EC2 and allow the port 22. and please use port 22 instead of 21.

Also you can view the security group setting on following URL:
https://docs.aws.amazon.com/AWSEC2/latest/UserGuide/using-network-security.html


I had the same problem with Tomcat 7 on Ubuntu 14.04. I believe this happens since the last Tomcat update USN-3177-2.

Someone had a similar issue with Debian 8: https://serverfault.com/q/827359

I solved this problem by disabling Port 8080 in server.xml.

Edit: The high CPU usage seems to start when someone accesses http://domain.com:8080. This also causes an error message in catalina.out:

org.apache.coyote.http11.AbstractHttp11Processor process
INFO: Error parsing HTTP request header

Commenting out the connector with port 8080 in server.xml solved the problem for me.


According to https://launchpad.net/~tualatrix

it seems there is also a 'next' PPA,

sudo add-apt-repository ppa:tualatrix/next

I have used the old version, but not this next version. But it seems no longer active, and I find no version for xenial and yakkety. So you should stay away from it, at least not install it into your main operating system.

Edit: I notice the comment by Terrance. It looks like the way to go :-)

How can I install Ubuntu tweak on Ubuntu 16.04


Changes are persistent on a bootable USB flash drive?

Your files and programs will remain intact after reboot as long as you choose "Stored in reserved extra space" bellow "When starting from this disk, documents and settings will be:" on startup disk creator.


Missing Private Keys

GnuPG cannot find your private key, at least not the one for decrypting.

Do gpg --list-secret-keys. Is your key listed? If it is, do

gpg --edit [your-key-id-listed-above]

It will include more detailed information on your key. Is there a subkey whose line is ending with "E" for encryption?

If that fails, make sure once again you imported to the right key ring (each user has it's own, and you could add another keyring if you want somewhere else -- most easy way would be to import the key again.

If this also fails, you probably didn't export the private keys. Try to look at the headers of the exported file, if it is ascii-armored, you should read something like

-----BEGIN PGP PRIVATE KEY BLOCK-----

If you only exported the public key, you will read PUBLIC instead.

How to Recover My Secret Keys?

You cannot recalculate them from your public keys. If you could, everybody would be able to!

Surely you've got a backup of your old user folder. Recover it somewhere and use gpg --homedir /path/to/old/.gnupg -a --export-secret-keys [your-key-id] >~/secret-key.asc to export your private key from it which you can reimport to your new keyring.

If you haven't got the key any more, you should send your revocation certificate to the keyservers now. Now the keyservers say you're not using that key any more and you can create a new one without old "garbage" on the keyservers.

If you haven't got a revocation certificate, you will not be able to erase that key from the keyservers.


type:  mass

Looks like you have some typos there, it should be maas at least.


To hide the grub menu follow the steps:

In the terminal, type:

sudo gedit /etc/default/grub

Find the line that says:

GRUB_HIDDEN_TIMEOUT_QUIET=false

and change it to GRUB_HIDDEN_TIMEOUT_QUIET=true

Find the line that says:

GRUB_TIMEOUT=<some number here, eg: 10>

and change it to:

GRUB_TIMEOUT=1

This will show the menu, but for just a second and after that it will boot the default entry. If it is set to 0, still you will see it for 10 seconds as a security measure. So put 1 there.

Save and close the file.
Run sudo update-grub

Try and post back if there are any errors.


New SSD installing 16.10 : BootDevice Not Found

@All, after reading some on the internet I decided to install an bios update. So I swapped back an old HDD containing windows. Installed the bios update using an HP tool found online. Swapped the HDD with the SSD. Made sure UFI boot was set up. On the new SSD I created an UEFI partition using Ubuntu live. Reboot and installed Ubuntu. It is working now. Thanks for the help!


newusers command always return Permission denied, how do I deal with it?

First off, the sudo is needed for the newusers command and not the echo command.  You are getting that message of cannot lock because sudo is not passed from the echo command to the newusers command.  So, you will need to move the sudo to after the | before newusers.
The layout of the password line in the echo command is missing fields, so you probably would have seen error messages like below if you had the sudo in the right location
newusers: line 1: invalid line
newusers: error detected, changes ignored

From the man page for newusers we can see it shows all the fields required.
DESCRIPTION
       The newusers command reads a file (or the standard input by default)
       and uses this information to update a set of existing users or to
       create new users. Each line is in the same format as the standard
       password file (see passwd(5)) with the exceptions explained below:

       pw_name:pw_passwd:pw_uid:pw_gid:pw_gecos:pw_dir:pw_shell

There are 7 fields above so that will mean you need 6 :'s.  You need to have all the fields separated by a : required to create the new user even if the field is blank.
The command should look like:
echo "vv1:myUltraSecretPassword:::::" | sudo newusers

Hope this helps!


I disabled secure boot and I get an error message when I boot. Ubuntu 19.10. This is the error generated after updating the kernel

Just now, the problem was resolved.

Edit file:

sudo vi /etc/default/grub

Modify the value of this line:

GRUB_CMDLINE_LINUX_DEFAULT="quiet loglevel=0 splash"

then:

sudo update-grub

nice!!!

original


How to check the disk activity of my hard-drive?

You can try to use nmon — a command line program. Install it by running:

sudo apt-get install nmon

Then run it as nmon. You would get the following screen:

Since you want to view disk activity, you need to press d to toggle the statistics for it. Upon pressing d, you would be presented with the following screen which shows your disk activity:

Press q to exit the program.

More information about this tool can be found at IBM developerWorks.


Creating a Desktop Application for Ubuntu?

You can try using GTKLookAndFeel

javax.swing.UIManager.setLookAndFeel("com.sun.java.swing.plaf.gtk.GTKLookAndFeel");

see the related question.


E: Sub-process /usr/bin/dpkg returned an error code (2) - every time I use apt-get install

In your case, I guess three states:

Your linux-headers-3.8.0-19  deb file was damaged. (In this case, you should re-install it.)
You should play with apt systems after upgrade with dpkg -a --configure then apt-get -f dist-upgrade or your task, maybe : apt-get -f install
Your deb package has a bug in postinst, if it state will be true, you can handle in /var/lib/dpkg/info/linux-headers-3.8.0-19-686-pae.postinst ,


Is it possible to set up multiple local domains on localhost in Ubuntu 14.04?

Most of the work is done in the configuration file in the directory  /etc/apache2/sites-enabled/, in a file called something like 000-default.conf.  This files will allow you to have multiple virtual domains, such as www.example.dev, or example.local, etc.  You set them up along with their directories in this file, and enter multiple sites in /etc/hosts to match.  All sites have the same localhost ip address, but the name directs it to the correct virtual host.

In this file, you need to clone the default settings as many times as you need, with something like this:

Original contents

<VirtualHost *:80>
   . . .
</VirtualHost>

Additional virtual host entries

<VirtualHost *:80>
    <Directory  /var/www/html/site1>
       Options Indexes FollowSymLinks MultiViews
       AllowOverride All
       Order allow,deny
       allow from all
    </Directory>
    DocumentRoot  /var/www/html/site1/
    ServerName site1.local
    ServerAlias www.site1.local
</VirtualHost>

<VirtualHost *:80>
    <Directory  /var/www/html/site2>
       Options Indexes FollowSymLinks MultiViews
       AllowOverride All
       Order allow,deny
       allow from all
    </Directory>
    DocumentRoot  /var/www/html/site2/
    ServerName site2.local
    ServerAlias www.site2.local
</VirtualHost>

. . .

In order for the rewrite magic to work, you also need to make sure the rewrite engine is enabled.  This is done by creating a symbolic link in mods-enabled to a module in mods-available.  If you cd to /etc/apache2/mods-enabled, then enter ln -s ../mods-available/rewrite.load, it will enable the rewrite engine.

Then, in /etc/hosts/, you have matching entries like so:

127.0.0.1  site1.local
127.0.0.1  site2.local

This should get you going until I either complete this, or you have questions for me to answer.

Answers to questions in comments 1

One problem is the "DocumentRoot" directive: the directory specified is supposed to simply be the document root of the virtual site, which is most likely not "/var/www/arcadr.local/html" as specified.  Normally the site directory would be at the end.  "arcadr.local" is an arbitrary name, but matching the site is probably best.  So it should probably be "'/var/www/html/arcadr.local/'".

As far as the ln error, if I had had more time, I would have explained that the bottom line is you need a symbolic link named "rewrite.load" in the mods-enabled directory that links to the actual file in the mods-available directory.  So evidently, you already had it, and didn't really need to do it again, but as long as it's there, it should work.

Try the one change, and also try to understand what it's doing.  It's actually pretty understandable, and once you start understanding, you'll learn more.

By the way, the "alias" directive isn't necessary, I just added that to illustrate how you could do it if you want.

Answers to questions in comments 2

The default html file is simply one of now several virtual hosts specified in the file 000-default.conf.  Note I originally left off the ".conf" extension of the file.  Did you find that correct file?  It must be in "sites-enabled", not "sites-available".  Same as for the mods, you can have multiple sites available, but you need to have one enabled, and the default is "000-default.conf" (unless it has changed since I set it up).

You say "arcadr.local just redirects me to another .local website connected to my localhost."  Make sure you have this configuration file set up correctly.  It should have a series of blocks, like html:

<VirtualHost *:80>
   . . .
</VirtualHost>

Each virtual host must start and end with these directives, and you cannot have one embedded in another.

You can find some good documentation and examples on the apache.org website.  This is where I learned how to set up the files.  My advice is to keep it simple, and if you add anything you don't understand, do it one step at a time, and remove anything that doesn't work.  Here are some examples:  VirtualHost Examples

Some additional pointers

Whenever you make changes to the configuration file at /etc/apache2/sites-enabled/000-default.conf, you need to restart the Apache server.  I use the command sudo /etc/init.d/apache2 restart to do this.  Edit: Gabriel posted a better command for this:

sudo service apache2 restart

But both commands will work, at least for now.

This same technique works for dynamic DNS servers such as noip.com, dyndns, etc.  For example, I just made 3 sample sites on my home system.  If my computer is on, you can try it to see.  If you check, you'll see that all 3 sites have the exact same IP address, but go to different virtual sites (variations on the default, which you can see at leftcoast.noip.us

http://site1.leftcoast.noip.us/
http://site2.leftcoast.noip.us/
http://site3.leftcoast.noip.us/


Well you could try  du -h / --max-depth=1 to see where your space is going. By the looks of it you used LVM ???  If so then it's easy. If not then it's hard.

If you are using one physical disk then you will have to shrink the /home partition first to give you some disk space you can use to make the root partition bigger.  You will also have to do this from a Live CD as your root partition can not be mounted when you resize it.

  Unmount both the / and /home partitions
  Shrink the /home partition file system
  Shrink the /home partition logical volume
  Increase the / partition logical volume
  Increase the / partition file system

You will need to read up on LVM management commands as I can't remember those off the top of my head. You should make a back up first as you are playing with the root partition and you can easily wreck your system and make it unbootable.

First check if any log files have gone crazy and you can easily get some space back which should make things go a bit quicker.

Or the Live CD might have gparted installed already under tools so you could use that  for a graphical way.


Cannot install Ubuntu on Acer Aspire 3 - "watchdog: BUG: soft lockup: - CPU#1 stuck for 22s! [migration/1:15]"

Have you updated the BIOS? Annoyingly, this is something that usually needs Windows.
What version of Ubuntu MATE? 18.04 or 18.10?
Depending on what's on your startup disk, you may have hit the problem that the Ryzen APUs are new and only recent kernels know enough about them to run properly.
Step one
Edit the boot command line to have...
acpi=off

or if that doesn't work
pci=noacpi

before quiet nosplash. This should allow it to boot.
Step two
Get a later kernel, either via updates or by downloading one from the Ubuntu mainline repository.
(Disclaimer: I am on stage one at the moment - the laptop is dumping the contents of its Windows partition before I replace them with Ubuntu MATE...)
For some reason, after installing the 1.09 BIOS (it came with 1.03...) having acpi=off wouldn't allow it to boot. What did was having pci=noacpi there instead.
That allowed me to boot with the Ubuntu MATE 18.10 startup, install it alongside Windows, boot to GRUB, edit the command line to have pci=noacpi, and boot successfully.
I've edited /etc/default/grub to add that parameter to the line beginning GRUB_CMDLINE_LINUX_DEFAULT=, then run sudo update-grub, so I no longer have to edit the command line by hand each time.
So far, it's working...
The only other thing I have needed to do is turn off the advanced setting for the touchpad in the BIOS, because it wasn't working in Ubuntu MATE until I did that.
This article may be helpful


ubuntu 15.04 vsphere 5.5 pyvmomi ssl error rejected self signed ssl

It would be helpful if this question had a copy of the actual error log seen and what logfile the error is presented in. I'm guess this is an error seen on the MAAS server as Landscape autopilot doesn't directly talk to vsphere; MAAS does.  It would be helpful if you tried powering the nodes in MAAS via the UI http:///#/nodes to confirm that it succeeds.

Also, I have see MAAS' inability to power nodes through vsphere in a case where the vsphere password has non-printable characters potentially due to some urlencoding magic that MAAS does in order to execute power changes through the vsphere API. Here is the bug for more details. In that bug, I found changing my password worked around the issue and MAAS was able to power nodes through pyvmomi.

Hope that helps.


Problems with internet connection and mouse cursor Ubuntu 14.04

For the Wi-Fi problem you have a link here:http://ubuntuforums.org/showthread.php?t=2220169

But for the mouse cursor you have one link here:http://jiakaizhang.com/fix-frozen-after-login-in-ubuntu-14-04/

And another one here:https://unix.stackexchange.com/questions/136555/ubuntu-14-04-mouse-pointer-does-not-move


How do I bypass the license page to download Oracle/Sun Java on a server with wget?

"Automated" Oracle Java Downloads (JRE/JDK 6/7 and others...)

  You will need sqlite3 installed; it's a tiny package, use sudo apt-get install sqlite3 if you need to.

Open Firefox, go to the Java downloads page for the version/variant you need, and click on the Accept License Agreement radio button.

For example, here's the Java 6 SE download page:

Open a terminal, and paste this to extract the necessary Oracle session cookies from the Firefox SQLite cookie database into a cookies format text file wget can use (source for script):

echo ".mode tabs
select host, case when host glob '.*' then 'TRUE' else 'FALSE' end, path,
case when isSecure then 'TRUE' else 'FALSE' end, expiry, name, value
from moz_cookies;" | sqlite3 ~/.mozilla/firefox/*.default/cookies.sqlite
| grep -i oracle > /tmp/oracle-cookies.txt

Now use wget to download with those session cookies:

wget --load-cookies=/tmp/oracle-cookies.txt wget http://download.oracle.com/otn-pub/java/jdk/6u14-b08/jdk-6u14-linux-x64.bin

Notes:

You can use these cookies for any Oracle download as long as it comes from the otn-pub directory
You can paste the script in to a .sh file for easier use
The cookies are not associated with IP, so for a headless/CLI server, simply SCP or transfer the cookies file and you can download from any computer (but there is a 30-minute timeout on the cookie, so beware)
Related: How do I use wget/curl to download from a site I am logged into?


How to do a clean reinstall of initramfs

sudo update-initramfs -u

Simple as. Shouldn't be able to hurt anything.

On another note, you should ask whoever packages dropbear to add that to their postrm script.


Ubuntu 18.04 Cifs Mount not showing files on boot

I've figure it out after a painful week.

fstab was creating the mount point at /mnt which i believe is the root dir. So that is why df -h was showing it mounted, as it was, just elsewhere.

Was - //192.168.1.17/wd_nas mnt/wdnas

Now - //192.168.1.17/wd_nas /home/user/mnt/wdnas

Found this definition here in this forum..

"Using the /mnt directory should only work if the drive is a local volume rather than a network share or removable device."

Apologies, i'm new to Linux.


Where is the smb mount point in 15.10 of shares mounted via the file manager?

Force the unmount of /run/user/1001/gvfs and launch again the command

/usr/lib/gvfs/gvfsd-fuse /run/user/1001/gvfs

You will find your smb mounts there from now on
Don't know why automatically it does not work

Hope it helps


What processes are running on which CPU?

The command you're looking for is ... top. From man top:

12. P  --  Last used CPU (SMP)
    A  number representing the last used processor.  In a true SMP
    environment this  will  likely  change  frequently  since  the
    kernel  intentionally  uses weak affinity.  Also, the very act
    of running top may break this weak  affinity  and  cause  more
    processes  to  change  CPUs  more  often (because of the extra
    demand for cpu time).

When running top, you can apply filters to the processes shown. Press ? to see the help:

As mentioned, to filter, press o(after exiting the help), then type P=N, where N is the desired CPU number:

Press Enter. The processes should now be only those that last ran on CPU 0.

Note that the defaault list of columns does not include the CPU number. Press f to change the fields:

Move to P and press Spacebar to select it. When you exit the help, the column should be there:


Whenever you got stuck/frozen GUI, you can try switch to console mode using Ctrl+Alt+F1. This should be the first remedy.

In case of really frozen/stuck, probably because of bug in kernel or driver code, you can invoke Magic SysRq Hot Key ( Alt+PrintScreen/SysRq+Aditional Key ). Please refer to http://en.wikipedia.org/wiki/Magic_SysRq_key for complete additional keys references.

Common use case is to invoke Alt+SysRq+REISUB to safely sync all harddisk and then reboot system. REISUB run the following command in order:

R = Taking back keyboard from X server
E = Send SIGTERM to all process
I = Send SIGKILL to all process
S = Sync/Flush data to disk
U = Unmount
B = Reboot System


"ubuntu-drivers devices" always returns nothing in Ubuntu on Windows (Windows Subsystem for Linux)

It turns out that GPU is not supported through Windows Subsystem for Linux yet:

Does Ubuntu for windows have GPU support?


YMMV. Make sure anything said below makes sense to you.
Ensure that you can login, via at least one admin-enabled account (can manage ZFS), when the NAS is down.
Copy, via tar or rsync (not cp) all of your old HOME directory (/home/you) to the new HOME directory, mounted some temporary place line /media/$USER/newhome.
Backup, then edit /etc/fstab to NFS mount the appropriate NAS directory as /home/you. See man fstab about NFS mounts, man mount, too. Use the auto option. Do NOT mount it yet.
Carefully delete most of the files/directories in your old HOME directory, just leaving enough of the structure so that you can login with the files here, in case the mount fails.
logout and login to verify what you did in step 4.
If all seems OK, mount the NAS HOME directory via:

sudo mount /home/you
sudo shutdown -r now to reboot your system, make all processes forget about your old $HOME, and start over with /home/you mounted.


Doug - you may be aware that 9.10 is no longer supported and you will no longer get any updates nor will be able to install up-to-date software from the repositories.

As to your black-screen issues on either the installation of 10.04 or higher, maybe my answer here should help.

Possibly your nvidia issues could be solved using my answer here


To boot in EFI mode, an external boot medium needs to have an EFI-mode boot loader (EFI/BOOT/bootx64.efi) on a filesystem that the firmware can read. The symptoms you describe are consistent with this not being the case. Two causes are common:

No EFI boot files -- Some programs for creating bootable USB media from Ubuntu's .iso files omit the EFI-mode boot loader entirely, or put the EFI boot loader in a non-standard location. This is true of Pen Drive Linux (aka YUMI and one or two other names), for instance. Others require that particular options be set before they'll create EFI-bootable media. See my notes on a few programs for more details.
Quirky incompatibilities -- Sometimes a boot medium works fine on one computer but not on another. This can be because there's something odd about the boot medium that's fine with some computers but not with others or because of a bug in the firmware.

In both cases, the solution usually involves creating the boot medium with another tool, although sometimes adjusting options in the tool you're using may do the trick. As you mentioned NTFS and FAT, be aware that all EFIs support FAT boot media, but I have yet to encounter one that supports NTFS. (I've seen a small number of posts that claim NTFS support in particular computers, but I have yet to see evidence backing up these claims.) Thus, you should stick with FAT, if the tool gives you an option. (Furthermore, FAT32 is more reliable on some older computers than is FAT16 or FAT12, so using FAT32 may be helpful.)

Based on my own experience and online reports, Rufus is one of the more reliable and flexible tools for this task, but the last I checked it was Windows-only. In Ubuntu, dd seems to be pretty reliable, although some computers dislike the Frankenstein's Monster format that a dd copy of the .iso file to a USB flash drive creates, so in some cases you may need to use something else.


Where can I download the latest version of Ubuntu for a PowerPC?

The latest version of Ubuntu for PowerPCs is 13.10 Saucy Salamander.

Download links:

13.10

Server ISO
Server Torrent

13.04

Desktop ISO
Desktop Torrent
Server ISO
Server Torrent

12.10

Desktop ISO (Lubuntu)
Desktop torrent (Lubuntu)
Alternate ISO (Lubuntu)
Alternate torrent
Server ISO
Server torrent

12.04 LTS (Long term support)

Desktop ISO
Desktop torrent
Alternate ISO
Alternate torrent
Desktop ISO (Lubuntu)
Desktop torrent (Lubuntu)

For older versions and other distributions see PowerPC Downloads - Ubuntu Wiki.


How to count and display number of all files in any working directory?

Your question is not 100% clear.

To count all file and folders in the current working directory your specified command should work, but I does not could the hidden files (dot-files).

To count all the files and folders (also the hidden ones) in the current working directory AND all the sub directories and files in them:

user@host:~$ find | wc -l
4318

To just count the file and folder (also the hidden ones) in the current working directory (WITHOUT sub directories):

user@host:~$ find -maxdepth 1 | wc -l
25

or:

user@host:~$ ls -a1 | wc -l
26

In the second command the folder .. (parent directory) is also counted.

Edit:

To display the file names too, type:

ls -1a | nl
user2@host:~$ ls -1a | nl
     1  .
     2  ..
     3  .bash_logout
     4  .bashrc
     5  examples.desktop
     6  .profile


Accidentally release my hard disk.vdi from virtual machine

Select your virtual machine in the VirtualBox Manager, select Settings and go to Storage. Right click the SATA controller and select Add Hard Disk. Then you choose to select an existing virtual hard disk file and attach your old .vdi which you released before.


Facebook advertisements open automatically even when the browser is not currently open

You can easily check if the problem is in your profile by opening Firefox with a clean profile.

Close all Firefox windows.
Open terminal with Ctrl+Alt+T and execute

firefox -ProfileManager
Create a new profile and check if the problem is still present with it.

After this you can try disabling each of your Firefox extensions one by one and seeing if the problem goes away.


Can I use my phone as a Live-USB and for tethering at the same time?

What I am asking is, is it possible to stick the usb live image into my phone, so I only need to carry around 1 item, my phone, which can provide the usb live image and the internet connection to any pc which can boot from a usb device?

If your phone shows up as a mass-storage device, possibly. (i.e. as a USB SD-card reader). If it also shows up as a modem simultaneously, then YES! (I've seen older phones that do one or the other, depending on an internal setting).

You should be able to tell if the first thing is true by connecting the phone before boot, and seeing if it comes up in the list of boot options when you press the appropriate F-key. If it does, let it boot as Live-USB, and see if you can tether!

Excellent question, BTW!


How to start a GUI program on a Linux PC via SSH, with NO local logged-in user at the Server ?

Thanks to all above who commented on this - I've battled with it for a long stretch, learned a lot,  found a lot of people with other incarnations of the same problem, and finally - today - solved it.

Most of the problem appears to be inexpert (if familiar) Linux users (like me) not knowing the innermost concepts of how X windows sessions work with window managers and with VNC servers (of which I've now tested about 4), and what all of those do when working remote with no local user logged in.

On the advice of steedriver above,  I tried TightVNC,  and then vnc4server, as alternatives to vino:  but I got essentially the same problem -inability to get a GUI session to 'wake up' so that a vnc server can deliver a GUI through to a remove VNC client session run over an SSH tunnel.

Net changes I've needed to make to finally solve this, were these:

Firstly,  on the advice of a number of people,  changed my xstartup configuration, under  ~/.vnc as follows:

/home/mikeh/.vnc/xstartup  ::

~~~~~~~~~~~~~~~~~~~~

#!/bin/sh

def

export XKL_XMODMAP_DISABLE=1

unset SESSION_MANAGER

unset DBUS_SESSION_BUS_ADDRESS

xrdb $HOME/.Xresources

xsetroot -solid grey

x-terminal-emulator -geometry 80x24+10+10 -ls -title "$VNCDESKTOP Desktop" &

x-window-manager &

# Fix to make GNOME work

export XKL_XMODMAP_DISABLE=1

/etc/X11/Xsession

~~~~~~~~~~~~~~~~~~~~~

Key tweaks there were  (a) the addition of the top four lines after #!/bin/sh,   and (b) UNcommenting the lines starting  x-terminal and x-window-manager

With those changes made,    kill & restart the vncserver session  (find pid first with   ps -ef | grep vnc ).

THEN,   remoting in using remmina  (through SSH tunnel),   I got a "plain grey" window with only an "X" cursor - no 'desktop' in the conventional sense.   Took a little more research to realise this is  an X window undecorated by a window manager:  even though lightdm seemed to be running,  not present on the screen the VNC could access.

At this stage,  I found RIGHT-click revealed the 'basic' LXDE desktop commands, which include a terminal,  1-of-4 desktop selector, and browser. All work,  on 'naked' LXDE (no window manager),  but from the terminal,  I could then start pcmanfm which worked normally,  then vlc which was able to stream video:  so clearly all functionality,  just no managed window session.    So "90% there"..

Futher research this pm,   led to advice from here  -  steeldriver,  your advice again:

https://ubuntuforums.org/showthread.php?t=2222849&page=2

Essence of this was your trials leaving to summarised tweaks:    which amount to creation of the file    ~/.xsession ,  containing only this:

lxsession -s Lubuntu -e LXDE

Rebooted PC,   then

a.   remoted simple SSH;
b.   started  vncserver on the server  manually with

    vncserver                        {   -  reports using desktop session 1 ;  }

c.     opened the SSH tunnel from client to server (port 5901 far end);

d.  remoted in using remmina vnc client     ---  WORKING FINE,   full GUI desktop.

Huge thanks to all gurus whose advice helped me here  -- steeldriver,  my apologies for not recognising your skill above in comments earlier / thanks for this solution.

For the record  -- this was  client PC  running Lubuntu 18.04 accessing server PC running Lubuntu 16.04.


pysdm is a gui to your /etc/fstab.  It has a basic wizard and makes it easy to configure your drives and where they mount.


Installing laptop-mode-tools it seems that you solved the problem.

sudo apt-get install laptop-mode-tools
After install use lmt-config-gui to configure it.

Black screen after Hibernation


Partition created by Gparted not effective when rebooting into Windows 7

I'we had pretty much the same problem, so after a few retryes that ended the same I just let Ubuntu handle the disk with its recommended options. Somehow if I did'nt try making a fwap file it worked. After a couple of reboots to both, and letting windows refind its now smaller HD I could resize and create a Swap partition!
I think that the OEM install of windows dosn't fully comply with the specs for partitions, and Ubuntu doing something with special options when allowed fixed that inconsistency. So try the default Let Ubuntu (Keep Windows and resize for Ubuntu) do its diskmagic - and when it all works apply the settings you want!
Best of luck.


SSD partition only shows after navigating to in Nautlius -- disables instant linking

This sounds as if that partition is treated as a removable disk (the /media mount point is another hint), not as a regular filesystem.
You will probably need to add an entry for that partition to /etc/fstab. If there already is one, check if it has the noauto option set which prevents automatic mounting.


Gah, I can't believe I missed this...

uname -r

That command will display the version to install.  Everything is very straightforward after that.


I got it working, though I'm not quite sure why it worked because I didn't really change anything. Dragging those monitors in display manager seems bit sticky/buggy but finally got monitor layout way I wanted.


I want to load ubuntu on a old Sony Vaio V505 pentium M 1.7 ghz....What flavor would work?

Assuming your model has 512MB of RAM, then Lubuntu 16.04 32-Bit would fit the most. If it has 1GB of RAM, then Ubuntu MATE 32-Bit. However, maybe even with 1GB of RAM Lubuntu would be best.


You need to use Telnet. Lucky for you there is a tool for this called  x3270 - IBM host access tool.

 x3270  opens  a  telnet  connection  to an IBM host in an X window.  It
       implements RFCs  2355  (TN3270E),  1576  (TN3270)  and  1646  (LU  name
       selection), and supports IND$FILE file transfer.  The window created by
       x3270 can use its own font for displaying characters, so it is a fairly
       accurate  representation  of  an  IBM  3278  or 3279.  It is similar to
       tn3270(1) except that it is X-based, not curses-based.

       The full syntax for host is:
              [prefix:]...[LUname@]hostname[:port]

Installation (x3270
)

sudo apt-get install x3270

According to the information in Ubuntu Software Center you will need to install the x3270 fonts manually since they are required (xfonts-x3270-misc
):

sudo apt-get install xfonts-x3270-misc


You can do this using the following command.

pssh -h <hostfile> -l <username> "-O StrictHostKeyChecking=no" -A -i "top -b -n1"

Change <hostfile> to the file name of you host file, and change <username> to the remote username.

You can remove the "-O StrictHostKeyChecking=no" option if this is not the first time you are connecting to the machine using pssh or ssh.

You have to run the top command in batch mode as you are running it via remote. Thats why we used -b flag with top

-n means number of iterations. So if we set it to 1 (-n1), then it will give one instance of top output. You can change the value to get more instances.

-i used to get the standers output and standers error as each host completes

-A used to get the prompt for a password and pass it to ssh. If you are using ssh keys, then you can exclude this flag.


Is this tactic of switching from btrfs to ext4 safe?

This will not work for the root partition (special device files, kernel etc.). Unless you have very good reasons not to, I would install the system from scratch.

Also, I would not modify both partitions at the same time, but proceed step by step, always checking that everything works.

And I would start by doing a backup.

I would proceed as follows:

Make a rigorous backup on an external disk
Test that the backup works and that you can restore the data

Now, to the /root partition:

Boot from live CD. Delete the root partition. Format ext4. Install system from scratch.
Check that the new system works.

As for /home, rather than using tar, I would move it to the new ext4, check that it works and then delete btrfs and expand ext4. However, if disk space is an issue, do as follows:

Boot from live CD. Shrink the home partition.
Boot normally and test that the data is not corrupted.
Boot from live CD. Create an ext4 partition in the empty space. Archive your home there.
Delete the btrfs partition, create an ext4 partition, untar your home (as you have proposed).
Boot normally and test that all worked as expected and that your /home is fully restored.
Boot from live CD, remove the ext4 partition containing the archives, expand your /home partition back to the full size.


Google Chrome's icon after Ubuntu 14.10 lastest update

Google Chrome is famous for producing local .desktop files (launchers) in ~/.local/share/applications. The downside is that these .desktop files are not updated when the application is updated. Appearantly the latest update makes earlier .desktop files incompatible.
What to do
Navigate to ~/.local/share/applications, find and delete all launchers, related to Google Chrome, log out and back in. It should be fixed then.


Your problem is line 93:

alias ll='ls -alF

You're missing the closing quote ('). That should be:

alias ll='ls -alF'

The error you are getting is confusing because bash sees the opening ' and then tries to find a closing one, and that confuses its parser completely. Just fix the missing ' there and you should be fine.

It is complaining about line 120 because it searches all the way to the end of the file (so last line + 1) and doesn't find its closing quote.


In case it is helpful to others, after more research I have concluded Oculus Air link is currently only supported in Windows. As noted in the "Edit" above, it is not compatible with Wine either.


Ubuntu 18.04 mounting buffalo linkstation always with parse error in fstab

I have a ls220de. Maybe this can help you, This is my config:
//192.168.0.XXX/share /mnt/z cifs username=admin,password=ThePassword,vers=1.0,auto,x-systemd.automount,uid=1000,guid=1000


Ubuntu UFW blocks port even though it is enabled

It is important to note the TCP flags in your example syslog lines, "ACK RST".

It is also important to know that for TCP connections, Linux tends to use a "half-duplex" close sequence where either side of the session can initiate connection termination via a single 2 way FIN-ACK handshake, instead of a full 4 way FIN-ACK handshake. (although in this case it seems to have been a reset (RST) packet).

The blocked packets are likely due to some extra packets at the end of a TCP session where the connection tracking table has already forgotten about the session, and therefore they are considered to be incorrectly formed NEW packets. They are nothing to worry about, and the actual TCP session likely worked just fine.


What is the difference between "more" and "less" commands?

more is the oldest, less is an improvement and most is an improvement on that.

Short comparison:

more: forward navigation and limited backward navigation.
less: both forward and backward navigation and also has search options. You can go to the beginning and the end of a file instantly. Plus you can switch to an editor (like open the file in vi or vim). It is noticeably quicker than editor for when the file is large.
most: has all the features of more and less but you can also open multiple files, close 1 file at a time when you have multiple files open, allows locking and scrolling of the open windows and allows for splitting of open windows.

All 3 use the h to let you view the keybindings for the command.


No, you don't have to rename the interface, it must be eth0 on the guest. As Sneetsher explained, the VM does not have direct access to the host's NIC.

From the VirtualBox Documentation (Chapter 6):

  Note

  Bridging to a wireless interface is done differently from bridging to a wired interface, because most wireless adapters do not support promiscuous mode. All traffic has to use the MAC address of the host's wireless adapter, and therefore VirtualBox needs to replace the source MAC address in the Ethernet header of an outgoing packet to make sure the reply will be sent to the host interface. When VirtualBox sees an incoming packet with a destination IP address that belongs to one of the virtual machine adapters it replaces the destination MAC address in the Ethernet header with the VM adapter's MAC address and passes it on. VirtualBox examines ARP and DHCP packets in order to learn the IP addresses of virtual machines.

Since you use static IP addressing, VirtualBox can't learn from DHCP packets (please post host, VM and gateway addresses, it could be a trivial error).

Please use DHCP instead so VirtualBox can learn the guest address.

auto eth0
iface eth0 inet dhcp


Install `gedit-plugin` for a downgraded version of gedit

I had to find out that the build process isn't so easy to solve. However I found another approach for you to get the old version of gedit and gedit-r-plugin up and running.

First removing the traces of your gedit compiling and installing tries (change the paths respectively to fit your situation).

cd ~/your build dir of gedit-plugins/
sudo make uninstall
cd ~/your build dir of gedit/
sudo make uninstall

The next command uninstalls the eventually existing 3.18.3 version of gedit, gedit-dev, gedit-plugins and gedit-common.

sudo apt-get remove gedit gedit-dev gedit-plugins gedit-common

Best to do the following steps in a clean seperate directory.

Now downloading the proper dependencies package for gedit-common 3.10.4 and installing it.

wget http://mirrors.kernel.org/ubuntu/pool/main/g/gedit/gedit-common_3.10.4-0ubuntu13_all.deb
sudo dpkg -i gedit-common_3.10.4-0ubuntu13_all.deb

Then downloading the proper gedit 3.10.4 package and installing it

wget http://mirrors.kernel.org/ubuntu/pool/main/g/gedit/gedit_3.10.4-0ubuntu13_amd64.deb
sudo dpkg -i gedit_3.10.4-0ubuntu13_amd64.deb

And downloading the proper gedit-dev 3.10.4 package and installing it.

wget http://mirrors.kernel.org/ubuntu/pool/main/g/gedit/gedit-dev_3.10.4-0ubuntu13_amd64.deb
sudo dpkg -i gedit-dev_3.10.4-0ubuntu13_amd64.deb

Finaly downloading the proper gedit-plugins 3.10.1 package

wget http://mirrors.kernel.org/ubuntu/pool/universe/g/gedit-plugins/gedit-plugins_3.10.1-1ubuntu3_amd64.deb

We need to unpack this downloaded .deb file because we need to do two changes (sudo keps the packages owner intact).

sudo dpkg-deb -R gedit-plugins_3.10.1-1ubuntu3_amd64.deb tmp

First we are editing tmp/DEBIAN/control and change python3 (<< 3.5), python3 (>= 3.4~), python3.4 to python3 (>= 3.5~), python3.5.

sudo nano tmp/DEBIAN/control

Then we edit tmp/DEBIAN/postinstand change py3compile -p gedit-plugins /usr/lib/x86_64-linux-gnu/gedit/plugins -V 3.4 to py3compile -p gedit-plugins /usr/lib/x86_64-linux-gnu/gedit/plugins -V 3.5.

sudo nano tmp/DEBIAN/postinst

Now we can pack a new .deb file.

sudo dpkg-deb -b tmp gedit-plugins_3.10.1-1ubuntu4_amd64.deb

And changing ownership of the new .deb file (replace username with your username)

sudo chown username:username gedit-plugins_3.10.1-1ubuntu4_amd64.deb

Now finally installing it.

sudo dpkg -i gedit-plugins_3.10.1-1ubuntu4_amd64.deb

And now we download the proper gedit-r-plugin 0.8.0.2 package and install it.

wget http://mirrors.kernel.org/ubuntu/pool/universe/g/gedit-r-plugin/gedit-r-plugin_0.8.0.2-Gtk3-Python3-1ubuntu1_all.deb
sudo dpkg -i gedit-r-plugin_0.8.0.2-Gtk3-Python3-1ubuntu1_all.deb

Only thing now left is protecting this all from upgrading.

sudo apt-mark hold gedit-common gedit gedit-dev gedit-plugins gedit-r-plugin


Workspaces not working after I turned it on

Switched from GNOME (Compiz) to GNOME (Metacity) and it worked. You do that from the login screen.


It sounds like you have the "Snap" version of GIMP installed...

When you search for GIMP in Ubuntu Software, you should see two results if you're using Ubuntu 18.04 LTS ("Bionic Beaver") or newer:

If you cannot see two versions of GIMP, you will need to enable "Community-maintained free and open-source software (universe)" by searching for "Software & updates" in the menu (its icon looks like a cardboard box with a globe/Earth), then make sure there is a "tick" in the box that says "Community-maintained free and open-source software (universe)":

Snap packages often have problems with "seeing" hardware - at least in my experience - so I'm guessing you've probably installed the Snap version of GIMP... Install the "traditional" version of GIMP (i.e. the other result) instead.

The "Snap" version will have "Snap Store" listed under "Source":

Whilst the "traditional" version of GIMP will have "ubuntu-bionic-universe" listed under "Source":

Just don't forget to remove/uninstall the Snap version of GIMP first - otherwise you'll have two copies of the same program installed and two icons in the menu! You can do this by selecting the "Snap" version of GIMP in Ubuntu Software.


Tails USB won't boot in ubuntu MATE 15.04

try using rufus tool to make your bootable media [of course on a windows machine]. I faced a quite similar issue but rufus did it for me. It automatically decides which boot mode is perfect for your iso image.....if rufus asks for syslinux files, use these extract the folder to ./rufus_files/syslinux-6.03 and you are good to go.


Chrome now includes Flash built in by default, there is no need to do anything else.


How to increase contrast of a black and white image?

Image-magic is a good software for editing batch pictures and You can also use ** GIMP** it is free and it work almost like adobe photoshop.


Have you considered ending your ssh session then executing the suspend command over ssh instead of opening a whole new session?
ssh -t user@host sudo systemctl suspend

That should do what you want. Otherwise you could set it up for passwordless sudo but you should carefully consider the security implications of that.
Some sources to look at for ways to set that up:
https://stackoverflow.com/questions/10310299/proper-way-to-sudo-over-ssh?noredirect=1&lq=1
https://stackoverflow.com/a/4627834
https://stackoverflow.com/questions/39066852/how-to-use-sudo-programmatically-via-a-pipe?noredirect=1&lq=1
Edit:
Also, if you want some more secure (I believe) way to do it passwordless you could add a sudoers entry for that. For example create a file called suspend-nosudo in directory /etc/sudoers.d with content:
# Allow yourusername user to suspend without sudo
yourusername ALL=(ALL) NOPASSWD: /usr/bin/systemctl suspend

Where yourusername is of course your username.
Then if you do
ssh -t user@host sudo systemctl suspend

You get no password prompt.


Wi-Fi 6 AX201 frequently dropping connection on Ubuntu 20.04.2 LTS

I figured out the answer to this problem (connecting to the 2.5GHz band of my router and not the 5GHz band solved it). More discussion here: WiFi Adapter AX201 Ubuntu 20.10 dropping connection frequently


Install Problem - Install Now Button doesn't bring up the next window

Ok so I deleted all the fedora partitions using gparted, then tried to start the installation again and it worked.
Fedora must have been doing something to prevent being overwritten, I guess.

Thanks for the help Elder.


How to update system time behind a proxy?

Time information is retrieved using Network Time Protocol, which doesn't work through a http proxy.

Talk to your network administrator. Maybe there's already a NTP server on your local network. Or maybe he can install the NTP service in one of the production servers.

Then you only have to set its IP address in /etc/default/ntpdate or /etc/ntp.conf.


In 20.04 how to organize folders for Show Applications

After working with my 2 systems 18.04 and 20.04 side by side, I finally found the answer What's new in Ubuntu 20.04.

While in 18.04 you need to use the software installer with the Installed tab, and the click on the the little check mark, in 20.04 it is far simpler. You just drag and drop.

This solved a problem that I couldn't solve in 18.04, i.e. what about the programs which didn't appear on the software installed tab? For example my HP printer has its own private program. Oracle Java has the same problem.

With 20.04, no problem at all. You work solely with Show Applications, and drag and drop. I'm going to upgrade my 18.04 ASAP.


Maybe this is a stupid suggestion, but did you try downloading the jar file and running it?


How can I get Dash lenses to see files in network shares?

Fixed my own problem (+1 to my "Linux user" cred!):

Unity does attempt to find files you search for via the Dash, but the default configuration for the file indexing tool it uses behind the scenes ("locate") blacklists a bunch of directories and filesystem types. What you want to do is edit your /etc/updatedb.conf file and remove some of these exclusions.

For my particular use case, I removed "/media" from the PRUNEPATHS directive and "nfs"/"cifs" from the PRUNEFS directive. If you then sudo updatedb to re-index the system, you should find Dash file searches behave as you'd expect.


extending a drive using gparted software failed

/dev/sda5 lives inside the extended partition /dev/sda2.

Extend /dev/sda2 first, then /dev/sda5.


I had the same problem. What you have to do is reinstall ubuntu 16.04.01 by erasing ubuntu 16.04 and back up all your data, and programs for that arent that hard to find. But if u mainly use it to program like me, then back up all your files on at least on a 4-16 GB flashdrive. Afterwards, everything worked for me, except that you have to reinstall all your applications. If this isn't an option, then try opening up the terminal and type "sudo apt-get upgrade" and when it says that it doesnt work, you can see the error there in the code, and it might even help you out with a little suggestion. My friends laptop with ubuntu also couldnt update, so when he typed "sudo apt-get upgrade" an error message popped up saying "try -f" and when he applied it to "sudo apt-get upgrade" it worked but dont try this because the process might not be the same for you. Btw are you an administrator? If you are doing this from another User account on the same OS as another user, then chances are that this is failing because your user account doesnt have any administrator privileges.


In terminator, the color palette can be edited in the preferences (Right Click → Preferences) under Profiles → Colors:

There are several schemes you can choose from as well as a “Custom” scheme that let’s you edit the palette directly – the “Linux” scheme may be what you want. These settings are stored in ~/.config/terminator/config, but I advise against editing this file from the command line, too easy to snafu.


How can I create a software RAID drive and install Ubuntu Desktop on that drive?

I am assuming you mean Linux Software RAID rather than hardware RAID.

The alternate CD supports installation onto a Linux Software RAID setup. Here's a link to a screencast I made showing how to do it.

http://screencasts.ubuntu.com/MoS2007/10_Installing_Ubuntu_Part_2

Alternatively you might want to try the new palimsest disk utility on the live CD as this has some options for configuring Linux Software RAID.

It is also possible to install on Linux Software RAID using the Live CD and the mdadm utility. Boot from the Live CD and then "sudo apt-get install mdadm" which is the tool required to create the RAID setup. You'll need to use fdisk (or gparted) to create the partitions and then mdadm to create the RAID array(s).

There are plenty of guides to using mdadm online.


How to/Can I dual boot Ubuntu on my system

You have to change the priorities of bootable devices in your bios. Your Usb port should be indicated there, so bring it to the top of the list so your usb drive is detected first


Boot issues with dual boot windows and ubuntu

Via Windows tools, reduce your Windows partition from 75 to 74GB
Create a separate /boot partition in the 1GB free space as follow: https://help.ubuntu.com/community/BootPartition


Where can I download synaptics touchpad drivers?

Have you tried "gpointing-device-settings" it in your synaptic package manager it what i use for my acer.


add a scanned handwritten signature to an annotated PDF

Master PDF Editor might work for you. It's free but has a slight watermark on saving. It has an Ubuntu 14 version that works in 16+. This is the insert menu:


Can I remove the buttons (min, max, close) from the unity panel and put them back on the window?

I believe you can remove the "indicator-appmenu", and it will become as it was in Lucid, and not sticking to the panel on maximize,

as per this question.


How to link installed pakage with g++ / atom with gpp-compiler package?

It looks like your include statement is incorrect (it has an extra 3). It should read:

#include <GLFW/glfw3.h>

See the GLFW documentation for more information.


Problem solved.
I noticed that in the BIOS boot menu there was an option called "Boot menu" that was disabled. I had to enable it and place it as first option. When restarting, the default boot menu allowed me to boot from DVD.
Cheers.


I cheked for problems in GParted, then I plugged the USB in and out and now it works again.


Bluetooth mouse can't connect to Ubuntu 20.04

This problem was fixed in kernel v5.11
I upgraded my kernel version and the mause connected


External Monitor Issues With Ubuntu 16.04 and i915

Try plugging in headphones per https://github.com/rolandguelle/razer-blade-stealth-linux/issues/18. This seems to have fixed it for me for the time being on a Dell Precision 5520 linked to 2 external monitors via TB16/DP.

@brendanrankin says:
"A bit of an odd thing happened just now. I discovered that if I have a headset plugged in the issue goes away. The same thing applies if I choose anything other than "built in audio" as the output channel. I have two audio capable monitors that I combine to operate as left and right channels....no video glitches when I use those or headphones plugged into the laptop. As soon as I unplug the headphones and the laptop reverts to its own speakers, the monitor connected to the HDMI port starts "glitching".

I'm not sure what value this post brings anyone, but (for me) it makes my RBS much more tolerable to use when "docked". :-)
...

Funky issue, but since HDMI (and DP) standards support audio and video over the same wires it "feels" like an audio/video channelization issue. I'll work to file this at freedesktop.org and/or see if it's already been filed."


After upgrading from 11.10 to 12.04 I don't have ethernet connection, how to solve it?

Sounds crazy, but:

How are the LEDs on the physical connection? Nearly all have leds, and if no LEDs are present typically the cord/instantiating end are at fault.
If LEDs are present- are they "solid" or blinking?
If Solid? Probably a driver or hardware issue. Replace the hardware and troubleshoot. (frys electronics has a 15-day return policy. Just saying.)
If Blinking? Must be driver/configuration related. Post a relevantly  censored printout of the command:

ifconfig -a


Networking/WiFi disabled and unable to enable after resuming from suspend in 13.10

This technique sometimes, but not always works. Please open a terminal and do:

gksudo gedit /etc/pm/config.d/config

A new, empty file will open. Add a single line:

SUSPEND_MODULES="wl"

Proofread carefully, save and close gedit. It may take a reboot to test it.


Ubuntu doesnt showing left panel and action buttons on top of the windows

To open an application from tty1 (CTRL + ALT + F1) in your xsession (CTRL + ALT + F7), you must first export the display variable which specifies the xsession. Here's an example. Press CTRL + ALT + F1 and sign in with your username and password. Then, run the following command:

export DISPLAY=:0

Now you may execute the command to run the application and it should open in your xsession:

ccsm

and press CTRL + ALT + F7 to return to the xsession.

Now, scroll down to the unity plugin and enable it.

Please post any errors, don't worry about warnings.


v4l.c:52:28: fatal error: linux/videodev.h: No such file or directory

Intro

Please note that unified interface to video capture devices is packaged in Ubuntu as libunicap2-dev package.

But it seems that you are patching the exact 0.9.5 version from 2008 year.

1. Compilation

So you should enable source code packages from Software & Updates (or software-properties-gtk command)

and install all build-dependencies with

sudo apt-get build-dep libunicap2-dev

if you need X11 support (GTK-widget) install Xv library with

sudo apt-get install libxv-dev

and then follow your guide:

cd ~/Downloads
wget http://unicap-imaging.org/downloads/unicap-0.9.5.tar.gz
tar -xf unicap-0.9.5.tar.gz
cd unicap-0.9.5
wget http://kaswy.free.fr/sites/default/files/download/ps3eye/unicap/unicap-gspca.patch
patch -p0 < unicap-gspca.patch cpi/v4l2cpi/v4l2.c
./configure

1.1 Patching for current Ubuntu version

As you already know some include-paths were changed since blog-post (sooner or later in 2010). So we need to patch them:

cpi/v4l/v4l.c

cat << EOF > xenial-v4l-p1.patch

--- ~/Downloads/unicap-0.9.5/cpi/v4l/v4l.c
+++ ~/Downloads/unicap-0.9.12/cpi/v4l/v4l.c
@@ -49,7 +49,7 @@
 #endif
 #include <debug.h>

-#include <linux/videodev.h>
+#include <libv4l1-videodev.h>
 #include <linux/videodev2.h> // for v4l2 checks

 #include "v4l.h"

EOF

patch -p0 < xenial-v4l-p1.patch cpi/v4l/v4l.c

cpi/v4l2cpi/uvcvideo.h

cat << EOF > xenial-v4l-p2.patch
--- ~/Downloads/unicap-0.9.5/cpi/v4l2cpi/uvcvideo.h
+++ ~/Downloads/unicap-0.9.12/cpi/v4l2cpi/uvcvideo.h
@@ -2,7 +2,7 @@
 #define _USB_VIDEO_H_

 #include <linux/kernel.h>
-#include <linux/videodev.h>
+#include <libv4l1-videodev.h>

 #include "uvc_compat.h"

EOF

patch -p0 < xenial-v4l-p2.patch cpi/v4l2cpi/uvcvideo.h

Then make and install:

make
sudo make install

2. Testing

It seems that examples are located in examples, we can compile them with:

sudo apt-get install libsdl-dev libjpeg-turbo8-dev
cd examples
make

one interesting is GTK-application in examples/unicapgtk/smallapp

env LD_LIBRARY_PATH=/usr/local/lib/ unicapgtk/smallapp/smallapp

Also you can try to get information about camera

env LD_LIBRARY_PATH=/usr/local/lib/ c/device_info/device_info

To view the video you may need to install UCView, but I do not know how to do this.


Maybe this could solve your problem:

sudo apt-get update
sudo apt-get install overlay-scrollbar

Taken from here: http://pastebin.com/2bENRMf2


Ubuntu 16.04, Wifi connected, no data. Wired connection works

ok its clear that you didn't get DNC from your network the fast and easy was of fix will be to just add by heand :

1) as root edit /etc/resolvconf/resolv.conf.d/base and put

nameserver 10.11.12.83
nameserver 208.67.222.222

it will add 2 name servers to your system (google one and openDNS one )

2) restart your network "/etc/init.d/networking restart"
3) test the new DNS "ping -c2 google.com"

new your system can work and your next step is to talk to your network manager to see why your system do not geting the proper DNS config


How to format a USB stick who have write protection error

Check The USB Drive For Viruses and USB Drive Body, Viruses may fill your USB drive with nonsense files and this can make your USB drive respond with the Write Protected error. And Some USB flash drives have a mechanical switch on them that puts them into Write Protect mode.  If this is the situation, then simply move the switch to the unlocked position and try to copy files again. It should work now.

Make Sure the Flash Drive Isn’t Full, If your USB stick is full, you may also get the Write Protect error message.  Find your USB Drive, right-click on it and select Properties. This will give you the nice pie chart display of the Used and Free space available on your USB Stick.

Remove Write Protection for your USB:
http://www.makeuseof.com/tag/format-write-protected-usb-flash-drive/


Is there a way to open the "Session and Startup" GUI from terminal?

Bring up a terminal, then run:

xfce4-session-settings

If you want to know what application command, navigate to /usr/share/applications, then right click on the application's icon to select "Properties" in the context menu.


Error when installing Ubuntu 20.04 in VirtualBox

I had this issue as well after I had enabed hyper-v on windows 10.

To fix it I, made sure I disabled hyper-v by doing the following.

Open 'Turn Windows features on or off' (search for that in the start menu)
Untick hyper-v, Windows hypervisior platform and virtual machine platform.
Start the command prompt as an administrator. (type cmd in the start menu, right click 'command prompt' and select 'run as administrator')
Run the following command bcdedit /set hypervisorlaunchtype off

After a restart it seemed to install and work.

Credit to u/SquareVehicle on r/virtualbox who suggested the bcdedit command


The bug disappeared by itself. It turned out that the scheduled task that caused the crash has just passed, so the "Scheduled tasks" software works again. I don't know what happened and I don't know how to solve the problem, but in my case, I just needed to wait for the fateful hour to pass and to see the graphic interface software to open by magic.

If someone knows what happened, I'd still be interested in understanding what went wrong and what I could have done to fix this problem while the software was frozen.


My Ubuntu drive is running out of space, how to fix, something is wrong

Still confused about the directories and drives. I ended up reinstalling Linux in 3 newly configured partitions: home=the documents folder, /= for the OS, and Swap= for the swap file (page file in windows). With this setup I can reinstall Linux without losing my documents: Partitioning your disks.


DNS update for domain is not visible in my Ubuntu PC

Make sure that your website's domain names aren't listed in the /etc/hosts file.


Using an already setup RAID 1 array on Ubuntu 12.04

What you have is known as a Fake Raid.  If you install the dmraid package, it will recognize the array and create a device in /dev/mapper/ that you can use to access it correctly.  Be sure to use that device, and not the individual disks.


Wifi is not working on a new computer Lenovo IdeaPad S145

There is an issue with the kernel using in 20.04 with the driver you are needing so i suggest you to try to update your kernel, here is a tutorial
If you already have the needed kernel just jump to the fourth step
First you must uninstall all privative drivers you have(Nvidia,ATI(AMD)) mostly your video drivers this is just to prevent future troubles and reinstall them after you updated your kernel
Check this link to download the needed files
First Step) Now Download the files named:

File: "linux-headers-5.7.0-050700_5.7.0-050700.202006082127_all.deb"
File: "linux-image-unsigned-5.7.0-050700-generic_5.7.0-050700.202006082127_amd64.deb"
File: "linux-modules-5.7.0-050700-generic_5.7.0-050700.202006082127_amd64.deb"

Second Step)
It's time to install all the debs(Gui Method)
just double click the downloaded packages and install them via software center
It's time to install all the .deb packages(terminal method)
"sudo" -Ask for admin privileges
"dpkg -i" -Used to install Debian Packages
sudo dpkg -i linux-headers-5.7.0-050700_5.7.0-050700.202006082127_all.deb
sudo dpkg -i linux-image-unsigned-5.7.0-050700-generic_5.7.0-050700.202006082127_amd64.deb
sudo dpkg -i linux-modules-5.7.0-050700-generic_5.7.0-050700.202006082127_amd64.deb

Third Step)Once all packages are installed
This updates your grub to the latest kernel you have installed
Is time to run
sudo update-grub

Reboot your Laptop and now ubuntu will boot with the new kernel
Fourth Step)
install this packages to compile the third party driver
sudo apt-get install --reinstall git build-essential linux-headers-generic

Then clone this git
git clone http://github.com/lwfinger/rtlwifi_new.git -b rtw88

Now you can install it
navigate to the git clone directory look for the file named "rtw8822ce.c" and search for the string "0xC822" and change it to "0xC82F" save and close the file
cd rtlwifi_new
make
sudo make install

Almost Last Step)
sudo update-grub

and reboot
Last Step)
enjoy your wifi card!
NOTE
if something fails remember to search the packages you installed and uninstall them
https://github.com/lwfinger/rtw88
https://forums.linuxmint.com/viewtopic.php?f=68&t=296139
https://forums.linuxmint.com/viewtopic.php?t=320112


How to fix graphical error and blurred edges in Ubuntu Gnome 14.04

The 'Drop Shadow' can be fixed by the following steps -

Create the file gtk.css using the command

gedit ~/.config/gtk-3.0/gtk.css

and paste the following inside it

  .window-frame, .window-frame:backdrop {

box-shadow: 0 0px 0px 1px alpha(black, 0.7),

0 0 0 1px mix(shade(@titlebar_bg_color, 0.1), @titlebar_fg_color, 0.00);

}

Finally, restart GDM using the command

service gdm restart

The "messed up" shadow should no longer appear.


I had problems with openjdk (some apps didn't work) so i'm using oracle jdk now.

Follow the instructions sachin pointed out. You can continue installing it by hand if you really want to ("the manual way" in the answer), but i don't think it's worth the trouble. Just scroll down to "the easy way" and it's as simple as:

$ sudo add-apt-repository ppa:webupd8team/java
$ sudo apt-get update
$ sudo apt-get install oracle-java7-installer

(or oracle-java6-installer for java6 etc)
It'll download the oracle package and take of integrating it nicely with ubuntu.


What is the difference between jobs and services?

A service is a type of job (Jobs are either tasks or services).

From the upstart cookbook:

4.1 Job

A "unit of work" - generally either a "Task" or a "Service". Each Job is defined in a Job configuration file.

4.1.1   Job Types

4.1.1.1   Task Job

A Task Job is one which runs a short-running process, that is, a program which might still take a long time to run, but which has a definite lifetime and end state.

For example, deleting a file could be a Task Job since the command starts, deletes the file in question (which might take some time if the file is huge) and then the delete command ends.

4.1.1.2   Service Job

A Service Job is a long-running (or daemon(3) process). It is the opposite of a Task Job since a Service Job might never end of its own accord.

Examples of Service Jobs are entities such as databases, webservers or ftp servers.

4.1.1.3   Abstract Job

There is one other type of job which has no script sections or exec stanzas. Such abstract jobs can still be started and stopped, but will have no corresponding child process (PID). In fact, starting such a job will result in it "running" perpetually if not stopped by an Administrator. Abstract jobs exist only within Upstart itself but can be very useful. See for example:

Jobs that "Run Forever"
Synchronisation


This link should do the trick.

I found the link @ ubuntu.com/download.


Trying to create UDEV rule to mount removable drive exfat partition

mount is not allowed in the late releases of udev. Better to go with udisks if you are using Gnome/Unity or any other alternative for other DE.

man udev

  RUN

  Note that running programs that access the network or mount/unmount
  filesystems is not    allowed inside of udev rules, due to the default
  sandbox that is enforced on    systemd-udevd.service.


How to convert a Mac BIOS boot to EFI boot?

Try this:

Instal rEFInd in OS X. You can use the install.sh script to do this.
Type sudo mkdir /EFI/refind/drivers_x64 in an OS X Terminal window. (If you use the --esp option to install.sh, you'll need to adjust the path to create this directory on the ESP.)
Install the rEFInd EFI driver for whatever filesystem you're using to store your Linux kernels (usually ext4fs, but sometimes not). To install the driver, you need to copy it to the drivers or drivers_x64 subdirectory of the rEFInd installation directory (/EFI/refind by default in OS X).
In Linux (even from a BIOS-mode boot), run the mkrlconf.sh script that comes with rEFInd. This will generate a /boot/refind_linux.conf file, which holds kernel options that rEFInd passes to your kernel.

Ideally, this will enable you to boot directly to Linux in EFI mode, bypassing GRUB, which can be tricky to configure if the automated scripts don't get it right. rEFInd should detect your kernels each time you boot, so you won't need to update anything when you upgrade your kernels.

If this works, and if you're not triple-booting with Windows, you may want to:

Edit /EFI/refind/refind.conf, uncomment the scanfor line, and ensure that hdbios is not present. This will keep the old BIOS-mode GRUB from showing up as a rEFInd boot options.
Remove the hybrid MBR from your hard disk. You can do this by editing the partition table with parted or GParted (just make any trivial change) or by installing the gdisk package, launching gdisk on your disk, typing x to get to the experts' menu, typing n to generate a new protective MBR, and typing w to save your changes. Removing the hybrid MBR will reduce the odds that it will cause problems in the future.


How can I move Chrome's buttons to the right in Gnome3's Shell

Won't let me add a comment to the chosen answer

if you use

gconftool-2 --set /apps/metacity/general/button_layout --type string ":minimize,maximize,close"

You'll keep all the buttons


I am on kernel 4.13.0-36 generic, and it's after the latest updates done. I do not know how you have a -67 version. Can't even find it on google.

Have you tried the newest 16.04 LiveCD to see if the card works to begin with?

Also, some installs, such as Teamviewer, or Skype, may change your .conf files. Have you looked at them?

/etc/modprobe.d/alsa-base.conf
and the files in /etc/pulse/

And in alsamixer, F5 to show all, none of the channels/options show MM (which stands for Muted), right? Except maybe the Headphone option.


This goal can be achieved via Nautilus Script.

Source of this answer is the answer's section of the question: If I create a link to a folder, how can I get from that linked folder to the "real" folder from within Nautilus?

Also here is the origin of the script: open-the-link-target-in-nautilus. Listed dependencies are perl and zenity, but they are already installed by default.

There is no difference into the script content but in nowadays versions of Ubuntu the location path for Nautilus Scripts is changed to: ~/.local/share/nautilus/scripts

1. Create the script file and make it executable:

touch ~/.local/share/nautilus/scripts/"Open link target"
chmod +x ~/.local/share/nautilus/scripts/"Open link target"

2. Edit the script file:

gedit ~/.local/share/nautilus/scripts/"Open link target" &

3. Paste next lines as the script's content:

#!/bin/bash
#Title=Open-the-link-target-in-nautilus
#Title[fr]=ouvrir-le-repertoire-cible-dans-nautilus

#==============================================================================
#                     open-the-link-target-in-nautilus
#
#  author  : SLK
#  version : v2011051501
#  license : Distributed under the terms of GNU GPL version 2 or later
#
#==============================================================================
#
#  description :
#    nautilus-script :
#    opens the target of a symbolic link of the selected object; if
#    the target of the symbolic link is a file, opens the parent folder
#
#  informations :
#    - a script for use (only) with Nautilus.
#    - to use, copy to your ${HOME}/.gnome2/nautilus-scripts/ directory.
#
#  WARNINGS :
#    - this script must be executable.
#    - package "zenity" must be installed
#
#==============================================================================

#==============================================================================
#                                                                     CONSTANTS

# 0 or 1  - 1: doesn't open but displays a message
DRY_RUN=0

#------>                                       some labels used for zenity [en]
z_title='Open the link target in nautilus'
z_err_bin_not_found='not found\nEXIT'
z_no_object='no object selected\nEXIT'
z_info_target='path of the target'
z_choice_open_nautilus='open target in nautilus'
z_choice_open_file='open file with default application'
z_choice_display_filepath='open a messagebox to copy filepath'

#------>                                       some labels used for zenity [fr]
#z_title='ouvrir le repertoire cible dans nautilus'
#z_err_bin_not_found='introuvable\nEXIT'
#z_no_object='aucun objet selectionne\nEXIT'
#z_info_target='chemin de la cible'
#z_choice_open_nautilus='ouvrir la cible dans nautilus'
#z_choice_open_file='ouvrir le fichier avec le programme par defaut'
#z_choice_display_filepath='ouvrir une boite de dialogue affichant le chemin du fichier'
#==============================================================================
#                                                                INIT VARIABLES

# may depends of your system
DIRNAME='/usr/bin/dirname'
GREP='/bin/grep'
NAUTILUS='/usr/bin/nautilus'
PERL='/usr/bin/perl'
READLINK='/bin/readlink'
XDG_OPEN='/usr/bin/xdg-open'
ZENITY='/usr/bin/zenity'

#==============================================================================
#                                                                     FUNCTIONS

function check_bin
{
    err=0
    for bin in $* ; do
        if [ ! -x "$bin" ] ; then
            $ZENITY --error --title "$z_title" \
              --text="$bin $z_err_bin_not_found"
            err=1
        fi
    done
    [ $err -eq 1 ] && exit 1
}
#==============================================================================
#                                                                          MAIN

# lets check for required binaries :
[ -x "$ZENITY" ] || {
    echo "[ERROR] $ZENITY not found : EXIT"
    exit 1
}
check_bin "$DIRNAME" "$GREP" "$NAUTILUS" "$PERL" "$READLINK"

# lets check if object is selected :
[ "$NAUTILUS_SCRIPT_SELECTED_FILE_PATHS" == "" ] && {
    $ZENITY --error --title "$z_title" \
      --text="$z_no_object"
    exit 1
}

# retrieve the first object selected :
first_object=`echo "$NAUTILUS_SCRIPT_SELECTED_FILE_PATHS" \
  | $PERL -ne 'print;exit'`

# lets check if local path :
[ `echo "$first_object" | $GREP -c "^/"` -eq 0 ] && {
    $ZENITY --error --title "$z_title" \
    --text="[ERROR] $first_object has not a valid path\nEXIT"
    exit 1
}

# retrieve the target path :
if [ -L "$first_object" ] ; then
    # symbolic link
    target=`$READLINK -f "$first_object"`
else
    # not a symbolic link :
    target="$first_object"
fi

if [ -d "$target" ] ; then
    # target is a directory
    target_to_open_in_nautilus="$target"
else
    # target is a file, let's take the parent directory
    target_to_open_in_nautilus=`$DIRNAME "$target"`
fi

### DRY RUN : noop

[ $DRY_RUN -eq 1 ] && {
    $ZENITY --info --title "$z_title" \
      --text="DRY RUN
first_object: $first_object
target: $target
target_to_open_in_nautilus: $target_to_open_in_nautilus"
    exit 0
}

### GO : let's open

choice=`$ZENITY --list --title="$z_title" --width="500" --height="200" \
  --text="$z_info_target\n$target" \
  --radiolist --column "" --column "action" \
  TRUE "$z_choice_open_nautilus" \
  FALSE "$z_choice_open_file" \
  FALSE "$z_choice_display_filepath"`

case $choice in
    "$z_choice_open_nautilus")
        $NAUTILUS --no-desktop "$target_to_open_in_nautilus"
    ;;
    "$z_choice_open_file")
        $XDG_OPEN "$target"
    ;;
    "$z_choice_display_filepath")
        $ZENITY --entry --title="$z_title" --width="500" \
          --text="$z_info_target" \
          --entry-text="$target" &
    ;;
    *)
        exit 1
    ;;
esac

exit 0

### EOF

4. Save the file, open Nautilus, 'right click' on some symlink, go to 'Scripts section' and click on 'Open link target':

5. Then will be appeared this dialogue box:

I'm afraid that, if you want to add a new column into the list view, the source code of Nautilus must be changed and recompiled.


Install Gnome Tweaks if you haven't already.
Make sure suspend when the lid is closed is turned on.


1. Ensure ‘Lock Icons’ in your settings is off:

(at bottom right)

2. Ensure your <Application>.dockitem (whereever you prepare it before copying) is pointing to a .desktop file contains at least a minimal set like so:

[Desktop Entry]
Type=Application
Exec=/usr/bin/someApp -someParameter
Name=My Fancy App
Icon=/home/jacob/Thema/icon/ubu.png
Type=Application
StartupNotify=False

These are the two most common issues to the best of my knowledge. Then, copying over (or: dragging in) should work.


I'm not sure if it is possible to do that, but I can suggest you Samba. You can do more research at the following website:

http://www.samba.org/


How to extract audio from Webm without transcoding?

Considering the answers linked (in my question above), and the answers linked therein (especially this answer and the comment under it, I dare think that the same line of command can be used in the same way for extracting ogg-vorbis out of Webm video. I welcome comments on whether this is the case.

To be able to convert multiple files, install parallel (see this answer).

 sudo apt-get install parallel

And then, just adapting the mentioned command to extract in ogg-vorbis.

parallel avconv -i '{}' -map 0:1 -c:a copy '{}.ogg' ::: %F

(The idea is to get the same audio content as in the original Webm - and checking both the Webm and the output ogg with mediainfo, I see the same audio specifications.)

This command can be used in Thunar's custom actions in a form similar to

xfce4-terminal -e "parallel avconv -i '{}' -map 0:1 -c:a copy '{}.ogg' ::: %F"

UPDATE:

I now prefer a different line of command, without the terminal and parallel:

bash -c 'avconv -i "$0" -map 0:1 -c:a copy "${0%%.*}".ogg' %f


For remove/uninstall and clear all configs correct way it's:

sudo apt remove mysql-server --purge or sudo apt purge --auto-remove mysql-server

Then reinstall it: sudo apt install mysql-server


Installing 12.04 server as a software RAID 1 mirror fails to boot

Well, I was able to proceed by deviating from the official install docs slightly.

Rather than manually configuring the free space on the two drives, I selected "automatically partition the free space" on each drive.

Note that this caused automatic creation of a 32 GB (equal to RAM size) swap partition, and one large ext4 partition. I changed the ext4 partition to RAID, then I was able to mark it bootable at last!

Note the little "B" next to the RAID partition on the first sda drive.


First, use parted -l to check it is indeed a swap partition.

Second, run sudo mkswap /dev/sda3 (or whatever your swap partition is..) to create a swap partition. Do make sure it's the right one!

Third, use blkid to get a UUID for it.

Fourth, sudo vi /etc/fstab (or whatever editor you prefer to vi!) & enter the UUID - there should be a line similar to UUID=7qluevy34fhi77u none swap sw 0 0 in there, if not then write one, ensure the UUID matches step 3. I always cut/paste these.

Finally, try the sudo swapon & check again.


Dual boot two instances ubuntu server 14.04

For more information about dual booting in general check out this documentation.

For your specific case, this is what I would do. (Let's Assume you have 1 100GB Hard Drive and 4GB of RAM, you can adjust the amount of space based on your specific situation)

1) Boot Ubuntu Server 14.04 and change the partition table to look something like this.

Partition 1: ext4 50 GB Mounted on / (We will use this for the school instance)
Partition 2: ext4 45 GB Mounted on / (We will use this for the home instance)
Partition 3: swap 5 GB (This will be shared swap area for both instances)

2) Now run the installer and choose the first partition for your school website.

3) Reboot and run the installer again, this time choosing the second partition for your personal sandbox website.

4) Reboot again, and you should see both options in GRUB, select the one that you want to use and you should be good to go.


Laptop won't connect to Ethernet after configuring it for Broadband BSNL

Here are the screen-by-screen settings for a default ethernet connection. If you see something different (other than the MAC address), consider changing it.

If you click the Routes button on the IPv4 screen, it should be empty like so:


How to get rid of the multiple top bars in gnome classic

What fossfreedom is referring to is Alt+right-click on panel, and it works! Thanks.


How to reboot morethan one remote system?

You may use Cluster SSH, which can connect  to multiple systems via ssh.

Once connected, it executes commands on all systems  simultaneously, including the reboot command when provided.

Cluster SSH opens an xterm per connection, hence it will not be useful if number of systems exceeds 10.

For more details, see this tutorial.


I can't install the multitouch driver if I do `sudo apt-get install xf86-input-multitouch`

Input this at the command line.

sudo apt-get install xserver-xorg-input-multitouch

This holds the Multitouch X input driver


Installed custom fontface but some weights are not available in certain applications

You can try to download newer version of font https://www.google.com/fonts#UsePlace:use/Collection:Roboto


"Failed to fetch" error when installing Eclipse!

Update your package database using sudo apt-get update in the command line and try again.

If that doesn't work, you can download the files manually via the webbrowser (ugly workaround) by going to http://archive.ubuntu.com/ubuntu/pool/main/o/openjdk-6/ and downloading the files with most similar filename to the ones in the error message. Those manually downloaded files can be installed with the Ubuntu Software Center, with gdebi or via commandline with dpkg -i packagename.deb.


Ubuntu 16.04 install HP Stream 13 SQUASHFS errors?

It was something simple - use a different USB drive.  Check found a couple errors on the initial drive I was using.  Re-built the image on another USB drive and the install no longer hung.  No other changes made.


Is there such a thing as a url that executes any command at will! (Just imagine, no more just sending code to someone. You can send them a link to excute any command!)

There is no such "default" url-handler. You could make one, of course, but it would be an immense security risk. Think Windows, where if you click on the link in one spam email, your computer could be infected with viruses or malware!

"executing any command" is even worse, say I sent you a hypothetical any-command-url called anycommand:#rm -rf ~/#, and you didn't know a lot about the command line or didn't notice, that would wipe out your entire home directory.

Always click on a url-handler with care :)