Long boot time on Samsung 850 EVO 500GB SSD

Slow boot

Slow boot may be caused by this bug. If you don't need hibernation, this bug can be worked around by adding noresume to the kernel command line (see here for how to change the kernel command line).

Performance

The performance of your SSD can be easily tested using gnome-disks.

Make sure it is installed

sudo apt-get install gnome-disk-utility

Start gnome-disks (named Disks in the menu).
Select your disk on the left
Click on the gear wheels, select Benchmark partition...
Click on Start Benchmark...
Keep the default options, then Start Benchmarking...

This kind of disk should show around 500 MB/s in read speed and around 0.1 ms for the access time, if not you may have a configuration problem, maybe the SATA controller mode should be set to AHCI in the BIOS.

If the disk performances are correct, and you still feel a performance problem, it may be not related to your disk.


You could mount your disk partitions using the Ubuntu live-CD to figure out which one is your home partition.
Downgrading will delete your installed applications (if you format your root partition "/"), but you could keep and use your home partition with the new installation (do not check format this partition for /home partition).


Ubuntu Network Manger keep creating Ad-Hoc Hotspot. No infrastructure. A bug?

this is "well-known" state that Ubuntu is not capable creating hotspot as Infrastructure. I'm just tried it myself.

It seems that there is a solution with "hostapd" daemon. Please check the following manual:

[GUIDE] Making infrastructure wifi hotspot on ubuntu 12.04/12.10

http://forum.xda-developers.com/showthread.php?t=2009381

Unfortunately, for me, I've got unsupported Wifi driver. Hopefully, it will help at least you. :-|

Please see also: How to setup an Access Point mode Wi-Fi Hotspot?


Save files and Applications to a Live Ubuntu disk

What you're wanting is a persistent USB. This page will walk you through the steps to set it up correctly.

EDIT Boot into your Mac, plug your USB drive in, open the drive and open the file /boot/grub/grub.cfg

You should see an entry such as

