If you already installed gufw, which is basically just a GUI for ufw

    sudo apt-get install ufw gufw

you can make sure next that your firewall is enabled by running this command:

   sudo ufw enable

and you can check you firewall status after restart using this command:

   sudo ufw status verbose

By all means, you can open Gufw and unlock the settings and check if all is ok. After that you can close Gufw, the firewall will still be active and running in background.

If you plan to secure your computer way beyond the simple ufw firewall you can visit this link to learn how to secure a linux server or a workstation. You should pay a special attention to the following steps present in this tutorial:

Protect su by limiting access only to admin group
Harden network with sysctl settings
Scan logs and ban suspicious hosts - DenyHosts and Fail2Ban
Check for rootkits - RKHunter and CHKRootKit


Can't enable intel driver 82845g/gl (brookdaleg) chipset

I recently answered a similar question with this chipset.

In summary - it sort of works in  Natty - but you'll need to add a grub boot option of i915.modeset=0 and install Unity 2D.

The OP for that question found that Lubuntu worked much better than Unity-2D.

I suspect that the OP for this question was using either Maverick or Lucid.  Both of these version of Ubuntu had serious i8xx issues - the Kernel team blacklisted the i8xx series - they only ran with the seriously degraded VESA mode.

There are suggested workarounds for i845 for Maverick and Lucid - but in my experience - upgrade/fresh install to the Lubuntu 11.04 (or possibly Xubuntu 11.04) - remember to use the grub-option I described.


Grub Customizer taking over 5 minutes to start

My Grub Customizer was working normally on my 64bit 12.10, previously.
Now though after a few un-related updates, it changed to the 5 minutes later behaviour - as above.

So with a bit of lateral thinking I decided to delve into the BIOS.

I had recently updated the BIOS to fit a PCIe x16 graphics card.
This had in turn removed the MAIN section option which DISABLES the Legacy Floppy Drive!

So the delay is due to a fruitless search for the non-existent floppy drive.

Change your BIOS Legacy Floppy Drive Option to DISABLE


Ubuntu as the only option on the boot menu

Is this in the Grub menu or the BIOS boot menu? I would suggest uninstalling Ubuntu, and installing Windows first. Then reinstall Ubuntu alongside Windows.


Seems

> apt-file search Qt5CoreConfig.cmake

was what I was missing. This got me

qtbase5-dev: /usr/lib/x86_64-linux-gnu/cmake/Qt5Core/Qt5CoreConfig.cmake

Installing that seems to lead to CMake finding Qt5. qmake still reports the same problem when directly called though...some remnant from qt4 still installed it seems...

Edit: As for the qmake problem, this is fixed by

sudo apt-get install qt5-default


Trying to install Ubuntu on computer via cd; no bootable device

Turn on the computer and start hitting the F12 key. This will bring up the boot menu.

Choose the dvd drive. If it is not available Restart the computer hitting the F2 key This will boot to bios. Check your computer recognizes the dvd drive plus the hard drive you are going to install on.

Hope that helps
Larry Keenan


How can I list the hard drive and all its partitions including size from terminal?

Here are a few ways:

If you have an MBR partition table:

terdon@oregano ~ $ sudo fdisk -l
Disk /dev/sda: 500.1 GB, 500107862016 bytes
255 heads, 63 sectors/track, 60801 cylinders, total 976773168 sectors
Units = sectors of 1 * 512 = 512 bytes
Sector size (logical/physical): 512 bytes / 512 bytes
I/O size (minimum/optimal): 512 bytes / 512 bytes
Disk identifier: 0x4b66b5d5

   Device Boot      Start         End      Blocks   Id  System
/dev/sda1              63       80324       40131   de  Dell Utility
/dev/sda2   *       81920    30801919    15360000    7  HPFS/NTFS/exFAT
/dev/sda3        30801920   194643539    81920810    7  HPFS/NTFS/exFAT
/dev/sda4       194643601   976773119   391064759+   f  W95 Ext'd (LBA)
/dev/sda5       194643603   198836504     2096451    c  W95 FAT32 (LBA)
/dev/sda6       342951936   960387071   308717568   83  Linux
/dev/sda7       198840320   342949887    72054784   83  Linux
/dev/sda8       960389120   976773119     8192000   82  Linux swap / Solaris

or
    sudo sfdidk -l

These do not give particularly human readable output though. The next choices are better.
For both GPT and MBR partition tables:

terdon@oregano ~ $ sudo parted -l
Model: ATA ST9500420AS (scsi)
Disk /dev/sda: 500GB
Sector size (logical/physical): 512B/512B
Partition Table: msdos

Number  Start   End     Size    Type      File system     Flags
 1      32.3kB  41.1MB  41.1MB  primary   fat16           diag
 2      41.9MB  15.8GB  15.7GB  primary   ntfs            boot
 3      15.8GB  99.7GB  83.9GB  primary   ntfs
 4      99.7GB  500GB   400GB   extended                  lba
 5      99.7GB  102GB   2147MB  logical   fat32           lba
 7      102GB   176GB   73.8GB  logical   ext4
 6      176GB   492GB   316GB   logical   ext4
 8      492GB   500GB   8389MB  logical   linux-swap(v1)

Model: ST950032 5AS (scsi)
Disk /dev/sdb: 500GB
Sector size (logical/physical): 512B/512B
Partition Table: msdos

Number  Start   End    Size   Type     File system  Flags
 1      32.3kB  500GB  500GB  primary  ntfs

lsblk

terdon@oregano ~ $ lsblk
NAME   MAJ:MIN RM   SIZE RO TYPE MOUNTPOINT
sda      8:0    0 465.8G  0 disk
├─sda1   8:1    0  39.2M  0 part
├─sda2   8:2    0  14.7G  0 part
├─sda3   8:3    0  78.1G  0 part
├─sda4   8:4    0     1K  0 part
├─sda5   8:5    0     2G  0 part
├─sda6   8:6    0 294.4G  0 part /home
├─sda7   8:7    0  68.7G  0 part /
└─sda8   8:8    0   7.8G  0 part [SWAP]
sdb      8:16   0 465.8G  0 disk
└─sdb1   8:17   0 465.8G  0 part /test
sr0     11:0    1  1024M  0 rom

Install inxi then run

terdon@oregano ~ $ inxi -D
Drives:    HDD Total Size: 1000.2GB (70.1% used) 1: id: /dev/sda model: ST9500420AS size: 500.1GB
           2: id: /dev/sdb model: 5AS size: 500.1GB


Can't make partition, GParted shows 450 GB unused

sda2 is already a partition which is being used as  your main file system formatted as ext4. IT IS NOT UNALLOCATED SPACE
Gparted is only telling you that it has 450GB unused.

However if you want to add a new partition , you would have to shrink your current sda2 partition and then create a new partition in the new UNALLOCATED SPACE

https://www.howtoforge.com/partitioning_with_gparted

https://www.youtube.com/watch?v=HVHXdH7Wo3s


You need to put quotes around the --user-agent=Mozilla/5.0 (X11; Ubuntu; Linux i686; rv:19.0) Gecko/20100101 Firefox/19.0 part to prevent the shell from interpreting the parenthesis and semicolon, or just omit that argument entirely as it shouldn't be needed.


How would you configure multiple NICs with DHCP enabled with netplan?

The configuration you're using now allows complete routing for all traffic through each interface because you are using source-based routing.  If the requirement is that you be able to access the machine via ssh from any remote address to any of the local addresses, regardless of which network interfaces are currently up, then this is the simplest way to express this currently in netplan.

If you only needed ens224 and ens256 to be used as backup interfaces in the event that ens192 was down, and you otherwise only needed them to be reachable from (and to reach) their respective local networks, you could use this simplified configuration instead:

network:
  version: 2
  renderer: networkd
  ethernets:
    ens192:
      dhcp4: yes
    ens224:
      dhcp4: yes
      dhcp4-overrides:
        route-metric: 200
    ens256:
      dhcp4: yes
      dhcp4-overrides:
        route-metric: 200


How to make ubuntu not ask for password after login

There's no such thing as "an admin password" in Ubuntu. Any user can elevate his privileges by using sudo as long as that is available to him. And by default sudo requires you to re-authenticate for security reasons. This is a sane default for this reasons as it fits with the "secure by default" policy.

However, it does remember it for a short period of time. Here's a question on how: How does sudo remember you already entered root's password?

Several options to go from here:

Passwordless sudo

From the manpage of sudoers(5):

  By default, sudo requires that a user authenticate him or herself before running a command. This behavior can be modified via the NOPASSWD tag.

Just change the lines in /etc/sudoers to include this. E.g.:

%admin  ALL=(ALL) ALL
%sudo   ALL=(ALL:ALL) ALL

becomes

%admin  ALL=(ALL) NOPASSWD: ALL
%sudo   ALL=(ALL:ALL) NOPASSWD: ALL

Extend timeout

By default sudo will "remember" your password to elevate your privileges again for fifteen minutes. You can extend this to a much longer time, let's say a day. Do note that this is not unlocked on login, but only triggered the first time you are elevating your privileges.

To extend this, edit the /etc/sudoers file and locate the line

Defaults        env_reset

and append ,timestamp_timeout=1440 to it so it becomes

Defaults        env_reset,timestamp_timeout=1440

Alternatively, use -1 (a negative value) to have a really indefinite timeout. Read more about this on the Ubuntu Community wiki: RootSudoTimeout.

Important note! Editing the /etc/sudoers file should be done with great care. Incorrect syntax will result in a system on which you are probably not be able to elevate your privileges again and you'll have to perform a rather complicated password recovery. To edit it safely, use the sudo visudo command in the terminal. It will not directly write to the file, but only when you exit and save it and the syntax is correct. This will prevent a lot of trouble.


How can I serve files via apache2 from an internal ntfs partition using fstab ntfs-3g?

I found my answer: here

I saw many apparently found a way to use /media/ as the method of mounting and pointing to, but I was not able to do this successfully with my internal ntfs partition.

The solution was to mount the ntfs partition to a subdirectory of /mnt/ and give that sub directory the necessary permissions.

cd /mnt
sudo mkdir Data
sudo chown tim:tim Data
sudo chmod 755 Data

then

sudo gedit /etc/fstab adding the line:

/dev/sda3 /mnt/Data ntfs-3g auto,users,uid=tim,gid=tim,utf8,dmask=002,fmask=113 0 0

and

sudo gedit /etc/apache2/sites-available/default with:

DocumentRoot /mnt/Data/www

and

sudo gedit /etc/apache2/sites-available/example.com with:

DocumentRoot /mnt/Data/www/example.com

Using this method apache2 can now serve a site from an ntfs partition.


How do I remove SUN Java and use OpenJDK instead?

In terminal try the following commands:

$ sudo apt-get purge sun-java6-jre:amd64 sun-java6-jre:i386
$ sudo apt-get install openjdk-6-jre


but I didn't use /etc/init.d/ in my command!

Syntax for starting Upstart job is start jobname. See Concepts and Terminology for details.


How to fix symbolic links after switching from Bash to ZSH

First of all, there is absolutely no reason to run chsh with sudo! Next time, just run

chsh -s $(which bash)

There is also absolutely no reason to use sudo ln. Links are world read/write/executable by every one. Now, the links you have created have nothing to do with the shell you sued. There is absolutely no reason why changing your shell would affect them. If you can't access a link, the problem is elsewhere.

Anyway, just run

