Yes, already posted in the comments as a verified solution, but posting as an answer anyway.

Purging should indeed remove the configuration files as well, yet the configuration of the Samba server is tracked by the package samba-common, not samba. Yes, it's a bit confusing.

So, try purging and re-installing both packages like this:

sudo apt-get purge samba samba-common
sudo apt-get install samba


USB HD on Boot: The disk drive for UUID is not ready yet or is not present

You can refer to this thread in terms of how to mount a drive.
On the side notes don't worry about that " battery voltage error at startup". I have an old Dell studio(2009) who's adapter and battery has been replaced(bought some non original stuff from amazon and ebay)...i used to get this error message. Press F1 and good to go.If you want to get rid of that forever...just enter into BIOS and there is a setting not to show errors of this type(some adapter kind of wordings)


Unable to switch Linux boot order via SSH

Thanks to @rtaft and @mook765 for helping.
I'm not very experiencing in grub internals, and actually I don't have much desire to read tons of documentation.
In my case I have to HDD:

/dev/sda - Debian
/dev/sdb - Ubuntu.

Both of these have their own copy of /boot/grub/grub.cfg.
Let's say I login to Debian now, it means all commands like
sudo grub-update sudo grub-set-default x
etc. will affect grub.cfg of Debian dist currently running.
Taking into account, that I don't know order of executing of these two versions of grub.cfg. I decided to change line with set default="Desired OS", in my case
set default="Debian GNU/Linux 9 (stretch) (on /dev/sda3)"
for BOTH these grub.cfg.
Summary:

I changed /boot/grub/grub.cfg manually and set desired default.
I mount second HDD (/dev/sdb -> ~/mnt_devsdb).
I changed ~/mnt_devsdb/boot/grub/grub.cfg manually and set desired default(the same as for p.1).
reboot and .... voila! it works!

To boot Ubuntu I need to repeat all these steps and set proper default again.


I think the package cgroup-lite is not installed. Try:

$ sudo apt-get install cgroup-lite
$ sudo cgroups-mount

And run the container again.


Gnu Mailutils configuration to directly operate on maildir?

I was able to reproduce your problem with GNU Mailutil's mail. I did not find a direct answer to your question, but found a solution to your problem.

I suppose you configured your local MTA (Exim) so that new mail is delivered to $HOME/Maildir/, i.e. your Exim configuration is set to dc_localdelivery='maildir_home'.

Install heirloom-mailx which provides a replacement of mailx and offers more functionality than GNU Mailutil's version of mailx. Make sure it is the actual provision of mailx in the alternatives config. Usually it is, because heirloom has the highest priority. You can check that like this:

jb@x60 ~ $ sudo update-alternatives --config mailx
There are 2 choices for the alternative mailx (providing /usr/bin/mailx).

  Selection    Path                     Priority   Status
------------------------------------------------------------
* 0            /usr/bin/heirloom-mailx   60        auto mode
  1            /usr/bin/heirloom-mailx   60        manual mode
  2            /usr/bin/mail.mailutils   30        manual mode

Press enter to keep the current choice[*], or type selection number:

Configure mailx with the environment variable $MAIL. Since this configuration implies that mail is delivered for all users to their respective local Maildir I suppose this is the most elegant way to do this:

x60 ~ # echo 'export MAIL=$HOME/Maildir/' > /etc/profile.d/local_mailx.sh

No need to chmod 755 this file, since it will be sourced by the login shell. However you need to log off and on in order to let environment variable changes take effect.

Proof of concept:

jb@x60 ~ $ grep dc_localdelivery /etc/exim4/update-exim4.conf.conf
dc_localdelivery='maildir_home'
jb@x60 ~ $ echo $MAIL
/home/jb/Maildir/
jb@x60 ~ $ mail jb
Subject: test
test
.
EOT
jb@x60 ~ $ mail
Heirloom mailx version 12.5 6/20/10.  Type ? for help.
"/home/jb/Maildir/": 1 message 1 new
>N  1 Jo Bo              Sun Aug 25 14:06   19/489   test
? 1
Message  1:
From jb@x60 Sun Aug 25 14:06:52 2013
Return-path: <jb@x60>
Envelope-to: jb@x60
Delivery-date: Sun, 25 Aug 2013 14:06:52 +0200
Date: Sun, 25 Aug 2013 14:06:52 +0200
To: jb@x60
Subject: test
User-Agent: Heirloom mailx 12.5 6/20/10
Content-Type: text/plain; charset=us-ascii
From: Jo Bo <jb@x60>
Status: R

test

? q
Held 1 message in /home/jb/Maildir/

Problem solved. Question remains: Do you need to stick with GNU Mailutil's mailx? I doubt so. Maybe it is possible to get this done with GNU, but since heirloom offers a superset of functions and you can still use other tools from Mailtutils, I would not bother to invest further research. heirloom is a nice piece of software. YMMV and HTH.

Have fun!


try to go in

System , All Settings-> Software & Updates -> Additional Drivers

and check if there is any driver available ,
if it is the case  , check its case and apply change ,


Mouse can't reach screen corners after update to 17.10

After having some good time outdoors. Finally, the issue has been solved by selecting disabled repositories sources in Software & Updates> Other software and run the upgrade + restart the machine.

All that was because the Upgrade hasn't finished yet so some drivers were not working properly. Also, you may not have this issue with Usb-mouse it's just on Touchpad.

Cheers!


Ubuntu Server 18.04 installer does not show partitions

Alternative Ubuntu Server installer
If you require advanced networking and storage features such as; LVM, RAID, multipath, vlans, bonds, or re-using existing partitions, you will want to continue to use the alternate installer. ubuntu-18.04.1-server-amd64.iso

cdimage.ubuntu.com


Right click on the Whisker Menu panel item. Then select Edit Applications. If you do not have this option, then install MenuLibre by pasting the following in terminal:

sudo apt-get install menulibre

Log out and in again so the option Edit Applications will not be grayed out / disabled.

In MenuLibre you can customize the Whisker Menu to your liking. You can create categories, change the name of a program, and change the icon of a program or category, etc.

To add a category, click the plus button in the top left. Select Add Directory. Be sure to save it by clicking the down arrow button in the top left.
To change the name of a program just click on the program name to edit it. Then save.
To add a launcher under a particular category (directory), first click on that category. Then click the plus button to add your Launcher.
To customize the icon and use your own image, click on the icon.
To change the ordering of menu items, click on the down and up arrows in the bottom left.
To remove a program or category click the trash icon at the top.

You can also change the background color, text color, etc. in Whisker Menu. There is a tutorial here from the developer.
https://gottcode.wordpress.com/2013/11/27/theming-whisker-menu
You can use a website such as this one for your hexadecimal colors.
http://www.colorcombos.com/333333-hex-color

Enjoy!


Is it possible to cross-compile .deb files using debhelper? How?

debuild -ai386 should set everything up correctly, but it depends on having the proper multiarch build-dependencies installed; it's easier with a recent version of sbuild (more recent than is in precise, I'm afraid), and it does depend on all the libraries you use having been converted to multiarch.  See https://wiki.ubuntu.com/CrossBuilding for details.


ftp steam directory uploading permission denied

You can copy the files over to /tmp with the user you have using WinScp.
Once the files are copied to /tmp, you can ssh to the vps using the same user, then copy the file to location of your choice using sudo cp /tmp/<file> /<locationOfYourChoice>. You might have to change the permissions of the file to the user of choice using chmod AND/OR chown.
I would recommend you go through some tutorials in Linux(here's a start) about file permissions and users before attempting to change permissions willy nilly. This will save you from having to do all this from scratch.


How to get filename from FileChooserButton in PyGTK?

This piece of code solved the problem and prints the filename as I wished:

def on_filechooserbutton_file_set(self, widget):
        self.videoInput = widget.get_filename()
        print "Video file Choosen: ", self.videoInput


Strange that my DPI got changed mid-use...

Fixed it with:

Option         "UseEdidDpi" "False"
Option         "DPI" "168 x 168"

in xorg.conf


curl: (60) server certificate verification failed. CAfile: /etc/ssl/certs/ca-certificates.crt CRLfile: none

I tried by my side and le curl fetches with success
Something may be wrong at your side (System Date & Time are ok?)
You could bypass certificate verification with the -k option of curl
curl -k https://forums.openvpn.net/


What often works

With VGA-0 set to 1280x1024 and eDP connected. run the command (from a terminal):

xrandr --output VGA-0 --pos 0x0 --output eDP --pos 1280x0

which does what should happen automatically after you connected the second screen. The command top- aligns both screens, with eDP at 1280 from the top-left of VGA-0.

If this works, as a workaround, add the command to a shortcut key which you can press after connecting the second screen. Choose: System Settings > "Keyboard" > "Shortcuts" > "Custom Shortcuts". Click the "+" and add the command:

xrandr --output VGA-0 --pos 0x0 --output eDP --pos 1280x0

What is the issue?

Graphics drivers seem to be the bottle-neck in many minor incompatibilities. Also in many cases, we can solve it with a small workaround like above.

The exact reason for your issue might be a timing issue, the screen and the driver do not " recognize each other" in time, so the procedure breaks.

Important part is that we can subsequently persuade the system to do the setup with an xrandr command :).


Bad Archive when installing Ubuntu over PXE - it's looking for the Release file I do not host

Problem was I was installing from a re-spun DVD off of Lubuntu

I copied the dists/ directory off of a Ubuntu Server DVD of the same release and architecture and this got me past this specific roadblock.


Take a look here: https://ext4.wiki.kernel.org/index.php/Ext4_Disk_Layout

Block size is specified at mkfs time and typically is 4KiB.

and here
https://en.wikipedia.org/wiki/Ext4

So the max file size in this case is 16TiB

For the question 2 I think the best solution is to have LVM over a (HARDWARE) RAID, you can use all of the disks in the RAID volume and slice and dice them whatever way you like with LVM.


xev doesn't record keycode of lock screen key

You are looking for xinput
List 'devices': run xinput with no argument

$ xinput
⎡ Virtual core pointer                      id=2    [master pointer  (3)]
⎜   ↳ Virtual core XTEST pointer                id=4    [slave  pointer  (2)]
⎜   ↳ SynPS/2 Synaptics TouchPad                id=11   [slave  pointer  (2)]
⎣ Virtual core keyboard                     id=3    [master keyboard (2)]
    ↳ Virtual core XTEST keyboard               id=5    [slave  keyboard (3)]
    ↳ Power Button                              id=6    [slave  keyboard (3)]
    ↳ Video Bus                                 id=7    [slave  keyboard (3)]
    ↳ Sleep Button                              id=8    [slave  keyboard (3)]
    ↳ Integrated Camera: Integrated C           id=9    [slave  keyboard (3)]
    ↳ AT Translated Set 2 keyboard              id=10   [slave  keyboard (3)]
    ↳ ThinkPad Extra Buttons                    id=12   [slave  keyboard (3)]