menuentry "Try Ubuntu without installing" {

a little further down you should see something like:

linux   /casper/vmlinuz.efi  file=/cdrom/preseed/ubuntu.seed boot=casper quiet splash --

if you add the word "persisitent" after "casper" and before "quiet" you should be able to boot and have persistence!

linux   /casper/vmlinuz.efi  file=/cdrom/preseed/ubuntu.seed boot=casper persistent quiet splash --


How to solve error installing Git on 16.04 LTS

After further searching and experimenting, I found this procedure that fixed it for me:

sudo apt-get purge runit
sudo apt-get purge git-all
sudo apt-get purge git
sudo apt-get autoremove
sudo apt update
sudo apt install git


My NTFS partitions are being showed as LDM Data Partitions

If you did not mess with your data yet, you should first make a backup.
You could connect it to a Windows system and backup, as mentioned by heynnema.

You would need another disk.
In some cases, you could split your data partition to have one as a backup (if the space taken by data were less than 1Tb), and then work on your original data partition.
In this case yo cannot do that, since you would not be able later to change the partition type of only one partition.

Then you can reformat your disk, and recover the data.


Create desktop shortcut with locale change at runtime

This is untested, but you may want to try:

env LC_ALL=zh_CN wine '.wine/path_to_program/program.exe'

Note:

zh_CN enables GB2312 encoding. Is that what you want? Otherwise you should replace it with zh_CN.UTF-8.


Make htaccess file impossible to be modified

As long as there's anyone who has root access to the server, you cannot achieve this. With root access any file can be changed no matter what permissions or ownership you apply.


If I am correct, then the Firefox icon belongs to the Numix Circle theme.
To install it, open a Terminal and enter the following commands -
sudo add-apt-repository ppa:numix/ppa

sudo apt-get update

sudo apt-get install numix-gtk-theme numix-icon-theme-circle

Then, install the Unity Tweak Tool -
sudo apt-get install unity-tweak-tool

Open the Unity Tweak Tool and click on Theme -

Select the theme Numix

Similarly, click on Icons and select Numix Circle

Alternatively, if you just want to get rid of the 'tile' background -
1.To Remove the Tiles
First you need to get to your ~/Downloads folder by the command:
cd ~/Downloads

Then download a file by the command:
wget https://www.dropbox.com/s/n48gz3g0fachi3t/icons.tar.gz

The download contains a icons.tar.gz file. Then make a backup of the image files at /usr/share/unity/icons by doing the following:
mkdir ~/backup_icons
cp /usr/share/unity/icons/* ~/backup_icons

Then get to /usr/share/unity:
cd /usr/share/unity

Now untar the tar file downloaded into /usr/share/unity by the following command:
sudo tar zxvf ~/Downloads/icons.tar.gz

This should get rid of the 'tile' .
2.To add the Tile back again
First you need to get to your ~/Downloads folder by the command:
cd ~/Downloads

Then download a file by the command:
wget https://www.dropbox.com/s/31ory2zycvk5c6x/icons.tar.gz

The download contains a icons.tar.gz file. Then make a backup of the image files at /usr/share/unity/icons by doing the following:
mkdir ~/backup_icons_notile
cp /usr/share/unity/icons/* ~/backup_icons_notile

Then get to /usr/share/unity:
cd /usr/share/unity

Now untar the tar file downloaded into /usr/share/unity by the following command:
sudo tar zxvf ~/Downloads/icons.tar.gz

This should add the 'tile' back.
Credits to Andrew for this solution.

To create a custom Unity launcher, refer to this guide.


Apple Magic mouse/ Apple Magic Trackpad /Bring up all windows gesture

The following works for me in Ubuntu 11.10:

You should be able to do a 4-finger tap to bring up the Dash, and do a four-finger swipe to hide & unhide the Launcher.

A three finger drag on a non-maximised window moves the window around, and brings up resize handles.

As far as I'm aware this is the current set of gestures supported by Unity.  Unity also claims all four-finger gestures (and I think it also claims three-finger gestures), so while Unity is running no other app will be able to provide those gestures.


How can you transfer wireless settings from Windows to Ubuntu?

As far as I know you can't transfer the wireless settings from windows automatically. Assuming all went OK with your install, boot up ubuntu, click on the wireless icon in the top right, select your network and enter the wireless password. It should only be required once. It is no harder than on windows, indeed it is easier.


Is it possible to move the LAMP server to another drive on the same computer?

You will need to edit the configuration for apache. The default configuration is stored in /etc/apache2/sites-available/default.

Edit this file with (sudo -H gedit /etc/apache2/sites-available/default for example) and locate the line

DocumentRoot /var/www

and change the path to your new path. Afterwards, you can reload the apache configuration with

sudo service apache2 reload

If you are serving over SSL you'll need to edit /etc/apache2/sites-available/default-ssl as well.


How to make ubuntu work faster on VmWare player?

There is a known issue with running Ubuntu 12.10 inside a virtual machine such as Virtualbox or VmWare.

The Unity desktop is reliant on the Graphics processor which is not supported in many virtual machines -- see here.

This was not an issue in 12.04 as it had the Unity 2D desktop as an option for slower machines.

If you have a powerful enough machine you can try giving Ubuntu more than one core.

Alternatively you can use another desktop:  To use the "Gnome Classic" desktop which is similar to the desktop as used in 10.04 open a terminal with CTRL+ALT+T and enter

sudo apt-get install gnome-panel

log out then back in selecting Gnome Classic as your desktop.


I found this Ubuntu Forum thread helpful. Following the instruction from post #4 (The author of which shares source as Steps 1-4 from Ubuntu documentation
) there once booted to live cd and then chrooted
Finally I did

dpkg --configure -a
apt-get download libuuid1
gdebi ./libuuid1*

which was from a cd live session.

On rebooting there are several startup errors that one might encounter what caused the packages post-installation script (postinstall.sh) to fail. These service startup errors will be due to the face that hose services cannot be started while running from the live CD. At this point you should be able to restart and boot to the 12.04 installation then re-run

sudo dpkg --configure -a
sudo apt-get upgrade

and . After a rebooting into your shiny new 12.04, those errors will go away!.


In the "Edit Connections" dialog of Network Manager, ensure the third box down is not ticked.


Create partition button greyed out during installation

As it turns out, this error occured because the device was already mounted.
After i aborted the installation, i got booted into a Linux-Live-System, from which i was able to restart the installation. Only this time, a nice message box told me that a certain drive was already mounted and, in order to partition it, it needed to unmount it. Which it did. After that, it worked..


Compress to a single file .nii.gz wont work

gzip is a compression format that is only capable of compressing one single file. It can not handle multiple files or directory structures.

That's why it's often used together with tar, the "tape archive" tool, which can compile multiple files or directories together into one archive file.

However, you can do both steps of collecting the files together into a so-called "tar-ball" and to compress that archive with the gzip algorithm at once, because tar has a compression option:

tar -czf archive.tar.gz *.nii

So what does this tar command do?

-c is its command to create a new archive
-z tells it to use the gzip algorithm to compress the generated archive
-f archive.tar.gz specifies to use "archive.tar.gz" as output file. The file name extension .tar.gz is not mandatory but recommended.

*.nii specifies the input file(s) and/or folder(s) you want to archive.


centrino N-1000 wireless conected with internet access until i start browsing

There is another thread that worked for me. I had the same problem. Centrino Advanced-N 6230 and bluetooth wireless problems with Dell XPS 15z

Basically login to windows, enable the wireless from there fn+f2. You should see the Wireless led turned on. Reboot in Ubuntu, and voila :)


How should I configure multiple virtual hosts with a single configuration file in Apache?

In addition to the proposed duplication here are few specific to this question answers:

  How do I setup HTTPS virtual host with ServerAlias in use.

If you are using ServerAlias directive within HTTPS/SSL virtual host you need to issue certificates for all domain names. By using letsencrypt you will need to add few -d options:

sudo letsencrypt --apache .... -d www.example.com -d example.com

All certificates will be placed in the same certificate file.

  Is it possible to make whole configuration to one file, especially one VirtualHost? I have 2 files now, one for 80, second for 443.

You can place the definitions for all VirtualHosts in one file, thus it will be easy to enable and disable all of them together. But there is no way to configure one VirtualHost to listen on two ports.

  What about Redirect instead Rewrite in ssl config?

According to the Apache2's documentation for such cases it is better to use the Redirect directive instead of Rewrite rules. Note, you need to create two separate VirtualHosts, if you want to redirect https://example.com to https://www.example.com . All related VirtualHosts can use the same certificate file, generated in the way described above.

Each virtual host will be responsible for a different ServerName, for example: ServerName example.com for the first, respectively  ServerName www.example.com for the second, etc. Note the ServerAlias directive must be removed.

If everything works as it is expected, you can keep using Rewrite rules - this is subject of your decision. If you are using Redirect directive, do not miss the slash at the end of the target domain name! Here is an example for HTTPS VirtualHost that uses Redirect directive.

<VirtualHost *:443>
    ServerName thehatmakers.cz
    Redirect permanent "/" "https://www.thehatmakers.cz/"

    Include /etc/letsencrypt/options-ssl-apache.conf
    SSLCertificateFile /etc/letsencrypt/live/hosek/fullchain.pem
    SSLCertificateKeyFile /etc/letsencrypt/live/hosek/privkey.pem
</VirtualHost>

At all, you do not need anything other for this VH.
The keyword permanent will instructs the client's browser to do this redirection automatically next time:

Redirect == HTTP 300
Redirect permanent == HTTP 301


Update of Ubuntu Server 16.04 broke my OwnCloud 9 server?

go into your /var/www/owncloud folder, or wherever you installed your owncloud instance. look for a directory called "config" then a file called config.php
edit the line in the file that reads maintenance => true and make it maintenance => false. To edit you might have to chown to www-data.

Terminal:
1.cd /var/www/owncloud/config/
2.sudo nano config.php
3.change line to 'maintenance =>false'
4.save the file, reboot the system
5.enter owncloud through your browser, you might have to perform an update.
6. when its done you should be ok

owncloud documentation on maintenance mode:
https://doc.owncloud.org/server/7.0/admin_manual/maintenance/enable_maintenance.html


Hidden files wont stay hidden in Ubuntu Gnome

Open the Files app (a.k.a. Nautilus), open the Files Menu, click on Preferences, in the Views tab uncheck Show hidden and backup files. Close the Preferences and the Files window, and open a new one, now by default you won't see hidden files.


According to your current rkhunter output, you're completely fine. All of that is perfectly normal for a network-connected and running system.


Installing Ubuntu 14.04 to dual boot with windows 7 on one hard drive

I have never used the automated partitioning tool as you mention in your first question. To that end, I'll say that it is not safe or at least not as safe as manually partitioning it.

If your hard drive only has 100GB of its 500GB free then yes, you should partition it to leave at least 30GB if not 50GB or more for Ubuntu. I have run Ubuntu with zero space problems with a 30GB partition. You should boot into Windows and using the Windows partitioning tool shrink your Windows partition to 400-something GB, leaving free space available for your Ubuntu installation.


Temporary solution:-

Try open it without extensions.

chromium-browser --disable-extensions


how to Scan with Samsung SCX-3200 over network

Try to use the instructions and repository of http://www.bchemnet.com/suldr/index.html
I used it to install a  CLX-3185FN.

1.add the repo:

sudo sh -c 'echo "deb http://www.bchemnet.com/suldr/ debian extra" >> /etc/apt/sources.list'

sudo wget -O - http://www.bchemnet.com/suldr/suldr.gpg | sudo apt-key add - && sudo apt-get update

2.install

sudo apt-get install samsungmfp-configurator-qt4 samsungmfp-data samsungmfp-network


ThinkPad Yoga 14 : Nvidia Drivers(from ppa) not working

have you tried with the driver posted on Nvidia.com?

http://us.download.nvidia.com/XFree86/Linux-x86_64/367.44/NVIDIA-Linux-x86_64-367.44.run

Hope it helps


How to change the date/time format to English from the command line?

You are probably on Ubuntu 16.04, and have run into this bug. I recommend that you either wait a few days until it has been fixed through the package updates, or install accountsservice from xenial-proposed in accordance with comment #5 in the bug report.


Netplan on Ubuntu 18.04 with multiple interfaces connected to internet

You are setting both:
  gateway4: 192.168.0.1

and:
  routes:
   - to: 0.0.0.0/0
     via: 192.168.0.1
     metric: 50
     table: 101

gateway4 is shorthand for a default route.  You should not combine the two.  This is almost certainly why your metric is being clobbered, because the gateway4 setting is overriding.  A metric of 0 is not actually a problem since a metric of 0 has an even higher priority than one of 50, but all of your routing table settings would also be clobbered which is likely more the issue.


Ubuntu 20.04 first boot onto Raspberry Pi 3 A+ drops into U-Boot> shell

Disconnecting the serial connection to the Bittle Nyboard allowed the boot to finish normally. Not sure why?
Edit: Suspect it's related to the RPi use of the serial port https://elinux.org/RPi_Serial_Connection


I've found a hackingish way of doing that. I'm assuming you've installed rabbitvcs-nautilus. I've tested it in Ubuntu 16.04.

After installing it, if you restart nautilus, you'll find entry for three types of VCS, namely git, mercurial (hg) and SVN. Here is a screenshot of context menu after default installation.

Now, to remove git and mercurial menus, Open /usr/lib/python2.7/dist-packages/rabbitvcs/util/contextmenu.py with your favorite text editor. I'm using sublime text in the example

subl /usr/lib/python2.7/dist-packages/rabbitvcs/util/contextmenu.py

Now, go to line 1329. Comment-out lines from 1329 to 1372. Which are basically menu item entries for git and mercurial. After commenting out, the lines become

File: /usr/lib/python2.7/dist-packages/rabbitvcs/util/contextmenu.py
1329:             # (MenuRabbitVCSGit, [
1330:             #     (MenuClone, None),
1331:             #     (MenuInitializeRepository, None),
1332:             #     (MenuSeparator, None),
1333:             #     (MenuDiffMenu, [
1334:             #         (MenuDiff, None),
1335:             #         (MenuDiffPrevRev, None),
1336:             #         (MenuDiffMultiple, None),
1337:             #         (MenuCompareTool, None),
1338:             #         (MenuCompareToolPrevRev, None),
1339:             #         (MenuCompareToolMultiple, None),
1340:             #         (MenuShowChanges, None),
1341:             #     ]),
1342:             #     (MenuShowLog, None),
1343:             #     (MenuStage, None),
1344:             #     (MenuUnstage, None),
1345:             #     (MenuAddToIgnoreList, ignore_items),
1346:             #     (MenuSeparator, None),
1347:             #     (MenuRename, None),
1348:             #     (MenuDelete, None),
1349:             #     (MenuRevert, None),
1350:             #     (MenuClean, None),
1351:             #     (MenuReset, None),
1352:             #     (MenuCheckout, None),
1353:             #     (MenuSeparator, None),
1354:             #     (MenuBranches, None),
1355:             #     (MenuTags, None),
1356:             #     (MenuRemotes, None),
1357:             #     (MenuSeparator, None),
1358:             #     (MenuGitExport, None),
1359:             #     (MenuMerge, None),
1360:             #     (MenuSeparator, None),
1361:             #     (MenuAnnotate, None),
1362:             #     (MenuSeparator, None),
1363:             #     (MenuCreatePatch, None),
1364:             #     (MenuApplyPatch, None),
1365:             #     (MenuSeparator, None),
1366:             #     (MenuSettings, None),
1367:             #     (MenuAbout, None)
1368:             # ]),
1369:             # (MenuRabbitVCSMercurial, [
1370:             #     (MenuSettings, None),
1371:             #     (MenuAbout, None)
1372:             # ])
1373:         ]
1374:

I've printed line numbers here.

Here is two screenshot which shows the context menu before and after of disabling this.

Screenshot: After disabling


installing apache2, php5, mysql, phpmyadmin

You must first check error in the apache error log.
To check error type following command in your terminal:

tail -f /var/log/apache2/error.log

It will show you what is the error, and resolve it accordingly, i guess you might have not configured lamp properly.

Check here for the complete installation tutorial.

Thanks.


Replace only characters after symbol and before another?

If it is always digits, you can say

$ echo "$line" | sed 's,/[[:digit:]]\+,-,'
192.168.1.234-(LOCAL\username)

Otherwise, if you don't know what's in there, match the slash and one or more non-parenthesis characters

$ echo "$line" | sed 's,/[^(]\+,-,'
192.168.1.234-(LOCAL\username)

You can actually do this right in bash with extended globbing:

$ shopt -s extglob
$ echo "${line/\/+([0-9])/-}"
192.168.1.234-(LOCAL\username)


»half-installed« packages should be re-installed. Only one command:

sudo apt-get install --reinstall libc6-i386


Ubuntu 12.04 taking too much time to boot

It looks like conflict between two network managers. In this case LAN and Wireless.
I can suggest you to disable Wireless from loading at boot.
Or if it possible move Wireless down by startup priority (btw i.e. Upstart).


How to resolve unattended-upgrades on mysql?

You appear to have both MySQL Server and MySQL Community Server installed on your machine, which could result in a great number of conflicts. MySQL Server is the version put out by Canonical for Ubuntu, while MySQL Community Server is put out by Oracle with its own release cadence. You will need to choose one over the other and, hopefully, the one being removed will not ruin the one that remains.
The most logical way to do this would probably be to remove both MySQL Server and MySQL Community Server, then re-install the one you want to use. Your existing database files and configurations should not be lost during this process, but do have backups ready "just in case".
Here's the order that things should be done:

Ensure MySQL is not running:
$ sudo service mysql status

If you see something like this:
● mysql.service - MySQL Community Server
     Loaded: loaded (/lib/systemd/system/mysql.service; enabled; vendor preset: enabled)
     Active: active (running) since Tue 2021-02-02 06:40:54 JST; 6 days ago
   Main PID: 112265 (mysqld)
     Status: "Server is operational"
      Tasks: 157 (limit: 9204)
     Memory: 758.9M
     CGroup: /system.slice/mysql.service
             └─112265 /usr/sbin/mysqld

 2月 02 06:40:53 Carbon systemd[1]: Starting MySQL Community Server...
 2月 02 06:40:54 Carbon systemd[1]: Started MySQL Community Server.

Then you will need to stop the server like this:
$ sudo service mysql stop

Remove the MySQL packages listed in sudo apt list mysql* - -installed, which you have already provided as part of your question:
$ sudo apt purge mysql-server mysql-client \
                 mysql-common mysql-server-core-* mysql-client-core-* \
                 mysql-community-server mysql-community-server-core-* \
                 mysql-community-client mysql-community-client-*

You will get a very long list of packages that are about to be removed. Read through them all to make sure there are no surprises that might break other important packages running on your system. If everything is good, proceed with the removal.

Clean apt:
$ sudo apt autoremove
$ sudo apt autoclean

Re-install the MySQL version you want (for example, the Canonical-supplied version):
$ sudo apt install mysql-server

Run the secure installation procedure and set a good root password:
$ sudo mysql_secure_installation

When done, connect to MySQL remembering that in version 8.0 and above, you need sudo to connect as root:
$ sudo mysql

If everything to this point is good, check that your databases are still in place with SHOW DATABASES and consider creating an administrator account to access MySQL without needing sudo if you don't already have one.

(Optional Step) Confirm the MySQL packages installed:
$ sudo apt list mysql* --installed
Listing... Done
mysql-client-8.0/focal-security,now 8.0.23-0ubuntu0.20.04.1 amd64 [installed,automatic]
mysql-client-core-8.0/focal-security,now 8.0.23-0ubuntu0.20.04.1 amd64 [installed,automatic]
mysql-client/focal-security,focal-security,now 8.0.23-0ubuntu0.20.04.1 all [installed]
mysql-common/focal,focal,now 5.8+1.0.5ubuntu2 all [installed,automatic]
mysql-server-8.0/focal-security,now 8.0.23-0ubuntu0.20.04.1 amd64 [installed,automatic]
mysql-server-core-8.0/focal-security,now 8.0.23-0ubuntu0.20.04.1 amd64 [installed,automatic]
mysql-server/focal-security,focal-security,now 8.0.23-0ubuntu0.20.04.1 all [installed]

Hope this helps get you running again


How to delete all lines before and after the specific strings in the file?

Open a Terminal by pressing Ctrl+Alt+T and use the one of below one linear command. Don't forget to change the input filename to yours.

Using awk:

awk -v FS="(STRING1|STRING2)" '{print $2}' inputfile > outputfile

Using grep:

grep -Pzo "(?<=STRING1)(.|\n)*(?=STRING2)" inputfile > outputfile

or with DOTALL (Dot Matches Line Breaks) modifier. It makes . to match even \new line characters.

grep -Pzo "(?s)(?<=STRING1).*?(?=STRING2)" inputfile > outpuffile

The (?s) actives the DOTALL for grep.

or as another alternative to match \new line chars, simply use:

grep -Pzo "(?<=STRING1)[\s\S]*(?=STRING2)" inputfile > outpuffile

In man grep:

-o, --only-matching
      Print only the matched (non-empty) parts of a matching line,
      with each such part on a separate output line.

-P, --perl-regexp
      Interpret PATTERN as a Perl compatible regular expression (PCRE)

-z, --null-data
      Treat the input as a set of lines, each terminated by a zero byte (the ASCII
      NUL character) instead of a newline. Like the -Z or --null option, this option
      can be used with commands like sort -z to process arbitrary file names.

(?<=pattern): Known as Positive Lookbehind. A pair of parentheses, with the opening parenthesis followed by a question mark, "less than" symbol, and an equals sign.

So, the (?<=STRING1).*? (positive lookbehind) matches the 0 or more occurrences of any characters(which are optional because of using ? after .*) followed by STRING1 from inputfile.

(?=pattern): Known as Positive Lookahead: The positive lookahead construct is a pair of parentheses, with the opening parenthesis followed by a question mark and an equals sign.

So, the .*?(?=STRING2): (positive lookahead) matches 0 or more occurrences of any characters followed by STRING2.

Links for reading more:

Advanced Grep Topics
GREP for Designers


How to *use* Hamster with the GNOME shell?

UPDATE
Found an integration with the app-indicator in the bottom of the screen with instructions at
http://www.webupd8.org/2011/07/install-hamster-indicator-time-tracking.html

The Gnome shell integration is still lacking in Hamtster
there is 1 other project working on this at github that seems to be a bit further along than the official package
https://github.com/tbaugis/hamster-shell-extension
For official updates you can always follow the official blog at
http://projecthamster.wordpress.com
So unfortunately there isn't a clean integration yet -- I've found that running the program as a stand alone works rather well - the default location is
/usr/bin/hamster-time-tracker

Press Alt+F2 and paste that line in - should pop right up as a stand alone window


know the library/binary modified as part of new package release

You can read "changelog" for apt with

apt changelog apt


I see gnome-screensaver lock screen instead of unity one. What happened and how to fix it?

It turned out that screen reader (like in  my case) and on-screen keyboard can cause this. Had to disable all tools in System settings/Universal access.


C and D 300 Gb drives in one machine How to install on D and do dual boot?

You can, it may be a bit tricky.

Here's what I'd do:

Go to "Disk Management" (on win7 it's right-click-on-computer->manage->disk management, should be the same for win8).
Delete all volumes on D (or delete some of the volumes to provide space for Ubuntu).
Put Ubuntu in and restart.
Choose "install Ubuntu alongside *".
If you see any partition, your seeing the wrong disk. Just use the "select drive" chooser to choose the disk you deleted.
Finish installation as you like.
After all is done, if you are not happy with the way your machine boots restart into BIOS setup (usually click F1 or DEL many times when machine starts) and look for a "boot-sequence" setting- Check your motherboard manual to see where it is if necessary, choosing this setting will show you a list of boot options, two of them should be your two hard drives. Just swap the first hard-drive with the second than save & exit. You should be okay.


Have ssh try a LAN IP before the internet address

Use the DNS name. When routing traffic from the LAN, the router will resolve the name awesomeserver.no-ip.org and discover that it is equal to its own Internet-facing IP address. Then it will look through its list of "virtual server" addresses (or whatever NAT is called on the router) and forward the traffic to 192.168.0.10. The traffic from your laptop will not get outside your LAN.


Your Dell Optiplex 755 should be fine (I'm using one right now).

This is correct, what you are seeing is the plymouth screen. Plymouth is the gui over the boot commands similar to the 'starting windows' screen when Windows 7 starts up.

When you hit 'esc' you are seeing the commands that are being run to boot. This will show you any errors that are happening.

It would appear the the live disk you are using is corrupt and this is causing the issue. I would recommend formatting the USB drive and then flashing the live disk software onto it again or perhaps try a different USB drive.


Will my drive show up when installing Windows if I change it from RAID to AHCI?

If you're trying to install Ubuntu in EFI mode, then you should disable Intel's RST before installing it to avoid boot problems after installation. Source: https://help.ubuntu.com/community/UEFI

Copying from the source:

In your firmware, disable QuickBoot/FastBoot and Intel Smart Response
Technology (SRT). If you have Windows 8, also disable Fast Startup.
Disabling Fast Startup is only related to those who want to dual-boot Ubuntu with Windows of course.


Trying to install Razer device configuration tool

There is a section in that link called "Download". From there you can download  razercfg-0.20.tar.bz2 package and install it following this post: How to install a .tar.gz (or .tar.bz2) file?


Side-effect on upgrading kernel from generic to low-latency?

The low latency kernel is not needed by most people as of kernel 2.6.31 .

It is (was) used as far as I know mainly for audio recording, although there may have been other uses. It is difficult to find detailed discussions on the patch but I suggest you look at

  Kernels >= 2.6.31 seem to work pretty good without RT patch, also for real-time pro audio usage. It's not strictly necessary anymore to install a real-time ('rt') kernel to get good results. Although the best results are still expected when using a real-time kernel. Try it, test it and decide for yourself.

http://wiki.linuxaudio.org/wiki/system_configuration#the_kernel

NOTE: From this link they are discussing audio and "good" and "best" are extremely subjective and sometimes they are measuring things in very small time units and all the measurements on the web are old, pre 2.6.31 kernel.

  Some confusion persists about the purposes of -lowlatency and -realtime kernels.

The goal of -realtime and -rt (hard real-time) kernels is to achieve the lowest possible latency at every cost. In technical slang "hard realtime systems should always meet their deadlines". Thus developers should use the most advanced programming techniques (sleeping spinlocks, PI Mutex, Full preemption, IRQ Threads and others) and sacrifice things like reliability, power-saving and throughput.

https://help.ubuntu.com/community/UbuntuStudio/RealTimeKernel

Fedora also has some quality documentation on this issue

https://docs.fedoraproject.org/en-US/Fedora/17/html/Musicians_Guide/sect-Musicians_Guide-Real_Time_Linux_Kernel.html

https://docs.fedoraproject.org/en-US/Fedora/15/html/Musicians_Guide/chap-Musicians_Guide-Real_Time_and_Low_Latency.html

Note the fedora links are somewhat dated and Fedora no longer maintains low latency kernels.

So a better question is, what makes you think a real time kernel is going to help you ? It does not appear you are doing anything (such as audio recording) that requires a RT kernel and the RT patch is unlikely to solve your problems with embedding.

You can always try a low latency kernel and if you have problems switch back, install and remove them with apt-get

sudo apt-get install linux-lowlatency

sudo apt-get remove linux-lowlatency

Personally I have not had any problems with the low latency kernel patch, but did not see any advantage either (I have used for audio recording only, Ardour 3 with multiple track play back, monitoring via headphones, and recording a new track).


Is there speech recognition in Ubuntu for phones?

Two solutions have been considered for Ubuntu Touch: Pocket Sphinx and Julius. However Pocket Sphinx seems to be the long term choice for Ubuntu.

  We built the voice feature around two different Open Source voice
  engines: Pocket Sphinx and Julius. While we started with Pocket Sphinx
  we weren't entirely happy with it's performance, and found Julius to
  start faster and provide better results. Unfortunately Julius is
  licensed with the 4-clause BSD license, putting it in multiverse and
  making it so that we can't link to it in the Ubuntu archive version of
  HUD. We're looking at ways to make it so that people who do want to
  install it from multiverse can easily use Julius, but what we'd really
  like is to make the Pocket Sphinx support really great. It's something
  we'd love help with. We're not voice experts, but some of you might
  be, let's make the distributable free software solution the best
  solution.

Source : http://gould.cx/ted/blog/Introducing_HUD_2.0

CMU Sphinx is an open-source project that can also be used on the Desktop, Julius too.

On the long term Ubuntu Touch and Ubuntu for Desktop will be the same OS, so the answer to question like "can it be used on Desktop too ?" should hopefully be more and more positive.


How can i fix the add-apt-repository hang?

The problem is on the server's side. Several Launchpad repos are currently being affected. I've seen a few other questions with people running into this problem: Issue adding ppa's , and cannot add repository ppa:pipelight/stable . I would suggest trying again later, or tomorrow.


How to write shell script to wget a url once, then wget a second url every two minutes for 1 hour

As @Fiximan and @steeldriver suggested, another option is to run wget in a loop for 1 hour:
COUNT=0
while [ $COUNT -lt 30 ]; do
  wget $url
  sleep 120
  COUNT=$((COUNT + 1))
done

Note that script containing this code must be run using #!/bin/bash, not #!/bin/sh.


It not a perfect solution, but I inactivated the nvidia-173 driver that was installed from the beginning and are now using the nouveau driver, The external display works like a charm, but I have to go with the 2d desktop.

UPDATED NOW UBUNTU 12.4 WORKS WITH 3D!

Ubuntu 12.4 Alpha (Precise Pangolin), 29 February With latest updates. 3D mode is now avalible and external monitor works fine with the "Nvidia 295.20" driver.


FIPS and openssh-client-hmac for Ubuntu 20.04?

FIPS modules require you to be enrolled in Ubuntu Advantage for your system.  This is a paid service from Canonical, and is NOT freely available for the masses at large.  Otherwise, the FIPS modules are not available to the average user,  If you don't want full paid support from Canonical, then you would be going after Ubuntu Advantage for Infrastructure (UA-I) Essential edition.  Costs for this are available at the Ubuntu site.  If you need FIPS for your project, you'll have to obtain a UA-I subscription and enroll your system in UA-I.  Depending on if it's a VM or a straight bare metal machine, you'll be paying different amounts (especially for Server installs).
You can get a 'free' UA-I Essential subscription for 3 machines maximum for personal use only simply by registering with Ubuntu One accounts, that'll let you enable FIPS on up to 3 systems.  If you intend to use this for Business you should be purchasing the full UA-I subscriptions on a yearly basis with your company email (or a generic company email you're on).


Can not reach http api server from external IP

The external IP that you are using should be a static IP. As the IP is dynamic, it will change in a certain period.
So check with your ISP and make sure your external IP is static one.


Right-click on the Application-Launcher in the control-panel and select "Alternatives"

Even though I still recommend a different method this would be the recommended way to swift within the given opportunities.


First, memory has two read/write cycles per clock one. So you should multiply clock speed by two to get your memory speed. That means that lshw is reporting 1.600 Mhz.

Second according to AMD specs your CPU only supports DDR2 up to 1866 Mhz, so we are quite close to the real result. In the same specs you can see that your GPU speed is just 800 Mhz, what makes me wonder if the real bus speed of your CPU is 800 Mhz, that would explain your memory speed but not the 1866 number in the AMD speed.

I have found a review benchmarking your CPU and a similar memory. To be able to find any difference they needed to overclock the GPU.

So unless you overclock your GPU, your new memory is not going to make any difference.


It turned out the problem was very simple, so simple I missed it.  I'm including the answer here in hopes that it will help someone.

It turns out the program lame, which is used for encoding mp3's by asunder, wasn't installed.  All I had to do was:

sudo apt install lame

...and that was it!

Note that the recommended method for encoding mp3 is to rip in wav and reconvert to mp3 by an application that uses a different back-end plugin such as Sound Juicer, since lame does not produce high quality mp3's.


There is a thread on ubuntu-forums asking just this - it appears that it is not possible as yet.

All credit to "fatriff" for providing a couple of workarounds:

Both involve using an extra package called xdotool which you can install as follows:

sudo apt-get install xdotool

workaround 1

Using nautilus (file-manager), navigate to /home/yourname/.gnome2/nautilus-scripts, right click in the folder and select create document>empty file.

In this file put the following..

#!/bin/sh
filesall=""
while [ $# -gt 0 ]
do
files=`echo "$1" | sed 's/ /\?/g'`
filesall="$files $filesall"
shift
done
nautilus $filesall
sleep 1
xdotool key F4

Now Save As clutterflow.sh

Right click this file you just made and select Properties and then the Permissions tab and check the box.. Allow Executing file as Program..
Goto your Main Menu and then Preferences and then find the Application called Main Menu.
Once opened you will see your category tree.. There is one called Other, click it and on the right you will see the one called Open Folder
Select it and right click>properties or Click properties on the right hand side and you will see a box where you can edit the launcher.
Where is says command it currently says...

nautilus --no-desktop %U

Replace with this...

sh /home/yourname/.gnome2/nautilus-scripts/clutterflow.sh

Don't forget to replace yourname in the line above with whatever name you use on your machine!

Now press close and either click on a launcher you created or use the places menu or whatever you use..

workaround 2
For single launchers that only open 1 folder like Music or Videos etc.. just create a sh file called music.sh or videos.sh and use this instead.

#!/bin/sh
nautilus /home/yourname/Music
sleep 1
xdotool key F4

Remember to change yourname to your machines and Music to whatever folder you want..

Then create the launcher and change the name to match your sh script..

sh /home/yourname/.gnome2/nautilus-scripts/music.sh


Ubuntu 18.04: Unlock windows in GNOME (minimize togther) with ShellTile extension

I found it: You can disable the behaviour using gnome-tweak tool:


Ubuntu Server: Intel Driver Uses Lots of RAM

That is your video driver, and since for your hardware the GPU is closely tied to the CPU (in the same chip actually, there's nothing much you can do.

Are you using any graphical DE? Gnome/Unity? Being a server, you don't need those, so maybe for a text-only boot could could try blacklisting the i915.ko module from loading in the krnel


The correct method of installing the driver is the following:

tar xvjf r8168-8.035.00.tar.bz2

cd r8168-8.035.00

sudo ./autorun.sh

This script compiles the module r8168 and installs it to the right place.
To check whether it' loaded, run:

lsmod | grep r81

Also, ifconfig should list a new ethX network interface.


KVM Virtual Machine Manager
The recommended amount of RAM for running Android Studio Ubuntu is 8GB. In Virtual Machine Manager the settings for virtual RAM  are accessed by selecting the guest OS, then from the Virtual Machine Manager menu select Edit → Virtual Machine Details → click the blue ⓘ icon (Show virtual hardware details) to open a new window from which you select Memory and allocate at least 8GB memory to the guest OS.

Virtual Machine Manager configures the graphics and hardware-assisted virtualization settings automatically by default, but you may need to enable Intel VT-x or AMD-V hardware-assisted virtualization in UEFI/BIOS.

VirtualBox
VT-x/AMD-V needs to be enabled to run the Android Emulator which is included with Android Studio in VirtualBox. If your computer's processor supports Intel VT-x or AMD-V hardware-assisted virtualization, there should also be settings to enable it in UEFI/BIOS. Make sure that the appropriate Intel VT-x or AMD-V settings are enabled in UEFI/BIOS. The following two checkboxes should be checked in VirtualBox Settings → System → Acceleration tab.

Enable Vt-x/AMD-V

Enable Nested Paging

Android Studio is a very feature rich IDE, and you need to give it enough resources in order to use all of its great features. The recommended amount of RAM for running Android Studio Ubuntu is 8GB. As you get deeper into Android Studio you'll find out again and again what a resource hog it is. On a guest OS with only 4GB RAM whenever you run Android Studio's emulator, your guest OS will stop responding. Your guest OS will run smoothly if you add another 4GB RAM making it 8GB.

If you assign too much memory to the virtual machine, the machine might not start, so make sure there is enough memory left over for running the physical machine.
A guest OS in VirtualBox can be configured to use up to 256MB video memory. To increase the video memory to 256MB, open the terminal and type:
VBoxManage modifyvm "Name of VM" --vram 256

You can also configure the number of processors in VirtualBox Settings → System → Processor tab.


How do I get new *.desktop files to show up in the launcher?

This is the example desktop entry file:
[Desktop Entry]
Version=1.0
Type=Application
Name=Foo Viewer
Comment=The best viewer for Foo objects available!
TryExec=fooview
Exec=fooview %F
Icon=fooview
MimeType=image/x-foo;
Actions=Gallery;Create;

[Desktop Action Gallery]
Exec=fooview --gallery
Name=Browse Gallery

[Desktop Action Create]
Exec=fooview --create-new
Name=Create a new Foo!
Icon=fooview-new

https://specifications.freedesktop.org/desktop-entry-spec/latest/apa.html
Note the TryExec=fooview field.
Here is what the desktop entry standard says:

TryExec
Path to an executable file on disk used to determine if the program is
actually installed. If the path is not an absolute path, the file is looked
up in the $PATH environment variable. If the file is not present or if it is
not executable, the entry may be ignored (not be used in menus, for example).

We note that fooview is not an absolute path,
so let's see if it's in $PATH:
$ type -P fooview
$ type -a fooview
bash: type: fooview: not found

Here's another way to test this:
$ gtk-launch foo.desktop
gtk-launch: no such application foo.desktop

Compare with e.g. gtk-launch eog.desktop.
Since there is no fooview executable,
this means that "the entry may be ignored (not be used in menus, for example)",
which is why Unity is not showing it in the menus;
it thinks the application has not been installed.
To fix this, you must replace the TryExec key with either an absolute path or an executable somewhere in $PATH.
Related:

Desktop entry does not appear in Unity launcher

How to launch an Xulrunner app with a desktop shortcut?

https://unix.stackexchange.com/questions/66555/why-are-my-application-desktop-files-not-showing-up-in-linux-application-menu

https://unix.stackexchange.com/questions/263922/what-is-the-tryexec-field-in-desktop-files


From the author of extundelete:

  I guess that it is not finding a way to link the inodes with a file name, in which case the --restore-all method is your best shot at getting your files back.

https://sourceforge.net/p/extundelete/mailman/message/30159985/

So in your case, you would instead run:

sudo extundelete /dev/sda1 --restore-all

Although from my experience the output is deceptive because the files (inodes) that are still "lost" are for the whole partition and not just for the directory you specified, meaning that most of what it's able to restore has already been restored. But it doesn't hurt to try --restore-all since it may find some file fragments that it doesn't know the path for.


How to manage Juju's LXC containers using virsh?

juju doesn't use libvirt to manage lxc containers at all.  Juju's libvirt dep was just to use the default libvirt networking.

The libvirt dep has recently been removed from juju trunk to favor using the (quite similar) default networking provided by the 12.04 lxc packages.


As explained by Eliah Kagan in the comments, if a process has file open, it shall remain in memory even if file is unlinked from the filesystem. The simple approach is to reboot, since /proc is a virtual filesystem and its contents don't remain on the hard drive


Upgrade problems (from Ubuntu 13.10 to 14.04)

error: symbol 'grub_term_highlight_color'

Is GRUB2 error.
Download Boot-Repair CD and try to fix GRUB from it. Download


I still don't know why it disappeared, but I got it back by adding it to ~/.config/gtk-3.0/bookmarks.


how to fix error creating a bootable USB stick of ubuntu-16.04 iso image?

As the others said:

Make sure your ISO downloaded okay by checking the MD5 sum, if it didn't download it again
You can't use older versions of Ubuntu to make a bootable USB for the newer versions

That being said you could try opening Terminal and running the command:

sudo dd if=~/Downloads/ubuntu-x-x-x.iso of=/dev/yourUsb bs=4m && sync

Obviously substituting the path to the ISO and path to your USB.
You should be able to get the path to the USB in the Disks application.


Can I do a release update on Ubuntu 7.10?

@Eduard, based on my experience, I don't think upgrading directly from Ubuntu 7.10 will work, because there are just too many releases in between them.  Your old apt-get is probably not able to install the latest packages and perform all checks required.

I could think of doing incremental upgrades to 8.04(LTS), 10.04(LTS), 12.04(LTS) and 14.04(LTS), but that's a lot of work.

So the easiest path for you is probably reinstall Ubuntu 14.04(LTS) from scratch.  Before you start, make sure you have a reliable backup of your important server data, probably everything under /home and including server configuration under /etc.  I usually make a tarball from those trees, for reference.

Good luck!


How can I install Ultrastar Deluxe in Ubuntu 13.04?

I have successfully installed UltraStart on my notebook MSI U100.
Download the packages from https://launchpad.net/~tobydox/+archive/ultrastardx/+packages

I used first:  ultrastar-deluxe-data_1.1.0-svn-20120608-1_all.deb

then:          ultrastar-deluxe_1.1.0-svn-20120608-1_i386.deb

And not had problems. I hope it works for you too!

Greetings!
   Javier.


Ubuntu from pendrive. How much space available

What you see is an artifact. There really is only one 1.9GB partition. /tmp for example is a tmpfs, ie it is in memory, yet it shows up. A command to use if you have it is findmnt which shows you the hierarchy and where the real disks are.

When you download a large file the Avail column should change.

You should be able to use the /media/... disk, but you need to first create a directory on it for your user id. Use sudo mkdir and the full pathname of the directory, then sudo chown user and the same directory. Replace user by whatever you are logged in as (try who am i).


Why are there two different Ubuntu Software apps?

Prior to Ubuntu 16.04 the Ubuntu Software Center app was the primary graphical tool for installing software from package repositories on a system running Ubuntu linux.

However, Starting in 16.04 the Ubuntu Software Center was replaced by Ubuntu Software which is based off of Gnome Software.


Not able to deactivate Alt+Shift for switching between sources. Need it for smart column selection in the text editor

The options for toggling keyboard layout are those starting with grp: in man xkeyboard-config.
You have chosen grp:alt_shift_toggle when configuring your system. To revert it to the defaults,
simply delete that string from /etc/default/keyboard via text-editor. It may also be possible
via dpkg-reconfigure keyboard-configuration. which is an interactive tool, but I'm not sure if
it will ask about that option. Worth giving it a try.


Ubuntu 16.04 has taken over iMac - was dual-boot

When you're in Ubuntu have you tried opening a terminal and typing:

sudo update-grub

and then rebooting?


After you posted the screenshot, I see the situation. Yes, it is stuck. The process of upgrading did call update-initramfs and it got stuck.
Close the software-center, terminate it if Ubuntu asks to. Then, without reboot, open Terminal, and run 'sudo apt-get dist-upgrade' there. I think it will run, or at least give some more info.
If you reboot now, you may get stuck on boot. It is solvable, but better don't until you update it all fine.
P.S. But before doing this check one more thing!!! Check you don't have some message window open and buried under all others - the software-center may be just waiting for you to answer in that window, and the window has no icon on the left bar.


Merge partitions (that aren't next to each other)?

You can't merge partitions.  You have to back up the files from one of them, delete it, then expand the other into the new free space, then restore the files.  If the free space is not next to the partition you want to extend, you will have to move the partitions around.

Update: If you have Windows and don't mind spending money on proprietary software, This Product claims to be able to merge partitions directly.


I only have Ubuntu 18.04 so perhaps systemd has taken over control of more acpi events in 20.04 and you will need to find out how to disable that (e.g. in /etc/systemd/logind.conf).  To get logging I added a line to /etc/default/acpid

OPTIONS=--logevents

and after sudo systemctl restart acpid I saw events in the systemd journal when plugging in the headphone, and it ran my script ok:

$ sudo journalctl -u acpid -f
... acpid[2554]: 9 rules loaded
... acpid[2554]: waiting for events: event logging is on
... acpid[2554]: received input layer event "jack/headphone HEADPHONE plug"
... acpid[2554]: rule from /etc/acpi/events/meuh matched
... acpid[2558]: executing action "/home/meuh/bin/myscript"
... acpid[2554]: action exited with status 0
... acpid[2554]: 1 total rule matched
... acpid[2554]: completed input layer event "jack/headphone HEADPHONE plug"


Optimal fix for post login freeze in Kubuntu due to PulseAudio

The purpose of the start-pulseaudio-kde and start-pulseaudio-x11 scripts is to integrate Pulseaudio with Phonon.
Of course will Phonon will also run and play sounds without Pulseaudio but applications that rely on a functional Pulseaudio sound server will not be able to run then. This will also be true for devices that are loaded by Pulseaudio rather than with Phonon.
Below are two examples to illustrate the difference:

Pulseaudio-Phonon integration loaded (default):

Pulseaudio-Phonon integration not loaded:

Note that only in the first instance we will have access to audio devices as defined by a pulseaudio module. In this case this is the internal sound card, and an attached Airport Express. In the second instance we will only see the "Pulseaudio Sound Server" which can not further be controled.
Still, pulseaudio will be loaded and will run in the background, and both scripts can be run later if we had not put them in autostart.
In case you do not need to control Pulseaudio with Phonon you are probably safe to delete the above scripts or their corresponding .desktop files which will call these scripts but you will break the Pulseaudio integration with Phonon when doing so.
The delay issue when loading pulseaudio is related to a malfunction of module-x11-xsmp or of Avahi (see Pulseaudio Bug #58758). There is active effort to get this bug fixed, hopefully soon.


Ubuntu Sofware Centre does not download packages when connected to Cisco VPN

Found my answer. just add the proxy settings to /etc/apt/apt.conf. This solution works for both cli and the software centre.


Lenovo laptop not recognising my bootable usb

Have you tried every usb port?

Some laptops only will not boot off every port.


Doesn't work wi-fi (ubuntu 16.04.3, Asus UX530UX-FY033T)

sudo modprobe iwlwifi && dmesg | grep iwl

This command helped me figured out that I have an old iwlwifi-8000C-21.ucode driver but it needs iwlwifi-8000C-22.ucode. I downloaded from https://github.com/OpenELEC/iwlwifi-firmware/blob/master/firmware/iwlwifi-8000C-22.ucode place to lib/firmware and everything is fine.


First things first, make yourself a copy of the clone that you were given.

Then you can try testdisk on the copy, to see if it can magically retrieve the partition table. For further pointers, see:

How to resolve " The harddisk seems too small" with Testdisk deeper search option
How do I recover my accidentally lost Windows partitions after installing Ubuntu?.

If nothing else works, you can experiment as you wish on the copy: fsck, superblock reset, etc.


"No manual entry for pthread" - could not find man page by name

First install these manpages:

sudo apt-get install manpages-posix manpages-posix-dev

and then:

man pthreads

Now it should work.


Is there a Turkish checkers game for Ubuntu desktop?If not, can it be implemented?

You can play Dama (turkish checkers) with hcheckers, both against a human opponent and against the computer.
This software is written in a client server architecture, i.e., it comes in two binaries: a server and a client. If you just want to play checkers on your desktop computer, you need to start a local server program first, and then start the client program.
While the developer does provide Ubuntu packages for hcheckers 0.1 (one for the server and one for the client), unfortunately, this version is too old and does not contain the turkish variant yet (only the english and russian variants and some others). So you need to build the package from the sources yourself. You can either build Ubuntu packages or docker containers. The README of hcheckers describes how to do this. Or, you could open a ticket on GitHub and kindly ask the developer to release a new version.


Why is it a difference between the displayed versions of LXPanel?

The changelog on this package will explain it. The current latest entry:

lxpanel (0.5.10+git20120823-0ubuntu1) quantal; urgency=low

  * New upstream snapshot.
   - Lxpanel doesn't use monochrome Keyboard LED indicators (LP: #1016014)
[...]

Means that the Ubuntu developers (package maintainers) have taken a new upstream snapshot of lxpanel to fix a bug. While this may not actually be 0.5.11 yet, the source of that snapshot will already contain new commits after the 0.5.10 was released and the state of the source code repository might already be in a prepare-for-0.5.11 state at that time.

A common reason for naming the package version slightly different is the current set of dependencies relying on a 0.5.10 version available, but if the ABI compatibility hasn't changed, the 0.5.11 version just works and naming it 0.5.10 in the package management saves a lot of trouble in shipping out more updates with just a line of dependency changed.

However, if package maintainers decide on this, they usually version tag it like this: phonon version 4:4.7.0really4.6.0-0ubuntu1. In this case the 0.5.11 version might not have been out yet, so they just use the git20120823 suffix to mention the upstream version not yet released.


App should be startable by its name in the command line

Put it in the path or alter the path. You can run echo $PATH to see your path. If this is just for one user, ~/bin/ is a suitable location. Otherwise, move the file to /usr/local/bin/. You'll need to do that as root.
In order for it to be directly executable (without asking Python to run it explicitly):

It needs to be executable: chmod +x filename
It needs a shebang at the beginning of a file: #!/usr/bin/env python3
You should probably rename it so it doesn't have .py on the end

The alternative for this is you just create a launcher shell script that runs python /path/to/script.py. This would save you having to move your file somewhere special but the same rules apply. It needs would need to be set executable, be in your path and start with a #!/bin/sh or #!/bin/bash shebang.


Why do I recieve multiple warnings of "No running instance of xfce4-panel was found" when logging into Xubuntu?

According to the questioner, the problem was fixed after removing the .cache folder in his home directory.
In some cases, as described here, it might be necessary to:

Log out of xfce
Log in to a bare terminal (by pressing, e.g., Ctrl+Alt+F1 and logging in)
Delete ~/.cache (just deleting the contents of ~/.cache/sessions might suffice)
Return to xfce (usually by pressing Ctrl+Alt+F7)
Log in


I would echo the need for more information.  Basically, in all of the above you will need to install network-manager-ovpn, network-manager-gnome (apt-get should work).  you may need to also apt-get ovpn, but that's probably included in network-manager-ovpn.  Then, you can create in network manager pptp, l2tp, or more likely (I hope) an ovpn the connection.  The others are relatively outdated.  Using the GUI, the creation process is easy so long as you have the correct files which your university should provide in a linux friendly fashion.


After looking through the man page I came up with this:

  network:
    version: 2
    ethernets:
      enp0s3:
        addresses: [192.168.0.140/24]
        gateway4: 192.168.0.1
        nameservers:
          addresses: [8.8.8.8,8.8.4.4]

It is named

/etc/netplan/01-systemd-networkd-eth.yaml

And it works.

This command was a great help:

netplan --debug generate

which pointed me to syntactical errors.

Breaking news. Just found this:
https://insights.ubuntu.com/2017/07/05/quick-and-easy-network-configuration-with-netplan/


Ubuntu One - Files API - Cloud - More detailed info somehwere?

There isn't yet another page, although I'm working on it. (And yes, a JSON array.)

I'd be happy to chat over this stuff with you; it would be useful to me to get your feedback on what you'd like to see in the documentation (sample request/response pairs is a good idea), and hopefully useful to you as well. There are various example apps around; if you're developing on Ubuntu, you may find u1oauthrequest, in the ubuntuone-couch package, useful for testing: u1oauthrequest https://one.ubuntu.com/api/file_storage/v1/~/Ubuntu%20One will be the node for your Ubuntu One folder, for example. u1fn9 shows accessing the file storage API from JavaScript in a QML app; the source for the U1 Android and iOS apps is open and on Launchpad; u1ftp is a Python example of accessing the files API.


How to increase the limit of unity launcher's sensibility

Install CompizConfig Settings Manager. Open it and edit Ubuntu Unity Plugin: Set Launcher Reveal Pressure to 1 (instead of 20 - default).

Be careful with changing settings in CCSM, though!


I have the same problem with Mythtv. You were able to configure it! When I enter setup-(larger than) fullscreen-I'm unable to get any farther than language and location and cannot see any buttons to click. Try to close it starts an infinite loop and it starts back up again and becomes harder to close.

What I do is use HTOP to find mythtv and issue a kill 9 command.

$ sudo apt-get install htop

You can use htop from a virtual terminal

ctrl+alt+F3 (any F key from 2-5) Return to your GUI screen with ctrl+alt+F7

I also used

$ sudo apt-get remove --purge mythtv

to dump mythtv from my system. Be sure to manually delete the .mythtv file in your home directory.

I've look in vain for instructions on configuring mythtv. There are plenty of install and use instructions but none address the problem of the loop and overblown screen size.

Yes version 0.27 is out now. I'm resigned that Mythtv won't be near a reality until it gets beyond version 1.0! Between Me-Tv (can't change channels but is a GOOD PVR) and TV Time (GREAT picture, no sound) I don't think Ubuntu or Linux can provide a TV media experience for the average end-user at this time. I'm still trying though. Been watching Ubuntu since 7.04. Just went full time (no dual boot) 2 months ago and miss my PVR (we call it DVR in US).


Google Earth Installation x64 (Xenial) lsb-core

SHORTCUT

Make sure you do not have any version of Google Earth on your system

sudo apt-get purge google-earth-stable
Have aptitude installed

sudo apt-get update && sudo apt-get install aptitude

Download the latest version of Google Earth
Select .64 bit deb file and Hit Agree and Download

Run

sudo aptitude -f install lsb-core

Downgrade your system by hitting 'n', then 'y', 'y

see further down for exact details of specific output

Then run
    sudo dpkg -i "NAMEOFYOURDEB.deb"

To install all necessary packages for it. It will tell you if you need to install something else.

Finally finish installing it by running

sudo gdebi "name_of_your_current_release".deb

"only use sudo if not root"

LONGER EXPLANATION

Assumptions of what I had installed on my machine and am assuming you have on yours:

I had aptitude installed.
I did not google-earth on my system. It was
completely removed.
I downloaded a current stable .deb file on my system

Only Run Commands Below this Line After Reading Below

I then ran
 sudo dpkg -i google-earth-pro-stable_current_amd64.deb
which satisfies all the package dependencies for it.
I then ran

sudo gdebi "name_of_your_current_release".deb

You should see Google Earth in Menu Bar when you search "google earth"

______READ____ME_____FIRST____________

These are the Steps to follow for downgrading.

I downgraded my system because in order to run google earth they require you to have lib-core and that apparently is not supported anymore so run
sudo aptitude -f install lsb-core
Then you would enter No, when first asked and then you would enter Yes.

The reason why, you would enter no first is because if you respond 'no', it would simply not change anything and you will still get the 'lsb-core' error

  The following NEW packages will be installed:   alien{a} at{a}
  lib32z1{a} librpmbuild3{a} librpmsign1{a} lsb-core pax{a} rpm{ab}  0
  packages upgraded, 8 newly installed, 0 to remove and 1 not upgraded.
  Need to get 493 kB of archives. After unpacking 1,611 kB will be used.
  The following packages have unmet dependencies: rpm : Depends: rpm-common (= 4.10.1-2.1ubuntu1) but 4.12.0.1+dfsg1-3build3 is installed. The following actions will resolve these dependencies:

 Keep the following packages at their current version:
 1)alien [Not Installed]
 2)lsb-core[Not Installed]
 3) rpm [Not Installed]

Accept this solution? [Y/n/q/?] n

  The following actions will resolve
  these dependencies:

 Downgrade the following packages:                                         1)     rpm-common [4.12.0.1+dfsg1-3build3 (now) -> 4.10.1-2.1ubuntu1

  (raring)] 2)     rpm2cpio [4.12.0.1+dfsg1-3build3 (now) ->
  4.10.1-2.1ubuntu1 (raring)]

  Accept this solution? [Y/n/q/?] y

  The following packages will be
  DOWNGRADED:   rpm-common rpm2cpio  The following NEW packages will be
  installed:   alien{a} at{a} lib32z1{a} librpmbuild3{a} librpmsign1{a}
  lsb-core pax{a} rpm{a}  0 packages upgraded, 8 newly installed, 2
  downgraded, 0 to remove and 1 not upgraded. Need to get 523 kB of
  archives. After unpacking 1,696 kB will be used.

  Do you want to continue? [Y/n/?] y


How to get rid of "Device or resource busy" during setup of loop device?

I had to reinstall my kernel image, i.e. package linux-image-x.x.x with dpkg - I still don't understand how the resource/file could have been busy after a reboot...


I suggest, instead, you do:

    sudo apt-get install libglui2c2 libglui-dev

These are version 2.36 and built for Ubuntu.


sh script works manually but not via cron

Please do check your s3BucketBackupScript.sh script and ensure there is no relative paths given.

CRON of an individual user sets the user's home directory as PWD.

This may worked manually from terminal because you were in the exact directory to interpret the relative paths correctly.


How to pipe a text file containing mongod arguments to mongod command

Ubuntu , and all Linux distributions with GNU utilities installed, have xargs , which allows running a command with arguments piped from another command or from provided from stdin. In your case , what you would want to do is the following:

xargs  mongod < mongo_args.txt

Here you have mongo_args.txt which is the text file with your arguments, and it's being redirected as stdin to xargs. That will be joined together with mongod and ran as complete command.


The version of libboost on my 12.04 system is 1.48.0.2. Here's how you can find out:

dpkg -s libboost-dev | grep 'Version'

How can I find the version number of an installed package via dpkg?


How do I remove the original desktop environment after having installed a different one?

You can try this
Start in text-only mode
Switch on your computer. Wait until the BIOS has finished loading, and press and hold Shift, which will bring up the Grub menu.
Select the line which starts with Advanced options.
Select the line ending with (recovery mode)
Press Return and your machine will begin the boot process.
After a few moments, your PC should display a menu with a number of options, including Drop to root shell prompt. Press Return with this option highlighted.
The PC will start in a terminal.

Run these commands:
Mount partitions in read-write mode
 mount -o remount,rw /
 mount --all

Update repositories
 apt-get update

Install aptitude and deborphan
 apt-get install --reinstall aptitude deborphan

Eliminate the components of lxqt that are not necessary in xfce
 aptitude remove '?and(?reverse-depends(lxqt),?not(?reverse-depends(?exact-name(xubuntu-desktop))))'

Reinstall xubuntu-desktop
 apt-get install --reinstall xubuntu-desktop

Eliminate orphan packages
 deborphan
 apt-get --purge remove $(deborphan)
 deborphan --libdevel
 apt-get --purge remove $(deborphan --libdevel)
 deborphan --find-config
 dpkg --purge $(deborphan --find-config)

Remove unnecessary packages
 apt-get autoremove

Remove downloaded packages
 apt-get clean

Restart system
 reboot


You can try this. It will help install iTunes in Ubuntu via a program called Wine.


Winetricks does not appear in Open with menu

Open with wine (not winetricks) is what you need to do.

Winetricks is a helper script to install runtime libraries (like mfc42) needed by some executables (windows software). But after using winetricks, you will still use wine to open the executable.


error in sudo apt-get update ubuntu 14.04

Check the files in /etc/apt/sources.list.d/ and check the file /etc/apt/sources.list.

Look for the typo in the repo URL.


Samsung ML-1865 printer not working Ubuntu 17.10

so if I were installing the driver; I would download uld_v1.00.36_00.91.tar.gz from your link and then open a terminal and paste in the commands below

cd Downloads
tar -zxvf uld_v1.00.36_00.91.tar.gz
cd uld
sudo ./install.sh

and that should install the driver; please tell us if you did that


Permissions depending on parameters passed to application

Linux permissions are tied to the user (not to the application).
You might get the result you want by starting the script as a normal user:

OUTFILE="/home/username/mystuff"
DEFAULT="/path/to/real/deal"
touch "$OUTFILE" || OUTFILE="$DEFAULT"
sudo java_app "$OUTFILE"

Touch will not work in a directory where the user has no write permission so in that case the touch will fail and the outputfile will get the default path/filename.
Sudo is invoked AFTER this test.


What is the purpose of the System Settings > Appearance > Background > color picker

The color selector allows you to pick the color(s) for a solid or gradient background.

To see it in action you can select an image with transparency as background (png, svg...), or go to the dropdown for the background of the wallpaper source (upper right corner) and select the option Colors & Gradients.

Check Ubuntu desktop guide for this and other interesting stuff.


Wireless unable to work ubuntu 14.04 LTS

Go to the terminal (see my comments on your question above). In the terminal type:sudo apt-get install bcmwl-kernel-source.You're asked for a password. This is the same one as you use to log in. The computer starts doing a series of actions now and shows a lot of text. If it finishes then you type:sudo modprobe wlNow you should see wireless networks. If not then restart your computer and you'll certainly see wireless networks. Yesterday I've done this on a computer of a friend of mine so I'm sure this will work.


Yep, libfprint doesn't support your device currently: https://fprint.freedesktop.org/supported-devices.html


msmtp installed as a system account not working with libsecret

In the file /etc/msmtprc I replaced password with passwordeval, pointing this to the libsecret command to extract the password.
account default
auth           on
tls            on
tls_trust_file /etc/ssl/certs/ca-certificates.crt
logfile        /var/log/msmtp

# gmail
host           smtp.gmail.com
port           587
from           <account>@gmail.com
user           <account>
passwordeval   "secret-tool lookup host smtp.gmail.com"

# Syslog logging with facility LOG_MAIL instead of the default LOG_USER
syslog LOG_MAIL


How to split larger files into smaller parts?

There are several ways to accomplish this. Let's start with the basic ones.
Using the split and cat commands:
Lets says I have an image and its too big (10MB). All I do is:
split --bytes=1M /path/to/image/image.jpg /path/to/image/prefixForNewImagePieces

and then to put it together I use cat:
cat prefixFiles* > newimage.jpg

For example:
Assuming am inside the folder where the image is:
split --bytes=1M myimage.jpg new

if the image is inside a directory called images you can also do this:
split --bytes=1M images/myimage.jpg new

If the image is inside the directory /home/cyrex/images you can do this:
split --bytes=1M /home/cyrex/images/myimage.jpg new

(In all the cases above it will split myimage.jpg in 1MB pieces and prefix the name of the pieces with the word new. So they would look like newaa, newab, newac, newad...)
If you are splitting a Text file and want to split it by lines you can do this:
split -l 1000 book.txt new

Which will split the text file in output files of 1000 lines each. This is another way to split a file and is mostly used for text files like logs, sql dumps, csv files, etc..
Then I merge them
cat new* > newimage.jpg

This is one way. You can even change the size of the splitted pieces. Just change the part that says --bytes=1M to --bytes=1K for 1 kilobyte or 1G for giga, or another number like --bytes=4K for 4KB pieces.
Using Nautilus
Another way is the compress option in the gui of Nautilus. It gives you an option to split the file or files you want to compress into smaller megabyte sizes. Its simple and easy.
Yet another way is using 7z
Assuming you have an ISO image called ubuntu.iso you could do this:
7z a -v5m -mx0 ubuntu.7z ubuntu.iso

This will create 5MB size files from the ubuntu.iso. The -v5m is the volume size so you can change it to 10, 12, 1, 3 and also the m can be changed to k for kilobytes, etc; the -mx0 switch tells 7-Zip to use no compression, that is, just to split data into parts.
To extract just do
7z x ubuntu.7z.001

this way you extract the first file and 7z starts extracting from the following files in order. You can also do
7z e ubuntu.7z.001

which has the same effect here.


Plasma: Windows go behind panel (no multiple screens)

Ok so it's working now after I played around with the panel settings again. I don't know why it's working now. I did update-apt-xapian-index earlier to get my Driver Manager working again, don't know if that's got anything to do with it.


How to change adobe flash player cache location in home directory?

Would creating a symlink suffice? I.e.

ln -s ~/.adobe/Flash_Player/AssetCache ~/.cache/AssetCache

Note this still stores the data at the original location and the symlink is at ~/.cache. You can also do the reverse if you first move the cache (make sure flash is closed when you do this):

mv ~/.adobe/Flash_Player/AssetCache ~/.cache/
ln -s ~/.cache/AssetCache ~/.adobe/Flash_Player/AssetCache

Also as Eliah Kagan pointed out as ~/.cache already exists, it's better to place the adobe cache inside this location if desired.

I'm not sure whether adobe will let you change this setting - I've never come across this option anywhere.


Please try

sudo mv ~/Downloads/kafka_2.11-1.0.1/* /usr/local/bin/kafka

assuming you have your Downloads folder in your home directory.
Anyway you need to run it with sudo to move it to /usr/local/bin/.


During reboot my screen goes black, how long should I wait before hard reset?

Chances are there is a "stop job" running in the background or an input inhibitor activated. You should wait 2 minutes for them to end normally before forcing an abend (abnormal ending) with a hard reboot (holding the power key down for 10 seconds).

If this problem happens frequently to you, try closing all your open applications before you reboot.


You can set commands for mouse keys with ccsm.

Open a terminal. (Ctrl+Alt+T)

To install ccsm type:

sudo apt-get install compizconfig-settings-manager

Then type

ccsm

to start ccsm.

Click on Commands and type in a command. Enable the commands plugin.
Now click on Button bindings. There you can set your mouse buttons.

EDIT: Sorry I didn't read that you want to control your mouse with the keyboard :)

I hope this helped you,
Daniel


Permission issue with tar a file on mounted filesystem

From man tar:

 --no-same-permissions
       apply the user's umask when extracting permissions from the archive
       (default for ordinary users)

-p, --preserve-permissions, --same-permissions
       extract information about file permissions (default for superuser)

So, if you have to use root-privileges to be able to extract to /mnt, just add the --no-same-permissions-option to your command. The p-option has to been removed from the command, so in your case, the command

sudo tar --no-same-permissions -xjvf file.tar.bz2 -C /mnt

should do what you want. All files and folders will be owned by yourself.


How to persistently export an environment variable before starting compiz

You could create a simple script to launch Compiz with:

# /bin/sh
export __GL_YIELD="NOTHING"
compiz --replace &

Name it something like launch-compiz, make it exacutable (chmod +x launch-compiz), and place it somewhere in your PATH like /usr/local/bin Then simply typing launch-compiz in the Alt-F2 run dialog or a terminal will work.

Alternatively, if export __GL_YIELD="NOTHING" doesn't have any ill effects under Metacity, you can add it to your ~/.bashrc file. That will ensure that that environmental variable is always set. Then you can just luanch Compiz as you normally would.


I solved the issue by reinstalling the ONIE firmware of my switch.

I think the problem was that I had somehow installed an incompatible NOS on my switch which in turn messed up with the partitions of the grub2 boot loader.

So I created the ONIE image and attached the binary through usb. I then got my grub screen back through minicom.


Before you start the installation, acquiring the following packages should help:

build-essential
openssl
libcurl4-openssl-dev
libssl-dev
pkg-config
lib-ares-dev
lib-ares2

Now run the installation script.

When prompted by the script for additional configuration options, you may need to add --with-system-cares.

Follow the documentation for the rest of it.


Windows 7 entry missing from grub after 12.04 installation

It turned out that one of the two entries in the existing menu was actually an entry for Windows 7, so the solution was to try both of the entries (while being careful not to accidentally start any actual Windows recovery operations). I'm writing this as an answer so that it can be accepted, but I'd also recommend filing a bug report about the mislabeled Windows entry by running ubuntu-bug os-prober.


How can I remove the packages that came with ubuntu-desktop? (13.10)

The situation you are in is not uncommon and has been tackled in Getting back to a pure Xubuntu but those instructions are for older versions and not for 13.10. Even then, they have useful pointers and are worth a look.

You can do something like that yourself because whatever you've done by way of installing or removing software from the repositories using apt-get or the Software Center or Synaptic is recorded in /var/log/apt/history.log (and older archived files) in /var/log/apt. What you've done should be in the latest file, plain history.log. Take a look in there and make a note of the software installed on the relevant date.

Then, for simplicity and ease of monitoring what you're doing, purge a few programs at a time from the list of what you've identified. Each time first use the -s flag:

sudo apt-get purge -s package_name

to simulate what will be done without the -s switch.

Also, look in /usr/share/xsessions (using a terminal so that you see the real file names) and delete (after making a backup) the .desktop files of the sessions you don't want to see at log-in time.

Experts may have a more elegant way to grab the package names from the relevant line in history.log but here's one way using your pastebinit content:

copy line #3, the one beginning with "Install:" to a text editor, and delete  upto the first package name. Save the file as unity.
open a terminal and run sed -i 's/), /)\n/g' unity. This introduces line breaks after each package.
run awk -F: '{ print $1 }' unity > unity1. This gives you a file with just the package names usable by apt-get. But each package is on a separate line.
fix that by running awk 1 ORS=', ' unity1 > unity2
manually remove the "," at the very end of the file**.

After these steps, you're left with something you can use in apt-get purge.

python3-pyatspi, syslinux-legacy, telepathy-haze, libqt5v8-5, telepathy-idle, libsgutils2-2, rhythmbox-plugins, empathy-common, libcrypt-passwdmd5-perl, empathy, gir1.2-dbusmenu-glib-0.4, account-plugin-salut, libgdata13, libsignon-glib1, libsignon-qt5-1, xul-ext-webaccounts, libgdata-common, signon-plugin-oauth2, apturl, libxcb-render-util0, libsignon-extension1, gnome-orca, libqt5sql5-sqlite, libsbc1, account-plugin-aim, ubuntu-docs, python-pyinotify, telepathy-salut, libdmapsharing-3.0-2, python-qt4-dbus, bluez-gstreamer, telepathy-gabble, gir1.2-totem-1.0, gnome-terminal, overlay-scrollbar, evolution-data-server-goa, gir1.2-gst-plugins-base-1.0, libqt5opengl5, libgexiv2-2, libfreerdp1, ubuntu-desktop, account-plugin-facebook, python3-chardet, deja-dup-backend-gvfs, python3-debian, deja-dup-backend-ubuntuone, gnome-disk-utility, libqt4-sql-sqlite, whoopsie-preferences, libgc1c2, telepathy-mission-control-5, python-configglue, libdbusmenu-qt2, libgee-0.8-2, remmina-plugin-rdp, libprotoc7, gstreamer1.0-nice, libfolks25, libxcb-image0, python3-brlapi, mtools, gstreamer1.0-clutter, libproxy1-plugin-networkmanager, libaccount-plugin-google, libqt5sql5, libxcb-icccm4, libaccount-plugin-generic-oauth, telepathy-logger, gnome-terminal-data, libqt5qml5, libsignon-plugins-common1, nautilus-sendto-empathy, account-plugin-windows-live, duplicity, libwmf0.2-7-gtk, landscape-client-ui-install, liblouis-data, libufe-xidgetter0, rhythmbox-plugin-magnatune, libwhoopsie-preferences0, totem-plugins, libmission-control-plugins0, python-ubuntuone-client, gnome-control-center-unity, rhythmbox-mozilla, python-ubuntuone-control-panel, libaccounts-glib0, libaccounts-qt5-1, libgweather-3-3, libfarstream-0.2-2, gnome-screensaver, libqt5core5, rhythmbox-data, libssh-4, libreoffice-presentation-minimizer, shotwell-common, libfolks-eds25, liboauth0, libtelepathy-logger3, shotwell, indicator-sync, rhythmbox-plugin-cdrecorder, libgpod4, remmina-common, protobuf-compiler, apturl-common, deja-dup, gnome-contacts, liblouis2, branding-ubuntu, libaccount-plugin-1.0-0, python-twisted-names, libfreerdp-plugins-standard, vino, libtotem0, totem, libqt5xml5, guile-2.0-libs, signon-plugin-password, libqt5quick5, libsync-menu1, usb-creator-common, libqt5test5, mcp-account-manager-uoa, remmina, libqt5printsupport5, libreoffice-ogltrans, python3-dirspec, sni-qt, libvncserver0, syslinux, python-protobuf, rhythmbox, libxcb-sync0, python-ubuntuone-storageprotocol, python3-speechd, totem-common, account-plugin-jabber, overlay-scrollbar-gtk2, overlay-scrollbar-gtk3, thunderbird-gnome-support, remmina-plugin-vnc, libfolks-telepathy25, libgweather-common, libproxy1-plugin-gsettings, activity-log-manager, syslinux-common, example-content, libqt5webkit5, notify-osd-icons, libtelepathy-farstream3, libqt5widgets5, xul-ext-websites-integration, gir1.2-gnomekeyring-1.0, totem-mozilla, udisks, rhythmbox-plugin-zeitgeist, libecal-1.2-15, rhythmbox-ubuntuone, gir1.2-dee-1.0, account-plugin-yahoo, gir1.2-syncmenu-0.1, signon-ui, libgpod-common, unity-webapps-common, evolution-data-server, webaccounts-extension-common, ubuntuone-control-panel, python-markupsafe, ubuntuone-client-data, pulseaudio-module-bluetooth, gnome-control-center-signon, gnome-mahjongg, libqt53d5, python3-louis, libqt5dbus5, librsync1, ubuntuone-client, ubuntu-sso-client-qt, qt-at-spi, gir1.2-unity-5.0, usb-creator-gtk, libraw9, gir1.2-totem-plparser-1.0, libqt5gui5, account-plugin-google, signon-keyring-extension, liblvm2app2.2, libqt5network5, media-player-info, gir1.2-rb-3.0, python3-six, activity-log-manager-control-center, librhythmbox-core7, folks-common, plymouth-theme-ubuntu-logo, libqt5location5, libedata-cal-1.2-20, notify-osd, ubuntuone-control-panel-qt, libavahi-gobject0, libqt5sensors5, aisleriot, python-mako, nautilus-share, xul-ext-unity, libgail-common, signond

**See https://stackoverflow.com/a/4611116/1771119 for code on removing the terminal ",".


I solved reinstalling PHP, as follows.

sudo aptitude purge `dpkg -l | grep php| awk '{print $2}' |tr "\n" " "`
sudo apt-get install php7.0 php7.0-fpm php7.0-mysql libapache2-mod-php
sudo a2enmod php7.0
sudo service apache2 restart

I also edited the file /etc/apache2/mods-available/php7.0.conf in order to allow PHP in user directories (and then, again, restarted apache2).


writer2latex works with Ubuntu 16.04!

Installation:

sudo apt-get install writer2latex writer2latex-manual

How to use it: go to the target file directory and:

w2l file.odt

writer2latex full documentation


If you want to install themes on your Ubuntu 14.04, here is a great collection of it.
Select the theme, and follow the instruction to install it.
Once installed, you can select it from the Appearance menu in System Settings.

For wallpapers, simply right clicking on an image and selecting "set as wallpaper" would be sufficient. However you can also add you wallpaper images in /usr/share/backgrounds/ directory to appear in the Appearance setting.


Executing "unicode" Python script from Gedit vs Terminal

Terminal allows python "unicode" code to execute without issues because it has  sys.stdout.encoding correctly set.

I change the script as below:

#! /usr/bin/env python
# -*- coding: utf-8 -*-

import sys

print sys.stdout.encoding
print u"富强"

Run in Gedit, the output is: None for sys.stdout.encoding.

Run in Terminal, the output is UTF-8 for sys.stdout.encoding and the string is printed correctly.

But if I change locale LC_CTYPE from en_US.UTF-8 to C, run it in Terminal with LC_CTYPE=C ./test.py, I get the following:

ANSI_X3.4-1968
Traceback (most recent call last):
  File "./test.py", line 7, in <module>
    print u"富强"
UnicodeEncodeError: 'ascii' codec can't encode characters in position 0-1: ordinal not in range(128)

sys.stdout.encoding is set to ASCII so it cannot handle the string.


glogg - Smart interactive log explorer using Qt

Edit: glogg can easily be installed using your favorite package manager after first enabling the universe repository. Once this step is complete you can simply issue the command apt install glogg or in the usual fashion with the software center.

Main features

Runs on Unix-like systems, Windows and Mac thanks to Qt
Provides a second window showing the result of the current search
Supports grep/egrep like regular expressions
Colorizes the log and the search results
Displays a context view of where in the log the lines of interest are
Is fast and reads the file directly from disk, without loading it into memory
Follows a log that is written to disk in real time
Allow to insert marks in the logs to interesting lines
Supports vim/less like keyboard commands to move around the file
Is open source, released under the GPL

Sources: http://glogg.bonnefon.org/description.html


Here is the complete How To: What is the HPLIP Binary Plug-In and How Do I Install It?. It includes HP LaserJet Pro MFP m125a.
It says:

  Most Linux distributions include HPLIP with their software, but most
  do not include the plug-in.  Therefore, it is a safe practice to run a
  utility called "hp-setup", which, will install the printer into the
  CUPS spooler, download, and install the plug-in at the appropriate
  time.

  To install the plug-in using the GUI you can follow these procedures:

  Launch a command-line window and enter:

                   hp-setup

  Select your connection type and click "Next".
  Select your printer from "Selected Devices" list and click "Next".
  Enter your root password when prompted and click "Next".
  Use the recommended installation method and click "Next".
  Check the box to accept with the "Driver Plug-In License Agreement" and click "Next".
  Finish the installation of the printer as normal, however you may be prompted to re-enter your user name and password.

  If you run into any additional install problems you can go to our
  known issues page and check for a solution.

  For advanced users who wish to install HPLIP components manually, a
  utility exists (hp-plugin) which will download and install the plugin
  file, but it does not also install a printer queue like hp-setup does.

  Do the following:

  Launch a command-line window and enter:

               hp-plugin

  Follow the directions above for navigating the GUI but remember that the printer que will not be installed through this process.

  *Note: you may need to run hp-plugin as root or super user depending
  on your distro.


LINUX 16.04 port blocking and ip blocking

Without seeing the rest of your tables, it is hard to say.  You can look at all of your iptables by using the -L flag, to list them:

sudo iptables -L

Please update your question with this output, especially if this answer doesn't provide a solution for you.

When reading this output, you must start from the top, and work our way down.  Are there any rules that would REJECT, DROP or ACCEPT your traffic before this line?  Since you're trying to block access, you most likely have an ACCEPT line above the REJECT on port 80.

When using iptables command, you can append rules -A, or insert them with -I.  This means, rules added with -A will be at the bottom of the existing rules.  This can make on the fly modifications troublesome, and instead, you load a list of rules from a file:

sudo iptables -L # Look at tables, test that they work correctly
sudo iptables-save > /etc/iptables # Save tables to a file
....
sudo iptables-restore < /etc/iptables # Restore tables after a reboot or something

You can also sudo iptables --flush to start over with a fresh set of rules that will ACCEPT all connections.


Once upon a time(1), when the memory of the computers was measured in kilobytes and the disks in megabytes, running the graphic interface all the time was considered harmful.

Most Unix computers were used for scientific computations and simulation in multi-user environments, and the graphic interface running on them would reduce the memory and CPU power available to them.

So when you needed a graphical interface you just started it with startx (2).

startx basically runs an Xserver (the graphical "driver") and a command which run on it, which is typically a window manager. By default the commands that are run are in ~/.xinitrc file in your home directory, or some generic system file otherwise.

Modern systems are thought from the bottom up to have a graphical system running all the time, so no one has probably checked the working of startx for ages -- that explains a lot of strange behavior you can have.

If you want to experiment and the feel the good old times, the best thing is doing the following:

A) install Xnest and fvwm. Xnest is a graphic server-within-a-server, a kind of server that will open as a window in your normal system. Fvwm is a very simple window manager which was very popular back then. You will need old pixmap fonts, too.

sudo apt-get install xnest fvwm
sudo apt-get install xfonts-100dpi xfonts-100dpi-transcoded xfonts-75dpi-transcoded xfonts-75dpi

B) write this file somewhere, for example in you home dir, and call it ~/test:

#!/bin/bash
#
xterm &
exec fvwm2

C) Run (notice: startx is normally run with first the client command, then a double dash, and then a server command. As I said, most new systems do not have sensible defaults for startx alone.).

cd ~
startx ~/test -- /usr/bin/Xnest -ac :1 -geometry 800x600

...and you have a 80ies workstation screen:

(You can have the menu by clicking on the "Xnest" desktop).

...and if you feel really adventurous, you can start a native session on another virtual console (read the other answers) by going to one of them with Ctrl-Alt-F1, loggin in, and

startx ~/test

which will normally open on Ctrl-Alt-F8.

Notice: modern desktop environments are not designed to run simultaneously, for the same user, in two different consoles. So do not use gnome-shell or unity or modern things when doing this experiments, or you could mess up your configuration.

Footnotes:

(1) Speaking about around 1980-90 here.

(2) For example, I had a laptop with 256k of RAM. It was painfully slow in the (B&W!) graphic interface, but snappy in the console. So I did most of my work (editing C, LaTeX and similar files) in console mode, and switched to the graphic environment only when really needed.


I am on Manjaro and just got the same problem. Tried different versions and installers - including ones specifically for windows 8, cause the newer ones complained that I need windows 10.
The final one that I managed to install successfully was version 12.9.5.7. I downloaded it from downloads.digitaltrends.com/itunes/windows.
(Strongly hope there is no virus in it :D ...)
Also worth mentioning is that actually I need it for deploying flutter testing apps to an old iPhone that I have ... I don't want it for listening music.
But anyway - hope this version works for you too.


Wifi missing on Ubuntu 16.04.3 - dual boot with Windows 10

Try this

Connect to LAN

Search for Additional Drivers
See if there are any Broadcom drivers available( Wait for some time if not available, it takes time to load available drivers some time )
If it already says, Using BroadCom Corporation .., click on 'donot use this device'-> Apply Changes, then again 'Use BroadCom Corporation...'-> Apply Changes
Restart your Ubuntu


There are some alternative programs, similar to WinSCP (probably) - for example gFTP

and FileZilla:

You can install both by running:

sudo apt-get install gftp filezilla

The GUI for Nautilus's servers does not have many options, but you should be able to edit the entries by running:

gedit ~/.config/nautilus/servers


This is only a partial answer 8^)

Switch on the TV and insert the HDMI plug.
Insert the other end of the cable into the laptop before switching
it on.
Click in the top-right hand corner to drop the system menu, then
choose Settings (crossed screwdriver and spanner icon).
Choose Devices > Screen Display page.
Click the Mirror button to duplicate the laptop screen on the
TV. (This button only appears when the HDMI cable is plugged into
an active – switched on – TV, monitor or similar video-
audio destination.)
Still in the Settings app, choose Sound. The Sound page
displays a list of possible outputs. (Thanks, BananaPeal.)
Choose the HDMI output that represents your TV.
Close the Settings app.*

After you unplug the TV, you will have to change the settings back to the default.

I said this is a partial answer. No-one has yet told me what the relevant packages are to report an improvement-request "bug".

* I am a retired technical writer. Does it show?


Customize ISO - SQFS -- Add Custom BashRC - Alias to Ubuntu Live DVD iso

Basically, it would be like following through https://help.ubuntu.com/community/LiveCDCustomization to customize that ISO file.  Mainly, you would be extracting the filesystem.squashfs and modifying it.  The home folder within the filesystem.squashfs is /etc/skel/, that is where you would put your .bashrc, etc. files.  The filesystem.squashfs would then have to be resquashed and then added to the custom ISO.

The /etc/skel/ folder is the default home folder for the Ubuntu Live CD/DVD/USB in the filesystem.squashfs.  I am not sure what OS the Parted Magic is using.  It could be different.

Hope this helps and points you in the right direction.


Wubi for Windows 7 on Sony Vaio is not Working

Please remove Wubi completly from Control-Panel (Add/remove softwares).
Wubi sometimes can cause some problems, and installing with a Disk or a DOK (Disk On Key) is better. (And you have to remove Wubi for installing normally)

Download the ISO file and make a disk or a DOK.
there are guides in the Ubuntu sites for creating both.

If you need to ask something, ask (:


Email sent out from server is just me@servername, not me@domain.com

Try with:

echo "Message body" | mail -s "Some subject" -r dan@mydomain.com  destination@receiver.com


dpkg: error: unable to access dpkg status area: Read-only file system

Try using:

sudo mount -o remount /dev/sda1

If sda1 is your hard disk.


Running Multiple VMs in VMware workstation

Yes it is possible. Simply open the virtual machine from the vmware-workstation player interface. If you want to open another instance simply open a new instance of vmware-workstation player. I suggest the pro version though it will help you properly achieve what you want.


Right after boot, run dmesg command. It shows you what you want.


Desktop Folders are opened with dolphin file manager?

If you don't use Dolphin at all, you can remove it with

sudo apt-get purge dolphin -y

And it should prompt you for a new default program afterwards when you click the icon.

If you want to keep dolphin, and assuming you're using Ubuntu 18.04 (since you tagged gnome), you should be able to right click the icon, click properties -> open with, and select a new default application from there.


Display turn on automatically after time out

Try command

sleep 2 && xset dpms force off

That way you have two seconds time to raise up the return key before the actual display management command runs. Otherwise keyboard activity will turn the display back on.

I do not know which command you use for locking, but you could use the same technique with it. Some locking commands may be able to take the issue into account without the trick.


Your graphic card is not supporting the 3d mode.

I may be a trouble with your graphic drivers. It happens often after a kernel update. (even more if it's an ati or nvidia graphic card)

You can confirm this with this command : glxinfo | grep rendering
(install glxinfo if you don't have it)

You may need to reinstall your graphic driver if it's nvidia or ati.

Leave me a comment if you need more explanations.


Let me take a little more technical side to this.  Consider that ufw is just a user-friendly(ish) front-end to the underlying netfilter/iptables system built into the kernel.

That in mind, let's read your rules in an iptables perspective.

Your first rule would be this:

iptables -A INPUT -p tcp --dport 80 -s 95.95.95.95 -j ACCEPT

Your second rule would be this:

iptables -A INPUT -p tcp --dport 80 -s 95.95.95.95 -d 207.15.15.15 -j ACCEPT

At their core, though, they both accept port 80 over the TCP protocol from 95.95.95.95.  The only difference is you specify the destination IP address in the filter.

If your system only has one IP address that is public-facing, and your system isn't behind a router or NAT, then the rules are identical.  That is, assuming your IP address of 207.15.15.15 stays the same all the time.  If the IP address changes, then the second rule you entered will no longer operate properly.

However, if your system is behind NAT, then you should not use the second method, which designates the target IP address, because your NAT'd system will not properly read the packets in a way that it would match the 'ACCEPT' rule.  In that case, you should only use the first one.  (Because NAT rewrites the destination of the packet to the internal IP address, so instead of 207.15.15.15 your system will see a destination of 192.168.6.6 for example, so the extra 'destination' match you added will prevent the ACCEPT of the packet.)

Essentially, unless you're running multiple IP addresses and different services on each with different ports and rulesets, you don't really need to specify the 'destination' IP address in your ufw rule with the to 207.15.15.15 part.


Click on the triangle at the bottom of the install window--there is a hidden console log that tells you what the installer is doing. It could be stuck at some point and not moving forward, hence taking 7+ hours. I had this happen, and fixed it as described here:

https://askubuntu.com/questions/173755/fixing-an-unfinished-installation-of-12-04