Ubuntu 13.04 slowing down due to X taking 50-100% of CPU

I think the nVidia driver you reference is a kernel module.  This means you have to unload and "blacklist" nouveau (or any other such kernel video driver).  The installation of the nvidia proprietary driver usually does this by making modprobe configuration entries.  But unless you're very familiar with how these drivers work (as in, bind to the text console), and you can poke around in /sys to deactivate them, you'll have to reboot.  That will basically "purge" nouveau and allow nvidia to take effect.  Then nvidia-settings can use its proprietary protocol(s) to manipulate the nvidia kernel module.


The Boot Repair output to which you've linked indicates that you've completely deleted your Windows installation; the disk has nothing but Linux partitions and the EFI System Partition (ESP; where boot loaders reside). You'll have to shrink /dev/sda2 and re-install Windows 8.1 to get it back.

If you had any important user files on the computer, stop using it now! You may be able to recover some of them using a tool like PhotoRec, but the more you use the computer in the meantime, the more likely it is that you'll destroy whatever data might be left over from your previous Windows installation. Note also that there are Windows tools that may do a better job than PhotoRec at recovering Windows files; but I don't know offhand what those tools are, so I can't provide any references or recommendations.


How to create live Ubuntu CD and connect using android USB tethering.

1) Go to the Ubuntu Download page http://www.ubuntu.com/download

2) Select "Try it from a CD or USB stick and then select USB to see the detailed instructions.

3) Once the live session is up and running, connect the android device and select "USB tethering", this will show additional "Wired connection" in Ubuntu and you will be able to connect to the Internet using it.

As Ubuntu comes with android drivers (tested with my HTC Evo and Ubuntu 11.10 32bit). The connection should be up and running in seconds.


Why was I asked to create a password in order to disable secure boot on initial installation of Ubuntu 16.04?

UEFI Secure Boot protects your boot loader from being tampered with by using a combination of CA keys and signatures in boot files.  Microsoft for example has signed boot loaders for which CA keys are already present in UEFI firmware of most PC's already.

This only protects the very early core of the loader and nothing afterwards.  For example initrd(initramfs) is not protected, or anything after (GRUB, kernel, Modules, Drivers, anything in userspace, etc).

3rd party software that you installed MAY have included certain low-level PCI or RAID code required for the boot loader, which is why you need to create a password, which will create a key in the UEFI firmware's space.  After modifications, if the system notices something different at boot time, the BIOS will stop at POST and ask for the same password you entered during installation to prove that you are the one who installed the software.  This method insures that a user physically sitting at the computer is entering this password as confirmation since no software can be loaded at BIOS POST time to fake this.

For most user systems, secure boot does little to protect you.  It does not prevent viruses or malware, or installation of those.  All it does it prevent low-level bootloader tampering, which is usually prevented by basic antivirus or OS security anyways.  In my opinion, and according to most documentation out there, it can be safely disabled.


Wine or virtual machine (VirtualBox) to run apps (eg. Photoshop)

Compatible Wine applications can be found here.

Wine based applications are often said to have an equivalent speed as running on Native Windows.  I have seen reports that claim Wine based applications run faster.

The database presents a colour coding describing the stability and issues found when running the Windows application under Wine.

Platinum rated applications will work without any issues for a particular version of Wine.  The keypart of that statement is the version of Wine.  It comes in two flavours:

Wine 1.2 from the repository is the recommended stable version of Wine.
Wine 1.3 (also from the repository) is the current development version of Wine.  It will be updated every two weeks with fixes - and regressions.

Thus, if the winehq.org database says that it is Gold/Platinum rated under a version 1.3.x then the application will run close to the native Windows speed, but with the understanding that the stability could be affected with the next development update.

If you want rock-solid stability then stay with either a dual-boot Ubuntu/Windows installation, or you can use a good virtual solution such as VirtualBox or VMWare.  This will give you the same stability but with the speed sacrifice of running a virtual solution - this can be anything between 5 to 30% (or more) depending upon the type of Windows application and the type of virtual hosting solution.

Graphics intensive based applications tend to suffer more under a virtual solution due to the reliance on virtual graphics driver - this driver tends to give basic graphics performance for 2D based applications.  Hence, games rarely run well under a virtual solution.  Recent VirtualBox versions claim to have good 3D capabilities with newer Graphics cards.

Since Photoshop is graphically intensive, you perhaps should consider running this virtually only if you have a very good graphics card - you should also consider installing any proprietary driver such as NVIDIA or ATI Catalyst.


This turned out to be a general problem with OpenGL being inoperative. Here's how I eventually solved it: How to repair OpenGL on Ubuntu 19.10?


No background image with Ubuntu 18.04.1 with i3

Install feh if you haven't already.

sudo apt-get install feh

at your i3 config file (probably at ~/.config/i3/config) add the following:

exec_always --no-startup-id feh --bg-scale ~/pathtoyour/image.jpg

This is what I currently use to display my background.


The message cannot execute binary file: Exec format error shows you have download wrong architecture.

Here you may downloaded 64-bit version of Eclipse Kepler for 32-bit system(Ubuntu).

If you are running 32-bit system, Download -> eclipse-standard-kepler-SR2-linux-gtk.tar.gz

Else If 64-bit system, Download -> eclipse-standard-kepler-SR2-linux-gtk-x86_64.tar.gz


Ubuntu 12.04 installation freezes at 64%

When you boot up, select the option that checks the CD for errors.


For a RAID option during installation using Raring 13.04 media, your best bet is the minimal ISO, either 32-bit or 64-bit.  These ISO's are a text-based installer which will present you with the option for Software RAID during the install.  You must select the "Manual" partition option to be able to select Software RAID.

Keep in mind that these ISO's require an active internet connection during the installation process.  The installer downloads many of the required packages including the desktop flavour of your choice and some additional add-on's, if chosen hence the term, "minimal".

The Software RAID option was to be included in Ubiquity for the Raring 13.04 desktop installer, but it is simply not there and there has been no notable news about this for the time being.

The minimal ISO links for Raring follow below,

Raring Minimal 32-bit ISO

Raring Minimal 64-bit ISO


The system reports 200Gb is used while there is only 40Gb

I would cd /, sudo du -sh * |sort -nr should give you the director that is taking up the space. and you can go from there.


Go to your /etc/udev/rules.d/
Edit your .rules file and change Name="wlan0" to Name="eth0" and temporarily name your eth0 to eth1
Restart your machine and fire up the activation script.

This should work. You can revert back to the original names after you activate Matlab.


How to use persistent and two(at least) casper-rw partitions on the same computer?

I think persistent-path works only with a casper-rw file, and not with a partition.
There are two alternatives with partitions that I can suggest.

Relabel the casper-rw partition that you don't want to use to something else, e.g. casper-rw0 (you know this alternative already).

If you use Ubuntu 20.04 LTS or newer, you can relabel the partition that you want to give priority to writable, and it should be selected (when detected) before the partition with the label casper-rw. This alternative may be more attractive.


Installed 16.04 but cannot get machine to direct boot to Ubuntu

Try this:

First boot into ubuntu in the way you are able to then:

Open up the terminal by pressing CTRL + ALT + T,

now type in sudo apt get install grub*.

After the installation try rebooting your system and see if this makes any difference.


This should fix the problem in 13.10 and 14.04:

In the ubuntu software center, install "dconf Editor" (dconf-editor) (if you don't already have it). Open it, then open desktop -> ibus -> general. Now enable the property "use-system-keyboard-layout". (You want it to have a checkmark next to it.)

Source: https://bugs.launchpad.net/ubuntu/+source/indicator-keyboard/+bug/1240198


Use a virtual machine, i.e. virtualbox or Vmware.

Here is a link that has a complete "How To" which will show you how to install and configure VIrtual Box on Ubuntu.

Install windows 7 through virtual box


I have a reddragon keyboard and it requires a special driver called "aziokbd" By swoogan on bitbucket. I'm not sure if you would need the same.


Lan is Working . But Wifi isn't connecting

It may be requirement of any  propriety driver.You can check it with searching additional drivers in dash. Open it It will automatically search for propriety drivers for your wifi and click on install button.


All downloads (torrents):

Ubuntu 16.10 Desktop 32-bit
Ubuntu 16.10 Server 32-bit
Ubuntu 16.04.1 Desktop 32-bit
Ubuntu 16.04.1 Server 32-bit
Ubuntu MATE 18.04 Desktop 32-bit

Next time please refer to their download page:


access phpmyadmin on localhost & reconfigure phpmyadmin: ERROR 1045 (28000): Access denied for user 'root'@'localhost'

The problem occurs when apache is not configured correctly. All I had to do was to edit /etc/apache2/sites-available/000-default.conf. Right after

DocumentRoot /var/www/html

add:

<Directory "/var/www/html">
    AllowOverride All
</Directory>

Also, as mentioned before, you have to set this line at the end of /etc/apache2/apache2.conf

Include /etc/phpmyadmin/apache.conf


Strange Black Square at the Top-Left Side of the Screen in Xubuntu 14.04.3

Xubuntu 12.04.5 user here, I launched xwininfo command from a shell, and point to the black rectangle, it says:

  xwininfo: Window id: 0x240007d (has no name)

launching command xkill -id 0x240007d did close the black rectange.

The window id is not the same every time: this time wininfo shows an id of 0x360007b.

Moreover, I played an openGL game and the rectangle is no more black, but shows a bit of game graphics.


Just joined. Looks like there's a bug in the installer Ubuntu 21.04 failing to install grub/efi bootloader in macbook.
What I did is... after installing Ubuntu 21.04, I booted again from live USB, download refind_0.12.0-1_amd64.deb (link here) and install using dpkg -i, select yes when asked to "install". Then reboot.
I didn't mount any drive partition.
This solution works for me, since I'm also multibooting OS'es. Hope it helps.


Type

sudo chmod -R 777 (location of your floppy disk mount point)

This makes you the owner.


Why does a Python program I write in Windows not work in Linux?

It's very likely the program you wrote will work in Ubuntu, but because Linux and Windows have very different API structure, you would need to recompile or run the program in a Python interpreter on the Linux system to have it work.  Linux in general doesn't recognize Windows .exe files, though if you have Wine installed, your system may attempt to run the program as if it were a Windows program, using Wine to service its system calls -- and this might even work, depending how your pyinstaller structures the executable.


How do I correctly install ubuntu on a USB Flash Storage? (Specific Problems)

In case you still need some help with the issue:

As the other comment mentioned it, you can't install Ubuntu on the same USB you booted from (as far as I know).

Although many live USB creation tools enable you to choose a persistence mode, in which you can keep your files etc. I am not sure if you can enable it afterwards, but I doubt it. EDIT: I stand corrected. See the comments, you indeed can enable it afterwards!

In case you want to install it on another device, like a portable HDD or something, here is a quick rundown for the partitioning.

I set up my Linux distros via the manual partitioning, because I had several instances where Linux chose weird formats or crazy partitioning scheme.

You should be able to identify the overall device from the partition menu. Often the bootloader option in the bottom is able to tell you which /dev/sda is which device and hopefully you have your desired device with a category as "free space" (or you mark that device and create a new partition table, see link for images).

Then you proceed with the partitioning by entering your desired settings, choose the device for the bootloader and yeah, you're done. Here is a pretty good explanation. Beware that you still need some amount of space for the / (root) partition and swap. I did not test it, but I assume that the same rules apply for USB as for other disks, meaning that without enough swap space you won't be able to hibernate.

Hope that helps a bit.


Try to do this:

Open a terminal.
Input: sudo passwd
Write your user password.
Write the same password.
Write the same password.
Try to install the extension again and write the user password.


Unity bar and top panel bar have disappeared

You can try unity --reset from a terminal. The manual says:

--reset
          This option allows the user to reset profile parameters in  com‐
          piz and restart the Unity shell with default settings.

It should restore unity settings to the original.


It could be many things causing the battery to drain, the first cause being the screen.

I'll try to help you, follow my steps.

Plug your laptop's AC power to begin with.

Open the terminal and run:

sudo apt-get install xbacklight.

After you installed it run this other command:

xbacklight -set 10

If you have bluetooth and don't use it turn it off.

If you're not using WiFi turn it off too.

sudo iwconfig wlan0 txpower off

and

sudo iwconfig wlan0 txpower on

to turn it back on.

To make the processor drain less battery you can use the power saving feature:

echo 1 > /sys/devices/system/cpu/sched_mc_power_savings

Now, the hard disk spinning isn't energy-free so you could tune it to spin only when necessary. Run this to install Hdparm:

sudo apt-get install hdparm

then run this command:

hdparm -i /dev/sda

if you see AdvancedPM=yes in there go on and run this other command to enable power saving for the hard disk:

hdparm -B 1 -S 12 /dev/sda

Finally let the battery fully charge, reboot, then unplug the AC power cable and see if the battery consumption changes.


When you say "Office desktop" you probably mean "corporate computer" and the corporation you work for will have all kinds of protections in place that will actively block "visitors" to the corporation from just surfing the Internet. (like proxy servers, certificates, authentication, ...)

By booting your corporate computer with an Ubuntu image, you've just turned it into a "Visitor's computer", so you should talk to your IT department on how to obtain Internet access for visitors and apply that procedure to your Ubuntu install.


You can use the Rewrite module of Apache.

First, make sure it is enabled in Ubuntu with the following command:

sudo a2enmod rewrite

If you add the following configuration to your virtual host, any subdomain of domain.com will be redirected to a subdomain of domain.es.

RewriteEngine on
RewriteCond %{HTTP_HOST} ^(.+)\.domain\.com$
RewriteRule ^/(.*)$ https://%1.domain.es/$1 [R=301,L]

Explanation:

RewriteCond %{HTTP_HOST} ^(.+)\.domain\.com$

This condition will look into if the host matches the pattern *.domain.com and store what was matched with (.+) (i.e. the subdomain). For example, the pattern domain.com will not match, while the following patterns will match:

dan.domain.com
www.dan.domain.com

RewriteRule ^/(.*)$ https://%1.domain.es/$1 [R=301,L]

This rule instructs Apache to redirect to a subdomain of domain.es. %1 contains the value matched in the previous RewriteCond directive. While $1 contains the value matched in this directive so you can keep the path as is and not redirect to the root of the domain.

Examples:

dan.domain.com will redirect to https://dan.domain.es
www.dan.domain.com will redirect to https://www.dan.domain.es
dan.domain.com/example will redirect to https://dan.domain.es/example
www.dan.domain.com/example will redirect to https://www.dan.domain.es/example


Ubuntu 13.04 Scrolling not precise enough, jumps whole pages

As far as i'm aware there isn't any graphical way to alter your mouse scroll speed across the entire system so we have to change it at the input device through xorg.

First we find the name of our mouse device whose settings we wish to change

xinput --list

with the name and id of the device we can find out what properties your device has that we can play around with

xinput --list-props id

where id is the id of your mouse input device.

Hopefully you see a bunch of properties and their values. You are looking got the Evdev Wheel Emulation Inertia property. Contrary to other systems the higher the value the slower your scroll speed will be. You can alter this by running:

xinput set-int-prop "device id" "Evdev Wheel Emulation Inertia" 16 5

Where device id is the id of your device. And then alter the integer "5" at the end. 16 is required for some formatting purposes, just alter the last integer.


Why pressing the left arrow key in MonoDevelop's code editor panel changes the panel focus instead of moving the cursor?

Disable IBUS.

This is mostly the cause for such breaks - it's a known bug in the IBUS daemon.


Problems with installing bcmwl-kernel-source. ubuntu 13.10 on MacBook Pro

You were not connected to the internet hence why 'server could not be resolved'.  The problem is that the proprietary drivers you used on the live usb need to be downloaded in your fresh installation.

There are a few solutions that I came across when experiencing this on my mbp:

Establish a wired internet connection - this will allow you to download updates and select the broadcom driver.
Set up a new bluetooth connection to a mobile device and use the tethered connection to download the drivers and updates.
Download the packages and dependencies manually by booting from the live CD (or another computer) and copy them over to your disk.

Hope this helps.


Right-- snaps need to include all of their dependencies, so for instance the ownCloud snap bundles its own Apache, its own MySQL, etc. This is doable, but it's something you'd have to support in the snap that bundles the web server.


How to grep sequence of fasta using list of IDs in another file?

You can have grep read patterns from a file, one pattern per line, with the -f option:

grep -x -F -A 1 -f 'File 2' 'File 1'

Additionally,

-F interprets patterns literally and not as regular expressions,
-x only matches entire lines,
-A N prints N lines following each match.


Migrating from Windows 10 to Ubuntu 16.04 LTS without loosing data in "D:" drive

You can dual boot with Windows and Ubuntu
The advantage of keeping Windows is:

You can install BIOS and firmware updates for your hardware from Windows which aren't available from Linux/Ubuntu.
You can keep a working copy of Windows to access Internet for support if Ubuntu is broken.
You can have a transition period of working with files in Windows that haven't been converted to Ubuntu yet.

Shrink Windows 10 from 149 GB
In order to make space for Ubuntu you can shrink your Windows partition (from within Windows Explorer) from 149 GB to about 40 GB. This will leave you with more than 100 GB for Ubuntu which, for most users, is more than enough for the short term.
Keep your Windows 10 data files on D: partition.
You can keep your D: drive as is with Windows data files. Over time you can convert them (if necessary) into Ubuntu/Linux format. Ubuntu can access the files on D: partition via nautilius (file manager called Files in newer versions of Ubuntu).
Later on if your 100 GB of Ubuntu programs and data on C: drive hits 80% you can use Windows Explorer to shrink the size of D: from 315 GB to say 100 GB and make way for a new Ubuntu partition of 215 GB on D: drive.
A new partition is usually possible because over time you discover Windows data files on D: that are no longer needed and you have deleted to free up space. For example you have a Windows Excel spreadsheet called Monthly_Payroll_hours.xls which you convert to Ubuntu LibreOffice Calc spreadsheet called Monthly_Payroll_hours.ods. After conversion you delete the Windows spreadsheet freeing up more space on D: for future "shrinking"


Dual boot Ubuntu 12.04 and Windows 7 PROBLEM

After installing Ubuntu you can manually add Windows 7 to your GRUB menu:

sudo -H gedit /etc/grub.d/40_custom

Follow instructions in this article on technologytales.com. Or you could try a GUI program GRUB Customizer.


How to increase the size of /home in a vmware ubuntu?

Resize will not work on a mounted partition, you need un-mount the /home before you can resize it.

Try the following:

Set a root password, you need to login as root user

$ sudo passwd

Login as root user on e.g. tty3 (via STRG+ALT+F3

Ubuntu 18.04.2 LTS somehost tty3

somehost: root
Password:

Make sure, all other user have logged out, then you can un-mount the /home folder

$ umount /home

When the umount was successful, you can resize the file system on the partition /dev/mapper/vgroot-home and mount the folder again

$ resize2fs /dev/mapper/vgroot-home
$ mount /home


Your additional interfaces have no routes aside from the local route; so using these interfaces will not allow you to route traffic to the Internet.  To configure these vlan interfaces to reach the Internet, you will need to add a 0.0.0.0/0 route to each interface.
You will also need to use routing policies, to ensure traffic for each interface is handled symmetrically, rather than having multiple default routes that interfere with one another.
Also, if your only goal is to have three IP addresses, there is a much simpler way to do this without the use of VLANs:
network:
  version: 2
  renderer: networkd
  ethernets:
    eno1:
      dhcp4: yes
      addresses: [A/24]
      addresses: [B/24]

You do not have to configure a different interface, or use VLANs, in order to have multiple addresses.  If there are other reasons that you require the different addresses to be on separate segments, then VLANs may be appropriate, but they are certainly more complex.


How do I install Ubuntu 11.04 onto a 4 GB usb drive?

Go to ubuntu dowload page and follow their, very clear, instructions (There is a big red button there, ``show me how''). If you want to do something a little bit more exotic tell us what you want to do.


Ubuntu 16.04.6 freezes during shutdown and restart

To answer my own question. After trying all the solutions from the internet which are mentioned in the question itself and even after trying different OS(Ubuntu 18.04, Linux Mint) finally I figured it out what was causing the issue. There is one entry in BIOS known as "USB 3.0 Configuration in Pre-OS" which was Enabled by default. Once the entry was Disabled shutdown, restart everything started working fine. Also to mention now I have completely moved on from windows and now running only linux OS. For some people turning Off "USB 3.0 legacy" mode might also work.


Sporadic messages output to console after logging in

These are boot messages, which as you can see report processes and services being started. Typically, you can find them for troubleshooting in /var/log/boot.log after you booted and logged in. Now, it is unclear why you are getting them after logging in, but what you can do is the following workaround: add reset command to the end of your .bashrc file, which will clear and reset the terminal each time you login


How can I force Network Manager to associate to a specific access point?

First, find the BSSID (MAC address) of the AP that's further away. See this answer on how to get it.
Then click on the NM indicator → choose Edit Connections... → then click on the Wireless tab. Find the SSID in the list and click on Edit.
Now rename the connection to make it easier tell them apart and untick the Connect automatically checkbox. Also enter the address of the AP in the BSSID field.

(source: xrmb2.net)
That's it. You'll still see both APs in the NM indicator with the same name (don't know if you can change that), but your computer will only automatically connect to the closer one.


Not able to install certain gnome-shell extensions

it seems that, there is a version confusion. and that's why the dependencies problem.

i suggest you remove all of your extensions.
and add the webupd8 ppa.

sudo add-apt-repository ppa:webupd8team/gnome3
sudo apt-get update

. as shown in this article. and then install it all again from there.by going to the synaptic package manager. so you can see all the listed packages and extensions available in the ppa.


Can I configure gnome to show open windows on the dock individually?

That is how the Ubuntu Dock works by design. That is also how Alt+tab works by design. Yet, you can configure your system more to your liking.
Install some officially supported gnome-shell extensions with the terminal command
sudo apt install gnome-shell-extensions
Install Tweaks to allow enabling/disabling extensions with the command
sudo apt install gnome-tweaks
Customizing the taskbar
Option 1
Open "Tweaks". On the Extensions tab, enable "Windows list". This gives you a taskbar with one button (icon and text) for each individual window. Optionally, "disable Ubuntu dock" to disable the dock.
Option 2
This is kind of an option on steroids. Install the not officially supported, though excellent extension Dash to Panel:
sudo apt install gnome-shell-extension-dash-to-panel
In Gnome Tweaks, turn Ubuntu Dock off, then turn Dash to panel on. The extension will merge the dock with the topbar into one bottom bar.
At first, the extension will work the 'modern' way, i.e., showing one icon for each application. The extension is extensively configurable, though. In Gnome Tweaks, click the gear icon next to the extension to access its options. On the "behavior" tab, turn "Ungroup applications" on, and tweak using the gear icon.
Windows on switcher individually/ungroup: Alt+tab
Option 1 Leave as is, but know you can switch individual windows of an application with Alt+Key Above tab
Option 2 Switch to the Window switcher instead. In "Settings", "Keyboard Shortcuts" tab, set the shortcut key for "Switch windows" to Alt+Tab. The officially supported "Alternatetab" extension that also does this will not anymore be available in newer versions of Ubuntu.


Pydev 5.0 requires Java 8 as mentioned on their home page. Version 4.5.5 is the last release to support Java 7.


How to prevent LXDE from popping up a textbox when I press Super+?

The action of pressing a alphanumeric key while the desktop is in focus, moves the focus to an application or to a file or to a folder present on your desktop whose name starts with that alphanumeric character. If there's more than one match, you'd need to type in additional characters until the item you wish to select (or find) is highlighted. It's a sort of visual "find" possibly useful on a busy desktop with several icons of files or applications. Pressing the Super isn't necessary.

For example, if I have shortcut links to Firefox or LXTerminal, and the desktop is in focus, pressing f or l will highlight Firefox or LXTerminal, respectively.

This also works for files on your desktop.

Run touch a.txt ab.txt abc.txt from a terminal while in your Desktop sub-directory
Make sure that no application window has focus and that you can see the three files you created
Press a: the text box appears and file a.txt is highlighted
While still in the text box, press b so that the contents of the box are now ab. See that the focus changes to file ab.txt. The same thing happens if you type c. The focus will move to abc.txt
In other words, while the desktop is active, this feature to search the desktop is available.

Now, to address the issue of the Super key and that you can't access hot keys you set.

First, while there maybe a graphical interface to set hot keys, I directly edit ~/.config/openbox/lubuntu-rc.xml using a plain text editor (after ensuring that the original lubuntu-rc.xml is safely backed up). Edits done this way take effect in the same session only after you run openbox --reconfigure. Or you can log out and log back in. Running this command also performs a very useful parsing check on your xml file.

Second, if you have a valid hotkey shortcut assigned and functional, pressing say Super+l whether the desktop is in focus or not will open the application you specify with W-L as the "keybind" where "W" is used to refer to the Super key.

You can test this by having the LXTerminal shortcut icon on your desktop and defining the W-L keybind to open Leafpad. Pressing just l when the desktop is in focus will highlight the LXTerminal icon whereas pressing Super+l will open Leafpad whether or not the desktop or any other application has focus.


mkudffs creates pure UDF files and filesystems with no ISO-9660 data structures
mkudffs is part of the udftools package

sudo apt install udftools

See the manpage here : http://manpages.ubuntu.com/manpages/bionic/man8/mkudffs.8.html

You first need to generate a blank file to contain the image. That is, you must set de filesize before 'filling' it by file copy. You can set the filesize you want/need determining it with du against the source directory

Example: create a CD image file:

truncate -s 650M /dest/cdimage.udf
mkudffs --media-type=cdrw /dest/cdimage.udf
sudo mkdir /media/udfimage
sudo mount -t udf -o loop,rw /dest/cdimage.udf /media/udfimage
sudo cp -R /src/files /media/udfimage
# After the data has been copied to the image,
# unmount the image and detach the loopback device:
# sudo umount /dev/loop0
# sudo rmdir /media/udfimage


Problem with Nautilus when using awesome?

Simple, start Nautilus with:

nautilus --no-desktop


Install 12.04 alongside 11.04, having a share /home, but I cannot login into 12.04

I ran out that bug this morning, and it seems that I had some file under my /home/ dir wich were associated to root ownership (in this case, .Xauthority and other ones). I changed owner of .Xauthority to my username and it works now.

While I wrote this I saw other similar posts on this website, it's not a 12.04 problem, but the bad guy is always this .Xauthority. Deleting it or changing owner seems working

@see Can't login after installing 11.10


You can't.

The whole state of the package management is kept in there. If it's lost, there's no way to 'rebuild' this database in a reasonable way. It keeps track of more than just what packages are installed, e.g. configuration choices (debconf). Recovering this from (earlier) backups may lead to other issues too - as the system state may have changed and the backup is invalid in such a case. This will result in conflicts later.

Only restore /var/lib/dpkg from backup if you know nothing has been changed concerning the package management in the meantime.


Alright, so I managed to solve this issue. The trouble was that I wasn't using the Ubuntu packaged graphics driver, so after a kernel update the kernel was expecting a particular graphics driver, but was actually linked against a newer version. Re-installing the driver seems to have fixed the problem temporarily, but it might re-occur as soon as I do another kernel update.


problems with RT3290 card running using RT2800 driver on Ubuntu 13.04

What finally solved the problem was this solution by @chili555 here:
Wireless disabled by hardware switch on an Asus X550V

For me, values 1 and 4 both worked.
As an aside, at the moment of this post I am on Trusty alpha (yikes!), which means the 3.12 kernel, and using the rt2800pci driver that came with the kernel by default.


Help me interpret my dmiencode results to figure out what kind of RAM slots I have

There are two sets of colors in order to help you match them in pairs, if you wish to. Other than that, they are all the same.

The Type: DDR has a valid value as long as memory is installed to a slot. If there is no memory there, then it gives the stock DDR value.


Change boot entry names and grub background?

Install Grub Customizer.

sudo add-apt-repository ppa:danielrichter2007/grub-customizer
sudo apt-get update
sudo apt-get install grub-customizer

Run it.

This program allows you to edit just about every aspect of Grub.
Have fun with it, but be careful! :)


Startup Disk Creator - not found in Ububtu Software Centre

If you are comfortable using the command line, you can install it as follows:
sudo apt update
sudo apt install usb-creator-gtk

Note:
On my system, I have two "software centers" installed.

Software
Ubuntu Software

When I search for "Startup Disk Creator" in either of these, I do get a listing for this application. I am also able to search using "usb-creator-gtk", and I get a result.
Try searching for "usb-creator-gtk". If you don't get a result, there may be another issue on your system.
However, executing the (apt) commands above will show you if there is another underlying error.


How to give the "Session and Startup" feature a working directory for a python script

you can set "working directory" or in Linux term "path" in three different ways:

1) add your script PATH to environment variables. It's a fairly easier way and works good but it's permanent and it's not a good practice IMO. The way to do that is to issue this command:

export PATH=$PATH:your_path

2) add your script PATH to the shortcut .Just open the .desktop file in a text editor (if you're having trouble finding it, you can create the launcher on your desktop and find it in ~/Desktop, then move it later), and add a line at the end that says Path=YOUR_PATH. Then add the .desktop file to the startup

3) first go to your directory then start your script. for example:

