This may have more reasons.
What comes to my mind as first is :

You are trying to log as root (Ubuntu does not allow it)
On target machine, there is not allowed logging with password (can be configured in /etc/ssh/sshd.conf)
You entered wrong IP (of wrong computer)
Key authorization is required (Also can be edited in /etc/ssh/sshd.conf)

And as Elias said, if you are  using  user@ip and not ssh user@ip, it is obvious that it is not working.


Why all gnome extensions showing outdated?

I know this thread is a bit dated now, but I thought it worth mentioning that I had a similar problem to Raf, and in summary I think it has been solved by the following:

Purge the testing repositories (ricotz and gnome3-team)
Purge gnome-shell
Purge gnome-shell-common (this was my biggest problem)
Reinstall gnome-shell (after apt-get update)

Credit belongs to, and more detailed information can be found at, this thread: http://ubuntuforums.org/showthread.php?t=2009222


update-rc.d subversion default command not working on ubuntu 18.04

### BEGIN INIT INFO
   # Provides: 3Proxy
   # Required-Start: $remote_fs $syslog
   # Required-Stop: $remote_fs $syslog
   # Default-Start: 2 3 4 5
   # Default-Stop: 0 1 6
   # Short-Description: Initialize 3proxy server
   # Description: starts 3proxy
   ### END INIT INFO


Try this:

take a look at your /etc/default/grub.

There should b a line like GRUB_HIDDEN_TIMEOUT=0,
change it to #GRUB_HIDDEN_TIMEOUT=0.

And change GRUB_TERMINAL=console to  #GRUB_TERMINAL=console.

after this changes you'll see the normal grub menu.


Ubuntu 13.04 Terminal stops responding/freezes on launch

You could try terminator, the multi terminal.


When you install Ubuntu dose not transfer over the wireless third party drivers. Blue tooth dose install. What I do is take my cellphone turn on personal hotspot with blue tooth. The computer connects to internet through the cellphone. Then use "Additional Drivers" and it will install like normal. disconnect the cellphone and your done. takes about two minutes.


Can't Authenticate with Builtin On Screen Keyboard?

Update: It seems xwayland 2:1.20.8-2ubuntu2.4 was causing the authentication issues. I was able to update Ubuntu and keep xwayland 2.2 and all is well. Wayland was grabbing OSK and preventing using it to login. Not sure how to fix other than using version 2.2?


I think I found a bug in /etc/grub.d/10_linux

Here's one easy way:

Test the development release of Ubuntu to see if the bug is still there. Lots of minor bugfixes don't get backported to older releases. If the bug is fixed, stop. Don't re-report a fixed problem. Instead, find the original bug report and request a Stable Release Update.

Figure out which package provides that file. In this example, you can see that the file /etc/grub.d/10_linux is provided by the package grub-common
$ dpkg -S /etc/grub.d/10_linux
grub-common: /etc/grub.d/10_linux

File a bug report against the appropriate package using ubuntu-bug <package_name> and simply follow the prompts.

After filing your bug report, ensure you get e-mail on that bug, so you can answer questions by Triagers and Developers on how to reproduce the problem in their test environment. Also, volunteers willing to test the fixes are essential.


How can I sync Xubuntu's calendar Orage with Google Calendar?

I believe you can modify this file /home/user/.config/orage/oragerc approximately like that:

Archive file=/home/user/Dropbox/orage/orage_archive.ics
Orage file=/home/user/Dropbox/orage/orage.ics

These files are (or should be) originally in /home/user/.local/share/orage (2)

Or you can go in Orage to File -> Share data (or data share?(1)) to change the paths of the files.

So, you could sync with any computer or mobile with Orage (but not Google Calendar) and your Dropbox account. However, I have not tried yet but it works with passwords manager like Keepass.

In any case, synchronizing an application with a Google app requires lowering the security of the Google app.

Do you know? "Orages" means "thunderstorm" in French.

(1)Échanger des données in the french version
(2) If you never used Orage, they will not exist yet


How do I encrypt a new user's password using the useradd command?

You could skip the whole administrator-created-password user administration hassle by creating the userid, then using passwd --expire on it. From man passwd:

   -e, --expire
       Immediately expire an account's password. This in effect can force
       a user to change his/her password at the user's next login.


Whelp, turns out it wasn't a software issue at all. The contacts on the SATA connector were a bit dirty. Works fine after cleaning up/plugging back in.


How do I remove the network manager applet from my GNOME Flashback session?

for system-wide:

Please note the valuable comments from Experts

  You should not edit files directly inside /etc/xdg/autostart directory
  by hand. It is a bad idea, bad method and bad recommendation. It will
  be overwritten on next package update. Instead - copy this file to
  ~/.config/autostart and then edit it for your needs. Or use GNOME GUI
  tool for startup applications (gnome-session-properties).

Open the file gnome-flashback-nm-applet.desktop with below command

sudo -H gedit /etc/xdg/autostart/gnome-flashback-nm-applet.desktop

and edit the content like below

[Desktop Entry]
Name=Network (GNOME Flashback)
Comment=Manage your network connections
# TRANSLATORS: Don't translate this text (this is icon name)
Icon=nm-device-wireless
Exec=nm-applet
TryExec=nm-applet
Terminal=false
Type=Application
NoDisplay=true
OnlyShowIn=noGNOME-Flashback; ### I have changed this line. ###
X-GNOME-UsesNotifications=true
X-Ubuntu-Gettext-Domain=gnome-flashback

for user only:

cp /etc/xdg/autostart/gnome-flashback-nm-applet.desktop ~/.config/autostart/

and edit the file ~/.config/autostart/gnome-flashback-nm-applet like below

[Desktop Entry]
Name=Network (GNOME Flashback)
Comment=Manage your network connections
# TRANSLATORS: Don't translate this text (this is icon name)
Icon=nm-device-wireless
Exec=nm-applet
TryExec=nm-applet
Terminal=false
Type=Application
NoDisplay=true
OnlyShowIn=noGNOME-Flashback; ### I have changed this line. ###
X-GNOME-UsesNotifications=true
X-Ubuntu-Gettext-Domain=gnome-flashback


Is the last release of Ubuntu Touch LTS?

Ubuntu touch will stop receiving updates after June 30, 2017. So, no it is really no LTS in any meaningful way.

This https://ubports.com/ rather than canonical is a last hope for people who believed and invested in the idea, but it remains to be seen if this is a viable project.

All devices running Ubuntu Touch will continue to function as normal after that, but no further updates will be available.

Developers can continue updating their apps and users can continue to download and install updates of applications until the end of 2017.


Portablejim's answer is accurate but dangerous -- if you typo something, your system may be unusable, especially if you alter the admin group improperly.  If you must edit the groups file, use the vipw -g or vigr commands, which verify the syntax before saving.  Even then, there are better ways.

From a commandline, the one you probably want to use is the following (as root):

deluser <username> <groupname>

This will remove the specified user from the specified group. You must relogin to see the effect. It will not delete the user, or the group, just the membership.  There are also ways of doing it with the usermod command, but it's harder to use as you need to replace the entire list of groups for a user in order to remove a single group.  The gpasswd command is also capable of doing this (as sagarchalise points out), but is mostly deprecated. As always, see the man pages for more details.


I don't know why your username is ne, but I suggest you to try to come back to recovery mode and then from menu try fsck and after that update grub. Then try to reboot (to reboot enter in the room entry menu and from there type "reboot". Or from the recovery menu choice resume.


Brightness function will not work on a Dell 5521

this command in terminal can change the brightness

sudo echo 1 > /sys/class/backlight/acpi_video0/brightness

Where 1 is the brightness value u can change it from 0 to 9(or more)

this will get changed to default when u reboot, to permanently change the brightness open

sudo gedit /etc/rc.local

add the following line above 'exit 0' at the bottom of document

echo 1 > /sys/class/backlight/acpi_video0/brightness

save it

what happens is rc.local file loads at every boot and your brightness is set to 1 at every boot

if u want to remove this simply remove the echo line u added in rc.local file before 'exit 0'

i hope this helps you


How to update Ubuntu's logcheck frequency?

The schedule is in the /etc/cron.d/logcheck file.

Below is the content of the file:

# /etc/cron.d/logcheck: crontab entries for the logcheck package

PATH=/usr/local/sbin:/usr/local/bin:/sbin:/bin:/usr/sbin:/usr/bin
MAILTO=root

@reboot         logcheck    if [ -x /usr/sbin/logcheck ]; then nice -n10 /usr/sbin/logcheck -R; fi
2 * * * *       logcheck    if [ -x /usr/sbin/logcheck ]; then nice -n10 /usr/sbin/logcheck; fi

# EOF

So it runs after reboot and at 2 minutes every hour every day.

I suggest not to change the frequency but rather identify log events you don't want to receive and add them to a logcheck ignore folder like /etc/logcheck/ignore.d.server/. Logcheck already has a good set of pre-installed rules, but you can modify them to your liking.


Cannot get cron.service status using systemctl

It is a known bug with policykit-1.

The solution is to run:

sudo apt-get purge policykit-1
sudo apt-get update
sudo apt-get upgrade
sudo systemctl reboot

This issue started after I tried to install the firewalld package.


Turning command into alias, what characters to escape?

With the help of steeldriver in the comments, I've created a function instead
loc() {   sed '/^\s*#/d;/^\s*$/d' $@ | wc -l }

which solved my problem


Go to your ~/.local/share/applications/ directory. There should be a Skype.desktop file. Delete it, and it should be gone the next time you log in.

Failing that, there may be another .desktop file at /usr/share/applications/.


Problem "No operational system found" when booting from usb HDD (14.04 LTS)

Some usb thumdrives and external HDDs show up as internal drives in Bios.
If this is the case change the harddrive boot order in your Bios.


So, I fixed it by deleting my .config directory. For some reason it was corrupted. I had to re-do all my settings, but the problem was unrelated to mac.


Could rootkits be effective for non-root users?

What you must know

Linux is not immune to advanced malware, like rootkits and trojan horses, and to Zero Day exploits.

On any generic Linux distribution a rootkit can use social engineering to steal the root password; it can also use a memory exploit if the system is not up-to-date and execute a shell script as administrator without user interaction and without visible effects.

On Ubuntu, where sudo is often installed but not correctly configured, a malware just needs the password of the current user to execute administrative actions and infect the system.

If you have setuid executables installed and they use an interpreter (like, for example, older versions of Nmap did), they can be used to circumvent the account barrier and execute administrative actions.

Modern rootkits will try every possible way to obtain the root access and load a new kernel module to gain total privileges and hide other infections.

How to protect yourself

Basic precautions

I've made a little todo list:

Never give the root password to your users in a multi-user system;
Never insert the root password in untrusted applications (downloaded from unofficial repositories) if not absolutely necessary;
Update your Ubuntu system at least every month from the official repository and leave only the latest 2 updated kernels installed.
Do not use unstable or in-development software.
Use gufw or another wrapper to configure the firewall and block unused ports for IN/OUT:TCP and IN/OUT:UDP.
Configure passwd to impose a minimum password length, because a malware can brute-force weak passwords.

After that, install and use tiger to check for security issues in your system.

Advanced precautions

These precautions will drastically improve your security, but they need regular maintenance after installing new software and are for advanced users:

Use SELinux to protect the sensible configuration files, sudo alone offers limited guarantees of security against security experts. You should consult the official reference before using it, since it can limit the root access rights and lock you out if not configured correctly. It is a very advanced and powerful tool, experiment on a Virtual Machine before using it in production.
Use Apparmor (installed by default on Ubuntu), which provides protection by limiting a program to a particular set of directories and guarantees a good protection even to non-technical users.
To get started with it, you will need to install Apparmor "profiles" to some common programs. You may install them like so: sudo apt install apparmor-profiles apparmor-profiles-extra apparmor-utils and then enable them by running sudo aa-enforce /etc/apparmor.d/*.
Firejail is an easy-to-use sandbox that reduces the risk of security breaches by restricting the running environment of untrusted applications with multiple tecniques. You can use it to isolate your web browser and obtain some extra protection against in-memory exploits.

All those precautions will increase the security of their respective areas of effect but decrease the performance of the whole system if the hardware is old. In fact, we often find them in enterprise servers, to protect the important (or public) network nodes.

Thank you to user311982 for the useful suggestions.

Even if Linux is more secure than the other systems, it does not mean that is immune. My little guide is not exhaustive, fell free to comment under here if you have more questions.


Unable to install Realtek rtl8723de drivers? (networking)

If you reinstall 18.04, which uses kernel version 4.15-xx, then the step-by-step instructions will differ from this answer. This answer assumes that you remain with 19.04 using kernel version 5.0-xx:

git clone https://github.com/smlinux/rtl8723de.git -b 5.0-up
sudo dkms add ./rtl8723de
sudo dkms install rtl8723de/5.1.1.8_21285.20171026_COEX20170111-1414
sudo depmod -a

Reboot.


Broken python3 symbolic links causing problems

Try to reinstall python3-minimal package with

sudo apt-get install --reinstall python3-minimal

If it does not help you can reinstall all python3 packages with

sudo apt-get install --reinstall \
$(dpkg -l | grep python3 | grep ^ii | awk '{print $2}')

You can use xterm or plain terminal (accessed from Ctrl+Alt+F1).


Do you need a processor with virtualization to run Docker on Snappy Ubuntu Core?

No, you do not need any of the hardware virtualization technologies.  Those are for full hardware virtualization.

Container, aka. Operating-system-level virtualization, is provided by, in case of Linux, Linux kernel.  It's all software thing.


Cannot change language away from English

To fix this I did this:

Go to Region and Language
Add input language
Only English options were showing, but I scrolled to the end of the list where "Other" was showing and selected that
In the new list that came up I was able to select Norwegian
Applied. I now finally got the language switcher in the task bar!
Moved Norwegian to the top place as input language


Which version of LibreOffice should I use?

Asking for the correct one is a little vague as the current version in the repository maybe correct for you while it might not be the correct version for others. Similarly, the current version in the ppa maybe correct for you while it might not be the correct version for others.

Nonetheless, to install Libreoffice from the repo do:

sudo apt-get install libreoffice

EDIT: As per bartovan's comment, the following ppa provides the latest package from fresh branch.

sudo add-apt-repository ppa:libreoffice/ppa
sudo apt-get update
sudo apt-get install libreoffice

To install the latest stable version of Libreoffice, visit their release notes page and get the version number of the latest stable package. Now, follow the below steps to install the latest stable package of libreoffice:

sudo add-apt-repository ppa:libreoffice/libreoffice-X-X

Replace X-X with the version number of latest stable version. E.g.: at the time of editing this answer the latest stable release was 5.3.7, so, in place of X-X I would write 5-3.

sudo apt-get update
sudo apt-get install libreoffice

Or to install pre-releases of Libreoffice

sudo add-apt-repository ppa:libreoffice/libreoffice-prereleases
sudo apt-get update
sudo apt-get install libreoffice


Filesystem corruption on shutdown/reboot

Well, it would appear that the cause of the issue was the existence of the ext2fsd driver (and possibly another similar windows driver I had been toying with). Although I don't remember having booted windows each time this issue occured. Uninstalling the ext2 drivers seems to have resolved the issue for now.

See:
How can I prevent Windows 10 from corrupting the ext4 superblock every time?


I too had a similar problem, but was able to fix it as follows:

In my case, I had to run a i386 system with

qemu-system-i386 -hda tty.qcow2 -boot c

I modified this with -k en-us so now the command is:

qemu-system-i386 -k en-us -hda tty.qcow2 -boot c

Now my directional keys function.


Why don't custom upstart job names tab complete in the service command?

Every package that provides a standard daemon using upstart is required to provide a symlink in /etc/init.d by Debian policy. So autocompletion for sudo service name already works. Make sure that you have the bash-completion package installed if you're having problems.

If you are creating your own upstart jobs, then symlink /etc/init.d/your_job to /lib/init/upstart-job like the other upstart jobs are doing already. This will make your own jobs work the same way.

There are special upstart jobs in /etc/init that do not have a corresponding entry in /etc/init.d. These are an exception. From Debian Policy:

  An exception to this rule is scripts or jobs provided by the init implementation itself; such jobs may be required for an implementation-specific equivalent of the /etc/rcS.d/ scripts and may not have a one-to-one correspondence with the init scripts.

These exceptions do not currently work with bash-completion. However, you can use start, stop, restart and reload directly without service, and autocompletion will work. For example, sudo start shut correctly autocompletes. But you shouldn't normally need to directly call upstart jobs that do not have a corresponding init.d entry.

Note: I tested this on Saucy. If support doesn't appear in an older release, perhaps it is not available there (but you'll get it soon when you upgrade to a sufficiently new release).


By default network shares are mounted in the hidden directory ~/.gvfs in our home directory. You can browse there with any application provided you have enabled to display hidden folders.

smbnetfs

With this tool we are also able to mount network shares as a non-root user in any newly created folder in our home directories. For a short explanation on how to use it see this answer.


How do I copy top X files from a directory to another using terminal command?

find . -maxdepth 1 -type f | head -1000 | xargs cp -t foo_dir where foo_dir is the destination where the files will be copied.

find . -maxdepth 1 -type f will look for files, on the current directory only. The output of that will be pipped to the command head that will return the top 1000 results. The result of that will be pipped to xargs that will use the cp command, one per line of results, to copy the files to a destination directory of your choice.


Don't confuse nssswitch and PAM. It's not the same:

/etc/nsswitch.conf is a configuration file to configure, where the system should get it's databases. Databses for users, groups, passwords, dns lookups and so on. For example when you change the owner (chown) or the permissions (chmod) of a file. Then the system needs to know how the uids and gids should be interpreted; from the files (/etc/passwd, /etc/shadow, /etc/group) or from an LDAP server (or both) or from another service (NIS, AD, Kerberos). Also nsswitch-related is the priority in case of dublicate entries.

PAM is a component that defines, what at authentication, password change or session start should happen. PAM grants or denies the access. It mounts filesystem that needs to be mounted at a user login (pam_mount.so), execs login scripts (pam_exec.so), authenticates over unix method (pam_unix.so) or via LDAP (pam_ldap.so). It passes the password provided by the user from module to module and (however configured) the modules may break the stack or not. That ends in a successful or unsuccessful authentication.


why does the "host" and "nslokup" command show the wrong IP?

If you whois those IP's 198.105.240.0 - 198.105.255.255 is owned by Search Guide Inc.  My ISP (Charter, US) uses a service of theirs to try and send me to a search page when a dns lookup results in a not found.

If I up a new machine using DHCP it'll get dns servers from my modem/router... by default the ISP's dns... which causes this to happen.

Using a DNS provider other than your ISP, Google is a good bet (8.8.8.8, 8.8.4.4), will get around this.  At one time I found a page on Charter that allowed me to disable that 'feature', but I do not recall where that was.


Ubuntu 10.04 LTS is outdated (and therefore unsupported) for desktops. I would therefore advise you to first upgrade to 12.04 LTS, and then ask another question on AU.


sort the results from `apt-cache search `

Pipe the result to sort:

apt-cache search keyword | sort

The vertical bar is called pipe. It takes the output from apt-cache and transfers it to the input of sort.


How do I replace gedit settings or preferably the code snippets?

GUI way to doing this is -

Going Menu to Tools -> Manage Snippets
Then select all snippets using Ctrl+A
Click on the export icon.

It will ask where you want to export all snippets. After selecting the directory, all snippets will be exported into a compressed file Snippets archive.tar.gz in that directory. You can then import this archive using same GUI options Import Snippets button.

All these snippets are actually stored at ~/.config/gedit/snippets directory. If you want you can also use command line tools to copy the contents of that directory to a new computer. The snippets should be restored.


Viewing files other than ones located in ubuntu partition

You can view all available disk partitions in nautilus which is default file browser in Ubuntu. Just open nautilus from sidebar or dash and in left pane you'll see all the partitions listed on top.


Only one of two Intel Wireless 7260 PCI Cards are assigned a logical name

The solution was found after finding and reading the note towards the bottom of this page: https://wireless.wiki.kernel.org/en/users/drivers/iwlwifi/core_release
And then finding the correct release

Previously, I had only been reading this page: https://wireless.wiki.kernel.org/en/users/Drivers/iwlwifi
This actually does explain that -17.ucode is the latest and greatest firmware for the 7260 cards. However it does not actually point to a download link...

The core_release page does. And after installing it (-17.ucode) and re-running the same reboot permutations (switch cards, move cards, etc...) I have found that -17.ucode works flawlessly.


Platform not supported for Tensorflow on Ubuntu 14.04.2

I had the same problem, because I used the wrong pip version (python 3). I fixed it by installing pip2.7 as described here: http://pip.readthedocs.org/en/stable/installing/

You basically download the file get-pip.py

and install pip2.7 with

python2.7 get-pip.py

now you can run

python2.7 -m pip install https://storage.googleapis.com/tensorflow/linux/cpu/tensorflow-0.5.0-cp27-none-linux_x86_64.whl

you need to be a superuser and tensorflow will install.

cheers


Upgrade 14 to 16.04: required dependency 'dpkg (>= 1.17.5ubuntu5.6)' is not installed. Help?

Update the dpkg using the following steps:

Step 1.

wget http://security.ubuntu.com/ubuntu/pool/main/d/dpkg/dpkg_1.17.5ubuntu5.6_amd64.deb

OR (Depending on your system)

wget http://security.ubuntu.com/ubuntu/pool/main/d/dpkg/dpkg_1.17.5ubuntu5.6_i386.deb

Step 2.

sudo dpkg -i dpkg_1.17.5ubuntu5.6_amd64.deb

OR

sudo dpkg -i dpkg_1.17.5ubuntu5.6_i386.deb

Then trigger the update again by:

sudo do-release-upgrade -d


Only allow access to nginx server when using the full domain name and not the IP

You can create two virtual hosts in Nginx. One for default access and another for domain specific.

Then you can restrict access for default access or redirect to your domain as per your choice.

server {
    listen      80 default_server;
    listen      [::]:80 default_server;
    server_name "";
    return      444;  # or comment this and uncomment below to redirect to domain.
    #return 301 http://www.example.com$request_uri;
}
server {
    listen      80 default_server;
    listen      [::]:80 default_server;
    server_name "www.example.com";
    ...
    ...
}

Nginx Virtual Hosts - https://tecadmin.net/setup-nginx-virtual-hosts-on-ubuntu/


See my Web page on this problem. In brief, either your partition table is damaged or there's leftover RAID data causing problems. In the first case, using FixParts can often (but not always) solve the problem. In the latter case, typing sudo dmraid -E -r /dev/sda should fix the problem -- but do this only if you're 100% positive that the disk is not legitimately configured for RAID.


I don't know what the problem might be with django, but you can't remove pip with itself, like you can with apt.

You'll need to run sudo apt-get remove pip pip3 or, if you want to purge system configurations, sudo apt-get purge pip pip3 (if you have pip3 installed).

As for django, for which you didn't provide the output, it's possible it's also installable by apt, and you can use the method above.

If that's not sufficient for you, you can do something like sudo find . -name '*django*' -exec rm -rf {} \+, or so, which will remove permanently all files which have django anywhere in their name.


Do not put the

sudo chmod ...

command at the bottom of /home/file_name. Instead just put

chmod ...

And execute /home/file_name as sudo:

sudo /home/file_name

Do make sure that only root has write privileges for that file, or you're giving away the keys to the castle.


How to enable experimental rounded corners?

There was (possibly still is) a PPA for this, but it did not work for me when I had tested it (compiz would crash). Fortunately these borders will be in 12.04, and may be backported before then (to my understanding).

I will update my answer if I find any changes to the state of the situation.


Try reinstalling the Unity.
For that, launch the terminal and run the following commands.

sudo apt-get update
sudo apt-get install --reinstall ubuntu-desktop
sudo apt-get install unity


According to the Pidgin voice and video trac not much work has been done on MSN. XMPP (and Google Talk) should work.

According to here you need both gstreamer0.10-plugins-ugly and gstreamer0.10-ffmpeg.

Why is there a greyed-out option? As a placeholder. Yes, farsight has MSN Webcam support but according to the imfreedom wiki "is a unidirectional Video only conversation".


You can download and install php5-tidy from precise-updates, but I think that the dependencies for this can not be met on your system.

But you could also try to compile the library itself:

sudo apt-get install checkinstall

wget http://archive.ubuntu.com/ubuntu/pool/main/t/tidy/tidy_20091223cvs.orig.tar.gz
tar xf tidy_20091223cvs.orig.tar.gz
cd tidy-20091223cvs
./configure
make
sudo checkinstall


Micro SD Card automatically getting write protected

In case, if you are using Sandisk, please do the following (If the lock switch is not on lock):

Slide the switch up and down. Repeat this 3 times.
Let it stay on the Lock position for 30 seconds.
Slide the switch up to unlock the card.
Try to transfer files into the device.

Yes it is strange and yes it works, as per this source.


I try an answer as i faced same issue...
My workaround was to re-compress the saved pdf with ghostscript and it became fully printable by gnome viewer and/or LPR
ghostscript is already installed in Ubuntu desktop

I re-compressed the pdf file with the shrinkpdf.sh script available here:
http://www.alfredklomp.com/programming/shrinkpdf/

Usage:

# recompress with 400dpi resolution, save to a new file
./shrinkpdf.sh infile.pdf outfile.pdf 400

You can use this script out-of-the-box or you can get inspiration from the shrink function to write your own command fitting to your use.


I installed Ubuntu 13.04...but Windows is still on my computer

Wubi installs Ubuntu on your existing Windows partition. If you wish to totally get rid of windows, you will need to do a fresh installation using the standard installer (not Wubi) and set it to use the entire disk drive.


Is there a media center application that uses the native gui?

It seems Ubuntu TV will offer a media center that uses an interface based on Unity, which is as close as I think you will get to a media center that looks native. However, it's not available just yet, unless you want to try downloading and compiling the code yourself, but I have no idea how to go about doing that or making sure it works properly afterwards.


Maybe have you set up your home folder to be encrypted at the installation of ubuntu, I will suggest you to have a look at the following website for explanations about how to set up a password instead of a random key for swap encryption:
https://help.ubuntu.com/community/EnableHibernateWithEncryptedSwap#Explanation

But before following the explanations from there, I would suggest you to check up if your swap is encrypted, you can do that by typing the following in the terminal:

$    swapon --summary

You should see output similar to:

You should see output similar to:

         Filename                 Type         Size    Used    Priority

/dev/mapper/cryptswap1          partition    1998844    0       -1

If you do not see cryptswap1, the partition is either unencrypted or is not encrypted to Ubuntu's standard.


Unity Global Menu not working in Firefox 70 (latest beta)

Officially, non of Mozilla products support the global menu (https://bugzilla.mozilla.org/show_bug.cgi?id=1419151). The support of the global menu is in first place something that need to be supported by the toolkit and like Firefox have his own toolkit it need to be support that internally. So, how the support for the global menu in Firefox is not included by default, this is included then thanks to some externals developers. To be more specific, this was supported on Ubunt-Unity only because the Ubuntu developers merged a patch with the original source of Firefox. Also the same patch was apply in several linux distributions after that. You can find the original patch here: http://bazaar.launchpad.net/~mozillateam/firefox/firefox-trunk.head/view/head:/debian/patches/unity-menubar.patch

Now that the Ubuntu developers drop Unity in favour of gnome shell, we can assumed that they will drop also the support for all this type of patches. So, the new versions of Firefox in Ubuntu will probably have soon a not updated patch that really will NOT work with the new sources of Firefox and will be retired.

This is not just for Firefox, but it's for a lot of applications that already have not a global menu in an officially way. In this applications the global menu is supported only because some external developer to that applications created a patch for it and probably they was also some Ubuntu developers. See as an example: https://bugs.launchpad.net/ayatana-design/+bug/1131664 Also please note in particular the comment #61 of the previuslly link that confirms the direction of the Ubuntu developers about that.

In your case is probably worse because you are trying to run Firefox directly from an upstream source, but Firefox like a lot of officially GNOME applications have not upstream support for the global menu at all.


HP Pavilion 600 - can I change fn and f keys behavior?

Fn key behavior must be change directly inside the BIOS.

To access at BIOS, turn ON your computer and press immediately F10 key (you can spam the key, but it's as effective if you stay pressing F10 key until you see BIOS window) -> I say F10 key, but it could change in function of your computer

Go to System Configuration -> Action Key Mode

Switch off / Disabled this option to have F1 and others keys as primary (increase volume must be done with Fn + F3)

Source : HP documentation


Want To Add Proxy IP In Network Proxy Settings In Ubuntu 17.10

I would recommend using a VPN, if you do not want to configure it you can use a free vpn, like ProtonVPN whoose free servers vps works well.

https://account.protonvpn.com

Download the program and follow the instructions to configure it.
You only must to create an account and create a certificate in the web page.

Later import the vpn configuration in the vpn sections in ubuntu.


If there is already an EFI partition for windows, do I need to create a new EFI partition for Ubuntu?

No.

In fact, I created one (green arrow), and the installer ignored it, and used the existing Windows one (red arrow).


Share Files over the Network - What packages?

what worked for me was install Apache2. Just install a LAMP server (or just apache) --

sudo apt-get install apache2

Then it should work just fine.

In 16.04 the change is from

to


xsetwacom won't find Wacom tablet under 17.10 (but did with 17.04); multiple cursors, no touch control, etc

Tools based on X11 protocols for settings, such as xinput, xset, and xsetwacom will not work under Wayland, which is the default display system in 17.10. You will need to log out and select the Xorg session at the login screen, to be able to make use of such tools.

You should however, be able to configure these settings by going to Settings -> Devices -> Wacom Tablet, under Wayland.


From man find:

 -atime n
          File was last accessed n*24 hours ago.  When find  figures  out  how  many  24-hour
          periods ago the file was last accessed, any fractional part is ignored, so to match
          -atime +1, a file has to have been accessed at least two days ago.

 -mtime n
          File's  data  was  last  modified  n*24  hours ago.  See the comments for -atime to
          understand how rounding affects the interpretation of file modification times.

but see also:

  -daystart
          Measure  times  (for  -amin,  -atime,  -cmin,  -ctime,  -mmin, and -mtime) from the
          beginning of today rather than from 24 hours ago.  This option only  affects  tests
          which appear later on the command line.

In summary, use find -mtime +1 to find 2 day old files.


Our condolences for your loss.

Unfortunately, the purpose of encryption is to allow data access to only person(s) with the passphrase, and to deny data access to everybody else in the universe forever.

"Encryption" is not a sales term that merely means "strong-password". Encryption is the use of mathematics to scramble the data in such a way that only the passphrase can unscramble it. While it may be possible for one or more supercomputers to try to guess the passphrase, doing so may take a commercial data-recovery firm a considerable number of years and cost a correspondingly large amount.

There is no secret backdoor or bypass.

This is not an Ubuntu policy. We don't know their passphrase, so we don't have access either.

Sorry.


Create a directory for your username under /media/  and then a directory under that to mount you nfs share. Then add the nfs mount to /etc/fstab

eg:

 # mkdir -p /media/username/nfs_share
 # chown -R username: /media/username

and then add the following to /etc/fstab

server.local:/srv/nfs   /media/username/nfs_share   nfs    user,noauto    0   0

then restart gnome files (nautilus) and it should appear in 'other locations' as your what ever you called the mount point. in this case it would appear as 'nfs_share'

You may need to kill nautilus from the command line and then re-start it because it likes to background rather than exit when you close it.

pkill nautilus

Don't use the directory /media/username as the mount point because you may want other shares and udisks may want to mount something else in there at some point.


Technical Issue : replace names with " find "

There is an extra space between - and writable

So the correct command is:

find ./ -type f -readable -writable -exec sed -i "s/token/take/g" {} \;


How do I install the opus audio encoder?

The opus audio codecs are installed with the following packages:

libogg0 (>= 1.3.0)
libopus0
opus-tools

All these packages are already built ready to be available for Ubuntu 12.10 alpha and can be downloaded from the mirrors.

However be warned: if you downloaded these not yet fully tested packages and installed them manually in an earlier Ubuntu release you may break your sound system in case there are incompatibilites. This may especially be true for the Ogg library as the upgraded version replaces the previous installed older version.


Is there an easy way to determine what dependencies of dependencies I'll need to install for a custom server ISO?

Try with ...

 sudo apt-get install apt-rdepends

Example on "apache":

$ apt-rdepends apache2
Reading package lists... Done
Building dependency tree
Reading state information... Done
apache2
  Depends: apache2-bin (= 2.4.12-2ubuntu2)
  Depends: apache2-data (= 2.4.12-2ubuntu2)
  Depends: apache2-utils (>= 2.4)
  Depends: lsb-base
  Depends: mime-support
  Depends: perl
  Depends: procps
  PreDepends: dpkg (>= 1.17.14)
apache2-bin
  Depends: libapr1 (>= 1.5.0)
  Depends: libaprutil1 (>= 1.5.0)
  Depends: libaprutil1-dbd-freetds
  Depends: libaprutil1-dbd-mysql
  Depends: libaprutil1-dbd-odbc
  Depends: libaprutil1-dbd-pgsql
  Depends: libaprutil1-dbd-sqlite3
  Depends: libaprutil1-ldap
  Depends: libc6 (>= 2.14)
  Depends: libldap-2.4-2 (>= 2.4.7)
  Depends: liblua5.1-0
  Depends: libpcre3
  Depends: libssl1.0.0 (>= 1.0.2~beta3)
  Depends: libxml2 (>= 2.7.4)
  Depends: perl
  Depends: zlib1g (>= 1:1.1.4)
libapr1
  Depends: libc6 (>= 2.15)
  Depends: libuuid1 (>= 2.16)
libc6
  Depends: libgcc1
libgcc1
  Depends: gcc-5-base (= 5.2.1-22ubuntu2)
  Depends: libc6 (>= 2.14)
gcc-5-base
libuuid1
  Depends: libc6 (>= 2.4)
  Depends: passwd
passwd
  Depends: debianutils (>= 2.15.2)
  Depends: libaudit1 (>= 1:2.2.1)
  Depends: libc6 (>= 2.14)
  Depends: libpam-modules
  Depends: libpam0g (>= 0.99.7.1)
  Depends: libselinux1 (>= 1.32)
  Depends: libsemanage1 (>= 2.0.3)
debianutils
  Depends: sensible-utils
  PreDepends: libc6 (>= 2.15)
sensible-utils
libaudit1
  Depends: libaudit-common (>= 1:2.4.2-1ubuntu1)
  Depends: libc6 (>= 2.14)
libaudit-common
libpam-modules
  PreDepends: debconf (>= 0.5)
  PreDepends: debconf-2.0
  PreDepends: libaudit1 (>= 1:2.2.1)
  PreDepends: libc6 (>= 2.15)
  PreDepends: libdb5.3
  PreDepends: libpam-modules-bin (= 1.1.8-3.1ubuntu3)
  PreDepends: libpam0g (>= 1.1.3-2)
  PreDepends: libselinux1 (>= 2.1.9)
debconf
  PreDepends: perl-base (>= 5.6.1-4)
perl-base
  PreDepends: dpkg (>= 1.17.17)
  PreDepends: libc6 (>= 2.14)
dpkg
  PreDepends: libbz2-1.0
  PreDepends: libc6 (>= 2.14)
  PreDepends: liblzma5 (>= 5.1.1alpha+20120614)
  PreDepends: libselinux1 (>= 2.3)
  PreDepends: tar (>= 1.23)
  PreDepends: zlib1g (>= 1:1.1.4)
libbz2-1.0
  Depends: libc6 (>= 2.4)
liblzma5
  Depends: libc6 (>= 2.14)
  PreDepends: multiarch-support
multiarch-support
  Depends: libc6 (>= 2.3.6-2)
libselinux1
  Depends: libc6 (>= 2.14)
  Depends: libpcre3
libpcre3
  Depends: libc6 (>= 2.14)
  PreDepends: multiarch-support
tar
  PreDepends: libacl1 (>= 2.2.51-8)
  PreDepends: libc6 (>= 2.17)
  PreDepends: libselinux1 (>= 1.32)
libacl1
  Depends: libattr1 (>= 1:2.4.46-8)
  Depends: libc6 (>= 2.14)
  PreDepends: multiarch-support
libattr1
  Depends: libc6 (>= 2.4)
  PreDepends: multiarch-support
zlib1g
  Depends: libc6 (>= 2.14)
debconf-2.0
libdb5.3
  Depends: libc6 (>= 2.17)
libpam-modules-bin
  Depends: libaudit1 (>= 1:2.2.1)
  Depends: libc6 (>= 2.14)
  Depends: libpam0g (>= 0.99.7.1)
  Depends: libselinux1 (>= 1.32)
libpam0g
  Depends: debconf (>= 0.5)
  Depends: debconf-2.0
  Depends: libaudit1 (>= 1:2.2.1)
  Depends: libc6 (>= 2.14)
  PreDepends: multiarch-support
libsemanage1
  Depends: libaudit1 (>= 1:2.2.1)
  Depends: libbz2-1.0
  Depends: libc6 (>= 2.14)
  Depends: libselinux1 (>= 2.1.12)
  Depends: libsemanage-common (= 2.3-1build2)
  Depends: libsepol1 (>= 2.1.4)
  Depends: libustr-1.0-1 (>= 1.0.4)
libsemanage-common
libsepol1
  Depends: libc6 (>= 2.14)
  PreDepends: multiarch-support
libustr-1.0-1
  Depends: libc6 (>= 2.14)
libaprutil1
  Depends: libapr1 (>= 1.4.8-2~)
  Depends: libc6 (>= 2.14)
  Depends: libdb5.3
  Depends: libexpat1 (>= 2.0.1)
  Depends: libssl1.0.0 (>= 1.0.0)
  PreDepends: multiarch-support
libexpat1
  Depends: libc6 (>= 2.14)
libssl1.0.0
  Depends: debconf (>= 0.5)
  Depends: debconf-2.0
  Depends: libc6 (>= 2.14)
libaprutil1-dbd-freetds
libaprutil1-dbd-mysql
  Depends: libaprutil1 (= 1.5.4-1)
  Depends: libc6 (>= 2.4)
  Depends: libmysqlclient18 (>= 5.5.24+dfsg-1)
libmysqlclient18
  Depends: libc6 (>= 2.17)
  Depends: libstdc++6 (>= 4.1.1)
  Depends: mysql-common (>= 5.5)
  Depends: zlib1g (>= 1:1.1.4)
  PreDepends: multiarch-support
libstdc++6
  Depends: gcc-5-base (= 5.2.1-22ubuntu2)
  Depends: libc6 (>= 2.18)
  Depends: libgcc1 (>= 1:4.1.1)
mysql-common
libaprutil1-dbd-odbc
  Depends: libaprutil1 (= 1.5.4-1)
  Depends: libc6 (>= 2.14)
  Depends: libodbc1 (>= 2.3.1)
libodbc1
  Depends: libc6 (>= 2.14)
  Depends: libltdl7 (>= 2.4.2)
  PreDepends: multiarch-support
libltdl7
  Depends: libc6 (>= 2.14)
  PreDepends: multiarch-support
libaprutil1-dbd-pgsql
  Depends: libaprutil1 (= 1.5.4-1)
  Depends: libc6 (>= 2.14)
  Depends: libpq5
libpq5
  Depends: libc6 (>= 2.14)
  Depends: libgssapi-krb5-2 (>= 1.10+dfsg~)
  Depends: libldap-2.4-2 (>= 2.4.7)
  Depends: libssl1.0.0 (>= 1.0.0)
libgssapi-krb5-2
  Depends: libc6 (>= 2.14)
  Depends: libcomerr2 (>= 1.34)
  Depends: libk5crypto3 (>= 1.8+dfsg)
  Depends: libkrb5-3 (= 1.13.2+dfsg-2)
  Depends: libkrb5support0 (>= 1.13~alpha1+dfsg)
libcomerr2
  Depends: libc6 (>= 2.17)
  PreDepends: multiarch-support
libk5crypto3
  Depends: libc6 (>= 2.14)
  Depends: libkrb5support0 (>= 1.13~alpha1+dfsg)
libkrb5support0
  Depends: libc6 (>= 2.14)
libkrb5-3
  Depends: libc6 (>= 2.16)
  Depends: libcomerr2 (>= 1.34)
  Depends: libk5crypto3 (>= 1.9+dfsg~beta1)
  Depends: libkeyutils1 (>= 1.5.9)
  Depends: libkrb5support0 (= 1.13.2+dfsg-2)
libkeyutils1
  Depends: libc6 (>= 2.14)
  PreDepends: multiarch-support
libldap-2.4-2
  Depends: libc6 (>= 2.14)
  Depends: libgnutls-deb0-28 (>= 3.3.9)
  Depends: libgssapi3-heimdal (>= 1.4.0+git20110226)
  Depends: libsasl2-2
  PreDepends: multiarch-support
libgnutls-deb0-28
  Depends: libc6 (>= 2.17)
  Depends: libgmp10 (>= 2:6)
  Depends: libhogweed4
  Depends: libnettle6
  Depends: libp11-kit0 (>= 0.20.7)
  Depends: libtasn1-6 (>= 4.3-0)
  Depends: zlib1g (>= 1:1.1.4)
libgmp10
  Depends: libc6 (>= 2.14)
libhogweed4
  Depends: libc6 (>= 2.14)
  Depends: libgmp10 (>= 2:6.0.0)
  Depends: libnettle6 (= 3.1.1-4)
libnettle6
  Depends: libc6 (>= 2.14)
libp11-kit0
  Depends: libc6 (>= 2.16)
  Depends: libffi6 (>= 3.0.4)
libffi6
  Depends: libc6 (>= 2.14)
  PreDepends: multiarch-support
libtasn1-6
  Depends: libc6 (>= 2.14)
libgssapi3-heimdal
  Depends: libasn1-8-heimdal (>= 1.4.0+git20110226)
  Depends: libc6 (>= 2.14)
  Depends: libcomerr2 (>= 1.01)
  Depends: libhcrypto4-heimdal (>= 1.4.0+git20110226)
  Depends: libheimntlm0-heimdal (>= 1.4.0+git20110226)
  Depends: libkrb5-26-heimdal (>= 1.6~git20131117)
  Depends: libroken18-heimdal (>= 1.4.0+git20110226)
libasn1-8-heimdal
  Depends: libc6 (>= 2.14)
  Depends: libcomerr2 (>= 1.01)
  Depends: libroken18-heimdal (>= 1.4.0+git20110226)
libroken18-heimdal
  Depends: libc6 (>= 2.15)
libhcrypto4-heimdal
  Depends: libasn1-8-heimdal (>= 1.4.0+git20110226)
  Depends: libc6 (>= 2.14)
  Depends: libroken18-heimdal (>= 1.4.0+git20110226)
libheimntlm0-heimdal
  Depends: libc6 (>= 2.4)
  Depends: libhcrypto4-heimdal (>= 1.4.0+git20110226)
  Depends: libkrb5-26-heimdal (>= 1.4.0+git20110226)
  Depends: libroken18-heimdal (>= 1.4.0+git20110226)
libkrb5-26-heimdal
  Depends: libasn1-8-heimdal (>= 1.6~git20131117)
  Depends: libc6 (>= 2.15)
  Depends: libcomerr2 (>= 1.41.11)
  Depends: libhcrypto4-heimdal (>= 1.4.0+git20110226)
  Depends: libheimbase1-heimdal (>= 1.6~git20131117)
  Depends: libhx509-5-heimdal (>= 1.4.0+git20110226)
  Depends: libroken18-heimdal (>= 1.6~git20131117)
  Depends: libsqlite3-0 (>= 3.5.9)
  Depends: libwind0-heimdal (>= 1.6~git20120311)
libheimbase1-heimdal
  Depends: libc6 (>= 2.14)
libhx509-5-heimdal
  Depends: libasn1-8-heimdal (>= 1.4.0+git20110226)
  Depends: libc6 (>= 2.14)
  Depends: libcomerr2 (>= 1.34)
  Depends: libhcrypto4-heimdal (>= 1.4.0+git20110226)
  Depends: libheimbase1-heimdal (>= 1.6~git20131117)
  Depends: libroken18-heimdal (>= 1.4.0+git20110226)
  Depends: libwind0-heimdal (>= 1.4.0+git20110226)
libwind0-heimdal
  Depends: libc6 (>= 2.14)
  Depends: libcomerr2 (>= 1.01)
  Depends: libroken18-heimdal (>= 1.4.0+git20110226)
libsqlite3-0
  Depends: libc6 (>= 2.14)
libsasl2-2
  Depends: libc6 (>= 2.15)
  Depends: libsasl2-modules-db (>= 2.1.26.dfsg1-14)
libsasl2-modules-db
  Depends: libc6 (>= 2.14)
  Depends: libdb5.3
libaprutil1-dbd-sqlite3
  Depends: libaprutil1 (= 1.5.4-1)
  Depends: libc6 (>= 2.4)
  Depends: libsqlite3-0 (>= 3.5.9)
libaprutil1-ldap
  Depends: libaprutil1 (= 1.5.4-1)
  Depends: libc6 (>= 2.4)
  Depends: libldap-2.4-2 (>= 2.4.7)
liblua5.1-0
  Depends: libc6 (>= 2.14)
  Depends: libstdc++6 (>= 4.1.1)
libxml2
  Depends: libc6 (>= 2.15)
  Depends: libicu55 (>= 55.1-1~)
  Depends: zlib1g (>= 1:1.2.3.3)
libicu55
  Depends: libc6 (>= 2.14)
  Depends: libgcc1 (>= 1:4.1.1)
  Depends: libstdc++6 (>= 5.2)
perl
  Depends: libbz2-1.0
  Depends: libc6 (>= 2.14)
  Depends: libdb5.3
  Depends: libgdbm3 (>= 1.8.3)
  Depends: perl-base (= 5.20.2-6)
  Depends: perl-modules (>= 5.20.2-6)
  Depends: zlib1g (>= 1:1.2.2.3)
  PreDepends: dpkg (>= 1.17.17)
libgdbm3
  Depends: dpkg (>= 1.15.4)
  Depends: install-info
  Depends: libc6 (>= 2.14)
  PreDepends: multiarch-support
install-info
  Depends: libc6 (>= 2.14)
  PreDepends: dpkg (>= 1.16.1)
perl-modules
  Depends: perl-base (>= 5.20.2-1)
  PreDepends: dpkg (>= 1.17.17)
apache2-data
apache2-utils
  Depends: libapr1 (>= 1.4.8-2~)
  Depends: libaprutil1 (>= 1.5.0)
  Depends: libc6 (>= 2.14)
  Depends: libssl1.0.0 (>= 1.0.1)
lsb-base
mime-support
procps
  Depends: initscripts
  Depends: libc6 (>= 2.15)
  Depends: libncurses5 (>= 5.5-5~)
  Depends: libncursesw5 (>= 5.6+20070908)
  Depends: libprocps3
  Depends: libtinfo5
  Depends: lsb-base (>= 4.1+Debian11ubuntu7)
initscripts
  Depends: coreutils (>= 5.93)
  Depends: debianutils (>= 4)
  Depends: file-rc
  Depends: lsb-base (>= 3.2-14)
  Depends: mount (>= 2.11x-1)
  Depends: sysv-rc
  Depends: sysvinit-utils (>= 2.88dsf-50)
coreutils
  PreDepends: libacl1 (>= 2.2.51-8)
  PreDepends: libattr1 (>= 1:2.4.46-8)
  PreDepends: libc6 (>= 2.17)
  PreDepends: libselinux1 (>= 2.1.13)
file-rc
mount
  PreDepends: libblkid1 (>= 2.17.2)
  PreDepends: libc6 (>= 2.17)
  PreDepends: libmount1 (>= 2.25)
  PreDepends: libsmartcols1 (>= 2.25)
  PreDepends: libudev1 (>= 183)
libblkid1
  Depends: libc6 (>= 2.17)
  Depends: libuuid1 (>= 2.16)
libmount1
  Depends: libblkid1 (>= 2.17.2)
  Depends: libc6 (>= 2.17)
  Depends: libselinux1 (>= 1.32)
libsmartcols1
  Depends: libc6 (>= 2.17)
libudev1
  Depends: libc6 (>= 2.16)
sysv-rc
  Depends: debconf (>= 0.5)
  Depends: debconf-2.0
  Depends: insserv (>> 1.12.0-10)
  Depends: sysvinit-utils (>= 2.86.ds1-62)
insserv
  Depends: libc6 (>= 2.14)
sysvinit-utils
  Depends: libc6 (>= 2.14)
libncurses5
  Depends: libc6 (>= 2.15)
  Depends: libtinfo5 (= 5.9+20150516-2ubuntu1)
libtinfo5
  Depends: libc6 (>= 2.15)
libncursesw5
  Depends: libc6 (>= 2.15)
  Depends: libtinfo5 (= 5.9+20150516-2ubuntu1)
libprocps3
  Depends: libc6 (>= 2.14)
  PreDepends: multiarch-support
 ~$

and ... damn what a long list _O-


Is there an application that wraps a website in itself?

HTTrack

HTTrack is a web-based program that allows users to copy any website to your local hard drive for offline browsing. Nothing complicated with this website copier due to its plain web interface, you insert some few details about the website to download and let HTTrack do the rest, which will copy every page on the website, images, backgrounds, and every file hosted on that server with support of resuming interrupted downloads or updating existing mirrored websites.

The latest version of HTTrack is 3.46-1 which hasn't yet landed in the official Ubuntu repository (only for Quantal currently), but you can install it from our custom PPA as described below for Ubuntu 12.04/11.10/11.04. This version brings better unicode filenames handling and many bug fixes.

How to Install
Run this in the terminal (CTRL-ALT-T)

sudo add-apt-repository ppa:upubuntu-com/web
sudo apt-get update
sudo apt-get install webhttrack httrack

To browse copied websites, you can check them in the "websites" directory located on your home.

For more information on httrack, visit their home page.

Source


How do I create a PPA for private use only, not for sharing through the community.?

To my knowledge that isn't the purpose of PPAs as provided by Canonical/Ubuntu.

  Using a Personal Package Archive (PPA), you can distribute software
  and updates directly to Ubuntu users. Create your source package,
  upload it and Launchpad will build binaries and then host them in your
  own apt repository.

https://help.launchpad.net/Packaging/PPA#keys?action=show&redirect=PPAKeys

There is a NOTE

  Note: CommercialHosting allow you to have private PPAs.

ie. you can have private PPAs on your own paid for infrastructure, but the Ubuntu infrastructure which is about sharing and open-source, doesn't provide private PPAs as you I believe are wanting.


Luckily, it's exactly the same as 12.04.  You shouldn't have too much trouble:

Try following the directions on the community documentation and execute sudo add-apt-repository ppa:n-muench/burg.  Note that if it isn't giving you any packages to download, you might need to change the APT line from Software Sources to ask for an older version (lucid will probably do it).

EDIT: If you really want to get into it and/or have problems with finding the right PPA/.deb's to get it from, that page also has instructions for compiling it from source.


I found this on launchpad and it answered my question. Thanks for the hilp.

I am not completely sure where these files are coming from, but http://www.aypcservices.com/?p=5525 (middle part of the page) indicates that they might be reconstructed picture files from the PhotoRec program (part of the testdisk package).

It seems they have been created in a way that they are owend by 'root', and you do not have access rights to look at them. To overcome that restriction you can do the following:

Open a terminal (Applications -> Accessories -> Terminal, or press ALT+F2, or press Ctrl+Alt+T) and in the window that opens enter "gksudo nautilus" (without the quotes). This will ask for your password and open a new file browser window with access rights as if logged in as root.

Now you should be able to browse all files.

Please use extreme caution when using this technique, because in that window the restrictions imposed on a 'normal user' (like: no rights to delete important system files) are temporarily overridden.


I got it working thanks to this:

$ sudo apt-get install gphoto2 v4l2loopback-utils ffmpeg
$ sudo modprobe v4l2loopback exclusive_caps=1 max_buffers=2
(some advice there as how to make this more automatic)

Then some running process needs to get killed:

$ ps aux|grep gphoto
$ kill <the PID for the process gvfsd-gphoto2, or something like that>

And running this in the background:

$ gphoto2 --stdout --capture-movie | ffmpeg -i - -vcodec rawvideo -pix_fmt yuv420p -threads 0 -f v4l2 /dev/video

All this makes the /dev/video0 appear, and work as a video input. Although right now, I'm getting poor fps.


Nvidia drivers making unity not working fine

I found out that after installing nvidia-current there is a new pilot in the Additional Drivers section of the system settings. Activating this new pilot fixed everything!

Hope it works if it happens to someone else.


Fresh Install Ubuntu 20.04 Gnome-Clock / Calendar Corruption

Let's call this a "semi-answer".
It appears that gnome-calendar does not like iCalendars imported via thunderbid/lightning (68.0).
Instead, I directly imported the icalendar (url) via the gnome-calendar app and now everything seems to work flawlessly. No duplicate entries, so slow desktop boot, etc.. Just a perfectly functioning fresh install of 20.04


Printing document on windows7 from printer which is connected to Ubuntu (via RDP on Ubuntu)

For those wanting to support a local printer connected to their Linux system via RDP (Remote Desktop) connecting to a Windows server, here is a quick how-to.
First look up the Printer Name on your Linux box, it is best if it is a single word and under 20 characters. You can typically find this by opening a document, selecting Print and it should be the name in the drop down.

Next you will have a script that call rdesktop like so:
    rdesktop -r printer:="WINDOWS DRIVER NAME AS IT APPEARS IN ADD PRINTER"
    Run the rdesktop script and login
    Go to Printers and Faxes
    Right-click on the Printer that matches your Linux printer's name and choose Properties
    Print a test page!

source


How can I safely purge the archival contents of /var/log and how do I change log retention policies?

Start by examining the log and find what is filling it up. Then fix that issue.

ALL log files in /var/log/ that end in .gz are old compressed log files and can be deleted with

sudo rm -rf *.gz

That will leave the current logs intact. Those SHOULD end in .log.  If a log ending on a digit gets lines added (where it should add them to *.log  you will need to examine the software that adds to this log. There will be a mistake in one of the configuration files.

Make sure the permissions to *.log are correct. That could also be an issue.

syslog should be -rw-r----- 1 root adm
mysql.log should be -rw-r----- 1 mysql     adm
apache2 is a directory and should be drwxr-x--- 2 root      adm
The 2 files in there should be -rw-r----- 1 root adm

If you need to empty ACTIVE log files do not use rm but use > /var/log/{logfile}. That will keep the permissions of the file, empty it and keep the file on disk present.


As @Rob already mentioned, you can only do this if you have write access to the directory containing the file. Attempting to do the same thing to a file in, for example, /etc will fail.

As for how vim is doing this, it deletes the file and recreates it. To test this, I created a file owned by root:

echo foo | sudo tee fff

And then proceeded to edit the file with vim in the way that you describe, but attaching the process to strace to see what's happening:

strace vim fff 2> strace.out

I then checked strace.out and found:

unlink("fff")                           = 0
open("fff", O_WRONLY|O_CREAT|O_TRUNC, 0644) = 4
write(4, "foasdasdao\n", 11)            = 11

So, the file was first deleted (unlink("fff")), then a new file of the same name was created (open("fff", O_WRONLY|O_CREAT|O_TRUNC, 0644)) and the modifications I had made were written to it (write(4, "foasdasdao\n", 11)). If you try this at home, you will see that after you edit it with vim, the file will now belong to you and not root.

So, strictly speaking, vim isn't editing a file you have no write access to. It is deleting a file from a directory to which you do have write access and then creating a new file to which, again, you have write access.


Can't boot windows 7 after reininstalling ubuntu 14.04

According to the boot-repair log, it appears that your Windows partitions had been removed, probably when you reinstalled Ubuntu.

At this point, there's not much hope for your data, but there are a few options you can try, if you're using a HDD. Your chances decrease the more you write to the disk (e.g. booting up Ubuntu), so shut down your computer immediately and don't write to or boot from the HDD. You're probably also out of luck if you're using a SSD.

You might be able to retrieve some data using testdisk, or going to a data recovery service if you can afford it. In the future, make sure you keep backups, especially for important data. (The 3-2-1 rule is a good rule to go by: 3 copies, 2 different media, 1 offsite)


How to recover a deleted /usr partition?

Not really.  As an exercise question in a job interview, maybe; as a practical thing, no - easiest thing to do is just back up any data you had and do a clean reinstall.  (And don't delete system32 - er, I mean /usr - again.)


How to make wifi (rt3090) work on ubuntu raring?

Please be sure the hardware switch is set to enable the wireless radio. Also detach the ethernet cable so that Network Manager will activate the wireless.


PC very slow with any graphics acceleration

I don't think you have a driver issue. Your problem is that you're trying to run Kubuntu, which has the highest sytems requirements of any *buntu edition, on a computer that has only an Intel Atom processor. For a normal performance on a computer with an Intel Atom processor, you should use a more lightweight *buntu edition like Xubuntu 32-bit or Lubuntu 32-bit. Xubuntu 32-bit should run fine on your computer. Lubuntu 32-bit is even more lightweight, similar in its systems requirements to Windows XP.

If you don't mind waiting until the official Ubuntu MATE 15.04 is released this April, then I will switch gears and recommend Ubuntu MATE 15.04 instead of Xubuntu because it has better default apps for what you are doing including Firefox, Thunderbird, LibreOffice, VLC, Rhythmbox and the Ubuntu Software Center. Lubuntu 15.04, Xubuntu 15.04 and Ubuntu MATE 15.04 all have similar minimum systems requirements.


What software is available to use TV tuner card?

You're requesting to watch TV with VLC - well it is possible. See this answer.

TV with VLC

Else some illustrations of the other applications:

TV with Me-TV

TV with Kaffeine


Your syntax is wrong here. Because you're sending the output from the mysqldump command to database.sql, there's no output left to be piped through to gzip. Just remove that bit, so you're only creating the gzipped file: /usr/bin/mysqldump --opt -u root -ppassword database | gzip > database.sql.gz

If you really want to create compressed and uncompressed versions, you'll either need to run two separate commands: /usr/bin/mysqldump --opt -u root -ppassword database > database.sql ; cat database.sql | gzip > database.sql.gz

or use tee to split the output: /usr/bin/mysqldump --opt -u root -ppassword database | tee database.sql | gzip > database.sql.gz


Streamline use of IPA notation in Libreoffice

To type in IPA, switch to an IPA keyboard layout.  It is much faster than hunting through the Character Map.  I use SIL's keyboard software, available for Windows, Mac and Linux.

For Ubuntu instructions, see How to configure keyboard to type in IPA fonts?.

Edit by OP:

Here is how to set up IPA Keyboard for Ubuntu 16.04:

Download the SIL package as a .deb file from packages.sil.org & install with GDebi or

sudo dpkg -i sil-repository.deb
sudo apt install ibus-kmfl
sudo apt install kmfl-keyboard-ipa

I got the right keyboard package by guessing the name, as I couldn't find a reference list anywhere on the SIL pages

Then in Settings > Keyboard > Text Entry

Under Input Sources click the + button to add a source and search for 'ipa', and it should come up. Click to add it.

Switch between input sources with Super+Space (this can be changed in Keyboard Settings)

You will need this chart to figure out how to actually enter the IPA characters!


How to get rid of Google chrome secret audio recorder?

I am not working for Google nor did I looked at the chromium code. I do not believe that Google is recording your room and store what it records but looks for a signal in the recorded stream that sounds similar to "OK, Google" (-> voice search).

There is a setting in Chrome with that you can turn off the voice search
(at least that is what they try to tell us here):

Open chrome and enter "chrome://settings"
Scroll down to the "Search" section
Delete the check-box labeled "Enable "OK Google" to start a voice search"

But as always with proprietary code, you'll never know what is happening in reality...


Does a keyfile always have to be mounted?

No. The key only has to be mounted at boot. After mounting the encrypted drive, the usb stick can be removed from the device.


how to check if an external folder is mounted

what's the mount method you use?
me, I have declared a webdav server in /etc/fstab, so for checking if it's mounted I have to read /etc/mtab

(some documentation here:

https://en.wikipedia.org/wiki/Fstab

https://en.wikipedia.org/wiki/Mtab)

in a script it could be like this, (my server is called owncloud):

#!/bin/bash
ismounted=$(cat /etc/mtab | grep owncloud )
if [ -z "${ismounted}" ]; then
    echo "not mounted!!"
    mount "owncloud"
else

    echo "server mounted!"
fi

what I do is check if I found some entry about my server in mtab, and if it's entry is empty simply mount it. (I've added the echo commands for more info)

You can execute this script automatically every x minutes/Seconds, etc. or at startup using a daemon, as cronnie.

I've found other people who use differents methods as seen here https://unix.stackexchange.com/questions/38870/how-to-check-if-a-filesystem-is-mounted-with-a-script

hope it helps.
cheers!


Ubuntu Issues on HP Pavilion Slimline s3713w

Try 13.10 I am currently having this same issue. Also try installing the graphics card version as is on the nvidia website.

My HP Pavilion is a laptop mind you


Wireless connection lost after few minutes

I am not sure if this will fix your issue or not, but disabling IPv6 and changing the channel on your router may help. In the log, it says at the bottom that it keeps timing out. It also says it's configuring IPV6 around that time.

Further up on that log it says that channel 6 has 15 APs on it. You might consider using something less common, channel 4 looks good. Here is the relevant part...

Channel occupancy:

  8   APs on   Frequency:2.412 GHz (Channel 1)
  1   APs on   Frequency:2.417 GHz (Channel 2)
  15   APs on   Frequency:2.437 GHz (Channel 6)
  3   APs on   Frequency:2.447 GHz (Channel 8)
  1   APs on   Frequency:2.457 GHz (Channel 10)
  7   APs on   Frequency:2.462 GHz (Channel 11)


How can I get a file's UbuntuOne URL from the terminal?

You can use the u1sdtool command line tool to interact with ubuntuone-syncdaemon from a script. The --publish-file and --info options should let you do what you need to do. You'll have to wait until the file is actually "published" before --info will include the URL to the public file, though.


Download and install VLC player with one of the options provided here: http://www.videolan.org/vlc/download-ubuntu.html

Then run it by executing this command in Terminal:

vlc

Then once the program is open go "Media > Convert / Save...":

And in this interface which comes up click the "Add" button and locate the MP4 file which you wish to convert:

Then select the "Convert / Save" option at the bottom which now becomes enabled (not greyed out). Next select the profile "Video - H.264 + MP3 (MP4)" and then click on the little tool icon next to the pull-down menu and make sure that the option "MKV" is selected and not the default "MP4/MOV" like this:

Then click the "Save" button at the bottom left. Then select the destination to where you want VLC player to export the file to and press "Start". Ignore any errors telling you about encoding problems. The progress bar which normally shows how far into the program you are will now show the progress of the conversion. When the progress bar has finished, your video will have been converted and ready to play.


You should also have gotten another error which is perhaps more informative:

/home/terdon/scripts/b.sh: line 49: warning: here-document at line 21 delimited by end-of-file (wanted `EOF')
/home/terdon/scripts/b.sh: line 50: syntax error: unexpected end of file

Your error is that you have spaces before the string that ends the heredoc. To take a simple example, this complains:
#!/bin/bash

cat << EOF
   hello
   EOF

But this doesn't:
#!/bin/bash

cat << EOF
   hello
EOF


authconfig is not packaged with Ubuntu 14.04. You can use SSSD (System Security Services Daemon (SSSD) instead. I found this useful.


Weird screen settings on docking station

In my "Displays" menu (12.04) there is a checkbox "Mirror displays". If you uncheck it you can choose individual resolutions for each display. If you want to mirror the display both have to have the same resolution. Don't know how to get it higher. Hope this helps.


When will globalmenu start to work with gnome-shell?

See this post on how to build and install gnome-globalmenu extension: http://www.webupd8.org/2011/09/get-global-menu-in-gnome-shell.html.


Kubuntu system updates, terminal vs software center

apt-get and Software center are just different front-ends for the same procedure. There are even more options like aptitude or Synaptic.

  If that is the case, is it safe enough to only use the terminal and ignore the software center just for system updates?

Yes, after you upgrade your packages using the terminal, the Software center should stop offering to update until new updates arrive.

  I mixed and matched updating my system from the terminal and the software center and it caused multiple issues with my drivers, my system performance, and a few applications.

You must have some other problem in your packages management system like mixing packages from different releases or even distros. You can start a new question about that but please be more specific (which drivers? which applications? how the system performance was affected?) and perhaps provide the contents of your /etc/apt/sources.list file and the contents of the /etc/apt/sources.list.d directory (if any).

  Also, should I be doing sudo apt-get dist-upgrade before sudo apt-get upgrade, or does it even matter?

No, dist-upgrade is stronger than upgrade, you can read it in man apt-get (emphases mine):

  dist-upgrade
     In addition to performing the function of upgrade, this option also intelligently handles changing dependencies with new versions of packages; (…) The dist-upgrade command may therefore remove some packages.

So you can use dist-upgrade if you are not worried about removing packages (and carefully check the list of packages to be removed before proceeding). There is also no reason to issue upgrade after dist-upgrade, since it’s contained already.

  I remember the basic Linux update commands as:

sudo apt-get update
sudo apt-get upgrade
sudo apt-get dist-upgrade

By the way, not all Linux distros use these commands, they are specific to Debian and its derivatives (including Ubuntu and the derivatives of it), other Linux distros can use yum, pacman and maybe others.


I need to preface this by saying I'm also new to Linux, but I've got it working I think. The instructions you and I tried to follow aren't brilliantly written and are a bit out of date. I took all of the security settings off my device before trying this so you may want to do the same, e.g/ No password or passcode.

Start by getting all of the required applications and packages.

 sudo apt-get install ideviceinstaller python-imobiledevice libimobiledevice-utils libimobiledevice6 libplist3 python-plist ifuse

Connect your device and test that it's being recognised using idevice.

ideviceinfo

Pair your device using idevicepair.

idevicepair pair

Validate the pairing using idevicepair

idevicepair validate

Create the mount point for your device, my device was an iPod Touch.

sudo mkdir /media/iPod-touch # you may need to use UniqueDeviceID instead of iPod-touch

Give all users access to the mount point.

sudo chmod 777 /media/iPod-touch

Mount the device using the newly created mount point.

ifuse /media/iPod-touch/

Now you should be able to access your device from your file manager!


The setenv command is not found when trying to run a shell script. How do I fix this?

This happens because the line

#!/bin/csh -f

is not the very first line in your script file. If it is the first line, then please post the exact error message that is being printed in terminal when you execute the script.

Please verify also that csh/tcsh is actually installed. You can do this by typing the following into terminal:

dpkg -l | grep csh

If this command produces no output at all, then you can install tcsh by entering following command:

sudo apt-get install tcsh


How to Dual Boot Windows 7 and Ubuntu 12.10?

You can find out the steps in the Ubuntu Documentation site. It has the steps to follow, along with some extra information you should keep in mind; for instance, it is a lot better to install Windows first, then Ubuntu.

Also, if you need to resize your Windows partition, make sure to defragment the drive in Windows first -- this will improve your results. You may also want to resize your Windows partition using Windows first. You can find more about that in this How To Geek article.


The problem is with APACHE user permissions.
You can either give sudo permissions to your script which is not the best idea, security-wise.
Or use ssh2_connect to connect to your server with ssh and run only useradd as root.

$connection = ssh2_connect('localhost', 22);
if (ssh2_auth_password($connection, 'root', '')) {
    $username = 'username';
    $password = 'password';
    ssh2_exec($connection, "useradd $username -m -p $password -d /home/$username/ -s /bin/false");
} else {
    die('Authentication Failed...');
}

See ssh2_connect and ssh2_auth_password docs.


How to disable screen power saving in GDM3 login screen?

This default setting (suspend at login) affects me in Pop!os 20.04. When away from home I want to login to my home PC, and it is set to boot at 6am. But that's no use when it suspends :)
This is an easy fix:
From: https://bugs.debian.org/cgi-bin/bugreport.cgi?bug=893964#22

It's 20 minutes, and is a result of the defaults in
gnome-settings-daemon
3.28 changing to comply with European and American power-saving regulations.

there appears to be no way of switching the GDM suspend behaviour off

There's currently no UI for it, but if you append this to
/etc/gdm3/greeter.dconf-defaults:

# Automatic suspend
# =================
[org/gnome/settings-daemon/plugins/power]
# - Time inactive in seconds before suspending with AC power
#   1200=20 minutes, 0=never
sleep-inactive-ac-timeout=0
# - What to do after sleep-inactive-ac-timeout
#   'blank', 'suspend', 'shutdown', 'hibernate', 'interactive' or 'nothing'
sleep-inactive-ac-type='nothing'
# - As above but when on battery
# sleep-inactive-battery-timeout=1200
# sleep-inactive-battery-type='suspend'

then reboot (or run "service gdm3 reload" as root), that should put
the GDM session back to the pre-3.28 behaviour. The values are in
seconds, with 0 meaning never; please adjust as needed.


Creating a USB media using UNetbootin isn't recognized as booting media

Unetbootin does not create the Ubuntu installation media properly.
Use the Disks tool (gnome-disk-utility) to create the USB media.

Open Disks, select Restore Disk Image from the menu on the top right.
Choose the ISO file and the USB drive to write it to and start restoring.

When you want to create the installation media from within Windows,
boot Windows, open command prompt as administrator and execute :

diskpart
list disk
select disk *
clean
create partition primary
active
format fs=fat32 quick
assign letter=**

Note : * = number of USB drive | ** = select a free drive letter
Now mount the ISO file and copy the content to the USB disk.


Nginx downloads file, not displaying the content

nginx determines the content type from the extension. If the file has no extension, it will use the default_type.

You can explicitly set the content type of this file by handling it within its own location block:

location = /validation-file {
    types {}
    default_type text/html;
}

Set default_type to whatever the file contains, e.g. text/html or text/plain, etc.

See this document for more.


determine if udp socket can be accessed via external client

How are you?

Do you try with netstat?

There is a lot of way to see if your port is open, may be this can help you:

sudo netstat -lp --inet

Its important sudo mode. This will list all your open port, and must appear. Another way to do same is:

sudo netstat -plut

Try it, and tell me.

Take Care.


Which IP addresses do I enter in /etc/network/interfaces?

192.168.x.x is a private network address. It appears that your "web server" is behind a NAT router which has an internal address of 192.168.1.254 and an external one with 212.195.x.x.

If you would like to expose this host to the Internet, log in to the router administration interface and forward TCP port 80 to 192.168.1.67. You do not need to add the external address to /etc/network/interfaces.

By the way, there is no such directive as network in the interfaces(5) manpage and using a broadcast domain of 192.168.0.x while you are in the 192.168.1.x network does not make sense. Try this instead:

# This file describes the network interfaces available on your system
# and how to activate them. For more information, see interfaces(5).

# The loopback network interface
auto lo
iface lo inet loopback

# The primary network interface
auto eth0
iface eth0 inet static
        address 192.168.1.67
        netmask 255.255.255.0
        gateway 192.168.1.254

Then let /etc/resolv.conf contain:

nameserver 212.195.70.9
nameserver 212.195.70.10


Installed Ubuntu upgrade 12.04 and USB external speakers won't work.

UPDATE:
A less then helpful answer but I have found that after shutting down and rebooting, selecting the audioengine in Sound Settings switches the output and the device is working properly.

Try rebooting with the device plugged in.

I have a similar problem with a usb wireless audio device (Audioengine AW1).

The device is recognized in the Sound Settings but clicking on it does not redirect the signal. It still comes through the default speaker (or headphone).

The device worked fine in 11.10.  I've upgraded 'over the air' to 12.04

aplay -l

 List of PLAYBACK Hardware Devices **

card 0: Intel [HDA Intel], device 0: ALC262 Analog [ALC262 Analog]

Subdevices: 1/1

Subdevice #0: subdevice #0

card 1: AW1 [Audioengine AW1], device 0: USB Audio [USB Audio]

Subdevices: 1/1

Subdevice #0: subdevice #0

lsusb (with Audioengine device):

Bus 001 Device 001: ID 1d6b:0002 Linux Foundation 2.0 root hub

Bus 002 Device 001: ID 1d6b:0001 Linux Foundation 1.1 root hub

Bus 003 Device 001: ID 1d6b:0001 Linux Foundation 1.1 root hub

Bus 004 Device 001: ID 1d6b:0001 Linux Foundation 1.1 root hub

Bus 003 Device 004: ID 046d:c05a Logitech, Inc. Optical Mouse M90

Bus 002 Device 004: ID 08bb:2704 Texas Instruments Japan

lsusb (without Audioengine device):

Bus 001 Device 001: ID 1d6b:0002 Linux Foundation 2.0 root hub

Bus 002 Device 001: ID 1d6b:0001 Linux Foundation 1.1 root hub

Bus 003 Device 001: ID 1d6b:0001 Linux Foundation 1.1 root hub

Bus 004 Device 001: ID 1d6b:0001 Linux Foundation 1.1 root hub

Bus 003 Device 004: ID 046d:c05a Logitech, Inc. Optical Mouse M90


Hawaii (r9 390 with 4gb memory) shows only 3072mb. why?

i found solution for my problem using set values in script before running the application:

this is the solution 1 instead of 0

export GPU_FORCE_64BIT_PTR=1

export GPU_MAX_HEAP_SIZE=100
export GPU_USE_SYNC_OBJECTS=1
export GPU_MAX_ALLOC_PERCENT=100
export GPU_SINGLE_ALLOC_PERCENT=100
./ethdcrminer64 -epool eth-asia1.nanopool.org:9999 -ewal ....


If you edited your /etc/network/interfaces file and want to return to a default Server config, try this:

# This file describes the network interfaces available on your system
# and how to activate them. For more information, see interfaces(5).

# The loopback network interface
auto lo eth0
iface lo inet loopback

# The primary network interface
iface eth0 inet dhcp

This assumes that you are getting an IP address from DHCP on the eth0 (primary) Ethernet interface.


I think the easiest way to achieve this is to check your /etc/fstab and change the options for the NTFS partition to be mounted read-only.

In a running system you can do this temporarily with mount -o remount,ro /path/to/ntfs.


Instead of:

convert name*.jpg -resize 2000x1500 new_name*.jpg

The following worked for me: (loop on every jpg image in the given folder):

for file in *.jpg
do
    convert "$file" -resize 2000x1500 "new-$file"
done


How can I install ASIO4ALL on Ubuntu 14.04?

A forum from a Google search had this post:

Linux already has a low latency kernel, so no need for Asio4All... Check planet ccrma to get the updated kernel if needed (RPM).. and as posted before, Jack is needed.. as an aside, check out Ardour or Audacity

And also this:

What you are looking for is wineasio. This allows Windows programs to see the jack server as an asio device.
I was able to run Ableton Live 7, Reaper and all my vst(i) plugins almost flawlessly.
But i have more xruns than with asio4all on Windows when using softsynths at the same latency (256p/f => 10ms). I believe this has more to do with wine task scheduling, as it seems highly related to gui interaction.

So I advise you either use the source forge project, or use another program, like audacity, rather than Ableton.
Source


Fan is loud but CPU and temperature is low

If there is no overheating, then you might want to clear all the dust out of your machine, because if the fan is really dusty, it can get somewhat noisy too.

You'll also want to try lubricating your fans.  This should help get your fan running faster and quieter.  If all else fails, you may need to replace the fan entirely.


The Python http.server is more of a "makeshift" web server compared to something like Nginx or Apache. But if this is what you're looking for you should be able to run the command below, replacing the URL with yours, and the URL should point towards your Python http.server.
Note that your Python http.server must still be running for it to be accessable. So either run it in another terminal tab/window or background it by putting the & at the end of the command before running pagekite.
python2 pagekite.py 8080 <replaceME>.pagekite.me


Nautilus launcher icon no longer contains Places and Bookmarks on right-click (14.04.02)

Nautilus is represented by multiple .desktop files in /usr/share/applications. Most likely, your current "new" icon is the nautilus-folder-handler.desktop -file.
The one you need is nautilus.desktop.
What to do

Just navigate to the directory /usr/share/applications
Look for the file nautilus.desktop
Drag the file to the launcher
Log out and back in

No need to say that you need to unpin the wrong nautilus icon...


Disable 'ESC' and 'Shift + Tab' history shortcuts in terminal

I was going into some "vi-mode" in the terminal because of a line in my .bashrc file: set -o vi. Removing this line solved my problem.


Ubuntu fonts are corrupted on certain windows

This command doesn't update your applications. It only updates the list of packages ("list of applications"). Use this to update your applications:

sudo apt-get update && sudo apt-get upgrade

To hopefully solve your actual problem, go to System Settings → Universal Access and make sure "Large Text" is off (should be default).

Then run this command:

sudo apt-get install unity-tweak-tool

When it's finished, open unity tweak tool and click "fonts". Choose smaller text sizes.


Edit the  ~/.subversion/config with gedit or nano ,  and add the following

[auth]
password-stores =

then save and try again. All the best.

credit


How to downgrade to nautilus 3.14 from nautilus 3.18

I'm on Ubuntu 16.04:

and I just received updates yesterday but Nautilus version is still:

From what I've read it's difficult to run a different version of Nautilus with a specific Ubuntu version, they are tightly married.


serial redirect from 12.04 server usb installer

Old question, but this might be useful to others...

I've been attempting something similar, and ended up using the net-based installer, rather than the full iso. This is trivial to modify for later releases, just change the two URLs...

Basically, grab a USB thumb drive with a single (bootable) FAT partition, then prepare it on a working ubuntu box:

apt-get install syslinux
syslinux /dev/disk/by-id/usb-...-part1
mount /dev/disk/by-id/usb-....-part1 /mnt
cd /mnt
wget http://archive.ubuntu.com/ubuntu/dists/trusty/main/installer-amd64/current/images/netboot/ubuntu-installer/amd64/initrd.gz
wget http://archive.ubuntu.com/ubuntu/dists/trusty/main/installer-amd64/current/images/netboot/ubuntu-installer/amd64/linux
cat <<EOT > syslinux.cfg
CONSOLE 0
SERIAL 0 115200 0
default linux
append initrd=initrd.gz console=ttyS0,115200n8
EOT
umount /mnt

Taken from:

https://help.ubuntu.com/14.04/installation-guide/i386/ch04s03.html#usb-copy-flexible
http://www.pcengines.info/forums/?page=post&id=E25612E9-84F0-4DCF-A876-1E92FD1D065C


Change password on root user and user account

To do it using command line:

To change the root password:

sudo passwd

To change your user password:

passwd

To change other users password:

sudo passwd USERNAME

To do it GUI open the application User Accounts from the Dash and there you can change password easily for all users unless the root


Try booting from a USB install medium, which you will have to prepare on another PC, yours or someone else's. At the graphics desktop, copy your data to a backup USB stick or USB hard disk drive (HDD), or any other action that backs up your data.

The quickest way to restore a working Ubuntu 16.04 may be to re-install from scratch. When you do this, consider making a separate partition for your data, such that your data and operating system (OS) are logically separated.

Alternatively, if you are lucky, at a terminal you can resume the update with this command, as root: apt-get dist-upgrade
which should resume a broken update. Get to the root terminal from the grub menu option Advanced options for Ubuntu, and then select Ubuntu…(recovery mode). Then wait whilst the kernel boots and a menu is presented. Select root to get a root terminal (alternatively select dpkg, and follow the prompts). Get to grub by holding down the SHIFT key as the machine boots.

Sometimes apt-get dist-upgrade will need to be followed by:

apt-get -f install

apt-get dist-upgrade
which couplet may need to be repeated.

For future reference, install synaptic and use that to update. It's much easier to see what's going on!


Upgrade from 11.04 to 11.10 - My User Do not load

From what I can gather I would check to see if your PATHs have been corrupted somehow. It's possible that GDM or gnome-session are not within the paths of the users for some odd reason. I've noticed that Ubuntu has a strange way of randomly taking PATHs out of most configuration files whenever you change things.

Check what you get on: echo "$PATH"

It's one of the gotchas that's plagued me even without an upgrade.


See https://en.wikipedia.org/wiki/Ubuntu_Touch

Ubuntu Touch (also known as Ubuntu Phone) is a mobile version of the Ubuntu operating system that was originally developed by Canonical Ltd. and is now being developed by the UBports community.

and https://ubports.com/

Find out how to install our latest version of the Ubuntu Touch operating system on your mobile device.


How to install Ubuntu 12.04 to EEE PC 1225B?

My 1225B was delivered with win7 preinstalled. Windows 7 did not boot via UEFI so to be able to install ubuntu side-by-side with the existing os I forced ubuntu into installing in legacy (non uefi) mode. Grub seem to detect that the computer supports uefi but does not understand why the efi partition is missing. (because uefi it is not used)

The easiest way to install without using uefi is to remove the efi folder from the installation medium. It works on both ubuntu and windows 7.


The answer to your question is posted by yourself:

The apache2 configtest failed. Output of config test was: apache2: Syntax error on line 222 of /etc/apache2/apache2.conf: Could not open configuration file /etc/phpadmin/apache.conf: No such file or directory Action 'configtest' failed.

In particular:

error on line 222 of /etc/apache2/apache2.conf

If you go on that line you will notice that it is looking for:

/etc/phpadmin/apache.conf

And as Redfeather suggested in his reply, such file doesn't exist.

I am not really sure what exactly you are trying to do with your tablet and android, beside the mysterious plan the solution to your problem is to open:

/etc/apache2/apache2.conf

And then go to line 222 and comment out the line with "#" then restart apache. Or alternatively create the file that it is looking for.

Basic steps about how to edit and comment out offending line:

From the command line perform (as root user):

vi /etc/apache2/apache2.conf

You are basically opening a file with "vi" editor. Once you are in the editor type ":222" (without quotes).

This will take you to the line number 222.

Once you are in the desired line just type "i#" (without quotes, make sure you add # at the beginning of the line) and then "ESC" key from your keyboard followed by ":wq" (without quotes) and then restart your apache

If you don't have enough knowledge on setting up apache you better start to have some readings because you will have lots of other troubles and honestly it is not the best thing to ask on forums where anything comes up during any stage of set-up. Simply because there are thousands of How-To's.

here for your convenience have some reading to increase your knowledge:

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

PS: I am wondering how you set it up an apache server without even knowing how to edit a file using a simple editor?

Good luck!!!


As Marc already mentioned, this mechanism should slow down automated password guesses.

Linux normally uses pam_unix as module to check passwords of local users. The default of this (and many other authentication modules) is to

  [...] request a delay-on-failure of the order of two second.

as described in the man page of pam_unix (see parameter nodelay)

Consequently, an attacker is considerably slowed down (no more than 30 guesses per minute). Some implementations also increase the delay until the correct password is entered).


Installing ubuntu from customized live CD

I once had this problem when trying to boot Kubuntu from USB. I used the following workaround:

Create Lubuntu disk and boot it (which surprisingly worked)
Install Lubuntu and reboot
Go to TTY1 (Ctrl+Alt+F1) and login
Stop LightDM (sudo service lightdm stop) - just to be sure
Remove LXDE desktop: sudo apt-get purge lubuntu-desktop
Install KDE desktop: sudo apt-get install kubuntu-desktop
Remove packages remaining from LXDE: sudo apt-get autoremove
Reboot if there aren't any errors

I then had a stable, working Kubuntu on a system which was unable to boot from the kubuntu-13.10-i386 ISO.

You could give it a try, and use ubuntu-desktop instead of kubuntu-desktop, or whatever flavor you prefer. You could even try to automate this process in your script.


Why isn't the Bisigi PPA working in 11.10?

The PPA doesn't support Oneiric yet.

Try to find an alternative that has support for Oneiric, contact the owner and ask if he/she could add support for Oneiric or just drop the PPA.


In Ubuntu 12.04, there is 'Privacy', a software that comes pre-installed that lets you customize what will and what will not be stored by Zeitgeist that the dash uses to search for content.

So go ahead and search your system for Privacy, and look at its functions.
It is pretty straight forward from there. You just select the folders with the content that you don't want showing up.

Good luck!


How to remove index.php from each folder and subfolder?

It would be better to use your backups, if you have them. If not, you can use find to delete the files:

find /path/to/site/folder -type f -iname 'index.php' -delete

This deletes regular files (-type f, so not directories) named index.php (ignoring case).


If you have an older NVIDIA graphics card, this may be due to a driver incompatibility.
Per this bug report,

Installing the 340 driver will fail when running Linux 5.7 or newer.

The fact that 5.4.0-xx kernels boot to a window manager, but 5.8.0-xx kernels do not, suggests that this could be the problem.
See the bug report linked above for full details, but the following should fix the issue if an old NVIDIA card is the problem
sudo add-apt-repository ppa:kelebek333/nvidia-legacy
sudo apt update && sudo apt upgrade


Lubuntu 14.04 show internal error after battery is drained

This has been going on for a long time now and is not something to be worried about, according to me.
Sometime we need to clear the apport to stop it from displaying an error report on every restart.
Open terminal

cd /var/crash

warning: next command deletes everything in the directory

sudo rm -r *
 exit

P.S.- be sure to be in the right directory before executing the rm command. What we are doing is removing the crash reports from you system - if there is an error still going on, a new crash report will be generated.


no graphics hardware acceleration (glx) in 20.04?

solution: using

apt list *nvidia* | grep install

... I could compare my previous 19.10 system with the 20.04 one, and discovered that nvidia-dkms-390 package was missing (why ?).

So, installing it solved the problem:

apt install nvidia-dkms-390


After upgrading from13.10 to 14.04 screen on a laptop doesn't work but

So I went in System Settings -> Displays and there saw 3 screens.
  Built-in Display, my secondary desktop display and unknown display.

Probably bug #1244827 "Ubuntu detects a non-existing screen"

  What is the difference between: Ubuntu with Linux 3.11.0-19-generic
  and 3.13.0-24-generic (I don't know much about Linux as I am new to
  this stuff. But I know a thing or two about computers.)? Is this
  different kernels? Also I want to know if there is important
  difference between and if it is important which one I use to run
  ubuntu.

Yes, these are different kernels. In general, you should always use the most recent kernel, which is the one with the highest version number. But if there is some bug in the most recent kernel, then feel free to boot an older one if that works.

  So happily I again went into Display settings only to notice that I
  only get two displays. Desktops and some other with strange unfamiliar
  name: Chi Mei Optoelectronics corp. 15,6"

The Chi Mei display is your internal laptop screen. You can tell this from the fact that it is the only other screen, and it is 15.6". The fact that it is not being detected as the "Built-in Display" is probably a bug.

I suggest that you download the latest Ubuntu image (ubuntu-14.04-desktop-amd64.iso) and boot from it with your external monitor disconnected. Check whether your internal display works. Then connect the external monitor and enable it in the display settings. This will eliminate the possibility that your problems are being caused by any old config files from Ubuntu 13.10 that are still present on your system.


This is going to be very difficult (But doable). The reason for this is:

Ubuntu 10.10 has not had support since April 2012
Notify OSD is something related mostly to Ubuntu which means the Wine developers or somebody (a 3rd party) would need to code this function into Wine, which probably would not get into the main development of Wine since wine is for all Linux versions, not just Ubuntu.
Wine is more focused on features and fixes related to the workings of Windows. So something like this would get classified as a wishlist.
Some might even argue that giving Wine the option to access stuff like the notification bubble would include security issues. The same people might also agree that it would be easier to do the task that needs Wine in Linux using an alternative (eg: Like instead of using Photoshop to send the notification bubble, use Gimp which has scripting features).

Is it possible to do this? Yes it is.

Would it get added into the main Wine or Ubuntu development? Most likely not.

Can a developer do this? Yes. As a patch for Wine that works on Ubuntu and redirects the messages from Wine to the Ubuntu notification system.

So as you can see it is tough (Not that tough if one follows the code for it) but doable.


How to download the source packages for all installed packages?

Try this..

Create a directory where you want the source for all installed packages to be downloaded, and enter it.

mkdir source; cd source

Create a file named getsource.sh

getsource.sh

#!/bin/bash
dpkg --get-selections | while read line
do
        package=`echo $line | awk '{print $1}'`
        mkdir $package
        cd $package
        apt-get -q source $package
        cd ..
done

Make it executable.

chmod a+x getsource.sh

Execute it..

./getsource.sh

And go grab a cup of coffee :)


How to install the scanner of Canon MF4750 multi-device?

1. Printer driver:
Canon i-SENSYS MF4750 - Support - Download drivers, software and manuals
2. Scaner driver :
sudo apt-get install libusb-dev build-essential libsane-dev

sudo apt-get install git-core

Download latest sane source code
git clone git://git.debian.org/sane/sane-backends.git

cd sane-backends

./configure

make

sudo make install

3. Set Permissions for USB (allows you to scan without using sudo)
sudo gedit /lib/udev/rules.d/50-udev-default.rules

Change..
SUBSYSTEM=="usb", ENV{DEVTYPE}=="usb_device", ... , MODE="0664"

To..
SUBSYSTEM=="usb", ENV{DEVTYPE}=="usb_device", ... , MODE="0666"

Reboot.
sane-find-scanner -f

scanimage -L

Enjoy !!!


Is it possible to get a system microphone control icon next to the system volume control icon in the Gnome top bar

You can use the extension Sound Input & Output Device Chooser which will modify the icon in the top bar, allowing you to change the input levels of the microphone, and to choose what device is active.


Keyboard backlight keeps going on in Ubuntu 16.04 LTS

echo 2 | sudo tee /sys/devices/platform/dell-laptop/leds/dell\:\:kbd_backlight/brightness

Worked for me I have a new 2in1 Inspiron 7568.


How to install 'add-apt-repository' using the terminal?

Try these:

sudo apt-get install software-properties-common

and/or

sudo apt-get install python3-software-properties

and/or

sudo apt-get install python-software-properties


How do I include lines in resolv.conf that won't get lost on reboot?

It's probably better to have your DNS server be able to resolve 'puppet' to the right address, and either to have your DHCP server hand out the DNS nameserver address and search list or else (if you have static IP addresses) to have something like the following in /etc/network/interfaces.

iface eth0 inet static
    address 192.168.3.3
    netmask 255.255.255.0
    gateway 192.168.3.1
    dns-search example.com
    dns-nameservers 192.168.3.45 192.168.8.10

But if you do want to do it via the resolvconf configuration files you will want to edit /etc/resolvconf/resolv.conf.d/base. In that file, put in your info as you would in resolv.conf.

nameserver 192.168.1.XXX

Then tell resolvconf to regenerate resolv.conf.

sudo resolvconf -u


Script/Command to add play length of all video in a given directory tree

This should give you the total time in seconds of all files of the given type in your current working directory:

find . -maxdepth 1 -iname '*.mp4' -exec ffprobe -v quiet -of csv=p=0 -show_entries format=duration {} \; | paste -sd+ -| bc

To do it recursively in a folder that has several subfolders, AND to include media files with varying extensions (.mp4, .avi, .mkv, etc.) you would just remove the '-maxdepth' and '-iname' arguments, so the command would be.

find . -exec ffprobe -v quiet -of csv=p=0 -show_entries format=duration {} \; | paste -sd+ -| bc

ffprobe is a part of ffmpeg, so whatever media you are using has to be supported by ffmpeg.

Source of original command: https://unix.stackexchange.com/questions/170961/get-total-duration-of-video-files-in-a-directory


Ubuntu 14.04 network sharing asking for workgroup password

Check your hostname (machine name).  If it is over 15 characters windows machines can't handle it and don't see you in the workgroup!  The result is when you go to browse you are asking your own machine to let you see what's there based on the fact that technically you are the only one in the workgroup that is talking!  Therefore you are challenged by your own "Browse Master" which is you!

To fix by changing your hostname do the following:

gksudo gedit /etc/hostname (change to your desired hostname under 15 characters)

gksudo gedit /etc/hosts (change to your desired hostname under 15 characters)

then do...
sudo service hostname restart


Does the ScanSnap IX500 work with Ubuntu?

YES

This scanner does work with Ubuntu with sane/xsane out of the box.

Old backstory (when the ix500 was just released)

The SANE team got it working by hacking up a backend for the ix500. It currently only provides color scans at the driver level (gray and B&W are done in software). Pull down the sane-backend project from the git repo, compile it, and install. There may be a few permission problems, but as root, I can run simple-scan and get everything I want out of it.

This device prides itself on wireless however the wireless only works with Android and the iPhone, and to make matters even worse configuring the device to connect to the WiFi access point requires Windows or MacOS.

You won't get your full value out of this scanner with Linux. That's because Fujitsu doesn't fund or endorse the SANE project (their loss, and our loss). That said, it'll work to some degree.