'Spy' the extra buttons

xinput test 12


How do i stop "5.2 GB SWAP partition from appearing in "devices" list in Nautilus?

Mark the swap partition as only swap and make it a primary partition (not a logical partition). It must be the same size as your RAM, but there is no need to create as large as 5 GB. I am using a 2 GB swap partition and maximum 556 MB of its space ends up being used.


OpenSSH - Restrict users to one or multiple folders

Could you not just put whatever folders you want each user to access in their home directory? If not, I believe that ssh uses the same file permissions as the file system on the computer. So you can just use the same file permissions modifiers you would use to give a user access to a folder outside their home directory, like this:
https://superuser.com/questions/280994/give-write-permissions-to-multiple-users-on-a-folder-in-ubuntu


I had same problem and partial fix was to open Settings => Search, then use main switch on the top to disable everything.
System became a bit faster but still very laggy compared to 18.04 and 18.10.


Does TOR protect privacy of bittorrent clients like Transmission?

TOR was not invented for file sharing applications like BitTorrent. (That may be why your question was deleted or because you already answered your question yourself when linking to the other question.)

If you want to protect your privacy when using BitTorrent use a VPN provider that provides BitTorrent support and configure your client accordingly, or use one of the less popular file sharing applications and clients that try to work around privacy concerns of public file sharing (see non-public file sharing).


Online Ubuntu man pages only showing i386?

The man pages are the same for all architectures, the server seems to use the i368 packages to get them.

To see which version of a package is available for a specific Ubuntu version you can use the Ubuntu Packages Search.

If you search for 'conky' you see that the version in conky is 1.10.0-1 and the package is the same for all architectures (all).

If you click the wily link of the package description you get the details for that package in wily.


How to install Jio Meet on Ubuntu 20.04 LTS

As of now JioMeet is not supported by wine. JioMeet is not listed in AppDB of wine. Regarding other installation method, No package available for linux platform at all, So at this point (writing on date 23th July 2020) not possible to install Jio Meet in Ubuntu 20.04.


Is there a standalone nintendo switch pro controller driver without steam?

I have! Sorry no one has answered the question sooner.
First, install dkms-hid-nintendo:
git clone https://github.com/nicman23/dkms-hid-nintendo<code>
cd dkms-hid-nintendo
sudo dkms build nintendo -v 3.1
sudo dkms install nintendo -v 3.1