bash -c "cd /path/to/directory && /path/to/directory/executable"


Cannot change default music player 16.04

You can manage file type in Ubuntu-Tweak
1). Install Ubuntu-Tweak for Ubuntu 16.04 (More info about GetDeb Apps)
wget -q -O - http://archive.getdeb.net/getdeb-archive.key | sudo apt-key add -
sudo sh -c 'echo "deb http://archive.getdeb.net/ubuntu xenial-getdeb apps" >> /etc/apt/sources.list.d/getdeb.list'
sudo apt-get update
sudo apt-get install ubuntu-tweak

2). Open Ubuntu-Tweak and go to Admins > File Type Manager:

In the categories press Audio and select which File Type will be open with Rhythmbox


Fullscreen Chrome video causes Ubuntu to crash

The solution suggested by @Jordan Koplowicz is precise. Elaborate discussion about the same can be found in the link he has posted.
There's another way out. Not a solution as such, but it works well. You can run any video in Firefox. After making it full screen it does not collapse. I got this from the link @Jordan Koplowicz has Shared and it works fine for me.

Addition

I have found a better answer. posting it here -
I have found the solution which is working well for me till now -

I tried upgrading to

  40.0.2214.93

It does not help much. after a while the problem start again..

The one worked for me is this - disable the hardware acceleration settings. in google chrome. For disabling hardware acceleration -
go to the option "customize and control google chrome"
the gray area in upper right corner besides the option of Google input tools-

