How do I install libwebkitgtk-1.0-0 on Ubuntu 19.04

Based on this, it seems to only be available for up to 18.10. I would suggest to download the .deb file from the PPA here, by expanding version 2.4.11-4 of webkitgtk for Cosmic (18.10), and downloading libwebkitgtk-1.0-0_2.4.11-4.deb for the correct architecture. Then, use sudo dpkg -i libwebkitgtk-1.0-0_2.4.11-4_<your architecture>.deb. You may also need to install dependencies with sudo apt install -f.

Edit: As @fkraiem said, installing 18.04 will also solve your problems, and I personally recommend using the LTS versions unless you really want the latest version.

  Install 18.04... – fkraiem


The process was the right one but stupidly enough I did not remove the comment mark in the php.ini

The correct code is (line 706)

;UNIX: "/path1:/path2"
include_path = ".:/usr/share/php:/srv/data/web/includes"

and restart apache services

sudo service apache2 restart

Voila
Thanks @Frantique


20.04.1 LTS not completely booting - need WIFI

The goal is to get WIFI working again with 20.04.1 LTS. It stopped working about 2 weeks ago with the last update, and I can no longer login in to "sudo" for debugging the problem either. I provided the history of the situation in case it helped with figuring out the problem. The WIFI chipset info in case it was a driver problem.
Please let me know specifically the information you need to know - thanks.


Why can't I launch eclipse from a terminal ? change $PATH environment variable

Hello and welcome to AskUbuntu!

.profile is sourced only for "login" shells.

Usually when starting a new terminal from the GUI the shell is a "non-login" shell.

Try putting your $PATH into .bashrc which is sourced for every new terminal.


Change Guest session Unity Launcher size?

You can try with the guest-session-prefs-lightdm kit.

README File:

  guest-session-prefs-lightdm is a convenience kit that makes it easier
  for a system admin to configure the guest session feature provided by
  the lightdm package. The preferences are set via shell commands in
  these two files:

/etc/guest-session/prefs.sh
/etc/guest-session/auto.sh

  The kit is shipped with the settings I made on my own computer. Some
  may share my preferences, but most admins who install
  guest-session-prefs-lightdm will probably make changes and/or
  additions to those settings.

  My aim is to give the admins options, and the framework the kit offers
  for configuring guest sessions may be of greater interest than the
  particular settings that I happen to like. Still, my code snippets can
  serve as models.

  See also http://ubuntuforums.org/showthread.php?t=1566078

  I would suggest that you install guest-session-prefs-lightdm as is,
  and take it from there when you have reviewed the resulting changes in
  behavior.

Ubuntu 12.04

1) Go to this page to download the guest-session-prefs-lightdm-0.12.tar.gz  package to your ~/Downloads folder.

2) Open a Terminal window and type:

cd ~/Downloads/
tar -xf guest-session-prefs-lightdm-0.12.tar.gz
cd guest-session-prefs-lightdm-0.12/
sudo ./install.sh

Note: The script install.sh will tell you if you need to install any package to complete the installation. eg (gettext)

3) Edit the /etc/guest-session/auto.sh file to add the command to resize the Launcher icons.

sudo nano /etc/guest-session/auto.sh

Add the following lines to the file:

# Change Launcher icon size to 32
gconftool-2 --type int --set /apps/compiz-1/plugins/unityshell/screen0/options/icon_size 32

Save the changes with Ctrol+O then Enter and Ctrl+X.

**4)**Finally you can lOgout and login in the guest account to see the changes.

Result:

Ubuntu 12.10 & 13.04

Thes steps are the same as 12.04, the only change would be the command to resize the icons.

Use:

# Change Launcher icon size to 32
gsettings set org.compiz.unityshell:/org/compiz/profiles/unity/plugins/unityshell/  icon-size 32

instead the gconftool-2 command.

NOTE: This kit by default has examples like display an info dialog, or create a link to a folder. You can change it according to your needs.

Hope this helps.


Dell inspiron 1545 wired and wireless do not work

Please try downloading the driver for Linux 2.6 here: http://www.marvell.com/support/downloads/driverDownload.do?driverId=153&action=1
Run install.sh in a terminal, that should fix the problem, it did for the guy in my source.
Source: http://ubuntuforums.org/showthread.php?t=1575197 Hope that helps!


Is Ubuntu 13.10 compatible with Razor Nostromo or Logitech G13 for gaming?

Depending on how new your Nostromo is, I have been in contact with a developer who has made a tournament authorized programming tool w/gui for the n52 and n52te.

I have the n50 and n52 (the Belkin versions) which I consider better than the n52te.

Here is a link to his site. http://sourceforge.net/projects/kbmaster/

Hope that helps!


Double lock screen when resuming after upgrade to 15.04

There is a bug that is known in Ubuntu. More information about the bug can be found here:
https://bugs.launchpad.net/ubuntu/+source/linux/+bug/1296270

In version 16.04 LTS, the solution for me was to uninstall with sudo apt remove gnome-screensaver


Port 25 is used for SMTP, for sending mails which is different from receiving mails using POP3 or IMAP. To check if something is listening on port 25, use sudo netstat -tunlp (TCP, UDP, numeric addresses, listening services, show programs (for which you need sudo)). If the output is large, try filtering it by appending | grep :25 so it becomes sudo netstat -tunlp | grep :25.

If you're trying to telnet to external servers or network IP's, be sure that the router or your provider does not block port 25. Here, the Dutch ISP KPN blocks port 25 which will make your requests go into /dev/null (hence the timeout).


How do I convert my recorded voice to text in a file?

You can find the following available from the Software Centre:
Simon

Simon is an open-source speech recognition program and replaces the mouse and
keyboard.  It is in development for physically disabled people and
seniors to give them the possibility to chat, to write e-mails, to
surf the internet, to do internet-banking and much more. It is
designed to be very flexible and allows customization for any
application where speech recognition is needed.


Is there any recovery software available for ext4?

Take a look at this:

Best tool to recover removed files

Formatted and lost 6 years worth of photo memories.. any way to get this back?

How to recover Ubuntu partition after computer failure?

Where the answers of some other people under those questions may also be helpful for you.

Good luck!


Do i choose install alongside windows 10 or something else?

I will try to steer you in the right direction but this question is new to me. I always choose to install Ubuntu alongside of Windows when I'm dual booting.

It would make since to choose the "Something else." option seeing you want the Ubuntu on the 1 TB drive.

It should give you the option to create a partition for that drive or even detect another drive it available.

This may also help you get started...

How to install Ubuntu on two different hard drives

Please mark this answer useful if you found it helpful


There is a blueprint for it, and I would love to be able to make it happen for all sorts of reasons, but we haven't been able to find the time to do it - it doesn't help that it requires a significant chunk of time from the Launchpad archive infrastructure team, which has been entirely swamped.  It's still very much on our back-burner list for whenever we do find the time, though.

One likely issue is that the more you compress packages, the harder it is to sync them.  This is a fairly fundamental property of good compression algorithms.  It may be that even once we implement this there'll be some packages that will sync little better than the current situation.

Other information:

https://blueprints.launchpad.net/ubuntu/+spec/foundations-o-debdelta/
https://wiki.ubuntu.com/UbuntuDebdeltaSupport


What does "dhclient: bound to xxx.xxx.xxx.xxx" mean?

Network connections can (broadly speaking) be configured statically, meaning the connection parameters (such as IP address, netmask, gateway) are hard-coded in a configuration file; or they can be dynamically assigned by a remote server. For this, the DHCP protocol was invented.

At the start of the dynamic configuration, the DHCP client broadcasts a message saying "Is there a DHCP server around? I need an IP address." If there is such a server on the network, it will announce itself, and a bit of negotiation takes place about which address exactly is available (the client may request the same address as the previous time, but that may not be available, etc.)

In the end, a lease is issued by the server to the client, meaning the client can use the address for a certain time (say 24 hours) before needing a refresh. The client then assigns the address to the proper network card, which is then said to be bound to the address.


How can I encrypt a file with gpg non-interactively?

I tested in my Lubuntu 18.04 LTS.

Your command line fails for me in the same way as you describe.
The following command line works for me,

gpg --batch -c --passphrase-file pass.txt file.txt

See details in man gpg

   --passphrase-file file
          Read  the passphrase from file file. Only the first line will be
          read from  file  file.  This  can  only  be  used  if  only  one
          passphrase is supplied. Obviously, a passphrase stored in a file
          is of questionable security if other users can read  this  file.
          Don't  use  this  option  if  you  can avoid it.  Note that this
          passphrase is only used if the  option  --batch  has  also  been
          given.  This is different from GnuPG version 1.x.


Installing Broadcom 14e4:4365 rev 01 drivrt

OK I fixed it

Just go to system setting then chose software and updates
and make sure your choices are like the screenshot :

I believe the problem was that I checked the installable from cd/dvd room and
"download from" I chose my country which I changed to main server.


This could be normal behavior, let me walk through a couple things.

Landscape clients only update package caches (apt-get update) 4 times per day.
Landscape servers only instruct clients to upgrade a named selection of packages.  Even if you click the "upgrade all packages" button.  It never runs apt get [dist-]upgrade or similar.  A specific set of upgrades are requested of the clients.

Combine these two things together, and there are certainly many timing windows available for you to ssh to a system after an upgrade job is finished and see more things to upgrade.

Next time you see this, hopefully these two bits of information would help explain things.  To dig deeper, you would need to collect.

What packages did landscape claim to upgrade (names and versions)
What packages were available to upgrade via ssh (names and versions)
What times did each of these events happen.

Between that, and the publishing history of packages in the ubuntu archives (which is tracked on launchpad), you usually have enough data to explain these kinds of discrepancies.

See for example: Publishing history of gcc-4.8


To install an FTP server, try out vsftpd.  To install, just press Ctrl+Alt+T on your keyboard to open Terminal. When it opens, run the command(s) below:

sudo apt-get install vsftpd

Once installed, you need to edit the config file

sudo gedit /etc/vsftpd.conf

Make sure that you change the items shown in the image below.

Once done, do

sudo service vsftpd restart

For more info and documentation, visit vsftpd and FTP Server Guide on Ubuntu


You can search your browser for parental control plugins.

This link will take you to the list of parental control plugins for Firefox

This link will take you to the list of parental control apps/extensions for Chrome at the ChromeWebStore


XPS 15 9570 Ubuntu NvIdia driver problems (16.04.4)

I had this exact problem with a new XPS 15 9570. Luckily, found this on the ubuntu forums that states you need to be on a very specific kernel: 4.15.0-15. Then it just works.

See forum for the exact full script to run:
https://ubuntuforums.org/showthread.php?t=2392938&page=3


Converting a .VOB file into .mp4 or other format to decrease the video memory size

You're stream copying (re-muxing) the video and audio with -c:v copy -c:a copy. Think of it like a copy and paste.
If you want to reduce the size you'll need to re-encode it. The simplest command would be:
ffmpeg -i input.vob output.mp4