This installs a Nintendo HID kernal module onto your installation of Ubuntu or other compatible distro.
Now, install joycond. This will behave as a driver to "sync" your Nintendo Switch controller. (Before you install it, make sure you're no longer in the dkms-hid-nintendo directory)
git clone https://github.com/DanielOgorchock/joycond
cmake .
sudo make install
sudo systemctl enable --now joycond

Now, you're done. If for any reason joycond failed to build, make sure libevdev-dev is present on your installation. If not, do the following command sudo apt install libevdev-dev.


Best way to install and update Nylas N1, until it's not in repo is to use :

$ wget -O N1.deb "https://edgehill.nylas.com/download?platform=linux" && \
sudo gdebi --n N1.deb && \
rm N1.deb


Why do I receive updates notifications even if I configured unattended-upgrades?

There are several possible reasons. Happily, none indicate a real problem.

Firstly for most folks, Unattended Upgrades draws from a limited number of repositories that are whitelisted in /etc/apt/apt.conf.d/50unattended-upgrades. Any software from other repositories, PPAs, other sources, or Snaps, is ignored by Unattended Upgrades, and will show up in the desktop's Software Updater notification.

(In your case, you have already added another repository to the whitelist. Well done!)

Second, the desktop Software Updater tool and Unattended Upgrades are not coordinated - each runs at a different time daily. It's likely that the case you have shown us is simply a day when Software Updater happened to run first.

For most folks, the simplest answer to avoid confusion is to change the Software Updater frequency in your Software & Updates control panel. Look for the 'Updates' tab, then the "When there are other updates" option. Reduce the frequency.

How to control Software Updater's schedule using gsettings
How to control systemd-timers used for Unattended Upgrades (apt-daily.service and apt-daily-upgrade.service


Trying to dual boot Ubuntu with Windows 8.1, but boots right into Ubuntu

I'm sorry to say you've accidentally overwritten your Windows installation. If you had no important data on the disk or if you have adequate backups from which you can restore your personal data, your best bet is to re-install Windows. If you had important personal data on the disk with no backups:

STOP USING THE UBUNTU INSTALLATION IMMEDIATELY!! Every moment the computer is booted into Ubuntu, there's a risk that it will overwrite the sectors that still contain your personal data.
Using an emergency system, make a low-level backup of your disk using dd.
Use PhotoRec or equivalent Windows-specific software to recover your personal files on a file-by-file basis. I've heard claims that some Windows tools do a better job than PhotoRec at recovering filenames, but I don't have specific recommendations on this score. You may want to ask about it on a Windows forum. Note that this process is going to be extremely tedious and is likely to recover only some of your personal files; it's very likely that some are irretrievably lost.
Once you've recovered your personal files, re-install Windows and copy the files back to the new installation (or to your Ubuntu installation, if you prefer).

Note that this procedure requires you to have at least one disk of equal or greater size to the original to hold the backup and recovered files. If you don't have such a disk already, buy one. You can use it for more conventional backups in the future.

Good luck with your recovery efforts!


What's the difference between /etc/cron.hourly and crontab -e?

User crontab files (the kind produced by non-root crontab -e) are stored in /var/spool/cron/crontabs/<user>. root cron jobs are run through /etc/cron.hourly, /etc/cron.daily, /etc/cron.weekly and /etc/cron.monthly, and controlled via /etc/crontab. The comments at the top of /etc/crontab say:

# /etc/crontab: system-wide crontab
# Unlike any other crontab you don't have to run the `crontab'
# command to install the new version when you edit this file
# and files in /etc/cron.d. These files also have username fields,
# that none of the other crontabs do.


Ubuntu 16.04 disk will not boot. I'm looking for help

Thank you for the super-fast reply @guiverc !!...I will look into your suggestions if this happens again so I don't shutdown needlessly.

Number 4 in the History of events (above) was the solution. I needed to select the recovery mode that was oldest, and then I was able to get my system back.


Ubuntu OpenVPN is connected but won't change IP

I also have 'use this connection only for resources on its network' ticked.

This might be the problem. To use a connection only for it's ressources means, that you address only services inside this vpn through that vpn. If you connect to a website, which is apparently not inside this network, it is not a local ressource and will not be connected through the vpn.

Also your first route entry says

0.0.0.0         192.168.1.1     0.0.0.0         UG    0      0        0 wlan0

which means that all connections to outside go through your wlan0 interface. With a working vpn it would look like this (adapted to your case):

0.0.0.0         254.0.0.0        0.0.0.0         UG    0     0        0 tap0

I assume that you are using the network-manager to connect so I would recommend to untick 'use this connection only for resources on its network'.
Also if you're using the network-manager you usually don't need to change any iptables rules, only if you are using the openvpn service with the config file.


Can we figure an EAP controller using Ubuntu 16.04?

A bit late but i started checking this yesterday and according to the q13 on their faq (http://www.tp-link.fr/faq-865.html) at the moment its only available on windows.


Google chrome won't open -- there's not even an error (launched from terminal)

Try going into the software center and download Chromium browser or in your terminal type

 Sudo apt-get install chromium-browser

Chromium is the same thing as google chrome :)


Not sure about Crouton, but this works on a Chromebook while in ChromeOS, as well as in Linux Beta--control key + "show all windows" key (5th key). It will take a screenshot, which you can then print.


It sounds like you have faulty RAM on your video card.

Ubuntu's 3D window manager probably uses more RAM than the one in Windows, so in Windows you never use enough video RAM to have a need to access the part of RAM that is bad, but in Ubuntu where you use more video memory the bad memory is accessed.

When a video card crashes it causes the symptoms you reported.

Go to the store and buy another video card and try it. If it doesn't fix the problem take the video card back to the store. If it does fix the problem, keep the video card and the fix to your problem.


Can't install both Xubuntu and Lubuntu using Wubi

After some attempts, I finally managed to install Lubuntu with Wubi.

The problem was, most likely, related to overheating activity of the CPU, given the facts that the ventilation system of this desktop needs to be improved and the error window was repeatedly reporting file copying errors from the installation media. So the first thing I did today after a night of rest was this installation and it worked because the PC was cold enough to prevent any errors.


try the solution from this question?
Volume control not working

  I think I may have solved the issue. Upon examining /etc/modprobe.d/alsa-base.conf, I noticed that it no longer had the
  following line.

  options snd-hda-intel model=auto

  I re-added this line, saved, rebooted, and everything seems to be
  working now.


How can I copy&paste from the host to a KVM guest?

The solution is simple. Just install the package spice-vdagent in the guest virtual machine:

sudo apt install spice-vdagent

The clipboard is automatically shared - we can copy and paste between the host and the guest.


Ubuntu 12.10+ optimus nvidia 635m and CUDA installation?

I suggest you to read this post here: Nvidia Bumblebee + CUDA
Use the script you find in here. Is the most advanced step further I made untill now, to get the Nvidia card work. After having configured Bumblebee, during the CUDA installation take care not to install again the Nvidia driver as asked by the CUDA installer: if you say 'yes' this will break your Desktop resolution.


Accidentaly deleted all aliases. How can I restore them?

unalias just removes the alias for the running session. Just start another new terminal or use that command:

source ~/.bashrc


Ubuntu does not use SELinux. If the directory is annoying you, remove it with:

sudo rmdir /selinux

A similar application to SELinux which is used by Ubuntu is called AppArmor, but this is not enabled by default.


Having trouble with "Initramfs unpacking failed: Decoding failed" solutions

You can see here: https://bugs.launchpad.net/ubuntu/+source/linux/+bug/1835660
The workaround that I applied to solve the issue was:
changing setting in initramfs.conf editting the file with sudo rights
/etc/initramfs-tools/initramfs.conf

then change the line with COMPRESS=lz4 to COMPRESS=gzip
boot time with lz4 was:
Startup finished in 10.074s (firmware) + 6.687s (loader) + 6.451s (kernel) + 30.951s (userspace) = 54.164s
graphical.target reached after 29.969s in userspace

now with gzip:
Startup finished in 10.046s (firmware) + 8.307s (loader) + 7.636s (kernel) + 27.035s (userspace) = 53.026s
graphical.target reached after 26.279s in userspace


Thunderbird font size varies with encoding in Content-Type header

After some searching on the net, I found the solution to my own problem. I include a description of it below to hopefully save others with the same problem some effort:

At the top of the dialog window under Edit > Preferences > Display > Formatting > Fonts > Advanced,
there is a drop-down menu labelled Fonts for. This is initially set to Western, meaning all settings below only applies to messages with those encodings. To change fonts for messages with utf-8 and other non-western encodings, choose Other Languages in the drop-down menu then set the font types and sizes to the same as you have for Western.


What video driver should I install for Nvidia Corporation G96 [GeForce 9400 GT]?

in "Additional Drivers" there should be shown a "recommended" NVIDIA-driver. Activate it (with working internet connection) and reboot.

How do I install additional drivers?


How much space I should use for Ubuntu? Which partitions?

Simple solution is the best

Just use the default settings of Ubuntu install, at let use the full drive and do its partitioning.

You will get one huge / partition and a swap partition. This gives the most flexibility. Your application development data will reside in the subfolders of /home/[user]/ folder. It can grow as big as you need it to be. Your mp3, video, PDF etc. will also be in subfolders of /home/[user]/.

Sharing files with Windows

I assume you want to share your files with a different Windows box in the local network. Samba is the best way to do it. just right click on the folder you want to share (such as Music) and select share... This will install Samba and anything else you may need. Installing Samba will also allow you to read and write to shared folders in the Windows box.

File ownership/ permissions work differently in Windows and Ubuntu and they do not translate well when files reside in FAT32 or NTFS partitions. Since there will be no Windows installation in the Ubuntu laptop, there is no advantage in making FAT32 / NTFS partitions onto which Ubuntu cannot write file permission information.

In the early versions of Ubuntu there were two options to upgrade. (a) upgrade directly from the existing installation. (b) Fresh install from Live DVD/USB. The first preserved the personal settings, and data, the second wiped everyting.

New versions of Ubuntu offers a third (c) choice of upgrading from Live DVD/USB. This preserves the /homefolder combing the best of (a) and (b). This also means creating a separate /home partition is not that important if you need to overwrite your Ubuntu installation.

Multiple partitions keep program and user data separate (Use your own settings)

Choosing Something Else during Ubuntu installation allows you to setup multiple partitions to your own liking. It also makes you decide the size of each partition.

I prefer a three partition setup:

/ to keep the OS and all the applications as well as any web server data (If you do web development). 46-48GB.

/home to keep all the user data, including music, application development etc. 450GB

Swap can be 2-4GB, just to keep Ubuntu happy.

This gives you the flexibility to reformat / and reinstall Ubuntu if you ever need to do it. Though it is not essential as new versions of Ubuntu gives the option to preserve /home even when it is not a separate partition, during upgrade/reinstall from Live USB/DVD.

If you delve into web development, you may want to make / larger, as the web server data will go there.  You don't have to figure out how much to / and how much to /home if you go with the default installation and keep a single / partition.

Hope this helps


I dont have access to the code I used to do it now, but if you have created your local variable for the text box, with the self.textbox = builder.get_object('glade texbox id') (or something like that), you should be able to do on_textbox_activated(self): self.variable = self.textbox.get_text(), with the "textbox" in "on_textbox_activated" being the name of your textbox widget without the self prefix. As for your label, I am pretty sure you can use set_text('text here'), so self.label.set_text(self.variable).

see http://www.pygtk.org/docs/pygtk/class-gtklabel.html for the label if the set_text does not work.


Dual-booted system: How much space should I allocate for /, /home, and /swap?

While your current set up is enough to install ubuntu, it leaves little room for installing and upgrading.
I recommend the root partition ( / ) to be 15-20 GB.
If you use hybernate, I recommend 14 GB for swap; though 10 GB works if you don''t hit swap much during normal use.
Most people store data in their /home partition thus it needs to be as large as you can make it.
As you suggested, you can make a third partition for data that is mounted to a folder in /home. In this case home should be 15-20 GB, and the data partition as large as you can make it.

If you haven't done much with ubuntu, then clearing more free space from windows partition and reinstalling ubuntu is the easiest way to make the changes.


Where can I download pretty extra templates for LibreOffice Impress?

Open the Ubuntu software center.
Search for libreoffice and select the version you want.
Look at the add ons a bit down (screenshot).

The screenshot shows libreoffice impress

There are also a lot of Tempaltes and extensions at Libre office website.For extensions go here, and for templates go here.


After 12.04 release would 10.04 still be LTS?

You can check here for all the releases and their end of life/schedule and stuff like that - https://wiki.ubuntu.com/Releases

According to it, the end of life for Ubuntu 10.04 Lucid Lynx is

April 2013 for the Desktop version
April 2015 for the Server version

Be clear, that end of life does not mean that Lucid Lynx will be unusable but just that it won't be receiving any active important security updates after that date.


Second Firefox install - with automatic updates if possible

I suppose you can solve your issue by creating a new Firefox profile. This new profile won't include the add-ons or history or bookmarks from your other firefox profile(s). So here is how to create a new profile:

Close all your Firefox windows.
Now open a terminal with Ctrl+Alt+t and type:

firefox -p

This would open the firefox profile manager.

 3. From there select Create Profile... and you will see the following screens subsequently:

Select Next here

Here, type in a name for your new profile, select a folder where you want the files of this profile to be in and select Finish.

 4. Now you would have successfully created a new firefox profile. You can select which profile to use by default by selecting the profile in the profile manager and ticking on Use the selected profile without asking at startup.

For more info please refer to this.


Installing Openssl 1.0.2 on Ubuntu 19.04

The ./config --shared command adds -fPIC to the Makefile's CFLAGS, which causes any C files to be compiled in a form suitable for linking into a shared library.

However, any files that have already been compiled to object code (.o files) during the default static build will not have had the appropriate CFLAGS. Attemting to link these files into a shared library will fail.

The solution is to run make clean to delete all the .o files before running make install with the new shared library config.


ffmpeg doesn't cut the video into expected minute

You are doing a direct copy of your video stream to the new video file. Therefore, ffmpeg can only cut the video on keyframes. Keyframes or intra-frames are frames containing all of the information of the current image. In between keyframes, only changes are stored for the frame as one of the most important tricks to achieve lower video file sizes. If you cut the video stream on one of these frames, the previous frame is not anymore available, so the frame cannot anymore be constructed. Hence, the resulting video stream would be corrupt.
If accurate times are required, you need to re-encode the video stream, at the very minimum between the two keyframes where you are cutting. The drawback of re-encoding is that it takes much more time, and there is quality loss (possibly not perceptible, though) because you uncompress lossy compressed video and then have to compress that again.
In your command line, the -c copy argument is what is causing a direct copy of the media streams. If you omit that argument, ffmpeg will reencode with default settings, i.e. the codecs of the input video and default compression settings. You can control these yourself by adding -vcodec and -acodec options for the video and audiostreams, respectively.


In order to disable services to not load during startup you need systemctl.
First list all the startup services using
systemctl

If you want to disable a service to run automatically at startup, use the command
sudo systemctl disable service_name

replace "service_name" with the service you want to disable at startup.
If you want the service enabled again, use the command
sudo systemctl enable service_name


You don't need any private driver for your Radeon (or Intel), especially for this one.
Simply install the last open-source drivers from Oibaf Repository.

sudo add-apt-repository ppa:oibaf/graphics-drivers

And update your system

sudo apt update

sudo apt upgrade


Trying to append file to tar archive returns error "Cannot stat: No such file or directory"

Try doing:

echo I will not post any homework questions on Ask Ubuntu > newfile

and then try again as it looks like newfile doesn't exist. (which the command above creates)


How do I add a static quicklist for Opera to open new tabs and windows?

Basically the same way as shown in this question: How do I add a static quicklist that opens a web page?

Just change the Exec= lines for the quicklist items (running opera --help in a terminal will get you the commands you can use).

Here's how the desktop file (/usr/share/applications/opera-browser.desktop) would look like when adding a private tab quicklist item:

...
X-Ayatana-Desktop-Shortcuts=PrivateTab

[PrivateTab Shortcut Group]
Name=Open a new private tab
Exec=opera -newprivatetab
TargetEnvironment=Unity


MySQL Access denied for user 'root'@'localhost'

If you're running n localhost, just type the command below in terminal:

mysql -u root -p

If you're using an external server, enter the host IP (xxx.xxx.xxx.xxx) as well:

mysql -hxxx.xxx.xxx.xxx -uroot -p

You will be prompted for your password, enter it and you will be able to access your MySQL prompt.

You can also look at this answer on how to reset your MySQL password.


Security enhancements, prevent mounting /dev/sdb1

If other people are able to get physical access to your computer, I can think of two options to prevent access to your data.

Full disk encryption

Full disk encryption is only available with the alternate installer. At the prompt asking “Guided” or “Manual” partitioning, choose “Manual”.

At the partitioner:

Delete the partition table for the devices that will be used. This will delete everything on the selected device, so make sure that you have everything backed up.
Create partitions for /boot (no more than 256MB is needed), /, /home and swap. Boot and home partitions should be ext4. Root and swap partitions should be “Physical for Encryption”.
Select “Configure encrypted volumes”, then “Create encrypted volumes”. Select the volumes that are listed as “crypto” by pressing spacebar, then continue. Enter a passphrase for each encrypted volume.
Each encrypted volume will now have space available inside of it. To configure these volumes, select the space listed under each encrypted volume. Setup a encrypted volume as swap space and the other should be set to Ext4 and set the mount point to: “/”. Select “Finish partitioning and write changes to disk”.
Later, when asked to “Encrypt your home directory”, select “Yes”.

For further information refer to: http://dailyanarchist.com/2012/02/20/full-disk-encryption-for-ubuntu-and-fedora/

Set HDD password

Usually, laptops and corporate desktops are able to set HDD passwords on BIOS. If you don't enter the password at POST the disk isn't exposed to the OS. From Wikipedia:

  The disk lock is a built-in security feature in the disk. It is part
  of the ATA specification, and thus not specific to any brand or
  device. The disk lock can be enabled and disabled by sending special
  ATA commands to the drive. If a disk is locked, it will refuse all
  access until it is unlocked.

  A disk always has two passwords: A User password and a Master
  password.

  A disk can be locked in two modes: High security mode or Maximum
  security mode. In High security mode, the disk can be unlocked with
  either the User or Master password. There is an attempt limit,
  normally set to 5, after which the disk must be power cycled or
  hard-reset before unlocking can be attempted again.

  In Maximum security mode, the disk can be unlocked only with the User
  password. If the User password is not available, the only remaining
  way to get at least the bare hardware back to a usable state is to
  issue the SECURITY ERASE PREPARE command, immediately followed by
  SECURITY ERASE UNIT. In Maximum security mode the SECURITY ERASE UNIT
  command requires the Master password and will completely erase all
  data on the disk. The operation is slow, it may take longer than half
  an hour or more, depending on the size of the disk.

Hard Disk imaging

Clonezilla is an great tool to image HDDs and partitions, but I don't know if it can generate images from encrypted disks, but you can certainly clone the whole disk using dd. A password locked HD won't be a problem since you'll unlock it prior image generation.


Extracting multiple file types while ignoring errors

for i in *; do mkdir "$i.extracted"; (cd "$i.extracted" && 7z x "../$i") || echo "Error with $i"; done


How to prevent other hosts on the same network from cutting of my internet connection?

This is a problem;  let's act immediately!

You need (and should) to use a configured arpON daemon in all your personal computers and, if you are the network administrator, you can (and should) upgrade to a router with Internal Firewall and Peer Isolation.

NOTE: Always use encrypted (at least WPA) networks to have a layer of extra protection and privacy; public networks are very often insecure and you should warn immediately the administrator if you find vulnerabilities & problems, also in institutional networks.
Please note that arpON is very heavy and must be configured and tested: follow only the official guide and the man pages in your Ubuntu distribution!
Ask by commenting down here if you need more help (safety & privacy are very important) and don't forget to press the UP arrow and set as favorite if I'm of any help. ;-)
Have a nice experience,
good evening!


Public IP address hides device from network

To establish a successful connection I had to switch [ifupdown] managed to 'true', even though all my other machines had very similar configuration settings.

To quote the NetworkManager manual:

  If set to true, then interfaces listed in /etc/network/interfaces are
  managed by NetworkManager. If set to false, then any interface listed
  in /etc/network/interfaces will be ignored by NetworkManager. Remember
  that NetworkManager controls the default route, so because the
  interface is ignored, NetworkManager may assign the default route to
  some other interface.

  The default value is false.

And for reference, find the property at: /etc/NetworkManager/NetworkManager.conf

(if absent, apt-get install network-manager, then sudo service network-manager restart).


To get working brightness keys, try the following.

Run the command:

sudo -H gedit /etc/default/grub

Change this line

GRUB_CMLINE_LINUX_DEFAULT="quiet splash"

to something like below

GRUB_CMDLINE_LINUX_DEFAULT="quiet splash acpi_osi=Linux acpi_backlight=vendor

Execute sudo update-grub and reboot. See if brightness keys are working.

It is still possible Ubuntu won't remember your brightness settings. So you have to change brightness each time.

Please let us know the result as many Sony users are facing this problem.

This is for setting brightness manually after doing the above steps.

Try following for paths shown by ls /sys/class/backlight/*/brightness and replace accordingly.

For example, paths will be like:

/sys/class/backlight/acpi_video0/brightness

For the above path Get the maximum brightness:

cat /sys/class/backlight/acpi_video0/max_brightness

Try a lower value to set the brightness, say output is 16 so I will try with half of it:

echo 8 | sudo tee  /sys/class/backlight/acpi_video0/brightness

If this works,  make this happen in each login automatically by doing the following

sudo -H gedit /etc/rc.local

Enter this line just before exit 0. It should look like:

echo YOUR_VALUE_HERE > /sys/class/backlight/acpi_video0/brightness
exit 0

Also you can try with xdotool


Black desktop background instead of picture

chmod +x $HOME/Pictures

Make sure that your Pictures folder is accessible by others.


Dell XPS 9560 Ubuntu 18.04 freezes after login without AC only in Intel mode

I have the exact same configuration as you, same nvidia driver. Though I do get more freezes with switching nvidia-prime than it was on an older device, it does not freeze as badly as in your case after reboot. I am able to use the intel mode.

I noticed my /etc/default/grub looks different from yours (if that is what you meant). Try putting:

GRUB_CMDLINE_LINUX_DEFAULT="quiet splash nouveau.runpm=0"
GRUB_CMDLINE_LINUX=""


Precautionary security measures for a home user? (firewall, antivirus, etc)

Good questions.

  Aside from those apps, updating regularly, and downloading from trusted sources only, should I be taking any other precautions?

Not really.  Don't run random commands, especially those mentioning sudo, that people might give you on the web, unless it's a trustworthy source or you know what it does.

Beyond that I think the main thing you want to be careful with is web security, eg not typing your facebook password into random other web sites.

Update rigved wisely suggests installing security-oriented browser plugins:  Adblock Plus, HTTPS Everywhere, Noscript and WOT.  (rigved also says Tor, but I'm not so sure about that, because Tor has major security risks that make it a bad default for most people.)

Update2 Do not use the WOT browser plugin, as it has serious privacy concerns: https://thehackernews.com/2016/11/web-of-trust-addon.html . Thanks to DJCrashdummy for pointing this out.

  Must I do anything more with gufw other than checking enabled or are the default settings (incoming : deny, outgoing : allow) sufficient?

That should be fine.

  Do I have to manually turn on gufw everytime and enable it (and keep it open)? Everytime I open it the enabled checkbox is unchecked.

It actually does stay enabled after you quit, but bug 850468 makes it looks like it's not enabled, until you authenticate.


In my CentOS 7, the system would not recognize the file if it had a dot in its name. For instance:

/etc/sudoers.d/user.perms                  # This file doesn't work
/etc/sudoers.d/userperms                   # This file does


How to change user account settings with lxde

To get Users and Groups under LXDE, you have to install Gnome System Tools.  To do that  Just press Ctrl+Alt+T on your keyboard to open Terminal. When it opens, run the command below.

sudo apt-get install gnome-system-tools


"AttributeError: 'NoneType' object has no attribute 'group'" when trying to use youtube-dl

That's a python error.

Something went wrong with the version of youtube-dl you're using. I've never used it, so I can't tell you for sure if you improperly used it, or if it just has a bug.

@Richard asked what version you're using - this issue may or may not be resolved in a newer version of the program.

Looking at the dev's github there was a release just last friday - he has instructions there on how to install it, I'd give that a shot. There are a few issues that match "NoneType", maybe one of those matches the exact issue you're seeing?


My computer is only connecting to huge websites like FB and Google

It might not be your computer's problem (to do that you can check by using your computer to access not-controlled-by-mega-corporations-websites from some other internet access point) but rather a problem of your friend's router. S/he (or the one who set it up) might have allowed only certain popular websites and blocked all others in the router settings. Another possible case could be that the ISP might have done so - maybe on your friend's request. Just check about your computer first on some other internet access point.

Also, try using VPNs or proxy websites - who knows, some might just work.


How to launch my own compiled app in Ubuntu 18.04

Change the Exec= line from

Exec=/home/eqe/Bureau/EQE/Qpl

to

Exec=/bin/bash "/home/eqe/Bureau/EQE/Qpl"


How to setup WiFi network to access internet

check below link it will help you

https://help.ubuntu.com/community/WifiDocs/Adhoc


You can obtain the direct children of a process using pgrep:

-P, --parent ppid,...
      Only match processes whose parent process ID is listed.

And:

-d, --delimiter delimiter
      Sets  the  string  used to delimit each process ID in the output
      (by default a newline).  (pgrep only.)

So:

top ... -p $(pgrep -P <PPID> -d,) | ...


Turn on the keyboard backlight with Night Light mode?

Of course , In my laptop (Lenovo ideapad 700) I use Night light and I turn on my keyboard backlight with fn + space keys and as far as I know these two features are not related


Ethernet connection connected is showing but not opening any page in browser in Ubuntu16.04 ? please help

okay, first check your ethernet card with sudo lshw -c network. If you see disable word in there it mean your ethernet card is disabled. You also need to look at logical name : eth0, this is important because we will fix it. Use nano /etc/network/interface and add

auto eth0
iface eth0 inet dhcp

dont delete

auto lo


No vmhgfs file system installed to use use shared folder

Ok i found the solution just after posting this question.
This for lines did it for me, now lets see if it works stable (hasn't always been the case for hgfs in the past)

$ sudo apt-get install git
$ git clone https://github.com/rasa/vmware-tools-patches.git
$ cd vmware-tools-patches
$ sudo ./patched-open-vm-tools.sh


How can I persistent disable left menu in Nautilus (F9)?

Install dconf-editor from Software Center
Launch dconf-editor
In the left panel, select org
Then, in the left panel, select gnome
Then, in the left panel, select nautilus
Then, in the left panel, select window-state
In the right panel uncheck start-with-sidebar


It is not clear what you want to do.

I assume this is not a WUBI install.

If you want to upgrade from 12.04 to 12.10 using the update manager,
nothing needs to be done regarding GRUB.
If you upgrade using installation DVD/USB, GRUB may get installed
again. In that case, make sure it installs in its previous location,
most likely to be at sda.
If you want to do a fresh install, overwriting 12.04, GRUB should be
installed in the same location it was previously installed. Most
likely to be at sda.

Hope this helps


How to automatically sync network folder and local folder in Ubuntu 16.04?

Consider drive.

It is a free, open source command line utility that can copy files and folders to (push) and from(pull) a Google Drive. The usage is quite extensive, and with some wise parameter choices I suppose a complete sync job could be made.

It uses an initial drive init command to ask for your Google user's permissions in a web browser. However, it can also run with an OAuth2 service credentials file instead.


Black Screen After Changing Screen Resolution on Ubuntu 19.04

I had this issue too (or an issue very similar to this) on my new T495 although I can't say for sure whether my solution will work on Ubuntu as I am using Fedora 31 KDE.

By default it seems to use the amdgpu driver built into the kernel and then when X is started it uses the modesetting xorg driver. To rectify the issue, I instead used the amdgpu DDX driver for xorg. On Fedora, the package for this is xorg-x11-drv-amdgpu. As I don't use Ubuntu I'm not 100% sure what the package is on that (a quick google suggests xserver-xorg-video-amdgpu). My xrandr output looked much like yours before with the modesetting driver, now though (with the DDX driver) it looks like this:

Screen 0: minimum 320 x 200, current 1920 x 1080, maximum 16384 x 16384
eDP connected primary 1920x1080+0+0 (normal left inverted right x axis y axis) 309mm x 173mm
   1920x1080     60.00*+
   1680x1050     60.00
   1280x1024     60.00
   1440x900      60.00
   1280x800      60.00
   1280x720      60.00
   1024x768      60.00
   800x600       60.00
   640x480       60.00
HDMI-A-0 disconnected (normal left inverted right x axis y axis)
DisplayPort-0 disconnected (normal left inverted right x axis y axis)
DisplayPort-1 disconnected (normal left inverted right x axis y axis)

As a side note, I was also unable to recover from suspending when using the (default) modesetting driver and the only way to recover was to reset the machine. On reboot there was an error in the logs referencing dcn10_hw_sequencer.c, however using the DDX driver, I am now able to recover from suspending the machine successfully.


Installing Ubuntu on Ryzen - AMD-VI: IOAPIC[17] not in IVRS table

This was a really dumb mistake, but one of the DIMMS was not properly fitted. I still get those error messages flash past not, but I get past it and into the installation.


Some phones present themselves as a USB Mass Storage device, but with multiple "partitions". One of these will be the SD card and the other will be a static partition used to store things like the Windows driver software for the phone.

What is the output of lsusb -v when you plug your phone and memory card into a Linux computer?


How can I switch windows only in one workspace?

The scale plugin might help (Press Super+W)


How to set one Virtual Desktop as the "external monitor" source on 12.04?

On my laptop I was able to do this as follows:
Go to Dash Home and type Displays and select the Displays control panel.
Plug in the external monitor.
Turn off mirroring. You should see two screens depicted in the control panel display.
Select the external monitor's box, move it to the orientation you would like, turn the external monitor on with the panel's on/off control, set its resolution, and then press Apply. They should both blank for a second or two and then come on.
I use Unity 3d and was unable to put them side by side as the sum of the two widths exceeded 2048 (my Laptop is pretty wide compared to how tall it is.) I simply positioned the second display under the first, set a resolution for it and turned it on (with mirroring off, of course), and it came up properly as above.
I was able to move back and forth between screens by moving my cursor down off my laptop desktop and onto the external monitor desktop. Just drag the presentation or other window down to put it on the external monitor.
I suppose I could have also switched to Unity 2d instead of putting one screen under the other in the virtual desktop, but I don't see what difference it makes.
The command line program to do this sort of thing is xrandr. I've used that command to put together a little shell script I would it run when I connected to an external monitor to set the second screens's resolution properly and activate it. I put a shortcut on my desktop for it so I wouldn't have to make my audience wait. The particular xrandr options are --right-of --left-of --above and --below.

xrandr --output VGA-0 --mode 1280x1024
xrandr --output VGA-0 --below LVDS
xrandr --output LVDS --mode 1440x900


How do I install Mozilla Thunderbird using terminal?

Thunderbird exist in main default repository, should this suffice for you.
sudo apt update
sudo apt install thunderbird

If you looking for newest version, follow the instruction from Mozilla's website.

Download Thunderbird from the Thunderbird download page to your home directory.
Open a Terminal and go to your home directory: cd ~
Extract the contents of the downloaded file: tar xjf thunderbird-*.tar.bz2
Close Thunderbird if it's open.
To start Thunderbird, run the thunderbird script in the thunderbird folder: ~/thunderbird/thunderbird

Thunderbird should now start. You can then create a launcher on your
desktop to run this command.

However, this requires you to create launcher and install any dependencies by yourself— pretty inconvenience compared to former way.


Video Conversion using libav with libopus

Actually you can't because the Matroska container doesn't support the Opus audio codec yet.

source: Codec Specs | Matroska

Apart from that the most simple way to transcode a video with VP8 is to use transmageddon

Opus support for transmageddon was added in November 2012 (just after 0.25 was released), so you'll have to wait for 0.26. (source: Gnome Transmageddon Repository)

Alternatively you can compile ffmpeg from source (otherwise you won't have VP8 or Opus) following the instructions on the ffmeg site.


Installing nVidia Driver in Ubuntu 14.04 LTS

To install just check one of them, you will see a bar in the lower right conner, when it's done the driver is installed.

As MrVavkadii said, the highers numbers are newer, in your case, 331.38.

You have all these option cuz sometimes they don't work so you have mirrors to download them from.

Binary driver is the normal one.
Legacy binary driver is the ones that nVidia don't have avaible in the site to download anymore.
Xorg driver is the one made to be compatible to your OS, while it is opensource and made by users.

Proprietary are the ones made by nVidia
Proprietary (tested) is the one that will most of the times work at your system, so is the first choice you should make.
Open source means you can see and edit the driver.

Still newbie, but I had the same question some days ago and searched for info... If someone see that I'm saying **** please say.


Where's the GUI for the Gnuboy-x Gameboy emulator?

This package does not have a graphical user interface (GUI) and needs to be used purely from a Terminal. Confusingly enough the command to run Gnuboy-x is actually xgnuboy and the options are as follows:

andrew@athens:~$ xgnuboy --help

gnuboy 1.0.3
Usage: xgnuboy [options] romfile

      --source FILE             read rc commands from FILE
      --bind KEY COMMAND        bind KEY to perform COMMAND
      --VAR=VALUE               set rc variable VAR to VALUE
      --VAR                     set VAR to 1 (turn on boolean options)
      --no-VAR                  set VAR to 0 (turn off boolean options)
      --showvars                list all available rc variables
      --help                    display this help and exit
      --version                 output version information and exit
      --copying                 show copying permissions
andrew@athens:~$

However this application worked poorly on my own system, better in my opinion to use vbaexpress which has the nice gui you are after and which can be simply installed as follows:

sudo apt-get install vbaexpress

This had me playing GameBoy roms in no time:

The particular rom I tested can be found here...


Optimize Ubuntu install on USB-drive for longer life

Since the life of SSD is more affected by writes (than by readers) I would recommend two things:

1) Do not use a swap partition,

2) Edit the fstab to ad noatime for the mounted partitions:
gksu gedit /etc/fstab

It should looks like this:
UUID=something / ext4 errors=remount-ro,noatime 0 1

Also you may like to check this: How do I optimize the OS for SSDs?


Automatically run Pelican on system boot

A simple Upstart job should do the trick. Create a file in /etc/init (say /etc/init/pelican.conf), containing:

description "Pelican"
start on runlevel [2345]
stop on runlevel [016]

chdir /path/to/site/files
exec pelican content -r -s publishconf.py

Of course, this will run as root. If you usually run Pelican as another user (say patrick), add:

setuid patrick

before the exec line.

You can the start the job immediately with service pelican start.


Why do I get IBUS-Warning on running the sudo gedit command?

You should always use gksudo instead of sudo to launch graphical applications otherwise the environmental variables aren't set up correctly.

In your example ibus is looking at the files in your users home directory instead of roots home directory as it should be doing.


I have an Ubuntu server running at a remote location

Is this another "home" location? Dynamic IPs are usually assigned only by residential ISPs, business ISPs or web service providers can usually give you a static IP.

  but the server is on one isp and my home account and target for my mail is another so which isp do I use?

For all mail originating from the server, if it has a dynamic IP it should be using that ISP' SMTP server.


You should set up network connections that are permanent and that you want to be started when you boot in /etc/network/interfaces
That is the recommended way to set up servers last time I checked.


The top panel doesn't automatically change color, and it's never been "chameleonic" by default. What you can do however is adjust the transparency of the panel to let some of the wallpaper come through and have it match the launcher:

How can I adjust the transparency of the Status Bar (top panel)?

You can also tweak the Launcher's transparency:

Can I change the Unity Launcher transparency?

The reason it looks "ugly" is because it's a white background and it matches the best it can given an all white background, which ends up being a gray color. There's no real fix to that other than adjusting the transparency or using another background.


Why `systemctl` doesn't list/manage `zeitgeist-daemon`, and what/who actually does?

As your search results indicate, this is a DBus service. AFAIK there aren't commands to disable DBus services - they're started when something requests that service via DBus. This comment on the DBus issue tracker indicates that one way to disable them would be to override it with a matching file in ~/.local/share/dbus-1/services. For example:

$ cat ~/.local/share/dbus-1/services/org.gnome.zeitgeist.Engine.service
[D-BUS Service]
Name=org.gnome.zeitgeist.Engine
Exec=true
SystemdService=zeitgeist.service

With this, files, zeitgeist-daemon no longer automatically starts up for me.


Git does not ask for passphrase during pull/push in terminal

I think I figured it out. After running ssh -vT git@github.com, I noticed how my key was not being included in the list of keys that were being tried for authentication:

debug1: Trying private key: /home/***/.ssh/id_rsa
debug1: Trying private key: /home/***/.ssh/id_dsa
debug1: Trying private key: /home/***/.ssh/id_ecdsa
debug1: No more authentication methods to try.

I figured that somehow I needed to tell ssh to use my specific key when connecting to github.com. I added a github entry in my ~/.ssh/config file

Host github.com
    IdentityFile ~/.ssh/id_github.pub

After doing that, the ssh command and the git push/pull commands ask for my passphrase in the terminal and connect successfully. I still don't know why when the command is run from the desktop, the dialog box for the correct key comes up. Does anybody know why this works?

Thanks!


Why does my computer freeze when I adjust the brightness?

I had this bug on my Samsung laptop.  The trick that fixed everything for me was to add a boot parameter to grub during loading.  You can test to see if it works first by rebooting the machine and pressing e when the boot menu appears.  Then edit the kernel line to add acpi_osi= after the quiet splash part. Then execute grub (I forget the exact key combo, cntl-x or something). This basically tells the kernel to "lie" to the bios that you're not running Linux.

If it works, you can make it permanent by editing /etc/default/grub to add it to the GRUB_CMDLINE_LINUX_DEFAULT parameter. Update grub by running sudo update-grub


Is using two SSD (not RAID) better for performance?

If both SSDs have the same read/write speeds, it would not matter for what you use one or the other. There can be significant speed differences though. To benchmark the read speed of a disk, you can run

sudo hdparm -t /dev/sdX

replacing the sdX with the actual name of your disk, as shown e.g. in the output of lsblk.

However, if you have separate disks, you can access both at maximum speed independently at the same time, which gives you maybe up to twice the normal data rate, but only in the rare case where you have a large enough chunk of data to read from or write to both disks in parallel, which normally doesn't happen very often. It's hard to tell whether you would notice any difference during normal usage.

Another advantage of having /home on the separate, larger SSD would be that you can easily back up only your complete data disk, or reinstall the system without messing with it (carefully though!). Also if the smaller system SSD dies sooner, your data would not be affected. It can happen the other way round as well, in that case you could restore your data backup and keep using it with the old system installation.


Have a look on the media itself - there is a folder called .disk.  In there is a file called info.  The release name is there and can be changed.

source
.
I would use ISO Master (search for this in Software Center) to alter your ISO.

At a guess, if you use ISO Master to change your master ubuntu.iso .disk/info file, then this should be carried across into your remastered custom distro.

If this doesnt work, then probably just best to use ISO Master post the build to change the release name.


How to add subdomains by defining new zones in a local DNS server

From your question I understand that you have only an A record assigned to main.mycompany.com. You can't add subdomain names to an A record. You can add subdomain names to a zone.
You need to have a NS record (one or more) defined for main.mycompany.com that points to the machine(s) where you have BIND installed (this is called domain delegation). Then you can define zones in that BIND configuration.
Using my domain rafa.eu.org as an example:
There is an A record assigned to rafa.eu.org:
raj@jarek-02:~$ host -t a rafa.eu.org
rafa.eu.org has address 217.182.79.14

but there are also (in this case three) NS records for that domain:
raj@jarek-02:~$ host -t ns rafa.eu.org
rafa.eu.org name server e.ns.buddyns.com.
rafa.eu.org name server new.rafa.eu.org.
rafa.eu.org name server c.ns.buddyns.com.

Primary name server for the domain is new.rafa.eu.org (which is in fact the same IP address as rafa.eu.org, the prefix "new" is left from the time I was migrating my server from one hosting company to another - the IP addresses were different at that time and some services were already migrated to "new" server while some were still left on the "old" one) and I could define any subdomains of rafa.eu.org in BIND configuration on that server. The other two name servers are secondary name servers that just pick up configuration from the primary server (I used a popular free secondary NS service).


Acer Aspire One 725 unstable WiFi connection

I had similar problems, I found that it was the broadcom chipset, it even fighting with the the other 'atheros' chipsets in my family to the point where there internet became unusable.

I just replace the chipset in my Acer 725 with an atheros one and all is well now.


Getting around errors with snap in order to install VSCode

You cannot use snap in WSL. Follow the instructions here to install VS Code.


dpkg: error: reading package info file /usr/local/var/lib/dpkg/status

Just creating a directory called status won't get you what you need. /var/lib/dpkg/status is supposed to be a file, not a directory as seen below:

ll /var/lib/dpkg/status
-rw-r--r-- 1 root root 3466281 May 26 06:17 /var/lib/dpkg/status

Provided all you've done wrong is delete the status file and attempt to replace it with a directory you should be able to simply issue the following commands:

rmdir /var/lib/dpkg/status

sudo cp /var/lib/dpkg/status-old /var/lib/dpkg/status

if you've somehow managed to move the entire /var/lib/dpkg branch and graft it to the /usr/local branch you'll need to move it back first.

the /var/lib/dpkg branch typically looks like this:

tree -d  /var/lib/dpkg
/var/lib/dpkg
├── alternatives
├── info
├── parts
├── triggers
└── updates

Source: shamelessly modified from this answer to this question.


How do I resolve "bash: ./SupportTool.exe: cannot execute binary file: Exec format error"?

You can't launch native Windows application through vanilla Ubuntu, you have to use WINE in order to execute them.

  Wine (originally an acronym for "Wine Is Not an Emulator") is a compatibility layer capable of running Windows applications on several POSIX-compliant operating systems, such as Linux, macOS, & BSD.

To install please refer to official documentation https://wiki.winehq.org/Ubuntu, alternatively execute following command on terminal.

sudo dpkg --add-architecture i386
wget -nc -qO- https://dl.winehq.org/wine-builds/winehq.key | sudo apt-key add -
sudo apt-add-repository 'deb https://dl.winehq.org/wine-builds/ubuntu/ bionic main'
sudo apt install --install-recommends winehq-staging

You can then launch the application through Wine

wine SupportTool.exe

You can check Wine's compatibility for Divinity 2 → https://appdb.winehq.org/objectManager.php?sClass=application&iId=18266


systemd-resolved returns server failure time to time

I'm experiencing same issue with libcurl and systemd-resolved under Ubuntu 18.04.4. Unfortunately, the only way that helps is restarting service once in a while:
sudo service systemd-resolved restart

Judging by line "central1.internal" in your config, I assume your machine is at Yandex Cloud?


ubuntu 12.04.2 - evolution 3.2.3: Is there a Logfile?

I don't know about any log file, but there are debug settings you can enable when starting Evolution from the command line. Find the full description here. In your case, you most likely want to debug SMTP, which currently doesn't have its own separate debug setting. Accodring to the linked manual, here's how you could debug that:

CAMEL_DEBUG=all evolution >& evo_debug.log

This would first enable full debug in evolution (CAMEL_DEBUG=all), and then start Evolution itself (evolution) -- while redirecting all the debug output to a file (>& evo_debug.log). This way you've got all information stored for later reference in the file evo_debug.log, which will be created in the directory where you executed above statement from. Alternatively, you can of course specify an absolute location for the log:

CAMEL_DEBUG=all evolution >& ~/evo_debug.log

would store the log file directly in your home directory, for example.


How can I restore a network manager indicator that disappeared after an upgrade to 16.04?

This answer was marked as a duplicate but was closer to my experience than the original and the only answer given solved the problem.

nm-applet not running on startup

sudo apt-get install indicator-applet-complete


How to make sudo remember my password and how to add an application to startup

First Question

If you dont want to enter password everytime,then you should edit sudoers file.

sudo visudo
Then add the following line at the end of the file.

%username ALL=(ALL) NOPASSWD:ALL

Now if you enter sudo followed by the command  it wont prompt you to enter password.

Second Question

For your second question you can add that command sudo vpnc to startup applications.
To add that command in startup applications Goto System → Preferences → Startup Applications.


First of all , if you are new to Linux , don't mess up or manually install drivers.

I am also using same BCM43142 chip. I just installed Ubuntu 15.04 yesterday after 2 months of continuous use of Ubuntu 14.04 . Instead of  manually downloading that drivers , if you used "proprietary" devices given in System-Settings > Software & Updates > Additional Drivers , you wifi chip should work fine. Look at these articles : article1 and article2 . They will probably solve your problem.


Snap packages work natively on all officially supported Ubuntu flavors, starting with 16.04 and later, in other words snap packages work on all currently supported versions.

All installed snap packages except for the core snap depend on two packages, one of which is the core snap.

snapd
core - (the core snap) which is automatically downloaded and installed when the first installed snap package is installed


Any way to recover data on a re-installed Ubuntu OS on same partition?

Any way take a look at this:

Best tool to recover removed files

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

How to recover Ubuntu partition after computer failure?

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

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

Good luck!


Set fill settings for desktop background image Ubuntu budgie 17.04

For 17.04 the default picture options for wallpapers can be set via the command line:

gsettings set org.gnome.desktop.background picture-options 'none'
gsettings set org.gnome.desktop.background picture-options 'wallpaper'
gsettings set org.gnome.desktop.background picture-options 'centered'
gsettings set org.gnome.desktop.background picture-options 'scaled'
gsettings set org.gnome.desktop.background picture-options 'stretched'
gsettings set org.gnome.desktop.background picture-options 'zoom'
gsettings set org.gnome.desktop.background picture-options 'spanned'

To reset back to the default:

gsettings reset org.gnome.desktop.background picture-options


ahh, the old "It was working fine, but now I fixed it and it doesn't work at all" scenario. You clearly have a future in helpdesk support!
In this instance I would reboot the Ubuntu server. It's possible that there is a stale record left in the mount tables somewhere.
Let us see what the following give us:

df              # This lists disks that are mounted
cat /etc/fstab  # This lists the disks in the file system table
cat /etc/mtab   # This lists disks that the system thinks are mounted


How to start and stop a task using at command?

Use pkill to kill a process:

pkill aria2c

Of course, you can schedule the killing with at the same way you do the launch.


Recovering data in increments for a large lost partition?

There are many options but It too broad to pass or expend all of them. Our refrence here is this simple recover method explained in:

Recovering broken or deleted NTFS partitions

It is always recommended to make dd or ddrescue image of the partition, then run testdisk/photorec through the image. Which means 02x 300GB free space is needed.

Both dd/ddrescue support start position and size. So you can read chunks one by one, copy to flash disk then merge them on PC2.

man dd

   count_bytes
          treat 'count=N' as a byte count (iflag only)

   skip_bytes
          treat 'skip=N' as a byte count (iflag only)

   seek_bytes
          treat 'seek=N' as a byte count (oflag only)

The disadvantage is that you have 20 rounds (300GB/15GB) of copy/paste each with a chunk of 15GB.
Setup an NFS share on PC2 and mount it on PC1, Recommended Ethernet cable connection instead of WiFi for quick transfer.

Reference: Ubuntu Server Guide: Network File System (NFS)

PC2: Server

Install NFS server

sudo apt-get install nfs-kernel-server

Setup share folder

sudo nano /etc/exports

/media/<username>/<partition-name>/<shared-folder>    *(rw,sync,no_root_squash)

Start the NFS service

sudo service nfs-kernel-server start

PC1: Client

Install NSF client tools

sudo apt-get install nfs-common

Mount the shared folder

sudo mkdir /mnt/pc2-nfs
sudo chown <username> <username> /mnt/pc2-nfs
sudo mount <pc2-ip>:/media/<username>/<partition-name>/<shared-folder>  /mnt/pc2-nfs


How to install libavcodec54 in ubuntu vivid?

Download the neccessary deb files

cd
wget http://mirrors.kernel.org/ubuntu/pool/universe/o/openjpeg/libopenjpeg2_1.3+dfsg-4.7ubuntu1_amd64.deb
wget http://mirrors.kernel.org/ubuntu/pool/universe/liba/libav/libavcodec54_9.18-0ubuntu0.14.04.1_amd64.deb
wget http://mirrors.kernel.org/ubuntu/pool/universe/liba/libav/libavutil52_9.18-0ubuntu0.14.04.1_amd64.deb

Install, in the order below

sudo dpkg -i libopenjpeg2_1.3+dfsg-4.7ubuntu1_amd64.deb
sudo dpkg -i libavutil52_9.18-0ubuntu0.14.04.1_amd64.deb
sudo dpkg -i libavcodec54_9.18-0ubuntu0.14.04.1_amd64.deb

Tested in my Vivid system

% lsb_release -a
No LSB modules are available.
Distributor ID: Ubuntu
Description:    Ubuntu 15.04
Release:    15.04
Codename:   vivid

% apt-cache policy libopenjpeg2
libopenjpeg2:
  Installed: 1.3+dfsg-4.7ubuntu1
  Candidate: 1.3+dfsg-4.7ubuntu1
  Version table:
 *** 1.3+dfsg-4.7ubuntu1 0
        100 /var/lib/dpkg/status

% apt-cache policy libavutil52
libavutil52:
  Installed: 6:9.18-0ubuntu0.14.04.1
  Candidate: 6:9.18-0ubuntu0.14.04.1
  Version table:
 *** 6:9.18-0ubuntu0.14.04.1 0
        100 /var/lib/dpkg/status

% apt-cache policy libavcodec54
libavcodec54:
  Installed: 6:9.18-0ubuntu0.14.04.1
  Candidate: 6:9.18-0ubuntu0.14.04.1
  Version table:
 *** 6:9.18-0ubuntu0.14.04.1 0
        100 /var/lib/dpkg/status


What init files will be read when opening a new tab and a new window of gnome terminal?

Yes. Opening a new tab or a new terminal does exactly the same thing: it launches a new instance of your $SHELL (bash by default) in interactive, non-login mode. What this means is that the following files are read:
/etc/bash.bashrc
~/.bashrc

If you start a login shell, bash will read /etc/profile, and the first of these it finds: /.bash_profile, ~/.bash_login, and ~/.profile. This is all explain in the Invocation section of man bash:

When bash is invoked as an interactive login shell, or as a
non-interactive  shell with the --login option, it first reads
and executes commands from the file /etc/profile, if that file
exists.   After  reading    that file, it looks for ~/.bash_profile,
~/.bash_login, and ~/.profile, in that order, and reads and
executes commands from the first one  that exists  and  is
readable.  The --noprofile option may be used when the    shell is
started to inhibit this behavior.
[...]
When  an  interactive  shell that is not a login shell is started,
bash    reads and executes commands from  /etc/bash.bashrc  and
~/.bashrc,  if    these  files  exist.

For more details on the various files sourced or executed under different conditions, see my answer here.


How to rotate a log file in ubuntu on size basis hourly?

I found the solution for the question. It is as follows:

In /etc/logrotate.d/ folder I added following lines in the rsysylog file.

/opt/variable/logs/myapp.log
{

    maxsize 100K
    minsize 100k
    hourly
    rotate 1
    compress
    postrotate
        service rsyslog rotate >/dev/null 2>&1 || true
    endscript
}

After this, I moved the logrotate file from cron.daily to cron.hourly folder and restarted the computer.
And it started working.

Thank you all for your help and comments.


Is there an application that can unlock my computer via Bluetooth?

BlueProximity is an application that lets you automatically lock / unlock your (Linux) computer using a bluetooth device such as a mobile phone.BlueProximity

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

sudo apt-get install blueproximity

Or you can download it from here

You can also try Proximity.

Proximity monitors the proximity of your mobile phone or other bluetooth device and executes custom AppleScripts when the device goes out of range or comes into range of your computer. Purpose The intent of this project is for the source code to be critiqued by other developers in hopes of improving my Cocoa programming abilities, as well as my programming skills in general.Proximity


You don't have to partition in any specific format, the Windows 7 installation has a partition manager (very limited) that will format the partition you want in the type that it needs (NTFS).


how to package my git repo and publish to my launchpad ppa

It turns out to be very simple

cd ~/workspace/logger
git tag v1.0
git checkout -b ubuntu/xenial
mkdir debian
cd debian
vi changelog
vi control
vi rules
vi liblogger-dev.dirs
vi liblogger-dev.install
vi liblogger1.dirs
vi liblogger1.install
mkdir source
vi source/format
vi compat
cd ..
git add debian
git commit -a -m "packed from git"
# Check if full build works (so we don't upload a broken source package)
gbp buildpackage --git-upstream-tag='v1.0' --git-debian-branch=ubuntu/xenial
# Build source package
debuild -S -sa
# Upload source package to ppa
dput ppa:satyagowtham-k-gmail/ferryfair.ppa ../logger_1.0-0ubuntu1_source.changes

that is all.


KDE interface too big on MacBook Pro 5,5 (Kubuntu 20.04) with Nvidia driver

Have you tried change font DPI? In font settings set force DPI to 96 and reboot.


Indicator Applet: How to get rid of the clock?

You must have somehow installed the new, under development Ubuntu clock. Go into Synaptic, and remove the package indicator-datetime. That should fix it.


GNOME password not the same as logon password

As you stated, it's asking for "Administrator" password, which is the root password and not yours. This probably happens because of passwordless sudo, although I'm not 100% sure.

You could try restoring sudo to its normal behaviour and see if that solves the problem, or just set a password for root and use that when asked.

To change root password, simply open a terminal and run

sudo passwd root

and type your desired password. This is normally not recommended because of security reasons, but given that you use no password on sudo, I supose that's not a problem for you. If you want to disable root account again, just run

sudo passwd --lock root

and it will be disabled.


OpenJDK Java 8 - When will it be made available in Trusty 14.04.x

There's an issue on launchpad for backporting openjdk-8 to 14.04 : #1368094

But if you really need it right now, you can use openjdk-r's ppa:

 sudo add-apt-repository ppa:openjdk-r/ppa
 sudo apt-get update
 sudo apt-get install openjdk-8


I had the same issue. It was resolved by installing using the Platform Packages

The process for Debian, or Debian based distros (Eg: Ubuntu)

Pre-requisites:

sudo apt-get install software-properties-common dirmngr

Note: The apt-key command is no longer required on apt 1.1 systems. It's safe to ignore any error presented.

sudo apt-add-repository 'deb http://shaggytwodope.github.io/repo ./'
sudo apt-key adv --keyserver keyserver.ubuntu.com --recv-keys 7086E9CC7EC3233B
sudo apt-key update
sudo apt-get update
sudo apt-get install drive


Does Ubuntu support the Venix 80286 file-system?

I have no access to a Venix file system, but it seems that Venix fielsystem is also known as System V filesystem.

Loading the module for sysv works on Ubuntu:

sudo modprobe sysv

So it seems the fielsystem is supported.

You should issue the following command and get the filesystem mounted;

mount -t sysv /dev/sdX /media/mountpoint

Then browes it in /media/mountpoint...

I cannot test, but it should work.


Using flock is probably the easiest way for three competing shell scripts. Let's assume you have a single path to a lock file called /run/lock/myapp.

# in terminal 1
flock /run/lock/myapp sleep 10

# in terminal 2
flock /run/lock/myapp echo "hello"

If you run these at about the same time (the first first though) the second will wait 10 seconds before running.

If you're deep in another programming language, there will be other ways to handle this better.


On the far-right of the panel, there is a button with a bubble-shaped icon on it. If you hover over it, a little box reading "Panel Tool Box" will appear.

Click the button to bring up the toolbox.
Click the "Add Widgets..." button.
In the "Enter search term.." text box type "system tray".
Click-and-drag the system tray onto the panel.


Update Manager doesn't ask for a password

This is a deliberate change in behaviour (source):

As of Ubuntu 11.10, update-manager no longer prompts for the user's password to apply  updates. This was decided to improve usability and to make it easier for users to apply security updates and therefore increase system security. The rationale is as follows:

Like in previous releases, by default only people in the admin group are allowed access to perform security updates.

Only updates for already installed software can be applied without a password. Installing additional software still requires people to enter their password.

The password prompt had become an irritant for some people such that they would just press 'Cancel' instead of installing the updates. The password prompt decreased system security for those users.

People that did dutifully apply updates became conditioned to enter their privileged password perhaps daily. When the user is prompted for the password, it should mean something and the frequency of update-manager updates meant that some people no longer thought about why they were entering their password. For these users, the password prompt had the potential to reduce security.

For environments where this change is deemed not appropriate, this functionality can be disabled by the administrator via PolicyKit or by creating users that are not in the admin group (a recommended practice to begin with).

The relevant PolicyKit policy is in the file /var/lib/polkit-1/localauthority/10-vendor.d/com.ubuntu.desktop.pkla:
[Update already installed software]
Identity=unix-group:admin
Action=org.debian.apt.upgrade-packages
ResultActive=yes

This grants permission for anybody in the admin group to update packages without having to enter a password. I've never used PolicyKit before now, but based on my reading of the manpage for pklocalauthority, to override this you should create a this file..
/var/lib/polkit-1/localauthority/50-local.d/require-password-to-update.pkla
you'll need superuser priviledges to create it, so use this command...
gksudo gedit /var/lib/polkit-1/localauthority/50-local.d/require-password-to-update.pkla
which will open a new file in gedit and put the following policy entry in it:
[Require password to upgrade already installed software]
Identity=unix-group:admin
Action=org.debian.apt.upgrade-packages
ResultActive=auth_admin

Save this and exit gedit, you can now open update manager and it will ask you to confirm your password before applying any updates.


Your plan should work just fine. With that said, I would still advise backups ;)


