Chinese fonts are not visible in programs installed in Wine

First u must download wqy-microhei.ttc font online (https://github.com/anthonyfok/fonts-wqy-microhei/blob/master/wqy-microhei.ttc)

After save this Regedit file on pc (https://gist.github.com/swordfeng/c3fd6b6fcf6dc7d7fa8a)

Font file copy to wine folder under C: drive folder, under Windows folder, under Font (/home/YOURUSERNAME/.wine/drive_c/windows/Fonts)

If you cant see .wine folder, enter anyfolder and push keyboard Ctrl+H (show/hide hidden folder)

And last one  you have downloaded regedit file. Steps:
1) Download winetricks (sudo apt-get install winetricks)
2) Open wine tricks app
3) First screen select 'Select the default wineprefix' and click OK (go to next)
4) Select option to 'Run regedit'. You will see windows registry editor screen.
5) Click on bar 'Registry > Import Registry File'
6）Select downloaded registry file and import.
7）Finish!

I hope it help you. I also use some software have chinese font. Wine don't support some distro maybe.


Loss of connectivity swapping between APs

Set the BSSID of the router in the wireless connection script.
Basic service set identifiers (BSSID) is used to describe sections of a wireless local area network or WLAN. It recognizes the access point or router because it has a unique address which creates the wireless network. BSSID identifies the basic service sets that are 48-bit labels and conforms to MAC-48 conventions.
The easiest way to obtain the BSSID of your router, is to connect to it, then use the iwconfig command. The "Access Point" is the BSSID.
Then go to the active Wi-Fi connection profile, pop up the arrow at the end of the BSSID field, and you'll probably see that address already populated. Just select it. In the future, that Wi-Fi connection profile will only connect to your router, not the extender.
If you have more than one Wi-Fi adapter, you can also set "MAC Address" or "Device" to the MAC address of the specific Wi-Fi adapter, if you wish. That will lock that Wi-Fi connection profile to only use that adapter.
$ iwconfig
eth0      no wireless extensions.

wlan0     IEEE 802.11  ESSID:"redacted"
          Mode:Managed  Frequency:2.412 GHz  Access Point: xx:xx:xx:xx:xx:xx
          Bit Rate=144.4 Mb/s   Tx-Power=22 dBm
          Retry short limit:7   RTS thr:off   Fragment thr:off
          Power Management:on
          Link Quality=70/70  Signal level=-40 dBm
          Rx invalid nwid:0  Rx invalid crypt:0  Rx invalid frag:0
          Tx excessive retries:0  Invalid misc:26   Missed beacon:0

lo        no wireless extensions.

Using Wi-Fi Settings...

Or using nm-connection-editor in the terminal...

Update #1:
To prioritize connection settings...


LTS users will get the notification when the first point release (14.04.1) is release in July.

You could upgrade if you wish but since it seems you're concerned about stability I recommend you wait until July.

12.04 is still receiving updates and will continue to do so for 3 years (until April 2017). So, you're in no hurry.


Autocomplete while compiling a file with c++ is gone

Try adding this to your .bashrc:

complete -f c++


It does only seem to be temperature that's causing the issue here and here are a few things to mention:

The upper operational limit for this SSD appears to be 75°C.
SMART is reporting a threshold of just 30°C.
SMART can often be completely incorrect.
In my experience (with other brands of SSD) this is a fairly standard temperature.

That might sound like I'm saying it's all okay, but if it's pumping out errors, you might want to test it further. Sounds pathetic but I'd probably want to attach it to a Windows machine to see its SMART output there.

At least if it is only 180 hours old, you're almost certainly within the warranty :)


Is it possible to install Ubuntu and remove Windows?

You can. Yo have to choose "Replace Windows 8 with Ubuntu" in "Installation Type" step.


Overwrite previous output in Bash instead of appending it

Basically the same as aneeshep's answer, but uses Return (\r) rather than Backspace (\b) because we don't know if the length will always be the same, e.g. when $sek < 10.

Also, your first echo should use $sek, not hard-code 60.

Finally, note the space after the ....

#!/bin/bash
sek=60
echo "$sek Seconds Wait!"
while [ $sek -ge 1 ]
do
   echo -ne "One Moment please $sek ... \r"
   sleep 1
   sek=$[$sek-1]
done
echo
echo "ready!"


Can ecryptfs-setup-private be made to use a 256 bit AES key (instead of the default 128 bit key length)?

The short answer is 'no'. When I wrote ecryptfs-setup-private, I chose a set of defaults for eCryptfs that I considered sensible, secure and supportable for millions of Ubuntu users who wouldn't care much about tunables over the long haul.  This limited the number of configuration combinations we had to test and support.

As you've noted, eCryptfs is very configurable if you read the docs and mount manually, while the Ubuntu Encrypted Private/Home feature has a consistent set of options everywhere.

Moreover, Bruce Schneier has recommended against using AES256, in favor of AES128:

  And for new applications I suggest that people don't use AES-256.
  AES-128 provides more than enough security margin for the forseeable
  future.


Landscape Autopilot Openstack stuck at checklist "One on the public net"

I looked over your excellent question, and my only suggestion is that I would need to see the MAAS configuration to verify things, but this should be correct, and I don't see any immediate problems in your setup.  It could be a newer version of MAAS changed APIs a bit, and the Autopilot tool no longer correctly talks to it (i.e., BUG).

However, I'm posting this here so you know the Autopilot tool is no longer being developed.

Please see the following for the official word on the Openstack "Autopilot" offering in the Landscape tool:

https://insights.ubuntu.com/2014/11/06/putting-your-openstack-on-autopilot/

Specifically, Here is the text from Canonical:

  Thanks for your interest in Ubuntu OpenStack. Canonical has sunsetted
  OpenStack Autopilot and replaced it with conjure-up. We welcome you to
  visit our OpenStack product page to find an Ubuntu OpenStack solution
  that meets your needs.


I cannot find the library libXp.so.6 for Ubuntu 20.04

You can download it from Debian Jessie repository and install by terminal:
cd ~/Downloads
wget -c http://archive.ubuntu.com/ubuntu/pool/main/g/glibc/multiarch-support_2.27-3ubuntu1.4_amd64.deb
wget -c http://ftp.debian.org/debian/pool/main/libx/libxp/libxp6_1.0.2-2_amd64.deb
sudo apt-get install ./multiarch-support_2.27-3ubuntu1.4_amd64.deb ./libxp6_1.0.2-2_amd64.deb


`emacs24` package not available on Ubuntu 17.10

Have a look here
https://launchpad.net/ubuntu/zesty/+source/emacs24

Or

sudo apt-add-repository ppa:cassou/emacs
sudo apt-get update && sudo apt-get install emacs24 emacs24-el emacs24-common-non-dfsg


Disable gnome-software's notification bubble (notify-osd) for available updates

According to this Fedoraforum.org post, you could try disabling GNOME Software's automatic downloading of updates:

gsettings set org.gnome.software download-updates false

The description of that key reads:

  If enabled, GNOME Software automatically downloads updates in the
  background and prompts the user to install them when ready.

I don't have any updates on hand to test.


NetworkManager not populating resolv.conf

Use following command and answer YES to enable dynamic updates:

sudo dpkg-reconfigure resolvconf

Worked for me on Ubuntu 12.04.


I'd try SSHing in without a key and then re-uploading yours.

ssh -o PubkeyAuthentication=no user@host


Cannot launch .desktop files (opens with Text Editor instead)

Basically, I found that the Files/Nautilus application does not allow executing .desktop files anymore. Instead there are 2 options we can do.

Enable 'Desktop icons' using GNOME Tweaks and create the .desktop file inside the Desktop folder. Then it will appear on the desktop (without its icon). Then right click on the desktop icon and choose "Allow launching" and the icon will appear and it will be executable.
Add the .desktop file inside the ~/.local/share/applications and then it will appear in the App launcher, so you can add it to the Dock (add to favorites) and copy to the Desktop folder to add to Desktop.


Ubuntu 14.04 LTS - Why can User bypass password at Unity Login?

Try changing password or turning on/off Automatic Login. If it wouldn't work I think you need to report a bug.


Does sudo really make you root for a while?

What's the command you are trying? A common mistake is sudo foo > output which doesn't run the output redirection as root because it's done by the shell. A solution to this one would be foo | sudo tee output (or sudo foo | sudo tee output if foo requires root access)


Grub not coming up after ubuntu reinstall

What worked was setting GRUB_HIDDEN_TIMEOUT to some seconds.

Edit Grub settings by editing /etc/default/grub, you can do so by:

sudo nano /etc/default/grub

Set GRUB_HIDDEN_TIMEOUT to 10 seconds or whatever you prefer so the beginning of grub file now looks similar to this:

GRUB_DEFAULT=0
GRUB_HIDDEN_TIMEOUT=10
GRUB_HIDDEN_TIMEOUT_QUIET=true
GRUB_TIMEOUT=100
GRUB_DISTRIBUTOR=`lsb_release -i -s 2> /dev/null || echo Debian`
GRUB_CMDLINE_LINUX_DEFAULT="quiet splash"
GRUB_CMDLINE_LINUX=""

Save the changes and reboot. If you used the above command in step (1) you can do so by pressing Ctrl + X then letter Y and then Enter.

Notice the GRUB_TIMOUT=100 in my example .. that's to say that this setting doesn't work. I'll post an update if I find out why.. please do comment if you know why - I will pay the respects here, thanks.

Thanks @ben-Nabiy Derush for helping out to find the answer.


you need to delete following folder

rm -rf ~/.PRODUCTVERSION

~ is an alias for the home directory, for example /home/john

PRODUCT would be one of the following:

IntelliJIdea (IntelliJ IDEA Ultimate Edition)
IdeaIC (IntelliJ IDEA Community Edition)
RubyMine
WebIde (WebStrom and PhpStorm use this common directory)
PyCharm

so in your case

rm -rf ~/.RubyMine5.4.3.2.1

you can read this link for further knowledge

After that you also need to delete

rm -rf /home/USERNAME/.gnome/apps/jetbrains-rubymine.desktop (or /home/USERNAME/.local/share/applications/jetbrains-rubymine.desktop)

if previously installed rubymine apps, you also delete this

rm -rf /home/USERNAME/.local/share/applications/mimeapps.list


Error message in upgrading from 14.04 to 16.04

To do the distribution upgrade, the command you want is:

sudo do-release-upgrade

The error you are getting is most likely due to the package it's referencing being in a bad state. There are several ways around this, however since you are upgrading my recommendation would be to first remove the package:

sudo apt-get autoremove linux-headers

If this doesn't work you may need to play hardball:

sudo apt-get remove --purge linux-headers

Once you get that package removed, you'll be able to continue normally.

On the off chance that the above commands don't work, take a look at the answers here How to remove package in bad state, software center freezes, no synaptic Even though you are not having issues with Synaptic, it shows you how to handle the bad package that's causing your error.


As @Pisu stated, this is now a bug on launchpad.


Could not connect to in.archive.ubuntu.com

Somehow I found the solution, thanks for the help though.
There are more answers for this on the original question:
Connection Refused while apt-get update ubuntu 18.04 over proxy
This solution worked for me,
The issue is that the proxy settings are not being passed to the sudo level. You are able to ping and wget stuff as a normal user since you have the http_proxy and https_proxy settings set for that current user. When you use sudo, those environment variables are not passed to the elevated user.
The solution is to use -E with sudo to pass on those environment variables to the elevated user.
For example, do the following:
sudo -E apt-get update