Then click on settings from the drop down menu.
click on the blue option

  Show advanced settings...

check for the 6th category -

  System

and see if the box for using hardware acceleration is checked

if it is checked please uncheck it.

This has solved my problem.


Where are the Ubuntu Snappy Personal builds available for testing?

As I understand it, Ubuntu Core only uses snaps. You can get Ubuntu Core images here.


How do I get rid of the errormessage when I use Sublime text 2 in terminal

Not a solution really, but a workaround. Just redirect standard error to /dev/null so you don't see it:

sublime foo.jar 2>/dev/null

To make this simpler, you can convert that to a function. Add these lines to your ~/.bashrc:

sublime(){
    sublime "$@" 2>/dev/null
}

That, however, will suppress all errors, not only that one. To suppress that one alone, use this instead:

sublime(){
    sublime "$@" 2>&1 | grep -v 'GLib-CRITICAL **: Source ID 2897 was not found when attempting to remove it.'
}


Ubuntu 12.04 - syslog showing "SGI XFS with ACLs, security attributes, realtime, large block/inode numbers, no debug enabled"

These aren't random, they are part of os-prober determining partitions and then installed OSes before the system configures/installs a new kernel. If you have security updates enabled this can happen without you doing anything.


I think I messed up GRUB (RAID installation)

Ok, so there was no actual problem in GRUB, the warnings seemingly appeared because grub-emu was trying to check GRUB's entire start routine but it wasn't able to find a real OS to start.

"Don't panic." — Douglas Adams


Finally I managed to get it to work. I don't know if the below setup is the only change that was needed. I was trying a lot of different things but at the end I managed to mount the share using pam when login into my domain account from terminal.
sudo login

This gave me the actual needed feedback that I needed. Apparently the options "nodev" and "nosuid" are needed.
My finally .pam_mount.conf.xml looks like this:
<?xml version="1.0" encoding="utf-8" ?>

<pam_mount>

<volume options="nodev,nosuid"
    fstype="cifs"
    server="servername.domainname"
    path="music"
    mountpoint="/home/user@domainname/shares/Music"
    cruid="user@domainname" />
</pam_mount>

where domain name is in syntax of name.locale
For those that don't know what the cruid is for (from mount manpage):
cruid=arg
sets the uid of the owner of the credentials cache. This is primarily useful with sec=krb5. The default is the real uid of the process performing the mount. Setting this parameter directs the upcall to look for a credentials cache owned by that user.
Update on May 10th, answering the question from SerG:
I can mount a share manually with this command:
sudo mount -t cifs -o user=$USER,domain=mydomain.locale,cruid=$USER,gid=xxx,uid=xxx,sec=krb5 //myserver/shareName/home /myUserName@mydomain.locale/shares/shareName
enter code here

For test purpose I added the actual gid and uid as the numeric value. you can get the two values when typing
id

It does't really matter where to mount it but I used a folder in my home directory to rule out additional permission issues.


how to change the lightdm gtk session icon

Lightdm-gtk-greeter uses a different icon set. This question on launchpad explains the naming theme for the icons. I'm using lubuntu 14.04 and the aforementioned icons are located in /usr/share/icons/hicolor/scalable/places.

If you already have an icon (svg file) you want to use, move it to that location and name it sessionname_badge-symbolic.svg where sessionname is the name of your session (the session name is found in /usr/share/xsessions), budgie in your case. Make sure to update the icon cache afterwards or the greeter still won't use it.

sudo gtk-update-icon-cache /usr/share/icons/hicolor

That should be it.

If that doesn't work, your icons may be in a different location, or there may not be a conf file for the particular session in /etc/lightdm. See the /etc/lightdm/lightdm-gtk-greeter-ubuntu.conf file and LightDM - Ubuntu Wiki for more details on writing up a .conf file. Hope this helps.


What makes an analog modem pickup an inbound call

Maybe your modem is not configured for auto-answering?

Register 0 in a standard Hayes-command-compatible modem stores the number of rings before the modem will answer. If this value is 0, then there's no auto-answer.

Furthermore, there is a way to store configuration as default, so perhaps your modem's config was altered to this value of 0 and the config stored.

So using a terminal program such as minicom, connect to the troublesome modem's port, and you could ask the modem about this value:

ATS0?

if this value is 0, then set it to, say, 2 rings:

ATS0=2

then save the configuration (to profile 0):

AT&W0

and then tell the modem to use this on powerup:

AT&Y0

It's been a while so I don't guarantee this will work. Read more here: http://michaelgellis.tripod.com/modem.html


How can I disable the screen-saver on tablet with Ubuntu Touch Saucy?

From this post:
How can I force the phone screen to stay on

phablet@ubuntu-phablet:~$ sudo stop powerd

That works for me. But if powerd is stopped, the device won't suspend using the power button.

Or you can do this:
    # Run this in another terminal window and leave it running to
    # make sure display stays on for the tests:
    adb shell powerd-cli display on bright

from: https://wiki.ubuntu.com/Touch/Testing


Xubuntu 14.04 - PulseAudio / ALSA will not work with USB headset

Solved!

I spent a fair few hours tinkering before I figured out that I'm an idiot, so I'll write down what I believe I did:

$ gksudo gedit/yourtexteditor /etc/modprobe.d/alsa-base.conf

Then, at the bottom of the text file, comment out the line that says

  options snd-usb-audio index=-2

Save the file, and then run

$ gksudo gedit/yourtexteditor /etc/pulse/default.pa

Add this to the bottom.

  load-module module-alsa-sink device=hw:3,0

This is assuming that your device is hw:3,0


Why does "metacity --replace" hang my system, but "metacity --replace&" is fine?

Pressing Enter doesn't return to the terminal prompt because metacity is running in that terminal.  Any warning/error messages metacity produces will be printed there.  This is standard behavior for any GUI app.  If you don't want them to take over your terminal session, use '&'.

About the rest -- disappearing window decorations etc. -- I'm baffled myself.


I installed a program with pip and now I don't know how to start it

Immediately after the "How do I install" section of the website you linked, there is a "How do I use" section...


Where is the default bash profile file kept?

The files located under /etc/skel are copied to the user home directory on user creation.


I figured it out. I allowed the mouse to exhibit it's odd behavior and was able to run xinput while it was doing so. It revealed an entry called "PS/2 Generic Mouse". Disabling this generic device allowed my mouse to work normally without having to blacklist psmouse. You can disable it with the command

xinput disable id#

If you want to disable a xinput pointer entry permanently, you can do so by creating "xorg.conf" in     /etc/X11 and entering the following:

Section "InputClass"
   Identifier         "disable broken device"
   MatchIsPointer     "on"
   MatchProduct       "PS/2 Generic Mouse"
   Option             "Ignore" "on"
EndSection

Credit goes to this Stack Exchange Unix & Linux post


You can alternatively download tar.gz file from here
(There is no command line option for 12.10- Are you sure you are using 12.04)

I have tried just now for 13.04, it is fetching and works. 404 error may be temporary.


Unable to connect to Snappy Ubuntu Core via ssh

Thanks to the gurus in #snappy IRC, who figured it out.

First of all, the snappy image requires a 64-bit host. My host is running 32-bit, so QEMU could load the image, but couldn't run it. Currently, no 32-bit version of Snappy Ubuntu Core is built.