Antivirus installed in a computer having two OSes

Your antivirus can only see the partition Windows shows him. If Windows doesn't recognize the file system used it will not mount/list them. Hence your antivirus (nor virus, nor any kind of malware) cannot access it.

Ubuntu (and Linux in general) is quite secure without antivirus (of course no antivirus can protect you of scams or spam, so stop clicking girls!) for reasons mentioned countless times. You actually doesn't need an antivirus to protect Ubuntu from Windows viruses.

More related questions:

Do I need to have 'antivirus software' installed?
Why aren't viruses an issue?
What is the Ubuntu "built in virus protection"?
Is there any guarantee that software from Launchpad PPAs is free from viruses and backdoor threats?
What if I run a virus/trojan Windows EXE on Ubuntu with Wine?


18.04 flashes black screen and lock screen several times during login

I got same problem and tried to fix it for some time.

Try this one, this worked for me:

gsettings set org.gnome.shell.extensions.dash-to-dock transparency-mode FIXED

I found this solution here: https://ubuntuforums.org/showthread.php?t=2404491

Another user reported success by removing ubuntu dock extension

sudo apt-get remove gnome-shell-extension-ubuntu-dock

( I didn't tried this one jet, waiting for results after transperency-mode change )


How to use Xvfb in Ubuntu 14.04 with/without RandR?

After hours of struggling the error is still there.
But finally I've figured out, that it's more like a warning and that Firefox actually starts. Moreover, my Selenium-Tests are running.

The actual problem was, I used an old Selenium Version and the newest Firefox. And they didn't work well together.


Bash incrementing bash string - from text file

accountsdb=`cat test.db | sort`
namex="0"
nameplus=0
ftpfullname="turner"
for output in $accountsdb
do
  if [ "$ftpfullname" == "$output" ]
  then
    let "nameplus += 1"
    for i in $nameplus
    do
      echo "$nameplus"
      echo "$i"
      if [ "$namex" == "1" ]
      then
        ftpfullname=${ftpfullname%?}
      fi
      namex="1"
      ftpfullname="${ftpfullname}${i}"
      break
    done
  fi
done
echo "$ftpfullname"
echo $namex
echo "$ftpfullname" >> test.db


AO522 ubuntu 12.10 several reboot incase of black screen

I think my problem is solved. I found that my USB gamepad is bad,because when I unplugged it, my system always works properly.

I found this solution from the dmesg file. At the end of it showed a USB drive error.


Can I Install packages or softwares to live Ubuntu USB Drive?

Yes you can. You need to give the live USB a persistent file storage area (called Casper)

Here is a guide
https://help.ubuntu.com/community/LiveCD/Persistence

Another alternative is to actually install Ubuntu to your USB disk and run it off that (USB 3.0 or higher is best, and you need a BIOS that will boot it reliably. I've had mixed success with different boxes on this one).


After a lot of help from @Gunnar Hjalmarsson I've managed to solve it.
In /usr/share/X11/xkb/symbols/se I changed key TLDE to
     key <TLDE>  { [   greater,    less,    bar, threequarters]  };

And then I relogged in and it works! The change will be overwritten next time xkb-data package updates, so I'll save a copy in my home folder.


Looks like a problem with ALSA. Try reinstalling it:

sudo apt install --reinstall linux-sound-base alsa-base alsa-utils libasound2 linux-image-`uname -r`

and reboot. I had the same problem a while ago and it worked.


Asound finds soundcard, but pavucontrol doesn't

This made it work again for me when I had similar symptoms (in manjaro):

mv ~/.pulse/client.conf ~/.pulse/client.conf.old
killall pulseaudio
pulseaudio --start --log-level=4  # or logging out and in should work as well

and waiting for a few seconds.

I had (and am still having) issues due to jack audio though, not because of nix, so this might not work for you.


Switch user sends me to the lock screen - what do I need to do to make this work?

Click on "Change User" on the lock dialog, and then on "Others...".

You should have another user available, obviously.


Is it possible to let date return its result in ISO 8601 format by default

bash "aliases" are the answer. Here's a snippet from my ~/.bash_aliases:

#
# Various timestamping commands
# ds 15Aug27
alias ds="date +%y%b%d"
# timestamp "11May14-191416"
alias timestamp="date +%y%b%d-%H%M%S"
# today "20110514"
alias today="date +%Y%m%d"
# tshhmmss "11May14-191540"
alias tshhmmss="date +%y%b%d-%H%M%S"
# tshhmm "11May14-1916"
alias tshhmm="date +%y%b%d-%H%M"
# tsymd "2011-May-14"
alias tsymd="date +%Y-%b-%d"
# tsjou "18-11-01 01:55:28" for journalctl --since
alias tsjou="date '+%y-%m-%d %H:%M:%S'"
# tsiso "2020-02-18T13:31:37-05:00"
alias tsiso="date --iso-8601=seconds"

The one you want is the last, tsiso.

Aliases make date, among other commands, much more useful. Read man date;info date and you can do almost anything with date.


Apache2 Alias ignored: "File does not exist" despite no trailing slash and rewrite enabled

Note to readers: Please read Henning Kockerbeck's comments. Apache 2.4 virtual hosts functionality is well described in the official guide. The following answer is out of date.

The best explanation why the procedure works is the following (from the documentation):

  When a request arrives, the server will find the best (most specific) matching  argument based on the IP address and port used by the request. If there is more than one virtual host containing this best-match address and port combination, Apache will further compare the ServerName and ServerAlias directives to the server name present in the request.

If you haven't disabled the default site 000-default you now have two <VirtualHost *> declarations, and the default one is not name-based. Apache cannot distinguish between them, and in order to solve the ambiguity it will simply ignore the second one. You can proceed in three different ways:

You may choose to disable the default site, or
You may choose to make your new virtual host listen on a different port, or
You may choose to convert the default site into a name-based virtual host by editing 000-default.conf, uncommenting the ServerName directive and assigning a different name to it.


How to exclude a package from apt-get autoremove?

Use apt-mark

$ man apt-mark
...
manual
       manual is used to mark a package as being manually installed, which will
prevent the package from being automatically removed if no other packages
depend on it.

So

sudo apt-mark manual <package-name>

Now autoremove won't remove it.

To undo

sudo apt-mark auto <package-name>

Now autoremove will remove the package if it is not a dependency of any other package.


Bluetooth - Connection Failed: blueman.bluez.errors.DBusFailedError: Protocol Not available

The solution from this article worked for me:

sudo apt-get install pulseaudio-module-bluetooth
pactl load-module module-bluetooth-discover

Then delete the device from bluetooth devices and pair it again.

If it works, you can consider adding the second command to your startup settings, so that you don't have to run it again after every reboot.

If it doesn't work, try restarting pulseaudio:

pulseaudio -k
pulseaudio -D


How do I create one user without key authentication?

Assuming that you mean that you want to permit a particular user to use a password when nobody else can, add the following to the bottom of your /etc/ssh/sshd_config file:

Match User rishee
    PasswordAuthentication yes
    KbdInteractiveAuthentication yes

Then restart ssh:

sudo service ssh restart


To my knowledge, there isn't a program through which to configure the 4G dongle.

To enable/disable Airtel 4G dongle

Paste the following into a .html file:

<form action = "http://192.168.0.1/goform/goform_set_cmd_process" method = "post">
 <input type="checkbox" name="goformId" value="CONNECT_NETWORK" checked style="display:none;">
 <BUTTON name="submit" type="submit"> Connect </BUTTON>
</form>

<form action = "http://192.168.0.1/goform/goform_set_cmd_process" method = "post">
 <input type="checkbox" name="goformId" value="DISCONNECT_NETWORK" checked style="display:none;">
 <BUTTON name="submit" type="submit"> Disconnect </BUTTON>
</form>

Save the file and open it with your preferred browser.

Click the Connect or Disconnect buttons to enable or disable the dongle.


Probably you should set a default VGA card used during boot. That can be done in BIOS.


Ubuntu Server 20.04 - Raspberry Pi 4 - Unmet Dependencies libjson-c-dev

By default, Ubuntu Server doesn't ship with a compiler, e.g. gcc, autoconf, make, etc. I rectified this by installing all three (in case another project catches my eye that needs one of them). Give that a shot and let me


How to install software on an offline ubuntu PC? My "online" PC is running windows

This will depend greatly on how the software is distributed. If it’s a .deb file, then you have a couple of options:

Using a GUI, right-click on the .deb file
Choose “Package Menu”⇢“Install Package” (it might be named something slightly different. I don’t have a 15.04 installation anywhere to confirm with)

If you prefer to use the terminal, then:
sudo dpkg -i whatever.deb

You will want to have the installation media for Ubuntu nearby in the even there are unmet dependencies, as many of the core packages can be found on there.
The other option would be to compile the application from source. Generally the process goes:

Download a file with a .tar.gz or .tar.bz2 extension
Decompress it
Check for dependencies with ./configure
Compile with make
Install with make install

Hopefully this will give you what you need.


Try reinstalling the gnome-session package:

sudo apt-get install --reinstall gnome-session


Can't update Eclipse Juno in Ubuntu 12.10

Well, answer to this question is quite surprising, and I can't explain why the following solution works, but as a matter of fact it does work!

You need to do nothing in the config files, and no command line arguments to the eclipse command either (while starting eclipse).

All that needs to be done is this: set proxy to manual mode, and set only HTTP and HTTPS values for proxy. Make sure you keep the SOCKS proxy empty.

This solved the problem for me!


17.04: using matplotlib with GTK-based backend?

Problem solved... while restoring files from my earlier system, I had inadvertently copied an installation of matplotlib in ~/.local/lib/python2.7, and it was this version, rather than the Ubuntu version that was running and giving the error.


How do I change default keyboard layout (not input method) in Ubuntu 16.04?

In a shell:

sudo dpkg-reconfigure keyboard-configuration


How to create new resolutions for my old notebook

Here are the steps that I used to keep xrandr commands permanent. First, make a file in your home folder called .layout.sh. Next, open it with your favorite text editor. Put the following line at the top: #!/bin/bash. You will need to add the .layout.sh file and run the command for all of the users who you want to have the monitor settings.

Basically, this runs the XRandR commands when you login.


Which system monitors are able to show me a non-rounded memory usage?

watch -n1 'ps ax -o "vsize cmd" | sort -n | tail'

Run ps command with custom output format, sort numerically from lowest to highest memory usage, get the last few entries (optional). And run it continuously with watch and two single quotes to treat the piped command as literals


xfce4-notes: Toggle notes visibility via keyboard shortcut

Well there is xfce4-popup-notes that can make notes visible but does not toggle it! Although you have to use the Esc key to hide it again!


How to check for a matching pattern in bash?

Using case

To check if a shell variable starts with ABC or ABD, a traditional (and very portable) method is to use a case statement:

case "$value" in
  AB[CD]*) echo yes;;
   *)      echo no;;