ln -s /opt/jre1.7.0_55/lib/amd64/libnpjp2.so

That will create a link called libnpjp2.so which will be in your current directory and point to /opt/jre1.7.0_55/lib/amd64/libnpjp2.so. I very much doubt that's what you want to do but that's what you seem to be asking for.

If for whatever reason the commands above don't work. please edit your question and tell us precisely how they failed. A simple "did not work" is not very useful. Were there any error messages? Is a broken link created? What went wrong?


Is there a way to cloud backup applications?

This is very easy to do from Ubuntu Software Center

Open software center and click on 'File' menu.
And then, click the option 'Sync Between Computers...'

After you click that, a sidebar would appear on the left side. It will list software in the local computer and the list will be uploaded in the Ubuntu One cloud.

See the Last sync at the bottom left corner to verify the sync is complete.

If you have two computers you can repeat this process. At that time the left panel will show your our other computer as well as this one. Then you can select apps installed in one computer and install them in the other one.

See the related question How to use the sync between computers in Software Center

Update: April 4, 2014

Canonical has announced that Ubuntu One will not be supported in Ubuntu 14.04 LTS and later. The Ubuntu One service will be closed down and the data in the cloud will be deleted. The cloud backup and sync of the list of applications installed in multiple Ubuntu computers described above will not be available.

I do not recommend this answer any more.

Hope this helps


Software Updater 14.04 LTS to 16.04.5 LTS upgrade

Basically, it is supposed to do so yes. However it is highly recommended to make a copy of your files because upgrading a version is sensitive process that can result in unexpected issues. Regarding to applications, you should keep them as well, unless the version upgrade introduces some incompatibilities with your current applications.


How do I get windows to have borders/titlebars after upgrade from 11.10 to 12.04?

Apparently this is a known bug since 4/4/12.

https://bugs.launchpad.net/ubuntu/+source/compiz/+bug/973559

If this is happening to you, go to the bug and mark it as affecting you.

I fixed this problem (by stumbling around).

Since I have other, older distributions working with Compiz, I opened ccsm from one of them and compared them to the 12.04 upgrade.

Strangely, after enabling Windows decorations, move, and re·size the problems stated is this question were solved.

By setting others from the older ccsm, I got a rotating cube.

Alas, there are no more 3D windows

UPDATE: 3D windows are available for Gnome Classic. The Compiz PluginsExtra is required.  Synaptic is required to install Compiz PluginsExtra, it is not available in Ubuntu Software Center. And they work very nicely!

Screen shots of the older (10.10), working ccsm window can be seen at https://bugs.launchpad.net/ubuntu/+source/update-manager/+bug/994893

UPDATE Although not mentioned in release notes, cube and 3D windows are not a part of Ubuntu.  Compiz settings may changed when logging out of Gnome Classic and into Unity, then back.


are you sure the update completed?

try logging in with

Crtl+Alt+F1

then perform your update again.


Note: Before starting, make sure that you have a current backup, just in case.

If you want to keep D drive, your best bet is to choose something Else, at the installation type screen.

And just erase the drive that you want.  Keep in mind that Ubuntu labels drive different than Windows.  So you won't see C, D, E, etc. instead you will see sda, sdb, etc.

If your D drive is not a physical drive, but a partition, you will see /dev/sda1, /dev/sda2.  sda1 being your C drive, and sda2 is you D drive.

Be sure that you select the right hard. /dev/sda is the first physical hard drive. /dev/sdb is the second hard drive in your machine. So, make sure that you know which is the one you want to format.  Otherwise, you will lose ALL YOUR DATA on that hard drive.


How to download and install swanalekha malayalam language phonetic software for Ubuntu 18.04 LTS?

1.Open terminal
sudo apt-get install ibus-m17n
type enter
type password
After installation restart computer
2.Go to settings-region and languages-click on plus button-type Malayalam-select other-select malayalam(swanalekha)-add
Restart Computer
3.Install appropriate font.


16.04 VirtualBox VM (from vhd file) hangs at "non blocking pool is initialized"

This is long-standing bug in the images released by Canonical.

https://bugs.launchpad.net/cloud-images/+bug/1573095
https://bugs.launchpad.net/ubuntu/+source/livecd-rootfs/+bug/1546108

The grub configuration is trying to use a serial port, but when it is not there, it fails to handle this gracefully. So, either add a serial port or change grub not to requires it.

Three options here to get it to boot the first time:

if the grub menu is available, you can edit the boot arguments to remove console=ttyS0
you can also enable a serial port in VirtualBox
you can mount the drive from another VM or via loopback device and remove console=ttyS0 from /boot/grub/grub.cfg

Two options to get it to boot thereafter:

