yes. Ubuntu will happily mount any NTFS partitions for you. That includes what would be your system (C:).
No.
No.

Regarding the last 2: Ubuntu will refuse to mount any unsafe NTFS partition. So when you shutdown Windows using hibernate you can NOT use that NTFS partition unless you clean it up. The proper method would be to boot into Windows, not use hibernate to stop the system and then boot into Ubuntu.

Yes, there are methods around this but those will result in loss of data. All methods from inside Ubuntu to clean up a NTFS partition will result in the loss of the hibernate file. And if that contains not-saved data it is gone, forever.

I would opt to not use hibernate, and forgo usage of a swap. The SSD I have lets me boot in under 10 seconds so I have absolutely no need for hibernate and/or suspend. I suggest you go the same path: install the operating systems on the SSD, and use the HDD for your personal data. If at any time the SSD dies you get a new one, install the operating systems and mount your hdd into your system.  Safe and efficient.

  Since I have many windows open for my programming related tasks, it is a bother to always open everything again

There are ways around this. Aptana studio opens the html and js I had open the previous day. And lots of editors can be set up that way. And if not you are 1 small script away from opening those files. I have several clients that I have set up in Aptana and whenever I open 1 of those remote sites in Aptana I can open a specific group of programs.


How to install drivers for Mightex camera?

Generally, in order to compile a driver from source code, you need to install the prerequisites build-essential and linux-headers-generic. Then the usual procedure is:

cd ~/directory/with/sourcecode  <--for example, ~/Downloads/mightex
make

And if there are no errors:

sudo make install
sudo depmod -a

Warnings are often acceptable; errors are not.

It would be helpful to see the result of this sequence. If possible, paste the results here and give us the link: http://paste.ubuntu.com

It would also be helpful to try the source code ourselves. Is there a link where we can download it?


How do I permanently disable extensions in GNOME Shell?

I posted the solution on askubuntu but can't remember where. You might want to try this:
http://forum.pinguyos.com/Thread-Gnome-Shell-suggestions-and-solutions?pid=14528#pid14528

Disable any globalmenu extension, then in the terminal type:

sudo apt-get install dconf-tools
dconf-editor

Navigate to org/globalmenu and uncheck enabled. Log out and log back in.


I couldnt install packages in my ubuntu machine. Error log shows nvidia-dkms-460 is the source of the problem