esac

Because this requires no external processes, it should be fast.

Using [

Alternatively, one can use a test command:

if [ "${value#AB[CD]}" != "$value" ]
then
   echo yes
else
   echo no
fi

This is also quite portable.

Using [[

Lastly, one can use the more modern and less portable test command:

if [[ $value == AB[CD]* ]]
then
   echo yes
else
   echo no
fi

Reading the file and testing all in one step

To read the first nonempty line of a file and test if its first field start with ABC or ABD:

awk 'NF{if ($1~/^AB[CD]/) print "yes"; else print "no";exit}' file


A workaround that worked for me

I installed first (I did not had it installed):

sudo apt-get install cups-pdf

Then I printed the PDF from Evince using the new PDF printer that is added by cups-pdf first. The output goes to ~/PDF (can be configured in /etc/cups/cups-pdf.conf).

Then I opened the pdf file generated by cups-pdf printer to Evince and printed it again to my real printer.

It worked.


package to install depends on old kernels that were removed

If package A (here, linux-image-extra-*** and linux-signed-image-***) depends on package B (here, linux-image-***), it is a problem if package A is installed while package B is not. There are two ways to solve this problem: install package B, or remove package A.

apt-get install -f tries to do the former, but here, it is clear that what you want to do is remove the unwanted packages, so just do it™:

sudo apt remove linux-image-extra-4.10.0-28-generic linux-image-extra-4.10.0-35-generic linux-image-extra-4.10.0-37-generic linux-signed-image-4.10.0-35-generic linux-signed-image-4.10.0-37-generic

Yes, all in one command, not separately. And in the future, please always remove package with Apt, not dpkg.


Jeroen,

You could try this:

Open nm-connection-editor by your terminal;
Select the wireless tab;
Select the unsecure network, than Edit...
Uncheck the option: Connect automatically.


Added PPA but apt-get update shows that it's URL is being ignored

This:

Ign http://ppa.launchpad.net/stebbins/handbrake-releases/ubuntu/ lucid/main Translation-en_GB

is an attempt to find localization packages from the PPA for your locale. There is no en_GB localization available in this PPA so it's ignored.

The PPA itself should not be ignored and be listed some where else in apt-get update output.


Allow only a specific ip address to an open port

You can use iptables for this

iptables -A INPUT -p tcp --dport 7071 -s 1.2.3.4 -j ACCEPT
iptables -A INPUT -p tcp --dport 7071 -j DROP


Random black screens, black screens after log out, and random black flashes on boot. Please help

Can you get to a command line with Ctrl-Alt-F1?  And if so can you login through the terminal?

If so you might be duplicating Desktop login fails, terminal works

Or
Ubuntu gets stuck in a login loop

Or
https://askubuntu.com/questions/130387/stuck-at-login-screen

Or possibly,
12.04 installation started to black screen during boot today


To change the icon of a folder in 18.04.3, you'll have to right click on the folder, click properties, then click the icon in the properties dialog:

And select a custom icon

That's it.


Cannot boot Ubuntu or Windows 7 after install Ubuntu 13.10

I guess, the Linux partitions was damaged, so you need to reinstall Ubuntu again and install grub2 into /dev/sdg not /dev/sdgx!!! I an very intresting in where is /dev/sda? /dev/sdb? etc.