See FFmpeg Wiki: H.264 for more details.
For max compatibility I suggest also adding -vf format=yuv420p as an output option (put it before output.mp4).


backed up an image of my HD using Ddrescue want to mount (not virtually) on new HD

You seem to be misusing the word "mount".  It means to open a filesystem and attach it somewhere in the filesystem namespace.  It sounds like you want to dd the image to the new disk.  Assuming the new disk is /dev/sdb, then that would just be dd if=foo.img of=/dev/sdb.  If the new drive is larger than the old one then you will want to fire up gparted and expand the partitions to use the new space.


How to copy an image to the clipboard from a file using command line?

Use the -t option to specify the content type, like

xclip -selection clipboard -t image/png -i example.png


Short but (very) consistent lag spikes after upgrading to Ubuntu 14.04

This problem was solved for me after I disabled the network manager's network scanning behaviour.

Finding this solution was not straight forward. Mostly gamers where noticing and having problems with these spikes, while our use case lies within robotics. Finally, several similar approaches to solving the latency spike issue pointed me in the right direction (looking at you network manager!):

Replaced network manager with manual configuration thereby eliminating latency spikes: http://ubuntuforums.org/showthread.php?t=1714817
Replaced network manager with WICD thereby eliminating latency spikes:https://steamcommunity.com/groups/homestream/discussions/0/540735426854884989/
Old bug report about network manager's scanning behaviour causing spikes and crashes: https://bugs.launchpad.net/ubuntu/+source/network-manager/+bug/373680

My favourite solution in the end is described here: https://github.com/abperiasamy/rtl8812AU_8821AU_linux/issues/24

That is, disabling the network scanning by setting the BSSID of your AP in the network manager's setting of your specific WiFi connection.

I hope this solutions works for you as well!


Removing the "Chrome OS is missing or damaged" screen

Try taking a look a the GBB flags.

Follow this article
This should work
until you reach the part where it says ("Use the “Restore Stock Firmware (full)” option. Type “9” and press “Enter” to run it.")
 You will see option 4 is for setting boot options.


Is there any way to install MPV without having to compile it from source?

Debian offers the mpv package since Jessie, and it's available on testing/unstable, so it should be included in universe repositories, as Ubuntu imports unstable repositories for non-LTS releases, and testing for LTS. Just make sure you have the universe repository enabled, your package lists updated, and run sudo apt-get install mpv.


How to create video visualizations / sound responses for songs

There is a standalone program with lots of variables to tweak: cthugha

The tricky part is that is's really old, last release 1999 - but I think is was pretty independent of libraries, even has a DOS version - so it's possible it will still run on modern linux.

The original ftp server seems to be down, but you can find the Llinux version as
"cthugha-L-1.4.tar.gz" with Google.


How to grant permission for newly created partition?

Try these commands in terminal:

sudo chown -R kongthap:kongthap /media/kongthap/9b7ac413-1ddf-4c2e-a74d-75651d6bd37c
sudo chown -R kongthap:kongthap /media/kongthap/37f01625-218e-4027-ac8f-42b135251af5

These commands will change the owner of those directories recursively.

To rename them, go in GParted, unmount them and after choose a label name (by right click).

Regarding the third question, see How to hide a(n) (NTFS) partition from ubuntu.


You might like to use gparted. Downoad the livecd and burn it to a disk and boot from it.

1) Then make the two partitions for your two new os.

2) Then right click on the partitions & under the manage flags option select boot for the two new partitions.

3) After you do so, install the two new os in the partitions.

4) (This is optional)But it might happen that your os does not boot anymore or all oses does not boot or only one or two oses boot. If these happens -

boot your computer on a Ubuntu live-CD or live-USB.
choose "Try Ubuntu"
connect internet
open a new Terminal, then type:

sudo add-apt-repository ppa:yannubuntu/boot-repair && sudo apt-get update
- Press Enter.

Then type:

sudo apt-get install -y boot-repair && boot-repair
- Press Enter

and select recommended repair.

Now, restart your PC and you are good to go.

Hope this helps you.


Max number of simaltenous running process

There is a formula for calculating the maximum number of active PIDs or threads. Excerpt from kernel/fork.c:

/*
 * set_max_threads
 */
static void set_max_threads(unsigned int max_threads_suggested)
{

    u64 threads;

    /*
     * The number of threads shall be limited such that the thread
     * structures may only consume a small part of the available memory.
     */
    if (fls64(totalram_pages) + fls64(PAGE_SIZE) > 64)
            threads = MAX_THREADS;
    else
            threads = div64_u64((u64) totalram_pages * (u64) PAGE_SIZE,
                                (u64) THREAD_SIZE * 8UL);

    if (threads > max_threads_suggested)
            threads = max_threads_suggested;

    max_threads = clamp_t(u64, threads, MIN_THREADS, MAX_THREADS);
}

However, normally other limits will be hit first. If RAM and other resources last, then some cgroup limits will likely be first, where basically the limit is:

$ cat /sys/fs/cgroup/pids/user.slice/user-1000.slice/pids.max
12288

The number, 12288, is the same on both my older 3 gigabyte server and my newer 16 gigabyte server.
And I can test by trying to spin out more than the maximum number, resulting in a message in /var/log/kern.log:

Feb 12 15:49:11 s15 kernel: [  135.742278] cgroup: fork rejected by pids controller in /user.slice/user-1000.slice

And checking the number I had at the time:

$ cat /sys/fs/cgroup/pids/user.slice/user-1000.slice/pids.current
12287

top said about 12479

But after those processes ended, I got:

$ cat /sys/fs/cgroup/pids/user.slice/pids.current
15

top said about 205, and note: 12479 - 205 + 15 = 12289


Does Unity 2d use fewer system resources than Unity 3d?

The battery life issue is due to a regression in the linux kernel.  It doesn't have anything to do with unity.
I'm sure unity 3d's effects have some small negative effect compared to unity2d, but the best thing to do at this point is wait for a kernel version that solves the problem.

A basic overview of the regression

AFAIK kernel 3.0 still has this problem, but to a lesser degree.


12.04 system keeps on hanging on "setting up gconf2

So I ran into a similar issue and it was hanging on /var/lib/dpkg/info/gconf2.postinst , which when I deleted I was able to configure the package.


How to partition HDD and dual boot Ubuntu with Windows 7 (first installed win7)

If you have three partitions already, the best course of action is to create an Extended Partition with the remaining Linux logical partitions inside.

Since you already have an extended partition, there is no problem creating as many logical partitions as you need from the unallocated space in the picture.

If I understand correctly you should create:

A root partition for Ubuntu (/). This should be ext4, or whatever the current default is.