Had I been using a 64-bit host, a similar condition could occur if the KVM is stopped early, before or during ssh key generation. Two possible solutions: 1) Download a fresh image, or 2) login though the console (instead of ssh) and delete /etc/ssh/*host* files.


Is Zeitgeist installed as part of Ubuntu Minimal?

No. As far as I'm aware, Zeitgeist currently is only used in Gnome.


Debian 8 and Ubuntu 18.04 were the last repositories to include websvn in a package.

Fortunately websvn is still being maintained and it's not too difficult to install. You only need PHP with XML support.

Start by creating an apache config file /etc/apache2/conf-available/websvn.conf

Alias /websvn /var/www/websvn
<Directory /var/www/websvn>
    DirectoryIndex index.php
    Options FollowSymLinks
</Directory>

Install PHP with XML support, checkout websvn and enable the apache config you just created:

sudo apt-get install php php-xml
cd /var/www
svn checkout https://github.com/websvnphp/websvn.git/tags/2.5/ websvn
sudo a2enconf websvn
sudo systemctl restart apache2

Point your browser at the websvn directory. You should be told to create the configuration file /var/www/websvn/include/config.php

I added the following lines to my config.php

$config->setEnscriptPath('/usr/bin');
$config->setSedPath('/bin');
$config->parentPath('/var/svn-repos');
$config->useEnscript();

This tells websvn where to find sed and enscript, and that my repositories are linked from /var/svn-repos/

I installed websvn on an existing server, so there may be additional dependencies. Check /var/log/apache2/error.log if your browser receives a 500 error.


How do I get the structural images BKChem produces to satisfy these conditions on Wikipedia?

The instructions on the page seem fairly simple (make a couple of files that hold the contents as specified). But if you want to reduce that to a few commands you can just fire off without thinking, this is what they're after:

mkdir ~/.bkchem

cat << EOF > ~/.bkchem/standard.cdml
<?xml version="1.0" ?><cdml version="0.15" xmlns="http://www.freesoftware.fsf.org/bkchem/cdml">
  <info>
    <author_program version="0.12.2">BKchem</author_program>
  </info>
  <standard area_color="" font_family="Arial" font_size="24" line_color="#000" line_width="0.06cm" paper_crop_margin="5" paper_crop_svg="1" paper_orientation="portrait" paper_type="Legal">
    <bond double-ratio="0.85" length="1.4cm" wedge-width="0.18cm" width="0.21cm"/>
    <arrow length="1.6cm"/>
  </standard>
</cdml>
EOF

cat << EOF > ~/.bkchem/prefs.xml
<?xml version="1.0" ?>
    <bkchem-prefs>
        <lang type="StringType">en</lang>
        <geometry type="StringType">1016x522+4+27</geometry>
        <recent-file1 type="StringType"></recent-file1>
        <recent-file2 type="StringType"></recent-file2>
        <use_real_minus type="IntType">0</use_real_minus>
        <default-dir type="StringType">~</default-dir>
    </bkchem-prefs>
EOF


You can use chattr, "chattr" is a utility to change file attributes:

sudo chattr +i filename

From man chattr:

  A file with the 'i' attribute cannot be modified: it cannot be deleted or renamed, no link can be created to this file and no data can be written to the file.
         Only the superuser or a process possessing the CAP_LINUX_IMMUTABLE capability can set or clear this attribute.

Now no one can change this file, if you want no one ever get the chance to modify this file even in a live session then I suggest you to encrypt the whole filesystem.


14.04 Not Auto-Mounting External Drives Since Upgrading from 12.04

Use Disks utility, select the partition you want to automount and click this  button, then Edit mount options, turn off auto options then check the Mount on startup box and edit mount point as you like.


Undefined symbol error when starting LibreOffice in Ubuntu 20.04

Setting the LD_PRELOAD variable to point to a different library solved the problem. Namely, the following command worked for me.

LD_PRELOAD=/usr/lib/x86_64-linux-gnu/libfreetype.so.6 libreoffice

So to be able to run LibreOffice from the desktop environment I added an environment variable export line to ~/.profile.

export LD_PRELOAD=/usr/lib/x86_64-linux-gnu/libfreetype.so.6

This solution, however, seems hacky to me. A more proper one will be much appreciated.


On Kubuntu 19.10, double clicking a window title bar doesn't switch it between maximied and restore states

it does not exactly answer your questions like you asked. but my favorite way to maximize is to alt-grab the window with the mouse and drag it to the top of the screen. it will be maximized.

dragging it back from the maximize state to the center of the screen will restore its size

and if you did not know already, you can also drag in the corners and side for tiling 2x2 or 1x2

hope this helps


Wifi does not work after coming out of Suspend mode in Ubuntu 20.04

Airplane Mode turning on automatically after suspend is a common problem with many HP laptops running Gnome. This is a fix for the same: (Source: @Nicholas Stommel's answer to this question)
Create and open this file in an editor
$ sudo nano /etc/systemd/system/hp-keycodes.service

Paste the following:
[Unit]
Description=HP setkeycodes fix

[Service]
Type=oneshot
Restart=no
RemainAfterExit=no
ExecStart=/usr/bin/setkeycodes e057 240 e058 240

[Install]
WantedBy=rescue.target
WantedBy=multi-user.target
WantedBy=graphical.target

Save and close with ctrl+s, ctrl+x
Enable the script and reboot
$ sudo systemctl daemon-reload
$ sudo systemctl enable hp-keycodes.service
$ sudo reboot

If you wish to stop your laptop from suspending at all, turn off Automatic Suspend under Power in Settings.


Require assistance in compiling and running gcc(gsl) programs via terminal

The -c switch tells gcc to compile source code to binary object code, but not link it to create an executable program: you will first need to remove that:

gcc -Wall -I/usr/local/include sample_matrix.c

You will then likely find there are lots of undefined reference to ... errors, because you haven't specified the relevant libraries to link on the command line. (Header files only declare things; libraries define them). If you have installed gsl in a standard location like /usr/local, then it should have placed a .pc file in /usr/local/lib/pkgconfig/ that will allow you to automate the specification of libraries using pkg-config ex.

gcc -Wall -I/usr/local/include sample_matrix.c `pkg-config --libs gsl`

(note the order of arguments: references are resolved from left to right). You can probably use pkg-config to locate the header files as well i.e.

gcc -Wall sample_matrix.c `pkg-config --cflags --libs gsl`


A MAC address is a string of zeros. Why?

Your are throwing out useful information with your method. Information which tells you which interface corresponds to which MAC address. Do this instead:
~$ grep . /sys/class/net/*/address
/sys/class/net/enp2s0/address:00:19:b9:0d:af:fa
/sys/class/net/enp4s0/address:00:22:b0:75:c2:bd
/sys/class/net/lo/address:00:00:00:00:00:00

And therefore we observe that is the local loopback interface, lo, with the all 0's MAC address.


What is launchpad in apt-get error messages?

The OP reported in a comment that this problem was solved by instructions provided in saiarcot895's comment, which said:

  @John: Delete the files that mention adilson and experimental. I don't remember the exact formatting of the names, so I can't give you a file name here.

In short, the problem here was solved by removing .list files from /etc/apt/sources.list.d.

This may be a duplicate of How can I fix a 404 Error when using a PPA or updating my package lists?, though that appears currently to be under dispute.


What are the most compatible mini PCI express wireless cards

You can find most of the compatible ones here: http://linuxwireless.org/en/users/Devices/PCI it includes PCI ones, USB ones and the Mini PCI-E you want to look for.

Remember that about 99% of the compatibility comes from the Kernel and not the Distro. Most distro will include some wireless cards and maybe the 3rd party drivers but if you want to look to be sure I recommend you check first what Kernel version the distro you want is using. Since you are here i will assume we are talking about Ubuntu 11.04 which has the 2.6.38 Kernel version. The amount of network drivers can be found here: http://kernelnewbies.org/Linux26Changes for each kernel version. since networking is one of the key features of Linux and is one of the most worked one you have a very high chance that buying a known wireless card will work out of the box (When i say known i mean something like RaLink, Broadcom, etc.. instead of some weird company card like "Chicken Little Wireless Card French Fries Edition"

Also I already installed 3 Acer Aspire One and they work 100%. So maybe it is a hardware problem which also Linux can tell you via several commands (Like dmesg for example).


Ubuntu 16.04 - No default sound device for laptop after unplugging headphones

I had the same issue.
The following actions worked for me:

Update Pulseaudio:

sudo apt install pulseaudio

Restart Pulseaudio:

pulseaudio -k && pulseaudio -D


In case you already have LibreOffice installed, the en_US.aff and en_US.dic files are already on your system in the /usr/share/hunspell folder. In this case, just symlink these two files into /usr/share/myspell/dicts and you are done:

sudo ln -s /usr/share/hunspell/en_US.dic /usr/share/myspell/dicts/
sudo ln -s /usr/share/hunspell/en_US.aff /usr/share/myspell/dicts/

You can do so for all dictionaries you find in /usr/share/hunspell.

Restart Texworks afterwards.

You can see Texworks > Edit > Spelling > Unites-States now. Click it.

Also change Texworks > Edit > Preferences > Editor > spell-check-language > English-United-States.

You are done after restarting.


cant install rtl8723ae wireless driver for lenovo yoga "11"s

I managed to get 14.04 working by following the 'wireless woes' part of this tutorial. You'll need an internet connection to download the tarball from github but here's the gist:

wget -qO- https://github.com/lwfinger/rtl8723au/archive/master.tar.gz | tar -zxvf -
cd rtl8723au-master
make
sudo make install

Then reboot and your wireless should work now.

For installing ubuntu I only needed to shrink the windows 8.1 partition, within Windows choose to "Reboot and start from USB". Didn't need to use anything else. There's a lot of conflicting info about this but the situation for installing ubuntu alongside seems to have improved greatly. No need for complicated install guidelines any more (getting windows to reboot to USB is the most difficult).


New to emacs -- my key bindings are different from what is described in the tutorials. How to fix this?

Shift+MouseLeft runs the command mouse-appearance-menu by default since Emacs 23 (before, it ran mouse-set-font). This is the buffer dialog popup that you saw.

You can find out what a key (or key combination) or mouse button does in your Emacs by pressing C-h c (i.e. Ctrl+H then C) then the key(s) or button. The name of the command that it invokes will appear at the bottom of the screen. If you press C-h k, you will also see the documentation of that command. Conversely, if you happen to know the name of a command and want to know what key invokes it, press C-h w then enter the name of the command. You can use f1 instead of C-h.

You didn't say what tutorial you were using. I suspect you missed something in your reading. The text “shift mouse-1 Draws lines, rectangles or poly-lines, erases, cuts, copies or pastes” appears in the documentation of Artist Mode, an Emacs package (included in the standard Emacs distribution) that facilitates drawing ASCII pictures. To enter Artist Mode, type M-x artist-mode RET (i.e. Alt+X, then type artist-mode and Return).


No workspaces in Activities overview after updating to Ubuntu 20.04

Disabling "Horizontal workspaces" extension solved the issue.
I also use Workspace Matrix which does the same + more, so this extension was redundant anyway.


The correct package name is ubuntu-restricted-extras (or xubuntu-restricted-extras or lubuntu-restricted-extras for Xubuntu and Lubuntu respectively).


HDMI out on Asus 1215N (Optimus/Ion2) not detected

It is because the HDMI output is connected to the NVIDIA card, and Bumblebee can't handle those type of connection (because of virtualgl if I'm right), which is why you can't either use Flash into a browser with the nvidia, because the npviewer.bin plugin is not launched with optirun.

I'm having the same problem with the HDMI (I also have an Asus 1215N), it is the only reason why I keep using Windows instead of Ubuntu (or another distribution).

You just have to wait for a solution, and I don't think Bumblebee/Ironhide is one for this problem..

PS : If I remember right, some people report that a earlier version of Bumblebee made it work when booting Ubuntu, showing the Ubuntu SplasScreen and then dissapear with when entering into the Login part.

Sorry for that :S

Just one question, nothing to do with you question, Is Ubuntu fast for you? and if Yes, which version of Ubuntu and wath Desktop (gnome3, unity-3d, unity-2d..).


Connect netbook to mobile internet via sim

You can insert your SIM card in the slot and follow the instructions given here. In short, after you insert your SIM card, type Network connections in the dash and click Add, select Mobile Broadband and follow the on-screen instructions.

Also you need appropriate drivers for the slot to work. To see if there's any, go to System Settings - Software and Updates - Additional Drivers. Install the listed drivers (if any) that you can relate to WWAN.