This error is more likely to be shown if you had a problem when you installed a package last time. To clear that run the following command.
sudo apt --fix-broken install
And then try to install the package that you were trying to.
(I know this is not the correct answer for this. But I don't have enough reputation to give a comment. So sorry if its wrong.)


How to dual boot ubuntu 13.10 with windows 8 (non UEFI)

First install Ubuntu 13.10 in a Primary partition or Extended partition as your wish.
Then boot up the windows live disk and install windows 8 in another primary partition.
After the windows 8 installation completed,re bootup the windows 8 live usb/cd and click on the System Repair option.Then select the command prompt option and run the following commands on it.

bootrec /fixmbr
bootrec /fixboot
bootrec /rebuildbcd

Then reboot your pc,now you can select windows 8 or ubuntu from the windows grub.


apache2 restart error. how to resolve this

To restart apache, please use:

sudo service apache2 restart


Unable to write to Samba NTFS share from Windows7

Simply renaming the share to something else seemed to have fixed the issue. Got the idea from this serverfault answer.


How to create an Ask Ubuntu search button in gnome-shell?

I have found fossfreedom's answer to create a DuckDuckGo search button in gnome-shell to be useful and I have used it as a base to answer this question.

To create a new search provider, copy the google.xml file as a template.

11.10

sudo cp /usr/share/gnome-shell/search_providers/google.xml /usr/share/gnome-shell/search_providers/askubuntu.xml

12.04

sudo cp /usr/share/gnome-shell/open-search-providers/google.xml /usr/share/gnome-shell/open-search-providers/askubuntu.xml

Change the following XML tags in the askubuntu.xml file:

<ShortName>Ask Ubuntu</ShortName>
<Description>Ask Ubuntu Search</Description>
<Url type="text/html" method="GET" template="https://askubuntu.com/?q={searchTerms}"/>

If you have done everything right, you should be seeing the Ask Ubuntu search button in the overview.


problem trying release upgrade Ubuntu 15.10 to 16.04

First of all look for files at /var/crash. Sometimes you get a message at startup just because some crash files are there without deleting. If that is the case, just run:

sudo rm /var/crash/*

If the problem persists perhaps you need to reinstall ubuntu. I had some problems upgrading to 16.04 and had to reinstall preserving partitions using manual configuration, and selecting no format option. Previously I did a backup of /home directory but I did needed.


What does it mean the given behavior on my laptop?

if you connect it to another monitor/screen does it have
the same problem ?.
If not then its just like the problem my colleague had  , turns out it was a hardware problem .Due to  continuous opening and closing of the lid , the cable that runs to the laptop monitor had been damaged.


Troubleshooting Ubuntu Sounds Issues with Working Speakers

I had the same problem and I managed to block the static sound  by going to my sound settings and leaving that window open the entire time i'll be using my headphones or speakers.

I've searched for a permanent solution but still no answer, any way, leaving the window open is not much of a problem.


SSD fstrim and encrypted home folder, unencrypted root, how should I setup trim for home?

Home folders are not partitions but mounted at user login if encrypted. I have check, it doesn't support trim, so it's not needed for encrypted folders.

If you have home as separate partition, encrypted, answer could be different. But it easy to check does it support trim or not.

Also, there are fstrim --all in cron weekly(anacron) in latest ubuntu, so nothing to worry about.


http://ppa.launchpad.net/jerome-etienne/neoip/ubuntu/dists/natty/main/binary-i386/Packages is empty so there aren't any binary packages for 11.04 in this PPA


I have had USB problems relating to a overloaded power supply.

I have external drives that drop without warning but are easy to get back the original power supply should have had enough total wattage at 300 watts however the 5 Volt was overloaded.

Right now I have put in a 250 Watt power supply just to get it running when the old one lost most of the 5 Volt capability. I have another 300 Watt power supply that I will replace that one with later when I take it apart again look into your power supply to check unplug other USB stuff. If you can and see if the offending peripherals get better. Also I have had conflicts with USB stuff where I had to keep my printer unplugged unless I was using it and it caused other things not to work properly look into that by disconnecting other stuff one thing at a time.


Good news, bad news.

Your systemd output is normal.  I have a fully functional OpenVPN server running and it too shows active (exited) as its status.

The bad news is, though, that if you configured your OpenVPN server to have a tun0 interface, it should indeed show up in the ifconfig output.
Mine looks like this:

tun0      Link encap:UNSPEC  HWaddr 00-00-00-00-00-00-00-00-00-00-00-00-00-00-00-00
          inet addr:10.8.0.1  P-t-P:10.8.0.2  Mask:255.255.255.255
          inet6 addr: fe80::24bb:8c51:1da2:1154/64 Scope:Link
          UP POINTOPOINT RUNNING NOARP MULTICAST  MTU:1500  Metric:1
          RX packets:244 errors:0 dropped:0 overruns:0 frame:0
          TX packets:357 errors:0 dropped:0 overruns:0 carrier:0
          collisions:0 txqueuelen:100
          RX bytes:16616 (16.6 KB)  TX bytes:39970 (39.9 KB)


I have just written and tested this and it works for me, assuming your text is in a file called: text_for_sed.txt

command:

sed -n "/<tmp>\([[:digit:]]\{2\}\)<\/tmp>/{
    s/<tmp>\([[:digit:]]\{2\}\)<\/tmp>/\1/p
    n
    s/<flik>\([[:digit:]]\{2\}\)<\/flik>/\1/p
    n
    s/<t>\([[:alpha:]]\+\)<\/t>/\1/p
}" text_for_sed.txt

output

48
46
Fair

if grep is producing the output then you would pipe it into sed

<your grep command> | sed -n "/<tmp>\([[:digit:]]\{2\}\)<\/tmp>/{
    s/<tmp>\([[:digit:]]\{2\}\)<\/tmp>/\1/p
    n
    s/<flik>\([[:digit:]]\{2\}\)<\/flik>/\1/p
    n
    s/<t>\([[:alpha:]]\+\)<\/t>/\1/p
}"

I know this is complicated looking, I tried to think of a better (simpler) way - if you could do it in multiple passes grep --only would be easier but in one pass sed is the only way I know how to do it.


Getting this message in terminal. It's repeatedly posting with small time intervals

Try running the following command:
vim ~/.bashrc

And then check if the terminal starts something that can't be found by the system and remove it.


Is it possible to check when a folder or a file is created?

Most Unix-like operating systems don't store the creation time of file or directories. You can get their modification time, last access time, and inode change time via the ls and stat commands.

But, there are some third party tools as we can see in other answers.
And, FreeBSD seems to have that capability. See @Graham Perrin's comment here which goes to that answer.


Samsung 970 EVO plus NVME issue with 18.04 LTE

I was able to solve this. I tried different things, but what worked for me was to physically remove the SSD and attach it to a different port. It seems to be that only one port on X399 motherboard supports Samsung 970 EVO+.

Thanks everyone for your help and support. Appreciate it.


Ubuntu 13.4 on Dell n1710 USB install problems

I have solved my own problem. It seems that i had to disable ACPI from the advanced options menu(F6).

Other dell laptop models seem to require this for ubuntu to work.
Hope other people will find this helpfull in the future.
:D


Try with:

sudo chown -R [FROM USERNAME]:[TO USERNAME] [FOLDER]


When you run sudo apt-get update, you are updating the details about the packages which are stored at /var/lib/apt/lists.

Here it is told that a section is damaged about package details. So it is corrupted. Best thing is to remove the folder and then make a new folder.

When updating is running the downloading details are first stored at a sub directory named partial. So that sub directory also needed to be created while making the new directory.

Run :

sudo rm -r /var/lib/apt/lists && sudo mkdir -p /var/lib/apt/lists/partial && sudo apt-get update


Does anyone succeeded with Open Stack Single Installer?

Single install method is deprecated in favor of http://conjure-up.io. You'll need to upgrade to Xenial and run conjure-up openstack in order to do a single installation. This utilizes the new Juju 2.0, and LXD bits to accomplish a private cloud on your laptop/desktop.


14.04 installation failing due to grub2, internet issues

You probably didn't make good bootablе USB. Retry with UNetbootin .  Or connect to internet and let them fix. :D


Giving Ubuntu Desktop a domain name to ssh into

Read this to get a static IP:  https://wiki.debian.org/NetworkConfiguration#Configuring_the_interface_manually

Let's assume you got the static IP 192.168.1.22

And then on your computer, enter this line in /etc/hosts:

192.168.1.22        MACHINENAME.university.address MACHINENAME

And you can access via either MACHINENAME.university.address or MACHINENAME from your computer.


Network connection between two laptops communication problem?

The wifi router will work regardless of whether you have internet. So, both laptops will be connected using the router as a common link. So, to ssh to one of them you'd use something like ssh 192.168.1.2. Of course, replace the IP address with the IP address of the laptop you're connecting to. You might ditch DHCP and use static IP addresses for them so that one laptop is always 192.168.1.2 and the other is always 192.168.1.3.


Having issues with torrents on Ubuntu 20.04

Two things you can check here that I came across while configuring qbittorent on Ubuntu 20.04.
Is UFW enabled? You can check with sudo ufw status verbose If so, you can quickly test if this is preventing progress by temporarily disabling: sudo ufw disable If it works after this, check the docs for your particular application and see what firewall rules need added. Don't forget to re-enable after validating this isn't the issue, or getting the proper rules in place.
Does the application account have permission for the directory it's saving the file to? Say you are saving to /mnt/data/torrents. The user account the torrent software is running as needs to be able to read and write there. In my case, I make the qbittorent user the owner of the download directory. Using the example directory above, you can change the owner/group with sudo chown user_in_question:user_in_question /mnt/data/torrents
Otherwise, the problem lies in your network config. If this is simply a home server/workstation then there is no need for a proxy to be configured unless you are attempting to circumvent geographical limitations. If you are not on a home network, but a corporate one or public one then there is a good chance that p2p file-sharing is blocked somewhere upstream.


How do I remove OpenJDK without losing JDownloader?

You could let the system remove it and then install it again with the option --no-install-recommends.

That will ignore the necessary dependencies listed on the package and install only the package it self.

More information on that subject here:

How can I install a package without installing its dependencies?


Suggested Antivirus for Ubuntu 14.04 server?

A widely-used package, especially in combination with mail services, is clamav.
It is fairly easy to install, and you will find tutorials quickly.
As a quick start:

sudo apt-get install clamav
sudo freshclam
clamscan -r <insert repository you want to scan here>


OpenStack: Keystone service stops immediately after starting

I had this issue. All I did is removing 'persistence' from "driver = keystone.token.persistence.backends.sql.Token" and keeping "driver = keystone.token.backends.sql.Token" . After this perform service keystone restart. This enabled both ports 5000 and 35357 start listening.


Difference between Ubuntu desktop and Ubuntu desktop for developers

If you click on download Ubuntu on the link you will see the normal download for Ubuntu. That means there is no difference, it is just saying that Ubuntu is good for developers too, no difference. :)


I have the same problem, but I have solution, not a  very good one, but the only one that works for me (DELL Vostro 3750) Ubuntu 11.04. When I boot in Ubuntu and I do not have sound in headphones I press Power button and hold it until laptop turns off (Forced Power Off). Then when I boot back in Ubuntu there is sound in headphones and stays that way until I do normal reboot.

P.S. In 11.10 this problem is fixed.


If all you want to do is fix the issue with Windows, I suggest that you get a live cd of a Linux distro and boot into it. If needed, you can install it; the next time you boot up your computer, grub will show up. Just make sure that you enable the "install grub" option when installing.

If you log into a live session, you can remove Linux, if needed.

You need a bootloader ot boot into an OS.


Why wont locate find text within files from Catfish?

locate does not find text within files, it only searches for filenames. Probably you need to use another backend if you want Catfish to find text within files.


Try this command,

allen@Gespenst:/tmp$ sudo mkdir -p /lib/firmware/amd-ucode

You failed to run the above command with superuser privileges.


Error after upgrading from 14.04 to 16.04

Well, you must first find the problem. You can still login using your username and password (which will not appear as you type).
You should provide what hardware you use, like laptop manufacturer, model number. This is written on the laptop usually. You can also provide the output of these commands cat /proc/cpuinfo | sort | uniq | grep model, lspci, lsusb, free -h. You can then poweroff your laptop using the same command.

For better usability, read up on these tools: ls, cd, man. It will make your life easier in such situations as now.

You can probably fix your installation using a life-CD such as a Ubuntu installer. Without more detail, nobody will really be able to help.


SSH with remote command and keep session alive

TL;DR: ssh -t remote-server "NAME=$NAME bash" (no ; before bash), but consider other ways.

Before using anything in this answer, please look at the Security Implications section below.

When you run ssh and give it a specific command to run, it runs the command using whatever shell is configured as the remote user's login shell. The effect therefore depends on what shell that is, but the most popular shells are Bourne-style shells. This includes sh, bash, zsh, ksh, and various others. It does not include tcsh and fish, which are probably the most popular non-Bourne-style shells.

Your goal here is to run bash on the remote machine with a new or changed environment variable, and the shell on your local machine (where you're running the ssh command) may be bash, but the remote user's login shell is not necessarily bash. That shell is listed in the remote machine's password database; it is included in the record retrieved by running getent passwd user on the remote machine, where user is the remote username.

In a Bourne-style shell, environment variables are shell variables, but not all shell variables are environment variables. When you run something of the form NAME=value as a full command, there are three cases:

If NAME is already an environment variable, it is also a shell variable, and assigning to that shell variable also updates the environment variable.
If NAME is not an environment variable, but it exists as a shell variable, assigning to that shell variable updates its value but does not cause it to become an environment variable.
If NAME is unset (i.e., there is no variable by that name), then assigning to it creates a shell variable with the specified value, but this shell variable is not an environment variable.

To cause a shell variable to be an environment variable for all subsequent commands, you export it with the export builtin:

export NAME

The export builtin also supports assignment syntax, for giving the variable a new value--or its initial value--and exporting it at the same time:

export NAME=value

So one option you have is:

ssh -t remote-server "export NAME=$NAME; bash"

That differs from your code by the addition of export.

But Bourne-style shells also support setting an environment variable with a specific value just for the duration of a single command. This is what assignments at the beginning of a command do. So you can use this instead:

ssh -t remote-server "NAME=$NAME bash"

That differs from your code by the removal of the ; that caused the assignment to be taken as a command of its own.

To cover non-Bourne-style login shells, you can use whatever syntax that shell expects. To attempt to cover as many shells as possible with the same syntax, you can use the env command to set the variable and run the command. env supports NAME=value syntax even if the shell running it does not.

ssh -t remote-server "env NAME=$NAME bash"

Presuming your MOTD is normally displayed, the best way to get it to display--and to achieve other effects you may want--is to tell bash to behave as a login shell. One way to do that is to pass the --login flag to bash:

ssh -t remote-server "export NAME=$NAME; bash --login"

ssh -t remote-server "NAME=$NAME bash --login"

ssh -t remote-server "env NAME=$NAME bash --login"

But if you prefer you can cat the file before running your command, just as you were doing.

Security Implications

As you know (and intend), your own shell expands $NAME before running ssh. If it contains characters that are treated specially by the remote shell, you have a problem. This means it has the disadvantage of not working under some common simple cases, like if that value contains spaces. It also means you can accidentally use values that have effects you don't expect. As a corollary, this is only safe if you always control the contents of that variable. If you're setting the value yourself, that's okay. If the value may be set by someone else, that person can cause any command they want to run on the remote machine.

You might try to control for this by writing NAME='$NAME' instead. This is good for cases where you're deliberately doing something simple, like when $NAME may contain spaces. But it does not cover all cases, and as far as security is concerned it unfortunately provides no mitigation at all. A variable may contain the ' character. (If you don't know what shell is configured as the remote user's login shell, there is also the issue that non-Bourne-style shells have different quoting rules.)

Note that this does not affect the case of running the code x="$y" in a shell where x and y are variables and you want to assign the value of y to x. That works and is safe. But that's not what you're doing here. Instead, you're pasting the value of NAME, whatever it is, into code that the remote machine runs. When you don't fully control that value, there is no generally safe way to do that.

If you do control the value and you know what you're doing, then it is okay. Otherwise, one approach is to attempt to modify its value into something that is fully and safely quoted and to insert that into the command that runs on the remote machine. This is difficult to get right, but you can write code to replace each ' character with the sequence '\''. More complex quoting situations than the one here can be attempted with the %q format specifier of the printf command.

It's even better to avoid this entirely and use a separate mechanism to pass the variable through to the remote system. Instead of any of the commands suggested above, you should consider:

ssh -o SendEnv=NAME

However, this doesn't meet your requirement to avoid modifying files stored on the remote machine. The remote server must be configured to allow the environment variable NAME to be passed through. That approach, and others like PermitUserEnvironment, require editing /etc/sshd_config on the remote machine. But if you goal is simply to avoid editing files on the remote machine in a way that embeds any specific value of the NAME environment variable in any file on it, then you should use SendEnv.


Why doesn't indicator-cpufreq show up in panel?

It is a bug and has already been reported at https://bugs.launchpad.net/ubuntu/+source/indicator-cpufreq/+bug/949240.

According to the comments on the page, the indicator-cpufreq applet works fine in Ubuntu Gnome Classic running under 12.04 but will doesn't work on Unity.


For Ubuntu 12.04, 12.10, 13.10, 14.04 and onward open the terminal and type:

sudo apt-get install libpcap0.8-dev


Is there a command in Gnome-Terminal, or any tabbable shell to open a new tab?

You cannot do this by default in Gnome-Terminal, at least with raw commands.

However, you can write scripts that call keyboard shortcuts that can do this. Note that you need xdotool for this: sudo apt install xdotool

New Window: Launch a new terminal window with nw
We can do this with just gnome-terminal.
Add to .bashrc:

echo "alias nw=gnome-terminal" >> ~/.bashrc

New Tab: Launch a new tab with nt
We can do this with xdotool getactivewindow $(xdotool key ctrl+shift+t)
Add to .bashrc:

echo "alias nt='xdotool getactivewindow $(xdotool key ctrl+shift+t)'" >> .bashrc

Close Tab: Close the current tab or window with ct
xdotool strikes again: xdotool getactivewindow $(xdotool key ctrl+shift+w)
Add to .bashrc:

echo "alias ct='xdotool getactivewindow $(xdotool key ctrl+shift+w)'" >> .bashrc

Maximize Window: Maximize the entire window with maw
We can use wmctrl here: wmctrl -r :ACTIVE: -b toggle,maximized_vert,maximized_horz
Add to .bashrc:

echo "alias maw='wmctrl -r :ACTIVE: -b toggle,maximized_vert,maximized_horz'" >> .bashrc

Minimize Window: Minimize the entire window with miw
We can use xdotool again: xdotool windowminimize $(xdotool getactivewindow)
Add to .bashrc:

echo "alias miw='xdotool windowminimize $(xdotool getactivewindow)'" >> .bashrc

Move to Workspace: Move a window to another workspace with mtw <id>
This would be just barely possible in shell scripting, and is way beyond my personal experience. I would recommend using Serg's script for this purpose, because it actually works as of now. Ah, the benefits of Compiz.


Desktop comes very slowly after I push power button

It looks to me that:

ahmet@ahmet:~$ systemd-analyze blame
30.049s NetworkManager-wait-online.service

You have configured one (or more) of your network interfaces to "Require IPv4 (or IPv6) addressing for this connection to be complete" (in the IPv4 Settings or IPv6 Settings`` tabs, or you've configured one of the "Automatic" choices in theGeneral` tab; AND it takes half a minute to make the connection.

You should also look at journalctl -b 0 and compare the interline timestamps, to see finer detail on your problem.


There is a file in ~/.cache/deja-dup/.. with 899G size

This is a known bug/feature. They seem to work on a fix.


I believe the incorrect driver is installed. With a temporary working internet connection, open a terminal and do:

sudo apt-get purge bcmwl-kernel-source
sudo apt-get install firmware-b43-installer

Reboot and let us know if the performance has improved.

Exra credit, by the way, for posting the wireless script on Microsoft Drive!


Try with: https://github.com/guillaumezin/nvidiabl

Installation

wget https://github.com/downloads/guillaumezin/nvidiabl/nvidiabl-dkms_0.76_all.deb
sudo dpkg -i nvidiabl-dkms_0.76_all.deb
sudo modprobe nvidiabl

Print current brightness value

cat /sys/class/backlight/nvidia_backlight/actual_brightness

Print maximun brightness value

cat /sys/class/backlight/nvidia_backlight/max_brightness

Adjust brightness

echo 50 | sudo tee /sys/class/backlight/nvidia_backlight/brightness


How do I get my shared disk back on line in Ubuntu 13.04

I suspected that maybe samba was broken so I went into synaptic and completely removed it.

Just to be sure I did log out/log in after each critical step.

Then I reinstalled samba and if I remember correctly at this stage at least my computer reappeared when I hit Browse Network inside Nautilus (it may have appeared at a later stage).

The Sharing Options upon a right click was no longer available and the critical point here is to use synaptic to install nautilus-share. It probably was removed when I removed samba.

Finally I had a password problem in that I couldn't open the folder which I wanted to share to my wife. The point here is to use a terminal and type shares-admin. Unlock it and in the Users tab I saw my login user name, so I checked it and set my login password.

After that I was back on line. How it got broken in the first place is still a mystery, but at least my shared folder in now back on line.


Prevent desktop icons and files from overlapping in Ubuntu 18.04

Are you using Nemo or Nautilus as the desktop manager? I'm using Nemo, and I had similar problems each time I rebooted by PC. Existing icons on the desktop would overlap with the Trash icon. I found the solution online. Here's what you need to do. In the Terminal type:

gsettings set org.nemo.desktop use-desktop-grid false

or alternatively, make the same change using the dconf editor.

See: This bug link for the solution (scroll to the very last entry). In case the link moves or gets deleted or does not open for any reason, I've pasted the relevant part below:

  Found a solution for this issue. That is to disable 'use-desktop-grid'.
  Open dconf-editor and deselect org.nemo.desktop.use-desktop-grid
  or just run:
   gsettings set org.nemo.desktop use-desktop-grid false

If you're using Nautilus, perhaps you may be able to find an equivalent setting that you could change.

Good Luck.


Background only after first login on Ubuntu 14.04 install - is this expected or bad install?

Try setting your start options to nomodeset, acpi=noapic, and other switches. Here's how: http://ubuntuforums.org/showthread.php?t=1613132

If you're able to successfully boot into a normal session this way, the first thing to do is install drivers for your video card. After that, it should work normally.


As you know, all the files that include grub option names and all the options for editing and renaming are in the directory /etc/grub.d/

The 30_os_prober script could be modified to make them different. I prefer having better control using the generated configuration and disabling os_prober. It's not too hard to copy and paste items from the generated /boot/grub/grub.cfg into your own 40_custom or other files loaded in numerical order.

The file for options is at /etc/default/grub

I don't understand why you would have 11 entries in one partition. An example grub.cfg section might help to understand how to edit 30_os_prober to your needs. Some details of what it looks like now (one big submenu?) and what you would like to see instead would help know how to edit the code.

To update grub run update-grub, generating the new file.

This community page has lots of details and links.


Time runs out for Linux in 2038, what then?

Where can I find the standard for future Linux Time format?

$ cat xx.c
#include <stdio.h>
#include <time.h>
#include <sys/stat.h>

    void
main(void) {
    auto time_t t;
    auto struct stat s;
    printf("%d %d\n", (int)sizeof(t), (int)sizeof(s.st_mtime));
}

$ cc xx.c && ./a.out
8 8

Type (time_t) is already 8 bytes, corresponding to what you list as the "Unix and POSIX" standard.

What makes you think Linux needs to define a new standard?


lubuntu how to execute 2 commands in .desktop file?

Apart from calling an external bash script there is this option:

Exec=sh -c "disper -d LVDS,VGA-0 -r auto -e -t right; echo Running other command; echo ...and an other one"


Is there a way to theme the notifications in XFCE?

Theming the xfce notifications
The themes of the notification bubble defined by a specially formatted file called gtkrc found within the folder structure /usr/share/themes/[theme name]/xfce-notify-4.0
All system-wide themes must follow the above naming convention.
For user-specific notification bubbles, the same [theme name]/xfce-notify-4.0/gtkrc file & folder structure can be created in your home folder ~/.themes
Lets create a copy of an existing notification bubble theme to work with - our new theme is going to be called playtime:
mkdir -p ~/.themes/playtime/xfce-notify-4.0
cp /usr/share/themes/Greybird/xfce-notify-4.0/gtkrc ~/.themes/playtime/xfce-notify-4.0/

Now launch the notification manager in system settings:

You'll see our new playtime theme.
customisation
Now lets have some fun with customizing this theme.
Open the gtkrc file for playtime
leafpad ~/.themes/playtime/xfce-notify-4.0/gtkrc

When customising the theme - change to another notification theme and back to playtime for the change to take effect.
changing the font
The bit in this file we are interested in to customise the text is this section:
style "greybird-notify-text"
{
    fg[NORMAL] = "#ffffff"
    GtkWidget::link-color = "#a7a7a7"
}

We can customise the font by adding font_name = "Serif 18" to this (between the { ... }:

So where to we get the font name - easiest place is actually the Font Window in the Appearance window:

Just add the text descriptions together as shown - for example Serif Italic 10
changing the font colour
We can change the font colour by modifying the RBG format number i.e. ff0000 is Red, 00ff00 is Blue and 0000ff Green - other colours are mixtures of these.
Thus - fg[NORMAL] = "#ff0000" gives us this:

changing the background colour
The bit in this file we are interested in to customise the background colour is this section:
style "greybird-notify-window"
{
    XfceNotifyWindow::summary-bold = 1
    bg[NORMAL] = "#111"
    XfceNotifyWindow::border-color = "#ffffff"
    XfceNotifyWindow::border-radius = 10.0
    XfceNotifyWindow::border-width = 3.0
}

The bg[NORMAL] value is again in RBG format - e.g. #00ff00 is green:


There is no way to add a custom alert. You could graph some SMART value, but you would have to keep checking that graph to notice something is wrong.


When inside of the document viewer through the man command, press h or H in order to view the man's help.

From man's help screen:

JUMPING

  g  <  ESC-<       *  Go to first line in file (or line N).
  G  >  ESC->       *  Go to last line in file (or line N).
  p  %              *  Go to beginning of file (or N percent into file).

Another good idea would be to press the Home or the End keys. :)

Good luck!


In the Eclipse Mars JEE distribution is a BPMN2 available which provides a metamodel implementation based on the Business Process Model and Notation (BPMN) 2.0 OMG specification.

But ... I suspect you will need the full jBPM suite.
The full suite of jBPM is not available as a plugin in Eclipse Mars.
You have to download the installer here to install the whole distribution. More information here.


Thunderbird: Delete Emails from Certain Address

Try creating a filter with the Quick Filter free extension for Thunderbird.

You may also wish to add a toolbar button, and this extension makes that easy.


The first line of .htaccess should be RewriteEngine on and not RewriteEnergie on. :)


So, finally got it solved. The aim of the question was that I couldn't install from the Live-USB, because it restarted over and over again. The problem was the partition of the HD (in Ubuntu terms, the sda device). It had 4 partitions, as @Sand-Dust mentioned, and all 4 of them were primary, with only one of these partitions empty, so there was nowhere to install Ubuntu (since from what I learned, it needs at least 2 partitions to install). The solution then was to ¿un-allocate? the partition sda4 (D:) and create 3 partitions in this now empty free space, all of this partitions being logical. You can do this with the installer, under the 'Something Else' option.

So after this, I've got Ubuntu intalled, but when restarting, it didn't show me the OS options, and started Windows... instead of messing with the GRUB, or Boot Repair, I chose to re-install Ubuntu, and now I'm writing from it.

Thanks for the comments and help.


Since you can't install onto any drive, the 3TB drive is just complicating the issue. Ignore that drive for now, get things working on the 250GB drive first, then try the 3TB drive.

Boot into a working OS, connect and mount the 250GB drive, and look at the logs in /var/log from the mounted drive. That's where the other logs are at in most flavors of Ubuntu, so the installation logs should be there, too.


How to find what packages do not come from a repository?

aptitude can do this query for you, with the ~o ("o" for "obsolete") search:

aptitude search ~o

this lists the packages that can no longer be downloaded.

I don't think there's an apt-cache search equivalent, and I'm not sure about synaptic.

For more info on search terms with aptitude, check out the section on search terms in the aptitude reference guide.


EXE files. How to run exe files in ubuntu?

EXE Files can be run using a program called "WINE".  Remember though:
Wine
Is
Not an
Emulator
It's a compatability layer.  Things may not work as expected.  You can also get front-ends to help you make your programs more stable, like PlayOnLinux, and Lutris.  I hope this helped you!


How do I install & configure Flash in Chromium > 56 on Ubuntu 16.10?

Well, you don't need both those packages (and pepperflashplugn-nonfree for 16.10 is broken at the moment, even if it's about to be fixed).

The first thing I would do is:

sudo apt purge adobe-flashplugin pepperflashplugin-nonfree
sudo apt install adobe-flashplugin

Then close the browser and open it again.

Please see Install the Flash plug-in for a general overview about Flash on Ubuntu.

Edit:

In a comment you told us that you have the vivid pocket of Canonical Partner enabled, which is wrong. You can change it with this command:

sudo sed -i -r 's/vivid (partner)/yakkety \1/' /etc/apt/sources.list

After that, run:

sudo apt update
sudo apt upgrade

and the latest version of adobe-flashplugin should be installed.


Since no one knows what happened during your "update" I'd suggest you try to save your data (using a live usb stick to access your hard drive) an then install 20.04 newly. I've never had the guts to do this - too may obstacles and too many people complaining about it.
Since that update did not overwrite your data, you'll have a good chance to retrieve whatever is missing before setting up your new system.


Extended Partition: Trying to understand what to do when my other partition is full

Could someone please explain what an extended partition is?

There are commonly three types of partitions, Primary partition, Logical partition and Extended partition

Primary partitions and Logical partitions are used to store data, where Primary partition are the only bootable partition

But Extended partitions are used to hold other logical partitions

Logical partitions should be existing inside an Extended partition

As you mentioned in order to use more than 4 partitions, the system will usually create 3 primary partitions and 1 extended partitions

So, if you want to create a new partition, you can do it by creating logical partition inside the extended partition

Extended partitions are just container partition of logical partitions

  what I am supposed to do with it?

Nothing, just leave it as it is

  can I somehow use that space?

You may be already using that space right now if not, use Gparted or fdisk


Dual monitors not working with an Nvidia card

I solved this problem a few minutes ago on my system. For me it worked in the following way:

Installed the post-release nvidia-driver.

Start the nvidia-settings to configure my dual-screen, there you have to use the TwinView (not the seperate X-Config) and don't forget to choose a primary monitor. The problem I encountered during the config was, that I it only seems to work if I choose the left monitor as primary. To Test you can use the Apply-Button.

If everything works you can save to X Configuration File.

Here my resulting xorg.conf if you want to read it:

# nvidia-settings: X configuration file generated by nvidia-settings
# nvidia-settings:  version 280.13  (buildd@rothera)  Thu Aug 11 17:28:49 UTC 2011

Section "ServerLayout"
    Identifier     "Layout0"
    Screen      0  "Screen0" 0 0
    InputDevice    "Keyboard0" "CoreKeyboard"
    InputDevice    "Mouse0" "CorePointer"
    Option         "Xinerama" "0" EndSection

Section "Files" EndSection

Section "InputDevice"
    # generated from default
    Identifier     "Mouse0"
    Driver         "mouse"
    Option         "Protocol" "auto"
    Option         "Device" "/dev/psaux"
    Option         "Emulate3Buttons" "no"
    Option         "ZAxisMapping" "4 5" EndSection

Section "InputDevice"
    # generated from default
    Identifier     "Keyboard0"
    Driver         "kbd" EndSection

Section "Monitor"
    # HorizSync source: edid, VertRefresh source: edid
    Identifier     "Monitor0"
    VendorName     "Unknown"
    ModelName      "Samsung SMS22A350H"
    HorizSync       30.0 - 81.0
    VertRefresh     56.0 - 75.0
    Option         "DPMS" EndSection

Section "Device"
    Identifier     "Device0"
    Driver         "nvidia"
    VendorName     "NVIDIA Corporation"
    BoardName      "GeForce GTS 450" EndSection

Section "Screen"
    Identifier     "Screen0"
    Device         "Device0"
    Monitor        "Monitor0"
    DefaultDepth    24
    Option         "TwinView" "1"
    Option         "TwinViewXineramaInfoOrder" "DFP-1"
    Option         "metamodes" "CRT: nvidia-auto-select +1920+0, DFP: nvidia-auto-select +0+0"
    SubSection     "Display"
        Depth       24
    EndSubSection EndSection


It depends on the order you install in. Windows will remove GRUB and prevent Linux from booting if installed after Linux, so you are probably better off with easyBSD in that case.

If Windows is already installed, the Linux OS will usually install GRUB with references to all of the existing OSes. Ubuntu does a very good job of this, and I assume Lubuntu works similarly.

I haven't found any negatives to easyBSD except for a slightly longer boot process since you have to go through the Windows boot menu.

You should be able to add a third partition the same way as you add the second if you have enough hard drive space.


Installed MySQL but still says command not found

Run this command on terminal

sudo apt-get install mysql-client

After install MySQL client you can use 'mysql' command. If you want to install MySQL server you have to run following command.

sudo apt-get install mysql-server


Restrict access to USB ports by type in Ubuntu

This is the purpose of udev.

http://manpages.ubuntu.com/manpages/xenial/man7/udev.7.html

Using rules you can identify devices and trigger actions when they're inserted or removed.

I have small USB key containing my certificates.When I plug it on any of my PCs, my session is unlocked, the key is mounted in my homedir allowing me to authenticate myself on several services.


As far as I know, bumblebee doesn't work with Ubuntu 18.04. You might want to follow this useful guide on how to set your Intel and Nvidia graphics to work.

Basically, after installing Nvidia drivers, use:

sudo prime-select intel

and then reboot to switch to intel graphics, and

sudo prime-select nvidia

and reboot to switch to Nvidia graphics.


Package not available after successfully installed with apt-get or pip

I fixed this by uninstalling and reinstalling all the above libraries

sudo apt-get purge virtualenv
sudo apt-get purge python3-pip

and then I reinstalled these again. The issue I think could be - I changed from my default python version from 2.7 to 3.5.


Ubuntu 18.04 dual screen don't work after reboot

I found solution.
First I run command to get the mode for my screen resolution- in that case it's 1440x900:

cvt 1440 900

output is in my case:

# 1440x900 59.89 Hz (CVT 1.30MA) hsync: 55.93 kHz; pclk: 106.50 MHz
Modeline "1440x900_60.00"  106.50  1440 1528 1672 1904  900 903 909
934 -hsync +vsync

I copy starting from "1440x900_600" and to the end.
Then I add mode by commands:

xrandr --newmode "1440x900_60.00" 106.50 1440 1528 1672 1904 900 903 909 934 -hsync +vsync

and

xrandr --addmode VGA-1 1440x900_60.00

Since now I can set that resolution for my screen.
But that do not work after restart, so I made simple script. I put that script in ~/.config/autostart/ folder (you can name it dualscreen.sh) and it looks like that:

#!/bin/bash

xrandr --newmode "1440x900_60.00" 106.50 1440 1528 1672 1904 900 903 909 934 -hsync +vsync

xrandr --addmode VGA-1 1440x900_60.00

#after that line it is not neccessary
sleep 1s
xdotool mousemove 2400 550

Last two lines are here to move mouse pointer to my main screen (try values which will be ok for you). You need to install xdotool by:

sudo apt-get install xdotool

There is sleep 1s which makes 1 second delay before executing last command, otherwise mouse was moved only to the edge of second screen (by default mouse pointer started on second screen).


How to create a multi-partition USB drive that also acts as the bootable ubuntu.iso?

Another possible solution is to use Ventoy. Directly from the tool description:

Ventoy is an open source tool to create bootable USB drive for ISO/WIM/IMG/VHD(x)/EFI files.
With ventoy, you don't need to format the disk over and over, you just need to copy the image files to the USB drive and boot it. You can copy many iso files at a time and ventoy will give you a boot menu to select them.
Both Legacy BIOS and UEFI are supported in the same way.
Both MBR and GPT partition style are supported in the same way.

I have created a bootable USB where I have copied my Ubuntu ISO files simply with a copy/paste procedure, so that they are shown in a menu when the USB stick is used as a bootable drive. At the same time, I can use this USB also to store my personal data (they do not appear in the Ventoy Menu).
This means that when I use this USB stick as a bootable drive I have a menu like this (screenshot taken from the official website):

When I open it via Nautilus, it is like a normal USB stick where you can put your files (screenshot taken from my Ubuntu 20.04):

You can download Ventoy from the release page. Select the .tar.gz version, extract it and in the terminal go to the directory that contains Ventoy2Disk.sh.
Then, if your USB stick is /dev/sdb, you can run:
sudo bash Ventoy2Disk.sh -I -g /dev/sdb
Ventoy2Disk.sh help:
Ventoy2Disk.sh CMD [ OPTION ] /dev/sdX
  CMD:
    -i   install ventoy to sdX (fail if disk already installed with ventoy)
    -I   force install ventoy to sdX (no matter installed or not)
    -u   update ventoy in sdX

  OPTION: (optional)
   -r SIZE_MB  preserve some space at the bottom of the disk (only for install)
   -s          enable secure boot support (default is disabled)
   -g          use GPT partition style, default is MBR style (only for install)

Further details are available in Ventoy Installation.
Another interesting source is this article from RedHat.com: Creating a multi-boot Linux desktop system


Ubuntu: safest directory to store backups?

I would suggest creating a directory in /mnt.

Suppose you have prepared backup scripts that copy your data to /mnt/backups, and one day you want to backup to an external drive; then all you need to do is to mount that drive under /mnt/backups (add a line to /etc/fstab), and all your backup scripts will continue to work.

Other than that, I can't think of any directory being really safer than others as long as you use a dedicated subdirectory for backing up. Well, /tmp would not be a good idea. But otherwise, space considerations (if you have spread your OS over more than one partition) or permissions are more important.


Had a similar problem where I couldn't type in the text entry field as well as the function not working as mentioned above.

My fix was under the common tab for the text entry widget, "can focus" = Yes

I can now enter text and the function runs.


How do I run the install.sh file for this wi-fi adapter? I get "su: Authentication failure"

Open terminal in root mode and navigate to the directory that contains install.sh using cd and type:

sudo ./install.sh

That's it.


Unlocking the disk (sda5_crypt) Enter Passphrase

As long as your hard drive doesn't support encryption itself and you used it there is no way an encrypted partition can prevent a simple reinstall.

So you should have no problems booting from USB and installing ubuntu again. Maybe go to the manual partitioning and remove all partitions from disk during setup, but this shouldn't be necessary at all if you choose guided using the whole disk.


Copying an SD card using dd does not copy exactly

ddhas a long history of creating exact bit for bit duplicates. diff can be used to prove this quite handily

Note: you don't mention what version of Ubuntu you are running. The only reason that makes a difference is that the status switch usage has changed.

Ubuntu 14.04 Excerpt from man dd

 status=WHICH
              WHICH info to suppress outputting to stderr; 'noxfer' suppresses
              transfer stats, 'none' suppresses all

Ubuntu 16.04 excerpt from man dd

status=LEVEL
              The  LEVEL of information to print to stderr; 'none' suppresses everything but error messages, 'noxfer' suppresses
              the final transfer statistics, 'progress' shows periodic transfer statistics

All that aside, the only things I can think of that would result in your image file having a different bit pattern than your source is either:

User Error:

A) An attempt to image a mounted partition (an exceedingly bad idea)

B) Failure to sync leaving data behind in the kernel buffer.

or

Hardware failure:

C) A failing area on the disk where you stored the image. This implies impending failure of the drive (I hope you have backups, if not, hop to it!)

D) A dodgy connection providing poor connectivity to either the source or target media device

You would be wise to check the smart status of the drive you stored the image on.

The fact that dcfldd also resulted in a mismatch leads me to believe that you have either a failing cable or a failing storage media (whether on the input media or the output media)


How to backup root and reinstall Linux after extending partition in dual boot with windows?

Your question is not 100% clear but this will give you about 86GB of space for Ubuntu:

Backup any data you cannot afford to lose. You are going to delete the sda8 partition so copy off anything you need from there.
Using your install media boot into the live environment (Try Ubuntu not install Ubuntu)
Using GParted in the live environment delete sda8. This will create unallocated space to the right of sda7. Apply the change.
Using GParted resize sda7 making use of all the unallocated space. Apply the change and reboot to the normal Ubuntu system.

I don’t think you will need to reinstall Ubuntu. You appear to have a working system and resizing the partition should not break it.
Good luck


"Is the idea of installing Ubuntu on a SSD and boot it from any computer impossible?"
Short Answer: YES

Long Answer
30 years ago you could take any MS-DOS 1.10 bootable Floppy Disc and use it on 99% of the personal computers out there.
Today in Linux (and Windows) every boot drive is custom configured with different drivers for:

WiFi (Broadcom, Intel, etc)
Drives (HDD and SSD)
Display Drivers (ie Intel, Nvidia, AMD)
Monitors (different resolutions and refresh rates)
Keyboards
Mice
Sound Cards

So it is impossible to have a bootable USB external SSD that works on all computers.


I had a similar problem. I resolved it by restarting network-manager. Run this command in your terminal to restart network-manager :-

sudo service network-manager restart

Hope this helps !


Is there a better way to create a file in bash other than using touch and echo?

Just do echo "text" >> /path/to/file if the file doesn't exist.

The lovely thing about text redirection and appending is that if your output is a file path, and the file doesn't already exist, it'll create the file, regardless of if > or >> is used.  No need to touch the file at all, typically.  (Though, if you are sure the file does not exist, just use > instead of >>; >> is to append to a file, but if the file doesn't exist, well...)


Installing the linux-virtual package from a preseed file

It turns out that the answer is that installing the linux-virtual package on 12.04.2 is pointless.

12.04.2 ships with a backported kernel from Quantal, the package is called linux-image-lts-quantal. In Quantal, the -virtual kernel package has been abolished, so there's no equivalent -virtual package.

It is possible to install the linux-virtual package after installation, but this will involve a downgrade from 3.5.0 to 3.2.0.


How to create wifi hotspot in Ubuntu 15.04?

1.Try on the terminal:

sudo apt-get install kde5-nm-connection-editor

Once installed, press Alt+F2 and run command to launch the app:

kde-nm-connection-editor

Click Add button and choose “Wireless (shared)” from the drop-down list.
Type in a name, ssid, and select Access Point mode. If want, set up a password under Wireless Security tab. Finally, click OK.
Click Network Manager applet on Unity panel and then choose “Connect to Hidden Wi-Fi network”, choose the connection you created in previous step and click Connect button.

Source: http://ubuntuhandbook.org/index.php/2014/06/share-internet-with-android-ubuntu-1404/


How to rename file extension to lowercase?

It is really simple:

Rename to something else than the same value with different case

rename 's/\.JPG$/\.jpgaux/' *.JPG

Now rename that something else to .jpg back again, but lowercase this time

rename 's/\.jpgaux$/\.jpg/' *.jpgaux

Demo: http://paste.ubuntu.com/8853245/

Source: How to change extension of multiple files from command line? Thanks to Chakra!


Boot from USB w/ Grub2... computer is useless right now... help!!!

If you've got an OS X installation, you should be able to get it to boot by holding down the Option key (or Alt if you're using a PC keyboard) when the chime sounds when you first power on the computer. You may then be able to reconfigure GRUB, install rEFIt or rEFInd to help select your OS for recovery, or otherwise reconfigure the system. Another option might be to try a rEFIt or rEFInd boot CD; that might enable you to boot OS X.

The GRUB commands you specified (set root=(hd1) followed by chainloader +1) are suitable for some types of recovery on a BIOS-based system, but the invalid efi path error you got suggests that GRUB is installed in EFI mode, not in BIOS mode. It's not clear what you were hoping to accomplish with those commands (what OS you intended to boot), but the equivalent for EFI is likely to be to load another OS's boot loader and chainload to it, as in:

set root='(hd0,gpt2)'
chainloader /System/Library/CoreServices/boot.efi

This example might boot OS X, depending on where it's installed. Details will vary depending on your installation, of course.

If you need more help, I recommend you run the Boot Info Script from an emergency disc and post a link to the RESULTS.txt file that it produces. That will give us more information on your configuration, which is necessary for more detailed diagnostics.


Will 11.10 still make use of Blue color to alert the user to things?

For the most part the "blue" feature is still very much present, it has just moved. Individual launcher icons will have blue arrows when they are requesting attention, and the messaging menu turns blue when it needs to alert you to something. I believe the volume icon does the same thing, but I have no tested this, and I usually don't have my sound muted, so I'm not 100% sure.

There is an indicator for updates that AFAIK will be included in the default install.


"Wireless disabled by hardware switch" after suspend and other hardware buttons ineffective - how can I solve this?

I've been looking into buying one of these and have been looking for potential problems, looks like your solution can be found in the novatech forums:

Simply created a new file called brcm.sh
Inserted the below code and save:

#!/bin/bash
# Simple bash script to fix resume from suspend issues...
# Place this script in /etc/pm/sleep.d/
# then chmod +x /etc/pm/sleep.d/brcm.sh

case $1 in
  hibernate)
    /sbin/modprobe -r brcm80211
  ;;
  suspend)
    /sbin/modprobe -r brcm80211
  ;;
  resume)
    /sbin/modprobe brcm80211
  ;;
  thaw)
    /sbin/modprobe brcm80211
  ;;
esac

Placed it in /etc/pm/sleep.d/
Made it executable:

sudo chmod +x /etc/pm/sleep.d/brcm.sh

Source: http://forum.novatech.co.uk/showthread.php?25709-nFinity-N1411-solved-Ubuntu-12-10-install-and-wifi-wake-from-suspend&p=331411


How do I Share a Wired DSL Connection as a hotspot?

What you are looking for is referred to as "ad-hoc" networking. Simply clicking the networking icon in the panel, and then clicking again on Create New Wireless Network should lead you to a point where further guidance is no longer necessary.

Should you want more information, perhaps about editing or deleting such networks, you can find some of my writings on How to Ubuntu.


Your card is listed here https://help.ubuntu.com/community/RadeonDriver under 'All these Radeon(HD) cards and derivatives have good 3D acceleration support'

RV505/RV515/RV516/RV550     Radeon X1300/X1400/X1500/X2300

Due to buggy hardware or drivers, your monitor's correct resolutions may not always be detected. For example, the EDID data block queried from your monitor may be incorrect. But, though a bit technical you can add them yourself.

  Adding undetected resolutions

  If the mode already exists, but just isn't associated for the particular output, you can add it like this:

xrandr --addmode S-video 800x600

  If the mode doesn't yet exist, you'll need to create it first by specifying a modeline:

xrandr --newmode <Mode``Line>

  You may create a modeline using the gtf or cvt utility. For example, if you want to add a mode with resolution 800x600 at 60 Hz, you can enter the following command: (The output is shown following.)

cvt 800 600 60
   # 800x600 59.86 Hz (CVT 0.48M3) hsync: 37.35 kHz; pclk: 38.25 MHz
  Modeline "800x600_60.00"   38.25  800 832 912 1024  600 603 607 624 -hsync +vsync

Then copy the information after the word "Modeline" into the xrandr command:

xrandr --newmode "800x600_60.00"   38.25  800 832 912 1024  600 603 607 624 -hsync +vsync

  After the mode is entered, it needs to be added to the output using the --addmode command as explained above.

Source: https://wiki.ubuntu.com/X/Config/Resolution#Adding_undetected_resolutions

See the source for methods to make the changes permanent.


Having trouble installing Bradcom STA driver

My friend, I had the same problem and I solved like this:

First, uninstall the bcmwl-kernel-source

 sudo apt-get purge bcmwl-kernel-source
Install the firmware-b43-installer

 sudo apt-get install firmware-b43-installer
And the b43-fwcutter

sudo apt-get install b43-fwcutter
Restart your computer

I hope that works for you =)

Installing Broadcom Wireless Drivers


How do I prevent Extreme Tux Racer from changing my desktop resolution?

Extreme Tux Racer starts by default with a resolution width of 800 pixels.
Exiting the game should restore your original resolution, but unfortunately it seems the game is crashing when you close, before it can re-resize your display

There is a workaround. You can set a custom game resolution by editing lines in ~/.etracer/options:

set x_resolution X
set y_resolution Y

where X and Y are your desired game width and height. If you set them to your normal resolution dimensions, the game should never "enlarge" your screen to begin with.


Cannot install using Software Center - fix does not work

The solution by David (see above) did the trick.
In case anyone stumbles upon this thread with the same problem, here the summary (credits to David and the author of the thread linked in the problem description):

sudo umount /dev/sdb5

replace [sdb5] with whatever partition your root / is mounted on. Note: it might complain that / is busy, ignore and proceed

sudo mount -o rw,remount /
sudo dpkg --configure -a
sudo apt-get update
sudo apt-get upgrade


sometimes, strange audio distortion(peeping, scratching), ubuntu 12.04

After days with that problem and google it, I fixed with this link https://wiki.archlinux.org/index.php/PulseAudio#Glitches.2C_skips_or_crackling


How to use htop or other system monitor as screensaver

Yes. Manual page: phospor

Use xscreensaver as screensaver. See Configure screensaver in Ubuntu and set it up to use phospor in the advanced tab:

phosphor -root -delay 50000 -scale 6 -program htop

root : Draw on the root window.
scale (int) : How  much  to  scale  the  font up: in other words, the size in real pixels of the simulated pixels. Default 6.
delay (usecs) : The speed of the terminal: how  long  to  wait  between  drawing  each  character. Default 50000, or about 1/20th second.
program (sh-command) :
           The command to run to generate the text to display.  This option may be any string
           acceptable to /bin/sh.  The program will be run at the end of a pty or  pipe,  and
           any characters that it prints to stdout will be printed on phosphor's window.  The
           characters will be printed artificially slowly, as per the  -delay  option  above.
           If the program exits, it will be launched again after 5 seconds.

untested until later today; the phosphor command might need an absolute path.


This is a know bug and I could not find a proper solution. Apparently the bug might be triggered by custom options on the fstab line.

See https://bugs.launchpad.net/ubuntu/+source/gvfs/+bug/442130
and https://bugzilla.gnome.org/show_bug.cgi?id=597420


The line 56 in the file /etc/apt/ sources.list is not correct (URI parse)

There is a similar issue that was solved in this thread

1.) Lets make a backup:

sudo cp /etc/apt/sources.list  /etc/apt/sources.list.old

2.) What this means is that the source list could have an issue on line 56.

sudo cat -n /etc/apt/sources.list | grep 56

3.) look for the line created by 2 and maybe comment comment it out with a "#"

sudo gedit /etc/apt/sources.list

4.) and then update

sudo apt-get update


To install Allegro 4.4 in all currently supported versions of Ubuntu open the terminal and type:
sudo apt update
sudo apt install liballegro4.4 liballegro4-dev allegro4-doc

Packages for Allegro 4.4 will also be available in the default Ubuntu 20.10 repositories.
The version of Allegro that you downloaded from GitHub was last updated on October 19, 2013. In Ubuntu 19.10 run the following commands to install the latest stable version of Allegro instead:
sudo apt update
sudo apt install liballegro5-dev allegro5-doc codeblocks g++ xterm gdb
The packages that are highlighted in bold text are optional packages for running Allegro with C/C++ in Code::Blocks IDE.
The same commands will also install Allegro 5 portable library for cross-platform game and multimedia development in all currently supported versions of Ubuntu.
Expected results of cd /usr && locate --regex 'allegro.*\.so' :
/usr/lib/x86_64-linux-gnu/allegro/4.4.2/alleg-alsadigi.so
/usr/lib/x86_64-linux-gnu/allegro/4.4.2/alleg-alsamidi.so
/usr/lib/x86_64-linux-gnu/allegro/4.4.2/alleg-dga2.so


How can I automatically run a command when I log out?

If you are speaking of logging out of a bash login shell, there's a solution with ~/.bash_logout — Run man bash in the terminal for more details.

If you are speaking of logging out of the X-window system, there are far too many ways to get yourself "logged out" for there to be any way to guarantee the command will run.

However, since you are the one doing the logging out, if you change your logout habit, this might work...

If you are running gnome, you might want to write a short script - maybe called "logo" - put it in ~/bin (and ensure ~/bin is in your PATH).

The "logo" script would do two things:

Run whatever command you want to run when you logout.
Run gnome-session-save with your choice of arguments.

Run man gnome-session-save in the terminal for more details on the arguments.


sudo apt-get update not working Unable to connect to 192.168.1.254:3128

As can be seen from the output, you are using a proxy. Remove that configuration if you don't want it:

sudo sed -i '/192.168.1.254:3128/d' /etc/apt/apt.conf


Can I restore the extended partition if I have deleted it?

In principle you can just recreate the partition table in fdisk, gparted or similar. But you need to know the correct partition start and end positions.


Quickly close or hide an app with ubuntu

Application Switcher
You can show what is described in "application 4" of the post you linked in your question by holding ALTand pressing TAB for each time you want to move to the next item in the list of open applications.
Note: If you have more than one window open of a particular application, such as Google Chrome, you can access those different windows by just leaving the selection on the application icon during the ALT+TAB menu for a small duration, and it will then expand to show the different windows of that application. From there, you can continue to press TAB until the wanted window is selected.
Closing a window from ALT+TAB
There is no officially supported way of doing this, but there is a workaround mentioned here.
"Spotlight" Search
As for the spotlight search, just press the SUPER key (the SUPER key is either the Windows key on your keyboard or, on Macs, the ⌘ (Command) key) once and the search function will appear.
Tip: You can hold the SUPER key to display a list of all keyboard shortcuts.
Notes
If you're using a virtual machine and only have one SUPER key on your keyboard, then make sure that it's not assigned as the host key for the virtual machine, as it won't register inside of the virtual machine operating system. The OP's solution was that the host key was bound to Left ⌘, so Right ⌘ worked inside the virtual machine.


External speakers seem to sleep Sony Active Speaker System SRS-D4

This is not a real answer, but are you sure the speakers are not, in fact, sleeping?  I have some little JBL's and they sleep, and are meant to.  I see the same behavior you do. It takes 20-30 seconds of input for them to rouse themselves from slumber.


Ubuntu 16.04 Mysql update broke root login

Do a
cat /etc/mysql/debian.cnf on your terminal.

The file contents displayed should contain username and password of 2 users.

Use any of these credentials to access your mysql.

Change root password on the mysql prompt.

run flush privileges;

Now exit the MySQL pront and try logging in as root, it should work.


vanadium is right, it is id 13.  To disable type:

xinput disable 13

To enable:

xinput enable 13

To disable permanently, you'll need to add this on boot:

crontab -e

add line:

@reboot  xinput disable $(xinput --list | grep DELL07EC | head -n 1 | awk -F '           ' '{print $2}' | awk '{print $1}' | sed s/id=//)


How can I enable automatic resume on lid open?

Have you seen this post?  It looks like the method worked for one guy but not the other, so its not a guaranteed fix, but its worth a shot. : )

Here's a brief summary:

  You can check whether the Lid open event is configured to wake up your
  OS by executing
  cat /proc/acpi/wakeup.
  If the status of LID or LID0 is disabled you can try enabling it by executing

sudo -s
echo "LID" > /proc/acpi/wakeup

  This will set the status to enabled, and executing the commands again will set it back to
  disabled.


software center won't start after upgraded to 11.10

remove the config file for software-center then log out and back in

sudo rm -rf ~/.config/software-center


Logitech c920 on Ubuntu 12.04 LTS. Where to begin? Does it work? Anyone using it on Hangouts?

GUVCview is one of the best applications available in ubuntu to Work with webcams.

It also provide drivers for webcams.

Not only WebCams but for HD Camcoders too.

It is better if you install V4L too. With that you can do lot of things with video devices.

If you want to install GUVCview run:

sudo apt-get install guvcview

And for install V4L run this :

sudo apt-get install dov4l dv4l lib32v4l-0 libpt-1.10.10-plugins-v4l2 libv4l-0 libv4l-dev libv4lconvert0 libvideo-capture-v4l-perl qv4l2 v4l-conf v4l-utils v4l2loopback-dkms v4l2loopback-source v4l2ucp


How do I use windows programs on Ubuntu without wine

Honestly, you don't. Wine is the only good, updated program that runs Windows Programs. It is the best, and at the time, only solution to Microsoft not making their programs universal.


How to make text file created in Ubuntu compatible with Windows Notepad?

Unlike Unix where a new line is represented by a LF character we need a combination CR/LF for files in DOS/Windows:

Gedit

We can let Gedit save text documents with Windows-style line endings in the File -> Save as dialog.

Adjust the settings for Line Endings in the drop down menu to Windows.

Nano

To make nano write text files in DOS format we have to run it with the following command line option 1:

nano --dos <filename>

Vim

Vim can convert files from Unix to DOS format with the following control sequences  2 :

:update
:e ++ff=dos
:w

Emacs

To set the buffer coding to DOS style issue Meta +  x :

set-buffer-file-coding-system utf-8-dos


You can uninstall apache and remove previous configuration files with the following command:

apt-get purge apache2 apache2.2-common apache2.2-bin

Please use the official and updated server guide from the Ubuntu documentation instead of a tutorial from 2008. The segment on web servers should get you started, but it is worth to read the whole documentation, because it covers all the things you need to know when running a server.

The ArchWiki also has an article about Apache/LAMP.


Put Clonezilla ISO file in root / directory.
Open the terminal and run:

sudo nano /etc/grub.d/40_custom

Insert the following text at the end of the file:

menuentry "Clonezilla Live" {
 set isofile="/clonezilla-live-2.2.3-10-amd64.iso"
loopback loop (hd0,1)$isofile
linux (loop)/live/vmlinuz boot=live live-config nolocales edd=on nomodeset
ocs_live_run=\"ocs-live-general\" ocs_live_extra_param=\"\"   ocs_live_keymap=\"\" ocs_live_batch=\"no\" ocs_lang=\"\" vga=788   ip=frommedia nosplash toram=filesystem.squashfs findiso=$isofile
initrd (loop)/live/initrd.img
}

Save file, exit and open GRUB's config file:

sudo nano /etc/default/grub

Comment out the line GRUB_HIDDEN_TIMEOUT=0 so it looks like:

#GRUB_HIDDEN_TIMEOUT=0

Make sure that the line GRUB_TIMEOUT=[some number] has a number >0, for example, 10

Save file and exit and run

sudo update-grub2

ADDITIONAL NOTES:

⠀- /clonezilla-live-2.2.3.10-amd64.iso -- change the name of iso file to match the one you have.

⠀- (hd0,1) may be different for you depending on how you installed Ubuntu.

  (hdX,Y)  X = hard drive #, Y = partition.

⠀You can also see my YouTube video for the above procedure: Boot Clonezilla ISO from Grub2 Menu.


Where is the user's profile picture stored in Gnome 3?

Pictures are stored in the folder /var/lib/AccountsService/icons/[user name]
The [user name] is of type image/png format with a size of 96x96 pixels
Under the folder /var/lib/AccountsService/users you have a similar file [user name] that is a .desktop format - for example
[User]
Language=en_GB
XSession=ubuntu
Icon=/var/lib/AccountsService/icons/dad

The Icon= is not created unless you assign a picture in Users and Accounts
If you assign one of the stock pictures the file will contain - for example
[User]
Language=en_GB
XSession=ubuntu
Icon=/usr/share/pixmaps/faces/soccerball.png

Thus –as you can see– just create an Icon= entry in /var/lib/AccountsService/user/[user name] to point to your PNG file or overwrite the icon in the similarly named /var/lib/AccountsService/icons folder


If you're only worried about other users being able to see your files, run chmod -R o-rwx /home/maria. It revokes all permissions to the world (including guest).

guest does not belong to the admin group, which means he cannot run commands as other users (like root) through sudo (OK)

As noted by Takkat, anyone who has physical access to the machine could gain access to the files. The only way to protect you from that is encrypting the drive. If you put a BIOS password on the machine, the visitor can take out the HDD from it.


How thoroughly did you "replace Unity with LXDE"? I'm asking because it isn't clear which program you're using to get the screen capture.

In a pure LXDE situation --- Lubuntu is the LXDE+Openbox distro supported here as an official flavor --- scrot is the default program to take screenshots.

man scrot has this:

-s, --select
  Interactively select a window or rectangle with the mouse.

It's then up to you to set up the appropriate keybinds in your rc.xml file (or whatever it's called) which should be in ~/.config/openbox. And you can read about rc.xml here.

I have separate keybindings for instant and time-delayed screenshots. I haven't set up binding for interactive selection because I rarely need that and prefer to keep a copy of the full screen for "legal" reasons. In any case, setting up a keybind for a specific purpose is simple.

But here's one way using Shift+PrintScreen

<keybind key="S-Print">        # Interactive
  <action name="Execute"><command>scrot -s -q 100 ~/Pictures/%Y%m%d%H%M%S.png</command></action>
</keybind>

In this,

-s enables the interactive mode
q 100 produces the best quality image while 75 is the default
~/Pictures/%Y%m%d%H%M%S.png is the filename using strftime (explained in man strftime). Of course, you can choose another destination folder or filename.

And I guess it isn't necessary to point out that Lubuntu is a "slim" distro and may not have all the facilities that distros with DEs such as Unity, GNOME, KDE, or MATE offer.


Ubuntu Windows installer, no boot option

It's better if you boot from Wubi disk/dvd just created.
Check the boot order!
Enter bios and change boot order.


Sorry to say, but Xinerama no longer works on the -intel driver, since the Feisty/Gutsy timeframe when the Intel developers introduced XRandr.

Maybe if you explain what you're trying to achieve with the dual displays, someone could suggest an alternative approach.


Reconnecting to wired connection requires reboot

From here I got that any interface listed in /etc/network/interfaces are not managing by NetworkManager, so I just deleted enp3s0 interface from this file and that is works.

/etc/network/interfaces looks like this now:

# interfaces(5) file used by ifup(8) and ifdown(8)
auto lo
iface lo inet loopback


Using Pipelight worked beautifully for me. It only runs in Firefox, though.

Installing Pipelight

Open up the old terminal (Ctrl+Alt+T) and copy and paste the following commands. To paste into the terminal do Ctrl+Shift+V.

sudo add-apt-repository ppa:pipelight/stable

After adding the PPA, update the sources with

sudo apt-get update

Next, you have to install Pipelight.

sudo apt-get install --install-recommends pipelight-multi

Then, run the below command to update the plugin.

sudo pipelight-plugin --update

Configuring Pipelight

You may have to remove adobe-flashplugin, but I personally did not need to due to it not being installed.

sudo apt-get remove adobe-flashplugin

Then enable all of the necessary plugins

sudo pipelight-plugin --enable flash

Go one-by-one to ensure you're accepting each's license agreement

sudo pipelight-plugin --enable widevine

Finally:

sudo pipelight-plugin --enable silverlight

Then update Pipelight to recognize these plugins.

sudo pipelight-plugin --update

Finally, you must add the plugins to Firefox.

sudo pipelight-plugin --create-mozilla-plugins

Testing it out!

If done correctly, Pipelight should have installed an update version of Flash, Silverlight, and Widevine, which it runs through Wine, as can be seen in the Plugins section of the Add-ons Manager.

Finally, open up Firefox and test 'er out.

Source: https://www.maketecheasier.com/watch-hbo-now-ubuntu/


Disable fn functions on keyboard only for a key

Go to System. Click on control center. Click on keyboard shourtcuts, find the keys you want to disable and double click it. Another way to do it is to hold down FN + ESC.


GUI doesn't work, flashing underscore on boot

Run run the below commands in the virtual console,

sudo rm /etc/X11/xorg.conf
sudo service lightdm restart


Unfortunately, I have found a way to fix this.

"Bitstream Vera Sans Mono" font increases the sharpness of any Linux distribution (Ubuntu, Debian and all its variant, even Arch and Gentoo)


Problems with Ubuntu via Crouton on Chromebook

The problems you have mentioned are currently existing problems with ubuntu on Crouton.
I have tried ubuntu with gnome/xfce with 14.04. And I use the following workarounds,
Keyboard shortcuts :
Do not work.
Brightness up/down :
brightness up  or  brightness down in the terminal when running Ubuntu. Volume change buttons were working.
Terminal: open everytime with the menu. The keyboard short cut does not work. Details here about  key mappings and customization
Additonal programs
Installed them separately.
Checked the repository listing and corrected version name if wrong.
Also added some additional PPA's here (be careful !)
/etc/apt/sources.list
First updated the package list:
sudo apt-get update
Tried gnome terminal.
sudo apt-get install gnome-terminal
1.) LibreOffice
sudo apt install libreoffice
then,
sudo apt install libreoffice-gnome
2.) Restricted applications
sudo apt-get install ubuntu-restricted-extras
3.) Software center
sudo apt-get install software-center
However, i run it by issuing gksu software-center in the terminal.
4.) Updated the distribution kernel.
sudo apt-get dist-upgrade
After distribution upgrade check the existing sources.list file again.
5.) File-roller for working with compressed files.
apt-get install file-roller
6.) Logout to go to back to chrome.
This is painful but still I keep using crouton based Ubuntu installation since its stable for me ( HP Chromebook 14)


isc-dhcp-server configuration - Assign multiple IP addresses to one MAC

Just adding , after each IP seemed to work.

host 1 {hardware ethernet 02:00:00:ef:0d:20;fixed-address IP1, IP2, IP3, IP4;option subnet-mask 255.255.255.255;option routers 51.xxx.xx.254;}


.jpg image error "Error interpreting JPEG image file (Not a JPEG file: starts with 0x52 0x49)"

I'm having this same issue. I saved an image from Firefox and changing the extension from .jpg to .webp gives me another error.

Could Not Display filename.webp There is no application for "WebP image" files. Do you want to search for an application to open this file? Cancel Search in Software

I click Search in Software but nothing happens.

Solved:
Go to the terminal.
sudo apt-get install gthumb
Next right click the image> Open With Other Application
Select gThumb as the default application
Perfect! Now I can finally open them and the thumbnail icon changed too. :D


Bash script for finding number of files, directories, and temporary files in a directory

You have syntax error as done keyword is missing in upper most for loop:

 #!/bin/bash

cd '/home/479153/Temp' || exit

file=0
dir=0
temp=0
for d in *;
do
    for f in *; # this loop actually not needed
     do
        if [ -d "$d" ]; then
            dir=$((dir+1))
        elif [ -f "$f" ]; then # can be replace as $d
            file=$((file+1))
        else
            temp=$((temp+1))
        fi
    done
done
echo "Files $file"
echo "Directories $dir"
echo "Temporaryfiles $temp"

You can always use http://www.shellcheck.net/ site to check syntax error in your bash code.


I experienced the same thing with two different problems

1) It may be caused by caps lock, you have to disable it
2) GDM caused some errors (after reinstallation it disappeared), so I switched to lightdm

check this page https://github.com/rolandguelle/razer-blade-stealth-linux


How to install gmic on 16.04. Error: gmic : Depends: libcurl4 but it is not installable

Everything is fine with your sources.list. But, I found that libcurl4 is not supported in Ubuntu 16.04.

So, I can think of two ways:

1) Install libcurl3, it is said that it will replace libcurl4:

sudo apt install libcurl3

And then try again.

2) If it does not work, then you will have to manually install libcurl4:

wget http://security.ubuntu.com/ubuntu/pool/main/c/curl/libcurl4_7.58.0-2ubuntu3.8_amd64.deb
sudo apt remove libcurl3
sudo dpkg -i libcurl4_7.58.0-2ubuntu3.8_amd64.deb

Note: These softwares like php, cmake, feh, curl depends libcurl.

If this way also does not work, you have to downgrade your version of libcurl to libcurl3 (to reinstate stability). Then the only way that remains would be upgrading to Ubuntu 18.04.


PySide allows you to use Qt in Python and is very well respected. For Java, Qt Jambi appears well maintained, and allows you to use Qt in Java.


If you want to be able to actually manage the interface from the GUI, you need to install the GUI plugin as well (it ends with -gnome).

In your case, this will be the following command:

sudo apt install network-manager-pptp-gnome

NetworkManager is not just a GUI system. It contains a whole backend as well, which is all manageable from the command-line. The package you installed only enables command-line management of PPTP interfaces.


chmod and chown a remote NTFS filesystem both fail

You can't modify the file permissions of a NTFS filesystem mounted via CIFS on the VFS by default. Even when chmod and chown don't complain, they have no effect under these filesystems.

Your best chance is to use mounting options to do the work. That is, define the permissions at mounting time. Take a look at man mount.cifs for the parameters uid and gid.

Please note that CIFS supports chmod and chown when you are serving ext4 filesystems, but not when serving NTFS filesystems. NTFS mounting support permissions, but they are disabled by default because you need to map the Windows User IDs (SID) to UIDs on your system. Please take a look at the article pointed on the comments by Eliah Kagan. Even when you can make the permissions mapping and make the permissions work with a direct mount, I don't know if they will work trhough CIFS, though.


Ubuntu stuck at "Loading initial ramdisk" during first boot

I think this may help (if you can translate from Russian): http://strnor.ru/?p=934

Summary:
You should start the installation without changing partitions (without option "something else") and it will run with no problems.
Or you must create a special 512Mb partition for EFI (look through pictures on the linked site).


sudo apt install not working for anything

whenever you install fresh ubuntu always run

sudo apt-get update; sudo apt-get upgrade

please google what each command does for more info :)

only then must you find the packages you are looking for and install. Happens to me all the time.


Input Method & Engine for Japanese & Chinese

The default IM framework on Ubuntu for typing Chinese or Japanese is Fcitx. Please see this spot in the official documentation.

I think that IBus and Fcitx are the ones which are best supported. Won't say anything more about a recommendation; in the end it's about personal preferences.

AFAIK they work fine in terminals. Setting it up without a desktop environment is of course a bit different compared to the linked example in the official desktop guide.

Default fonts in Ubuntu are:

for Chinese: Noto Sans (the fonts-noto-cjk package)
for Japanese: Takao (the fonts-takao-* packages)


Maybe give this a try...

Install pavucontrol: sudo apt-get install pavucontrol
Run: sudo pavucontrol
Go to the "Input Devices" tab
Click the lock icon to unlock the channels
Under "Port", select the correct microphone (front or rear)

Found in this thread here:
Sound Input device (microphone) not working


How to upgrade to Windows 10 without losing Ubuntu or transfer data of Ubuntu to Windows

Upgrading Windows shouldn't affect Ubuntu, unless you allow the Windows 10 installer to mess with your partitions.  If the Windows 10 installer simply changes the Windows partition, it won't affect the Ubuntu partition; that's pretty straightforward.

That being said...if you care about the data that much, you need backups.  Not just for this occasion, for ALL occasions.  I've heard it said: There are two types of people: Those who have complete, regularly updated backups of all their important files and software...and those who will.  Anyone who has experienced the sickening horror of a failed hard drive that contained the only copies of their files, will understand the black humor of this saying.

No hardware lasts forever.  Buy an external drive, they're very cheap these days; $70 can get you a good 1TB USB 3.0 drive.  And back up your important files.  If your computer got hit by a sledgehammer right now, would you pay $70 to have all your files back?  I thought so.

Back Up Your Files.


vlc player scrambled audio after skipping through a movie

This fixed it for me:

Edit the file /etc/pulse/default.pa.

Replace the line:

load-module module-udev-detect

With:

load-module module-udev-detect tsched=0

Restart your computer.


E: Sub-process /usr/bin/dpkg returned an error code (100) could not exec dpkg

Go to this url http://security.ubuntu.com/ubuntu/pool/main/d/dpkg/
and you will see a list of dpkg packages. You need to find the dpkg version you need than open new terminal.
Anywhere your machine I select Desktop.

mkdir dpkg
cd dpkg

Run:

wget http://security.ubuntu.com/ubuntu/pool/main/d/dpkg/

(Add the version of dpkg you need after the last /)

For example I needed dpkg_1.17.5ubuntu5.2_amd64.deb but this does not exist any more so I chose the closest one which is

dpkg_1.17.5ubuntu5.8_amd64.deb

So:

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

Run

ar x dpkg_1.17.5ubuntu5.8_amd64.deb

Now you can see the contents:

~/dpkg $ ls
control.tar.gz  data.tar.gz  debian-binary  dpkg_1.17.5ubuntu5.8_amd64.deb

Run

~/dpkg $ tar xfvz data.tar.gz ./usr/bin/dpkg
./usr/bin/dpkg
~/dpkg $ ls
control.tar.gz  data.tar.gz  debian-binary  dpkg_1.17.5ubuntu5.8_amd64.deb  usr
~/dpkg $ cd usr/bin/
~/dpkg/usr/bin $ ls
dpkg

~/dpkg/usr/bin $ sudo cp dpkg /usr/bin/

Then you can run:

sudo apt-get update

I hope that helps.


Display still reset to minimum after restarting in ubuntu 14.04

I resolved the issue of display brightness reset to the minimum after restarting. Remove all configurations made, number 1, 2, 4, and 5 and only apply instruction number 3. However, it sets to maximum brightness every restart and changing of brightness level doesn't work. It's okay for me now, instead of having a minimum display brightness every time.


Is my encrypted '/home' lost after system froze during update?

Try the following:

(Extracted from: http://blog.dustinkirkland.com/2011/04/introducing-ecryptfs-recover-private.html)

  If you find yourself in a situation where you need to recover your
  Encrypted Home or Encrypted Private directory, simply:

  boot the target system using an Ubuntu 12.04 (or newer) Desktop
  LiveCD
  make sure that your target system's hard drive is mounted
  open a terminal
  install ecryptfs-utils 'sudo apt-get install -y ecryptfs-utils'
  and run 'sudo ecryptfs-recover-private'
  follow the prompts
  access your decrypted data and save somewhere else
  you can also launch the graphical file browser with 'sudo nautilus'
  and navigate to the temporary directory

  The utility will do a deep find of the system's hard disk, looking for
  folders named ".Private", and will interactively ask you if it's the
  folder you'd like to recover.  If you answer "yes", you will then be
  prompted for the login passphrase that's used to decrypt your wrapped,
  mount passphrase.  Assuming you have the correct credentials, it will
  mount your Encrypted Home or Private directory in read-only mode, and
  point you at the temporary directory where it's mounted.


Wifi hotspot isn't same as wireless ad hoc networks. Most android device doesn't support wi-fi in adhoc mode. What you are running is simply an ad hoc network.

For running your laptop as an access point, this is only possible if your wireless adapter supports going into the master mode. or if the driver for wireless is a mac80211 based driver. If it does not support either one, you're totally out of luck.

Its very tough to setup even if it supports. First you need to setup wireless card and then set up a dhcp server (to get dhcp server up and running is really a horrible task)

How to test master mode and configure access point

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

Helpful threads to setup wireless access point

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

http://ubuntuforums.org/showthread.php?t=376283

http://ubuntuforums.org/showthread.php?t=1663788


21.04: Cannot launch Audacious from command line: "D-Bus error: Cannot autolaunch D-Bus without X11 $DISPLAY"

Ubuntu 21.04 starts Wayland by default. So you got no X11 $DISPLAY.
In you login screen is a small cog on the right side,
[]
change it to "Ubuntu" an login again...


OK, managed to fix the problem. I downloaded and installed compat-wireless-2012-02-28-p.tar.bz2 from http://linuxwireless.org/download/compat-wireless-2.6/ .

tar -xvf compat-wireless-2012-02-28-p.tar
cd compat-wireless-2012-02-28-p
scripts/driver-select alx
make
sudo make install
sudo modprobe alx

Note: This fix will NOT work with newer versions of compat-wireless-2012-02-28-p.tar.bz2. Alx was removed from newer versions. Use the exact file described here.

Update 2012/09/05: working on Dell Inspiron 14z with same chipset using the tarball compat-wireless-2012-09-01-pc.tar.bz2


Failed to Start Service for Snap Application rocketchat-server

I recommend you to stay away from snaps. They simply load too slowly and make things too complicated.

I would follow the manual installation steps from here:
https://rocket.chat/docs/installation/manual-installation/ubuntu/#manual-install


How to launch an application on a specific desktop from command line?

Here are a few options.

Devil's Pie

Here's an old tutorial.

wmctrl

You can make a script to move to the desired workspace and then launch your app (source):

#!/bin/bash
wmctrl -s 1
firefox --new-tab $@ &

Or you could launch your app and then move it. I think something like this would work:

#!/bin/bash
thunderbird &
wmctrl -r :ACTIVE: -t 1
# if thunderbird takes a while to launch, you may need to find the window yourself:
#wmctrl -r `wmctrl -l | grep [t]hunderbird | cut -f1` -t 1

Compiz Place plugin

You can enable and configure this if you install compizconfig-settings-manager .

Allows you to set fixed positions for windows with specific titles.

FYI, previously I used wmctrl in Gnome. Some of its features don't work for me in 11.04 w/ Unity, but should be good in 9.04. Not sure about KDE though.


Launchpad is basicaly the same as Unity. Mac App Store = Ubuntu Software Center. Full screen apps (as they'll work on Lion) depend on the apps developers. Mission Control is nearly the same as scale compiz plugin, but you can only manage windows.


Is there a maximum size at which a swap file can function?

You can have up to 32 swap areas (files or partitions) with up to ~4 billion (2^32) pages each, where a "page" is 4kB on a traditional (eg x86 or x86_64) system but can be larger on other architectures or if you have configured large pages specially.

This gives a theoretical maximum of 16TB per swap area, and up to 32 swap areas.  There may be other limitations that apply before you reach this but this is as big a swap area that mkswap can create for you.

As to how much you want, any swap area beyond the maximum you actually utilize contributes nothing to system performance or stability.  The trick is to estimate the maximum amount of utilization that will ever occur in a normal or even abnormal situation, and use that as your swap file size and no more.

At time of writing, swap space greater than around 4GB more than your physical memory size is very unlikely to be utilized, unless your system is very abnormal.  On a typical system such as a desktop system used by one person at a time, you can probably even stop at a maximum of say 6GB to 8GB even if your physical memory is greater.


ipmitool Unable to send command: Invalid argument

Managed to solve this issue by reinstalling ipmitoolin this sequence

sudo apt-get remove ipmitool
sudo reboot
sudo apt update
sudo apt-get install ipmitool


Can I safely remove a tar archive after extracting it?

Yes: once extracted you can safely remove it as long as it is easy to re-obtain a copy should you need it again (via download, external hard disk, etc.)

Put another way: if that tar or tar.gz is the ONLY copy in the world, you probably don't want to delete it ;)


Linux partition in two different physical disks

Yes, you can.

https://tutorials.ubuntu.com/tutorial/tutorial-install-ubuntu-desktop#0  outlines and illustrates the installation process. When you get to step 6, Allocate Disk Space,  choose Something Else. There, you can create a partition for /home on your HDD and put everything else on the SSD.

Please note there's no need for a separate Swap Partition in Ubuntu, and there hasn't been since 2017. Just let Ubuntu put swapspace in /home which it does automatically.

Now, that may not be necessary: What you were told about SSDs was valid many years ago. Now, an SSD from a quality manufacturer will likely outlast HDDs, especially since TRIM is included in Ubuntu now.. Read https://forums.tomshardware.com/threads/ssd-storage-longevity-for-archival-not-write-endurance.3454065/ and http://insights.samsung.com/2019/02/11/why-is-ssd-better-than-hdd for an intriduction to the modern SSD.


When you install the 'Install VMware Tools', this inserts two new links in /usr/lib/cups/backend/ which renders all printing useless -- no matter what you try!

The solution, move to the directory in question:

cd /usr/lib/cups/backend/

List the files there. The -lFat is just to see everything 'nicely' :-)

ls -lFat

If you see something like this, they are the problem:

tpvmgp -> /usr/lib/vmware-tools/bin/vmware-tpvmlp
tpvmlp -> /usr/lib/vmware-tools/bin/vmware-tpvmlp

The solution, just remove them:

sudo rm tpvmgp
sudo rm tpvmlp

Source: http://ubuntuforums.org/archive/index.php/t-818720.html


Weird bug in gedit - line numbers cut off on the left

Yes it is a bug, and happens to me also on 12.04.2.

The problem seems to only happen when using a large font size (atleast with me). So to get around this you can either select a lower font size or use other monospaced font. In my system with "Ubuntu Mono" line numbers are shown correctly until size 30, while monospaced gets cropped at 24.


Can't access my data due to low disk space

Login using tty. Press Ctrl+Alt+F1, This will swtich you to the virtual terminal tty1.
Enter your username and password and then try to empty some space from your Ubuntu partition.
You can access your sudo so you can mount your external HDD if it's not so. The mounting point would be at /media so ls /media to check whether it's mounted or no.
If this doesn't work for some reason
You should use the Ubuntu Live CD, boot from it and choose try Ubuntu without installing, once you are in you can mount your partitions and free some storage.


Radeon Xpress 200M with Hardware Acceleration on Ubuntu 12.04

xpress200 is no more supported by actual xserver, so try with an older one from natty for example

https://launchpad.net/ubuntu/+source/xorg

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


Allview Viva C701 can't be used in MTP mode on Ubuntu 14.04

This tablet may appear under a number of names but the USB ID remains the same when using lsusb:

ID 1f3a:1006

When in PTP mode, the ID changes to:

ID 1f3a:1008

Anyway, the problem is fixed by modifying two files.

First, I needed to add this entry into /lib/udev/rules.d/69-libmtp.rules:

# Allwiew Viva c701
ATTR{idVendor}=="1f3a", ATTR{idProduct}=="1006", SYMLINK+="libmtp-%k", MODE="660", GROUP="audio", ENV{ID_MTP_DEVICE}="1", ENV{ID_MEDIA_PLAYER}="1"

Then add the following line to /etc/udev/rules.d/51-special_mtp_device.rules (if the file does not exist, create it):

# Allwiew Viva c701
ATTR{idVendor}=="1f3a", ATTR{idProduct}=="1006", MODE=”0666"

Reboot. Your tablet should now appear in the file manager.


What application can I use for cropping quickly (selecting multiple areas of an image)?

Looks like you may find a solution on the Ubuntu forums here; http://ubuntuforums.org/showthread.php?t=1429439 download the python script install the pre requisites,

sudo apt-get install python-tk python-imaging python-imaging-tk

run the application, load file, select areas to crop with mouse and click go, pictures of the areas will be saved to file in the folder with the photo. see below:

View of files in nautilus


cp: cannot stat 'install/netboot/*': No such file or directory

No, the Desktop edition does not contains the required netboot files. You need to get either:

Ubuntu server image (CD size: ~ 700MB)
Pure Ubuntu netboot image from cdimage.ubuntu.com/netboot/ (mini.iso < 60MB or netboot.tar.gz ~ 45MB)


sd4 is nested! for example sda5 is a child of sda4! Ubuntu does not allow me to create any other partition!

You can create only 4 primary partitions(including extended partition) in a disk containing MBR partition table.You can create any number of logical partitions inside extended partition.

But in GPT,you can create upto 128 partitions.There was no primary or logical partitions in this type of GPT disk.

From your question:

  When I try to create a new extended-logical partition I get this error: Cannot create a new partition. There are already four primary partitions.

It was false,you try to create a new partition on the second unallocated space which was outside the extended partition.You had already four primary partitions,so that the error appears.See the below screenshot,

But you can be able to create a new logical partition on the first unallocated space which was inside the extended partition.

  Why ubuntu created sda4 while I had choosed 'logical' for both swap & home partitions.

Logical partitions are always comes inside the extended partition.You choose swap and home partitions as logical,so it comes under extended partition /dev/sda4.

  How can I get rid of sda4 and make a new partition?

You can't be able to delete sda4 because your home and swap partitions are inside on that sda4 extended partition.


View images fit to width in Image Viewer

Install the eog-plugins package.

sudo apt-get install eog-plugins

Open Image Viewer and navigate to Edit ➜ Preferences ➜ Plugins and check the Zoom to fit image width plugin:

Restart Image Viewer for the change to take effect.


Sudo requires password after adding user to sudoers

You should use NOPASSWD option

aman ALL=(ALL) NOPASSWD:ALL

However, I would not recommend it that way, because user aman can execute anything without password. I would only allow the systemctl command to be executed without password like this:

aman     ALL=NOPASSWD:/bin/systemctl

It is safer that way.


Is it possible to know from apt if the package was installed explicitly or as a dependency of another package?

You can check whether a package was installed manually by displaying the list of all automatically installed packages with apt-mark showauto.

apt-mark showauto | grep -x B

aptitude -v why B shows which packages depend on B. Sticking with aptitude, aptitude version B displays an A in the third column if B is marked as automatically installed.

apt-cache show A or dpkg -s A (if A is installed) shows A's dependencies. apt-cache rdepends B shows what depends on B.


Error trying to make USB drive into bootable host drive in Virtualbox

Virtual Box does not allow booting from USB. To install Ubuntu you need to directly mount the downloaded Ubuntu .iso file as a virtual CD drive in Virtual Box Manager. There is no need to make a bootable USB drive.

Also see:

Install windows 7 through virtual box


Brief purple screen then display cuts out when installing ubuntu 16.04

The problem was in fact the Nvidia graphics card. Looks like I had to go to settings by pressing Tab then going into nomodeset mode by pressing F6 and ticking it. Then when you've installed Ubuntu, you can install the binary drivers which solve the issue.