A home partition for Ubuntu (/home). You should NOT use fat32, since it is a really old system with many problems. A better choice is ext3 -- there are windows drivers with read/write support that exist for it (http://www.fs-driver.org/ is one).
A swap partition (swap space). This is necessary for linux, and should be the same size as your RAM.

These are pretty much standard.
Hope that helps!

semitones


How to see currently connected clients of vsftp

You should set setproctitle_enable to YES in your vsftpd.conf. From man 5 vsftpd.conf:

  setproctitle_enable
  If enabled, vsftpd will try and show session status information in the system process listing. In other words, the reported name of the process will change to reflect what a vsftpd session is doing (idle, downloading etc). You probably want to leave this off for security purposes.

Now you can do a ps axuw | grep vsftp (or whatever you like) and see connected users.


I found the answer! Restarting irda-utils does the trick. Don't ask me why, but it works...

  sudo /etc/init.d/irda-utils restart


777 permission is not working under directory

The reason that your workaround does not work is that permissions are given to newly uploaded files by the process that are uploading these files (e.g: PHP, ASP, FTP, etc) combined with the umask value.

You have to use ACL.

Make new file and directories to inherit parent directory's group:

chmod g+s /path/to/directory

Then use this to set group default permission to to rwx:

setfacl -d -m g::rwx /path/to/directory

Now lets say parent directory's group name is "web", now "web" group will be assigned to all new directories and their permission would be set to 777, files should get 664 I guess.

Remember that setting file permissions to 777 is not a right thing to do. find out what you are doing wrong.


Checking which options were passed to ./configure

When configure is run, it creates a log file config.log.  Right at the top of the file it will list what arguments were passed to configure.


Blu-Ray drive seems to be recognized as harddrive (/dev/sdb) (drive conntected at SATA -> USB adapter)

I just found out that it was because of the adapter/ bridge and therefore could not be changed. I had the same problem on other systems.


Problem installing double boot Ubuntu on Windows 10

You don't have to disable Secure Boot to install Ubuntu.

Your old computer probably doesn't have UEFI and Secure Boot.


Will Linux Kernel 3.5 be coming to 12.04?

The Ubuntu Kernel team will be providing packages of all the kernels from the next 3 Ubuntu releases for 12.04. You can get the details on that here:

https://wiki.ubuntu.com/Kernel/Release/Rolling

These kernels will be named like this:

  linux-image-current- - always points to the the most recently released kernel, e.g., 12.10, 13.04, etc.

They will be available in the package manager but by default your 12.04 installation will use 3.2.x unless you specifically install one of these kernels.

As far as 3.5 itself, you can now use the hardware enablement stack:

sudo apt-get install linux-generic-lts-quantal xserver-xorg-lts-quantal

For all future kernel releases, you can always find the latest builds of the upstream kernel here:

http://kernel.ubuntu.com/~kernel-ppa/mainline/
How can I install a newer kernel?

However these packages are for testing and you probably shouldn't use them unless you need to or you know what you are doing.


So I did how the service guys told me: install Windows and original drivers dedicated for Windows (which comes on a DVD disc, but obviously E11 doesn't have a CD/DVD drive).

Acer service simply doesn't support Linux, so they can't told if the hardware is broken or not.

After installing proper drivers the webcam under Windows doesn't work either.

But it hasn't been a 10 days since I bought this netbook so I get replaced it with a new one.

Thanks for some nice ideas folks. I would never have guessed that it might be a hardware problem.


Where can I find Gwibber problems to fix?

The best place to find problem for any program in on that project's development pages and on the bug trackers, for example with Gwibber you can find a lot of information about issues on the launchpad bugs page:

https://bugs.launchpad.net/gwibber/


Can I browse and search man pages in Yelp?

The search feature in yelp is broken and does not include man pages in the results. See https://bugzilla.gnome.org/show_bug.cgi?id=505641

This is unsatisfying, but You can press [Ctrl]+[L] and enter the man page to display, e.g. man:bash.


As you are trying Ubuntu from USB, You can enable more verbose output during booting. Do these steps:

In the USB drive, their should be a folder named "isolinux". (it may be "syslinux" also). Go to that folder (from your Windows or existing Ubuntu)
Open txt.cfg file inside that folder with a text editor like gedit (in Ubuntu) or Notepad (in Windows)
Remove the quiet splash words with a blank. The lines will look like this

append  file=/cdrom/preseed/ubuntu.seed boot=casper initrd=/casper/initrd.lz quiet splash --

After removing it should look like this

append  file=/cdrom/preseed/ubuntu.seed boot=casper initrd=/casper/initrd.lz  --

Then save the file and exit Text Editor.

From now, If you boot Ubuntu from USB, you should have more verbose output showing you. Although those outputs are too fast, but can help you if booting stuck on a step.

Hope this answer  help in some degree.


You are partially right: Automatically mounted partitions do not show up in fstab.

However, that proves nothing about manually created fstab entries being ignored by the system.
Why do you assume that ALL mounted partitions have to show up in fstab?

Even with the command line mount, it is easily possible to mount partitions that do not show up in fstab by manually specifying the device, file system and mount point.

For example, try:

mkdir foo
sudo mount -t tmpfs none foo

That creates a temporary RAM disk and mounts it to the newly created directory foo - without modifying fstab or in fact any persistent configuration file.
Instead of tmpfs, you might as well use vfat and a physical device.

Basically, the automatic mounting function you described does just that as soon as it discovers a newly attached disk.


Is it possible to trigger Supert+W when moving the mouse cursor to the bottom right corner?

Unity Tweak Tool
With this tool it is possible to activate windows spread on a hot corner. Go to Window Manager > Hot Corners, switch to ON and select Spread all Windows in the dropdown list for the bottom right corner (or any other):


Ubuntu 17.04 connected to wifi but can't browse internet

This was Originally posted by Mike_IronFist over here
All you need to do is Open a terminal by pressing Ctrl + Alt + T and run:
gksu gedit /etc/NetworkManager/NetworkManager.conf

At the bottom of this file, copy and paste the following:
[device]
wifi.scan-rand-mac-address=no

Your final results should look something like this:

Then just save and close the file and run:
sudo service network-manager restart

And wifi should work again!

(if above steps doesn't help)
you should also know that Ubuntu 17.04 can not resolve DNS servers with DNSSEC support as of 2017-04-18.  Disable DNSSEC with this daemon:
sudo mkdir -p /etc/systemd/resolved.conf.d
printf "[Resolve]\nDNSSEC=no\n" | sudo tee /etc/systemd/resolved.conf.d/no-dnssec.conf

Reconfigure resolvconf if needed:
sudo dpkg-reconfigure resolvconf
# Say yes to "prepare /etc/resolve.conf for dynamic updates?"

And reboot.


How do I install Groovy 2.5 on Ubuntu 16.04?

$ sudo apt-get install groovy2
$ groovy -v
Groovy Version: 2.4.5 JVM: 1.8.0_144 Vendor: Oracle Corporation OS: Linux

Ubuntu 16.04.3


Is it possible to set Allocation Unit Size with GParted when formating an external hard drive?

No, none of the GUI tools can do that. Partitioning works perfectly with those tools also standard formatting work like a charm but for really advanced options you only have the commandline tools.

Standard on Linux is mk2fs for building (formatting) ext2/3/4 filesystems.
The amount of options is quite large, including options for blocksize (AUS), journalling, inodesize, presets, superblocks, trim/discard etc. etc. etc.

Use the command mkntfs for building (formatting) NTFS filesystem.
Again, a lot of options are possible here.
Type man mkntfs for an explanation how to use it.


You have to change the boot order in bios settings. Make Ubuntu boot first in os boot manager as for hp machines, then it will show GRUB menu.


Fingerprint and NFC reader on Dell Latitude E7450

If you check the fprint page for supported devices you will see that yours (0a5c:5804) is not included, so you cannot expect it to appear in the fprint-gui. It is just not supported.
Page is: https://launchpad.net/~fingerprint/+archive/ubuntu/fprint

The fprint project is not moving anymore, since quite some time, so you should not expect any solution, if you do not start coding (or persuade someone to do it for you).

Sorry, but no luck.

EDIT:

The exact page of the supported devices by fprint is: https://fprint.freedesktop.org/supported-devices.html
After 2 years, the Broadcom chips are still not supported.
I hope someone (Joe? ) might have done some progress with that, but it is not visible in fprint's pages.
The rest of the proposed solutions (gui) are based on the fprint.
So, the outcome remains: Sorry, no luck.


Trying to get apt-upgrade working again on Ubuntu Server 16.04

It turned out that the .list files were corrupt.

I managed to solve this using the advice on https://www.linuxquestions.org/questions/debian-26/apt-get-dpkg-error-files-list-file-missing-final-newline-271118/

I deleted the list files, purged and reinstalled the packages and it all eventually started updating/upgrading without error.


Upstart has changed in 13.10 allowing user sessions. So this means that you must execute  service like this (even from root account):

sudo service mongodb restart

See this page:

http://ubuntuforums.org/showthread.php?t=2181441


Some things that helped me:

Disable USB3 ("XHCI") temporarily in BIOS/UEFI system settings. Some instructions hint on using different USB port (eg. one with only USB2 support), but that did not help me.
Edit/add temporarily /etc/modprobe.d/blacklist-local.conf and add lines "blacklist usb_storage" and "blacklist keucr" to it. Reboot, but note you'll lose access to any USB storage like it says.

After that I was able to mount a SD card reader in VirtualBox, even without USB filter as such but just selecting it from the USB menu during runtime.

Ubuntu 12.04.4 LTS (3.11 kernel), Asus Z87 motherboard, latest VirtualBox.


vpnc networkmanager-vpnc-gnome cannot install in Ubuntu20.04

Step 1： sudo apt-get update -y
Step 2:  sudo apt-get install -y network-manager-vpnc-gnome
Step 3:  Then check your VPN setting, it works in Ubuntu20.04


Error building dockerfile "E: The method driver /usr/lib/apt/methods/https could not be found."

I know this is an old question, but I ran into the same error while tweaking an old Ubuntu 16.04-based image. The solution was to do this first in the dockerfile:
RUN apt-get update && apt-get install -y apt-transport-https

This package allows apt to use https sources.


Why can't I delete the default "places" in files?

Paths to Places are set in ~/.config/user-dirs.dirs. Edit that file (Alt+F2 and type gedit ~/.config/user-dirs.dirs) and change the path according your needs. For example:

To change the default Music folder to /media/MyOtherHardDrive/Music replace the XDG_MUSIC_DIR variable:

XDG_MUSIC_DIR="/media/MyOtherHardDrive/Music"


Tarek,
Can you explain how you deleted the .Xauthority and .ICEauthority files.
I am having the same problem.

Siv


Answer: the missing thing was the tclvfs package.

Namely, after all that, I tried looking up visual_regexp-3.1.tcl - and realized there is an Ubuntu package for it. So I did

$ sudo apt-get install visual-regexp
The following extra packages will be installed:
  tclvfs
...
The following NEW packages will be installed:
  tclvfs visual-regexp
0 upgraded, 2 newly installed, 0 to remove and 0 not upgraded.
Need to get 136 kB of archives.
After this operation, 590 kB of additional disk space will be used.
Do you want to continue [Y/n]? ...

$ which visual-regexp
/usr/bin/visual-regexp

After this, both visual-regexp works fine, and wish8.5 visual_regexp-3.1.tcl; however, note that visual_regexp-3.1.tcl doesn't work with wish8.4:

$ wish8.4 visual_regexp-3.1.tcl
0
Error in startup script: unknown option "-tristatevalue"
    while executing
"checkbutton    .top.regexp.options.$option  -text              $label   -borderwidth   1   -underline      $underline  -variable       regexp::data(v:$option)  -offvalue      "" ..."
    (procedure "regexp::gui" line 33)
    invoked from within
"regexp::gui"
    (file "visual_regexp-3.1.tcl" line 1511)

Finally, note that visual_regexp-3.1.tcl apparently is still marked as 3.0:


Stop `cp -al` trying to link to hidden files?

It is usually enough to skip hidden files and hidden directories at the first level in the home directory, and then the following command should work,
cp -avl "$HOME"/* outputdir

The wild card, *, will not select hidden files and hidden directories for copying. The option v will show which files are copied (useful while testing).

Please remember that hard links work only within the same partition and only for files. You need symbolic links across partitions and for directories.
So cp copies the directories to new inodes and hardlinks the files to the same inode as the corresponding source file.


I've tried to connect to my database from Libre Calc and get the error :

So I changed the Server from "localhost" to "127.0.0.1" and it ran well though error still occured when test connection in iODBC Management Frontend. It's weird, huh. But never mind :D


Nautilus (File) 3.10.1 how to lock drag and drop bookmarks

Simple solution

The bookmarks that you mention are stored in `~/.config/gtk-3.0/bookmarks. The simpelest solution is to write-protect the file by the command:

chmod 464 ~/.config/gtk-3.0/bookmarks

to set it back to default:

chmod 664 ~/.config/gtk-3.0/bookmarks

To switch between the two, you can set two different key combinations (on/off) for these commands in System Settings > Keyboard > Shortcuts > Custom Shortcuts. In that case you have to use the full path to the file, e.g. chmod 464 /home/jacob/.config/gtk-3.0/bookmarks

In this case, if you drag a folder over the bookmarks in the left pane, it will appear at first, but it won't stick after you close the window.

Alternative

if for some reason, you would not like to change the permissions of the file, you can run the script below in the background:

#!/usr/bin/env python3

import os
import time

home = os.getenv("HOME")
file = home+"/.config/gtk-3.0/bookmarks"

with open(file, "r") as current:
    bookmarks = current.readlines()

def fix_bookmarks():
    time1 = os.path.getmtime(file)
    while 1 != 0:
        time2 = os.path.getmtime(file)
        if time2 == time1:
            pass
        else:
            with open(file, "wt") as current:
                for line in bookmarks:
                    current.write(line)
            time2 = os.path.getmtime(file)
            time1 = time2
        time.sleep(5)

fix_bookmarks()

Copy the script into an empty file, save it as fix_bookmarks.py, make it executable and run it bu the command

/path/to/fix_bookmarks.py

You could add the script to your startup applications (Dash > Startup Applications > Add)

What it does

It checks the modification time of the file ~/.config/gtk-3.0/bookmarks every 5 seconds. If it differs from the last check, changes are reverted visibly within 5 seconds (or any other time you set in time.sleep(5)).


How to to fetch kernel errors in Ubuntu..?

Answered in comments by Muru:

  The logs are processed using a program called rsyslog, which sends it to appropriate files like kern.log, auth.log, syslog, etc. You can modify it's configuration to send mails as well. The logged messages are classified into priority levels, so you can do so only for certain priorities, and only for messages from certain sources (the kernel, but not others). I'll write a more compete answer if I get the time, but this should be enough of a starting point for you or someone else to figure out what needs to be done.


How can I compile and sign Grub in a way that Secure Boot will allow?

Generate a new rsa key and certificate pair with openssl:

openssl req -new -x509 -sha256 -newkey rsa:<BITS>
            -keyout <PRIVATE_KEY_PATH>
            -outform PEM
            -out <CRT_CERTIFICATE_PATH>

Then use sbsign (or the sign-file inside linux-headers in /usr/src):

sbsign --key <PRIVATE_KEY> --cert <CRT_CERTIFICATE>
       --output <SIGNED_GRUB_PATH>
       <UNSIGNED_GRUB_PATH>

Generate the DER certificate and import it into the firmware:

openssl x509 -in <CRT_CERTIFICATE_PATH>
             -outform DER
             -out <DER_CERTIFICATE_PATH>

sudo mokutil --import <DER_CERTIFICATE_PATH>


How to find files that contains some Cyrillic word?

If you use gnome-search-tool to look for .txt or .rtf files containing any Unicode characters (including Cyrillic ), this just works.  However your example of .doc files is a bad one as these are binary files coming from a program that uses compression to store the text that you see on the screen in a proprietary format on disk, so there the gnome-search-tool does not work.

The workaround is to convert all your .doc files to .rtf and then you can open them and search them


connecting to Windows VM from the headless server

To summarize the comments, you want to do the following:

Connect to the (headless aka "No GUI") Ubuntu server, and then
See the Windows VM in a GUI.

The core problem is: the server is headless with no GUI.

Your goals and the server type you're using for the hypervisor (called a "Type 2 Hypervisor" but without the GUI / "head" components) cancel each other out, resulting in a mutually-exclusive-options type of situation.

To connect to the server and see the GUI from the headless server is impossible.  You would need to set up a GUI inside the Ubuntu server, and then very likely use a software that hooks into the 'console' within the hypervisor software.

This requires that you have a GUI on the server itself, if you do not intend to connect directly into the VM with Remote Desktop, VNC, or some other type of 'screensharing' solution.  Even if you install SSH on the Windows server to remotely connect to it, you're then limited to a CLI connection.

Therefore, unless your virtualization software allows you to run a VNC connection for the VM, and the VM is directly connected to the 'network' that the Ubuntu Server sits on (aka a "bridged connection"), and you are willing to connect directly to the Windows VM, and you manage to set up that functionality (which is tricky on the Command Line, and requires you to ask how to do that over on Super User), your goal and what you've done so far prohibit you from achieving your goal, no matter what you do to the VM or the host server.

Without the GUI on the server, you've got no chance of achieving your ultimate goals here.  And without the GUI, you can't really manage the Windows VM to get everything set up as you need to in order to have the Windows VM connectable directly (which requires editing registry values, enabling/disabling features, and/or installing additional software on Windows to make remote connections over VNC work directly).


libmono-winforms2.0-cil missing (deleted) from xenial release

Theoretically, you might use a "third party" repository to have your packages back.

Type in this:

sudo apt-key adv --keyserver hkp://keyserver.ubuntu.com:80 --recv-keys 3FA7E0328081BFF6A14DA29AA6A19B38D3D831EF

then

echo "deb http://download.mono-project.com/repo/debian wheezy main" | sudo tee /etc/apt/sources.list.d/mono-xamarin.list

then

sudo apt-get update

After that, you should be able to install libmono-winforms2.0-cil with:

sudo apt-get install libmono-winforms2.0-cil

I hope this helps.


How do remove the CD / DVD install as a source for apt-get packages when installing new features?

Yes, you can remove the CD-ROM (or or original installation media) from the sources.list

Edit the sources.list file with the following command:

sudo nano /etc/apt/sources.list

And near the top, comment out the line that looks like this:

deb cdrom:[Ubuntu-Server 9.04 _Jaunty Jackalope_ - Release i386 (20090421.1)]/ jaunty main restricted

(comment is a hash (#) - so pop one of these at the start of the deb cdrom: ... line)

Press Ctrl+X to exit the nano text editor, pressing y to save your changes

Then finally you'll need to run:

sudo apt-get update

To update your package lists.


How to re-install Ubuntu without losing files? (Edit - Files lost - urgent help needed)

With Linux, most anything is possible, and not really that hard.  In fact, if you do nothing but install a new version, you will probably find that the old installations will once again be bootable.

But to do what you want, I would use gparted from a live USB and delete sda2, since you don't need it.  Then, if sda2 is adjacent to sda1, I'd enlarge sda1 to use the new free space, and then get the Super Grub Disk to fix the boot problem.  Once that's done, you could update it to 12.04.

If you really want a clean install, you could (using gparted) reformat sda4, use the live USB to copy your /var/www from sda1 to sda4, then reformat sda1 and install 12.04 there.  The install  will keep your windows partition, assuming you pay attention and don't use the entire drive.


How to edit text in specific tags in specified files to capitalize the content

Assuming that .ngo files are XML, probably the right way to do this is using an XML tool such as xmlstarlet to transform your data according to a suitable XLST template.
However if you just need something quick'n'dirty then maybe with Perl:
perl -lpe 's@(?<=<title>)(.*)(?=</title>)@join " ", map { ucfirst $_ } split(/\s+/,$1)@e'

Ex. given the following file.ngo based on the Kodi template movie .nfo file
$ cat file.nfo
<?xml version="1.0" encoding="UTF-8" standalone="yes" ?>
<movie>
    <title>Some example text</title>
    <showtitle>Some example text</showtitle>
    <originaltitle>Some example text</originaltitle>
    <userrating>0</userrating>
    <outline></outline>
    <plot></plot>
    <tagline></tagline>
    <runtime></runtime>
    <mpaa></mpaa>
    <uniqueid type="" default="true"></uniqueid>
    <genre></genre>
    <country></country>
    <credits></credits>
    <director></director>
    <premiered></premiered>
    <studio></studio>
    <actor>
        <name></name>
        <role></role>
        <order></order>
        <thumb></thumb>
    </actor>
</movie>

then
$ perl -lpe 's@(?<=<title>)(.*)(?=</title>)@join " ", map { ucfirst $_ } split(/\s+/,$1)@e' file.nfo
<?xml version="1.0" encoding="UTF-8" standalone="yes" ?>
<movie>
    <title>Some Example Text</title>
    <showtitle>Some example text</showtitle>
    <originaltitle>Some example text</originaltitle>
    <userrating>0</userrating>
    <outline></outline>
    <plot></plot>
    <tagline></tagline>
    <runtime></runtime>
    <mpaa></mpaa>
    <uniqueid type="" default="true"></uniqueid>
    <genre></genre>
    <country></country>
    <credits></credits>
    <director></director>
    <premiered></premiered>
    <studio></studio>
    <actor>
        <name></name>
        <role></role>
        <order></order>
        <thumb></thumb>
    </actor>
</movie>


Installed Ubuntu 17.04 and now can't boot at all: Failed to open \EFI\Boot\grubx64.efi - Not found

Every Acer we have seen needs you to enable a UEFI Supervisory password and from within UEFI drill down to the grub/ubuntu .efi boot files in the ESP and enable trust.

This seems to be unique to Acer.
But better than many other systems that require working around limits built into UEFI to only Boot Windows.

More details on password & trust settings:

http://askubuntu.com/questions/597213/bootable-device-not-found-after-clean-install-of-ubuntu-14-04-uefi

Acer video on setting Supervisory Password.


I don't know whether a template exists at the moment however I would personally contact the team directly.

ubuntu-marketing@lists.ubuntu.com

if you explain what you are doing they may be able to get a draft organised for you sooner and they may even want you to join the team to share your expertise and local knowledge with them.

Hope you are successful


You should try connecting to https://routers.dns.name instead of https://ip-address. You may be able to find the router's DNS name by viewing the certificate details, and looking at the "issued to" "CN" section


Google Chrome indicator icons missing in 17.10

You won't find another solution than adding the extension Topicon Plus.

GNOME got rid of its notification panel in 3.26. Ubuntu added an extension to manage that. But it's not as feature complete as Topicon Plus.


Outgoing network blocked (NOT firewall), incoming connections ok

Editing /etc/resolv.conf is only a short term solution, it is NOT persistent. The solution is to edit /etc/netplan/50-cloud-init.yaml and paste the following:
network:
    version: 2
    ethernets:
        ens4:
            dhcp4: true
            nameservers:
                addresses: [1.1.1.1, 8.8.8.8]
            set-name: ens4

Make sure you use 4 spaces, not tabs when editing this YAML file.
Then run sudo netplan apply to save changes.
Sources: ricmedia and linuxize


answer for question:
1- if i were you i would go for 14.04.1 because it is more stable and the update have less probability to cause your system to be unstable, also the more old is the system( especially LTS like 14.04) , the more stable it is, the more you can find answers for questions you may have in the future

2- if you decided to wipe your disk and install ubuntu instead of windows , you would lose you files if you didn't do a backup, but you can also partition your disk to two or more partitions one of them will host the new system, and the rest serves as data/windows partition, typically if you want to dual-boot (means install one next to the other on the same machine) windows and Ubuntu, you can have three partitions one for windows on for Ubuntu and one for data (usually ntfs) to act as a common data store accessible by both systems

3- almost all 3g dongles drivers are included in Ubuntu 14.04.1 and i wouldn't worry much about that, but if you encountered any issue, we can always help

4- your processor as mentioned in intel's documentation is a 64 bit processor so you are good either with 32 bit version or 64 bit.

5- i think that 2.3Mhz is more than enough to run Ubuntu also 3Gb ram is a good assistant for that

welcome to ubuntu, have a good time with OPEN SOURCE SOFTWARE


how to unmoplease guide me on how to unlock the partition in G parted as I want to allocate space to other Operating system?unt the locked

I am not sure exactly what you mean by a 'locked' partition, but if you are trying to re-size partitions using gparted, the partition CANNOT BE MOUNTED. Right click on the partition in question and unmount (umount) it. You should then be able to re-size it.

Alan


I have recently run into the same problem.  You will need to edit /etc/pam.d/sshd to remove or comment out the noupdate there as well.


Where is the login screen wallpaper located?

It's stored at:

/usr/share/backgrounds/warty-final-ubuntu.png


Windows10 boot option lost after installing ubuntu 15.04 and try boot repair

Well, your Windows bootloader seems to have been renamed to bootmgfw2.efi.  Rename it back, then run

sudo update-grub

and see if you get a Windows boot menu item.  Try it. Try turning off secure boot.  Try the efi boot menu (some function key at power-on, like f12, or f10) and select the Windows option.


What is the difference between the *.ubuntu.com wikis?

From https://wiki.ubuntu.com/DocumentationTeam/SystemDocumentation

One of the major tasks of the Documentation Team is to take care of the documentation which comes with every Ubuntu system, and is available in Yelp, the Gnome help system. This documentation is also available on https://help.ubuntu.com.
In order to contribute to the system documentation, you need to know a bit about the tools and processes the team uses to maintain the documentation. Don't worry if you don't know any of our tools yet. They are very easy to learn and it's possible to make useful contributions before learning how to use all the tools.
The first thing you need to do is familiarize yourself with the docteam environment. This page briefly describes the various things you need to know and provides links for further reading and discovery.

From https://wiki.ubuntu.com/DocumentationTeam/Wiki

The Documentation Wiki is a sub-project of the DocumentationTeam. It is a community-driven and open area of the Ubuntu documentation website which anyone can edit.

also from here https://help.ubuntu.com/community/WikiGuide

This website is free for all to edit, and contributing is easy. You need an account for the website (see /Registration for details), and it is recommended that you read through this guide before contributing.
When should you contribute? Whenever you see something that could be improved or updated! Also, WikiToDo contains details of things that need doing. If you notice an error and do not want to correct it yourself, you can report it as a bug.

So yes, https://help.ubuntu.com is the official documentation but it is possible to contribute to it also. https://help.ubuntu.com/community and https://wiki.ubuntu.com are the same (if we are talking about the documentation of Ubuntu), they are the community maintained documentation. To see that the latter two are the same:
https://help.ubuntu.com/community/Installation
https://wiki.ubuntu.com/Installation
or
https://help.ubuntu.com/community/BinaryDriverHowto/Nvidia
https://wiki.ubuntu.com/BinaryDriverHowto/Nvidia
But https://wiki.ubuntu.com is not just about documentation as Braiam correctly pointed out in his above answer.


How to view systemd / journald log for the isc dhcp service?

The command was actually:

journalctl -u isc-dhcp-server


Gnome Shell / Ubuntu 17.10+ : Magnifier
With GNOME Shell (instead of Compiz) as Window Manager (wmctrl -m):

Super+Alt+8: Toggle zoom enabled/disabled
Super+Alt++/-: To increase/decrease zoom.
On some non-English keyboard layouts + won't work, try 0 instead.

Surprisingly, numpad +/- won't work.
You can change the shortcuts on Settings > Devices > Keyboard and zoom options on Settings > Universal access settings > Zoom:

Source.
Issue: Screenshot of an area (Ctrl + Shift + PrntScrn seems to be broken when zoom is enabled. It captures a region with an offset. Also, it doesn't start zooming where is the pointer.
See also

Magnify a screen area
Orca: Orca is a free, open source, flexible, and extensible screen reader that provides access to the graphical desktop via speech and refreshable braille.


Run these commands on terminal to install Ruby 2.0.

sudo apt-get update
sudo apt-get install ruby2.0 ruby2.0-dev

To check the ruby version,run this

ruby2.0 --version


How can I access blocked sites for free?

The safest bet is to use the Tor network to access sites that your ISP has blocked. In Ubuntu, you can download Tor through the Software Center or with the terminal command:

sudo apt-get install tor

Then, use the torify command to run programs and have network requests automatically sent through the Tor proxy network. For example:

torsocks firefox

Or, to do software upgrades...

sudo -i
torsocks apt-get update
torsocks apt-get dist-upgrade

For a more "user-friendly" experience with Tor, download their browser bundle. It comes in a compressed file which you can right-click in the file manager and extract. Navigate to the extracted directory and run start-tor-browser.sh with a double-click.

You can run Flash in the Tor browser: Enable it under Tools > Addons > Plugins.


How do I turn my partitions into a Windows-like C and D disk?

In linux, there is no complicated notion of extra drive letters. You only have to understand file paths to locate any file available to you.
In Linux, everything is a file. There is one single starting folder, the "root directory", which simply is represented by "/". Many folders exist in that root directory. Most contain system files. One folder is called "home". Its full path is "/home". There, the user's home folders live. So if your login is "david", there will be a folder "david" in the "/home" folder. The full pathname to that folder is "/home/david".
Partitions that contain a file system, i.e. what Windows would see as a "different drive letter" are, in linux, integrated into the file system. This is done by mounting the partition into a folder of the file system.
USB drives that you plug in are automatically mounted in a folder under "/media". In your example, these drives would be mounted under "/media/david". The file manager shows such mounted drives in a "windowesque" manner by showing an icon for them in the left pane.
Your /dev/sda1 is your root partition. You will never be able to see that as a separate storage volume. Navigate to its contents through "Other locations" in the file manager, then "Computer".
You could have your /dev/sda2 appear as a "drive letter" if you label it. If a partition has a label, that label will be used to display the partition in File manager. So set the label to for example "D" and the partition will show up in the left pane as "D".
If you give the partition a name, it will be shown with that name.


Bazel is the build tool required to build and install Tensorflow from source. If you didn't install from source, it's not necessary.


Unable To Enable Bluetooth on a Dell N4110

OP solved this problem by upgrading to 12.04:

  Thanks for the help Will. But I upgraded to 12.04 and it worked! May be it was some glitch with 11.10.


Unhandled kernel version error when trying to install laptop-mode-tools

As per the suggestion in this bug I added kernel version in laptop-mode-tools script. So you should add "3.0");; to the file /usr/sbin/laptop_mode about line 506 so it reads as follows:

case "$KLEVEL" in
 "2.4" ) ;;
 "2.6" ) ;;
 "3.0" ) ;;
 *)
  log "ERR" "Unhandled kernel version: $KLEVEL ('uname -r' = '$(uname -r)')" >&2
  exit 1
  ;;

If you want to avoid laptop-mode-tools completely you may add the following script in /etc/pm/power.d/ and name it powersave. It does something similar to laptop-mode. You may need to tweak the script according to you hardware.

#!/bin/sh
# A script to enable laptop power saving features for #! & Debian GNU+linux.
# http://crunchbanglinux.org/forums/topic/11954

# List of modules to unload, space seperated. Edit depending on your hardware and preferences.
modlist="uvcvideo"
# Bus list for runtime pm. Probably shouldn't touch this.
buslist="pci spi i2c"

case "$1" in
    true)
    # Enable some power saving settings while on battery
       # Enable laptop mode
        echo 5 > /proc/sys/vm/laptop_mode
       # Less VM disk activity. Suggested by powertop
        echo 1500 > /proc/sys/vm/dirty_writeback_centisecs
       # Intel power saving
        echo Y > /sys/module/snd_hda_intel/parameters/power_save_controller
        echo 1 > /sys/module/snd_hda_intel/parameters/power_save
       # Set backlight brightness to 50%
        echo 3 > /sys/class/backlight/acpi_video0/brightness
       # USB powersaving
        for i in /sys/bus/usb/devices/*/power/autosuspend; do
            echo 1 > $i
        done
       # SATA power saving
        for i in /sys/class/scsi_host/host*/link_power_management_policy; do
            echo min_power > $i
        done
       # Disable hardware modules to save power
        for mod in $modlist; do
            grep $mod /proc/modules >/dev/null || continue
            modprobe -r $mod 2>/dev/null
        done
       # Enable runtime power management. Suggested by powertop.
        for bus in $buslist; do
            for i in /sys/bus/$bus/devices/*/power/control; do
                echo auto > $i
            done
        done
    ;;
    false)
       #Return settings to default on AC power
        echo 0 > /proc/sys/vm/laptop_mode
        echo 500 > /proc/sys/vm/dirty_writeback_centisecs
        echo N > /sys/module/snd_hda_intel/parameters/power_save_controller
        echo 0 > /sys/module/snd_hda_intel/parameters/power_save
        echo 12 > /sys/class/backlight/acpi_video0/brightness
        for i in /sys/bus/usb/devices/*/power/autosuspend; do
            echo 2 > $i
        done
        for i in /sys/class/scsi_host/host*/link_power_management_policy
            do echo max_performance > $i
        done
        for mod in $modlist; do
            if ! lsmod | grep $mod; then
                modprobe $mod 2>/dev/null
            fi
        done
        for bus in $buslist; do
            for i in /sys/bus/$bus/devices/*/power/control; do
                echo on > $i
            done
        done
    ;;
esac

exit 0

Source

OR although I havenot used it, many have recommended jupiter applet for power saving. You can install it from ppa:

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

Source


Wakeup freeze after suspend on desctop [nothing works]

My computer did the same thing I had to go into screensaver and tell it to do nothing or to never do any of the screensaver it works for me. It also makes it where you do not have to put in password in at the time the computer comes back up.


Making changes to Conda environment permanent instead of falling back to the default

If you are using the Bash shell, just activate the environment in your .bashrc, by editing it and adding the following at the end of the file:
conda activate house_rank

You can do that more easily by running this command:
echo "conda activate house_rank" >> ~/.bashrc

Then close and reopen your terminal or run the following command for the change to take effect:
source ~/.bashrc


I've just upgraded and ran into this problem. Run the following commands in the terminal to fix the issue (for the logged in user only):

Copy launcher files for control centre items to user specific directory for editing

cp /usr/share/applications/unity-* /usr/share/applications/system-config-printer.desktop ~/.local/share/applications

Remove attributes preventing the launchers appearing outside of Unity

sed -i 's/OnlyShowIn=Unity;//' ~/.local/share/applications/unity-*
sed -i 's/NotShowIn=KDE;GNOME;/NotShowIn=KDE;/' ~/.local/share/applications/system-config-printer.desktop


Problems with GNU Boot Manager with Dual Boot

You can open the boot menu of your system via F12(might differ for different motherboards). Then select Ubuntu , and if it's not there, that means you haven't installed Grub2 at all. You have to either re-install the OS or just with a live ISO run sudo grub-install /dev/sda (if you want to install it in the first disk).
But if you have that option and you're able to boot , you can run
sudo update-grub

to make the grub2 the default bootloader of your disk. Reboot and you'll be able to boot either Windows or Ubuntu via the Grub menu.


How do I restore PenDriveLinux boot load menu after accidental overwrite?

I would try boot-repair https://help.ubuntu.com/community/Boot-Repair

Look at the info on the Advanced Tab. Choose "place GRUB into" > sdb or whatever your USB thumbdrive is. Then Repair.


According to WineHQ site, you can't really install MS Office 2019 using wine. The status is "Garbage".

https://appdb.winehq.org/objectManager.php?sClass=version&iId=37735


18.04 server + XFCE: Double-click doesn't open .txt file with editor

What is your File Manager?
For me this worked:

In a file browser window, Help > About revealed my file manager is Nemo.
Again in the a Nemo file browser window, Edit > Preferences > Behavior > Executable Text Files
Changed from "Execute text file" to "View text file."

After this I could double click a .txt file to view it, whereas before nothing happened.  The default Open With had already been gedit.


Can I configure bash/readline to automatically convert NBSP to normal space?

This can be done on the readline level two different ways.

Method 1

Put following in .inputrc (the configuration file for readline):

# include default system config because ~/.inputrc overrides system config
$include /etc/inputrc
# map NBSP to regular space (left part has NBSP in quotes, right part has space)
" ":" "

If markdown messes up the above, you have to put NBSP in quotes on the left side of colon as explained in the comment. This will map any occurrence of NBSP on input stream with a regular space.

Method 2

Put following in .inputrc:

# include default system config because ~/.inputrc overrides system config
$include /etc/inputrc
# map "pipe + NBSP" to "pipe + regular space" (left part has NBSP in quotes)
"| ":"| "
set keyseq-timeout 250

The idea is to map key sequence {pipe followed by NBSP} to {pipe followed by space}. This works if you type the sequence within 250 ms (configurable above). However, until the timeout is gone, typing pipe symbol alone will not output anything. And if you type the sequence too slow, the fix will not be applied. Also note that the timeout is global so if you intend to use any other sequences, you have to set timeout long enough to be able to type the longest sequence. (The readline library is not clever enough to allow typing the characters and later replace already visible characters after the character sequence matches the configuration.)


Yes, KNode has been removed as it was using old code and no one has volunteered to keep it up to date.

Thunderbird has support for usenet.

However, it was later re-added to the repositories and is now available for installed in Kubuntu 16.10.

Source:

http://www.aegiap.eu/kdeblog/2015/08/kdepim-5-0/


How to Setup the Network Interface from Ubuntu / KVM to Connect to Windows 7 VM

after days of searching, i found out that my server running in the windows VM needed more ports than i released - i released all the ones i found in the docu... -.

If you start with KVM VM´s and want to connect to VM´s from the internet, then configure a bridged network in which you combine your network interface. After that the VM´s will be managed as devices in a NAT network.

Then these instructions can be used to realize the port forwarding from the Internet to the port of the Vm:

https://aboullaite.me/kvm-qemo-forward-ports-with-iptables/

The VM is created in this way:

https://www.cyberciti.biz/faq/installing-kvm-on-ubuntu-16-04-lts-server/


Here is how I would proceed.

If you want to try to manually recover, boot the ubuntu live CD and update everything

sudo apt-get update && sudo apt-get -y dist-upgrade

You then mount your ubuntu partition at /mnt

sudo -i
mount /dev/sdxy /mnt

You can the copy /etc to /mnt/etc

cp -Raf /etc /mnt

You will then need to manually edit /mnt/etc/passwd and /mnt/etc/group and /mnt/etc/sudoers

The format should be easy enough to understand from existing entries, but if not ask. Make sure your user is in the admin group.

Add in your user to those files ^^

Then chroot

sudo chroot /mnt

And set your user password

passwd your_user

You also need to update /mnt/etc/fstab , define your root partition and swap. You can use the live CD as a template for most of the entries.

reboot and hope it works.

If not, boot the live CD and back up your data to a flash driver or alternate partition and re-install.

Best of luck


If your computer has a DVD drive, I would suggest your backup your system with one of the many different programs available. I used the one delivered with my laptop.

If you don't want to touch partitions, then you're left with using a Wubi installation.


Latex fonts installed via font packages should be automatically available in inkscape. It may be necessary to run sudo fc-cache in the font directory /usr/share/fonts to update the font cache.

An obstacle is that the latex name for the font may differ from the system name. When a pdf file is imported in inkscape, the font name are (depending on the options) not replaced or not necessarily replaced by the proper name for the system font (the 'most similar' name is chosen in this case).

Fonts can be selected in latex with, e.g,

\usepackage{fontspec}
\usepackage{tgpagella}
\setmainfont[
  Ligatures=TeX,
  Extension=.otf,
  UprightFont=*-regular,
  ItalicFont=*-italic,
  BoldFont=*-bold,
  BoldItalicFont=*-bolditalic,
]{texgyrepagella}

However, there is no system font called texgyrepagella. The corresponding font name is TeX Gyre Pagella. This is why

\usepackage{fontspec}
\usepackage{tgpagella}
\setmainfont{TeX Gyre Pagella}

may work for the imported pdf file where the above does not.


Why did Docker get stopped on unattended upgrades

Ubuntu has a hidden auto-upgrade program, and it sometimes crashes your system by terminating docker. (My server went down for 5 hours because of this issue)
To fix this bug, just disable apt-daily-upgrade.timer.service on all your ubuntu servers. Usually, even without this bug, we don't want slient upgrade which may cause service interruption.
sudo systemctl disable --now apt-daily-upgrade.timer

Ref: https://arun.nz/why-does-docker-restart-all-containers-regularly/


Cannot connect to wireless router with TL-WDN4800 card on ubuntu 12.04

I have finally found the solution to my problem. There are only Linux supported drivers for the TL-WDN4800 V1... I figured out I actually have the TL-WDN4800 V3 and the v1 drivers are not supported with the V3 for whatever reason. The windows drivers for this card can be found from the official TP-Link website and can be installed on to linux with Ndiswrapper.


Cut out and reworded from @MyUserIsThis' edits to his question:

Ok, I chowned recursively the whole directory /home/<user>/.matlab so I would have permissions to write on it and it was fixed.

BTW, in case someone else runs into this, the exec line of the desktop file should include the option -desktop for the script to work properly when not called from the terminal:

Exec=/home/<user>/Matlab/R2014b/bin/matlab -desktop


Open a terminal Ctrl+Alt+T. Then type the following command (or copy-paste it):

sudo apt-get install ubuntu-restricted-extras

This command will ask for your password. Note that when entering the password, you won't see anything printed in the terminal, neither letters, nor stars. Just enter it and hit Enter.

Afterwards the restricted codecs should be installed. I wonder why your friend didn't install them during setup.


Extend space for Ubuntu 18.10 by adding unallocated space to partition

I find GParted to be the easiest tool to do this here is a link to explanation on how it works. I do recommend taking back up before doing any partitioning.

https://www.howtoforge.com/partitioning_with_gparted

Ok so first you want to download GParted and make a USB bootable disk. Easiest tool for that to use is Rufus.

Once you have it boot from it. (This is because you cant have your disks mounted while trying to partition them).

You will get a GUI and most probably the icon for GParted will be in the top left corner. Once you open that up you will get a screen such as this.

Next select the partition you want to extend. You have to make sure the space you have free is to the right of the partition. If you have more than one you have to shuffle other partitions further to the right until you get a free space there. Also if you do need to resize another partition (Part B) to the right of the partition you are looking at originally (Part A) remember to save changes in between as otherwise it will not allow you to extend you Partition A as Partition B is still in the way until you commit changes.
This is the kind of screen you will get while resizing.


A thought upfront: Why don't you stick to traditional password-based authentication or better yet public-key authentication like everybody else? Your solution is basically a second yet easier to guess password stored in plain text. Custom authentication schemes rarely increase and often even decrease security.

If you don't like PAM you can configure SSH to use a particular log-in script for root. It may look something like this:

#!/bin/sh
set -eu

while read -rp 'What is your birthday?!' REPLY
do
    case "$REPLY" in
        '')
            # empty input; ask again
            ;;

        '10.10.10')
            # Run original command if available or simply the user's log-in shell
            exec ${SSH_ORIGINAL_COMMAND-$SHELL -l};;

        *)
            break;;
    esac
done

echo "You're not welcome here. Go away!" >&2
exit 1

Save the script, e. g. as /root/login-with-birthday.sh, make it executable and make sure that ordinary users cannot read the file because it contains a secret (chmod 0700). Then tell sshd to use it as the log-in command by adding a rule to /etc/ssh/sshd_config:

Match user root
    ForceCommand /root/login-with-birthday.sh


I have a problem related to installing vivaldi

Open a terminal and go to the directory where you have the .deb file, and install it from there; using this command (change the [vivaldifile.dep] to the actual name of .deb file you have):

sudo dpkg -i [vivaldifile.dep]


Built-in camera not working Ubuntu 12.04 + Lenovo Ideapad Y400

I tried installing cheese and also guvcview and my built-in webcam still didn't work.  I have a DELL Vostro with Ubuntu 12.04.

Finally I went to System Settings and in the Hardware section opened Additional Drivers.  The system found a driver for my AMD / Radeon video card.  I installed the driver and rebooted.  I tested the webcam with Kamerka and it worked!

Kamerka is a video app available in Ubuntu Software Center


Downloading and Installing Latest Version of KILE

According to the source page for kile, 11.04 shipped with 1:2.1.0~svn1112278beta4-2ubuntu2, and 1:2.1.0~svn2010122beta5-1ubuntu1~natty1 is available as a backport.

11.10 already appears to have 2.1.0 final.

This fellow appears to have a PPA of Kile 2.1 so that you don't have to compile it yourself:

https://launchpad.net/~kile/+archive/stable

You can find information on how to add and use PPAs here:

What are PPAs and how do I use them?
Are PPA's safe to add to my system and what are some "red flags" to watch out for? (And of course the usual warning about using untrusted packages)

Here's a command line snippet on how to use it:

sudo add-apt-repository ppa:kile/stable
sudo apt-get update
sudo apt-get upgrade

Will upgrade your kile to that version (2.1). Ubuntu automatically disables PPAs the next time you upgrade your OS and usually you'll just pick up the newest version that is available at that time.


mounting HDD as user or otherwise; permissions

It looks like you logged in as a guest user, mounted the external drive and didn't unmount it. Now the (ephemeral) guest user has exclusive access rights to the file system on the drive and to unmount it (as long as it stays mounted).

The easiest solution would be to unmount the drive as super-user.

Method 1: Gnome Disks

You can unmount file systems through Gnome Disks.

Select the drive and the partition.
Press the unmount button crested with a black square (■). Depending on access rights Gnome Disks may ask for a super-user password.
Mount it again through Gnome Disks or Nautilus or however you do it usually.

This method works usually for all unmounting procedures. Though in your particular case I don't know how UDisks (the subsytem allowing regular users to mount file systems) behaves if a different user mounted the file system originally. Try the other method if it doesn't work.

Method 2: Command-line

Unmount the drive as super-user:

sudo umount <MOUNTPOINT>

or

sudo umount <DEVICE>

Mount it with your regular user like you normally do (e. g. through the side bar in Nautilus).

It's also possible to change the mount options and move the mount point to give another user access without unmounting the file system in the process but that requires a little investigation and is more complicated. If you want that please open a new question and stress that you don't want to unmount and leave me a comment to draw my attention to it.


Must be related with current VirtualBox Version 5.0.16, I had the same issue, installed Version 5.0.14 from Ubuntu package archive and it worked for me.


Cant install bcwml-kernel-source in kernel 5.8.0

After browsing the list of drivers, I took the latest one. In my case 0ubuntu7. That one did the trick!
wget http://mirrors.edge.kernel.org/ubuntu/pool/restricted/b/bcmwl/bcmwl-kernel-source_6.30.223.271%2Bbdcom-0ubuntu7_amd64.deb

sudo dpkg -i bcmwl-kernel-source_6.30.223.271+bdcom-0ubuntu7_amd64.deb


symlink inside public folder to access private folder

Provided all folders in the private path have the "executable" bit set for "others", anyone will be able to navigate into that "project1" folder through the symlink, placed in a public folder. The permissions of the "symlink" are these of the target, i.e., your "project1" folder, so there, you will need to set proper owners and permissions on that folder so people you want can do what you want them to do.


What you are seeing on the screen basically meeans that, although wifi could be detected during installation, the bandwidth on which to isolate that connection keeps flipping. This can be fixed as shown here:

http://tech.chandrahasa.com/2012/05/31/fixing-wifi-regulatory-rule-in-unix/

Now the commands that you need to execute to fix this can only be done once you have booted into ubuntu. So my sugestion to you would be to do an offline installation of ubuntu. You will not see this error (to be sure, I would even shutdown your router if thats possible)
After the offline installtion, you can execute the commands as shown in the link. Your Wifi should work then.
Gd luck, let us know how you got on.


You're asking the wrong question. You shouldn't wait until the window has closed, but until the process has died.

Fortunately, that's an easier question to answer.

while [ -n "$(pidof chrome eclipse)" ]; do
  sleep 1
done


While I couldn't find an answer to this, creating a mountpoint:

sudo mkdir /media/DISK1

then mounting it in the home directory:
sudo mount /sdb/sdb2 /home/USER/Disk1

seems to be doing the trick.


How to prevent ubuntu from automatically mounting plugged in storage

Install dconf-editor (if it is not already installed):

sudo apt install dconf-editor

then run it

dconf-editor

Now from the left column go to org > gnome > desktop > media-handling. Here you can uncheck automount.


This Link should help you. I believe you do not need to configure VLAN for your machine, if your router allows untag/access vlan configuration.


How do I prevent a user from copying files from a remote Ubuntu server?

This is better covered by a Linux permissions tutorial, like this one.

But, in a nutshell, and presuming that the user has not been given sudo access or access to root in any way, and also presuming that it is only read access we are concerned about (not write or execute):

To restrict access to one particular file, make sure that:

(1) The file is not "read" accessible by "anyone" (shorthand for "user "group" and "other"):

$ chmod a-r <filename>

(2) The file is not owned by the user:

$ ls -o <filename>
----------  1 baduser   74609996 May 24 17:51  mysecret
$ chown <atrusteduser> <filename>

I'd highly recommend putting any users you're not sure of in a jail shell instead though, at the very least.

Also, don't forget the SysAdmin's security mantra: You can never make a system completely secure.  You must always assume that your system is already infiltrated and attempt to limit the damage.  Backup backup
 and verify your backup.


"deprecated node-uuid@1.4.7: use uuid module instead"

The node-uuid module is deprecated, you need to install uuid module.

npm install -g uuid


Automatically logged out as soon as I log in

Press control + alt + f2, and this will drop you to a terminal. Then login and run

rm .Xauthority
service lightdm restart

and try logging in again, this fixes that problem for me 99% of the time.
 If that doesn't fix your problem, try

apt install --reinstall lightdm

Also, although some people will tell you to install gdm, I find that this prevents my computer from booting, and just causes more problems. However, if all else fails, it may be worth a shot.


Pausing of the terminal process in Ubuntu 14.04

Technically, yes, there are way to stop processes. Simplest - use Ctrl + Z shortcut while process is running. The way it works can be read in bash's manual:

  Typing the suspend character (typ‐
         ically ^Z, Control-Z) while a process is running causes that process to
         be stopped and returns control to bash.   Typing  the  delayed  suspend
         character  (typically  ^Y,  Control-Y) causes the process to be stopped
         when it attempts to read input from the terminal,  and  control  to  be
         returned  to bash.  The user may then manipulate the state of this job,
         using the bg command to continue it in the background, the  fg  command
         to continue it in the foreground, or the kill command to kill it.  A ^Z
         takes effect immediately, and has the additional side effect of causing
         pending output and typeahead to be discarded

However, considering that update is more important than downloading file, I wouldn't recommend pausing the update/upgrade process; pause the file download first, resume later. Or avoid mixing both


Drawbacks of using preload? Why isn't it included by default?

Simply put, Preload isn't for everyone. It is great if you open applications or libraries a lot. It is harmful if you load applications or libraries only occasionally. I will use two examples from my actual usage (and yes I use preload).

First, Google Chrome. Now a browser is opened only once per boot, maybe twice (for me, I am a web developer). Chrome and its related libraries stay in memory because I am always using it. Even when I close all the chrome windows it's still in the background doing its thing. Thus all the ram dedicated to holding a preload copy of Chrome is a total and utter waste. It's never (or rarely) unloaded. For the average user this is true for a great number of applications. A Office user will almost always have their email app open. So the small savings in startup time is completely wasted because they only open their email app once a day, and leave it open.

The Second example is rake. As a ruby developer that believes in testing I run rake a TON. rake runs, executes for a couple of seconds - minutes then exits. Preload helps me speed up my daily work because it loads rake and its needed libraries (which can be very extensive) ahead of time. So there are a lot of starts and stops to the running of rake. The extra ram used to speed up the 400 or 500 launches of rake over the span of a few hours is totally worth it.

So the reason it's not enabled by default is because its ability to actually improve performance is based largely on how you use your system. For some people it will be a negative and for others a positive.

Lastly, having preload on, even if you're not using it, consumes ram. So if you're not launching applications frequently, you could actually make your entire system fractionally slower by not having that ram available for other types of caching. Remember, even if you have 32 Gigs of ram Linux will try to use as much of it as it can to cache data to make your interaction faster. By using preload you reduce that free memory some. Even if it is just a little tiny bit, the 2 seconds you saved launching chrome 1 time could cost you 60 seconds over the month it stays running.


how to efficiently enable/disable GUI in ubuntu server 12.04?

You should be able to simply remove lightdm and use startx to manually start your X sessions.

sudo apt-get remove lightdm

This will remove the ubuntu-desktop meta package.

You can also edit /etc/default/grub

and change

  GRUB_CMDLINE_LINUX_DEFAULT=”quiet splash”

to

  GRUB_CMDLINE_LINUX_DEFAULT=”text”

then run

  sudo update-grub


How to re-purpose a computer to be a NAS type server?

I have a computer with much less horsepower that I use for this purpose that I just run plain old Ubuntu desktop on, but share out some folders to a mixed network that includes Windows machine (both XP and Windows 7) and also a couple of day-to-day Ubuntu machines. I have a couple of external hard drives that I use off of this machine that do automated backups. I also use it for sharing a color printer.

This is really easy to set up. Just install Ubuntu desktop and right click on a folder after set up and choose sharing options... it will walk you through the rest, including installing any other missing pieces. If you get stuck, this is a good tutorial for this kind of thing:

http://www.unixmen.com/linux-tutorials/566-install-samba-server-in-ubuntu-karmic

Once you get it all set up, you can fancy with the machine, including making it available remotely...


Systemd unit fails to run a bash script which otherwise works

While I don't know why your script is failing, I do see a couple of things that should be fixed, which might get you closer to a solution even if they aren't the solution in and of themselves:

When launching an executable script that has a sha-bang specifying the appropriate shell/interpreter, as in your example, don't call /bin/bash explicitly when you want to run the script. Just call the script.
If and when you actually need to pass commands directly in a bash invokation, the syntax is /bin/bash -c "<commands to execute>". What your example is doing is first running /bin/bash with no arguments or commands, then (as a completely separate second command) running your script. In a oneshot type service that shouldn't actually break anything, but do keep in mind that oneshot is the only service type that allows more than one command in this way.
By wrapping a single command in a shell script in this context, all you really accomplish is making things opaque to systemd. Try simply putting your mergerfs command directly in the unit file's ExecStart= directive (you may need to enclose it in double quotes). That way systemd can capture mergerfs's exit status, and the journalctl log will contain any output and/or error messages produced by mergerfs. Then if it fails you should have some information as to why.

Note: For example, the .desktop files used for autostarting desktop goodies only accept one command. If you want to, say, autostart a program after a little delay, that one command could be /bin/bash -c "sleep 10; <program to launch>" It works because you're actually passing the double-quoted string of commands to bash as an argument, so the only command being run from the .desktop file is bash itself.


installing gnome desktop lightdm without selecting

You have to set an environment variable to skip the dialogue.

sudo DEBIAN_FRONTEND=noninteractive apt-get install ubuntu-gnome-desktop

But you might have to take care of the configuration file on your own. E.g. configure /etc/X11/default-display-manager.


After installing BURG my computer no longer boots Windows.. someone please help

First get your Ubuntu installation disk and boot in live mode. Open a terminal and run:

sudo add-apt-repository ppa:yannubuntu/boot-repair
sudo apt update
sudo apt install boot-repair

then run:

sudo boot-repair

Chose recommended options. After a bit it will ask you to paste text in terminal. Select all and paste in new terminal window. It will do this twice.

If this is fruitless you can try accessing Windows data from your live disk and backing it up.

Hope this is helpful!


Ubuntu 14.04 and Gnome 3.12 , GTK Apps black areas glitch?

I've never seen that before and I'm the guy who wrote the program.  It's probably something weird going on with whatever your graphics backend is as both of those are areas which are GdkPixmap.  I'm glad to hear it's not just gtkwave.  Note that those areas ignore themes so it's likely not that unless the compositor/renderer has some sort of effect on those areas, for example, setting an alpha channel or something that is not typical with gtk2.

Those areas get copied back to the main area automatically on exposure events from the X server.  I don't know if you're using Wayland or something like that and whatever is going on in Gdk's rendering backend for gtk2 is missing exposure events that copy from gtkwave's private backing store to what is visible onscreen.

In wavearea_configure_event() of wavewindow.c, you'll see a debug printf.  remove the DEBUG() to expose the printf to see if there are configure events being sent to Gdk.  These should occur when a part of the wavearea or signalarea are covered/uncovered/resized/etc.  Resizing seems to indicate to me that configure events are getting lost.

All in all it sounds like an interesting bug in the Gdk backend of gtk2 to me.  If it's something like that you might be able to use Xephyr/Xnest/whatever in order to get a sane X11 representation.  The same goes for launching vncserver and vncviewer in the same session and targeting gtk to that.

NOTE: gtkwave hasn't been converted to gtk3 mainly because gtk3 is missing a lot of function I need and rewriting huge chunks of the viewer is not a priority on my to-do list.

-Tony


Power saving with free Radeon (ATI) driver

From this blog

You have two options, both involve editing /etc/init.d/ati-power-save options

gksu gedit /etc/init.d/ati-power-save

  First method is called “dynpm” and the second method is called “profile” method.

dynpm method

  Dynpm method is more modern and efficient but it might not work with some hardware combinations (like mine for example).

Add these lines:

#!/bin/sh

# ATI power save
echo dynpm > /sys/class/drm/card0/device/power_method

Reboot

Profile method

  Power profile method is based on four power profiles you choose manually or at boot time using script like the one we are creating here. You can choose between 1. “default” 2. “auto” 3. “low” 4. “high”.

Add these lines to the file

#!/bin/sh

# ATI power save
echo profile > /sys/class/drm/card0/device/power_method
echo low > /sys/class/drm/card0/device/power_profile

Reboot

Either method

Save the script and make it executable

chmod a+x /etc/init.d/ati-power-save

See the blog for additional details.


hi I have fond solution , super easy just click E from Keyboard whan boot count statr (means edit) aftr it show you screen go to second last line in it's end just tipe nomodeset ...after press Ctrl+x means (save and exit).
so you login fast


Trying to install skype on ubuntu mate 1.21

Make sure that the Canonical repositories are enabled. it can be enabled through:

sudo add-apt-repository "deb http://archive.canonical.com/ $(lsb_release -sc) partner"

Add  32 bit support and install skype:

sudo dpkg --add-architecture i386
sudo apt-get update
sudo apt-get install skype


There is an excellent guide at the Community Wiki Here that will guide you step by step through the installation procedure. First, though, you will have to download and then burn the Ubuntu .iso file to your USB disk. There are also general instructions on how to set up your BIOS to boot from your USB disk if, after rebooting with the USB key plugged in, nothing happens.


You can always install the from the minimal image.  Ubuntu Minimal


Unwrapping passphrase and inserting into the user session keyring failed

Updated: 19 June 2018

Summary

I was recently getting the a similar error, when trying to decrypt some data from an external drive.  Every time the error message was from an invalid password, I can duplicate this all day long.  Instead using ecryptfs-recover-private I was using ecryptfs-unwrap-passphrase, which I think is for specific data, though I don't feel like looking up the difference.

Note: This is not a copy/paste guide, it is more of a record of my success.

Unwrapping The Passphrase

You'll need to find your wrapped-passphrase file. If you're not sure where it is you can use find.  After you mount your volume you can do:

sudo find /media -name wrapped-passphrase

You'll want to substitute the path which returns for my paths listed below.

My steps after mounting the old drive.

cd /media/_UUID_/.ecryptfs/paulj/.encryptfs
ecryptfs-unwrap-passphrase ./wrapped-passphrase
Passphrase:

It will always prompt for a passphrase, this is the password initially setup when you created the encrypted home directory when you installed Ubuntu.  In the setup it highly recommends that you use a different password than your login password... if you've been trying your login password for the last hour and failing, try some different ones .. try that one password which you rarely use.

I had forgotten what mine was, I tried all of my super awesome passwords, and I kept getting this error message:

Error: Unwrapping passphrase failed [-5]
Info: Check the system log for more information from libecryptfs

After searching google for about an hour, I figured I'd try a password I knew was bad, so I put in password at the Passphrase prompt.

The following was spit out:

116b053e08564b53b2967e64e509bdc5

I reran ecryptfs-unwrap-passphrase and tried a different password and received the same -5 error message as listed above.  It turns out that I had actually set the passphrase to password, probably due to my frustrations with decrypting data in ubuntu in the past.

Add Passphrase to Keying

Adding the passphrase to ecryptfs-add-passphrase, use the passphrase generated in the previous step.

sudo ecryptfs-add-passphrase --fnek
Passphrase: 116b053e08564b53b2967e64e509bdc5

Outputs:

Inserted auth tok with sig [b69fed2a22932ba4] into the user session keyring
Inserted auth tok with sig [8aad0fb4482edab3] into the user session keyring

Mount or Recover

At this point you have two options, I suggest attempting to mount, then if you can't mount, try recovering.

Mounting the Drive

It is easy to think of the .Private directory as an unmounted volume.

Again here you'll need to specify your own directories.

sudo mkdir -p /home/paulj/Private
sudo mount -t ecryptfs /media/_UUID_/.ecryptfs/paulj/.Private /home/paulj/Private

Passphrase: 116b053e08564b53b2967e64e509bdc5
Select cipher:
 1) aes: blocksize = 16; min keysize = 16; max keysize = 32 (loaded)
 2) blowfish: blocksize = 16; min keysize = 16; max keysize = 56 (not loaded)
 3) des3_ede: blocksize = 8; min keysize = 24; max keysize = 24 (not loaded)
 4) cast6: blocksize = 16; min keysize = 16; max keysize = 32 (not loaded)
 5) cast5: blocksize = 8; min keysize = 5; max keysize = 16 (not loaded)
Selection [aes]: aes

Select key bytes:
 1) 16
 2) 32
 3) 24
Selection [16]: 16

Enable plaintext passthrough (y/n) [n]: n

Enable filename encryption (y/n) [n]: y <-- If your filenames display oddly, toggle this to y or n.

{this is the second value from Inserted auth tok...}
Filename Encryption Key (FNEK) Signature: 8aad0fb4482edab3

Attempting to mount with the following options:
  ecryptfs_unlink_sigs
  ecryptfs_fnek_sig=8aad0fb4482edab3
  ecryptfs_key_bytes=16
  ecryptfs_cipher=aes
  ecryptfs_sig=b69fed2a22932ba4
Mounted eCryptfs

Hopefully when you initially created the encrypted drive you didn't mess around with the cypher or key bytes.

Shows all data in my old home directory.

cd /home/paulj/Private
ls -la

Note: At this point if you get invalid permission/owner/group sets, you're going to want to unmount the drive and skip down to the Recover section.

If you get a good permission set, copy that junk out out of the encrypted drive to the desktop for example.

mkdir ~/Desktop/Backup
cp -Rv ./* ~/Desktop/Backup

Recover

I discovered I couldn't successfully mount my ecryptfs. ls was displaying invalid permission/owner/group settings.  It looked something like the following:

total ??
d????-??-?  ?? ??      ??      ??   ??            .
d????-??-?   6 root    root    4.0K Jun 19 11:42  ..
d???------  ?? ??      ??      ??   ??            .aptitude
d????-??-?  ?? ??      ??      ??   ??            .autoenv
-??-?--?--  ?? ??      ??      ??   ??            .autoenv_authorized
d????-??-?  ?? ??      ??      ??   ??            .aws
-??-?--?--  ?? ??      ??      ??   ??            .bash_aliases
-??-------  ?? ??      ??      ??   ??            .bash_history
-??-?--?--  ?? ??      ??      ??   ??            .bash_logout
-??-?--?--  ?? ??      ??      ??   ??            .bashrc
d????-??-?  ?? ??      ??      ??   ??            bin
d????-??-?  ?? ??      ??      ??   ??            .cache
d????-??-?  ?? ??      ??      ??   ??            code
d????-??-?  ?? ??      ??      ??   ??            .config

I am not sure why I wound up with problems with using mount, so I started messing around with ecryptfs-recover-private and had some luck.

Again, you'll have to use your own generated passphrase from above.  Note that I used the --rw switch here to make the mount read/write, if you omit the switch it will mount read-only.

sudo ecryptfs-recover-private --rw /media/_UUID_/.ecryptfs/paulj/.Private

INFO: Found [/media/_UUID_/.ecryptfs/paulj/.Private].
Try to recover this directory? [Y/n]: Y
INFO: Found your wrapped-passphrase
Do you know your LOGIN passphrase? [Y/n] Y
INFO: Enter your LOGIN passphrase...
Passphrase: 116b053e08564b53b2967e64e509bdc5
Inserted auth tok with sig [b69fed2a22932ba4] into the user session keyring
INFO: Success!  Private data mounted at [/tmp/ecryptfs.idv9OohY].

The tmp path it outputs will contain your encrypted mount.

ls -la /tmp/ecryptfs.idv9OohY

This should show your full path with proper permission sets. Now copy it out somewhere.

mkdir ~/Desktop/Recovered
sudo cp -Rv /tmp/ecryptfs.idv9OohY ~/Desktop/Recovered

In Closing

GOOD LUCK!!

You should be able to use this for any variant of Ubuntu, I for instance have used it in and between Ubuntu and Mint and Lubuntu.

If you're just finding this thread, unless you specifically used password as your Passphrase, those hex values won't work.


There's a simpler process than extracting the tarball and manually installing dependencies like autoconf and libtool. I found that you can simply do sudo apt install libedit-dev which will fetch all the required files. In my case I also had to run the sudo apt upgrade command before running the installation command. This worked for me just fine and got my code running.


How to show the mounted disc title in the Unity?

I am not sure about this, but it seems to me that the Unity default behavior is to display tooltips for launcher icons without a delay. It is being taken into consideration about introducing a delay for this.

Could you let us know of the ubuntu-version you are using? Perhaps the unity interface in 10.10 netbook edition used a delay.

Also update your computer (sudo apt-get update) as well.

As for the overlay thought, I do not think this is supported


Light alternative for Unity clock applet (netbook)?

I'm not aware of a simple/lean clock indicator, however I have a cunning alternative.

1) Write a shell script which gets the current date/time.

2) Install indicator-sysmonitor from here.

3) Add your shell script to indicator-sysmonitor as one of the sensors (and ditch the other sensors).

4) Set the update period to be one minute, more or less frequent as needed.

I have indicator-sysmonitor running showing cpu/mem, updating every five seconds and uses only 15 MB.


How Can I Set Up a Dual Boot with Ubuntu 15.04 and Windows 8.1 on Two SSDs in RAID0

OK, this will get ugly, but bear with me:

BACKUP BACKUP BACKUP Windows completely
Go to Control Panel --> System and find your Windows 8.1 product key
If you don't already have an install disk, go to microsoft's website (google is helpful here) and download an install image for windows 8.1, and burn it to a DVD or USB drive
Reinstall Windows 8.1, and delete all partitions on the drive during the install.  Also make sure to NOT use RAID0.  It is probably wise to install Windows on only 1 disk.  Just pick one and select to install to it.
Boot into the fresh copy of Windows 8.1 and restore from backups.
Boot from the Ubuntu install disk and select to install alongside Windows.
When that's done, your laptop should boot to a Greyish screen that gives you the option to boot either into Ubuntu or Windows.
Wipe the sweat off your brow.


Your /boot partition is full , you need to free some space.
I guess you have many old kernels installed so you may want to remove them.
Open terminal and type uname -r this is the newest kernel don't remove it.

Then type dpkg --list | grep linux-image this will output the list of installed kernels , you can remove any/all kernels from the list except the one you got with uname -r by typing sudo apt-get purge linux-image-x.x.x.x-generic.


How do I set the default desktop environment on 18.04 (Bionic)?

You could reconfigure your default display manager using these steps in the terminal. I am assuming that your default is gdm3 and you want to move to lightdm

$ sudo dpkg-reconfigure gdm3
<OK>
lightdm


How to run an interactive script before xserver shutdown?

I've created a small monitoring script some time ago that will call an interrupt function once the script detects user's attempt at shutting down the computer. The small modification that it needs for your specific case is to cancel the shutdown action , run the script and then call shutdown.

#!/bin/bash

main()
{
  dbus-monitor --profile "interface='com.canonical.Unity.Session',type=signal,member=RebootRequested" | \
  while read -r line;
  do
#   echo $line
     grep -q '.*NameAcquired.*' <<< "$line"  && continue  #  Ignore that first line
    if [ -n "$line"  ];then
       interrupt
    fi
  done
}

interrupt()
{
  # The first command will close the shutdown dialog
  qdbus com.canonical.Unity /com/canonical/Unity/Session com.canonical.Unity.Session.CancelAction
  # place call to your script bellow this comment
  zenity --info --text='Remember to push changes to git repo'
  # Uncomment line bellow for shutdown
  # qdbus com.canonical.Unity  /com/canonical/Unity/Session com.canonical.Unity.Session.Shutdown

}

main

This script of course must be added as part of startup applications or you can create manually .desktop file for it

NOTE: This script  works only with GUI, so if user issues a command sudo shutdown -P now , it won't work. You would need to also monitor for shutdown command through another script using pgrep shutdown or integrate another funciton into the scrip.

For example, in my script up above , youd want to add this function

manual_shutdown_monitor()
{
  while true
  do
  if pgrep shutdown > /dev/null
  then
      zenity --info --text="GOT MANUAL"
  fi
  sleep 0.25
  done
}

And then call that function in main() like this

manual_shutdown_monitor &