EDIT: According to the output of your lsusb, I think the Gobi 2000 is the driver you want to use. If you can not find this from 'Additional drivers' from the above step try installing gobi-loader by (you need internet connection (wifior ethernet, I hope you can enable there in your laptop):

sudo apt-get install gobi-loader

and following instructions here or here help you.

Basically you need to extract the drivers from windows.


TeXMaths-Extension for LibreOffice: No permission to use latex?

Replacing the snap version of LibreOffice, which I had installed before, by the main version of LibreOffice, made the TeXMaths-extension work.

At the moment (Dec '18), both versions are available in the Ubuntu-Software utility. You can tell them apart by their source and size, which are ubuntu-bionic-updates-main (~25 MB) and snap store (~500 MB).

The advantage of the snap version is that it comes all-in-one (with Writer, Impress and so on, language options, the help...) and, to me, it even looks nicer.

As I understand it, the snap version uses its own usr-path, which is on my computer:
/snap/libreoffice/99/usr/bin, and doesn't have permission to the main /usr/bin, where latex is located.

I would be happy to learn about a workaround to use the more convenient snap LibreOffice together with TeXMaths. Any ideas?


How can I run update-grub on a chroot filesystem

oops... my bad.  It's as simple as mounting dev.

Strangely enough I tried this at about 1am last night and that didn't work.
This morning it did, so I'm not sure what was different.

To get a full environment just

sudo chroot /media/flash-drive
mount proc
mount sys
mount dev

And in case you have a separate boot partition

mount boot

After doing that I was able to see my devices in /dev

And update-grub actually works.  Now to figure out why it's not booting... that's another problem.


Use iotop to look at what processes are doing I/O.


Adobe Digital Edition not opening in WIne

From https://forum.winehq.org/viewtopic.php?f=8&t=33733 , seems to work for me
Post by spoon0042 » Sun Apr 19, 2020 2:44 pm Going by the appdb page you will need 'winetricks corefonts dotnet40'. Info on winetricks is here: https://wiki.winehq.org/Winetricks


Suggested partition layouts for spinning disk and SSD?

Should I just put /home on the spinning disk and be done with it, or should I put it on the SSD so that it can have fast access to my dotfiles and then symlink Documents, Music, etc onto the spinning disk?

ssd
don't use symlinks. There is an easier method: see ~/.config/user-dirs.dirs on how to do that. Keep a copy of that file on the HDD so when you re-install you can copy it over the one that is used.

  What about swap? Presumably that'll kill the SSD pretty quickly, so put it on the spinning disk? I've got plenty of RAM in the machine and a low swappiness, so it doesn't get used that much anyway.

Don't make a swap. I doubt you will use suspend or hibernate. I don't since my system boots under 10 seconds. So swap you can do without too if you want.

  Last time I used SSDs it was recommended not to put logs on them to avoid wearing it out too quickly. Does that still hold true, and if so do I want a separate partition for /var on the spinning disk?

keep the system files on the ssd and the hdd for personal files. I have a spare ssd in the cupboard in case my ssd ever dies.


Why videos play in Ubuntu-provided LibreOffice, but not in LibreOffice from community-supplied installers?

I just installed from the ppa and get the same result: adding an mp4 using the insert - movie and sound gives me a speaker symbol, no video and very slow interaction, the standard install with 12.04 worked with all video formats.


how to find out what versions of a package from a launchpad repository are available with apt-get

To get all versions available to install with apt-get, you can use the command:

apt-cache madison <package>

Example:

$ apt-cache madison mercurial
mercurial | 2.8.2-1ppa2~precise1 | http://ppa.launchpad.net/tortoisehg-ppa/releases/ubuntu/ precise/main i386 Packages
mercurial | 2.0.2-1ubuntu1 | http://archive.ubuntu.com/ubuntu/ precise/universe i386 Packages
mercurial | 2.8.2-1ppa2~precise1 | http://ppa.launchpad.net/tortoisehg-ppa/releases/ubuntu/ precise/main Sources

As you see, there's version 2.0.2 from official ubuntu archive, and version 2.8.2 from mercurial PPA.

You can install exact version like that:

$ sudo apt-get install mercurial=2.0.2-1ubuntu1


Ubuntu 18.04 requires multiple attempts to boot

I may have found an answer to my own problem.

Apparently there is a well known bug that affects Lenovo Thinkpads with accelerated graphic card. Sometimes it's even impossible to boot the system just after a fresh installation.

I found here a workaround for Fedora that works well with Ubuntu, too.


OP wrote:

  [...] the disk worked now after a reboot.


Is there are way to read a windows storage space from Ubuntu?

Storage Spaces are based on a new proprietary file system from Microsoft called ReFS (resilient file system)

At the time of writing, there is no Open Source software that allows to mount this kind of file system, the only option right now is to use proprietary software:

ReFS for Linux by Paragon Software

Note: I am not affiliated with Paragon Software in any way, I am just stating the facts.


Ubuntu Software and Ubuntu Software Center problems on 16.04 LTS

Really depends on the third party Software.

As far as I know the Software-Center is just a graphical Front-end for apt-get.

In /etc/apt/sources.list you might have to add the repository required for the third party software you want to install.

(There already some lines commented out that maybe already archive what you are going to install)


The installation of EiffelStudio on Linux Ubuntu is quite simple. Open a terminal and type the following command lines:

sudo add-apt-repository ppa:eiffelstudio-team/ppa
sudo apt-get update
sudo apt-get install eiffelstudio

Check this for more information.


Please try this following workaround:

Open the terminal: Ctrl+Alt+t
sudo modprobe -r iwlwifi
sudo modprobe iwlwifi 11n_disable=1

Case this solved the problem, so...

sudo nano /etc/modprobe.d/iwlwifi.conf
add the line: options iwlwifi 11n_disable=1
Save file
Restart the PC.

Case you have any problem, please comment.


How to play .ts files? (and other unusual formats)

I recommend smplayer and gecko-mediaplayer, which are the best mplayer frontend and browser plugin respectively. For codecs get ubuntu-restricted-extras. I also recommend the Comprehensive Multimedia & Video Howto tutorial.
smplayer
gecko-mediaplayer
ubuntu-restricted-extras


Permission setting, best practice for website?

In principle you only need read permissions for the WWW group and others. Unlikely you will need execution privilege so I would say 644 is what you need for the files


Why I'm receiving the message: "Impossible to resolve the host "?

Your /etc/hosts file is misconfigured. The hosts file tells your computer how to resolve certain hosts, such as localhost and your computer's host name. Your computer's hostname is set to jjpg-MS-7788, but your hosts file lists it as jjpg-MS-7788.CASAJJPG. To fix:

gksudo gedit /etc/hosts

To open your hosts file in a text editor. Then, just delete the .CASAJJPG from that line so your file should look like:

127.0.0.1 localhost
127.0.0.1 jjpg-MS-7788
----other lines here, I'm too lazy to copy them for you.


How can I fix a stretched display with AMD graphics card after 16.04 upgrade

Problem is solved after removing fglrx, that had somehow survived a previous purging attempt since the package manager hung up on another package (gcc-doc) and didn't come to the purging command.


I've faced the same problem. This warning isn't a reason for emulator not working. Check virtualization support in your system as described in https://developer.android.com/studio/run/emulator-acceleration.html and https://help.ubuntu.com/community/KVM/Installation


Get a SQLite3 db in LibreOffice (via ODBC). Using Ubuntu 11.04 (64bit)

Please, take a look at this question, there are some tips on how to use SQLite on Ubuntu:

How can I install SQLite to be used with OpenOffice?

And here is the official Openoffice guide on using SQLite:

http://wiki.services.openoffice.org/wiki/Documentation/How_Tos/Using_SQLite_With_OpenOffice.org

This is related to Openoffice, but should work also with Libreoffice.


Based on your situation a solid kill command with the kill signal (9 or SIGKILL) should help. So do the following passing in the process ID (PID):

kill -9 <PID>

This is usually guaranteed to do the job.


juju with MAAS error: file 'provider-state' not found

While I have not seen that error before, I'm thinking that it might be related to the fact that you don't have a bootstrapped environment.

Did you:

juju bootstrap


Yes, it is. Change the mode to 660 for a bit more security. You can do this by creating a udev rule:

 sudo mkdir -p /etc/udev/rules.d
 sudo vi /etc/udev/rules.d/85-input.rules

and add

 SUBSYSTEM=="input", MODE="660"

This will prevent "others" to abuse the input group so if you then still have a problem related to this group and keyloggings you have bigger issues (like an exposed sudo password or a rootkit).


Without meaning to sound flippant, it's unlikely you'll need antivirus. Unless you're in a really high-sensitivity environment it's unlikely you'll come across a situation where you'll face a Linux virus. In any case I would recommend ClamAV as an open source antivirus product. You can install it through apt-get install clamav.

The majority of antivirus products I've come across - particularly Sophos antivirus - only scan for Windows viruses, and even then only do that by hashing the file. This means if a virus changes even one byte in the file which contains it, the AV product wouldn't think it's a virus any more.


The main difference is that ppa:mc3man/trusty-media is available only for trusty.

The official PPA is ppa:videolan/stable-daily and currently available for 12.04,14.04,15.04.

Please refer ubuntu/trusty-media and ubuntu/stable-daily

apt-add-repository with a PPA as argument just adds a file into /etc/apt/source.list.d

apt-get update updates the packages to include the new repository.

Please refer AptGet/Howto

Note : There is another PPA available for VLC as well - please refer here


Software Center: package can be found but not installed?

This is actually a bug in Software Center: https://bugs.launchpad.net/ubuntu/+source/software-center/+bug/751504

Emerald has been removed from Ubuntu due to the package being in bad shape. However, you can try to manually download it from here: https://launchpad.net/ubuntu/+source/emerald/0.8.8-0ubuntu1


texlive-fonts-extra pulls in all the other fonts. While I'm not familiar with sympy, I looked at its webpage and will note that when I use to write papers in college, the largest consumer of disk space was all the fonts necessary for producing high quality text with mathematical symbols.


Having trouble installing .NET 5 on ubuntu server 20.04

Try updating wget or use curl:
curl -LO 'https://packages.microsoft.com/config/ubuntu/20.04/packages-microsoft-prod.deb'


The general consensus is that we do not pay for licenses. Canonical would be liable if it added support for BD without paying for a license. The issue is ALSO the case for DVDs though: the tools you install are not from Canonical but 3rd party. The encryption on DVDs has been cracked a while ago (and that type of media was not meant to have encryption).

(off topic side note: Windows does not have BD playback support either; they too refuse to pay the license. You need to pay for additional 3rd party software (mostly supplied with the hardware where the fee is included when you buy the license for the software) and that software has a limited functionality: BD playback software for W7 does not work on W10; you need a new version (and might need to pay for that))

DVDs used to be a problem before the encryption got cracked. BDs have better security and playback of encrypted BDs is up to how well the encryption can be cracked. BDs are also meant to have encryption so it has been implemented a lot better.

And the need to crack BDs is not there anymore since there are alternatives.

One thing that does work is to decode the BD.

From howtogeek:

  If you need to play a wider variety of Blu-ray discs, there’s another method that people report more success with: you can use MakeMKV to decode the Blu-ray and VLC to play it as it’s being decoded.

sudo add-apt-repository ppa:heyarje/makemkv-beta
sudo apt-get update
sudo apt-get install makemkv-bin makemkv-oss

  MakeMKV will decode the Blu-ray video and stream it to VLC.


85.0 has been superseded and removed from the repositories. That's why it's 404 Not Found.
Run sudo apt update to refresh apt's database of available packages and versions, then try installing again.


How can I control Dropbox sync programmatically?

You can control the Dropbox daemon by using dropbox with the start and stop command. Type dropbox help to view the full list of available commands.


As with most Unixy OSes, there are many ways to accomplish the same thing. What you have done works fine, and will work with most Ubuntu desktop environments.

Another way to do this (not using a true icon, but faster to implement) is to simply place the executable script on your desktop and double click it. This will prompt you to open the file or run it. If you click 'run' or 'run in terminal', it will lock the screen.

I think that your way is the best. Just highlighting another way.


how to convert avi (xvid) to mkv or mp4 (h264)

The standard command from http://manpages.ubuntu.com/manpages/precise/man1/avconv.1.html shows this:

avconv -i test.avi -c:v libx264 -c:a copy outputfile.mp4

This will re-encode your video to h264 (=AVC) and keep your sound unchanged which is mp3 and completely legal to the standard.

A few other options to consider with this commandline are:

Tweak the quality of the output video by using the -b parameter (bitrate) or use Constant Rate Factor (CRF) with something like -crf 22
Use a libx264 preset such as -preset veryslow for improved video

If you use these the options should be placed after -c:v libx264 option...

You may also look at the GUI programs winff and avidemux which will make things less complicated. (also handbrake is a good one but i never came to terms with it )


It's ok now i just change the theme to a new one 'Numix' for example. and everything is cool


How can I move files using bash/for loop inside subdirectories?

Some options to exclude subdirectories:

since you want to move files with extensions, change for i in * to for i in *.* (this may be the simplest option, provided none of your subdirectory names contains a . character)
add an explicit test for the file type ex. for i in *; do [[ -f "$f" ]] || continue; ...
(similar to the above) use find . -maxdepth 1 -type f -exec ...
switch to a shell that supports glob qualifiers such as zsh - where you can write for f in *(.) to loop over regular files only


Normally, Ubuntu uses lightdm as session manager. But the older versions of Ubuntu used GDM. Once you logged in to the terminal, you can use these commands to re-enable graphical login:

sudo restart lightdm

or, if that fails

sudo restart gdm


Ports which was used for update is opened in your Ubuntu machine by default, and you can open bit torrent port or any other software port in  firewall with the following command and this would increase the speed.

sudo iptables -A INPUT -p tcp --dport 'your port number' -j ACCEPT

and

sudo iptables -A INPUT -p udp --dport 'your port number' -j ACCEPT

Hope this helps!


error in wubi installer inside windows 8

There are a couple of issues in the logfile. First time you ran Wubi it found an \ubuntu directory already present.

The second time it downloaded the preinstalled disk image ubuntu-12.10-wubi-amd64.tar.xz, but the download was incomplete, so extraction failed:

11-22 01:11 DEBUG  downloader: Download start filename=C:\ubuntu\disks\ubuntu-12.10-wubi-amd64.tar.xz, url=http://releases.ubuntu.com/12.10/ubuntu-12.10-wubi-amd64.tar.xz, basename=ubuntu-12.10-wubi-amd64.tar.xz,
                   length=562061340, text=None
11-22 02:02 DEBUG  downloader: download finished (read 207376145 bytes)
11-22 02:02 DEBUG  TaskList: ### Finished download
11-22 02:02 DEBUG  TaskList: ## Finished get_diskimage
11-22 02:02 DEBUG  TaskList: ## Running extract_diskimage...
11-22 02:02 ERROR  TaskList: Extraction failed with code: 2

After that you had a CD in G:\, but this isn't a valid image as it is failing the md5sum check. I noticed that the md5sum shows two different invalid md5sums, so I assume you have tried two different CDs (or mounted two different ISOs):

12-14 12:07 DEBUG  Distro:   checking whether G:\ is a valid Ubuntu CD
12-14 12:07 DEBUG  Distro:   parsing info from str=Ubuntu 12.10 "Quantal Quetzal" - Release amd64 (20121017.5)
12-14 12:07 DEBUG  Distro:   parsed info={'name': 'Ubuntu', 'subversion': 'Release', 'version': '12.10', 'build': '20121017.5', 'codename': 'Quantal Quetzal', 'arch': 'amd64'}
12-14 12:07 INFO   Distro: Found a valid CD for Ubuntu: G:\
12-14 12:07 INFO   root: Running the CD menu...
...
12-14 11:48 DEBUG  TaskList: #### Finished get_metalink
12-14 11:48 DEBUG  TaskList: New task get_file_md5
12-14 11:48 DEBUG  TaskList: #### Running get_file_md5...
12-14 11:49 DEBUG  TaskList: #### Finished get_file_md5
12-14 11:49 ERROR  CommonBackend: Invalid md5 for ISO C:\ubuntu\install\installation.iso (7ad57cadae955bd04019389d4b9c1dcb != 4d30a270cc24c85b33daa9d82d95b04d)
None
12-14 11:49 DEBUG  TaskList: ### Finished check_iso
12-14 11:49 DEBUG  TaskList: ## Finished use_cd
12-14 11:49 DEBUG  TaskList: ## Running extract_kernel...
12-14 11:49 ERROR  TaskList: Could not retrieve the required installation files

The correct md5sum for that ISO is:

7ad57cadae955bd04019389d4b9c1dcb *ubuntu-12.10-desktop-amd64.iso

So the solution is to download the ISO again and if Wubi fails, check the log file to see if the md5sum is good.

A couple of points for installing... if you want to install with Wubi (inside Windows) then you should place the downloaded ISO in the same directory as wubi.exe before running Wubi. If you burn it to a CD or mount it as a CD, then it will offer the "CD menu" which doesn't include the "Install inside Windows" option. (Or you can run it off the CD with the --force-wubi option).

Also, for computers purchased with preinstalled Windows 8, Wubi doesn't currently work due to lack of support for GPT disks - I think it's okay in your case as it says you have a 32 bit version of Windows 8).

Finally, you can install Ubuntu by booting from the CD AND keep Windows. The Ubuntu installer (ubiquity) will offer to split Windows and create a side-by-side dual boot install (except in certain cases where you have used the max partitions). This is the best solution if you want a permanent Ubuntu install (Wubi is more to try out Ubuntu).


There is

indicator-weather

After installing, you can start the indicator by running indicator-weather. Keep an eye on their project page for updates!

To make the indicator start automatically:

Go to System → Preferences → Startup Applications (Or Applications → Startup Applications if you're on Unity)
Click Add and select indicator-weather as the command.

To quit it, run killall indicator-weather in a Terminal. (Check if it doesn't start automatically after installing from the PPA below, I'm not sure)


Ubuntu 18.04 LTS not resolving us.archive.ubuntu.com

Immediately after the BIOS/UEFI splash screen during boot, with BIOS, quickly press and hold the Shift key, which will bring up the GNU GRUB menu. (If you see the Ubuntu logo, you've missed the point where you can enter the GRUB menu.) With UEFI press (perhaps several times) the Esc key to get to the GRUB menu. Sometimes the manufacturer's splash screen is a part of the Windows bootloader, so when you power up the machine it goes straight to the GRUB screen, and then pressing Shift is unnecessary.

The timing when to press the left Shift key can be tricky, so sometimes if you miss it you need to try it again. If that doesn't work try the answers to I can't get the GRUB menu to show up during boot.

From the GRUB screen select Advanced options for Ubuntu and press Enter.

A new purple screen will appear showing a list of kernels, which includes options of booting the kernels normally or in recovery mode.

Once you're in recovery mode, click networking. Once you did that, click dpkg. After all that click resume.

This works for me.


Ubuntu 18.04 Gnome, numeric keypad not working

Problem solved.

Click on triangle top right corner
Click on the icon wrench
Click in the left column on Universal Access
Go to the bottom of the page deactivate mouse keys (it is the first line in the box)


This was a bug in Ubuntu 10.10 but as you can see from the bug report, it should have been fixed with version 5.31.4-0ubuntu4.

What version are you using (in a gnome-terminal, run apt-cache policy gcalctool)?

Have you tried reinstalling it (run sudo apt-get install --reinstall gcalctool)?


Which drivers should I use on Lenovo z51-70

Well basically, it entirely depends on what you want to do(with Ubuntu). If you're just going to use it to listen to music, watch movies, etc. then the X.Org X server(open source) drivers are just fine. Ubuntu identifies the Intel HD graphics as your graphics source because Ubuntu uses it for graphics(everything you see on your screen).

In my opinion, the open source graphics drivers are just fine. However, if you're a gamer and would like to use it for gaming(e.g Steam), go here.


How to disable screensaver in Ubuntu 16.04

The screensaver options are in the Power management tab, not the display one.


Where is secure boot UEFI enabled Ubuntu 12.04.2?

My advice is to not run ANY OS in EFI mode on recent Samsung computers. As described by Matthew Garrett, this firmware can be bricked even from Windows. The initial Linux kernel fix just fixed the most common path to the underlying bug, but the bug remained. I've heard a vague report that there may be a second workaround in even more recent kernels, but I don't have details and I don't know if this really completely eliminates the risk.

Given all this, my advice is to do one of three things:

Return the computer to the store for a refund and buy something that's not defective.
Wipe the hard disk clean and re-install everything you want to use in BIOS mode rather than in EFI mode.
Put the computer back in its box until Samsung releases a fixed firmware.


What's the password of an SSH private key?

This is your SSH private key's password.

When you created your SSH key, you may have been queried to enter a password used to encrypt it and keep it secure.

Usually, when you SSH into a server using this private key, the SSH daemon retrieves the decryption password from your keychain, where it's usually stored. Because you're using something that doesn't directly use the SSH daemon, it's likely that it wants you to re-authenticate for security purposes.

If you don't remember your password, it will be stored in your system keychain. To read this, simply go into your "Passwords and Keys" program. From there, go to the login keychain. Look for the entry for "Unlock Password for user@host". Your password will be there.


Try to log out and log back in.

After changing the environment settings, you'll have to apply them to your currently running session. If you're in a GUI session (Unity, KDE, Gnome or whatever), this is initiated by your display manager (LightDM, KDM for example) and you'll have to restart your system from there by logging out and back in.

Alternatively, you can change your current user environment in ~/.profile and reload the environment for that terminal by running

source ~/.bashrc

which will load the user .profile file (and changes in the /etc/profile file as well). However, that won't help you if the application you start from the menus requires the updated profile to be applied.


Is it OK to use any kernel version with any version of Ubuntu?

Generally, it is OK to use newer kernels. They typically get more support than older ones. You sometimes can see it being recommended as potential fix for issues with wireless, touchpads, and other devices.

Older kernels might not be a good idea, since they may not be supported and have security vulnerabilities, and less support for hardware.  Keep in mind that when installing custom kernel, you might need to apply patches and fixes to it yourself. By contrast , what you get with Ubuntu updates, are kernels that Ubuntu's kernel teams and security teams have reviewed.


No internet connection after computer went to sleep with openvpn running

You don't need to reboot. Just disconnect your VPN connection, then re-connect.


I was experiencing the same issue on a Ubuntu 12.04 PC.  I fixed it by taking @hbdgaf's suggestion.  Sucks to fall asleep watching something and wake up to find out that the screen saver never came on.  My solution written in C is what I use now.  It is a daemon that uses the low level DBus API to call methods on VLC to get the playback status and ask VLC to quit if it is stopped.  The bash and python scripts were not reliable when run as Ubuntu Startup Applications on my machine, which is what I wanted.  I shouldn't have to remember to restart a script every time I reboot, right?  They would work if run manually, however.  The C program doesn't have that issue.  Stick it in Startup Applications and forget about it.

I'm told that the DBus object name is different in Ubuntu 14.04 (but VLC has the same issue with screen saver).  org.mpris.MediaPlayer2.vlc.instanceXXXXX on 14.04.  org.mpris.MediaPlayer2.vlc-XXXXX on 12.04.  Thanks Sneetsher.

Bash solution using GDBus (was installed by default on my Ubuntu 12.04):

#VLC Watchdog Bash Script (vlcwd.sh)
while [ 1 -eq 1 ]
do
    if [ "$(pgrep vlc)" != "" ] #if VLC is running
        then #get the playback status and save to variable pbs
        pbs=$(bash -c 'gdbus call --session \
        --dest org.mpris.MediaPlayer2.vlc-$(pgrep vlc) \
        --object-path /org/mpris/MediaPlayer2 \
        --method org.freedesktop.DBus.Properties.Get \
        "org.mpris.MediaPlayer2.Player" \
        "PlaybackStatus"')
        if [ "$pbs" = "(<'Stopped'>,)" ] #if VLC is stopped
        then kill -9 $(pgrep vlc) #then kill it so it doesn't block my screen saver
        fi
    fi
    sleep 5
done

Python

#vlc_watchdog_daemon.py
import time
time.sleep(30)
import dbus
import os
import subprocess
from subprocess import Popen, PIPE
import daemon

def vlc_killer():
    bus = dbus.SessionBus()
    vlc_media_player_obj = bus.get_object("org.mpris.MediaPlayer2.vlc", "/org/mpris/MediaPlayer2")
    props_iface = dbus.Interface(vlc_media_player_obj, 'org.freedesktop.DBus.Properties')
    pb_stat = props_iface.Get('org.mpris.MediaPlayer2.Player', 'PlaybackStatus')
    if pb_stat == 'Stopped':
        os.system("kill -9 $(pidof vlc)")

def vlc_is_running():
    ps = subprocess.Popen(['ps', '-e'], stdout = PIPE)
    out, err = ps.communicate()
    for line in out.splitlines():
        if 'vlc' in line:
            return True
    return False

def run():
    while True:
        if vlc_is_running():
            vlc_killer()
        else:
            time.sleep(5)

with daemon.DaemonContext():
    run()


TigerVNCViewer: unable to connect to socket: Connection Refused (10061)

You will need to install dbus-x11, then restart both Win-KeX and vnc-server.

Shut down VNC Server and Kex:

vncserver --kill :*
kex kill
kex stop

Install dbus-x11:

sudo apt update
sudo apt install dbus-x11

Restart Win-Kex:

kex -s

This YouTube video has more information that might be useful.


Fresh install of Ubuntu 14.04.4 LTS keeps freezing on apt-get update - WiFi adapter problem?

The logs should be in /var/log/apt/

Open a terminal and see what logs are there.

ls -la /var/log/apt/

I have a history.log file and a term.log file. Take a look at them.

cat /var/log/apt/history.log
cat /var/log/apt/term.log

I think the one you want is probably term.log.

If the log is large and you are unable to scroll back to the beginning inside your terminal, then you can buffer it on the go and scroll up and down.

less /var/log/apt/term.log

On a side note, all log files are usually stored in /var/log. Maybe take a look at dmesg, syslog too.

cat /var/log/dmesg
cat /var/log/syslog

If you want to watch a log file "live", while your system is running, you can run it through tail and log updates will output to the terminal on the fly.

tail -f /var/log/dmesg

If you are using tail or less, you exit the command with Ctrl+C.


What are these commands for (fglrx-updates installation)? And how to undo one of them?

You can remove a package by:

sudo apt-get remove <packagename>

So in your case it will be:

sudo apt-get remove libcheese*

But I will suggest not to do this unless you have a strong reason to.

Running sudo apt-get autoremove will be a safe bet.


Error while adding iso in VirtualBox on Ubuntu 13.04

Move the VM to a native linux partition as this is a permissions issue.

Answered by @RobotHumans in comments.


Ok, after a while I think I found the cause of my Perl-Tk fonts problem: a reinstallation of Ubuntu 14.04 plus Perl-Tk made the problem disappear.

So why did it appear in first place?

One thing that very likely caused problems in the old installation was that at one point I changed the user name and the name of the home directory (!) using the bash command usermod.

Observing that CPAN was still sticking to the old (now wrong) home directory when I installed Perl packages, I think this had to mean troubles in unpredictable cases.


Compute a random specifed day to add a days span

shuf - generate random permutations
You can use shuf for this as follows:
date -d "$(shuf -n1 -i0-2019)-$(shuf -n1 -i1-12)-$(shuf -n1 -i1-31) + 28 days"

E.g. shuf -n1 -i0-2019 outputs 1 number from a list of the numbers from 0 to 2019, so it gives you a random year in this range. The same is done for month (1-12) and day(1-31). This approach has one problem: As e.g. “2019-2-31” is not a valid date date will fail with an error:
date: invalid date ‘2019-2-31’

A workaround loop
You can work around that with a loop that is only exited when the command succeeded and suppress the error messages (by redirecting stderr to /dev/null):
while :; do
  if date -d "$(shuf -n1 -i0-2019)-$(shuf -n1 -i1-12)-$(shuf -n1 -i1-31) + 28 days"; then
    break
  fi
done 2>/dev/null

Example run
$ while :;do if date -d "$(shuf -n1 -i0-2019)-$(shuf -n1 -i1-12)-$(shuf -n1 -i1-31)+28days";then break;fi;done 2>/dev/null
Tue Nov 19 00:00:00 CET 1946

A loop for multiple dates
If you want to create a number of these random dates, change the loop as follows:
i=0
while ((i<3)); do
  if date -d "$(shuf -n1 -i0-2019)-$(shuf -n1 -i1-12)-$(shuf -n1 -i31-31) + 28 days"; then
    ((i++))
  fi
done 2>/dev/null

The number in line 2, here I used 3, is the number of dates to output.
Example run
$ i=0;while ((i<3));do if date -d "$(shuf -n1 -i0-2019)-$(shuf -n1 -i1-12)-$(shuf -n1 -i31-31)+28days";then ((i++));fi;done 2>/dev/null
Sat Nov 28 00:00:00 LMT 0572
Wed Apr 28 00:00:00 LMT 0771
Sun Nov 28 00:00:00 LMT 0917


Problem with alt+tab switch after removing Cairo-dock

I have been having this problem and the way i fixed it is

  in CompizConfig Settings Manager -> disable "Viewport Switcher"

I don't know what is relationship between Compiz and Cairo, but
this fixed the problem for me.


For squid I am using sqstat. Here is the link for the product Also there is another tool call Sarg


How can I copy folder's contents and tree-structure into a remote directory with same structure

You can use scp to upload your files to the remote machine into a separate directory, then ssh into the machine and just use cp command to copy the files from one directory to another, with something like.

cp -R /path/to/FOLDER1/* /path/to/FOLDER2


Have you tried logging out and back on?  This should refresh variables and settings in either Gnome or Unity.


Scrolling not working after suspend, looking for permanent solution

After some digging I used a combination of your solution and this answer.

On Ubuntu 18.04, I placed the following script in /lib/systemd/system-sleep/psmouse-refresh.  This reloads the module after suspend.

#!/bin/bash

# $1 is the state (pre or post)-sleep
if [[ $1 == post ]]; then
    modprobe -r psmouse
    modprobe psmouse
fi

make it executable

chmod +x /lib/systemd/system-sleep/psmouse-refresh


Open Build System error, nothing provides dh-systemd(>=1.5) in Ubuntu 16.04 repository

just edit the metainfo:
https://build.opensuse.org/project/meta/home:ssalil

replace 'standard' to 'universe'.

It should work ;-)