It should work.


Does Ubuntu work on ASRock H170M-ITX/DL motherboard?

Ubuntu will work on your motherboard, just make sure to get 16.04.


No display on laptop screen when using nvidia prime

Try xubuntu. It uses xrender for compositing. On my Thinkpad P50 with the same graphics, two external monitors & the laptop panel works in xubuntu 16.04 or 16.10. But gnome or ubuntu (unity) have your symptoms.


Application for taking pretty screenshots (like OS X does)

Using Shutter

First go to Edit -> Preferences and tick the two options mentioned below .

Now Take the screenshot of a window and right-click and select run a plugin .

Now select Hard Shadow and run it .

Your Final Screenshot will look like this .

Using gnome-screenshot

Launch 'Take Screenshot' from the dash and select 'Include the window border' with the Effect Drop 'Shadow' or 'Border' and then take the screenshot.

To do the same using the terminal ( Ctrl + Alt + T ) paste
gnome-screenshot -w -b -d 5 -e border

where 5 is delay in seconds and border can be replaced with shadow for 'Drop Shadow' .


GRUB is still beta after upgrade to 14.04

Ubuntu 14.04 shipped with a beta version of Grub2. To be specific "2.02~beta2-9".

Sources:

http://packages.ubuntu.com/trusty/grub2

Will Ubuntu 14.04 Have Improved UEFI Support Or Will We Be Using Boot-repair For The Next 5 Years?


My idea is to get the icons from the original ubuntu distribution CD. Here is the method for that.

In case you have the installation CD lying around just mount it and move to mounting the squash filesystem (step 2)

If you have the ISO image for your Ubuntu distribution, mount it in a temporary location using:

mkdir /tmp/isotemp; sudo mount -t iso9660 -o loop /path/to/ubuntu-<version>.iso /tmp/isotemp

Next create another temporary location to mount the squash filesystem (located at ) image at and mount it.

mkdir /tmp/squashfs; sudo mount -t squashfs -o loop /tmp/isotemp/casper/filesystem.squashfs /tmp/squashfs

Copy over the missing or damaged icons. One way would be to just copy everything using:

cp -fr /tmp/squashfs/usr/share/icons/* /usr/share/icons/

But I prefer copying only stuff which has changed using rsync:

rsync -rvt /tmp/squashfs/usr/share/icons/* /usr/share/icons/

This should restore your original icons. I'd also reccommend installing any 3rd party icons in your home folder ~/.icons/ and trying to see what went wrong there.

UPDATE:

Now the missing icons would be for the applications which install icons to /usr/share/icons when you install them but their icons are missing now. To find a list of all such applications and get the icons back you can use the script posted in this answer:

https://askubuntu.com/a/113228/142100


Prevent automatic reboot after Ubuntu Core update on 16.xx

I was trying to track down the Snappy Ubuntu Core source code and the closest I could find was this which has an accepted answer that I find unacceptable. With the source code many developers seeking to turn off auto-updates might be able to accomplish a goal akin to your own.

The second best solution for them, and perhaps yourself, is to find the name of the binary that performs auto-updating. Let's say for example it is called a. Rename it to b. Replace a with a simple program that displays "Hello World". During system boot call b in startup scripts.

Basically whenever you want to update your OS (or "Store" as they like to call it) at your convenience simply reboot your machine. After the update it will reboot again. On the second reboot when b is called the first reboot already updated the applications (called "snaps") so the second reboot would perform without an update.

Whenever Ubuntu tries to run auto-updates behind your back, it will simply be running a new program that writes "Hello World" to /var/log/syslog.

I'm not using Raspberry Pi 2 so I can't find the name of the auto-update program that needs to be renamed to "b". Hopefully someone else does use it and can provide the name.


Unable to give permission through sudoers to a script accessing /dev/tty13

You need to actually use sudo for a sudoers rule to be of use. Either:

Use the current sudoers rule and run sudo /home/abc/ak.sh
Use the other rule you mentioned, but with absolute path for cat like this:
abc ALL=NOPASSWD: /bin/cat /dev/tty13 and run sudo cat /dev/tty13 in the script.


Unable to run Makefile targets in Windows Subsystem for Linux (Ubuntu 18.04)

As @steeldriver mentioned in this comment, I seemingly had npm make along side make itself.

Run type -a make. Ideally you want /usr/bin/make to appear only, I also had /usr/local/bin/make which isn't needed.
npm uninstall make -g to remove the latter instance of make.

This rectified the issue.


Trying to hook up an external monitor to netbook

OP answered:

  Ended up using arandr, a gui for xrandr, and almost fixed it, the rest is likely a driver problem.


SSL connection with TLS connection error

Problem solved, seems like the sites I am visiting is using Tor, and our network firewall is dropping anything related to Tor.

Just need to remove the firewall rule that is blocking Tor.


You may try typing the password on the user name field to make sure that you are actually entering the correct password.


virtual host setup points to other directory(one directory down)

Your ServerName is set to www.exmaple.com which is different from example.com. For example.com your Apache seems to use the default VirtualHost configuration.

Either change your ServerName, add example.com as an ServerAlias or visit www.exmaple.com (note the spelling!) - you may have to add an entry to /etc/hosts or your DNS server for the latter one.


Why does dynamic debug control not print any variables?

Use the dmesg utility to see the actual debug output from the kernel.

The dynamic_debug control file just shows all of the debug statements in your running kernel that can be enabled or disabled. The =_ in your example output shows that these debug messages are disabled and won't appear in the kernel log output. The p flag would indicate that the debug message is enabled.

You can then write to the dynamic_debug control file to enable any of the extra debug statements that you need. The syntax for this is somewhat cryptic, but well documented at https://www.kernel.org/doc/html/latest/admin-guide/dynamic-debug-howto.html.


It was extension problem.
This extension caused problem: https://extensions.gnome.org/extension/1414/unblank/


What's the command for ssh to find files which *.png and download them

You can list files of your interest with ssh, then download them with scp:

ssh user@host find /remote_path -iname '*.png' |
  while read pngfile; do
    scp user@host:"$pngfile" /local_path
  done

All *.png files under /remote_path will be downloaded to /local_path, but the remote directory structure will not be created (all files will be put in the same directory), so you may have problems if you have two files with the same name in different directories.

Edit

The remote find command line should be corrected in this way:

find /remote_path -iname "'*.png'"

where the internal pair of single quotes are needed to avoid local shell pathname expansion of *, wheras the external pair of double quotes are needed to avoid remote shell pathname expansion of *.

The two types of quotes could be exchanges, and other syntaxes could be used, like \''*.png'\', \""*.png"\" or "\"*.png\"".

If you don't have .png in remote home directory, there is no difference between the two commands, but it is better to be safe.


Every motherboard has a slightly different BIOS/UEFI interface but you should notice two (or more) different entries for your USB drive in your boot options or boot priority list.  Make sure that the non-UEFI option is chosen so the installer will default to legacy mode.

Otherwise, if you select your flash drive preceded with UEFI:, the installer will default to UEFI.

If there aren't any non-UEFI options shown, you may need to search for additional settings in your BIOS to disable UEFI or enable MBR.  Sometimes this is called "legacy mode".  Refer to your manufacturer's manual for hardware specific questions on how to do this.

Booting into legacy mode with the USB should make it easier for GRUB and the installer to find your Windows installation.


Ok, not sure why this didn't show up in installed applications under Natty (hopefully someone can explain that to me).

I followed the instructions in this thread:

Right click on the desktop and choose "Create Launcher"
Enter anything you would like for the name (in this case I chose LMMS)
Enter lmms in the Command field
Click OK; This will create a Launcher on the desktop
Drag the icon onto the side bar launcher

I guess there is probably a way to create this shortcut in an easier way without creating a Launcher on the desktop, but I can't see how to do it. If you right click on the side bar launcher there is no context menu.


Install Dual Boot fail: Ubuntu cannot find Windows 7

Do you know, if the hard disk uses a GPT or a MBR structure? If it is GPT, there should be also a corresponding fake MBR. Maybe these two are not consistent.

Some time ago, I had a similar problem. The Ubuntu installer could not detect the fresh Windows 7 installation. I solved it by wiping the first sectors of my hard disk. Then I could create a clean MBR structure and install Windows and Ubuntu again. Before you continue with any experimental steps, you should create a complete backup of your Windows installation.


You have two options:

purge PPA with its packages (if they were installed) with commands below:

sudo apt-get install ppa-purge
sudo ppa-purge ppa:george-edison55/cmake-3.x

simply remove PPA if you have not installed packages from this PPA with commands below:

sudo add-apt-repository -r ppa:george-edison55/cmake-3.x

Then run sudo apt-get update followed by sudo apt-get upgrade again.


"Default" button in Lubuntu's notification area

The default button should clear all notification.


Ordinary use. Is GFX memory the culprit? Problems with 128 MB GFX memory

Based on the bug reports, it appears extremely unlikely that the video memory (graphics card RAM) has anything to do with this issue. On the other hand, the graphics card itself (particularly its driver) probably have everything to do with it.

The bug seems to especially manifest when an external monitor is being used with some models of mobile Nvidia cards. What is the resolution of your laptop screen and the external monitor? Which version of Ubuntu are you using? Do you have this problem if you try Unity 2D instead of Unity?

Also, please share the content or output of the following commands/files to better help us troubleshoot your problem (instructions in this answer): command(s): lspci -nn, dmesg


I've posted an answer to Bradd's question: https://askubuntu.com/a/490900/297973. Long story short, you may need to add $KLogPermitNonKernelFacility on to rsyslogd's config.


I had fan problems myself on Lenovo Y580 Intel® Core™ i7-3630QM CPU with internal hd 4000 graphic, and nvidia gtx660 graphic card.

I simply changed GPU on Nvidia X server settings (proprietary driver) to Intel.

You can use Intel graphic installer , it works well on Ubuntu 14.04.


network-manager is interferring with the change of mac address.

You can automate the mac spoofing with an udev rules. It will be applied automatically while booting.

Create a file /etc/udev/rules.d/99-mac-spoofing.rules with the following content

ACTION=="add", SUBSYSTEM=="net", ATTR{address}=="XX:XX:XX:XX:XX:XX", RUN+="/sbin/ip link set dev %k address YY:YY:YY:YY:YY:YY"

where XX:XX:XX:XX:XX:XX is the old mac address and YY:YY:YY:YY:YY:YY the new one.

You can even use random mac address by using macchanger -r in the udev rules.

The wifi AP may have MAC address filtering enabled.


The Software and Update section in settings is not working

A): You were warned not to update with the repos: Before updating your system , please remove all Kali-linux repositories to avoid any kind of problem .

B): You remove the repos using the katoolin tool not using Software and Update section in settings

Now to remove do the following:

Run the sudo katoolin command
Select option (1) to Add Kali repositories & Update
Select option (3) to remove all kali repositories
Check and make sure the repos are gone after the command at step 3. Grep for it with:

sudo grep -i -R "kali" /etc/apt/sources.list

If step 4 returns repos then use a text editor [I recommend nano for those not familiar with vim], to add # before each line or remove them completely. PLEASE LOOK BEFORE ADDING

Using nano:

sudo nano /etc/apt/sources.list
To save: Ctrl+o, then Enter
To close: Ctrl+x

Now update your system with:

sudo apt update

WARNING:

Did you watch this video: https://www.youtube.com/watch?v=8VxCWVoZEEE


If you install libapache2-mod-php7.0 in addition to libapache2-mod-php5 it will not enable itself (you should see this in {apt,dpkg}.log), so you need to disable php5 module and enable php7.0 module:

a2dismod php5
a2enmod php7.0
apache2ctl restart

P.S.: You should read what the packages tells you at the installation time.  Running apt-get with -y is a quite sure way how to miss important stuff.


The file /etc/default/openvpn, try setting it this way...

#AUTOSTART="all"
AUTOSTART="none"
#AUTOSTART="home office"

In terminal, open nm-connection-editor and check the following setting... using your own connection profile...

You can also check the Startup Applications app to make sure that there are no defined VPN startups there.

Lastly, check ~/.config/autostart to make sure there are no defined VPN startups there.


Cannot find the 'lg' (looking glass) command in Gnome3

To my knowledge, the command "looking glass" is a part of the Gnome-Shell itself.
Make sure you have "gnome compatibility" activated in the compiz config settings manager and you have gnome-Shell installed.

The "running command" shortcut normally is Alt+F2.

So, please press Alt-F2, a very simple command window will appear. Here you can type "lg" to activate this bug-tracking- and processes-information-window.

I hope, that was helpful for you.


Powerpoint: remote pointing and slide track device

From my experience most of the time when you connect a remote via usb bluetooth adapter in ubuntu 10.04 and up, they will behave basically like a mouse. So you will have access to the basic functions e.g. left-click, right-click and so on.
But some of the special functions or buttons advertised for the product will most likely not work.
So I wouldn't go for anything too fancy.


Change popups (notifications) style in Xubuntu

You can change the properties of the "pop-up" notifications via the "Notifications" settings. These are under the Settings tab:

Additionally, you can invoke this through the terminal, with the following command:

xfce4-notifyd-config

Both alternatives open the following window:

This has basically everything you need.


This tutorial should help you out.

https://www.youtube.com/watch?v=UQKQiP7JU-8


Ubuntu 18.04 upgrade ton Ubuntu 20 issues

You need to remove all third parties ppa's and their packages before upgrade.
Use ppa-purge for that. When upgrade is complete, just reinstall everything you need and may add those ppa's again.
As to python, as soon as ppa's removed, reinstall default one with: sudo apt-get install --reinstall python3
It should fix your issues.


Shut Down Quickly - A stop job is running

I have used systemd for 5 months. Sometimes I get this problem.
To reduce the delay from the default value 90s (1min30s), it is in the /etc/systemd/system.conf file:

#DefaultTimeoutStartSec=90s
#DefaultTimeoutStopSec=90s

Uncomment these line and change to any value you want. This solution just reduce time you have to wait. You should check your virtualbox daemon.

Second solution is install watchdog and enable it. It works for many people but it not works for me.

P/s: If you want to force poweroff. Let have a look at systemctl manpage.


Can't open Software Center due to a malformed line

This is your problem:

SystemError: E:Malformed line 54 in source list /etc/apt/sources.list (dist parse)

Do a

gksu gedit  /etc/apt/sources.list

from command line and locate line 54 and see if you can fix it. If unsure what is wrong add it to your question and we'll have a look at it.


what is "System program problem detected" notification about and how to fix it?

Fixed by improving keyboard shortcuts in the Cairo-Dock app:

Corrected Lock Screen Shortcut as Super+L somehow is not allowed.
Corrected Use Keyboard to navigate Cairo Dock as Super+Enter is somehow not allowed.


Page titles disapeared from chrome tabs after upgrading to 13.10

You can fix this by installing Mir. It occasionally appears in Mir too, but all you have to do is switch Mir on and off again.


Configure Cannon p200 ink jet printer in Ubuntu 12.04

In linux the lpr Command is used to submit the print jobs with few arguments such as

lpr [ -E ] [ -H server[:port] ] [ -U username ] [ -P destination[/instance] ]
    [ -# num-copies [ -h ] [ -l ] [ -m ] [ -o option[=value] ] [ -p] [ -q ]
    [ -r ] [ -C/J/T title ] [ file(s) ]

You can do man lpr for more info.

In order to verify if the printer is installed or to check what is the default printer, use the following command.

lpr -s #this will list the pritner operational status
lpr -d #this will list the default printer.

there is graphical web-interface used by CUPS as well to manage the printers in GUI. You may have to install it, therefore type

sudo apt-get update && sudo apt-get install cups cups-client lpr

Open firefox or other browser and goto  http://localhost:631

make sure you add the user for cups by sudo adduser <username> lpadmin in order  to login into the CUPS Admin portal.

You can read more information about it @ http://www.computerhope.com/unix/ulpr.htm

I hope this helps. Good Luck


Laggy when lid is closed and on external monitor (on the MacBook)

I can confirm that using the MacBook with its screen switched off and the external monitor plugged in almost completely solved this, and using the Compizconfig tool completely solved it. I enabled a couple of settings such as "Mouse position polling" but not sure which one was the actual culprit. Note that I didn't revert any change from the blog mentioned in the question - even though I do see "core temperature above threshold,  CPU clock throttled" messages in the system log while compiling code, the end-user experience is not affected by that.


No need to modify any Makefile.

ffplay

ffplay requires sdl2, so install the libsdl2-dev package to fulfill that dependency. You won't need --enable-ffplay as it is enabled automatically.

Your other ./configure line options

--enable-pthreads Remove this. It is auto enabled.
--enable-libvpx requires libvpx-dev package.
--enable-libmp3lame requires  libmp3lame-dev package.
--enable-libtheora requires libtheora-dev, but I would omit it and use libvpx instead.
--enable-libvorbis requires libvorbis-dev, but I would omit it and use libopus instead.
--enable-libx264 requires libx264-dev.
--enable-libx265 requires libx265-dev.
--enable-runtime-cpudetect no need for this unless you're building an executable that will run on various machines.
--enable-libfdk-aac requires libfdk-aac-dev.
--enable-avfilter Remove this as it is automatically enabled.
--enable-libopencore_amrwb --enable-libopencore_amrnb Old, legacy encoders/decoders that nobody uses anymore. Requires libopencore-amrnb-dev and libopencore-amrwb-dev. If you remove this then you can remove --enable-version3.
--enable-filters Remove this as it is automatically enabled.
--enable-libvidstab Requires libvidstab-dev.
--enable-libaom Requires a recent libaom-dev. You may have to compile it if your repo version is too old.
--enable-libxcb Requires libxcb1-dev, libxcb-shm0-dev, and libxcb-xfixes0-dev. You can omit declaring this option as it is automatically detected and enabled.
--enable-gnutls Requires libgnutls-dev or libgnutls28-dev depending on your Ubuntu version.

Compile guide

If you don't want to have to guess what to install just follow FFmpeg Wiki: Ubuntu.


Running Chrome extension periodically using a cronjob

After looking at several methods to carry out my task using crons, I settled for a better alternative which is offered by the chrome extension itself called chrome.alarms.

All I did was create a alarm and made it run every minute

chrome.alarms.create('checkNewTasks', {
    when: 1000,
    periodInMinutes: 1
});

Works like a charm!


I have two partions on the same disk, one with Windows10 and one with Ubuntu 15.04.

I followed these instructions: http://www.unixmen.com/how-to-install-burg-boot-loader-in-ubuntu-1304-and-linuxmint/
except for the part which allows you to choose boot drives (I didn't pick either of my drives). Then I ran...

sudo burg-install /dev/sdb

Note: my boot drive is 'sdb'
And then

sudo update-burg

...and tested with

sudo burg-emu

And it works! I also tried rebooting and it works fine, I can choose theme and everything.
Good luck!


https://linuxconfig.org/how-to-install-vmware-workstation-on-ubuntu-20-04-focal-fossa-linux
Doesn't command a specific version in the instructions but it makes note of one (unless the link it provides passively implies which one to use).
Provides step by step instructions.


Why doesn't `exec startx` work in 13.10?

Ok I think I have a solution for you, try this command

sudo dpkg-reconfigure x11-common

It should be on console users only by default, try to put it on Anybody.


Unable to connect Tata photon plus Ubuntu 12.04

Connect with wifi or some other source and install wvdial

after this run wvdialconf Check the output carefully as line Modem = /dev/ttyUSB2 would come from its output.

And in /etc/wvdial.conf

[Dialer Defaults]
Modem = /dev/ttyUSB2
Phone = #777
Username = internet
Password = internet
New PPPD = yes
stupid Mode = 1

Again: please check Modem = /dev/ttyUSB2 line as it should be same which is indicated in wvdialconf output after connecting the tataphone plus(Any provider)

Then wvdial to connect to internet.

depending on your systen use of sudo might be required.


1st time install of Ubuntu as dual boot on my Win 7 notebook now GRUB error?

This post should help you out.  It's written for people in exactly your situation.

DUAL BOOTING GUIDE PDF (WINDOWS AND LINUX)


How Do I Replace Default Ubuntu 18.04 Wallpaper?

Right-click on the desktop, choose "Change Background" and select a new picture in one of the ways offered.


How to fix E: Unable to correct problems, you have held broken packages

may be Remove or comment yours zabbix ppa in /etc/apt/sources.list since it may be not meet with yours ubuntu dependencies then update "sudo apt-get update", sudo "apt-get dist-upgrade", sudo apt-get "autoremove" then "sudo apt-get remove libsnmp30 and reinstall it (libsnmp30)

I dont know what zabbix is since i try istall it from ubuntu repository said E: Unable to locate package zabbix

Correct me if i'm wrong


In fact as edwinksl has pointed out you appear to have left one of the vital settings checked:

Use only one instance when started from file manager

instead of having it unchecked. Works nicely with this setting unchecked when I tested on my own system:

A little difficult to listen to both at once mind you :)

Note: There are some limitations on this technique which I suspect you have bumped up against:

You can only have a single window open if you open files directly with 'File -> Open' from within a single running vlc.
However you can use 'File -> Open' from multiple separate open vlc instances and thereby play multiple files.
You can have many vlc windows playing individual media files as in my screenshot, when you use: 'right click + Open in vlc'. You can do this multiple times and this is my own preferred technique from within a file manager.

Hopefully this is clear?

References:

How to play multiple instances of VLC


ubuntu 12.04 on macbook pro 9,1. Wireless internet disconnects intermittently

I used the have the same issue on my MacBook Air (late 2009), however I can for good sake not find the reference I found that fixed my problem.

There was an entry in /var/log/syslog that corresponded to the time that the wireless disconnected. Can you please share your /var/log/syslog?

The fix though, was to change the wireless driver, the one I'm using is
bcmwl-kernel-source:

$ lsmod | egrep "wl|cfg"
wl                   4207474  0
lib80211               14352  2 wl,lib80211_crypt_tkip
cfg80211              479757  1 wl


Cron process sends email, where are these sent emails?

The script does not save its sent email, it just sends out the mail - that's all.


ALERT! /dev/disk/by-uuid/xxxxxxxxx does not exist. Dropping to a shell

Solution was to perform these commands from liveDVD, it allows me to do things on my sda1 from that liveDVD(as far I understand)

sudo mount /dev/sda1 /mnt
sudo mount --bind /dev /mnt/dev
sudo mount --bind /proc /mnt/proc
sudo mount --bind /sys /mnt/sys
sudo chroot /mnt
update-initramfs -u
update-grub
reboot

A friend of mine from ubuntu pl forum helped me solve this problem.

He found out that there might be error in initramfs, which should be updated as part of the kernel update. If anything goes wrong during that update problems like mine could happen.


So, I've  just tested this on my PC. Yours is trying to download from their xenial- archive but mine is trying to grab it from the zesty- archive despite both of us using 16.04.

Try removing your current apt sources and re-adding theirs.

Go to System Settings > Software and Updates > Untick the archive.getdeb repository.

(mine says Zesty but yours will say Xenial)

Then try to add the new repository:

wget -q -O - http://archive.getdeb.net/getdeb-archive.key | sudo apt-key add -
sudo sh -c 'echo "deb http://archive.getdeb.net/ubuntu zesty-getdeb games" >> /etc/apt/sources.list.d/getdeb.list'


Updating wallpaper with smooth transitions

You may install wallch and also have a look at this very similar question.


Can not enable 3D acceleration on Ubuntu 14.04 inside VirtualBox

I had the exact same issue except that I run VirtualBox 4.3.12r93733 on a Windows 7 host, not OSX.

After trying many different things without success, I had a look at the linked VirtualBox bug report which claimed "fixed as of 27 May 2014 in VirtualBox 4.3.x and later releases".

The very last comment (as of today) has a link to a recent CD image for the VirtualBox Guest Additions.

After installing this in my 14.04 guest, the command line

/usr/lib/nux/unity_support_test -p

finally reports

Unity 3D supported:       yes

and all the Unity window animations are smooth as butter.

Update 2014-07-20:

According to the latest comments on this answer, there is no need for downloading the CD image any more, as it has finally become part of the official VirtualBox distribution. So if you upgrade, you'll get the fixed Guest Additions.

If you're stuck with a VirtualBox version without the fixed Guest Additions, you can get the CD images from the VirtualBox download repository - just find the correct version's folder and get the VBoxGuestAdditions_*.iso file inside it.


Did Ubuntu mess up my EFI? Computer no longer boots from thumb drive

Try booting up into Mac OS and installing rEFInd, a custom bootloader for Mac that works much better with Linux/Mac OS dual boots than the stock bootloader.


Ubuntu is installed, but computer just boots to windows 8.1

I had the same problem. This is probably because your grub isn't installed decently.

try this link:

Installing Ubuntu Alongside a Pre-Installed Windows with UEFI

and good luck!


I installed Kindle on Ubuntu 18.04.2 LTS easily by first installing wine using the following commands:

$ sudo apt-add-repository 'deb https://dl.winehq.org/wine-builds/ubuntu/ bionic main'

$ sudo apt-get update

$ sudo apt-get install --install-recommends winehq-stable

$ wine --version

should be wine-4.0

If there are GPG error, follow steps from https://wiki.winehq.org/Ubuntu .

Then download Kindle version 1.17.44183 from the following site and save to your desktop: (It must be this version)

https://kindle-for-pc.en.uptodown.com/windows/download

Right click the Kindle downloaded on your desktop and select install with wine. The program will create two desktop links (desktop.lnk and kindle.lnk) You can use either link, however the desktop.lnk, you will be able to add to your favorites on the side panel. Save the 1.17.44183 download in case you need it again later. Thats all!


Installing on a MSI GS60 2QD - Bootloader and wifi drivers question

As Jeremy31 said the WiFi card isn't working (hopefully will get support in the short term) and to answer my other question I installed the bootloader in the same partition that had Window's bootloader (the ~300MB UEFI one) and everything worked perfectly. Didn't have to disable secure boot or anything at all and I can boot both OSs.

Thanks!.


Ubuntu 16.04: Graphics card being detected wrongly, battery getting drained

There's no Official AMD drivers/support for AMD cards at this time.  Although I'm still unsure as to why it's not being detected.  This could cause issues in disabling it if it's not being detected.

Either way, this is how I disabled it on my Ubuntu 16.04;

1) Edit the file /etc/default/grub.  Add radeon.runpm=0 to the end of the line with GRUB_CMDLINE_LINUX_DEFAULT after quiet splash.

2) Save the file and run sudo update-grub. And then reboot.

3) After reboot, run a terminal and type in sudo cat /sys/kernel/debug/vgaswitcheroo/switch.  This should show you your two cards like so:

0:IGD:+:Pwr:0000:01:05.0
1:DIS: :Pwr:0000:02:00.1

IGD is your Intel graphics, DIS is your Discreet graphics(AMD).  If you only see ONE card listed here, then you have more issues you need to solve to get the card detected before you can continue with these steps.  If you DO see two entries, then carry on.

4) Now type echo DIS > /sys/kernel/debug/vgaswitcheroo/switch

IF and only if you get an error typing the above command, then type these two lines (replace with your own username) and then try step 4 again;

4a) sudo chown yourusername /sys/kernel/debug

4b) sudo chown yourusername /sys/kernel/debug/vgaswitcheroo/switch

4e) EXAMPLE OF ABOVE ONLY sudo chown xtoro /sys/kernel......

If you're unsure of your username, type whoami in terminal.

5) When step 4 is successful and has no errors, type

echo OFF > /sys/kernel/debug/vgaswitcheroo/switch

echo OFF > /sys/kernel/debug/vgaswitcheroo/switch

(Yes you type the same thing twice.)

6) Type in sudo cat /sys/kernel/debug/vgaswitcheroo/switch again, and you should see

0:IGD:+:Pwr:0000:01:05.0
1:DIS: :Off:0000:02:00.1

Note that after DIS, you should see "Off' now.

Now edit the file /etc/init.d/rc.local

Before exit 0, add these 2 lines if you had a permission error on step 4:

chown USERNAME /sys/kernel/debug

chown USERNAME /sys/kernel/debug/vgaswitcheroo/switch

This will allow you to disable the card every time

You can also add the following 3 lines between the chown and exit 0 lines to keep it disabled after every boot:

echo DIS > /sys/kernel/debug/vgaswitcheroo/switch

echo OFF > /sys/kernel/debug/vgaswitcheroo/switch

echo OFF > /sys/kernel/debug/vgaswitcheroo/switch

Reboot and then run

sudo cat /sys/kernel/debug/vgaswitcheroo/switch to confirm that your AMD card remains disabled after every reboot.


Old PC used under Ubuntu low graphic mode

You may want to use Ubuntu Server, which I believe doesn't install X (the graphical window system) by default: http://www.ubuntu.com/download/server

384MB is acceptable in this case (without X I think you can technically go as low as 192 on a still-supported release) but you'll want to stick to basic LAMP apps.


Trouble taking auto backup of mysql database to amazon s3

does the script work, if you execute it yourself?
if so - try replacing /bin/sh in the crontab with /bin/bash +x and replace /dev/null with /tmp/debug-mysqlbackup.log - this will output all steps to the file /tmp/debug-mysqlbackup.log

(still can't create comments ... ;-D)


Getting an error wrong fs type, bad option, bad superblock on SharedFolder

Have you tried it with ntfs-3g  installed?
sudo apt-get install ntfs-3g


Unable to do security updates on Ubuntu 12.04

What "unsecured source" are you seeing updates from?  What lead you to that conclusion?  I'm going to take a guess at answering what I think is your question:

Why are ubuntu update sources using http instead of https?

In short, they are secure.  The wiki page for  SecureApt explains, "Apt-get package management uses public key cryptography to authenticate downloaded packages."  Here is a wonderful post that explains another way: Are repository lists secure? Is there an HTTPS version?

What you've listed as an error is a list of packages.  This does not show that there is a problem.  If there is a problem, editing your question with the output from this command (via Terminal) will show it:

sudo apt-get update

For reference: https://help.ubuntu.com/community/Repositories/Ubuntu


Swap Ctrl/Caps Lock not working in VirtualBox 4.3.16

I had the same problem with the same version of Virtual Box.  I was able to work around the problem by running ctrl2cap.exe in Windows from the Sysinternals tool suite.


Two identical USB drives auto-mount with different owner group permissons, but why?

Problem solved! (sort of...)

... I've been doing some very deliberate and detailed tests for several hours now (including manually mounting the drives, as well as the auto-mount), and always with the same results.. Repeatable reslults!... until I tried something which shouldn't make a difference, but it did!

... I simply plugged in the "problem" drive on its own, and it mounted perfectly (on its own)! .. okay, so I then plugged in the other drive and it too mounted perfectly! ... I've subsequently rebooted, plugged, unplugged, and mounted, and unmounted (via Nautilus).. and all is working fine now

... There's nothing quite like a good mystery!  ...( and OMG! I certainly have learnt a lot about mounting tonight! ... It was worth it alll, just for that :)


If during the upgrade you use the boot to delete other partitions - then yes, but that is not a default setting, and there shouldn't be any reason for that to happen.

Just pay attention to what software you're activating, and at what level.
You might find this helpful:

https://help.ubuntu.com/community/Installation/UpgradeFromOldVersion


Short answer No.

Long answer:
ActiveX only works on Microsoft Internet Explorer. Unfortunately, there aren't any alternatives, just like there isn't and alternative to Flash. Not to mention, ActiveX is really old and outdated, full of security holes and vulnerabilities, and really should be killed with fire.


Create custom keyboard shortcut to send Super+2

How do I send Super+2 as a command

You could use xdotool for this (sudo apt-get install xdotool to install):

xdotool key super+2

  Second, I want the plus and minus keys to send Alt+Left and Alt+Right

This should work:

xdotool key alt+Right
xdotool key alt+Left

  7 and 9 to send Fast Forward and Rewind

You could give these a try:

xdotool key XF86AudioNext
xdotool key XF86AudioPrev

  I want the period key to open Clementine's EQ

This is where things get tricky. Without a dedicated shortcut you would have to program an xdotool macro to access the menu and launch the equalizer, but I am not quite sure if that would work, either.

In any case, as you can see most of these customizations can be performed using virtual xdotool key presses.

If you are wondering how to assign these commands to hotkeys of your choice make sure to check out this Q&A:

How can I change what keys on my keyboard do? (How can I create custom keyboard commands/shortcuts?)


Kubuntu 11.04 Network Manager won't let me choose a wireless security method for my network

Strange issue, I have no clue about it.

Maybe you should consider updating your fresh installed Kubuntu to fix any bugs

sudo apt-get update
sudo apt-get upgrade

I also recommend using Wicd instead of the default network manager,
it is much better with more options and features.

Simply install wicd from the konsole:

sudo apt-get update
sudo apt-get install wicd

Then restart and run it, and give it a try, most probably it will work.

Last, you might need to disable the default network manager of KDE, or just
uninstall it.

sudo apt-get remove network-manager

And don't forget to add wicd to your autostart list

Good luck !


I've experienced a similar situation when installing to an single hard disk, I reset the BIOS after installing. I figured out a solution by looking at the settings and remembered that I had the legacy option on during the install, but was off after. After switching it on again, I rebooted and ouila! It worked. I changed the setting back and reinstalled it in UEFI mode, and that also worked after reboot. But in this case, I think you have to set the boot disk properly, among puting /boot (or have no /boot partition) on the ssd you don't need so many partitions, and should really have only 2, / on  the ssd and /home on the HDD.


debuild error “*** No rule to make target” where target is blank

When looking at the output, I noticed that "No such file or directory" and "No rule to make target" both appear to be a newline character. I managed to replicate similar error output by adding a carriage return to the end of the first line.

You should check that there are not any unusual characters in the debian/rules file.


I have a grub menu display issue when booting up Ubuntu 12.04 LTS

I had a very similar problem, maybe the solution there can help you too:
Why does my screen blank out for the duration of the Grub boot menu?


How do I switch between Kwin Window tabs?

To switch only between tabs you can configure your own shortcut.

This can be done in the following way:

Go to Application Launcher → Settings → System Settings → Shortcut and Gestures → Global Keyboard Shortcuts
Select KWin from the 'KDE component:' combo box
The interested Action is 'Walk Through Windows Tabs'

This tool is smart enough to warn you if you are overriding some other keybind when the latter is defined in it. But be careful, it will not warn you if you are overriding some external application keybind.

Valid for KDE 4.12.3


Awesome WM can't seem to be able to find some programs in the right-click menu

You can open the the menubar with the default keybinding "Mod4" + "p". The menubar lists more applications than the awesome/debian menu.


Multimedia keys not working after updating gnome

In the System Settings there is the keyboard section in hardware. Check shortcuts tab. Clicking one of the short cuts you can change the accelerator manually by typing in what you wish to use. Example from my keyboard is I changed my web browser button from the standard WWW that is mentioned to the Home Page icon (House) and it set itself that way. I am unsure why the settings didn't auto install when upgraded etc. Hope this helps. I'm pretty new and slowly learning.


Which tiling window manager is easiest to install and use inside of GNOME

The only one I can think of that is specifically designed to work within the traditional Gnome setup is Bluetile.


In short, is the Smartmontools > v6.5?

The command seem to be

smartctl -A

Based on Smartmontools

Smartmontools NVMe support

Smartmontools supports NVMe starting from version 6.5. Please note, that currently NVMe support is considered as experimental. Currently implemented features:

Basic information about controller name, firmware, capacity (smartctl -i)
Controller and namespace capabilities (smartctl -c)
SMART overall-health self-assessment test result and warnings (smartctl -H)
NVMe SMART attributes (smartctl -A)
NVMe error log (smartctl -l error[,NUM])
Ability to fetch any nvme log (smartctl -l nvmelog,N,SIZE)
The smartd daemon tracks health (-H), error count (-l error) and temperature (-W DIFF,INFO,CRIT)
Currently NVMe support is implemented on Linux, Windows and FreeBSD. Details about supported version/driver combinations are provided in the next section.


I think it's crossfading.

See if it's turned on in your preferences, I was having the exact same problem.

If it is turned on, turn it off and then restart Rhythmbox.


check if a file exist with -f and convert the result into variable

When using matching you can expect zero or more answers back, so it is good to use a for loop to test one object at a time or it will break your -f test statement.

#!/bin/bash

shopt -s nullglob

a="Lista*"
b="/root/Testms/Files/$a"

for c in $b; do
   [[ -f $c ]] && { d=1; break; }
done
[[ $d ]] && { echo File exists; \
              echo ValNomeFileFullExt: $(basename "$c"); } || \
              echo File does not exists


How to specify a temporary folder with more disk space via terminal?

There's couple of ways you can go about this:

#1, remount /tmp with bigger size

As shown in  Update failing. Not enough space on /tmp

sudo umount /tmp
sudo mount -t tmpfs -o size=16777216,mode=1777 overflow /tmp

That will give you 16 MB in/mpt . Adjust size= to how much you need

#2, make temporary directory in your home

$ mktemp -d -p $HOME
/home/xieerqi/tmp.zrBHbp0Yt0

That will make temporary directory in your $HOME folder, that means you can use as much space as you need


Go to special pages. (using Chromium Browser or Google Chrome command)

No.

The developers of that app deliberately made sure it would not for security reasons, as explained at this Google support page. Many thanks to cmak.fr for finding that.


Origin instantly crashes with PlayOnLinux

I fixed it by following some advice found on this forum. In case the link is broken, here is a synopsis of what I did:

Create a new virtual drive as 32 bit windows XP
Install the following libraries with PlayOnLinux: dx9d36, mono28, msxml3, mfc42
Download dnsapi.dll and put it into windows/system32 in the virtual drive directory
Download OriginSetup.exe from somewhere (at the time it isn't availible from EA)
Select "install a program" in PlayOnLinux then install OriginSetup.exe, make sure to overwrite into the virtual drive that you just made
Enjoy EA games on linux! (as long as they are compatible with WINE)


Open Terminal at Startup and run Java application

You can spawn a bash root shell inside a mate-terminal instance, change the mate-terminal's working directory to ~/Desktop and execute your jar file inside it at startup by adding this command to Startup Applications:

mate-terminal -e "sudo -H /bin/bash -c \"cd ~/Desktop && java -jar executable.jar; /bin/bash\""

Hit the Super key, type "Startup Applications" and hit Enter
Name you command, type the name in the "Name" field and type the command in the "Command" field
Click on "Save" and click on "Close"

Command breakdown:

mate-terminal -e "<command1>": opens a mate-terminal instance and runs <command> in it
sudo -H /bin/bash -c \"<command1.1>\": spawns a bash root shell and runs <command1.1> in it
cd ~/Desktop && java -jar executable.jar; /bin/bash: changes the mate-terminal's working directory to ~/Desktop, executes java -jar executable.jar and spawns another bash root shell which will be available for further uses


There is no xorg-x11-fonts package in Ubuntu.  There is a package by that name in Fedora, but rather than packaging up a bunch of fonts into a single package they are split up on Ubuntu in packages such as xfonts-base, xfonts-100dpi, xfonts-75dpi, xfonts-cyrillic, etc.

Some of these font packages are probably already installed on your system, but for the most part scalable outline fonts are preferred to these legacy bitmap fonts.

If there is a particular bitmap font you need to install, you can probably find it by searching for packages containing xfonts in their name.


I fixed this issue installing sipe from source

First you need to install development packages as described here
Edit : added 2 libs that are not on the sipe instructions

sudo apt-get install autotools-dev pkg-config libglib2.0-dev \
libgtk2.0-dev libpurple-dev libtool intltool comerr-dev \
libnss3-dev libxml2-dev

Download sipe 1.20 from sipe page project to /tmp and uncompress

mkdir -p /tmp/sipe
cd /tmp/sipe
wget -O pidgin-sipe-1.20.0.tar.gz http://sourceforge.net/projects/sipe/files/sipe/pidgin-sipe-1.20.0/pidgin-sipe-1.20.0.tar.gz/download
tar -zxvf pidgin-sipe-1.20.0.tar.gz
cd /tmp/sipe/pidgin-sipe-1.20.0/

Compile and install, following the simple instructions from here

cd /tmp/sipe/pidgin-sipe-1.20.0/
./configure --prefix=/usr
make
sudo make install

The config on Pidgin that work for me

"Basic" Tab

Username : username@domain.com
Login : domain.com\username

"Advanced" Tab

Connection Type: Auto
User Agent: UCCAPI/15.0.4420.1017 OC/15.0.4420.1017 (Microsoft Lync)
Authentication Scheme: TLS-DSK

* Everything else empty or unchecked


It is definitely an install in legacy-mode and checking the boot-info-summary the install looks clean.
The problem seems to be with your graphics-card Radeon HD 5770.
To boot to Ubuntu do the following:

Immediately after the BIOS splash screen during boot, press and hold   the SHIFT button. This will display you grub containing a list of kernels and recovery option
Select the first kernel and presse to edit boot options
Find the line ending with quiet splash. Add the nomode- option before these key words - i.e. so the line looks like [...]nomodeset quiet splash
Press CTRL + X to boot

Look for detailed information for this steps in this answer.

Open the dash and type "drivers", click on the Additional Drivers-icon and check if Ubuntu give you any options to install an
appropriate driver for the graphics card. See detailed information for this step here.

A driver for your graphics card is available, but it seems to use it you will have to use Ubuntu 14.04. Look for detailed information and how to install this driver here.


How can I get the number of hardware level threads in my computer?

Using lscpu:

Architecture:          x86_64
CPU op-mode(s):        32-bit, 64-bit
Byte Order:            Little Endian
CPU(s):                4
On-line CPU(s) list:   0-3
Thread(s) per core:    2
Core(s) per socket:    2
Socket(s):             1
NUMA node(s):          1
Vendor ID:             GenuineIntel
CPU family:            6
Model:                 69
Stepping:              1
CPU MHz:               806.347
BogoMIPS:              4988.30
Virtualization:        VT-x
L1d cache:             32K
L1i cache:             32K
L2 cache:              256K
L3 cache:              3072K
NUMA node0 CPU(s):     0-3

The OS recognizes each hardware thread as a different CPU. The number you want is show at line CPU(s):, which is the same as multiplying Thread(s) per core:, Core(s) per socket: and Socket(s):.

Or you can use a single command:

lscpu -p | grep -c "^[0-9]"


Notice of the city during the installation of Ubuntu

From trial and error ..

It is simpler to just identify the correct timezone, and nearest major city (or cities), during install.

Then later, after install, you can search for a closer match.

Note: If you have already selected the correct country/region then matching your exact city is unnecessary. What is important is the correct timezone/summertime rules for your locality.


Network interface goes down when resuming VM

I've managed to figure it out: it seems like when my laptop enters deeper sleep level, my wireless NIC is put to power saver mode, and partly disables itself.
When waking it up and resuming my VM, Ubuntu does not detect quick enough the NIC, and skips the network configuration process.
To solve this, I created a small script with the two commands I use to enable the NIC, and renew my IP address (demonstrated at the question), and created a new keyboard shortcut to it.
I was also thinking about makin this scripts as some sort of a service that runs automatically on system wake up (assuming it won't run if NIC is enabled), yet I'm not sure if suspending a VM from the hypervisor itself also sends the Ubuntu OS to sleep mode as well.
I will try this automated solution as well and update my answer with the results.


according to your error messages, you are writing your log files into a mounted directory. My guess is that the connection to this remote host is unstable, and this causes problems for syslog-ng. If you are using NFS, I'd recommend the following:

USE at least NFS v4
USE the soft mount option (-o soft) to mount the partition
USE the TCP mount option (-o tcp) to mount the partition
DO NOT store the runtime files (for example, the configuration or the persist file) of syslog-ng on a mounted partition

HTH


After Upgrading to Ubuntu 18.04 build-essential, g++, gcc & cpp held broken packages

I've encountered the same - on Ubuntu 16.04 I had the Toolchain Test Builds PPA for gcc and clang builds, including gcc-7. During the upgrade to 18.04, 3rd party repositories were disabled by the installation process, with this PPA included.

To fix this, try (re?)adding the toolchain PPA to your apt sources list:

sudo add-apt-repository ppa:ubuntu-toolchain-r/test
sudo apt-get update

Then, when installing build-essential, it should successfully pick gcc-7 from the toolchain PPA.


You can use VirtualBox for OSX

https://www.virtualbox.org/wiki/Downloads

This will let you run a copy of Ubuntu in a window on your Mac.  You could also shrink your OSX partition and use ReFit, but if this is your first time with Ubuntu and you want to just try it, I would stick with VirtualBox (or, if you have it, VMWare)

Instructions for shrinking your OSX disk space to make room for Ubuntu and doing a dual boot install are here:
https://help.ubuntu.com/community/MactelSupportTeam/AppleIntelInstallation

But note the comment about using this on recent macs and the latest Ubuntu


How to save scrollback history in byobu?

An old question still not workably answered for earlier byobu versions, and I hit the need again.
This time I found a workable solution. From man byobu:
SCROLLBACK, COPY, PASTE MODES

   Each  window  in  Byobu  has  up to 10,000 lines of scrollback history,
   which you can enter and navigate using the alt-pgup and alt-pgdn  keys.
   Exit  this  scrollback mode by hitting enter.  You can also easily copy
   and paste text from scrollback mode.  To do so, enter scrollback  using
   alt-pgup  or  alt-pgdn,  press the spacebar to start highlighting text,
   use up/down/left/right/pgup/pgdn to select the text, and press enter to
   copy  the  text.  You can then paste the text using alt-insert or ctrl-
   a-].

I hit F7 to enter scrollback mode,
Space to start selecting,
gg to scroll to the top of the buffer (thanks @GeorgeMarian)

If that doesn't work, try this: either with lots of Page up or : followed by the largest line number (indicated top right) and Page up to get to the top of that page,

Enter to copy (to byobu's clipboard, not a terminal/system one),
then cat > my-byobu-dump.txt in the terminal,
Alt+Insert or ctrl+A,] to paste (again, from byobu's clipboard)
Ctrl+D to close the file.


How do I keep Screenshot open to take multiple screenshots?

There's also a list of keyboard shortcuts you can utilize:

PrtSc Save a screenshot of the entire screen
Shift + PrtSc Save a screenshot of a specific region
Alt + PrtSc Save a screenshot of the current window

Ctrl + PrtSc Copy the screenshot of the entire screen to the clipboard
Shift + Ctrl + PrtSc  Copy the screenshot of a specific region to the clipboard
Ctrl + Alt + PrtSc  Copy the screenshot of the current window to the clipboard


Ubuntu in Virtual box is upgrading packages terribly slow

It appeared that "Use host I/O cache" is disabled by default in VirtualBox 6.1.

It is located under Storage ->  Controller: SATA

I enabled it back and now machines run smoothly again.


grep - exclude string which is not a substring of a string

It's straightforward using a perl-style lookahead operator - available in grep's Perl Compatible Regular Expression (PCRE) mode using the -P switch:

$ grep -P 'aaa(?!xxx)' file
aaa
aaaxxx*aaa
aaa=aaaxxx
bbbaaaccc
aaaddd/aaaxxx

(bold formatting in the output indicates the matched parts highlighted by grep)

Although the zero-length lookahead is convenient, you could achieve the same output using GNU Extended Regular Expression (ERE) syntax, for example by matching aaa followed by up to 2 x characters followed by a non-x character or end-of-line i.e.

grep -E 'aaax{0,2}([^x]|$)' file

or even using GNU basic regular expression (BRE) syntax

grep 'aaax\{0,2\}\([^x]\|$\)' file

which match as

aaa
aaaxxx*aaa
aaa=aaaxxx
bbbaaaccc
aaaddd/aaaxxx


Firefox in Ubuntu 12.04 does not show the webpage properly

You can change default fonts in Edit > Preferences > Content. In this window you should see Fonts and colors heading and Default font setting. On the right side of this, you could find Advanced button; click it and you'll see the window where you'll be able to change default fonts.


Black screen on latest Nvidia/Ati Cards when starting LightDM/Ubuntu

This has since been solved by installing and updating the Nvidia driver to 290.xx or greater.

To do this follow this steps:

The launchpad https://launchpad.net/~ubuntu-x-swat/+archive/x-updates has the latest Nvidia Drivers (And Ati, And Intel, And...)

In a terminal execute: sudo add-apt-repository ppa:ubuntu-x-swat/x-updates

Update your repositories either by clicking on the "Check" button in the Update Manager or running in a terminal sudo apt-get update

The Nvidia driver version 290.xx should appear available. Install it, reboot, done.

This solved the black screen problem using a VGA cable with a TV (Might also solve other problems mentioned in the changelog)

NOTE - This did not solve the problem that some users are having that the resolution is outside of the border of the TV. As Oli mentions in this question HDTV resolution issue the overscan problem is what I am talking here. Although in my case there is no way to configure or tune this with the TV (My case Soneview 32')

More information in How do I install the Nvidia drivers?


scanning from feeder, only the first page is scanned

If you are using XSane, in the main control window set the number of pages to scan (top LH corner) to greater than or equal to the number of pages in your stack, then set the transport mode to ADF (not Flatbed). Set operation type to Multipage or Save (make sure you have a trailing page number in the file name). Check the area to scan in the preview window. Load up the stack and press "Scan".

I found the answer here:
https://nuance.custhelp.com/app/answers/detail/a_id/16559/~/only-the-first-page-is-being-scanned-when-scanning-multi-page-document

Good luck
jg


This is not new behavior for Rhythmbox, as it has been this way in Ubuntu for several years now. To quit, you first need to stop the music playback.


I think the problem might be that Ubuntu tries to access the NAS drive
as the user 'root'. Can I change that?

By passing the user name the NAS is expecting:
mount -t cifs //<NAS-IP>/Syslog /mnt/syslog_share -o username=xxxxx

Or passing it "guest" it it allows guest access:
mount -t cifs //<NAS-IP>/Syslog /mnt/syslog_share -o guest

The other problem you will encounter is wite access to this share.
By default CIFS mounts with owner = root and wite access only to root. If you want for to be able to write to that share yourself you need to tell CIFS that as well. You can for example change owner from root to you with a uid=your-server-user-name:
mount -t cifs //<NAS-IP>/Syslog /mnt/syslog_share -o username=xxxxx,uid=your-ubuntu-server-user-name


Ubuntu 18.04 - "Activation of network connection failed Ubuntu"

I found the solution looking at the syslog

sudo tail -f /var/log/syslog

Apparently the .crt file with the certificate was inside a folder with spaces in the name, and that was causing the error. The moment I removed the spaces from the path to the file, it worked on the first try.

Weird bug, but it solved it.


I know this post has been here for a long time but I would answer anyway.

You can install php5 alongside.

All you need to do is install php5.

After installing it, you would have multiple folders holding the different version of your php version.

First start by adding Ondřej Surý PPA to install different versions of PHP – PHP 5.6, PHP 7.0 and PHP 7.1 on Ubuntu system.

sudo apt install python-software-properties

sudo add-apt-repository ppa:ondrej/php

##For Apache Web Server
sudo apt install php5.6

Now you can install most required PHP modules from the list.
Install PHP Modules

sudo apt install php5.6-cli php5.6-xml php5.6-mysql

To switch between the versions

First make sure you stop your apache2 service

sudo service apache2 stop
sudo a2dismod php7

I would suggest you run phpinfo() after the above steps to confirm the version running on your computer, if all went well, you should most likely get an error, as no php file would run.
Enable e.g. php5.6

sudo a2enmod php5.6

Restart your apache2 service

sudo service apache2 start

check php version

php -v


One of your GNOME Shell extensions is causing your problem.

Plus, you have a number of added extensions, all by the same author, installed in the wrong place.

First, go to https://extensions.gnome.org/local/ and temporarily disable ALL extensions, and restart GNOME Shell (Alt+F2 and type r then ↵), or log out/in. Your problem should be gone. Then re-enable ONE extension at a time until your problem returns... and that's the bad one.

Second, all extensions in /usr/share/gnome-shell/extensions, except for the two *.ubuntu.com extensions, should be in ~/.local/share/gnome-shell/extensions.

Google Chrome may also be a factor, if you have many tabs open, or have themed it with a defective theme.


When I select Ubunu my computer just restarts

Please check RobinJ's post at I can't get grub menu to show up during boot

In order to see what is going on at boot, edit your grub menu by removing "quiet splash". Then you'll be able of seeing the boot messages and identifying the issue(s).


How can I change the window movement key when using Unity 2D?

I was calling it the 'window movement key' (based on the Window Preferences settings from Ubuntu 11.04). It seems in practice it's actually referred to as the 'mouse button modifier'.

Install the 'Configuration Editor' (gconf-editor) from the Ubuntu Software Center. You can use it to change the key.. or manually do it from the terminal with:

gconftool --set --type string /apps/metacity/general/mouse_button_modifier "<Super>"

The default value is <Alt>. I've changed it above to be the super (Windows) key. Other valid values are <Shift>, and <Control>.

Here's the description of the key from gnome.org:

"Clicking a window while holding down this modifier key will move the window (left click), resize the window (middle click), or show the window menu (right click). The middle and right click operations may be swapped using the "resize_with_right_button" key. Modifier is expressed as "<Alt>" or "<Super>" for example."


How to get a proper Firefox History view?

According to this mozillazine page the history for the browser is stored in places.sqlite file in the profiles folder (.mozilla/firefox/ on Ubuntu.)

So, I pulled that file up and took a look at the tables within the database. Within the moz_places table there is a column last_visit_date which provides you with an Unix time/Epoch time number.

However, there are no other columns that provide a number for initial visit and thus no way to provide a true browser history other than the one that Firefox themselves provide.

TL;DR: As far as I can tell by looking at the Firefox SQLite files, there is no way to get a full history other than the one the browser provides.

EDIT: I have created a basic Firefox addon that will write the date & time (in Unix/Epoch format) along with the page title and page URL to the firefoxHistory file in your home directory.

The code is available on this github gist.


Gnome 3 - Gedit 3.10 Any Auto session saver plugin?

For Gedit 3.10 (included in Ubuntu 14.04 too) you can use gedit-restore-tabs:

  Upon starting Gedit, this plugin will try restore all open documents from the last Gedit window that was closed.

For older versions, you might want to try the reopen-tabs-gedit-plugin:

  The plugin is intended to be used by those who uses gedit as a source code editor. It spares you reopening the documents that were loaded last time you closed gedit.


Apache usually complains of "no listening sockets available, shutting down", when another process is listening on said socket.
Make sure that your apache instance is down or you don't have something else listening on said port. Use this command to find out who ( what pid) is bound to the port:

sudo netstat -anltp | grep 443

where a (all) l (listening) -t ( tcp ) -p (program/pid) -n (numeric ports)


How can I SSH to remote server through VPN, running on a VM?

The command should be

osx_host$ ssh -fNL 9922:remote_server_on_vpn:22 ubuntu_vm
osx_host$ ssh localhost -p 9922

Remember to end existing connections.


Jellyfin alongside Nextcloud snap on one PC

Depends on what SSL certificate you have.
If you have a wildcard, let's encrypt or self signed certificate:
You could setup a wildcard, or two 3rd level domains to point to your PC. Then you could run a reverse proxy in front of Nextcloud and Jellyfin to properly route the traffic. You can then:

terminate the SSL on the proxy and have localhost traffic unencrypted
terminate the SSL on the proxy and reencrypt it with a selfsigned
certificate. You then also need to setup SSL on nextcloud and jellyfin themselves.
pass the SSL connection through the proxy and terminate it on nextcloud/jellyfin

You'd access it with https://nextcloud.example.tld and https://jellyfin.example.tld
If you have a single domain certificate:
Setup a reverse proxy to route path /jellyfin to the jellyfin and /nextcloud to the nextcloud. You then have to update their config so they expect different base url.

Jellyfin docs: https://jellyfin.org/docs/general/networking/index.html#base-url
Nextcloud docs: https://github.com/nextcloud/nextcloud-snap/wiki/Putting-the-snap-behind-a-reverse-proxy

In this case you only have these SSL options:

terminate the SSL on the proxy and have localhost traffic unencrypted
terminate the SSL on the proxy and reencrypt it with a selfsigned
certificate. You then also need to setup SSL on nextcloud and jellyfin themselves.

How to setup SSL termination on the proxy depends on what proxy will you be using, so I can't help you with that now.
You'd access it with https://example.tld/nextcloud and https://example.tld/jellyfin
Another approach
Since you want to use a friendly URLs instead of IPs, it doesn't seem like this would interest you but it's an option nonetheless.
You could change the ports jellyfin and nextcloud listens to, use the same certificate for both and then access either one by specifying the port.
This would actually work by default, since Nextcloud listens on port 443 and Jellyfin on port 8920
You'd access it with https://example.tld(:443) and https://example.tld:8920


Migrating from Adobe Lightroom to Darktable

The short answer to this is NO, your edits WILL be lost.

The reason for this is that both application does things different ways and our processing differs from each other, making it almost impossible to have 1:1 parameters between Lr and dt processing modules.

However, darktable do support importing standard parts from a xmp sidecar file like rating, color labels and tags / hierarchical keywords.


Cannot use ffmepg on Clipgrab Ubuntu 12.10

http://www.iasptk.com/ubuntu-convert-youtube-video-to-mp3-on-line-with-a-command-line-script-

HOWTO: Easily enable MP3, MPEG4, AAC, and other restricted encoders in FFmpeg

A common question is "why doesn't the repository FFmpeg convert to mp3, aac, mpeg4, etc?". Ubuntu doesn't make it very clear to the general user why the repository FFmpeg is limited or how to fix this issue. This is reflected in the number of forum questions relating to this topic.

Why is FFmpeg from the repository so limited?
All application software Ubuntu installs by default must be considered free, but Ubuntu views some encoders and formats to be proprietary or commercial. Users must install these packages on their own. See the Ubuntu Licensing Policy for more details.

C. Medibuntu (Ubuntu 12.04 precise LTS)
Medibuntu is a third-party repository that contains packages that are unable to be included in the official Ubuntu repositories. To install FFmpeg from Medibuntu open Terminal (Applications -> Accessories -> Terminal) and run the following:

sudo -E wget --output-document=/etc/apt/sources.list.d/medibuntu.list http://www.medibuntu.org/sources.list.d/$(lsb_release -cs).list && sudo apt-get --quiet update && sudo apt-get --yes --quiet --allow-unauthenticated install medibuntu-keyring && sudo apt-get --quiet update

Medibuntu’s repository is deactivated by upgrading to a newer Ubuntu release, so you should run this command again after the release upgrade.

Now you may also wish to add the following packages. The first (APP-INSTALL-DATA-MEDIBUNTU) will cause many apps from the Medibuntu repository to appear in Ubuntu Software Center (Ubuntu 9.10+) or Add/Remove Applications (versions prior to 9.10). The second will allow users to generate crash reports against Medibuntu packages and submit them to the Medibuntu bugtracker.

sudo apt-get install app-install-data-medibuntu apport-hooks-medibuntu

Now install libavcodec:
Code:

sudo apt-get install libavcodec-extra-53

Code:

sudo apt-get install ffmpeg

That's it. Now you have a non-crippled version of FFmpeg.


Save Display Configuration, depending on the connected Displays

Thanks to @muru, I figured  that setting the Display Configuration using the integrated Ubuntu solution works fine. Therefore, it seems that this is a missing feature of the nvidia-settings.


Ubuntu 18.04 does not recognize users after bios (UEFI) update

I found the problem. Turns out when I flashed the bios, secure boot was set to enabled.  Disabled I can login.


This same problem cropped up for me a few months ago on my Thinkpad Yoga 14, running Ubuntu 14.04: while the touchscreen/pen worked perfectly fine for over a year, no matter how many sleep/resume cycles, they stopped responding after sleep/resume sometime around December 2016 (presumably due to a change in an updated kernel?).  Pen and touch still worked fine on initial boot, including the splash screen.  Various suggestions from the web did not resolve the issue:

Alt+Ctrl+F1 / Alt+Ctrl+F6 didn't work
sudo modprobe hid_multitouch  didn't work
xinput disable/enable (touchscreen ID) didn't work
I didn't even try the firmware upgrade, as pen/touch were obviously
still functioning on fresh restart

Finally, buried deeply in some links that led to http://linuxwacom.sourceforge.net/wiki/index.php/Input-wacom , I found a solution which seems simple in hindsight: reloading the wacom and wacom_w8001 modules

sudo modprobe -r wacom
sudo modprobe -r wacom_w8001
sudo modprobe wacom
sudo modprobe wacom_w8001

You could write a script to automatically run this on resume; I just threw it in a shell script to run manually when necessary.  Hope this helps someone


Go to login.launchpad.net then at the bottom is a link which says Permanently delete account. Click it (or here), and it will be deleted, not deactivated.


mysql 5.5 failing to start [ERROR] Can't read from messagefile '/usr/share/mysql/english/errmsg.sys'

Problem solved. I ran sudo apt-get install --reinstall mysql-server and this upgraded from 5.5 to 5.6. Oh well. But at least I have a running mysqld.


Ubuntu one sign in error (after installation completed): "nonetype" object has no attribute "make file"

The logs of the application are located in :

C:\Users\$your_user\AppData\Local\xdg

Please can you go to https://bugs.launchpad.net/ubuntuone-client and a a bug report stating what was the issue. We did have some server issues when we launched the app so it might be that the problem you have.


From: How to merge multiple hard drives?

Use LVM (Logical Volume Management) on Linux.

You can think of LVM as "dynamic partitions", meaning that you can create/resize/delete LVM "partitions" (they're called "Logical Volumes" in LVM-speak) from the command line while your Linux system is running: no need to reboot the system to make the kernel aware of the newly-created or resized partitions.

First of all you can use fdisk with -l option to get info about your current "Disks", then use it to partition your "Disks" and setting the system type of those partitions to "Linux LVM", after you finish the partitioning of the "Disks", use pvcreate to prepare your new partitions for "LVM".

For more info: https://www.howtoforge.com/linux_lvm


Can I combine physical drives into a single volume for use as part of a RAID?

Well, this didn't get a lot of activity or interest, but I went ahead and tried it. The answer is, yes this works. Took several days of RAID grinding to get there. Here is the proof (after step 4).
$ sudo lsblk
NAME                 MAJ:MIN RM   SIZE RO TYPE  MOUNTPOINT
loop0                  7:0    0  97.8M  1 loop  /snap/core/10185
loop1                  7:1    0  97.7M  1 loop  /snap/core/10126
loop2                  7:2    0  55.4M  1 loop  /snap/core18/1932
loop3                  7:3    0  69.2M  1 loop  /snap/lxd/18077
loop4                  7:4    0  69.2M  1 loop  /snap/lxd/18137
loop5                  7:5    0  55.3M  1 loop  /snap/core18/1885
sda                    8:0    0   3.7T  0 disk
└─sda1                 8:1    0   3.7T  0 part
  └─8tbraidvol1-vol1 253:0    0   7.3T  0 lvm
    └─md127            9:127  0  14.6T  0 raid5 /mnt/raid
sdb                    8:16   0   3.7T  0 disk
└─sdb1                 8:17   0   3.7T  0 part
  └─8tbraidvol1-vol1 253:0    0   7.3T  0 lvm
    └─md127            9:127  0  14.6T  0 raid5 /mnt/raid
sdc                    8:32   0   3.7T  0 disk
└─sdc1                 8:33   0   3.7T  0 part
  └─8tbraidvol2-vol2 253:1    0   7.3T  0 lvm
    └─md127            9:127  0  14.6T  0 raid5 /mnt/raid
sdd                    8:48   0   3.7T  0 disk
└─sdd1                 8:49   0   3.7T  0 part
  └─8tbraidvol2-vol2 253:1    0   7.3T  0 lvm
    └─md127            9:127  0  14.6T  0 raid5 /mnt/raid
sde                    8:64   1  10.9T  0 disk
├─sde1                 8:65   1   7.3T  0 part
│ └─md127              9:127  0  14.6T  0 raid5 /mnt/raid
└─sde2                 8:66   1   3.7T  0 part  /mnt/spare
sr0                   11:0    1  1024M  0 rom
nvme0n1              259:0    0 465.8G  0 disk
├─nvme0n1p1          259:1    0   512M  0 part  /boot/efi
└─nvme0n1p2          259:2    0 465.3G  0 part  /

$ sudo df -h
Filesystem      Size  Used Avail Use% Mounted on
udev             16G     0   16G   0% /dev
tmpfs           3.2G  4.2M  3.2G   1% /run
/dev/nvme0n1p2  457G  129G  305G  30% /
tmpfs            16G     0   16G   0% /dev/shm
tmpfs           5.0M     0  5.0M   0% /run/lock
tmpfs            16G     0   16G   0% /sys/fs/cgroup
/dev/nvme0n1p1  511M  7.8M  504M   2% /boot/efi
/dev/loop1       98M   98M     0 100% /snap/core/10126
/dev/loop0       98M   98M     0 100% /snap/core/10185
/dev/loop2       56M   56M     0 100% /snap/core18/1932
/dev/loop3       70M   70M     0 100% /snap/lxd/18077
/dev/loop5       56M   56M     0 100% /snap/core18/1885
/dev/loop4       70M   70M     0 100% /snap/lxd/18137
tmpfs           3.2G     0  3.2G   0% /run/user/1000
/dev/md127       15T  6.8T  7.0T  50% /mnt/raid
/dev/sde2       3.6T  3.3T  109G  97% /mnt/spare


I did with a samba share in the past, so assuming you already have a samba server properly setup, if not you can use this guide, proceed installing cifs-utils:

sudo apt-get install cifs-utils

And add your entry in /etc/fstab filling with your paramenters:

//server-ip/share-dir /path-to/mount-point cifs credentials=/home/user/.smbcredentials,uid=shareuser,gid=sharegroup 0 0

Create the .smbcredentials file in your home directory:

username=<your-user-share>
password=<your-pass>
domain=<domain-name>

secure your ~/.smbcredentials file:

chmod 0600 ~/.smbcredentials

test with:

sudo mount -a

this should work at boot time as well


Where can I find a repository for older unsupported releases?

ok I found it

releases: http://old-releases.ubuntu.com/releases/
packages: http://old-releases.ubuntu.com/ubuntu/

See also:

How to install software or upgrade from an old unsupported release?


sudo apt-get  returns error on Ubuntu 20.04 LTS

You can solve the conflict by these commands.
sudo rm /usr/share/keyrings/signal-desktop-keyring.gpg

sudo rm /etc/apt/sources.list.d/signal-xenial.list


These lines from your dmesg look suspicious, if I see a --[ cut here ]-- in a log it's usually something important, as is the distinctive-looking call trace that follows:

[   42.752749] ------------[ cut here ]------------
[   42.752792] WARNING: CPU: 0 PID: 493 at
/build/buildd/linux-3.16.0/net/wireless/sme.c:791 cfg80211_roamed+0x91/0xa0 [cfg80211]()

Also note the many cfg80211 errors following. As the "wireless" above suggests the cfg80211 is related to the wireless radio adapter. Is your "Broadcom wireless LAN card" easily removable? Calling it a card suggests you could unplug it easily, if so try that & see if it still freezes/crashes.

If that's the problem, then I don't know offhand how to get that wlan card to work with Ubuntu, searching may reveal some solutions.

Could turn off the wireless's physical switch (if there is one) or unplug it, or...

Here are method that should blacklist a module from being used/loaded, in your case using the "wireless" module cfg80211, (but first take a look at lsmod | less and make sure there's a "cfg80211" module, it's in your dmesg log but just in case, or for anyone else who's not you) .

Create a /etc/modprobe.d/blacklist.conf (if non already existing) file and add the line:
blacklist cfg80211
(or whatever the exact module name is. https://askubuntu.com/a/110343).
Then reboot.

And "Sometimes it is needed to update the drivers cache after editing the blacklist.conf file. To do this, run:
sudo update-initramfs -u
( https://help.ubuntu.com/community/Loadable_Modules#Blacklisting_Modules )
Or try booting with the kernel parameter (in grub in the "linux" line)
modulename.blacklist=yes

Or in your case:
cfg80211.blacklist=yes

(may not work with all modules... https://askubuntu.com/a/110349 )


How to buy a laptop with Ubuntu pre-installed

Ubuntu is compatible with most of the laptops out there. Beware that some with AMD CPUs / GPUs might require extra work or not perform as well since they don't seem to be part of the Linux Consortium like Intel or even nVidia. This is an impression not the Gospel Truth.

You can buy laptops with Ubuntu pre-installed if you think that is wise:

Google (search engine anyways) is your friend.


all of my folders appeared on my desktop; how do I remove them

Check the contents of your hidden configuration file .config/user-dirs.dirs. There should be an entry for your desktop, which by default on Ubuntu read as:

XDG_DESKTOP_DIR="$HOME/Desktop"

In your case, the entry probably simply points to $HOME, causing your entire home folder to display on the desktop. Just correct the entry using a text editor.

You might have inadvertently changed the entry by deleting the Desktop folder at some point. Behind the screens, such actions update the .config/user-dirs.dirs file.


Yes, you can.  You can install Ubuntu on a fresh drive, Along side Windows, and other ways.  Form DVD, and USB.  For information on how to install Ubuntu see Install Ubuntu


I'm getting this error booting off the 12.10 live CD, and no amount of apt repair (including apt-get install -f) fixes it.

I get the same problem (substituting "precise" for "quantal" in the installed version of boot-sav) booting from the 12.04 LTS live CD.

But what should work, and I'm about to do, is to download the ubuntu-secure-remix CD and use that, as it has it already successfully installed.

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

There's an alternative out there that's slightly smaller (I've misplaced the link), but it doesn't support UEFI, while the 64-bit version of ubuntu-secure-remix does, and both versions are relatively up-to-date, being based on 12.10.

[Edit: And indeed, as expected, the CD did allow me to repair my boot setup.]


Executive Summary

java -cp doesn't automatically run a program in the specified classpath, it just specifies the classpath to use when running a Java program which you must then specify in that same command.

Full Explanation

java runs Java programs. It does not modify them or store persistent configuration about them.

The -cp flag does not set the classpath, it specifies a classpath to use when running a java program.

Running java with only a -cp flag (and its argument) is invalid syntax. You must tell java what java program you want to run with that classpath. This will run that program, once, with that classpath. It will not cause it to be run with that classpath in the future unless the classpath is specified again.

It's unclear from your question exactly what you're trying to accomplish, but I've detailed a few possibilities below.

(If you still need more information, please feel free to edit your question for clarification and comment on this answer, or if you find you have a separate question, you can ask it separately. The manual page for the java command may also help; please note that the name of a class or jar file is required. To get the manual page for the exact installed version of java on your machine, run man java.)

You might not have to manually set a classpath at all.

If myapp is a directory located in /home/ubuntu, which contains classes for your program, then you don't (generally) have to specify a classpath at all. In that case, just run the program (i.e., pass the name of the class that contains the program's main function to java.

For example, if the .class file for the class that contains your main method is /home/ubuntu/myapp/launch-myapp.class, just run:

java /home/ubuntu/myapp/launch-myapp

(Note that you don't specify the .class suffix, as it is implied.)

Most Java programs consist of multiple classes and often all the .class files are packed into a single .jar file. If that's the case, run java with the -jar flag and specify its full filename.

For example, if your program's classes (including the class containing main) is provided by the file /home/ubuntu/myapp/myapp.jar, just run:

java -jar /home/ubuntu/myapp/myapp.jar

Note that, to run a .jar file with java -jar, you do specify the .jar extension at the end of the filename; it is not taken to be implied.

Much less frequently, you might really want to manually specify a classpath.

To do that, you must specify the the classpath and also what Java program you want to run (i.e., the class that contains its main method).

For example, suppose you want to run /home/bob/myapp.class with the classpath /home/ubuntu/myapp. Then you would run:

java -cp /home/ubuntu/myapp /home/bob/myapp

Or if you're running /home/bob/myapp.jar with that classpath:

java -cp /home/ubuntu/myapp -jar /home/bob/myapp.jar

You might be trying to set the default classpath, to be used when running any Java program in the future (except when an alternate classpath is specified).

If that's what you're trying to do, you should set the CLASSPATH environment variable. See the official documentation on that as pointed out by karel.

In short, you simply make CLASSPATH a semicolon-delimited list of the directories you want searched automatically.

For more information on setting environment variables, see this question and this Ubuntu documentation wiki page.


How to control PulseEffects volume with keyboard?

I managed to fix it (thanks for the comments too):

Reverted to Pulseaudio 11.1 (it's the default which comes with Ubuntu 18.04)
Installed PulsEffects from this PPA (instead of Flatpak, this PPA installs 4.7.1):

sudo add-apt-repository ppa:mikhailnov/pulseeffects -y
sudo apt update
sudo apt install pulseeffects

Went to Settings -> Sound and selected PuleEffects(apps) as Output:

And now the volume control and media hotkeys work with PulseEffects.


My experience with an Eee PC 1215 is that Ubuntu 12.10 with Unity is no fun to use on this machine. Opening the dash or typing in it is sluggish. But I can recommend Ubuntu 12.04 on the 1215 (which has a dual core Atom CPU with 2GB RAM and integrated Intel graphics) which is fast enough for fluid working.

So if you want to upgrade to a more recent Ubuntu try 12.04 which also has long term support.


Hibernate option missing in ubuntu 12.04, after extending the Root partition

Try editing this file: sudo nano /etc/polkit-1/localauthority/50-local.d/com.ubuntu.enable-hibernate.pkla like this:

[Re-enable hibernate by default in upower]
Identity=unix-user:*
Action=org.freedesktop.upower.hibernate
ResultActive=yes

[Re-enable hibernate by default in logind]
Identity=unix-user:*
Action=org.freedesktop.login1.hibernate
ResultActive=yes


How to shrink an ext4 /home partition without using a LiveCD and losing data?

Just comment out the corresponding line in /etc/fstab, reboot into recovery mode and make shure that /home/$your_user exists and has the correct permissions (mkdir -p /home/$your_user && chown $your_user:$your_user /home/$your_user). Reboot and you can use the GUI to shrink the partition.

The terminal command for EXT filesystems is resize2fs, depending on the partition table you have to use different tools to resize the partition (e.g. fdisk or gdisk), but I would recommend using the GUI.


Internet (both wifi and LAN) Stop working after some time

Solution/fix and it's a permanent.

Type in command line:

sudo modprobe ath5k nohwcrypt
sudo sh -c "echo 'options ath5k nohwcrypt' >/etc/modprobe.d/custom-wireless.conf"


Sed characters (") won't pass through loop

The quotes are removed by the shell in the assignment already in the "quote removal" phase (see man bash for details). Backslash the double quote, or single quote the whole elements. Also, the last line in NewParameters is in fact three elements separated by spaces; again, if you want to have everything in one element, backslash the spaces or enclose the whole line into single quotes.


How can I stop Thunderbird adding strange characters?

When this occurs, try switching the encoding of the outgoing e-mail to UTF-8. Select menu Tools / Character Encoding, then pick UTF-8.

If this helps, consider setting UTF-8 as the default character encoding for outgoing mail. Select menu Edit / Preferences / Advanced and set the default encoding for outgoing mail.


How can I tell if I have permission to run a particular command?

The simplest case is that of a binary executable like gzip. First, we locate the executable:

$ which gzip
/bin/gzip

Then we look at the attributes of this file:

$ ls -l /bin/gzip
-rwxr-xr-x 1 root root 98240 oct 27  2014 /bin/gzip

The three x's tell us that the file may be executed by the owner (the first root), or anyone in the group root (second root) and anyone else, respectively. So your user is allowed to execute the program.

However, your executable may be a script file that calls other executables inside. You may be able to execute the script but not the programs called inside of it. There is no way to determine if your user is allowed to do that, other than actually trying it out.

Then there are special cases like shutdown - this is really a symbolic link to a core utility called systemctl, which has its own mechanisms to determine whether you are allowed to call it, and to ask you for your sudo password if you don't, for instance.

(About the which command: this locates executables in your $PATH that you are allowed to execute, and tells you which one you use if you have more than one with the same name in the $PATH. It does not locate just any executable. I use it here as an example of where to look for the permission. The fact that which finds the executable already indicates that you have permission to execute it.)


NAM installation problem in NS2, Segmentation Fault

I also faced the same error... The following will help u to get the exact result... Try to install ns2 with the procedure given in the link
 "Segmentation fault (core dumped) in nam ubuntu 14.04".
 If you have installed ns2 successfully and still getting "Segmentation fault", then do the following step

copy the 'nam' file from your '/home/[username]/ns-allinone-2.35/nam-1.15' folder and paste it into '/usr/local/bin' folder
now surely it will work... restart your terminal and execute your tcl script


Ubuntu root mount failed and also fsck not found at initramfs

Remove HDD from system connect it to another system on second SATA port alongside with that HDD and turn ON system

Open terminal

Find the device label of that HDD using

sudo lsblk

for example if it is /dev/sda1 then run below command in terminal

If fsck is not working then try

sudo e2fsck -f -b 32768 -y /dev/sda1


Cannot reinstall ubuntu after I messed up with my video card or something

You need to change your boot order or use boot options to select your flash drive. It appears that you are booting into the Dell recovery partition (which isn't what you seem to want.


Task manager a UI like with Windows 10's one

I use system monitor. But, I guess Stacer will meet your choice better

Stacer will show you the culprit using system resources better. As you can see in the screen shot 3, Stacer can list an ascending or descending listing based on CPU or Memory memory consumption. You can see which process is using CPU the most, which process is using Memory the most, likewise. Only colour coding is missing from what you seek. Stacer also gives total CPU and Memory usage.

You can get all these with System Monitor as well.

You can find more options here

http://www.omgubuntu.co.uk/2011/11/5-system-monitoring-tools-for-ubuntu


I am a user of a very similar card, with a fully functioning Ubuntu set up with Catalyst aka fglrx.

You want Catalyst 12.9 out of the repositories i.e. what Ubuntu suggests in the Software Sources part of the Software Center. Don't go for earlier versions and don't go for more recent versions. You will also want to install linux-headers-generic.

If you look here, you should see a more long winded version in an answer to another question. That is how I did it - after numerous failed attempts - although there may be superfluous steps.


Lot's of people have had your problem and the answers are outlined here