leave a serial port attached via VirtualBox
override the GRUB_CMDLINE_LINUX_DEFAULT value in
/etc/default/grub or /etc/default/grub.d/*.cfg to not include console=ttyS0, then run sudo update-grub and verify /boot/grub/grub.cfg has your changes.


How to put videos on a Sony Walkman NWZ-S545?

Avidemux
(You need to enable the multiverse repository for this to work):

How do I enable the "multiverse" repository?

Avidemux is a GTK application designed to allow you to easily resize, rescale and convert videos from one format to another. For your case it sounds perfect! According to the Sony website you just need to convert the videos to the MPEG-4 format however I can't seem to find the resizing information anywhere.
sudo apt-get install avidemux
Screenshot:


Upgrade to Ubuntu 14.04LTS from 13.10 failed and now have a black screen

This above answer helped me finish my upgrade.

While following instructions "Ubuntu Desktops 13.04 or 12.10 to 13.10 (Recommended)" here
    https://help.ubuntu.com/community/SaucyUpgrades
and "Ubuntu Desktops 13.10 to 14.04 (Recommended)" here
    https://help.ubuntu.com/community/TrustyUpgrades

I experienced the "black screen" after login at version 13.10.

I applied the fix, and proceeded to continue the upgrade to 14.04 when prompted.

When the upgrade was complete I was not seeing a black screen, but no controls were available and only the background and the "Ubuntu 14.04" logo was visible.

I rebooted to 3.13.0-27 (newest) recovery mode and selected "dpkg"

Now my system seems to be operating as expected.


You may need to set the permissions on the file you are serving to be readable by the server.

This will set the permissions to be editable by the owner, and readable by everyone: 'chmod 644 index.php'


Is there software that can record sound input?

Any audio recorder or audio editor should work.

I like Audacity because it gives you a fair amount of control and you can lay down multiple overlapping tracks.  You may or may not need that kind of complexity.

The trick to sound recording is to get the levels right on your mixer (and on the other device).  You never want it so loud that it clips (goes about -0 dB), but you want it loud enough that it's not too quiet.

It looks like your Tape-2-PC device is plug and play, so it should just appear as an audio device in Ubuntu, alongside your PC's built-in sound card.  You'll need to select the correct input device in order to record from it, otherwise it'll just try to record from the Mic/Line-in jack on your computer.


you can do it using

chsh -s /bin/zsh

It will prompt you to enter your password. Your default login shell is /bin/zsh now.

man chsh

  The chsh command changes the user login shell. This determines the
  name of the users initial login command. A normal user may only change
  the login shell for her own account, the superuser may change the
  login shell for any account

This command will change the default login shell permanently.

Why $SHELL not change?!

The SHELL variable is set by the process that logs you in. It is set to the login shell value set in the passwd file (/etc/passwd). It is not meant to reflect the shell you're currently using.

To print the shell in use you have to run

 echo $0

This will shows the shell name used.

So how to change Login Shell

use the command chsh without options

$ chsh
Password:

Changing the login shell for maythux
Enter the new value, or press ENTER for the default
    Login Shell [/bin/bash]:

you can enter now your /bin/zsh.

Now log out then login again

$ echo $SHELL

/bin/zsh


What editor provides highlighted and clickable hyperlinks? (similar to Notepad++)

It's too simple, just Open Terminal by using Ctrl+Alt+T and type:

    cat -n /File_Path/File_Name

With -n option you could see the line numbers of a file "File_Name" in the output terminal for easy to understand which line you clicked last time.

If file having large number of contains (like yours) that won't fit in output terminal and screen scrolls up very fast, we can use parameters more or less with cat command as show below.

    cat -n /File_Path/File_Name | less

or

    cat -n /File_Path/File_Name | more

Then you need to hold the Ctrl key down while left clicking to open links in a browser, or right click and select the context menu option "Open Link". enjoy


VirtualBox: Simulate network and DHCP Server - cant reach hosts

After some more research I found the answer by myself.

In VirtualBox, the additional ethernet adapters that are connected to the "Internal Network" have to have the same name if they are on the same subnet.

For example in my case subnet 20.0.0.0 that includes Softphone1(eth1) and DHCP-Server(eth1) is connected to the "Internal Network" neta. In both VMs network settings in VirtualBox the name for the Internal Network has to be the same, so the clients can reach each other. They are now virtually on the same network. Now I am able to ping from the DHCP-Server to the Softphone and vice versa.

I hope someone can profit from my problem and solution.


How do I DLNA stream from GNOME to an Xbox One?

I'd recommend you use Plex Media Server, or maybe even Playstation Media Server.

Playstation Media Server is more lightweight and may fit your needs in a more simple manner, but Plex Media Server is more feature rich.

You can simply disable Plex Media Server at startup (sudo update-rc.d -f <service name> disable), and start/stop it using service.


There are two ways of doing it. One is a motion, the solution I am using. vat will select the whole area between two matching tags. Then o will take you to the beginning or end.

The other option is a plugin. matchit is a plugin that will do the same with fewer keystrokes.


Trouble upgrading from 12.04 to 14.04.1 lts

First, try to disable any software sources added manually, as this is probably the source of your error message. See the following link for more details:
How can I fix a 404 Error when using a PPA or updating my package lists?

If this doesn't work, you can try the following commands to rebuild the cache (As suggested in the link below).

cd /var/lib/apt
sudo mv lists lists.old
sudo mkdir -p lists/partial
sudo apt-get update

Cannot upgrade from 12.04LTS to 14.04

Also, unless you want to try to install the latest devel. version, I would suggest you to drop the "-d" and simply run sudo do-release-upgrade.


How do I install a Windows program in an ISO into Wine?

Create a directory where you will mount the disk, say inside /media/

sudo mkdir /media/x

now mount the iso using mount command like

sudo mount -o loop <PATH_ISO>  /media/x

for unmount use umount


Run command after login from specific tty

Use a simple condition to determine which tty you are logging into:

if [[ "$(tty)" == "/dev/tty1" ]]
 then
  # do whatever you want here
fi

also if you want to your command get run for all users, instead of .profile put it into  /etc/profile.


Failed to connect to lvmetad - Stuck on boot

I had a very similar experience, not sure if it'll help you though. My computer had some updates installed, needed a reboot but hey, nobody got time for that. Well along came a power outage and forced me to reboot. When I turned on my machine, I got just the same message you saw. Crap. I couldn't even get into virtual terminals 1 or 2 either which was really weird. Anyway, I somehow found your post and read that switching the kernel version made everything work. So I went and tried that out and sure enough, what you said applied to me too.

With my primitive knowledge of linux commands, I did get an idea of how to fix this. So I rebooted into the newest kernel, then switched to the virtual terminal ctrl+alt+f3 <- had to use the third because 1 and 2 weren't working. From here I ran sudo apt-get update && sudo apt-get upgrade -y to get everything up to date. Then ran sudo apt-get autoremove to remove the older kernels. Then I re-installed the current kernel (get the version from uname -r) and then I ran sudo apt-get install --reinstall linux-image-4.13.0-32-generic to reinstall the current kernel and rerun all the building of things that might not have been run since I didn't switch to this kernel properly. Finally, I restarted again.

After the restart I was having the same problem still. Welp, maybe it has to do with my graphics drivers? So I went ahead and purged my nvidia drivers sudo apt-get purge nvidia-* and reinstalled the drivers sudo apt-get install nvidia-387 ~ Granted, I don't know what version of their driver I should be using, nvidia afik doesn't have just a standard package that you can install that follows the latest - but this one installed just fine for me... After that super slow install, I restarted again.

And my computer came back to life. Woohoo. I genuinely hope this helps someone. It took me 4 hours of frustrated pounding to get my desktop back and I really hope I can save someone else from that. Thanks for your post and your update, you gave me the lead that I needed to solve this for myself.


MariaDB won't start after upgrade to Ubuntu 16.04

After several failed tries involving apparmor configuration, editing
/lib/systemd/system/mariadb.service and /etc/mysql/my.cnf to set the datadir, which failed, I went on a different approach.

Stopped the service (if started): sudo service mysqld stop
Purged the installation apt-get purge mysqld*
I removed everything involving mysql and mariadb (searched /etc, /var for them). You may want to back them up if you think you may need them for reference in the future.

mysql and mariadb configuration in /etc/systemd/system
mysql profile in /etc/apparmor.d
dir /etc/mysql
the symlink I had for mysql in /var/lib (my data is safe on /home/db/mysql). Skip this if your data is in /var/lib/mysql

Reinstalled sudo apt-get install mariadb-server
Renamed the /var/lib/mysql to /var/lib/mysql.bk and created symlink for /home/db/mysql to /var/lib/mysql
Set ownership to the symlink and /home/db/mysql for mysql:mysql

All works on reboot and it doesn't die anymore.

I can start and stop the service with sudo /etc/init.d/mysql start sudo /etc/init.d/mysql stop

I guess the migration to systemd caused all this trouble. Maybe using the old init.d scripts is not the best way to do things, but it's the only way I found to keep MariaDB running after reboot, otherwise it kept crashing because of

kernel: [ 2336.792423] audit: type=1400 audit(1470265086.730:518): apparmor="DENIED" operation="sendmsg" info="Failed name lookup - disconnected path" error=-13 profile="/usr/sbin/mysqld" name="run/systemd/notify" pid=11850 comm="mysqld" requested_mask="w" denied_mask="w" fsuid=117 ouid=0

Since some of the clients I was using gave Failed to connect to database: Error: Can't connect to local MySQL server through socket '/tmp/mysql.sock' (2), I had to create a symlink sudo ln -s /var/run/mysqld/mysqld.sock /tmp/mysql.sock. The link got removed on reboot though...

Therefore, I had to edit the /etc/mysql/my.cnf and /etc/mysql/debian.cnf files to set socket   = /tmp/mysql.sock. The debian.cnf says DO NOT TOUCH!, but I took the chances, since my.cnf says Remember to edit /etc/mysql/debian.cnf when changing the socket location. Note: a reboot was required to see the changes applied. Only restarting the service didn't apply them. Maybe some daemon should have been reloaded, but didn't know which one.


How do I get Tegaki to work as a keyboard input on Ubuntu 18.04.3 LTS?

Install fcitx and then the japanese input system mozc. one of mozc tools settings is for handwriting, it uses tegaki.


Vidalia was unable to start Tor. permission problem

How did you go about "installing" tor / vidalia? I'd recommend these steps:

Download the Tor Browser Bundle
learn How to verify signatures for packages
and thoroughly study Want Tor to really work?
Further, note that Torbutton is deprecated/dead.


How you compile a program from a source

open a console
use the command cd to navigate to the correct folder. If there is a README file with installation instructions, use that instead.
extract the files with one of the commands

If it's tar.gz use tar xvzf PACKAGENAME.tar.gz
if it's a tar.bz2 use tar xvjf PACKAGENAME.tar.bz2

./configure
make
sudo make install

This is taken from this source.


Ubuntu 18.10 gnome extensions stop working after hibernation

As per GNOME's security policy, whenever you hibernate or suspend or even lock your screen, all of your extensions get disabled automatically until you get back in, and only then the extensions get re-enabled. It seems in your case somehow the re-enabling process is not getting executed properly. This should be considered a bug, consider reporting at launchpad.net.

Also as a workaround after getting back from hibernation / suspension / lock-screen, restart GNOME shell once by pressing Alt+F2 then typing r, and finally pressing Enter, the extensions should start work again.


gtk-recordmydesktop is not working anymore in ubuntu 18.04

It looks like last release of gtk-recordmydesktop was made in 2008. You may want to try out SimpleScreenRecorder that seems to offer similar easy to use interface.

You can install it with this command

sudo apt install simplescreenrecorder

https://sourceforge.net/projects/recordmydesktop/files/gtk-recordMyDesktop/

http://www.maartenbaert.be/simplescreenrecorder/


another /lib question: domain wide lib folder

I would not recommend that. You're much better off looking into config management like Puppet or Chef (or any of the others, whichever suits you best) to manage it best. You can then pin certain packages pretty easily to versions and ensure that all machines are running all the same packages etc.

You should be able to get yourself in a position where all the 12.04 servers have the same version and all the 14.04 servers have the same version fairly easily also through regular updates. You may need to (carefully) apt-get dist-upgrade some of the machines to get to the same point release. Some may be 14.04.3 others may be 14.04.4. If they are all up to date and the same release version you shouldn't see much variance in package versions at all.


I kind of figured out it wasn't an Ubuntu issue but a Theano one, as I installed CUDA again from the source I mentioned in the OP and I managed to correctly run sample data from the CUDA package provided by NVIDIA, ruling out (in my unexperienced opinion) an integration problem between NVIDIA-cuda-toolkit and the NVIDIA-drivers.

For those (in the future) having the same issue as me, the problem seems to be in the theano.sandbox.cuda module, when __init__.py tries to compile cuda_ndarray.cu in lines 168-175 (I believe, since I modified the file just slightly), when that file calls the function compiler.compile_str(...), which is a file I believe was created by Theano's development team. NVCC runs correctly but there are problems compiling cuda_ndarray.

So I'll mark this question as answered as soon as askubuntu lets me.


Internet not working when iptables INPUT rule = DROP

For your use case example, ping 1.1.1.1, 2 packets are involved per ping. An outgoing ICMP echo request packet and an incoming ICMP echo reply packet, at least if the destination does reply.

The succinct answer to your first question: "Why do I not have an internet when I forbid all incoming traffic?" is because you denied all incoming traffic, so nobody can respond.

Now, for your second question: "How to fix?":

iptables is capable of looking at a packet and determining if it is a reply or somehow RELATED to a previous outgoing, locally initiated, packet. Therefore you can make an iptables rule to allow this type of packet to get past the INPUT chain DROP default packet handler:

sudo iptables -A INPUT -i enp3s0 -d 109.108.244.148 -m state --state ESTABLISHED,RELATED -j ACCEPT

Note: you should also allow the local network connection, as sometimes internal tasks communicate via this interface:

sudo iptables -A INPUT -i lo -j ACCEPT

Below is an example implementation of this answer, using your example pings:

doug@s18:~$ ping -c 2 1.1.1.1
PING 1.1.1.1 (1.1.1.1) 56(84) bytes of data.
64 bytes from 1.1.1.1: icmp_seq=1 ttl=60 time=24.6 ms
64 bytes from 1.1.1.1: icmp_seq=2 ttl=60 time=25.9 ms

--- 1.1.1.1 ping statistics ---
2 packets transmitted, 2 received, 0% packet loss, time 1002ms
rtt min/avg/max/mdev = 24.597/25.260/25.923/0.663 ms

doug@s18:~$ sudo iptables -P INPUT DROP
doug@s18:~$ ping -c 2 1.1.1.1
PING 1.1.1.1 (1.1.1.1) 56(84) bytes of data.

--- 1.1.1.1 ping statistics ---
2 packets transmitted, 0 received, 100% packet loss, time 1061ms

doug@s18:~$ sudo iptables -A INPUT -i enp3s0 -d 192.168.111.122 -m state --state ESTABLISHED,RELATED -j ACCEPT
doug@s18:~$ ping -c 2 1.1.1.1
PING 1.1.1.1 (1.1.1.1) 56(84) bytes of data.
64 bytes from 1.1.1.1: icmp_seq=1 ttl=60 time=25.1 ms
64 bytes from 1.1.1.1: icmp_seq=2 ttl=60 time=24.9 ms

--- 1.1.1.1 ping statistics ---
2 packets transmitted, 2 received, 0% packet loss, time 1001ms
rtt min/avg/max/mdev = 24.911/25.012/25.113/0.101 ms


XRDP: How to get remote terminal services without local user login?

Perhaps I am misunderstanding your question, but I created an Ubuntu 10.10 virtual machine, and simply installed XRDP with the command sudo apt-get install xrdp. Once installed, it correctly set up the service to autostart, so I simply powered on the machine, didn't log into the local console, and I was able to initiate an RDP connection to the machine.

Did you install XRDP from the package manager as I outlined above, or did you install it some other way (such as building from source)?

Also, please remember that Ubuntu 10.10 will be end-of-life very soon and all updates and support will end.


how to fix in Ubuntu16.04 temporary solution for set monitor resolution

Some of your commands are a little old or unnecessary. Here's a slightly updated version (note that I'm using the name 'custom' to illustrate that the mode name can be anything you want). Save it to a bash script:

#!/usr/bin/env bash
cvt 1366 768
xrandr --newmode "custom" 85.25 1368 1440 1576 1784 768 771 781 798 -hsync +vsync
xrandr --addmode VGA1 custom
xrandr --output VGA1 --mode custom

As for it being slow, it could be due to something trying to load early, xrandr scripts can cause problems if that happens.

Make sure your bash script is at least executable. No harm in making it readable by everyone too, so chmod 755 on the script file.

Bear in mind you may need to access the terminal in recovery mode to undo your changes/comment out problematic lines if anything goes wrong.

Using Startup Applications:

Add your script to Startup Applications the same way you added your concatenated commands. If the above script doesn't solve your problem try adding sleep 10 just below #!/bin/bash.

The higher the sleep value the more guarantee you have that xrandr won't start early, but it may delay your monitors appearing properly - play around with the time so you get it how you want it.

Using LightDM (Edit - this may not work in 16.x due to Unity jumping in and resetting changes made in your script):

There should also be a way to get execute the script using system hooks in LightDM config files; this is probably the 'proper' way of doing things these days.

Go to /usr/share/lightdm/lightdm.conf.d and create a file called monitors.conf.

In there add a seat heading then one or all of the following commands:

[Seat:*]
display-setup-script=/path/to/your/script
greeter-setup-script=/path/to/your/script
session-setup-script=/path/to/your/script

Play around to try and get your desired behaviour. For me, most of the script runs as it's supposed, but the xrandr --output commands don't work. Not sure if it's my setup or they're being fired at the wrong time, from some other posts I've seen it works just fine for other people.

I'll carry on investigating and update if I find a clearer answer.

Having said all that though, Linux Display Managers just aren't that great - startup time can be slow, and performance will probably be worse than Windows.


How can I change the icon size on lubuntu's desktop?

Lubuntu uses the LXDE Desktop Environment which in turns makes use of PCManFM to manage the desktop. Therefore in order to change the size of the desktop icons you need to access PCManFM Preferences and set the desired icon size.

Open PCManFM and Go to Menu → Edit → Preferences → Display tab

Enjoy!


Only creates the added folder, but no files are uploaded in Windows

I assume you are talking about Ubuntu One.

Have you visited the web interface https://one.ubuntu.com/files

If you try clicking on the folder name, it should open it (and expand its contents)

Edit 1:
Just as a side note:
You can only sync folders inside your home folder. This applies to both Windows and Ubuntu clients.

Edit 2: Are you running it across a proxy server?

Edit 3: Can you post the contents of AppData\Local\xdg\cache\ubuntuone\log please


Try going into "select boot device" instead of BIOS. It should be F5, F8 or F12 (it depends on the manufacturer)

If you can see the CD/DVD device among the options, then it must be something wrong with your DVD (e.a. it's not bootable, or some files are corrupt)

If you don't see the CD/DVD device, check your cables or maybe switch SATA or IDE slots on motherboard...


It seems, You can't get PTBatcher command line tool anymore. That tool is declared obsolete and removed since version 2014. See the release note for version 2014 here However, some new command line alternatives have been added. Those are pto_mask, pto_template, pto_move etc.

You can use PTBatcherGUI tool instead. It has BatchProcessing support.

You can get that installing hugin. Do it in a terminal with the command

sudo apt install hugin

But the package in Ubuntu repository for Xenial is old (version 2015). You can get a more recent version by using hugin/hugin-builds PPA. From PPA description page, the builds are fairly stable.

sudo add-apt-repository ppa:hugin/hugin-builds
sudo apt-get update
sudo apt-get install hugin

You can also use some of the techniques described in these pages for command line processing

Panotools Wiki
Hugin Batch Processing


adding zero to specific location of file names

Use this command

rename -n -v 's/(.{4})(.*)/${1}0${2}/' *

See if the result is what you want, remove -n and -v options.

Explanation:

take this simple command:

rename 's/pattern/result/' filename(s)

Pattern can be regex. So, we can take different part of the text (which is the filename). If you don't understand it, google for regex.

So in the command I suggest, in pattern, it divide the filename into two parts: first part which is first four characters and the second part is the rest.

Now in the result part, we paste first part, add one 0 and then add the second part. As simple as this.

If you can make proper regex, you can easily do bulk rename.


Caps Lock to RIGHT Control (It is important to be the right one)

Use

xev

And press the key Right Control. You will get an event like this:

KeyPress event, serial 36, synthetic NO, window 0x4200001,
root 0x266, subw 0x0, time 253995826, (1344,552), root:(1410,604),
state 0x10, keycode 105 (keysym 0xffe4, Control_R), same_screen YES,
XLookupString gives 0 bytes:
XmbLookupString gives 0 bytes:
XFilterEvent returns: False

Remember the keycode, in my case 105.

Create a script, for example /home/user/xmodmap.sh with the following:

#!/bin/bash
xmodmap -e "keycode 105 = Caps_Lock"

Now give permissions to the script with:

sudo chmod 755 /home/user/xmodmap.sh

And add it to be run when your Ubuntu starts going to System -> Preferences -> Startup Applications and creating a new entry with the command:

/bin/bash -c "sleep 5 && /home/user/xmodmap.sh"


Dolphin in KDE5 missing some context menu actions (serviceType "KonqPopupMenu/Plugin" not found)

Easy to workaround:

mkdir -p ~/.local/share/kservicetypes5/
cp /usr/share/kde4/servicetypes/konqpopupmenuplugin.desktop ~/.local/share/kservicetypes5/

And restart Dolphin. If restarting doesn't help, try regenerating the configuration cache:

kbuildsycoca5

Source: https://chakraos.org/forum/viewtopic.php?id=14189


Install CoreCtrl (GPU GUI) on Ubuntu 20.04

The website has the instructions right on the page, close to the end of page:

Ubuntu
Add the Ernst ppa-mesarc PPA.
Then run:
sudo apt install corectrl

Focal is supported, so this is literally everything you need.


Move system to external hdd, keep /home internal

Well, if you want to, you can move your system to another hard drive - all you need to do is, as root, to copy all the root-level directories to the new location making sure you keep permissions. You should not copy /dev/, /proc and /sys because they're just mount-points for kernel filesystems, just create empty directories. Then you just re-install the bootloader. Ahh, and edit the /etc/fstab on the new partition. Easy-peasy if you have basic understanding of how the system works.

However, the resulting system will be quite fragile I think - it'll only boot if your external drive is plugged in (and also subject to the machine being able to boot from an external USB hard drive at all)

What I would do is to keep the system as it is, but off-load some directories from your home directory to the external drive. Say, if you have a lot of videos in your Videos folder, you can move them all to a folder on your external hard drive and then replace your original Videos folder with a symlink to the new location.

This way you'll be able to better utilize both hard drives and your machine won't be totally dependent on the external drive being plugged in.

What I would also do is to throw away the HDD enclosure, open the computer case and attach the second HDD normally with an IDE/SATA cable - this is much more reliable than the whole external USB thing. Then you'll have two internal drives. If you go this route and you're feeling adventurous, you can experiment with setting up LVM, which would allow you to have a continuous 140Gb partition and do not worry about balancing your files between two drives.


Is a port of an existing program eligible for the App Showdown?

You can reuse small bits of old code, but the requirement is that your app must be created from scratch, so a GTK2 port to GTK3 would not qualify, as it would give you an unfair advantage over other participants who are starting something new.

That said, there are lots of good ideas for new apps, feel free to pick one up!


How to avoid duplicated notifications from gnome MPlayer

This is actually a confirmed bug that I reported ashttps://bugs.launchpad.net/ubuntu/+source/gnome-mplayer/+bug/1434347

I don't currently know of any workarounds other than focusing the window when gnome-mplayer plays songs.


Install Oracle java 7 along with Openjdk 1.8 in ubuntu 18.04

Unfortunately, the oracle java installers by webupd8team have been discontinued as you can read here(java 8) and here(java 6 and 7).

Back in the day, the java binaries were available for download for free without an account. Webupd8team's java installers downloaded them from oracle's server in the background.

Recently, oracle changed their license and now you need to login to an oracle account to download java 8. Therefore, the installer doesn't work anymore.

Java 6 and 7 are only available for oracle customers now. If you have an oracle support account (which is not free), please ask the oracle support how to obtain and install java 7.


Disable automatic iPod scrobbling through rhythmbox

I don't know how often you plug in your iPod, but one option is to untick "Submit listening data" just before you plug it in and turn it on again right after. I'm fairly certain your iPod will won't try to scrobble again if that is turned off. All those scrobbles will be gone from the iPod as well though.


starting my c++ console program with startup applications

dsstorefile1 your comment lead to a working solution. Thank you for posting.

[Desktop Entry]
Version=1.0
Name=Test
Comment=Test the terminal running a command inside it
Exec=bash -c '/home/mig/Documents/Cpp/MyCode/TXTGUI/txtgui.o'
Icon=utilities-terminal
Terminal=true
Type=Application
Categories=Application;


Ubuntu 18.04: how do I enable the Japanese keyboard and conversion to Hiragana?

Using Gnome/Ubuntu 18.04:

Install Japanese language for your SO:
References in Writing Japanese with Ubuntu 18.04 LTS Bionic Beaver and Japanese Input.
The path to install:
System Settings > Region & Language > Manage Installed Languages > Language Support > Install / Remove Languages > Installed Languages and check Japanese. Click Apply and log out.

Install at least one of the below IMF (ibus comes by default on Ubuntu):
sudo apt install ibus
sudo apt install fcitx

Install at least one IME for your IMF (mozc comes by default on Ubuntu after install the japanese language):
If you chose ibus run one of these commands:
sudo apt install ibus-mozc
sudo apt install ibus-anthy
sudo apt install ibus-kkc
sudo apt install ibus-skk

If you chose fcitx run one of these commands:
sudo apt install fcitx-mozc
sudo apt install fcitx-anthy
sudo apt install fcitx-kkc
sudo apt install fcitx-skk

After all of that, select the input method (IME) from your language selector on icon tray (IMF).
The IMF (ibus) on Gnome Status Menu (is represented by a language icon selector).
All selectable IMEs (portuguese, spanish, english, japanese-mozc, japanese-anthy, japanese-kkc, japanese-skk) from this IMF (ibus).

Using the Gnome shortcut to fast-switch between IMEs: hold Super and press Space.


How to create a .deb file just for copying certain icons and one javascript file to particular locations?

Try using a GUI software instead, like Deb-creator, here are some screenshots of the software:

Contents of output window

Deb-Creators user interface outlining key features


Ubuntu thinks it is the modem. Try to blacklist option driver. The uvcvideo should be loaded automatically in this case on the next boot.


How do I set up a mail server on a Linode VPS?

Running a mailserver is not a install-and-go process. Over time you'll want to deal with spam and viruses and people trying to hack your machine via the mail servers. Despite hosting dozens of domains, I don't host email at all. I've farmed all of that off to Google Mail and I recommend everybody does something similar.

Life is too short to worry about your email server twice a day.

But assuming you still want to install a mail server, you'll want to follow the proper guide: https://help.ubuntu.com/community/MailServer

The short version is:

Install MTA (eg: Postfix) and configure it to allow mail in for your domain
Install MDA (eg: Dovecot) to allow people to collect their mail


How can I create a bootable Ubuntu LiveUSB using Windows 7?

I don't think you can download "direct to USB" but you can download the ISO then download a simple exe which will create the bootable USB using the ISO.  I always use the tools found at http://www.pendrivelinux.com/
Specifically if you just want to put one ISO one a USB you will want "Universal USB Installer". Very fast, very easy, no need to install anything.


You need to use sudo to run apt commands to allow permission.

For example, you should run this instead:

sudo apt update && sudo apt -y install ca-certificates wget net-tools
wget -qO - https://as-repository.openvpn.net/as-repo-public.gpg | sudo apt-key add -

Additionally, you will encounter a permission issue when you try to use sudo with echo to write files that need extra permission to write. You can circumvent this by piping echo to sudo tee instead, like this:

echo "deb http://as-repository.openvpn.net/as/debian bionic main" | sudo tee -a /etc/apt/sources.list.d/openvpn-as-repo.list


Where can I download Quantal 12.10 Alpha 2?

Alpha-2 version of Quantal will be releases TODAY (28 June 2012). It's not downloadable yet, but it should be in the next hours at the specified addresses. Probably the wiki has been updated before the ISOs are really added to ftp.


Cannot normally boot Tails from USB on Clevo N857EK1

Check if you can boot with this usb in other PC, then you can know if is the software/usb or the BIOS.
And if there are some more options in your BIOS like 'safe boot' disable it, it is intended to only allow to boot from 'known' images (windows)
But really, try to see if you can boot with this USB somewhere else, then you know is the usb port or the BIOs config in your PC


How do I change the keyboard layout used when entering in my sda_crypt password?

On an Ubuntu 18.04 machine, I did:

dpkg-reconfigure keyboard-configuration

with root permissions. That regenerated the initramfs automatically, and I was able to use the new keyboard layout to type the key on the next bootup.


Ubuntu 12.04 Business Desktop Install file too large - 834Mb

You can use the Business Edition .iso file you downloaded with Startup Disk Creator, and make a bootable usb thumb drive version of the business edition, or burn the ISO to a DVD instead. You will more than likely need to go into your BIOS and change your boot order, or use the boot menu option (to pick a temporary boot device) if your BIOS supports it. Hope this helps!


Make a USB installation disk the usual way. Then connect both it and your external disk to one computer. Boot the install disk and install to the other disk.


You must run apt-get as root via sudo, not as another user.

Many of the actual directories maintained by apt for package information need root to maintained; as well, if a package is installing to /bin or similar it needs root.

Sudoers privilege only permits a user that is logged in to use sudo and to define what they can or cannot do with the sudo command. It does not grant the privileges that apt-get needs to operate as that needs the effective root permissions that just running sudo apt-get would provide.  Therefore if user1 is running sudo apt-get they would be allowed to.  If user2 is not in sudoers they can't execute that command. (But could if they were in sudoers).

To do what you are trying to do would need two sudo commands chained (untested by the way):

sudo -u user2 sudo apt-get -y install PACKAGENAME

Note though this is not typically how things should be run and that this could lead to possibly undefined behavior or weirdness.

user2 would also need to have permissions to execute as root, which may or may not be the case in the sudoers configuration.


What programs can i use to connect my android phone to Ubuntu 20.10

Without knowing what you want to achieve through connecting the Android and Ubuntu devices and also without knowing why you think KDEConnect-based solutions are "stupid", I'll present the following two file sharing options.

https://snapdrop.net/ can share files between devices and you don't even need to install anything.

https://trebleshot.monora.org/ can share files between Android and Linux

Source: https://linuxhint.com/wireless_file_sharing_apps_linux_android/
Hope this helps.

Update (Jan 07 2021):
I've also discovered scrcpy

https://github.com/Genymobile/scrcpy

which lets you display your phone's screen and control your device.


Remove Control Return and merge lines in one text file and limit number of characters

head -c 32 input.txt | tr '\n' ' ' > output.txt

head -c 32 discards all but the first 32 bytes.
tr '\n' ' ' replaces all newline characters with space characters.

If you want to limit characters instead of bytes in case of multi-byte character encodings you can use grep instead:

tr '\n' ' ' < input.txt | grep -oEe '^.{,32}' > output.txt


Windows troubleshooting menu after dual boot menu

This is likely caused by the Ubiquity (the Xunbuntu installer) shrinking of the Windows partition.

You shouldn't worry about it.


Installing dependencies from DEBs in current directory

Install all DEB files at once. Open a terminal and run  (Certainly you have to replace the filenames with the correct names.) e.g.:

sudo dpkg -i lyx-common.deb lyx.deb

or

sudo dpkg -i *.deb

to install really all files at once.


Is it possible to import gconf xml into dconf? (generally or just for gnome-terminal)

By using gconf-editor and dconf-editor. Open both editors and manually update all settings you want. Since you say that you want migrate only some settings this might be your only option.
By writing small application / script that reads settings from gconf and then sets them in dconf.


You can look at who is listening to the FTP port.

$ grep ftp /etc/services
ftp-data    20/tcp
ftp     21/tcp
...<snip>...
# netstat lists all open ports, first egrep picks out servers, second picks ftp servers
$ sudo netstat -nape --inet | egrep '0\.0\.0\.0:\*' | egrep -w '20|21'


Ubuntu 18.10 and 19.04 - Hyphen in Hostname?

The issue was that /etc/cloud/cloud.cfg had preserve_hostname: false and needed to be changed to preserve_hostname: true.


Ubuntu doesn't boot properly after forced shutdown

Lets first check your file system for errors.

For 17.10 or older...

boot to the GRUB menu
choose Advanced Options
choose Recovery mode
choose Root access
at the # prompt, type sudo fsck -f /
repeat the fsck command if there were errors
type reboot

For 18.04 or newer...

boot to a Ubuntu Live DVD/USB
open a terminal window
type sudo fdisk -l
identify the /dev/XXXX device name for your "Linux Filesystem"
type sudo fsck -f /dev/XXXX # replacing XXXX with the number you found earlier
repeat the fsck command if there were errors
type reboot

Lets check the boot trail...

boot to the GRUB menu
select the normal default boot choice
hit the e key to edit
find the string "quiet splash" and change it to ""
hit control+x, or F10 to continue the boot
observe the screen and note where it stops/hangs
report back


If you want Skype to start when you login, you need to add it to "Startup Applications".

Open the Dash (hit the Super key, also called the Windows key)

Type Startup Applications.  It will look like this:

Open "Startup Aplications" and click "Add".

A dialog will open with three fields: Name, Command and Comment.  Both Name and Comment are optional, the Command field tells Ubuntu what command to run when you login.

In the Command field put skype (all lowercase).

Click "Add" again.

Skype will now start when you login.
Once you log-in to your Skype account, make sure that you go into Options --> General, and check, Start Skype minimized in the system tray as shown below, that way Skype windows won't pop up on the screen once logged in.


Try installing from this PPA:

ppa:guilhem-fr/swftools

and report back of any dependence issues.


Warnings:

Software in the unstable repo, are under active development with a minimal of testing. Thus, their use can cause stability issues. The software may also depend on other packages that are only available in the unstable repo.
Although Debian and Ubuntu are both debian linux systems, The two have minor differences in kernel settings and some packages. Thus, cross-installing packages could cause stability issues and hard to trace problems.
If you understand these risks, Debian packages can be installed on Ubuntu provided you can meet the dependencies.

Installing

Download the packages from Debian.
Open a terminal and navigate to the folder where you downloaded the packages.
Run sudo dpkg -i <file name> to install the packages. Start with the dependencies first if there are any needed.


Can I develop Unity while running Maverick (10.10)? Or do I have to run Natty?

If you're developing a Unity Place then you can do that one either 10.10 or 11.04.

However for most Unity development you need to be on 11.04 as it's changed significantly from 10.10. You can either do that with virtualization or creating a separate USB stick.

We have set aside a bunch of "bitesize" bugs for people to get started hacking on Unity, and we'll probably have some IRC tutorial sessions too:

https://wiki.ubuntu.com/Unity/Bitesize
https://wiki.ubuntu.com/UbuntuDeveloperWeek


Ok, i found the solution here: http://ubuntuhandbook.org/index.php/2020/01/login-loop-auto-login-enabled-in-ubuntu-19-10-with-nvidia-driver/


if you excute the command sudo update-grub it would update your grub boot list to point to the 3.16.0-35 kernel in the first place, hence it will be the default kernel.

what you have is a case where you booted in using 3.13 instead of the "latest on your machine" kernel which is 3.16.0-24


As with almost everything in a virtual machine, the graphics card is virtual too.  You can still access the hardware graphics acceleration, but it is to a limited extent only (one of the limitations is the max of 128 MB RAM.)

To make use of those 3D features available choose 3D acceleration in the Display settings of your virtual machine. In addition you will also need the Guest Additions to provide a driver for the virtual graphics adapter.

For the experimental feature of passing a PCI card to Virtual Box (which may work with few graphic cards only) see:

How to use NVIDIA GeForce M310 on Ubuntu 12.10 running as guest in VirtualBox?


What are the different uses for apt-build optimization levels?

I'd say this hardly depends on the code you are compiling.
Whatever you choose there, will end up as flag for GCC, so following GCC's manpage:

-O, -O1. With -O the compiler tries to reduce code size and execution time, without performing any optimizations that take a great deal of compilation time.
-O2 Optimize even more.  GCC performs nearly all supported optimizations that do not involve a space-speed tradeoff.  As compared to -O, this option increases both compilation time and the performance of the generated code.
-O3 Optimize yet more.  -O3 turns on all optimizations specified by -O2 and also turns on the -finline-functions, -funswitch-loops, -fpredictive-commoning, -fgcse-after-reload, -ftree-vectorize and -fipa-cp-clone options.

You can run
gcc -O<1-3> -Q --help=optimizers

to see the set of activated optimization methods for each optimization level.
The more aggressive they are, the bigger the risk that the compiler will screw something up (should not happen, and I don't know how likely something will happen, but if you want to be on the safe side, I suggest you follow apt-build's recommendation not to use -O3/Strong).


Tried to remove lamp-server, now my X won't work

I solved it. I didn't find anything while searching for a solution, but I found more information about the problem:

These are the packages that are uninstalled when you try to remove lamp-server the way I did:

apache2 apache2-mpm-prefork apache2-utils apache2.2-bin apache2.2-common bluez-cups cups cups-driver-gutenprint cups-pdf foo2zjs gdm gdm-guest-session gecko-mediaplayer gnome-applets gnome-control-center gnome-media gnome-mplayer gnome-panel gnome-session gnome-settings-daemon goldendict gstreamer0.10-pulseaudio hpijs hplip hplip-cups indicator-applet indicator-applet-appmenu indicator-applet-complete indicator-sound libapache2-mod-php5 libapr1 libaprutil1 libaprutil1-dbd-sqlite3 libaprutil1-ldap libasound2-plugins libcanberra-pulse libdbd-mysql-perl libdbi-perl libhpmud0 libhtml-template-perl libmysqlclient16 libnet-daemon-perl libphonon4 libplrpc-perl libpulse-browse0 libpulse-mainloop-glib0 libpulse0 libqtwebkit4 libsane-hpaio libsdl1.2debian-pulseaudio libsnmp15 libwrap0 mplayer mysql-client-5.1 mysql-client-core-5.1 mysql-common mysql-server mysql-server-5.1 mysql-server-core-5.1 phonon phonon-backend-gstreamer php5-cli php5-common php5-mysql pulseaudio pulseaudio-esound-compat pulseaudio-module-bluetooth pulseaudio-module-gconf pulseaudio-module-x11 pulseaudio-module-zeroconf pulseaudio-utils pxljr python-speechd speech-dispatcher splix ssl-cert tcpd vlc-plugin-pulse

So this is what solved my problem:

sudo apt-get install apache2 apache2-mpm-prefork apache2-utils apache2.2-bin apache2.2-common bluez-cups cups cups-driver-gutenprint cups-pdf foo2zjs gdm gdm-guest-session gecko-mediaplayer gnome-applets gnome-control-center gnome-media gnome-mplayer gnome-panel gnome-session gnome-settings-daemon goldendict gstreamer0.10-pulseaudio hpijs hplip hplip-cups indicator-applet indicator-applet-appmenu indicator-applet-complete indicator-sound libapache2-mod-php5 libapr1 libaprutil1 libaprutil1-dbd-sqlite3 libaprutil1-ldap libasound2-plugins libcanberra-pulse libdbd-mysql-perl libdbi-perl libhpmud0 libhtml-template-perl libmysqlclient16 libnet-daemon-perl libphonon4 libplrpc-perl libpulse-browse0 libpulse-mainloop-glib0 libpulse0 libqtwebkit4 libsane-hpaio libsdl1.2debian-pulseaudio libsnmp15 libwrap0 mplayer mysql-client-5.1 mysql-client-core-5.1 mysql-common mysql-server mysql-server-5.1 mysql-server-core-5.1 phonon phonon-backend-gstreamer php5-cli php5-common php5-mysql pulseaudio pulseaudio-esound-compat pulseaudio-module-bluetooth pulseaudio-module-gconf pulseaudio-module-x11 pulseaudio-module-zeroconf pulseaudio-utils pxljr python-speechd speech-dispatcher splix ssl-cert tcpd vlc-plugin-pulse


How to force apt to download a specific version of a package from PPA?

The version you want to install was built on that PPA for Oneiric. You have a few options to try and get it working.

Manually add the oneiric version of that PPA then install
regularly.  You would do this by creating a file (
/etc/apt/sources.list.d/libreoffice.list ) and adding a line like

deb http://ppa.launchpad.net/libreoffice/ppa/ubuntu oneiric main

This might not work if libreoffice needs to be built against some
Maverick lib.
You could copy that version of the binary to your own PPA
(launchpad has a copy feature for this) and have it rebuilt for
maverick. This might not work if there are new dependencies that
aren't satisfiable.
You could check the libreoffice website and see if they release a
deb for it, although the version you specify is a release candidate
so it may be more difficult to find there.
You could compile from source


I installed sni-qt and there is no indicator for Skype. How do I fix this?

The solution is to reinstall Skype.

The version of Skype that came with 11.04 will not work in 11.10 to besides, so you will need to remove it, and then install it again (from the software center). After this, Skype will work, and so will the indicator.

How do I install Skype?


Ubuntu consumes more battery's power than Windows 8.1

Windows has power management settings for your cpu set. You can install a cpu governor that will allow you to set the cpu to performance, or powersave:

sudo apt-get update

sudo apt-get install indicator-cpufreq

After installation, press ALT + F2 and type the command

indicator-cpufreq

An icon will appear on your system panel. Click on this icon and make your selection.

There are a few power management tools available to help you control power consumption.

First, laptop-mode-tools:

sudo apt-get update

sudo apt-get install laptop-mode-tools

To use laptop-mode-tools, execute the following command:

gksu lmt-config-gui

Next, an alternative to laptop mode tools is TLP. If you do decide to install TLP, you must first remove laptop-mode-tools as they conflict.

Click here for more information on installing TLP.

Note: if you install TLP, I suggest using the hard drive setting "254" to minimize wear and tear to your hard drive. Also, if you want to use indicator-cpufreq, set the cpu "governor" to "performance". This eliminates scaling from TLP and allows scaling to be controlled by indicator-cpufreq. See here for more info.

here for more info on laptop-mode-tools

The following is for intel users only.

For more control over cpu freq. scaling, you can disable intel pstate. Disabling p-state will offer the options conservative, powersave, ondemand, and performance.

First, open a terminal and execute the following commands:

gksu gedit /etc/default/grub

Now, look for "GRUB_CMDLINE_LINUX_DEFAULT=" and make the line look like this:

GRUB_CMDLINE_LINUX_DEFAULT="quiet splash intel_pstate=disable"

Save the file, exit gedit, and execute the following command:

sudo update-grub

Reboot for the changes to take effect.

click here for benchmarks and statistical use comparison between intel p-state and acpi cpu control including power consumption and performance

intel_pstate at kernel.org

Click here for more info on intel_pstate.

Install thermald:

sudo apt-get install thermald

Reboot for the changes to take effect.

click here for info on thermald


Assuming the figure of 1536kB (1.5MiB) is correct, you'll need to either use some manual alignment options in your partitioning software (GParted, parted, gdisk, etc.) or align on a multiple of both 1MiB (the default with most modern software) and 1.5MiB. Since 3MiB is the minimum value that satisfies both constraints, that's what you should use.

You're right that 1.5MiB is a bizarre value. It's such an odd value, in fact, that I'm a bit suspicious of it, and I'd err on the size of caution by aligning on a 3MiB boundary, or maybe even 6MiB (just in case the true value is 2MiB).

To do this, you need to understand your partitioning software's options. In GParted, you can't set alignment to an arbitrary value, just to none, cylinder, or MiB. Unfortunately, the user interface, although GUI, is a bit unclear:

You'd need to set the space via the "Free Space Preceding" box; but that's the free space between the new partition and the one before it, and where that one ends is unknown -- at least, not from the Create New Partition dialog box. The text-mode parted utility has similar problems.

If your disk should use GPT, I recommend that you use gdisk instead. (If you're booting in BIOS mode and want to use MBR, fdisk gives you more flexibility, but it still can't be set to use arbitrary alignment values, so you'll need to specify you partition start values manually.) You'll have a hard time installing gdisk in the Ubuntu installer, so it's easier to use System Rescue CD or Parted Magic to do the work. You can change the alignment by typing x to enter the experts' menu, using the l (or L) option to set the alignment (which you specify in sectors), and then using 'm' to return to the main menu, from which you can create partitions. It looks something like this:

$ sudo gdisk /dev/sdd
GPT fdisk (gdisk) version 0.8.6

Partition table scan:
  MBR: protective
  BSD: not present
  APM: not present
  GPT: present

Found valid GPT with protective MBR; using GPT.

Command (? for help): x

Expert command (? for help): L
Enter the sector alignment value (1-65536, default = 2048): 6144

Expert command (? for help): m

Command (? for help): n
Partition number (2-128, default 2):
First sector (34-30297182, default = 6144) or {+-}size{KMGTP}:
Last sector (6144-30297182, default = 30297182) or {+-}size{KMGTP}:
Current type is 'Linux filesystem'
Hex code or GUID (L to show codes, Enter = 8300):
Changed type of partition to 'Linux filesystem'

Command (? for help): p
Disk /dev/sdd: 30297216 sectors, 14.4 GiB
Logical sector size: 512 bytes
Disk identifier (GUID): 2E980CFA-8BD4-4D53-BABC-CCEFEFB6B2EF
Partition table holds up to 128 entries
First usable sector is 34, last usable sector is 30297182
Partitions will be aligned on 6144-sector boundaries
Total free space is 1566 sectors (783.0 KiB)

Number  Start (sector)    End (sector)  Size       Code  Name
   1             264            4807   2.2 MiB     EF00  EFI System
   2            6144        30297182   14.4 GiB    8300  Linux filesystem

Command (? for help): w

Final checks complete. About to write GPT data. THIS WILL OVERWRITE EXISTING
PARTITIONS!!

Do you want to proceed? (Y/N): y
OK; writing new GUID partition table (GPT) to /dev/sdd.
The operation has completed successfully.

See the gdisk documentation, and particularly its walkthrough page, for more information on using this program.

Note that gdisk creates or modifies partitions, but it does not create filesystems. Thus, you'll need to either use mkfs on your partitions or let the installer create filesystems on the partitions that you create.


I don't think there is a quick answer to this.  You may be able to hack in a fix (based on your post stating you attempted to create a file to place it there), but in general this appears to be a bug:  https://bugs.launchpad.net/lightread/+bug/1022536

I would go to that bug, mark that it affects you so it gets additional attention, and subscribe to the bug to see if any patches go by that you could test, or if a new release is submitted that fixes the issue.

I don't think this really closes the issue, but an admin may determine that it does.


Can I using default ubuntu 1804's appearance on ubuntu 1604?

Ubuntu 16.04 uses the Unity Desktop (not to be confused with the later Unity game engine on top of the GNOME3 environment.

Ubuntu switched back to the GNOME3 Desktop in fall of 2017. That's why they look different.

How to switch 16.04LTS to use the GNOME3 Desktop?  As per https://thelinuxcode.com/install-gnome-desktop-environment-ubuntu-16-04/ do these commands at a shell prompt in a terminal window:

sudo apt-get update && sudo apt-get dist-upgrade && sudo apt install gnome && sudo reboot

Once the system reboots, you will see your normal login prompt. At the upper right of its dialog box there's an Ubuntu icon in a circle. Click on that and choose a GNOME3 login.

There's more detail at https://www.omgubuntu.co.uk/2016/05/install-gnome-3-20-ubuntu-16-04-lts


How can I connect to my wifi connection if I am unable to find it in the network manager?

You should have listed wireless networks as you can see below

If you have a laptop be sure you have it enabled, some laptops have a hardware switch.

If yo still can't find it, try scanning for Additional drivers:

If you still can't find it, please open you're terminal and enter lspci and post the output here.

The ubuntu guide for this issue is posted on ubuntu forums and you can see it HERE.

Oh and Tom below might be right, maybe the driver just doesn't load... open terminal and try:

  sudo modprobe rt3090sta

And if it works add this diver to your permanent driver list so it loads at start with:

  gksu gedit /etc/modules

and paste rt3090sta at the end of the file and save.
(or just do it with vi, whatever is easier for you)

good luck!


The reason you are not seeing extensions available is that they are for Gnome Shell 3.6 most likely. This was an issue I had when I was running Gnome Shell 3.2 and they moved to the 3.4 version.

The best suggestion is to update Gnome Shell with the Gnome 3 PPA

In terminal:

sudo add-apt-repository ppa:gnome3-team/gnome3
sudo apt-get update
sudo apt-get upgrade

After the upgrade try going to the extension site. You should be all set.

Edit: This will get you to the latest version of Gnome Shell which right now should be 3.6 if I am correct.


Try typing sudo apt remove imagemagick*. This will remove it through command line(you need to open terminal using Ctrl+Alt+T. If this doesn't work, it means that some other package on the system depends on ImageMagick and requires that package to operate correctly. You could try sudo apt-cache rdepends imagemagick* to find out which packages depend on imagemagick and which are preventing it from getting uninstalled.


Did you try the answers in this former post:

How to unmount NFS when server is gone?

I usually do not use static mounts to NFS shares, but rather install autofs and use softlinks like (in your case)

ln -s /net/192.168.1.100/elrudi /home/elrudi/nas

This will mount the share only when used, and umount after a while.


The output of the command is usually not stored anywhere and closing the window is enough. But the command itself is stored: in the shell's history.

To remove it from there it is best to first close all terminal windows. Normally, the history is written to the file ~/.bash_history when the shell ends and directly manipulating the file won't help because it gets overwritten upon shell's exit. There are ways to configure history differently but the easiest is to simply close all terminal windows.

Now open one new terminal window and type

history

or

history | grep echo

Sample output:

...
2007  echo -n "<some text generated by hand from the site's domains>" | sha256sum |cut -c-20
2008  echo -n "secret" | sha256sum |cut -c-20
2009  echo -n "secret"
2010  history

Here you see that not only the "malicious" command is stored but also the "correct" one. You can delete it with

history -d 2009

where 2009 is the number in the first column. Change that appropriately. Now:

history
...
2007  echo -n "<some text generated by hand from the site's domains>" | sha256sum |cut -c-20
2008  echo -n "secret" | sha256sum |cut -c-20
2009  history
2010  history -d 2009
2011  history

For the future you might want to prefix your echo … | sha256sum … with a space, i.e.

_echo -n "secret" | sha256sum |cut -c-20   # The '_' indicates a leading space

This way the complete command won't be recorded in the history. The behaviour is controlled by the HISTCONTROL variable (man bash):

  HISTCONTROL

  A colon-separated  list  of values controlling how commands are saved on
  the history list. If the list of values includes ignorespace, lines
  which begin with a space character are not saved in the history list. A
  value of ignoredups causes lines matching the previous history entry
  to not be saved. A value of ignoreboth is shorthand for ignorespace
  and ignoredups.

You may want to add export HISTCONTROL='ignoreboth' to your ~/.bashrc to achieve that.


How to I get suspend/hibernate working with my proprietary NVIDIA driver?

pm-powersave runs scripts when you suspend/unsuspend. You should check pm-powersave's scripts, and make sure they don't do unsymmetric things to your graphics. I went into more detail in Why is wireless down/strange after switching to battery or closing/opening the lid?


What is the meaning of "ps -aef | grep $(pwd)" command?

From the man page for ps:

   -a              Select all processes except both session leaders (see getsid(2)) and
                   processes not associated with a terminal.

   -f              Do full-format listing. This option can be combined
                   with many other UNIX-style options to add additional
                   columns. It also causes the command arguments to be
                   printed. When used with -L, the NLWP (number of
                   threads) and LWP (thread ID) columns will be added. See
                   the c option, the format keyword args, and the format
                   keyword comm.
   -e              Select all processes. Identical to -A.

grep is used to print lines matching a pattern.

What it does

The command

ps -aef | grep `pwd`

prints out all the lines matching the output of the command pwd(which will be the path your current working directory), from the output of ps -aef.

e.g:

saji@geeklap:~$ pwd
/home/saji

saji@geeklap:~$ ps -aef | grep `pwd`
saji      2854  2814  0 09:51 ?        00:00:00 /usr/bin/ssh-agent /usr/bin/gpg-agent --daemon --sh --write-env-file=/home/saji/.gnupg/gpg-agent-info-geeklap /usr/bin/dbus-launch --exit-with-session gnome-session --session=ubuntu
saji      2855  2814  0 09:51 ?        00:00:00 /usr/bin/gpg-agent --daemon --sh --write-env-file=/home/saji/.gnupg/gpg-agent-info-geeklap /usr/bin/dbus-launch --exit-with-session gnome-session --session=ubuntu
saji      2879     1  0 09:51 ?        00:00:00 /usr/lib/gvfs//gvfs-fuse-daemon -f /home/saji/.gvfs
saji     14242 14148  0 15:26 pts/7    00:00:00 grep --color=auto /home/saji

As you can see the output shows the lines matching my current working directory, which is /home/saji.

Background info:
If a command is in $(...) or ..., then the command is run and the output (what is printed to the screen) is caught and substituted to where the original $() or `` string was. So the actual command run is grep pwd.

For more information refer this link.(Thanks to @minerz029 for this information).

Do check out the following link for a detailed technical answer from the man pages itself:

http://explainshell.com/explain?cmd=ps+-aef+|+grep+%60pwd%60


Mygica t119 DVB-T USB TV Stick on Ubuntu 14.04

With Kaffeine player it worked instantly.

Open Kaffeine
configure Television settings --> General Options--> click "updata scan data over internet"
configure Television settings --> Device1 --> selected source to "autoscan"
In Television --> channels --> StartScan


Cannot remove local DNS servers and domain

If you are using netplan, it automatically configures your network interfaces including the resolv.conf.

You can update your resolv.conf permanently by updating /etc/resolvconf/resolv.conf.d/head and restarting resolvconf service.

You can check the link for more details.


Please read this.
Quoting from there:

September 2015
In September 2015 (Chrome 45) we will remove the override and NPAPI support will be permanently removed from Chrome. Installed extensions that require NPAPI plugins will no longer be able to load those plugins.

The same link also provides "Alternatives to NPAPI" which may offer some guidance.


convert txt file to csv seperated with tabs

Ok, so you need to replace the first two and the last space in every line with a comma. You can't just replace every space, because the 3rd field may contain spaces itself. You can do this with regular expression replacement. Here's a sed script/command, that works:

sed -re 's/^(\S*) (\S*) (.*) (\S+)\s*$/\1,\2,\3,\4/' in.txt > out.csv

With the above example this returns:

Account,Units,Description,Delta
2281,19,Toshiba PX-1982GRSUB,0
9618,200,HP MX19942-228b,-25
19246,4,CompuCom HD300g Hard Drive,4

This is still quite fragile with handling empty fields and breaks entirely, if columns other than the 3rd contain spaces. It's very easy to introduce such malformed data if it is formatted manually as done by your boss. You should suggest to him to switch to a more robust table format (e. g. proper CSV & Co.) and editor (common spread sheet tools can manipulate CSV quite well and flexibly, e. g. LibreOffice/OpenOffice Calc, Microsoft Excel and Google Docs).


Time limit when building source packages at launchpad

Launchpad Help did not turn up anything useful for "timeout", but there is an old question which mentions a build of 9 hours, so it's probably at least that much:

  28/03/2010 - took 9 hrs
  (https://edge.launchpad.net/~yade-users/+archive/ppa/+build/1585814),
  although the amd64 build failed as per usual.

Note that builds can also timeout if there's no output for 150 minutes, and this can't be changed:

  We can't increase the timeout. If the test suite really does take more
  than 2.5 hours, you'll need to increase the verbosity of the output so
  the builder can see that something is still happening.


Seems like ubuntu's public keys were deleted by your system. I think you can open the program "software & updates" and goto "Ubuntu software", uncheck and check all of the checkboxes and try again. if it dosent work comment on this que and I'll be happy to help :)
Edit: it seems like it wants some packages to be re-installed. can you open a terminal and type these cmds:
sudo apt upgrade | grep error
I know they'll be a error. please post back the error :)
Edit: final fix: https://linuxconfig.org/ubuntu-20-04-gpg-error-the-following-signatures-couldn-t-be-verified


From Germar (Dev on Back in Time):

Your backup is encrypted with encfs. You need to mount the encrypted files manually to be able to copy your config.

Open a Terminal and type:

  mkdir ~/mnt
  encfs "/media/<YOUR_USER>/SENTINEL/Ubuntu Backup" ~/mnt

It will ask for your password. Now start BiT. It will ask to restore your config and should find it in ~/mnt automatically. Restore the config, close BiT and unmount encfs with fusermount -u ~/mnt. Finally you can start BiT again and restore all your files.

Some Notes:

--SENTINEL, is the name of my external hard drive, and the folder Ubuntu Backup is the folder where the encrypted/compressed files are stored.

--Sourced from a conversation I had with Germar on the Back in Time Issues Page


Should I down-grade the version of ubuntu on my computer (12.04)?

First read this: UsingTheTerminal
Then read this: Apt-Get/How-to: Package management with APT
And this also: InstallingSoftware

And DO NOT downgrade your Ubuntu !!! :)


Unlike Windows, there is no easy way to choose the installation directory in Ubuntu.

A full install may be easier to manage. For example, you could uninstall the older kernels. the persistent USB works off the CD image and stuff that came in the ISO can't be easily removed even when they are updated.

I suggest backup all the data saved in the USB somewhere else (may be another USB drive) and try full install: How do I install Ubuntu to a USB key? (without using Startup Disk Creator).

On RAID

RAID 1 mirrors one drive to another in real time. So if one fails the other can take over its duties. So adding another drive in RAID 1 formation does not add any disk space.

RAID 0 strips, that is divides up all the data between two drives. This makes reading and writing faster, but if one fails everything is history, as you will have half of each file.

RAID was intended for identical internal drives that don't get moved around. USB drives and flash drives are external and intended to be plugged and unplugged and moved between computers. However, plugging and unplugging them may give them different internal IDs. If that happens one part of RAID0 won't recognize the other part and the system will fail as you will have half of everything, including the OS.


Wake-up freezes and black screen on Macbook (Iris Pro gpu)

I sometimes had wake-up freezes too on my MacBook with Ubuntu 16.04. They were gone after resetting the SMC.

https://support.apple.com/en-us/HT201295

However I must add that soon after doing this I upgraded to 18.04, so not sure what really fixed the freezes ;) Give it a try!

Tobi


"System Monitor" application can't sort, is it a known issue or it's just me?

(credits for solution to @pomsky)

It seems this is because the preinstalled variant of System Monitor is from Snap store, and it just so happens to be poorly made.

If I remove the snap variant and reinstall it from apt

  sudo apt install gnome-system-monitor

then it works without issues.

If I check out reviews for the snap variant in "Ubuntu Software", there are theories that snap packages don't go through QA at all, if that's true then it may be the reason why this happened.


Howto fix local audio output on HP convertible

In between I have installed Ubuntu 16.04 and had the same problem. Then I found out that squeezelight was causing the problem. After I have uninstalled squeezelight the local audio works correct.


Qualcomm Atheros weak Wifi signal on Ubuntu 18.04

Suggest, after you do

sudo modprobe -rv ath10k_pci

to try

sudo modprobe -v ath10k_pci ant_sel=2

as it might be an RF issue which Windows resolved by using antenna #2.


Ubuntu MAAS and openstack physical machines and storage node protection

From the OpenStack official documentation:

  To get the most out of your hardware, it is essential that every disk used in OpenStack Object Storage is configured as a standalone, individual RAID 0 disk; in the case of 6 disks, you would have six RAID 0s or one JBOD. Some RAID controllers do not support JBOD or do not support battery backed cache with JBOD. To ensure the integrity of your data, you must ensure that the individual drive caches are disabled and the battery backed cache in your RAID card is configured and used. Failure to configure the controller properly in this case puts data at risk in the case of sudden loss of power.


Can installing .deb package which is not part of official repository , result in package dependencies problem?

Yes and No.
It'll depend what is inside the package, and what if any dependencies it has & requires.  There are many packages which have NO impact on anything else, but most will have impact. It'll depend on the package.
In your example google-chrome-stable, on my system it reports
guiverc@d960-ubu2:/de2900/lubuntu_64$   apt-cache depends google-chrome-stable
google-chrome-stable
  PreDepends: dpkg
    dpkg:i386
  Depends: ca-certificates
  Depends: fonts-liberation
  Depends: libasound2
  Depends: libatk-bridge2.0-0
  Depends: libatk1.0-0
  Depends: libatspi2.0-0
  Depends: libc6
  Depends: libcairo2
  Depends: libcups2
  Depends: libdbus-1-3
  Depends: libdrm2
  Depends: libexpat1
  Depends: libgbm1
  Depends: <libgcc1>
    libgcc-s1
  Depends: libgdk-pixbuf2.0-0
  Depends: libglib2.0-0
  Depends: libgtk-3-0
  Depends: libnspr4
  Depends: libnss3
  Depends: libpango-1.0-0
  Depends: libpangocairo-1.0-0
  Depends: libx11-6
  Depends: libx11-xcb1
  Depends: libxcb-dri3-0
  Depends: libxcb1
  Depends: libxcomposite1
  Depends: libxdamage1
  Depends: libxext6
  Depends: libxfixes3
  Depends: libxrandr2
  Depends: wget
    wget:i386
  Depends: xdg-utils
  Recommends: libu2f-udev
  Recommends: libvulkan1

Controlling the dependencies are done during the packaging step, ie. Ubuntu devs and Google folks who create the packages themselves.
For Ubuntu repository packages, depends rules can be see via https://packages.ubuntu.com/ , as well as via commands. It's not as easy with 3rd party packages like google-chrome-stable (thus I resorted to a quick example from my own box & command enquiry).


Newbie wants to know what is a Root administrator password?

ctrl+alt+t

type: sudo passwd root

(set password)

that should do it

(found at : https://help.ubuntu.com/community/RootSudo )

otherwise..

As administrator it is same as your login password.
My experience is Ubuntu cannot install without you choose a password.
you can google -forgot password ubuntu- to find what to do or watch this youtube movie
http://www.youtube.com/watch?v=hUuJzDlH0w4

Solution is about holding down shift during bootup. My problem was I could not enter boot menu. So, easy as it was, just reinstalled ubuntu to reset password, took half an hour.
A possibility but prob. not the best one.

Good Luck!


Ubuntu reverted to GNU GRUB beta version

What you see looks like a normal GRUB boot menu. The entries listed in the boot menu allow you to select the default Ubuntu kernel or to choose between two Linux kernels 4.4.0-71-generic and 4.4.0-72-generic and boot with the selected kernel. If you use the ↑ and ↓ keys to select the default option marked by an asterisk (Ubuntu (Generic)) and press Enter to boot from it, your computer should boot into Ubuntu with the default kernel as usual.

If you run apt policy grub2-common in Ubuntu 16.04, you should get the following result.

grub2-common:
  Installed: 2.02~beta2-36ubuntu3.9
  Candidate: 2.02~beta2-36ubuntu3.9

It shows the same result as this first line on the GRUB menu screen in your question, and everything on your GRUB screen is normal like it should be including the Advanced options for selecting options of booting from different recently installed Linux kernel versions.

If you run uname -a the results should show that you are using the 4.4.0-72-generic Linux kernel, which is the latest version in Ubuntu 16.04, the same as is shown in your GRUB menu screen.

Regarding the GRUB menu screen, normally you do not see this screen, and what specific GRUB screen you see depends on whether your system is a single boot or dual boot.


It seems like version 5.0 isn't ready for Ubuntu 15.04. I've had some problems. Reinstalling the last stable version (4.3) solved it.

sudo apt-get remove virtualbox-5.0
sudo apt-get install virtualbox-4.3


Your address is:

IP4.ADDRESS[1]:                         192.168.0.12/24

/24 means that first 24 bits are network address and the remaining 8 bits (which can be used to create a range between 0-255) are for host addressing.

So in x.x.x.y the network prefix is x.x.x (192.168.0.0) and the y (12) is host address.

Host addressing would start with 1 up to 254 and 255 would be the broadcasting address.


The link provided by Terrance got me started on the right track. The GUI method mentioned in that link doesn't do what I want, but the manual configuration worked. Additionally, hostapd had to be configured to handle the wifi side of the network.

For posterity, these are the pertinent configuration values:

My /etc/network/interfaces:

auto lo
iface lo inet loopback
auto br0
iface br0 inet dhcp
  bridge_ports enp2s0 wlp1s0

My /etc/hostapd/hostapd.conf:

ssid=Silly Salmon
wpa_passphrase=mypassword
hw_mode=g
interface=wlp1s0
bridge=br0
driver=nl80211
country_code=US
channel=6
wpa=2
wpa_key_mgmt=WPA-PSK
wpa_pairwise=TKIP
rsn_pairwise=CCMP
auth_algs=1
macaddr_acl=0

After rebooting, the wireless ap provides an extension of the wired lan, and the dhcp server and dns server on the wired side is used by all wireless devices.


Dual boot with Windows 8.1 and Ubuntu 13.04, Ubuntu is low on disk space. What can I do?

You can re-format your computer and put more space for ubuntu. It's not possible that windows and ubuntu use the /home partition, because it has a different filesystem that windows can't use. So, you can use gParted for editing the size of your partitions on a live cd.


Is there a way to tell where synclient gets its information from?

Got it!

Apparently what seems most "canonical", at least on my machine, is /usr/share/X11/xorg.conf.d/50-synaptics.conf .

The "wrong" values that were being refreshed each boot (and that synclient was reading from) appear to be appletouch or synaptics defaults (could be wrong on this now, god knows I've muddied the waters on this machine plenty).

In any case, turns out you can put whatever options you been told belong in /etc/X11/xorg.conf into 50-synaptics.conf as well.

Once again, this is on Mint 11 Katya (so for anyone having this problem on other distros, the file paths may be slightly different).

Updated 50-synaptics.conf for Macbook 2,1 (Early 2007) is as follows:

Section "InputClass"
    Identifier "touchpad catchall"
    Driver "synaptics"
    MatchIsTouchpad "on"
    MatchDevicePath "/dev/input/event*"

# These settings for FingerLow and High give a very light touch on this model,
# similar to what you see on a Boot Camp Windows partition. Defaults to 29 and 34
# on my machine.

    Option "FingerLow" "5"
    Option "FingerHigh" "15"

# Next option seems to fix "jumpy cursor" problem, where a steady motion from
# the user does not result in steady pointer movement (skips a few pixels at a
# time). Defaults to 0.

    Option "JumpyCursorThreshold" "5"
EndSection

Hopes this helps people in the future.


Ubuntu Server SD on HP Microserver G8 G1610T

It is kind of correct, that this is an certified version. But as you pointed out, point 2 is the real problem. The certification just says 'it runs'. It doesn't tell you anything about how well it runs (see ubuntu certification 1255330 for this).
The terrible truth is, that ubuntu doesn't runs well on this machine. I will switch to another OS while the noise is really uncool. So take this advice: if the sound volume is a relevant factor for you: switch the os or the hardware. Otherwise see the link (but there is no quick and easy solution so far. I am really annoyed about my decision buying this machine and trusting in the certification. :( The bug tickets for the smart array driver (the whole family seems to be unsupported for now) could be relevant for you.
See steffs answer for point 3. :-)

I hope this information could help you.


You don't need root privileges to make Unreal Engine 4.

At first you have to type following in your terminal:

./Setup.sh

Then:

./GenerateProjectFiles.sh

And then type without options or arguments:

make

After building type

make ARGS=-clean

to clean any build target automatically.


Copying a lot of files failed by using smb:\\serverip in nautils

I've seen the progress bar dissapears but the background process is still there, seems at the start the it is sticked at dome kb's but if you refresh the folder you can see the files growing. Definitively a bug.


Why not just use the built-in chrome's task manager? It can display easily which extension, which app, which tab is using how much memory.
Menu -> More Tools -> Task Manager or Shift+Esc


When cutting external power supply, I cannot ssh connect to my Ubuntu 20.04 desktop on Dell XPS 13 7390 laptop

Look in Ubuntu settings app - Power section. There is an option Wi-Fi can be turned off to save power. Disable that option and see if that fixes your issue.


How creation of folders inside of plank be done in Ubuntu 20.04 LTS while retaining in them all the features of plank?

To create application launcher groups in Plank Dock, create folders somewhere on your system for each group you want to create, e.g. "Games", "Office", ... Then populate each of these folders with the .desktop launchers of the programs you want to include, for example:

You can find most .desktop files of your applications in the folder /usr/share/applications. Those from applications installed as a snap are in /var/lib/snapd/desktop/applications/.
Finally, drag the folders to Plank to add it to the dock. Clicking it will reveal a list of the applications that you can launch:


Having tried differen ways but none worked - How do I disable a service from auto-start at boot in Ubuntu?

Ubuntu has been moving away from sysv-init to Upstart. Some scripts won't work with: (as they have been moved to the Upstart format)

update-rc.d -f service_name remove

chkconfig --level 12345 service_name off

sysv-rc-conf

This has been answered in other posts, best answer I've seen so far is: (if you want more documentation on it)

https://askubuntu.com/a/19324/23779

So in a brief comment:

The current situation is: Ubuntu now uses Upstart. Some services still use the old sysv-init, are located in /etc/init.d/ while other services, Upstart optimized are in /etc/init/. How to disable, stop, start, etc is explained in the above link.


It appears that there is an IRQ conflict. Both cards are set to the same "channel", and thus are conflicting. You must find a jumper or dip switch setting for IRQ and set it to something that no other device in your computer uses. You need not worry about plug-and-play devices as they will auto-resolve their conflict. As to changing the IRQ settings, this depends on your hardware.

However, since you wish to add two disks, you only need one such card. You simply need an IDE cable with three connectors: one for the card, and two for disks. These are quite common.

CARD-------DRIVE 1(MASTER)-----------------------------DRIVE 2(SLAVE)

Make sure one of the drives is a master, and the other is a slave, or both use the Cable Select (CS) feature, as per their jumper settings. The order of master-slave on the cable doesn't matter if you aren't booting from wither of the drives, but if you are using CS, both drives must be in CS mode, and then they will automatically detect master/slave by their positions on the cable.


The package system is broken Ubuntu 20.04 - software updater

thnx alot brother , i tried
sudo apt install libpng-dev

it works and upgraded successfully :)


what is the keyboard shortcut for switching to subscript or superscript while using libre office

You can use

Ctrl+Shift+P   Superscript

Ctrl+Shift+B   Subscript

LibreOffice Writer Help


Run SQL script on remote Oracle database

Create a file (let's say: my_sql_commands.sql) containing your SQL commands, for example:

select table_name from user_tables;
exit;

And then:

sqlplus username/password@oracle_instance @my_sql_commands.sql

That's all!


Ubuntu 14.04 (amd64) not detecting all of my memory

Execute

sudo lshw -class memory

in terminal.

Output gives detailled info about RAM installed.

If it is less than 4GB run memtest86+ from GRUB.


Gmail address book in Evolution does not work

Perhaps you are experiencing one of these bugs:

https://bugs.launchpad.net/ubuntu/+source/libgdata/+bug/755043

https://bugs.launchpad.net/ubuntu/+source/evolution-data-server/+bug/1010349


and happy new year!
I finally got around to creating a working live ubuntu usb drive, as well as a full ubuntu usb flash drive.
Both boot correctly, but neither allows me to access any of the files on the computer's dedicated ssd.
Until a few days ago, I had to boot my pc through my old external hdd, and that landed me on my system, files and all. My old hdd started clicking, and won't boot any more.
I've since been trying to boot into the pc via the usb drives, but they boot as generic "trial" systems instead of my ssd.
I intend to order a new ssd to backup my files before I try repairing grub (just in case), but in the meantime, is there any way to gain access to my files through the usb "trial" ubuntu system?


acquire::http::proxy for only specified repositories

Finally I got it working as I wanted.

For every local mirror you have to add a line like this:

Acquire::http::proxy::local.mirror.address "DIRECT";

So, in /etc/apt/apt.conf I got something like:

Acquire::http::Proxy "http://yourproxyaddress:proxyport";
Acquire::http::proxy::local.mirror.address "DIRECT";
Acquire::https::Proxy "http://yourproxyaddress:proxyport";
Acquire::ftp::Proxy "http://yourproxyaddress:proxyport";
Acquire::socks::Proxy "http://yourproxyaddress:proxyport";

That way I can use our web proxy for outside/external repositories and be able to use our local repository mirror without a web proxy.


Bluetooth headphones initialize with Audio Profile = Off upon connection, possibly because of "Profile a2dp_sink has no transport" problem

This seems to be one of the numerous errors that are never fixed (keeping all non nerd users from using Ubuntu)

I wrote a little script for that and created a desktop symbol for it, so I don't need to fiddle with the bluetooth settings ten times a day.
This only works if you have exactly one device attached.

# Find the index no. of the bluetooth device
bt_dev_index=`pacmd list-cards | grep bluez_card -B1 | grep index | awk '{print $2}'`
echo -e index = $bt_dev_index\\n
# Set desired bluetooth audio profile for the found index.
pacmd set-card-profile $bt_dev_index a2dp_sink


How do I take Win 7 off a dual boot mini

You can use the OS-Uninstaller tool. It will remove Windows and update your GRUB entries. Then you can use the free space the way you wish (by putting data in it, or resizing the Ubuntu partitions via Gparted).


Your issue is that some video (an music) codecs are propriety and owned by there respective parties, this means you must install them after installing Ubuntu.

Open a terminal and run

sudo apt-get install ubuntu-restricted-extras

Now your videos will play.