I also encountered above errors however I did manage to launch it on ubuntu 19.04 using

download the binary file from

https://github.com/ChugunovRoman/figma-linux/releases

on Ubuntu pick one called

  figma-linux_0.5.1_amd64.deb

who has direct link https://github.com/ChugunovRoman/figma-linux/releases/download/v0.5.1/figma-linux_0.5.1_amd64.deb

once downloaded install using

sudo dpkg -i figma-linux_0.5.1_amd64.deb

On Ubuntu 19.04 I get this

Selecting previously unselected package figma-linux.
(Reading database ... 253481 files and directories currently installed.)
Preparing to unpack figma-linux_0.5.1_amd64.deb ...
Unpacking figma-linux (0.5.1) ...
dpkg: dependency problems prevent configuration of figma-linux:
 figma-linux depends on libappindicator1; however:
  Package libappindicator1 is not installed.

dpkg: error processing package figma-linux (--install):
 dependency problems - leaving unconfigured
Processing triggers for gnome-menus (3.32.0-1ubuntu1) ...
Processing triggers for desktop-file-utils (0.23-4ubuntu1) ...
Processing triggers for mime-support (3.60ubuntu1) ...
Processing triggers for hicolor-icon-theme (0.17-2) ...
Errors were encountered while processing:
 figma-linux

so now issue

sudo apt-get --fix-broken install -y
sudo apt-get install libappindicator1   libdbusmenu-gtk4
sudo dpkg -i figma-linux_0.5.1_amd64.deb

then upon first launch you will get this error (see workaround)

scott@berghia ~/Downloads $ figma-linux
A JavaScript error occurred in the main process
Uncaught Exception:
Error: ENOENT: no such file or directory, open '/home/scott/config/figma-linux/Settings'
    at Object.openSync (fs.js:436:3)
    at Object.module.(anonymous function) [as openSync] (ELECTRON_ASAR.js:160:31)
    at Object.writeFileSync (fs.js:1168:35)
    at Object.writeFileSync (/opt/figma-linux/resources/app.asar/node_modules/jsonfile/index.js:117:13)
    at Settings._ensureSettings (/opt/figma-linux/resources/app.asar/node_modules/electron-settings/lib/settings.js:153:18)
    at Settings._readSettings (/opt/figma-linux/resources/app.asar/node_modules/electron-settings/lib/settings.js:192:10)
    at Settings._getValueAtKeyPath (/opt/figma-linux/resources/app.asar/node_modules/electron-settings/lib/settings.js:281:22)
    at Settings.get (/opt/figma-linux/resources/app.asar/node_modules/electron-settings/lib/settings.js:404:17)
    at Object.<anonymous> (/opt/figma-linux/resources/app.asar/main/main.js:1:18900)
    at o (/opt/figma-linux/resources/app.asar/main/main.js:1:279)

so pure guesswork I created its missing config file using

mkdir -p ~/config/figma-linux
touch ~/config/figma-linux/Settings

finally it launched OK with a

figma-linux

have fun


Do you mean this?

cat /etc/xxxx/logs/app_$(date +%Y%m%d).log | grep "IP address " |
  awk '{print $10}' | uniq -c | sort -rnk1 | awk '{print $2}' |
  tr "," " " | uniq -c | grep -v "0.0.0.0" | >> /home/output.txt

Explanation:

date +%Y%m%d returns the current date (as understood by the host's current time), in the format YYYYMMDD that you seem to want. The $() part is a useful bash macro that creates a sub-shell executes the commands between the parentheses and returns stdo into the original command.


Using Windows 7 after Ubuntu 12.1 restarts Windows and signs me into a guest account

Windows 7 and Ubuntu are separate one has nothing to do with the other. I am not sure why you are being logged in to a guest account, but rest assured, You won't hurt your Ubuntu install by rebooting windows.


Intermittent NetworkManager error on importing .ovpn files or editing such connection in 16.04 only?

I had this very same issue with connection.gateway-ping-timeout.
Forcing a value different from default 0 from a shell worked for me:

nmcli c modify "Wired connection 1" connection.gateway-ping-timeout 10

I was then able to configure a manual IP address from the KDE Connection Editor.


No, not really. systemd is designed to run as "pid 1" and there can only be one "pid 1" on your system at a time.

For the purpose of future-proofing your app, you could try running Ubuntu 16.04 inside Docker on 14.04, or simply rent a 16.04 server to test with periodically, on AWS or another service.

I think it's very likely you will find that systemd can replace whatever you are using Upstart for, so you can also likely defer your systemd testing until it's close to the time to upgrade to Ubuntu 16.04.


I fixed it by changing corresponding command in the gnome-file-roller.tap file. In my case this file has been placed at

/usr/lib/i386-linux-gnu/thunar-archive-plugin/gnome-file-roller.tap

Just edit it replacing this line:

file-roller "--extract-to=$(pwd)" --extract-here --force "$@"

with this one:

file-roller --extract-here --force "$@"


I can't understand why files are not being written to a mounted partition

After remounting the device, it worked.
I'm not sure why it didn't work earlier and put it down to me making a mistake initially.


httrack: how to copy a website with email based username login

I think you should click on "Add URL" button according to screenshot given below.

I successfully copied the whole site by providing email and password using this way.
I hope this will help you too :)


How do I boot to Windows 8 from Ubuntu 13.04 on a dual-boot EFI install? (No Grub)

There are at least two possible causes of your problem:

You've installed Ubuntu in EFI mode but the GRUB configuration tool has failed to identify Windows, and so is booting through GRUB but with a short timeout and a hidden menu.
You've installed Ubuntu in BIOS mode, which means that it can't boot Windows (which is in EFI mode), and so GRUB is using a short timeout and a hidden menu.

If you're booting in EFI mode, this might be a bit easier to fix, since you should be able to run Boot Repair from your current Ubuntu and it should be fixed. To determine if you're in EFI mode, look for a directory called /sys/firmware/efi. If it's present, you're booting in EFI mode; but if it's absent, you're probably booting in BIOS mode.

If you're booting in BIOS mode, you can fix the problem by installing an EFI-mode boot loader for Linux. You can do this in any of several ways, but two relatively easy ones are:

Boot a live CD-R or USB flash drive in EFI mode and run Boot Repair. This should get GRUB up and running with Windows detected. The trick is forcing an EFI-mode boot of a live CD. You may need to play with your firmware's boot options. Typically, hitting a function key (which one varies) produces a boot menu, and you should select the one for your live CD that mentions "EFI" or "UEFI."
Download the CD-R or USB flash drive image of my rEFInd boot manager and prepare a medium with it. You should then be able to boot to it. If rEFInd lets you boot both Windows and Linux, boot to Linux, mount your EFI System Partition (ESP) to /boot/efi, and install the Debian-package version of rEFInd. You'll then use rEFInd to select your OS on subsequent boots.

If one of these fails, try the other one. If you continue to have problems, post back with the URL that Boot Repair provides; this will give us detailed information on your system's configuration.


Upgrade to Ubuntu 18.04 fails from 17.10

You should remove the Zesty URL from your sources.list. Use only the Artful sources. Zesty is an EOL Ubuntu release its URLs isn't compatible with your current distribution.

Edit your /etc/apt/sources.list or the file under /etc/apt/sources.list.d/ then remove:

http://security.ubuntu.com/ubuntu zesty-security


command to install 32bit packages (lib32z1 lib32ncurses5 lib32bz2-1.0) on Ubuntu 14.04.2 LTS

According to this article from Humble Bundle: https://support.humblebundle.com/hc/en-us/articles/202759400-Installing-32-bit-libs-on-a-64-bit-Linux-system

As of Ubuntu 13.04, ia32-libs was replaced by lib32z1, which in turn depends on libc6-i386. Try the following command:

sudo apt-get install libc6-i386 lib32z1

You may or may not need lib32ncurses5 or lib32bz2-1.0.

If you do need lib32bz2-1.0, it should install fine once you have installed libc6-i386 (using the command above).
If you do need lib32ncurses5, you will also need to install lib32tinfo5

You can install lib32tinfo5 as follows:

sudo apt-get install lib32tinfo5

If you need 32-bit versions of additional libraries for which both 32- and 64-bit versions exist, you can use the suffix :i386 to explicitly install the 32-bit version of the package. For example:

sudo apt-get install libasound2-plugins:i386


Possible missing firmware (Xubuntu 18.04)

I had this problem as well, let's run the following commands altogether.
sudo apt-get update &&
sudo apt-get -y install make gcc linux-headers-$(uname -r) build-essential git &&
git clone https://github.com/lwfinger/rtw88.git &&
cd rtw88/ &&
make &&
sudo make install &&
sudo reboot

This will restart if the process is successful. Hopefully, after the restart, you will have the wifi back.
When the kernel is changed, you need to do the following:
cd ~/rtw88
git pull
make
sudo make install

This SHOULD be done whenever you have a new kernel - no exceptions.
Reference:

http://ubuntuhandbook.org/index.php/2018/08/no-wifi-adapter-found-hp-laptops-ubuntu-18-04/
https://github.com/lwfinger/rtw88


Is there a auto-complete tag like control for quickly/pygtk?

Here's a simple example:

from gi.repository import Gtk

class MyExample(Gtk.Window):
    def __init__(self):
        Gtk.Window.__init__(self)
        self.connect("delete-event", Gtk.main_quit)

        liststore = Gtk.ListStore(str)
        for match in ["test1", "test2", "test3", "spam", "foo", "eggs", "bar"]:
            liststore.append([match])

        completion = Gtk.EntryCompletion()
        completion.set_model(liststore)
        completion.set_text_column(0)

        entry = Gtk.Entry()
        entry.set_completion(completion)
        self.add(entry)
        self.show_all()

if __name__ == "__main__":
    app = MyExample()
    Gtk.main()

You'll just have to dynamicly fill the liststore with the values you want. Displaying a number next to it can be as trivial as appending it to the string you're adding to the liststore or you can create a second column in it. This all depends on your code and isn't possible to answer, but this should get you going.

You can even create most of the above code in Glade if you want.


Ubuntu 14.04: How to add an Ethernet connection from command line that's editable in Network Manager GUI?

You can edit/create a connection file in /etc/NetworkManager/system-connections. For instance I just created ethfix192
[802-3-ethernet]
duplex=full

[connection]
id=ethfix192
type=802-3-ethernet
autoconnect=false

[ipv6]
method=auto

[ipv4]
method=manual
address1=192.168.2.22/24,0.0.0.0

You will see how the lines in this file correspond to the settings in the GUI.
Note: Ensure that the file has permission '600', otherwise NetworkManager will ignore the file.
Afterwards you need to restart NetworkManager (IIRC on 14.04 it was with sudo service NetworkManager restart, or sudo service network-manager restart) and NetworkManager will recognize the connection.


What information is shown in the "canonical-livepatch status --verbose" output?

I was also getting the state: check-failed error, and I couldn't find a point-and-click method of getting it to re-check.  The little shield icon in my taskbar had a scary red mark on it, so I knew I had to find a way to fix it.  (Different problem from the OP, but still valid I think).

As to your other questions:  I am not sure about the tokens, but I'm also not sure it's an issue unless you aren't able to get the live update.  Client version is the Live-Update software version; Last-check is the last time the Live-Update software pinged the server to see if there was a security update for you; Boot Time is the last time your machine was booted up and that leads to uptime which is how long your machine has been running since that last boot.  Running means the live-patch software is running in the background; last-check failed, though ... that could mean anything from a network error to a password error.  So I think here is where I'll tell you what I did ...

From the command line, issuing man canonical-livepatch results in:

  No manual entry for canonical-livepatch

However, just issuing canonical-livepatch results in something more helpful:

  NAME:
    canonical-livepatch - canonical livepatch client

  USAGE:
    canonical-livepatch [global options] command [command options] [arguments...]

  VERSION:
    9.3.0

  AUTHOR:
    Canonical Livepatch Team

  COMMANDS:
      status   show kernel's livepatch status
      enable   enable livepatching on the machine
      disable  disable livepatching on the machine
      refresh  immediately download and apply any available livepatch
      config   configure livepatching on the machine
      help     display help

  GLOBAL OPTIONS:
    --version, -v  print the version

So I just did sudo canonical-livepatch refresh which then successfully updated and solved the error.  And my shield icon now has a green check!  Oh happy day!

I hope this provides someone with a little help.


Calculate total video length of files inside a folder

With mediainfo:
mediainfo '--Output=Video;%Duration%\n' *.mp4 | awk '{ sum += $1 } END { secs=sum/1000; h=int(secs/3600);m=int((secs-h*3600)/60);s=int(secs-h*3600-m*60); printf("%02d:%02d:%02d\n",h,m,s) }'

the call to mediainfo return the video duration in milliseconds for each file
The awk bit computes the sum and formats it in HH:MM:SS format.


Deleted Ubuntu, then Windows 7 , now Windows is not booting from cd

Fist of all make sure all you data is save.
Next check if BIOS boots from Disk (you need to hit a key during boot)

during the Win 7 install select advanced options and delete the disk (this WILL DELETE ALL you DATA!!!) and select to install Win 7 on this empty partition (win will create a small boot partition it self)


Not able to clone git repository in Ubuntu 20.04

Try using this command git config --system --unset credential.helper which resets your credentials for git.
It seems to be a permission issue.


VBoxManage: error: Failed to create the host-only adapter

I have spent hours and hours, trying various combinations of virtualbox and vagrant, no luck.

Remove virtual box or any old versions of it.

sudo apt remove virtualbox virtualbox-5.0 virtualbox-4.*

Then try using one of ubuntu repositories to install

sudo apt-get install virtualbox

Worked for me.


From man dpkg:

   -l, --list [package-name-pattern...]
          List  packages  matching given pattern. If no package-name-pattern is given, list all packages in /var/lib/dpkg/status, excluding the
          ones marked as not-installed (i.e. those which have been previously purged).

This means that dpkg-l lists all the non-purged packages, and not all the installed packages;

In fact, from man dpkg-query (to which dpkg -l acts as a front-end):

          Desired action:
            u = Unknown
            i = Install
            h = Hold
            r = Remove
            p = Purge

          Package status:
            n = Not-installed
            c = Config-files
            H = Half-installed
            U = Unpacked
            F = Half-configured
            W = Triggers-awaiting
            t = Triggers-pending
            i = Installed

Which means that rc at the start of the line means:

r: The package's Desired action is: "Remove";
c: The package's Status is: only configuration files are present;

Since you want to reproduce an existing system, packages with an rc Desisred action / Status combination that don't appear in the "model" system should be purged:

sudo apt-get purge emacs23

As a side-effect, those packages won't even pop up in dpkg -l anymore.


How to stop Postgres from auto update on Ubuntu?

In the software center, you can search for the package, choose a specific version and specify the system should not use another version even if there's a new one.


You could put the real script in one directory, and a symlink to it in the other. Then you could check $0 each time the script gets called, to see which version was invoked. This way you would retain the conveniance to edit the script in one place.

$0 is the variable, which contains the entire path to the script itself when it gets called. You would find a "if-up" or "if-down" as part of the path, and this could be interpreted as start and stop.


You should be using gksu to launch graphical things as root.

gksu gedit /var/lib/dpkg/status


You can install package from 16.04 LTS on your 14.04 LTS manually with commands below:

cd ~/Downloads
wget http://mirrors.kernel.org/ubuntu/pool/universe/s/spdlog/libspdlog-dev_1.6-1_amd64.deb
sudo dpkg -i libspdlog-dev_1.6-1_amd64.deb

Then use its headers on compilation or launch test examples:

cp -ar /usr/share/doc/libspdlog-dev/example ~/libspdlog-example
cd ~/libspdlog-example
gunzip bench.cpp.gz
gunzip example.cpp.gz
make
mkdir logs
./example
./bench


USB Dock (Pluggable UD3900) video stopped working

Fixed.  Something went horribly wrong with the odiaf ppa updates - I reinstalled the OS and Xorg is now working with the dock (multiple monitors) as expected.


support time of other Ubuntu LTS flavours?

Run command

 ubuntu-support-status

source https://www.ubuntu.com/info/release-end-of-life

I am using Ubuntu mate too, and in my system there are 75% packages are supported until 5 years.
this is screenshot of my Ubuntu mate 16.04 LTS

now running the command you can see that packages related to desktop environment are supported for 3 years and those system related are supported for 5 years.

now in this screenshot you can see that these packages are supported for 3 years and they are mostly related to mate desktop environment like caja,mate panel,mate-desktop-environment-core..etc

As Ubuntu flavors are based on some other desktop environment like lubuntu is  based on LXDE,these desktop environments are not in control of canonical which had made Ubuntu.but unity which is default desktop environment of the Ubuntu is made by canonical and thus they are in full control of the unity desktop environment,thus they provide 5 years of support to maximum packages.


This sounds like you no longer have a music subscription. Please go to https://one.ubuntu.com/account/ and make sure you have the Music Streaming subscription.


Aside from this article on safaribooksonline.com and a bunch of other third-party sources I couldn't find any description of command-line options for skypeforlinux.
I tried every combination with --callto I could think of and couldn't get it to work either. As not even the fairly common --version flag is recognized by the program I'm afraid the current Skype for Linux doesn't have any command-line options at all any more – I guess they were removed when the transition from Skype (for Linux) 4.3 to Skype for Linux 8 was made.


Getting Cyrillic around Ubuntu - Unwanted

Well, according to Wikipedia, there are two official languages in Kosovo, so I wouldn't say there was a misunderstanding. ;-) Rather the installer made a guess with respect to your desired regional format setting based on your location.

To change it, go to System Settings -> Language Support. Then select the Regional Formats tab and change it to your liking.

If you want to install e.g. Albanian, select the Language tab and click the Install / Remove Languages... button.


You can open the Ubuntu One Control Panel and disable file synchronization completely from the “Services” tab:

If you're using an earlier version of Ubuntu you have the same functionality exposed in Ubuntu One Preferences:


There is a graphical tool called fslint that has an option to search for duplicate files based on filename.
If this is what you were looking for you can install it by executing sudo apt-get install fslint.


Check that your virtual machine still has the option "Enable 3D Acceleration" checked (in VMs settings -> Display).


sudo apt-get install mlocate should install the 'locate' command.

mlocate maintains a database of all your files and is re-indexed once a day by default.  If you want it to re-index immediately then run sudo updatedb from the command line.

If you get a cannot stat error when you run locate, then you need to run sudo updatedb to populate the database, just as if you wanted to re-index immediately.


I started answering this (as I do when I start answering a lot of questions on AU) because I wanted to know more. You've asked some pretty decent questions about how things work that I confess, I didn't immediately have answers to. I've done my best.

You'll understand what I'm talking about when you look at man xorg.conf and find things like this:

VIDEOADAPTOR SECTION
       Nobody wants to say how this works.  Maybe nobody knows ...

Seriously.

LightDM is started by Upstart (the init system, started by the Kernel on boot) here:

/etc/init/lightdm.conf

That feeds into the lightdm command which reads (seat information, etc) from:

/etc/lightdm/lightdm.conf
/etc/lightdm/lightdm.conf.d/*

And then starts X which looks for the following configurations:

/etc/X11/<cmdline>
/usr/etc/X11/<cmdline>
/etc/X11/$XORGCONFIG
/usr/etc/X11/$XORGCONFIG
/etc/X11/xorg.conf
/etc/xorg.conf
/usr/etc/X11/xorg.conf.<hostname>
/usr/etc/X11/xorg.conf
/usr/lib/X11/xorg.conf.<hostname>
/usr/lib/X11/xorg.conf
/etc/X11/xorg.conf.d/*
/usr/etc/X11/xorg.conf.d/*

If present in the configuration, that's how X would pick the driver/monitor/etc layout... If it's not, the newer XRandR extensions have a major part to play in guessing and persisting monitor settings.

If you don't want a best guess, you can force it in a direction by:

Telling xrandr to do something in particular
Blocking the wrong module (eg the binary nvidia blacklists the free nouveau driver)
Setting up an xorg.conf

But if you let xrandr handle things, once you log in, the configuration comes from:

~/.config/monitors.xml

After X starts there's a load of session gubbins (autostarts, etc) that start that aren't particularly relevant to the graphics process but they're probably worth mentioning. Mentioned.

There are two bits that elude proper explanation:

The relationship between Xorg and Kernel drivers has made me go thoroughly cross-eyed. I found a very exhausti{ve,ng} book on the subject[PDF!] but haven't had the time to even scratch it.
How Xorg/XRandr picks the right driver.

There's certainly a lot more automagical wrangling than there used to be.


How to completely disable classic Bluetooth and BLE in Kubuntu 16.04

Afaik, all the desktop environments in Ubuntu along with many applications have hard dependencies on the presence of Bluetooth software modules. However I don't think there's a reason to worry because of their presence alone since you can disable them trivially in Control Center → Bluetooth1:

I have no Bluetooth adapter, so I can't toggle to enable or disable it but you can still see the control in the screenshot.

1 This is in GNOME Control Center. Unity Control Center looks a little different but it too features a Bluetooth section.


What is "root"?

root is a user existing on every Linux system.
To be more precise, it is a special user - the super user!
root is the only user that has privileges to do everything.

In contrast to the two types of user accounts you can create (administrator users and restricted users), it exists by default and can neither be renamed or deleted. Usually, logging in as root is disabled for security reasons.

You may think that your admin user is the most powerful account on your machine and may do everything, but that is wrong. Simplified and in general, your admin user is almost equal to a restricted user in permissions. It also only has writing permissions in its own home folder and also may not change system wide settings.
However, the admin users have one special and important privilege:

How to  become "root"?

As logging in as root is prohibited on Ubuntu per default, there has to be another way to become root in order to be able to perform important system wide administrative tasks.

The sudo command<-- (abbreviation for "Super User DO ...")

Administrator user accounts have the permission to use the sudo command to execute a single command as root/with root privileges.
It is simple. Just write sudo before every terminal command that needs special elevated permissions to run and execute it. It will show you a prompt and ask for a password like this (my username is bytecommander):

[sudo] password for bytecommander:

Note that you have to enter the password of your own admin account and not the (by default not existing) root user's password. It is also configured to only ask once every 15 minutes for your password, so the second invocation of sudo will run the command immediately. However, if you close the terminal window, the sudo ticket is also reset. Furthermore is it important for you to know that there will be no display output when you type the password, not even stars (*) will appear to symbolize the entered characters. Just type it and hit Enter.

Let me give you an example on how/when to use sudo:

apt-get is the command-line tool to run software updates and install new packages. This affects the whole system and therefore requires root permissions. Therefore, whenever we need to invoke apt-get, we have to do this with sudo:

sudo apt-get install vlc

would for example install the famous media player VLC (after asking for your password, if you did not enter it in the current terminal window within the last 15 minutes). If we ran the command as normal user without sudo (apt-get install vlc only), it would result in this error:

  E: Could not open lock file /var/lib/dpkg/lock - open (13: Permission denied)
  E: Unable to lock the administration directory (/var/lib/dpkg/), are you root?

How to proceed with graphical applications instead of terminal commands?

Sometimes you need to run a graphical application (such as e.g. the Files manager, a special editor or an additional tweak tool) with root privileges. In this case, please do not use sudo, as this is only for terminal commands. For several reasons I don't want to discuss here, it may lead to severe problems (see this answer for further explanations)...

So for graphical applications, there are other commands which are safer to run GUI apps and which provide a graphical popup-window to request your password instead of a terminal window. Those are mainly gksu and gksudo. Experts are arguing which of them is to prefer, but for the normal Ubuntu user, both can be taken equally. The syntax is the same as with sudo. For example, we can run the file manger Nautilus with root privileges by:

gksudo nautilus


Selling Computer with Ubuntu. Need to wipe and reinstall

This method will help you remove your account and home folder without reinstalling the whole system but it will leave any additional software you've installed intact.  If you want that software removed too you have to either purge it manually or do a clean install.

Start your system as usual, open a terminal and type: sudo passwd.
This will let you create a password for the root user.  Right after that, log off your account and when the lightdm screen reappears asking for your password, press Ctrl-Alt-F1 to go to console mode.

In console mode you will be asked to enter the user name first.  Type root+Enter.  Then type the password you created a few minutes ago for the root user.

As root now, type service lightdm stop to stop the display manager.

Type deluser --remove-home your_existing_username to completely delete both your user and your home folder from the system.  This will also remove the group with your username.

Type adduser your_friend's_username to create the account for the new user.  You will be asked for a new password for this account which you must provide.  You can also provide a real name and surname if you want.  For the rest of the questions asked, you can just press Enter.

Type sync && sleep 1; reboot to restart the system.  You can just use reboot if you like but I prefer the first way just to make sure everything is synced before restarting.

The system will restart and you will see the new account waiting for a password.  Your existing account and data will all be gone.


The tabs have been changed from Chrome and Chromium v. 50 to v. 51.  In version 51, Google has implemented Material Design by default, which has a more Safari'ish look.  It is up for debate which one is better looking.

http://cdn1.tnwcdn.com/wp-content/blogs.dir/1/files/2016/03/design.jpg

http://thenextweb.com/google/2016/03/15/material-design-coming-chrome-51-heres-looks-like/

To disable it, go to chrome://flags in chrome and chromium and search for material design.  You should come up with an option that says something like "Material Design in the browser's top."  Select from the drop-down "Non-material" and restart the browser.

Unfortunately, in version 51 of Chrome and Chromium on Ubuntu, there appears to be bug that does not allow you to disable it straight from the browser.  It appears that it will, however, be fixed in v. 53.

You can disable Material Design in Chromium version 51 by running it from the terminal with the material design flag:

chromium-browser --top-chrome-md=non-material

...and if you want it to do that by default, simply search for the line in /usr/share/applications/chromium-browser.desktop that begins with Exec=[...] and add the --top-chrome-md=non-material right after chromium-browser.


The time that a web server only had to server pure HTML, without cookies, pictures, videos, sound, JavaScript, ads, ... is long past.

Nowadays, a page is made up of multiple elements that can be downloaded simultaneously so that the page renders faster.

Those are the multiple IP connections you see.  You could limit them and your server would become faster, but then the clients loading of pages from your server, would slow down, so you could do that, but it's a bad idea...


Is there a better match for the font Arial than Arial?

If you installed Arial using the ttf-mscorefonts-installer then you have the very same Microsoft font on your machine.

Arial is merely the Microsoft version of Helvetica, you can try Liberation Sans instead, but this is a question of personal taste.


This question was originally another question, but it was edited or changed in at least 80% of the original question.
However, this answer can yet be helpful for you.

You may wish to give a try to HardInfo or Phoronics which doesn't indeed do as many things as Sandra does, but it shouldn't as we are talking about Linux Systems.

Take a look at:

Hardinfo at http://hardinfo.berlios.de/HomePage

From the site: System Profiler and Benchmark
HardInfo can gather information about your system's hardware and operating system, perform benchmarks, and generate printable reports either in HTML or in plain text formats.

I prefer to use Hardinfo, here is my screenshot of a benchmark in action in my system:

Phoronics at http://www.phoronix-test-suite.com/

From the site: The Phoronix Test Suite is the most comprehensive testing and benchmarking platform available that provides an extensible framework for which new tests can be easily added. The software is designed to effectively carry out both qualitative and quantitative benchmarks in a clean, reproducible, and easy-to-use manner.


Well, im not sure, are you experiencing from earlier u installed the OS?
What I'd do is to refresh icon theme with ubuntu tweak or such app. just open it and select a new theme, then came back to the original.
You can also try this if the problem doesn't go beyond nautilus: Open synaptic pakage manager and totally unninstall and wipe all configuration files, then reboot and reinstall nautilus.

I hope this works for you


First thing make sure you download the code. The source code does not get downloaded by default (to save space).

Run this in a terminal (we are first creating a folder to contain the source files):

mkdir ~/banshee-source-dir
cd ~/banshee-source-dir
apt-get source banshee

if everything went OK, there should be a folder ~/banshee-source-dir/banshee-<version> inside which the source code is located.

Notice that you can also browse the code on GitHub.


How to disable animations in Ubuntu 16.04

From unity tweak tool go to General and switch off Windows animations as seen below:

If you don't have it, you can install it with sudo apt install unity-tweak-tool.


Set default internet connection in Ubuntu 11.04

Go to network manager -> Edit connection.

Then go to -> DSL Connection. Your existing connection should be there.Click on Edit

Check the tick box to connect automatically. See the below pictures

Click on OK to exit. Now it should connect automatically.
Let us know if it works.

Accept the correct answer to help others.


`update-alternatives --list editor` does not show editors installed via `snap`

Not all packages register themselves as an alternative. You can manually add nvim as an alternative for editor using update-alternatives.
sudo update-alternatives --install /usr/bin/editor editor /snap/bin/nvim 1111


How can I change the default location of Ubuntu One folder in Ubuntu?

Here is a tutorial on changing it on 12.04, it might be useful in your case:

How can I choose a different Ubuntu One default local folder?


dpkg: symbol lookup error: dpkg: undefined symbol: setexecfilecon

Short and painless save your data and install new. If you like an adventure read How to extract and install .deb without the command dpkg?

It is for Debian but should also work in Ubuntu.


Install Ubuntu alongside Windows 7

this option will ONLY show if you have UNALLOCATED space. Free up space from within windows (so you need to shrink a partition; partition magic can do this, gparted can do this too but a native windows application might suit you better for this one time only action), leave the newly freed space un-formatted and then re-run the installer.

At present both options (replace windows and something else) will destroy data you might want to keep.


How do I change the clock position on panel in gnome 3.6?

Ah, it turned out to be the fault of the "system-monitor extension". It has a checkbox 'move clock'.

To move the clock back:

Right-click on the System Monitor extension on the panel, then select Preferences.
Uncheck the Move the clock option.
Restart GNOME shell: Alt+F2 , type r and hit enter.


Having problems updating my flash player

This should work for you! Just open up terminal and type this in.

sudo apt-get install flashplugin-installer

or

sudo apt-get install upgrade flashplugin-installer

Hope this fixes it for you!


How can I cancel my Ubuntu installation in progress?

Yes you can cancel a currant install by holding down the power button for 10 seconds. Then just start over the install from scratch. good luck, it happens to all of us at some point.


Broadcom Bluetooth module does not work in Ubuntu 14.04 LTS Dell XPS 13 9343 i7

Download this driver.

It has firmware for your adapter.

Then convert it using this answer.

The firmware file for your adapter is BCM20702A1_001.002.014.1443.1572.hex.

Convert it to BCM20702A0-0a5c-216f.hcd and copy to /lib/firmware/brcm if you have kernels 3.13, 3.16 or 3.19.

If you have kernel 4.2, convert it to BCM.hcd.


There is no Ubuntu version with 3.30.2 Regarding the versions on libnss3:

trusty (14.04LTS) (libs): Network Security Service libraries
2:3.28.4-0ubuntu0.14.04.2 [security]: amd64 i386
2:3.15.4-1ubuntu7 [ports]: arm64 armhf powerpc ppc64el

xenial (16.04LTS) (libs): Network Security Service libraries
2:3.28.4-0ubuntu0.16.04.2 [security]: amd64 i386
2:3.21-1ubuntu4 [ports]: arm64 armhf powerpc ppc64el s390x

zesty (libs): Network Security Service libraries
2:3.28.4-0ubuntu0.17.04.2 [security]: amd64 i386
2:3.26.2-1ubuntu1 [ports]: arm64 armhf powerpc ppc64el s390x

artful (libs): Network Security Service libraries
2:3.28.4-0ubuntu2: amd64 arm64 armhf i386 ppc64el s390x

Even the yet to release 17.10 has 3.28.

The latest CVE-2017-7502 ("Null pointer dereference vulnerability in NSS since 3.24.0 was found when server receives empty SSLv2 messages resulting into denial of service by remote attacker.") on this package has been solved and is released as part of released (2:3.28.4-0ubuntu2) on 2017-06-19.

So I would assume that your bug is either still outstanding or was put in 2:3.28.4 and solved.

Regarding other bugs on NSS:

nss
CVE             Artful    Precise/e Trusty    Vivid Xenial      Yakkety     Zesty
CVE-2016-2183   released    needed  released    --  released    released    released
CVE-2017-5461   released    needed  released    --  released    released    released
CVE-2017-5462   released    needed  released    --  released    released    released
CVE-2017-7502   released    needed  released    --  released    released    released

ALL have a "fix released" on the versions that matter.
As far as I can tell you need version "2:3.28.4-0ubuntu0".

There is a listing for NSS 3.30 for Debian though. So there is a way to install it, though not recommended.

[2017-06-23] nss 2:3.31-1 MIGRATED to testing (Britney)
[2017-05-19] Accepted 2:3.30.2-1 in experimental (medium) (Mike Hommey)

So you could download the version from Debian and use dpkg to install it on your machine.

Mind that the 3.30 version in Debian is experimental
It is not the normal method to install a newer version.
This might come to bite you in the future.

But if it works all the better.


Bottom panel disappears when a new message arrives on Empathy in Gnome Shell Remix 12.10

This is a known bug. See this launchpad bug for the report.

AFAIK, it hasn't been fixed yet.


Ubuntu 18.04 on login loop, even with correct password

I had the same problem.
Then I found out that I accidentally changed the ownership of my /home/username directory to root.

So you can go to the terminal by CTRL+ALT+F1, and change the username directory ownership with

sudo chown <username>:<username> -R /home/<username>


Why can't I write to my mounted vfat partition?

You should edit fstab and delete the last entry. To edit the file, run

gksudo gedit /etc/fstab

...save and exit when done.


QML: Simplest way to write to a text file?

There is no way to write to a file from QML/Javascript so we need a bit of C++ to do the job.

Create a new Qt Quick 2 Application (Built-in Elements) project in Qt Creator called FileIO with the following files:

The project file: FileIO.pro

# The .cpp file which was generated for your project. Feel free to hack it.
SOURCES += main.cpp

# Please do not modify the following two lines. Required for deployment.
include(qtquick2applicationviewer/qtquick2applicationviewer.pri)
qtcAddDeployment()

HEADERS += fileio.h

The header file: fileio.h (inspired by Reading and writing files in QML)

#ifndef FILEIO_H
#define FILEIO_H

#include <QObject>
#include <QFile>
#include <QTextStream>

class FileIO : public QObject
{
    Q_OBJECT

public slots:
    bool write(const QString& source, const QString& data)
    {
        if (source.isEmpty())
            return false;

        QFile file(source);
        if (!file.open(QFile::WriteOnly | QFile::Truncate))
            return false;

        QTextStream out(&file);
        out << data;
        file.close();
        return true;
    }

public:
    FileIO() {}
};

#endif // FILEIO_H

main.cpp:

#include <QtGui/QGuiApplication>
#include "qtquick2applicationviewer.h"
#include <QQmlContext>
#include "fileio.h"

int main(int argc, char *argv[])
{
    QGuiApplication app(argc, argv);
    FileIO fileIO;

    QtQuick2ApplicationViewer viewer;
    viewer.rootContext()->setContextProperty("fileio", &fileIO);
    viewer.setMainQmlFile(QStringLiteral("qml/FileIO/main.qml"));
    viewer.showExpanded();

    return app.exec();
}

And finally qml/FileIO/main.qml:

import QtQuick 2.0

Rectangle {
    width: 360
    height: 360
    Text {
        text: qsTr("Hello World")
        anchors.centerIn: parent
    }
    MouseArea {
        anchors.fill: parent
        onClicked: {
            fileio.write("/tmp/test", "Ask Ubuntu");
            Qt.quit();
        }
    }
}

To build the application, open a Terminal and go to the FileIO project folder to type:

`qmake && make && ./FileIO`.

It will launch the application. If you click on the MainView the text file will be created and the application closed.

Update:

The above code will work without restrictions for a desktop application. Regarding write permissions for Ubuntu Touch, you'll have to follow the guidelines about Confinement for click packages:

  The application will have read/write access files in the standard XDG
  base directories. Specifically:

XDG_CACHE_HOME/<APP_PKGNAME>
XDG_CONFIG_HOME/<APP_PKGNAME>
XDG_DATA_HOME/<APP_PKGNAME>
XDG_RUNTIME_DIR/confined/<APP_PKGNAME>

  where APP_PKGNAME is what is used in the "name" field of the click manifest. Eg, if the click manifest has this:

$ cat ./manifest.json
{
  "name": "com.ubuntu.developer.you.yourapp",
  ...
}

  then the app will have read/write access to these directories and any
  files or subdirectories under them:

XDG_CACHE_HOME/com.ubuntu.developer.you.yourapp
XDG_CONFIG_HOME/com.ubuntu.developer.you.yourapp
XDG_DATA_HOME/com.ubuntu.developer.you.yourapp
XDG_RUNTIME_DIR/confined/com.ubuntu.developer.you.yourapp


Ubuntu Phone updates are stuck at "0 byte"

Could be that you are not authenticated to UbuntuOne site. Are you able to install apps from Ubuntu store? Have you changed your UbuntuOne password lately?


Deleting firefox's suggestions in the address bar

Open Firefox and press ctrl+shift+del. It will open a window .

Select everything in time range to clear drop down list.

Also check all options by expanding the details.


What version is this Live CD / Live USB?

There will be a hidden folder called .disk. So, if you are in Nautilus hit Ctrl + H to show hidden files.

Inside .disk there is a file called info which if you open, will tell you the Ubuntu version, including the architecture (32-bit or 64-bit).

A 'quick' way to find out the info is to open a terminal and type:

cat <mount-point-of-usb>/README.diskdefines

Replace <mount-point-of-usb> accordingly.


Can we list installed packages from a java 7 program?

Finally I've found

String [] extCmdArgs = new String[]{"dpkg-query", "-W", "-f=${Package} ${Version}\n"};
Process fetchInstalledPackagesProcess = Runtime.getRuntime().exec(extCmdArgs);
BufferedReader reader = null;
        try {
            reader = new BufferedReader(new InputStreamReader(fetchInstalledPackagesProcess.getInputStream()));
            String line;
            while(true){
                line = reader.readLine();
                if (line == null)
                    break;
                System.out.println(line);
        }
    } catch (Exception e) {
            e.printStackTrace();
    }
    finally {
        reader.close();
    }


How to fix? Netgear A6210 USB causing Ubuntu 20.04.1 Network Manager toFreeze

I have the same problem with 5.4.0-56. I've reverted back to 5.4.0-54 as described here:

Restart your computer, when your BIOS is through quickly press
shift to open the GRUB menu, you might need a few tries to
get the timing right.
There choose Advanced options and select to boot with the older
kernel. Then you can safely uninstall everything that belongs to the
newer kernel and be done with it:
sudo apt-get remove "linux-headers-4.4.8*"
sudo apt-get remove "linux-image-4.4.8*"

Now, selecting Ubuntu in GRUB boots with the 5.4.0-54 kernel directly.


My keyboard won't print characters other than lower case Latin alphabet

It was team viewer.  It apparently ignores all keyboard settings on the remote host.  Even though the client computer was working fine.  Even typing in the partner ID box gave those weird characters.  Restarting it fixed the issue.  Strange as there are no keyboard input settings anywhere in team viewer that I could actually find.


VapourSynth Editor - Failed to load vapoursynth script library!

You might have not installed VapourSynth itself or done it wrong.
Try using this manual:
http://www.l33tmeatwad.com/vapoursynth101/software-setup


How to show/hide Keyboard on Ubuntu Tablet

Edit:

It says in the manual (p47) in the footer that "some apps such as GIMP, LibreOffice and Xchat-Gnome are deigned to be used in convergent mode only". In other words they will require an external keyboard and/or mouse.
https://it-bqcom15-media.s3.amazonaws.com/prod/resources/manual/Aquaris_M10_Ubuntu_Edition_Complete_User_Manual-1460548936.pdf

I don't think the mentioned apps (Firefox and LibreOffice currently support the touch keyboard. I can't find any solid links to back it up, but I have not seen any record in the web showing it working. This guy also thinks they shipped some apps only to be used with an external keyboard: http://blog.afandian.com/2016/04/i-got-a-bq-aquaris-m10-ubuntu-tablet/

gedit is another one that could do with keyboard touch access.

I think they are legasy apps that run in a container and don't access to the touch keyboard.


Encrypt a single drive in a system with two drives

Power down and disconnect power.
Temporarily physically disconnect the Windows drive data and power cables in the PC
Boot into Ubuntu
Do your encryption
Shut the PC down
Reconnect the Windows drive
reboot.


Here's a good resource for using ALSA/OSS instead of PulseAudio: http://www.webupd8.org/2010/03/how-to-switch-to-alsa-or-oss-instead-of.html

As to "why" they chose pulseaudio as the default, I don't know. It probably has to do with a lot of the same reason why they switched to Empathy as the default IM client. Those reasons (at least as far as I know) are related to the framework used in the backend. PulseAudio has a very good backend even if the implementation isn't 100% yet. Same as Empathy, the backend is awesome and super flexible, but Empathy isn't quite as feature rich as Pidgin. It's a forward looking decision I believe.

Whether it was a good decision or not is up for debate.


This doesn't have a valid password hash:

user12:.rAuPMqtz7dZzHdfQMLJzum6vPYKJynmE29reN27MG/AsAHHt6a.1ZeyEkoo6xEJIzepKMyLai/:16607:0:99999:7:::

On Linux, the password-hashing algorithms are DES, MD5, SHA-256 and SHA-512 (see man 3 crypt, not counting Blowfish), and the length of the password hash you have given doesn't match the lengths output by any of these (13, 22, 43 and 86 characters respectively, where yours is 75 characters long). and further, it doesn't have a salt or algorithm identifier. The system will try to read it as a DES-hashed value, with the first two characters being the salt - but who knows what password will match it then?


How can I disable automatic login on a LiveUSB?

In the live Ubuntu 12.04 there is 1 graphical and 6 console automatic logins.

To disable the graphical login, use a text editor like GEDIT sudo gedit /etc/lightdm/lightdm.conf

Change the line:

autologin-user=ubuntu

to

autologin-user=

and append the following to make the login greeter show up:

greeter-show-manual-login=true

This is how you can disable the 6 console logins:

There are 6 files that specify the automatic logins. They are /etc/init/tty1.conf to /etc/init/tty6.conf.

First rename these files to any unused names, for example to /etc/init/custom-tty1.conf to /etc/init/custom-tty6.conf.

Then edit each file, replacing the line beginning with "exec" as shown below. Match the tty number to the number in the file name. For example, for file /etc/init/custom-tty1.conf, replace

exec /bin/login -f ubuntu </dev/tty1 > /dev/tty1 2>&1

with

exec /sbin/getty -8 38400 tty1


How do you find libraries (C++) in Ubuntu?

By default libraries are installed in /usr/lib and header files will be in /usr/include

Usually extension of the library file is .so and corresponding header file will be .h

gui method for finding installed libraries is open software center->Developer tools-> Libraries


Not able to see Kate Plugin for Javascript in Kubuntu

I was able to setup kate-plugins including the java-script ones but did not find Pretty JSON anywhere. I even tried asking on the IRC and the mailing list about this but did not find a response. You can however, install and access the plugin as follows:

Open a terminal(Ctrl+Alt+t) and type the following one line at a time:

sudo apt-get install git
sudo apt-get install python-kde4 python-jedi ipython

This will install the necessary packages for the plugin. After this, the plugin needs to be cloned from github since it is not available in the ubuntu repositories. For this do the following on the terminal:

mkdir build && cd ~/build
git clone https://github.com/goinnn/Kate-plugins
ln -s ~/build/Kate-plugins/kate_plugins/ $(kde4-config --localprefix)/share/apps/kate/pate

Now, you can access the plugins in Settings -> Configure Kate:


Try reinstalling libglib. Here is a link to an AskUbuntu forum on it. How do I install glib?


Ubuntu 14.04 system settings does not open, gnome-control-center does not start either

Run it with gksudo (Read man gksudo). gksudo gnome-control-center.


Error when I try to source ~/.bashrc Ubuntu 18

I don't know if you're still looking for an answer, but the problem is that the shell you're using isn't bash (it's probably zsh, I had the same problem with it)
try writing echo $0 to find out what shell you're using, and then use the appropriate file for source (for instance source ~/.zshrc if you're on zsh)


Shrunk application window sizes compared to resolution

You can access settings by typing System Settings in the Dash, or clicking "power" or "power cog" button in the top-right corner of the screen and choosing System Settings.

Once you entered on the System Settings, click on Displays and Then adjust the Scale for menu and title bars to a higher value.


missing icon on alt-tab list Ubuntu 14.04

The solution is simple, no need to reset unity icon. Just drag and drop your apps icon from unity dash to the launcher. Next time you open the application (for example terminal), the icon will be recognized by unity launcher.


Recurrent fsck /dev/sda1 error - should I reinstall Ubuntu 20.04?

fsck
Let's first check your file system...

boot to a Ubuntu Live DVD/USB in “Try Ubuntu” mode
open a terminal window by pressing Ctrl+Alt+T
type sudo fdisk -l
identify the /dev/sdXX device name for your "Linux Filesystem"
type sudo fsck -f /dev/sda1, replacing sdXX with the number you found earlier
repeat the fsck command if there were errors
type reboot

NCQ
Your disk is getting NCQ errors, and excessive READ errors.
Native Command Queuing (NCQ) is an extension of the Serial ATA protocol allowing hard disk drives to internally optimize the order in which received read and write commands are executed.
Edit sudo -H gedit /etc/default/grub and change the following line to include this extra parameter. Then do sudo update-grub to write the changes to disk. Reboot. Monitor hangs, and watch /var/log/syslog or dmesg for continued error messages.
GRUB_CMDLINE_LINUX_DEFAULT="quiet splash libata.force=noncq"

Bad Block
Note: do NOT abort a bad block scan!
Note: do NOT bad block a SSD
Note: backup your important files FIRST!
Note: this will take many hours
Note: you may have a pending HDD failure
Boot to a Ubuntu Live DVD/USB in “Try Ubuntu” mode.
In terminal...
sudo fdisk -l # identify all "Linux Filesystem" partitions
sudo e2fsck -fcky /dev/sdXX # read-only test
or
sudo e2fsck -fccky /dev/sdXX # non-destructive read/write test (recommended)
The -k is important, because it saves the previous bad block table, and adds any new bad blocks to that table. Without -k, you loose all of the prior bad block information.
The -fccky parameter...
   -f    Force checking even if the file system seems clean.

   -c    This option causes e2fsck to use badblocks(8) program to do
         a read-only scan of the device in order to find any bad blocks.
         If any bad blocks are found, they are added to the bad block
         inode to prevent them from being allocated to a file or direc‐
         tory.  If this option is specified twice, then the bad block scan
         will be done using a non-destructive read-write test.

   -k    When combined with the -c option, any existing bad blocks in the
         bad blocks list are preserved, and any new bad blocks found by
         running badblocks(8) will be added to the existing bad blocks
         list.

   -y    Assume an answer of `yes' to all questions; allows e2fsck to be
         used non-interactively. This option may not be specified at the
         same time as the -n or -p options.


No, it's not bad practice to ask for root privileges.

If you require root privileges more than once during program runtime, then running the entire program as root will probably prove useful.

There aren't really any 'good practices' - if you're looking for a certain piece of advice, ask it as a question =)

By the way, the program you've created is called a "GUI front-end" - to the command your using. For example, a program that uses xrandr to work is called a "GUI front-end to xrandr".


What is UEFI and Secure Boot? How do they affect Ubuntu?

There was a plenary talk about that during UDS by Jeremy Kerr. The presentation was based on a document that he has been co-authored with Matthew Garrett and James Bottomley. You can find that document here.

My two cents are that it's a system to verify that the software you're using to boot your machine has been signed by using an authorized signature available in an internal database. This isn't dangerous as long as there is a way for you to edit the database of valid signatures. However, a big industry player seems to want OEMs to include only one  signature in the database and no way to update it and that's the big problem since no other OS would be able to boot in a hardware in which those restrictions have been applied.


After a long goooogling I got a solution,simple
Install boot repair (just search on Google) on Ubuntu help page there is detailed description


Unity Dash is unbearably slow after upgrade (13.10 32-bit)

The iso images used by wubi are broken and buggy,ubuntu official support dropped after 13.04. Do a reinstall without wubi for best bug free experience


What terminal emulators are available for heavy terminal users?

Besides GNU screen I would recommend tmux. It is a terminal multiplexer like GNU screen.


Credit goes to actionparsnip, his solution can be found here!

Step 1: Boot to the login screen.
Step 2: Hit CTRL+Alt+F1 or CTRL+Alt+F3
Step 3: Run the following commands in this order (Try not to do "sudo su" in case it doesn't work):

sudo chown -R $USER:$USER $HOME
sudo apt-get clean
sudo reboot

Now, check your desktop.

And there's a Vulpix! (If you don't know what a Vulpix is, it's a character from Pokémon.)

And here's the wallpaper if you want it.


Ubuntu SDK asks to install Xephyr on Ubuntu 15.10

You need to install the Xephyr X server for the emulator.

  sudo apt-get install xserver-xephyr


Resolved!

When I installed the os, I must have ticked the encrypt my home folder box, not sure if this is really the issue but I'm sure it was no help.

I moved the workspace dir to /var/www/ and everything is working.


I removed something called Unity webapp integration (I don't remember exactly), and now I don't have Unity, how to revert this?

Probably while uninstalling webapps you unistalled some important component. So open a terminal with CTRL + ALT + T or if that doesn't work CTRL + ALT + F1.

Then type sudo apt-get install ubuntu-desktop


Is there a programmable way to tell if the screen is locked?

Run this command:

gnome-screensaver-command -q | grep "is active"

if it has any output, the screen is locked.

In a shell script, you can use a clause like this:

if (gnome-screensaver-command -q | grep "is active");
then
    ...
fi

(my thanks to DoR, who originally posted these commands here)


Might have deleted kernel, but haven't shut off computer yet

Open the terminal and type:

sudo apt-get install --reinstall linux-image-generic
sudo grub-install /dev/sdX
sudo update-grub

...where for /dev/sdX substitute the drive where your GRUB bootloader is installed. Normally users should not include a partition number, which would produce an error message as the command would attempt to write the information to a partition. You can find the Device name of this drive using the Disks application. Check twice in Disks to make sure that you type the correct Device name of the drive where your GRUB bootloader is installed.

Since it isn't done during execution of the sudo grub-install command, running sudo update-grub after the install will ensure that the GRUB menu is up-to-date.


See your BIOS setting and check that if your drive still activated.
open a terminal and type sudo lshw, this will list your hardware connected

as and example:

*-cdrom
                description: DVD writer
                product: DVD RW DW-Q120A
                vendor: SONY
                physical id: 0.0.0
                bus info: scsi@4:0.0.0
                logical name: /dev/cdrom
                logical name: /dev/cdrw
                logical name: /dev/dvd
                logical name: /dev/dvdrw
                logical name: /dev/sr0
                version: PYS3
                capabilities: removable audio cd-r cd-rw dvd dvd-r
                configuration: ansiversion=5 status=nodisc


TPPS/2 Elan Trackpoint on Thinkpad T495 with Kubuntu 20.04

With a recent libinput release this works with the magic trackpoint multiplier, called AttrTrackpointMultiplier and not with udev rules anymore. See the libinput documentation on trackpoint configuration.
Libinput maintains hardware specific customizations, so called quirks, in /usr/share/libinput. See e.g. 50-system-lenovo.quirks. Do not edit these files, they might get overwritten during the next update of the libinput packages.
To configure your overrides according to the libinput device quirks documentation you have to create a file /etc/libinput/local-overrides.quirks and adjust the parameters accordingly. (For some distros this file might be in a different location, e.g. in /usr/share/libinput/local-overrides.quirks).
For instance, a local-overrides.quirks file according the example on the arch wiki for changing the magic trackpoint multiplier looks as follows:
[Trackpoint Override]
MatchUdevType=pointingstick
AttrTrackpointMultiplier=0.75


"Restoring previously installed packages" never ends

Yes, it is normal that the upgrade take a long time. And no, there is nothing you can do to improve speed.

Check that there is no dialog waiting a answer for you that could stop the process, if there is not you should at least wait 3 hours before admitting that there is a problem.

If you try to stop the process now your system will be unusable.


It looks as though you have a Network/DNS problem, the error indicates that your system isn't able to resolve us.archive.ubuntu.com.  Try pinging us.archive.ubuntu.com and see if your system can resolve the name and if you get responses eg
ping us.archive.ubuntu.com
PING us.archive.ubuntu.com (91.189.91.38) 56(84) bytes of data.
64 bytes from banjo.canonical.com (91.189.91.38): icmp_seq=1 ttl=53 time=120 ms

If this fails then you need to look at your network settings


Integrity: problem loading X.509 certificate -65 before login

I fixed this message into my laptop Bios. All you need to do is :
1: Disable the Secure Boot
2: Reset Setup Mode ( this function is in Bios )
After that, * just exit Bios and save changes.*


Setting up OpenDNS with content blocking on a laptop

What you're looking for

What you're asking about is OpenDNS Family Shield. In simple terms, it's two DNS servers which you can use instead of what your router gives, specifically the addresses are

208.67.222.123
208.67.220.123

According to their page it is supposed to:

  . . .block pornographic content, including our “Pornography,” “Tasteless,” and “Sexuality” categories, in addition to proxies and anonymizers (which can render filtering useless). It also blocks phishing and some malware.

What is DNS and how it works

DNS is basically like a phone operator: you ask for a website like google.com , but computers don't understand addresses like that - they understand IP addresses, similar to how phone numbers don't care if you call to John Doe, they care about John Doe's phone number.

When you connect to router, the router gives you a specific information among which is what DNS server you're supposed to use. In case of Ubuntu, you can edit the /etc/dhcp/dhclient.conf. That way,when your computer connects to WiFi and receives some kind of information , it wills say "Thanks router, but I'll use my own DNS server". That's where those IP addresses come into play

Using your own DNS server

I've touched on this before several times, here  for example. Basic idea this:

Open /etc/dhcp/dhclient.conf file with your favorite text editor as root with sudo or gksu or pkexec (this one is preferred)
Add this line that says option rfc3442-classless-static-routes code 121 = array of unsigned integer 8; add a new line that says

supersede domain-name-servers 208.67.222.123, 208.67.220.123;

Notice the semicolon, very important !
Save the file and reconnect to your network. You can check if the settings were successful  via the GUI applet in the top right panel, or using nmcli dev show | grep DNS in terminal

Example:

Here's an example of my actual file. The line of interest is # 25. Note that in this example, I am using 208.67.222.222 and 208.67.220.220 servers, those are still OpenDNS but they're not Family Shiled servers. Use the 208.67.222.123 and 208.67.220.123 as I've mentioned before.

 1  # Configuration file for /sbin/dhclient.
 2  #
 3  # This is a sample configuration file for dhclient. See dhclient.conf's
 4  #   man page for more information about the syntax of this file
 5  #   and a more comprehensive list of the parameters understood by
 6  #   dhclient.
 7  #
 8  # Normally, if the DHCP server provides reasonable information and does
 9  #   not leave anything out (like the domain name, for example), then
10  #   few changes must be made to this file, if any.
11  #
12
13  option rfc3442-classless-static-routes code 121 = array of unsigned integer 8;
14
15  send host-name = gethostname();
16  request subnet-mask, broadcast-address, time-offset, routers,
17      domain-name, domain-name-servers, domain-search, host-name,
18      dhcp6.name-servers, dhcp6.domain-search, dhcp6.fqdn, dhcp6.sntp-servers,
19      netbios-name-servers, netbios-scope, interface-mtu,
20      rfc3442-classless-static-routes, ntp-servers;
21
22  #send dhcp-client-identifier 1:0:a0:24:ab:fb:9c;
23  #send dhcp-lease-time 3600;
24  #supersede domain-name "fugue.com home.vix.com";
25  supersede domain-name-servers 208.67.222.222, 208.67.220.220;
26  #prepend domain-name-servers 127.0.0.1;
27  #require subnet-mask, domain-name-servers;
28  timeout 300;
29  #retry 60;
30  #reboot 10;
31  #select-timeout 5;
32  #initial-interval 2;
33  #script "/sbin/dhclient-script";
34  #media "-link0 -link1 -link2", "link0 link1";
35  #reject 192.33.137.209;


"incorrect password" while trying to log on after deleting some applications

You can have a look at fixing it from the Recovery mode, like here and here.

If that won't work or is too difficult, you can boot in Live session from an Ubuntu usb stick or dvd, and then back up your data to a usb disk.


How to load the windows partion in ubuntu at startup itself by default

The easiest way would be using the gnome disk manager tool. When you select the partition you want to unlock at startup there you're able to change the mount options to custom mount options. Then you can just check the Box that it should mount on startup.


You'll see this kind of message when one or more of your sources fails to update.
Sometimes this is because your system can't get to one of the sites to download repository information (this is usually because of an outage at the site in question, a problem with an internet link somewhere along the path to the site, or a problem with DNS).
Here it looks like you can't confirm the identity of the site, so Ubuntu doesn't think it is safe to use this source.

Based on your update output, you'll need to get the correct identity key for tuxfamily.org, or comment it out of your sources.

See these answers for explicit help:  How do I fix the GPG error "NO_PUBKEY"?


What you're trying to do is impossible.

A "DisplayPort Splitter" doesn't add any functionality to the existing "DisplayPort": it just does what it's designed to do: transmit electrical signals from one wire to two wires.  (note: electric, not electronic) So you cannot get multiple workspaces to display on one monitor and have half on one and the other half on the other.

You could create a large virtual screen (contrarily to a workspace) with a resolution twice as wide as your current display and pan around this virtual screen, but the second monitor would still be displaying exactly what the first monitor is displaying: that is half a screen and an exact copy at that.

Sorry to be the harbinger of bad news.


How to install Azhagi+ font in ubuntu 11.10

Download azhagi+ font.
The font file should be with extension azhagi.ttf.
In Home folder create a new folder and remame it ".fonts".
Move the font file azhagi.ttf to the folder .fonts.
Restart your computer.


Fstab bind network shared folder: mount error(6): No such device or address

After trying smbclient -L //192.168.178.150 I found that the path was not correct. On the NAS its true that all shared folders are contained by some directory array1 but the smb shared names are the subfolders directly. Therefore

//192.168.178.150/subfolder    /home/myUser/test cifs username=myUser,passwd=**** 0 0

did the job.


Erratic connectivity problems with Eduroam on 14.04 - possible workarounds?

See this for a password setting in the connection config file.

Advice is different at each organisation:
Hebrew Uni Jerusalem - bonus for including commandline instructions ;


During the installation, did you check the Advanced Settings? That should allow you to manually edit the Partition.

http://www.psychocats.net/ubuntu/separatehome

That should help you.

EDIT:

Allocate 240GBs to your Home Partition and 10GB to your File System Partition. You can use Ext3 if you'd like, but I prefer Ext4.


You can always start a service, and set it to be owned by you (your user name), see:

How to run a Linux Program on Startup

How do I make my systemd service run via specific user and start on boot?


DtSQL GUI not opening in Ubuntu 16.04 (UnsatisfiedLinkError)

UnsatisfiedLinkError generally means a missing library. Try installing the package that provides the library mentioned by the error:

sudo apt update
sudo apt install libxtst6

If that does not work, then try installing the 32 bit version of the package:

sudo apt install libxtst6:i386

(it's possible you may have to do dpkg --add-architecture i368 first)

Found this particular case here on Stack Overflow


I cannot successfully install Nvidia driver and Cuda on my pcc64el Ubuntu 14.04 server

Yes, I've successfully installed Nvidia drivers and CUDA on a ppc64le system with a Tesla K8, and managed to run some scientific computing applications with CUDA. I needed the drivers from the Nvidia website.

A quick search of the Nvidia drivers from their website give me this: http://www.nvidia.com/download/driverResults.aspx/95927/en-us which I think will be what you're looking for.


Atheros 9462 in Ubuntu 16.04 not cornnecting to 5ghz Wi-Fi

I was so frustrated, I actually went and asked ASUS Customer Support, who said:

  I regret to inform you that the device does not have the capability to
  connect to a 5.0 GHz network. The unit is limited to the 2.4 GHz
  networks.

So, yeah. Sorry for this question, I guess. But I'm still not sure why iwlist xxxx freq called up ALL The card's abilities and got me so hopeful. You'd think the response might have been affected by ASUS's configuration of the card. But, well, if they only managed it at driver level, I suppose it makes sense.


Guacamole logs "Wrong number of arguments"

Guacamole developer Nick Couchman told me:

The most likely explanation for this is that you are using a mismatched version of Guacamole Client with Guacamole Server (e.g. guacamole-server 1.0.0 with guacamole-client 1.1.0). Prior to version 1.1.0 the versions needed to match up. Starting with version 1.1.0 there is some negotiation done between the two to better enable cross-version compatibility, thought it's still a good idea to keep them in sync.

So I double checked the server and client version, both being 1.0.0.
However, I have tried to apt-get install guacamole before what installed 0.9.9, but didn't seem to work. I purged it again, so I didn't think this might cause problems, but that purge didn't remove everything. Another apt autoremove removed further packages including:
libguac-client-rdp0:i386 (0.9.9-2build1) ...
libguac-client-ssh0:i386 (0.9.9-2build1) ...
libguac-client-vnc0:i386 (0.9.9-2build1) ...
libguac11:i386 (0.9.9-2build1) ...

I assume these led to a version conflict bringing the Wrong number of arguments error. After removing these packages Guacamole works fine.


Sharing folders between Windows 8 as host and Ubuntu 13.10 as guest in Virtualbox

Thanks to DbhTPnx at this post: http://ubuntuforums.org/showthread.php?t=2181408
Remember, Virtualbox's "check for updates" doesn't indicate the availability of the 4.3 upgrade.

You should go to https://www.virtualbox.org/wiki/Downloads download manually. And when update, You should reinstall the additions in the guest Ubuntu 13.10 and restart the guest.


Wireless card showing in one place and not another?

In order to function properly, your card requires firmware. Please get a temporary wired ethernet connection, open a terminal and do:

sudo apt-get install linux-firmware-nonfree
sudo modprobe -r b43 && sudo modprobe b43

It may take a reboot.


Upgraded main drive but '/' not showing it

OK After playing around for a few days here is what I did to move to a larger drive and expand my /

Boot from live CD with the new drive installed
use dd to copy old drive to new one, reboot
Boot back to CD and use gparted to expand the size
from Live CD lvsize to expand the /dev/ubuntu-vg/root (- not sure if I needed to do this part or not)
lvsize my /dev/mapper/ubuntu--vg-root
Here is the part I was missing: from live CD still, run

resize2fs /dev/mapper/ubuntu--vg-root

BAM! my / is now expanded. I am not sure if all these steps are needed, they are just the ones I did to get it to work


No Audio after update from 18.04 to 20.04

I got it working. It looks like the upgrade somehow corrupted my file system, and after trying some things, my system wouldn´t boot anymore and got me to BusyBox, so I run fsck /dev/sda1 (that was my main disk) and typed Y on the errors.
Also after the system boot up ok I notice that I was able to run all the programs again, so I eent to advanced user settings and found that somehow "Use Audio Devices" was off, so I turned back on.
Advanced User settings


Well, assuming that the camera is UVC-compliant, you should be able to use guvcview.

You can install guvcview with the following commands:

sudo apt-get update
sudo apt-get install guvcview


How to execute an arbitrary command when open a new gnome profile terminal?

You can put that command in ~/.bashrc but it'll be invoked each time you open a new terminal (not for login terminals though).


actually the command to run it is

  lightread

However probably you have the launcher missing. Try running the menu editing tool. Type

  alacarte

Then go to the section "internet" (or the one you want to create the shortcut in), click on "new element" button (top right of the program window) and fill the boxes:

  In program: Lightread

  In command: lightread
  (attention to the minuscules)

  Description: Is a great google reader client

Now try to search it from the dash, for sure it will be there! :)

Cheers! :)


do-release-upgrade fails with ubuntu 16.04 with plesk installed

Your output seems pretty clear: Plesk packages are directly causing 12  of the 14 broken package errors. Plesk is the problem.
Also see https://support.plesk.com/hc/en-us/articles/360002913773-Ubuntu-18-04-support-in-Plesk: Plesk does not support release-upgrade.

Plesk supports Ubuntu 18.04 LTS (Bionic Beaver) starting from Plesk Onyx 17.8.
Notes:

Currently, dist-upgrade from Ubuntu 16.04 to Ubuntu 18.04 with Plesk installed is not supported.

Plesk Installer deploys MariaDB by default. In order to have MySQL as a database server, install MySQL prior to the Plesk Installer initializing.

Suggested procedure:

Backups
Uninstall all Plesk packages
do-release-upgrade
If needed, install MySQL
Re-install Plesk

Another alternative is to clean-install Ubuntu 20.04 in Step #3. See https://support.plesk.com/hc/en-us/articles/360015594400-Ubuntu-20-04-support-in-Plesk for Plesk release notes on 20.04.


How to change geolocation for Unity News Lens results?

There is currently none, but a fix for your issue should be available in an update in a few hours.

(Due to a mistake, the newsfeed only used the geolocated city name, without the country name. This is fixed. Nevertheless, the ability to set manually a location is on the roadmap.)


You can use the keyboard shortcut Ctrl+Space to switch between different keyboard layouts. Usually, that would let you change between different languages.

If you want to configure the keyboard shortcut, search for "Keyboard Input Methods" in the gnome-shell overview and open it. Then, change the keyboard shortcuts there.


What does "Key to choose 5th level" in gnome-keyboard-properties do?

“1. So what does the 5th level modifier do?”

It chooses the fifth level.  The 2nd level modifier (just regular shift)
chooses the second level, and the 3rd level chooses the third level.

The reason that the 5th level modifier chooses the fifth level instead
of the fourth level (right after the 3rd level modifier) is that these
three modifiers can be combined in different ways to choose eight
different level (this includes not using any of the modifiers, which is
just pressing a key without any such modifiers).  There are eight
combinations since 2↑3 = 8.  For the first two modifiers there are four
combinations:

No modifiers (level 1)
2nd level modifier, a.k.a. shift (level 2)
3rd level modifier (level 3)
2nd + 3rd modifier (level 4)

Adding the third modifier (5th level) adds four more levels.

“2.  How do I set it up so that I can get 5 or six different characters
out of a single key (modified by Shift, Alt Gr and Right
Ctrl for example)?”

First of all you need a layout which uses five or more characters per
key.  You can choose an existing layout, but if you simply want to add
more levels to the layout you are currently using, that might not be
optimal.  For example, there is the Neo keyboard layout (†1), but that
is “optimized for the German Language” so not that great for most
English speakers.

Still, it might be instructive to have a look at what keys Neo has
chosen for the level 5 modifier.

Neo apparently calls the level 5 modifier for “Mod4”.  So as you can see
it uses the key to the right of the left shift key (LSGT) and the
right alt key/AltGr key.  This is on a European keyboard (105 keys)
which compared to the US keyboard (104 keys) has a narrow left shift and
tall and thin return key.  For a keyboard layout which is based on the
US keyboard one might have to—or prefer to—choose other keys.

Choosing a level 5 modifier key

In sup’s answer he chooses to use Xmodmap.  Nowadays tools like
Setxkbmap is recommended over Xmodmap.  Xkb comes with many predefined
options for things like choosing the level 5 modifier.  If you consult
man xkeyboard-config and search for lv5 you’ll find these options:

┌──────────────────────┬───────────────────────────────────────────────────┐
│ Option               │ Description                                       │
├──────────────────────┼───────────────────────────────────────────────────┤
│ lv5:lsgt_switch_lock │ <Less/Greater> chooses 5th level; acts as onetime │
│                      │ lock when pressed together with another 5th level │
│                      │ chooser                                           │
├──────────────────────┼───────────────────────────────────────────────────┤
│ lv5:ralt_switch_lock │ Right Alt chooses 5th level; acts as onetime lock │
│                      │ when pressed together with another 5th level      │
│                      │ chooser                                           │
├──────────────────────┼───────────────────────────────────────────────────┤
│ lv5:lwin_switch_lock │ Left Win chooses 5th level; acts as onetime lock  │
│                      │ when pressed together with another 5th level      │
│                      │ chooser                                           │
├──────────────────────┼───────────────────────────────────────────────────┤
│ lv5:rwin_switch_lock │ Right Win chooses 5th level; acts as onetime lock │
│                      │ when pressed together with another 5th level      │
│                      │ chooser                                           │
└──────────────────────┴───────────────────────────────────────────────────┘

So the options that are documented are the LSGT key, the right alt
key, the right Windows key, and the left Windows key.  As we’ve seen,
Neo uses the first two options.

Say you want to use the lv5:ralt_switch_lock option with some layout.
This command sets up the us layout with this level 5 modifier key:

setxkbmap -option "lv5:ralt_switch_lock" us

So for any of the options which are documented in man xkeyboard-config,
use that as an argument to -option when using Setxkbmap.

In case these options are not enough and you want to define another key
to be the level 5 modifier, it is instructive to look at the
declarations for these options.  They seem to be in
/usr/share/X11/xkb/symbols/level5.  The declaration for
lv5:ralt_switch_lock looks like this:

partial modifier_keys
xkb_symbols "ralt_switch_lock" {
  include "level5(lock)"
  key <RALT> {
    type[Group1] = "EIGHT_LEVEL",
    symbols[Group1] = [ ISO_Level5_Shift, ISO_Level5_Shift, ISO_Level5_Shift, ISO_Level5_Shift,
                        ISO_Level5_Lock, ISO_Level5_Lock, ISO_Level5_Lock, ISO_Level5_Lock ]
  };
};

The right side of symbols[Group1] declares what key or character each
level of the key should produce.  This uses all the eight possible
levels since it is supposed to lock the level 5 modifier when pressed
together with another level 5 shift key.  So levels 5–8 emits
ISO_Level5_Lock since all of these levels are accessed by holding down
the level 5 shift and some combination of the other shift keys (none to
all of them).  If you only want the shift behavior and not also the
lock-if-two-pressed behavior, you can make a simpler declaration (from
the same file):

// The right Alt key (while pressed) chooses the fifth shift level.
partial modifier_keys
xkb_symbols "ralt_switch" {
  key <RALT> {
    type[Group1]="ONE_LEVEL",
    symbols[Group1] = [ ISO_Level5_Shift ]
  };
  include "level5(modifier_mapping)"
};

Adding extra levels to a layout

Xkb layouts are pretty modular.  You can include existing layouts and
alter them.  So we can choose an existing layout with less than 5 levels
and add some levels to it.

You can make new layouts by copying the file with your layouts to
/usr/share/X11/xkb/symbols/, or wherever it is that your Xkb tools look
for layouts.  But this requires sudo privilege so it is not the best
solution.  Alternatively you can copy the directory structure of xkb/
and put your layouts in the appropriate directory under xkb/, namely
symbols/.  So say you have made a file xkb-tree/symbols/my-layouts.
In order to use layouts defined in this file, you can use the -print
option of setxkbmap and then pipe the output to xkbcomp.  This
wrapper script take the layouts as input:

#!/bin/sh

# `-option ""` resets all options.
setxkbmap -option "" -layout "$1" \
    -print |
    xkbcomp -I"<path-to-project>/xkb-tree" - "$DISPLAY"

As far as the file with the layout is concerned, let’s say that we want
to expand the “US international” layout, which uses four levels.  First
of all we set up the level 3 and level 5 shift keys in the same way that
Neo does:

partial alphanumeric_keys
xkb_symbols "mine" {
    // US international
    include "us(intl)"
    // Set up level 3 modifiers.
    include "level3(modifier_mapping)"
    include "level3(bksl_switch)"
    include "level3(caps_switch)"
    // Set up level 5 modifiers.
    include "level5(modifier_mapping)"
    include "level5(lsgt_switch)"
    include "level5(ralt_switch)"
};

Now we want to add some extra characters.  Let’s just use the first four
keys of Qwerty layouts as an example.  These keys are Q to R, which
correspond to <AD01> to <AD04>.  First we need to make the keys
capable of using up to eight levels:

key.type[Group1] = "EIGHT_LEVEL";

For the first four levels, in order to not redefine them,
we map them to NoSymbol.  Then we add two levels.  On level 5 we add
the arrows ←↓↑→ (†2).  On level 6 we add the direction keys.  Our
layout ends up looking like this:

partial alphanumeric_keys
xkb_symbols "mine" {
    // US international
    include "us(intl)"
    // Set up level 3 modifiers.
    include "level3(modifier_mapping)"
    include "level3(bksl_switch)"
    include "level3(caps_switch)"
    // Set up level 5 modifiers.
    include "level5(modifier_mapping)"
    include "level5(lsgt_switch)"
    include "level5(ralt_switch)"

    // Make the following keys capable of using eight levels.
    key.type[Group1] = "EIGHT_LEVEL";

    key <AD01> { [
        NoSymbol, NoSymbol, NoSymbol, NoSymbol,
        leftarrow, Left
    ] };
    key <AD02> { [
        NoSymbol, NoSymbol, NoSymbol, NoSymbol,
        downarrow, Down
    ] };
    key <AD03> { [
        NoSymbol, NoSymbol, NoSymbol, NoSymbol,
        uparrow, Up
    ] };
    key <AD04> { [
        NoSymbol, NoSymbol, NoSymbol, NoSymbol,
        rightarrow, Right
    ] };

};

In order to use it we can use the wrapper script that we made:

./setxkbmap-wrapper "my-layouts(mine)"

†1: Neo is de(neo) in Xkb; setxkbmap "de(neo)".

†2: In order to find the symbolic names that Xkb uses, search for a file
named keysymdef.h.  It should be under a directory named X11/.  You
can also use Unicode names, for example U2192 for U+2192.


Very Specific Use Linux, Firefox, Ncomputing

You need to use NoDM - this is a window manager that supports only 1 window.
Start with server installation, then install xorg nodm firefox. That would be enough.
Then create a separate user for kiosk, and in its home a file .xsession

#!/usr/bin/env bash
firefox

Run browser with startx command.


Where is eclipse platform plugin folder?

It's in usr/share/eclipse/plugins.

You'll have to have root access to copy files here so type 'sudo nautilus' in the Terminal.


Intel quad core is definitely amd64 processor, so 64 bit is correct arch. However you may try to run i386 arch (it will see full RAM). Only difference it available software (and in fact i386 have more software than amd64, so for 64bit processors I advice to use multi arch so you have both architectures).

If i386 won't work you may try with old version and once you find working one then make full update to latest version. It worked for my friend on old PC.

There is one more problem. Try to run system without GUI. Problem with graphics card driver may cause similar problems (accidentally checked it once).


Very slow to boot takes 9 minutes after upgrade to 18.04.1 LTS

Try the Lubuntu and Xubuntu releases, those will use less memory than the full Ubuntu release.


Corrupt pendrive after making live Ubuntu installer

You can try to select "Create partition table", under the device menu in Gparted, in order to fully reformat it. (Select msdos as the partition table type). Then, you should be able to create a new partition on the USB stick.

If that doesn't work, a very simple (But slow, and I'm sure there's a better way) way to fix this would be to simply overwrite the entire drive with dd, by using something like this:

sudo dd if=/dev/zero of=/dev/sdb bs=4M

Which will overwrite the entire contents with zeroes, after which you should be able to create a partition table and a partition with Gparted as described above.


Setting gnome-terminal window size from within ~/.bashrc

You need to install the wmctrl package. Then, add this to your ~/.bashrc file:

HORIZONTAL=600
VERTICAL=400
wmctrl -r ":ACTIVE:" -e 0,-1,-1,${HORIZONTAL},${VERTICAL}

It will resize your active window (should be the terminal), to the size specified by the ${HORIZONTAL} and ${VERTICAL} variables. Note that these are measured in pixels. You can set your terminal's geometry to what you want, then use the screenruler package to measure the dimensions in pixels.

Hope this helps :)

EDIT: Actually you can run this to show the size of all the gnome-terminal's that are open:

wmctrl -l -x -G | grep gnome-terminal.Gnome-terminal | awk '{ print "Horizontal: "$5" pixels; Vertical: "$6" pixels" }'


Sound Juicer doesn't respect Lame's codec settings when ripping CDs

The setting for Lame are incomplete. We will have to define VBR mode 4 as well to obtain the desired results:

audio/x-raw-int,rate=44100,channels=2 ! lame name=enc mode=0 quality=0 vbr=4 vbr-quality=0 ! xingmux ! id3v2mux


how do I configure preseed to populate the hostname from DHCP and not stop at the `configure the network` section during an unattended installation?

When netbooting, certain things get setup before the preseed gets retrieved and read, including networking. If its not setup on the command line, the installer will make a guess and ask you to confirm, which is what you're seeing. katu txakurra is correct that the hostname and domain you specify in the preseed and on the command line will be overridden by the values from DHCP, so add something like the following to your kernel arguments:

hostname=unassigned-hostname domain=unassigned-domain

Since you said "unattended" I assume you're already set priority=critical on the command line to ensure that only critical questions are asked, but if not, set that too to reduce the number of things you need to preseed


Ubuntu provides updates via the <codename>-updates channel e.g. for trusty (14.04) that would be trusty-updates (URL e.g. http://archive.ubuntu.com/ubuntu/dists/trusty-updates). Any other non-official repository should also follow this norm.

So, searching in /etc/apt/sources.list, and /etc/apt/sources.list.d/* to get the domain names of the updates repositories, and using dig to get the IP addresses:

dig +short $(grep -Pho '^\s*[^#].*?https?://\K[^/]+(?=.*updates)' \
             /etc/apt/sources.list /etc/apt/sources.list.d/*.list | sort -u) | sort -u

The above will not include any duplicates too.

For the sake of completeness, getting the IP addresses of any configured repository domain,  not just updates repositories:

dig +short $(grep -Pho '^\s*[^#].*?https?://\K[^/]+' \
             /etc/apt/sources.list /etc/apt/sources.list.d/*.list | sort -u) | sort -u

On my system:

% dig +short $(grep -Pho '^\s*[^#].*?https?://\K[^/]+' /etc/apt/sources.list /etc/apt/sources.list.d/*.list | sort -u) | sort -u
123.108.243.101
123.108.243.102
123.108.243.106
123.108.243.110
123.108.243.112
123.108.243.113
123.108.243.117
123.108.243.121
123.108.243.123
123.108.243.80
123.108.243.84
123.108.243.88
123.108.243.90
123.108.243.91
123.108.243.95
123.108.243.99
91.189.88.149
91.189.88.152
91.189.88.161
91.189.88.162
91.189.90.29
91.189.91.23
91.189.91.26

% dig +short $(grep -Pho '^\s*[^#].*?https?://\K[^/]+(?=.*updates)' /etc/apt/sources.list /etc/apt/sources.list.d/*.list | sort -u) | sort -u
91.189.90.29


Is there an Intelligent Personal Assistant available in Ubuntu?

Jasper is great software and open source, you can build your own assistant by appending some apps / technologies or use software defaults, most of developers use on raspberry PI  to build their own system like Amazon echo, you can chose your suitable installation from Here.


How can I programatically find out which CPAN modules relate to packaged modules?

I looked in Makefile.PL and found this:

all_from 'lib/Alice.pm';
requires 'List::MoreUtils' => '0';
requires 'Any::Moose' => '0';
requires 'Try::Tiny' => '0';
requires 'EV' => '0';
requires 'AnyEvent' => '5.2';
requires 'AnyEvent::AIO' => '0';
requires 'AnyEvent::IRC' => '0.95';
requires 'AnyEvent::HTTP' => '0';
requires 'Twiggy' => '0';
requires 'Plack' => '0';
requires 'Plack::Session' => '0';
requires 'DBD::SQLite' => '0';
requires 'SQL::Abstract' => '0';
requires 'AnyEvent::DBI' => '0';
requires 'IRC::Formatting::HTML' => '0.28';
requires 'Text::MicroTemplate' => '0.09';
requires 'JSON' => '2.12';
requires 'File::ShareDir' => '0.01';
requires 'File::Copy' => '0';
requires 'Net::SSLeay' => '0';
test_requires 'Test::More' => '0.86';
test_requires 'Test::TCP' => '0';
install_share 'share';
install_script 'bin/alice';

This enabled me to search for each individual package. I couldn't ever figure out a way to find out the deps programatically, so I searched for each one by hand.


ubuntu 11.10 and external monitor not recognized

Wubi shouldn't be any different to a normal install. You may reinstall it and find that it doesn't work either. I think it'd be better to just work on your actual problem. In my opinion.

If you do go with Wubi, then I'd recommend synchronized, real time backups. Any data stored on the virtual disk is contained within a single file and it's a higher risk running a loop file system than on a partition.

The only differences between Wubi and a normal install is I believe you get the option to install closed source drivers during the normal install.

One last thing, if you still have that working Wubi install backed up, you can migrate it to a normal install (from the root.disk) and that gives you an identical install to your Wubi install, except no virtual disk.


It looks to me like you are having some sort of function-lock enabled.

A simple way of accessing the meta key is to use the alt key.


For my workflow here the definitely fastest way to safe an edited file back to the path it resides is using the "File -> Overwrite xxx" menu which appears after an existing file was edited:

To further speed things up we can also define a key shortcut for file-overwrite which, after removing the shortcut for file-save could also be  Ctrl  +  S :


Found through my own investigation pulseaudio was not running.
restarted from prompt with pulseaudio --start and devices showed up
then looked in startup applications did not see pulseaudio. I added it back (press the super key- usually the windows key) looked for startup applications and added pulseaudio -- start.
Verified which pulseaudio using termina and the which pulseaudio command
Found pulsaudio added it back and rebooted all good now.
I love learning and fixing it myself


You may like to create a virtual environment for Selenium, which is okay, so, do as mentioned earlier. But I think the following is needed to install Selenium with Python on Ubuntu.

Since you are on Python2, so install Selenium like this:

sudo apt-get install python-selenium # for Python2

And, if you want to move to Python3, then replace python-selenium with python3-selenium in the above command. Also, do remember to download Geckodriver for Firefox to further work with Selenium.

wget https://github.com/mozilla/geckodriver/releases/download/v0.20.1/geckodriver-v0.20.1-linux64.tar.gz

You would then need to extract the Geckodriver to a folder such as ~/.local/bin for setting it on your execution PATH.


/dev/sda1 accidentally formatted on tri boot (Windows 8, Ubuntu 16.04, BunsenLabs Deuterium)

If you've got a full system backup, or even just a backup of your EFI System Partition (ESP; /dev/sda1 in your case), you should be able to restore the ESP and everything should be fine. (You'll need to edit /etc/fstab to refer to the ESP's new serial number ["UUID," which it really isn't.])

Failing that, it's best to restore Windows to bootability first. This is because Windows tends not to play nice with other OSes, so if you restore Ubuntu first and then restore Windows, the computer will end up booting straight to Windows. This problem is not difficult to fix if you know how, but it's easier to restore Windows first and then deal with Ubuntu. As to how to restore Windows to bootability, you should ask about that on a Windows forum. You'll need a Windows emergency recovery disk for your Windows version, though. You can probably find one of these online, or create one from another computer that runs the same version of Windows.

As to restoring Ubuntu to bootability, there are several ways to do this. The two easiest are:

Boot Repair -- The Boot Repair tool can install a fresh copy of GRUB on the ESP. The trouble you encountered with it most likely means that you booted in BIOS/CSM/legacy mode rather than in EFI/UEFI mode; or maybe if you tried running it when /dev/sda1 used ext4fs, that could have thrown it off. Controlling the boot mode (BIOS vs. EFI) of a removable disk can be tricky if you don't know what you're doing. The best way to do what you want is to go into your firmware settings and disable the CSM (aka "legacy boot support" or "BIOS boot support"), but details of how to do this vary greatly. If you boot the external medium by using a boot menu, it may have two options to boot your medium, one of which includes the string "UEFI" and the other of which does not. Pick the option that includes "UEFI" to boot in EFI mode. See my page on the CSM for more on this topic.
rEFInd -- You can download a USB flash drive or CD-R version of my rEFInd boot manager and prepare a boot medium from it. When you boot from that medium, it should give you options to boot both your Linux distributions. (If you do this after you get Windows booting, rEFInd should also show you a Windows boot option.) If you boot into Ubuntu, you can then install the rEFInd Debian package or PPA; or you can simply use this as a way to boot into EFI mode and then run Boot Repair. If you install rEFInd to your hard disk, it will take over as your primary boot manager, bypassing GRUB.

I've never before heard of BunsenLabs Linux. In theory, either of the above methods should pick it up and present it as a boot option; however, it's possible that this won't work correctly. If you have problems, you could try the other recovery method or work to fix the problem in whichever boot manager you decide to use.

Moving forward, you may want to back up your ESP to make for easier recovery from such problems in the future. Ubuntu normally mounts the ESP at /boot/efi, although you'll need to edit /etc/fstab to get your modified ESP to mount there by default. (When you created a fresh filesystem, that changed its serial number, which is called a "UUID" in /etc/fstab. Your current ESP has a serial number of 71B1-C511, according to your Boot Repair output.) A file-level backup, using tar, zip, cp, or other tools, should work fine. Copy everything to a USB flash drive and you'll be able to restore it all pretty easily should you run into a similar problem in the future.


I'm using 4K external display with Nvidia 1050 ti. Ubuntu 20.04 is laggy, videos skip frames, and all kinds of issues when the scaling is set to 125% or more. But it's normal when scaling is set to 100%.


The page is hard to find but Ubuntu has versions specially for MACs.  I have included the link, the second one down is listed as

  Mac (PowerPC) and IBM-PPC (POWER5) desktop CD

  For Apple Macintosh G3, G4, and G5 computers, including iBooks and PowerBooks as well as IBM OpenPower machines.

There are others listed just for MACs.  I honestly have no personal experience with these so I don't know if they will work, I was just able to dig into Ubuntu's website deep enough to find the link for you. Hope it helps

HERE IS THE LINK

Note: As I don't know your location I gave you the United States mirrors in the above link I also included 12.04 as it is the newest, let me know it you want another...


How to get root permission inside qt program?

You can use PolicyKit and the pkexec command to start the QProcess with root permissions:

QString dpkg_command = "pkexec dpkg -i mydeb.deb";


How can I get back my desktop? the left and top panels

Try to remove ATI drivers from your system:

Access to your terminal:

ctr+alt+F3

Then:

sudo apt-get purge fglrx*

Then, remove your xorg.conf:

sudo rm /etc/X11/xorg.conf

Re-configure Xorg:

sudo dpkg-reconfigure xserver-xorg

Then, reboot:

sudo reboot

If this doesn't work, try to re-install XORG:

sudo apt-get install --reinstall xserver-xorg-core libgl1-mesa-glx:i386 libgl1-mesa-dri:i386 libgl1-mesa-glx:amd64 libgl1-mesa-dri:amd64

Re-configure Xorg:

sudo dpkg-reconfigure xserver-xorg

Then, reboot again:

sudo reboot